arm64: dts: rockchip: fixes support for Lunzn Fastrhino R6xS
Subsystems (2)
v3 cover arm64: dts: rockchip: fixes support for Lunzn Fastrhino R6xS
Changes in v3:
Remove merged patches
Further explanation of the PHY reset time changes
Changes in v2:
Separate commits for regulator and supply changes Separate commits for R68S Ethernet PHY changes
Chukun Pan (3):
arm64: dts: rockchip: use generic Ethernet PHY reset bindings for
Lunzn Fastrhino R68S
arm64: dts: rockchip: remove useless tx/rx_delay for Lunzn Fastrhino
R68S
arm64: dts: rockchip: Enable UHS-I SDR-50 for Lunzn FastRhino R66S
Signature · 1 line
2.25.1
PATCH v3 1/3 arm64: dts: rockchip: use generic Ethernet PHY reset bindings for Lunzn Fastrhino R68S
Replace the deprecated snps,reset-xxx bindings to the generic Ethernet PHY reset GPIO bindings. According to the PHY datasheet, the RTL8211F PHY needs a 10ms assert delay and at least 72ms deassert delay. Considering the possibility of mixed use of PHY chips, increased the reset time.
--- .../boot/dts/rockchip/rk3568-fastrhino-r68s.dts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-)
arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r68s.dts +6 -8
@@ -39,10 +39,6 @@ &gmac0_tx_bus2 &gmac0_rx_bus2 &gmac0_rgmii_clk &gmac0_rgmii_bus>; - snps,reset-gpio = <&gpio1 RK_PB0 GPIO_ACTIVE_LOW>; - snps,reset-active-low; - /* Reset time is 15ms, 50ms for rtl8211f */ - snps,reset-delays-us = <0 15000 50000>; tx_delay = <0x3c>; rx_delay = <0x2f>; status = "okay";
@@ -61,10 +57,6 @@ &gmac1m1_tx_bus2 &gmac1m1_rx_bus2 &gmac1m1_rgmii_clk &gmac1m1_rgmii_bus>; - snps,reset-gpio = <&gpio1 RK_PB1 GPIO_ACTIVE_LOW>; - snps,reset-active-low; - /* Reset time is 15ms, 50ms for rtl8211f */ - snps,reset-delays-us = <0 15000 50000>; tx_delay = <0x4f>; rx_delay = <0x26>; status = "okay";
@@ -76,6 +68,9 @@ rgmii_phy0: ethernet-phy@1 { reg = <0x1>; pinctrl-0 = <ð_phy0_reset_pin>; pinctrl-names = "default"; + reset-assert-us = <20000>; + reset-deassert-us = <100000>; + reset-gpios = <&gpio1 RK_PB0 GPIO_ACTIVE_LOW>; }; };
@@ -85,6 +80,9 @@ rgmii_phy1: ethernet-phy@1 { reg = <0x1>; pinctrl-0 = <ð_phy1_reset_pin>; pinctrl-names = "default"; + reset-assert-us = <20000>; + reset-deassert-us = <100000>; + reset-gpios = <&gpio1 RK_PB1 GPIO_ACTIVE_LOW>; }; };
Signature · 1 line
2.25.1
PATCH v3 2/3 arm64: dts: rockchip: remove useless tx/rx_delay for Lunzn Fastrhino R68S
In reply to Chukun PanSince we use rgmii-id as the phy mode, remove the useless tx_delay and rx_delay properties.
--- arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r68s.dts | 4 ---- 1 file changed, 4 deletions(-)
arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r68s.dts +0 -4
@@ -39,8 +39,6 @@ &gmac0_tx_bus2 &gmac0_rx_bus2 &gmac0_rgmii_clk &gmac0_rgmii_bus>; - tx_delay = <0x3c>; - rx_delay = <0x2f>; status = "okay"; };
@@ -57,8 +55,6 @@ &gmac1m1_tx_bus2 &gmac1m1_rx_bus2 &gmac1m1_rgmii_clk &gmac1m1_rgmii_bus>; - tx_delay = <0x4f>; - rx_delay = <0x26>; status = "okay"; };
Signature · 1 line
2.25.1
PATCH v3 3/3 arm64: dts: rockchip: Enable UHS-I SDR-50 for Lunzn FastRhino R66S
In reply to Chukun PanThis board can work in UHS-I SDR-104 mode, but may not be stable, use SDR-50 instead. Remove the max-frequency property, which is already defined in rk356x.dtsi.
--- arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts +1 -1
@@ -20,9 +20,9 @@ &sdmmc0 { cap-mmc-highspeed; cap-sd-highspeed; disable-wp; - max-frequency = <150000000>; no-sdio; no-mmc; + sd-uhs-sdr50; pinctrl-names = "default"; pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>; vmmc-supply = <&vcc3v3_sd>;
Signature · 1 line
2.25.1
Quoted 9 lines · Chukun Pan
Changes in v3:
Remove merged patches
Further explanation of the PHY reset time changesChanges in v2:
Separate commits for regulator and supply changes Separate commits for R68S Ethernet PHY changes[...]
Applied, thanks!
[1/3] arm64: dts: rockchip: use generic Ethernet PHY reset bindings for Lunzn Fastrhino R68S
commit: 22de886d49613ea36b39bbe563bf77a2de057865
[2/3] arm64: dts: rockchip: remove useless tx/rx_delay for Lunzn Fastrhino R68S
commit: ecb0835328a534f48f1213a257888d8510a1cad3
[3/3] arm64: dts: rockchip: Enable UHS-I SDR-50 for Lunzn FastRhino R66S
commit: 9df34247766b2a42c48cf0d81a0dd756c546cbdcBest regards,
Signature · 1 line
Heiko Stuebner <[email protected]>