1 From cc52bfc04726a574fc4440bbbe0c710890e7040a Mon Sep 17 00:00:00 2001
2 From: Manoj Sai <abbaraju.manojsai@amarulasolutions.com>
3 Date: Wed, 25 Jan 2023 21:40:22 +0530
4 Subject: [PATCH] arm64: dts: rockchip: Enable Ethernet for Radxa CM3 IO
6 Add ethernet nodes for enabling gmac1 on the Radxa CM3 IO board.
8 Signed-off-by: Manoj Sai <abbaraju.manojsai@amarulasolutions.com>
9 Link: https://lore.kernel.org/r/20230125161023.12115-1-jagan@amarulasolutions.com
10 Signed-off-by: Heiko Stuebner <heiko@sntech.de>
12 .../boot/dts/rockchip/rk3566-radxa-cm3-io.dts | 93 +++++++++++++++++++
13 1 file changed, 93 insertions(+)
15 --- a/arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3-io.dts
16 +++ b/arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3-io.dts
18 stdout-path = "serial2:1500000n8";
21 + gmac1_clkin: external-gmac1-clock {
22 + compatible = "fixed-clock";
23 + clock-frequency = <125000000>;
24 + clock-output-names = "gmac1_clkin";
29 compatible = "hdmi-connector";
36 + assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>;
37 + assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&gmac1_clkin>;
38 + assigned-clock-rates = <0>, <125000000>;
39 + clock_in_out = "input";
40 + phy-handle = <&rgmii_phy1>;
42 + pinctrl-names = "default";
43 + pinctrl-0 = <&gmac1m0_miim
49 + snps,reset-gpio = <&gpio4 RK_PC2 GPIO_ACTIVE_LOW>;
50 + snps,reset-active-low;
51 + /* Reset time is 20ms, 100ms for rtl8211f */
52 + snps,reset-delays-us = <0 20000 100000>;
59 avdd-0v9-supply = <&vdda0v9_image>;
60 avdd-1v8-supply = <&vcca1v8_image>;
66 + rgmii_phy1: ethernet-phy@0 {
67 + compatible="ethernet-phy-ieee802.3-c22";
74 + gmac1m0_miim: gmac1m0-miim {
77 + <3 RK_PC4 3 &pcfg_pull_none_drv_level_15>,
79 + <3 RK_PC5 3 &pcfg_pull_none_drv_level_15>;
82 + gmac1m0_rx_bus2: gmac1m0-rx-bus2 {
85 + <3 RK_PB1 3 &pcfg_pull_none_drv_level_15>,
87 + <3 RK_PB2 3 &pcfg_pull_none_drv_level_15>,
88 + /* gmac1_rxdvcrsm0 */
89 + <3 RK_PB3 3 &pcfg_pull_none_drv_level_15>;
92 + gmac1m0_tx_bus2: gmac1m0-tx-bus2 {
95 + <3 RK_PB5 3 &pcfg_pull_none_drv_level_15>,
97 + <3 RK_PB6 3 &pcfg_pull_none_drv_level_15>,
99 + <3 RK_PB7 3 &pcfg_pull_none_drv_level_15>;
102 + gmac1m0_rgmii_clk: gmac1m0-rgmii-clk {
104 + /* gmac1_rxclkm0 */
105 + <3 RK_PA7 3 &pcfg_pull_none_drv_level_15>,
106 + /* gmac1_txclkm0 */
107 + <3 RK_PA6 3 &pcfg_pull_none_drv_level_15>;
110 + gmac1m0_rgmii_bus: gmac1m0-rgmii-bus {
113 + <3 RK_PA4 3 &pcfg_pull_none_drv_level_15>,
115 + <3 RK_PA5 3 &pcfg_pull_none_drv_level_15>,
117 + <3 RK_PA2 3 &pcfg_pull_none_drv_level_15>,
119 + <3 RK_PA3 3 &pcfg_pull_none_drv_level_15>;
122 + gmac1m0_clkinout: gmac1m0-clkinout {
124 + /* gmac1_mclkinoutm0 */
125 + <3 RK_PC0 3 &pcfg_pull_none_drv_level_15>;
130 pi_nled_activity: pi-nled-activity {
131 rockchip,pins = <4 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;