From nobody Fri Jun 19 14:33:55 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A52B6C433EF for ; Sat, 2 Apr 2022 11:01:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354653AbiDBLDp (ORCPT ); Sat, 2 Apr 2022 07:03:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243308AbiDBLCv (ORCPT ); Sat, 2 Apr 2022 07:02:51 -0400 Received: from mxout2.routing.net (mxout2.routing.net [IPv6:2a03:2900:1:a::b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A431D5C64B; Sat, 2 Apr 2022 04:00:59 -0700 (PDT) Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout2.routing.net (Postfix) with ESMTP id 2B1FF604EA; Sat, 2 Apr 2022 11:00:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1648897258; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fiF2czy3fSgLbpJlx4zoA+bi17AwyEhQirvjS4BVRRE=; b=iP1O0hVPiTthtWFeD4dE15aC9ANGrl9odXgMAEBpwJgF6bD2qPpJF5905I4vY8lXL874Ob Z29u7xYCg/QXUArxsa/DvjMICUAL7hgqfd28Z19Lc9DRwnwgcWXPZw81PiExiawh+QUD49 B4M1pJ0kRAo2y51O6x4K8Rem50wRnqk= Received: from localhost.localdomain (fttx-pool-80.245.79.107.bambit.de [80.245.79.107]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 4CBEC36062B; Sat, 2 Apr 2022 11:00:57 +0000 (UTC) From: Frank Wunderlich To: linux-rockchip@lists.infradead.org Cc: Frank Wunderlich , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Peter Geis , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/2] arm64: dts: rockchip: Change io-domains of bpi-r2-pro Date: Sat, 2 Apr 2022 13:00:44 +0200 Message-Id: <20220402110045.104031-2-linux@fw-web.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220402110045.104031-1-linux@fw-web.de> References: <20220402110045.104031-1-linux@fw-web.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mail-ID: 6d6b9b5d-3d03-4486-aed8-edb06c31f801 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich New Hardware revision has different io domain settings than the first board. First version was not sold, so the setting can be savely overridden. Fixes: f901aaadaa2a ("arm64: dts: rockchip: Add Bananapi R2 Pro") Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts b/arch/arm6= 4/boot/dts/rockchip/rk3568-bpi-r2-pro.dts index a01886b467ed..a0388ff85ddf 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts @@ -345,9 +345,9 @@ &pmu_io_domains { pmuio2-supply =3D <&vcc3v3_pmu>; vccio1-supply =3D <&vccio_acodec>; vccio3-supply =3D <&vccio_sd>; - vccio4-supply =3D <&vcc_1v8>; + vccio4-supply =3D <&vcc_3v3>; vccio5-supply =3D <&vcc_3v3>; - vccio6-supply =3D <&vcc_3v3>; + vccio6-supply =3D <&vcc_1v8>; vccio7-supply =3D <&vcc_3v3>; status =3D "okay"; }; --=20 2.25.1 From nobody Fri Jun 19 14:33:55 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9670C433EF for ; Sat, 2 Apr 2022 11:02:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354649AbiDBLDu (ORCPT ); Sat, 2 Apr 2022 07:03:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229890AbiDBLCw (ORCPT ); Sat, 2 Apr 2022 07:02:52 -0400 Received: from mxout3.routing.net (mxout3.routing.net [IPv6:2a03:2900:1:a::8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 736715C64A; Sat, 2 Apr 2022 04:01:00 -0700 (PDT) Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout3.routing.net (Postfix) with ESMTP id C5B4C62646; Sat, 2 Apr 2022 11:00:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1648897258; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rVlsNMjXQQ4jdCL0TbPne+ht1OtgQ3f4+EzKpSKvrX8=; b=swkdD0x3TBBMxA6IIt68vV136Ukio9/0J4qdADpFPOgGC+yP7O1HvdJCs96zAKFr2g/Fh9 6jdwMZk5w5cA/E7Sl2xHDRCPmfsQCk4zV0q8ThqFr3MGs0u//QGAO/2a37kI9r6owa9M38 FF7gD4bup1CeOcB6+uvcAwQ1gV3Gzio= Received: from localhost.localdomain (fttx-pool-80.245.79.107.bambit.de [80.245.79.107]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 211523602D1; Sat, 2 Apr 2022 11:00:58 +0000 (UTC) From: Frank Wunderlich To: linux-rockchip@lists.infradead.org Cc: Frank Wunderlich , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Peter Geis , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 2/2] arm64: dts: rockchip: Add gmac1 and change network settings Date: Sat, 2 Apr 2022 13:00:45 +0200 Message-Id: <20220402110045.104031-3-linux@fw-web.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220402110045.104031-1-linux@fw-web.de> References: <20220402110045.104031-1-linux@fw-web.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mail-ID: 97d707e2-b6e5-46ae-8685-faf5e876b31a Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich New Version (v1.0) of R2 pro has swapped gmacs compared to the v00. WAN-Port is now on gmac1 (RTL8211F) and lan-ports on gmac0 with mt7531 switch. There is already a mt7531 dsa driver in mainline, but it needs to be modified to work for this board. Fixes: f901aaadaa2a ("arm64: dts: rockchip: Add Bananapi R2 Pro") Signed-off-by: Frank Wunderlich --- .../boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 36 +++++++++++++++++-- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts b/arch/arm6= 4/boot/dts/rockchip/rk3568-bpi-r2-pro.dts index a0388ff85ddf..067fe4a6b178 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts @@ -16,6 +16,7 @@ / { =20 aliases { ethernet0 =3D &gmac0; + ethernet1 =3D &gmac1; mmc0 =3D &sdmmc0; mmc1 =3D &sdhci; }; @@ -78,7 +79,6 @@ &gmac0 { assigned-clocks =3D <&cru SCLK_GMAC0_RX_TX>, <&cru SCLK_GMAC0>; assigned-clock-parents =3D <&cru SCLK_GMAC0_RGMII_SPEED>, <&cru CLK_MAC0_= 2TOP>; clock_in_out =3D "input"; - phy-handle =3D <&rgmii_phy0>; phy-mode =3D "rgmii"; pinctrl-names =3D "default"; pinctrl-0 =3D <&gmac0_miim @@ -90,8 +90,38 @@ &gmac0_rgmii_clk snps,reset-active-low; /* Reset time is 20ms, 100ms for rtl8211f */ snps,reset-delays-us =3D <0 20000 100000>; + tx_delay =3D <0x4f>; + rx_delay =3D <0x0f>; + status =3D "okay"; + + fixed-link { + speed =3D <1000>; + full-duplex; + pause; + }; +}; + +&gmac1 { + assigned-clocks =3D <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>; + assigned-clock-parents =3D <&cru SCLK_GMAC1_RGMII_SPEED>, <&cru CLK_MAC1_= 2TOP>; + clock_in_out =3D "output"; + phy-handle =3D <&rgmii_phy1>; + phy-mode =3D "rgmii"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&gmac1m1_miim + &gmac1m1_tx_bus2 + &gmac1m1_rx_bus2 + &gmac1m1_rgmii_clk + &gmac1m1_rgmii_bus>; + + snps,reset-gpio =3D <&gpio3 RK_PB0 GPIO_ACTIVE_LOW>; + snps,reset-active-low; + /* Reset time is 20ms, 100ms for rtl8211f */ + snps,reset-delays-us =3D <0 20000 100000>; + tx_delay =3D <0x3c>; rx_delay =3D <0x2f>; + status =3D "okay"; }; =20 @@ -315,8 +345,8 @@ &i2c5 { status =3D "disabled"; }; =20 -&mdio0 { - rgmii_phy0: ethernet-phy@0 { +&mdio1 { + rgmii_phy1: ethernet-phy@0 { compatible =3D "ethernet-phy-ieee802.3-c22"; reg =3D <0x0>; }; --=20 2.25.1