* [PATCH v1 0/2] Change Bananapi-R2-Pro board to match V1.0
@ 2022-04-02 11:00 Frank Wunderlich
2022-04-02 11:00 ` [PATCH v1 1/2] arm64: dts: rockchip: Change io-domains of bpi-r2-pro Frank Wunderlich
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Frank Wunderlich @ 2022-04-02 11:00 UTC (permalink / raw)
To: linux-rockchip
Cc: Frank Wunderlich, Rob Herring, Krzysztof Kozlowski,
Heiko Stuebner, Peter Geis, devicetree, linux-arm-kernel,
linux-kernel
From: Frank Wunderlich <frank-w@public-files.de>
Mainline Devicetree was created for v00 prototype that was not in
public sale and only shipped to few developers. V1.0 of the board
has some changes in io-domain and gmacs are swapped.
Change mainline DTS to match the current hardware.
Frank Wunderlich (2):
arm64: dts: rockchip: Change io-domains of bpi-r2-pro
arm64: dts: rockchip: Add gmac1 and change network settings
.../boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 40 ++++++++++++++++---
1 file changed, 35 insertions(+), 5 deletions(-)
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 6+ messages in thread* [PATCH v1 1/2] arm64: dts: rockchip: Change io-domains of bpi-r2-pro
2022-04-02 11:00 [PATCH v1 0/2] Change Bananapi-R2-Pro board to match V1.0 Frank Wunderlich
@ 2022-04-02 11:00 ` Frank Wunderlich
2022-04-02 11:00 ` [PATCH v1 2/2] arm64: dts: rockchip: Add gmac1 and change network settings Frank Wunderlich
2022-04-04 8:59 ` [PATCH v1 0/2] Change Bananapi-R2-Pro board to match V1.0 Heiko Stuebner
2 siblings, 0 replies; 6+ messages in thread
From: Frank Wunderlich @ 2022-04-02 11:00 UTC (permalink / raw)
To: linux-rockchip
Cc: Frank Wunderlich, Rob Herring, Krzysztof Kozlowski,
Heiko Stuebner, Peter Geis, devicetree, linux-arm-kernel,
linux-kernel
From: Frank Wunderlich <frank-w@public-files.de>
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 <frank-w@public-files.de>
---
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/arm64/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 = <&vcc3v3_pmu>;
vccio1-supply = <&vccio_acodec>;
vccio3-supply = <&vccio_sd>;
- vccio4-supply = <&vcc_1v8>;
+ vccio4-supply = <&vcc_3v3>;
vccio5-supply = <&vcc_3v3>;
- vccio6-supply = <&vcc_3v3>;
+ vccio6-supply = <&vcc_1v8>;
vccio7-supply = <&vcc_3v3>;
status = "okay";
};
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH v1 2/2] arm64: dts: rockchip: Add gmac1 and change network settings
2022-04-02 11:00 [PATCH v1 0/2] Change Bananapi-R2-Pro board to match V1.0 Frank Wunderlich
2022-04-02 11:00 ` [PATCH v1 1/2] arm64: dts: rockchip: Change io-domains of bpi-r2-pro Frank Wunderlich
@ 2022-04-02 11:00 ` Frank Wunderlich
2022-04-04 8:59 ` [PATCH v1 0/2] Change Bananapi-R2-Pro board to match V1.0 Heiko Stuebner
2 siblings, 0 replies; 6+ messages in thread
From: Frank Wunderlich @ 2022-04-02 11:00 UTC (permalink / raw)
To: linux-rockchip
Cc: Frank Wunderlich, Rob Herring, Krzysztof Kozlowski,
Heiko Stuebner, Peter Geis, devicetree, linux-arm-kernel,
linux-kernel
From: Frank Wunderlich <frank-w@public-files.de>
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 <frank-w@public-files.de>
---
.../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/arm64/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 @@ / {
aliases {
ethernet0 = &gmac0;
+ ethernet1 = &gmac1;
mmc0 = &sdmmc0;
mmc1 = &sdhci;
};
@@ -78,7 +79,6 @@ &gmac0 {
assigned-clocks = <&cru SCLK_GMAC0_RX_TX>, <&cru SCLK_GMAC0>;
assigned-clock-parents = <&cru SCLK_GMAC0_RGMII_SPEED>, <&cru CLK_MAC0_2TOP>;
clock_in_out = "input";
- phy-handle = <&rgmii_phy0>;
phy-mode = "rgmii";
pinctrl-names = "default";
pinctrl-0 = <&gmac0_miim
@@ -90,8 +90,38 @@ &gmac0_rgmii_clk
snps,reset-active-low;
/* Reset time is 20ms, 100ms for rtl8211f */
snps,reset-delays-us = <0 20000 100000>;
+ tx_delay = <0x4f>;
+ rx_delay = <0x0f>;
+ status = "okay";
+
+ fixed-link {
+ speed = <1000>;
+ full-duplex;
+ pause;
+ };
+};
+
+&gmac1 {
+ assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>;
+ assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&cru CLK_MAC1_2TOP>;
+ clock_in_out = "output";
+ phy-handle = <&rgmii_phy1>;
+ phy-mode = "rgmii";
+ pinctrl-names = "default";
+ pinctrl-0 = <&gmac1m1_miim
+ &gmac1m1_tx_bus2
+ &gmac1m1_rx_bus2
+ &gmac1m1_rgmii_clk
+ &gmac1m1_rgmii_bus>;
+
+ snps,reset-gpio = <&gpio3 RK_PB0 GPIO_ACTIVE_LOW>;
+ snps,reset-active-low;
+ /* Reset time is 20ms, 100ms for rtl8211f */
+ snps,reset-delays-us = <0 20000 100000>;
+
tx_delay = <0x3c>;
rx_delay = <0x2f>;
+
status = "okay";
};
@@ -315,8 +345,8 @@ &i2c5 {
status = "disabled";
};
-&mdio0 {
- rgmii_phy0: ethernet-phy@0 {
+&mdio1 {
+ rgmii_phy1: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0x0>;
};
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH v1 0/2] Change Bananapi-R2-Pro board to match V1.0
2022-04-02 11:00 [PATCH v1 0/2] Change Bananapi-R2-Pro board to match V1.0 Frank Wunderlich
2022-04-02 11:00 ` [PATCH v1 1/2] arm64: dts: rockchip: Change io-domains of bpi-r2-pro Frank Wunderlich
2022-04-02 11:00 ` [PATCH v1 2/2] arm64: dts: rockchip: Add gmac1 and change network settings Frank Wunderlich
@ 2022-04-04 8:59 ` Heiko Stuebner
[not found] ` <7EC83317-29EA-4464-9C24-27A78FB77911@fw-web.de>
2 siblings, 1 reply; 6+ messages in thread
From: Heiko Stuebner @ 2022-04-04 8:59 UTC (permalink / raw)
To: linux-rockchip, Frank Wunderlich
Cc: Heiko Stuebner, Peter Geis, devicetree, Krzysztof Kozlowski,
Rob Herring, linux-arm-kernel, linux-kernel, Frank Wunderlich
On Sat, 2 Apr 2022 13:00:43 +0200, Frank Wunderlich wrote:
> Mainline Devicetree was created for v00 prototype that was not in
> public sale and only shipped to few developers. V1.0 of the board
> has some changes in io-domain and gmacs are swapped.
>
> Change mainline DTS to match the current hardware.
>
> Frank Wunderlich (2):
> arm64: dts: rockchip: Change io-domains of bpi-r2-pro
> arm64: dts: rockchip: Add gmac1 and change network settings
>
> [...]
Applied, thanks!
[1/2] arm64: dts: rockchip: Change io-domains of bpi-r2-pro
commit: 34fc952867aa2a2e257bf2bcbbaac97ac91f8bd1
[2/2] arm64: dts: rockchip: Add gmac1 and change network settings
commit: 5c8e82ed3a4a5c8023b2959d8f3292f7291e7227
Best regards,
--
Heiko Stuebner <heiko@sntech.de>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 6+ messages in thread
* (no subject)
@ 2022-04-02 10:43 Frank Wunderlich
2022-04-02 10:43 ` [PATCH v1 1/2] arm64: dts: rockchip: Change io-domains of bpi-r2-pro Frank Wunderlich
0 siblings, 1 reply; 6+ messages in thread
From: Frank Wunderlich @ 2022-04-02 10:43 UTC (permalink / raw)
To: linux-rockchip
Cc: Frank Wunderlich, Rob Herring, Krzysztof Kozlowski,
Heiko Stuebner, Peter Geis, devicetree, linux-arm-kernel,
linux-kernel
From: Frank Wunderlich <frank-w@public-files.de>
Subject: [PATCH v1 0/2] Change Bananapi-R2-Pro board to match V1.0
Mainline Devicetree was created for v00 prototype that was not in
public sale and only shipped to few developers. V1.0 of the board
has some changes in io-domain and gmacs are swapped.
Change mainline DTS to match the current hardware.
Frank Wunderlich (2):
arm64: dts: rockchip: Change io-domains of bpi-r2-pro
arm64: dts: rockchip: Add gmac1 and change network settings
.../boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 40 ++++++++++++++++---
1 file changed, 35 insertions(+), 5 deletions(-)
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v1 1/2] arm64: dts: rockchip: Change io-domains of bpi-r2-pro
2022-04-02 10:43 Frank Wunderlich
@ 2022-04-02 10:43 ` Frank Wunderlich
0 siblings, 0 replies; 6+ messages in thread
From: Frank Wunderlich @ 2022-04-02 10:43 UTC (permalink / raw)
To: linux-rockchip
Cc: Frank Wunderlich, Rob Herring, Krzysztof Kozlowski,
Heiko Stuebner, Peter Geis, devicetree, linux-arm-kernel,
linux-kernel
From: Frank Wunderlich <frank-w@public-files.de>
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 <frank-w@public-files.de>
---
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/arm64/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 = <&vcc3v3_pmu>;
vccio1-supply = <&vccio_acodec>;
vccio3-supply = <&vccio_sd>;
- vccio4-supply = <&vcc_1v8>;
+ vccio4-supply = <&vcc_3v3>;
vccio5-supply = <&vcc_3v3>;
- vccio6-supply = <&vcc_3v3>;
+ vccio6-supply = <&vcc_1v8>;
vccio7-supply = <&vcc_3v3>;
status = "okay";
};
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-04-10 16:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-02 11:00 [PATCH v1 0/2] Change Bananapi-R2-Pro board to match V1.0 Frank Wunderlich
2022-04-02 11:00 ` [PATCH v1 1/2] arm64: dts: rockchip: Change io-domains of bpi-r2-pro Frank Wunderlich
2022-04-02 11:00 ` [PATCH v1 2/2] arm64: dts: rockchip: Add gmac1 and change network settings Frank Wunderlich
2022-04-04 8:59 ` [PATCH v1 0/2] Change Bananapi-R2-Pro board to match V1.0 Heiko Stuebner
[not found] ` <7EC83317-29EA-4464-9C24-27A78FB77911@fw-web.de>
2022-04-10 16:48 ` Heiko Stuebner
-- strict thread matches above, loose matches on Subject: below --
2022-04-02 10:43 Frank Wunderlich
2022-04-02 10:43 ` [PATCH v1 1/2] arm64: dts: rockchip: Change io-domains of bpi-r2-pro Frank Wunderlich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).