Skip to content

Commit a66bd94

Browse files
openedevmmind
authored andcommitted
arm64: dts: rk3399pro: vmarc-som: Move common properties into Carrier
Some of gmac, sdmmc node properties are common across rk3288 and rk3399pro SOM's so move them into Carrier dtsi. Chosen node is specific to rk3399pro configure SBC, so move it into RockPI N10 dts. Signed-off-by: Jagan Teki <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Stuebner <[email protected]>
1 parent 4a3ca11 commit a66bd94

File tree

3 files changed

+23
-20
lines changed

3 files changed

+23
-20
lines changed

arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
#include <dt-bindings/pwm/pwm.h>
99

1010
/ {
11-
chosen {
12-
stdout-path = "serial2:1500000n8";
11+
clkin_gmac: external-gmac-clock {
12+
compatible = "fixed-clock";
13+
clock-frequency = <125000000>;
14+
clock-output-names = "clkin_gmac";
15+
#clock-cells = <0>;
1316
};
1417

1518
vcc12v_dcin: vcc12v-dcin-regulator {
@@ -33,6 +36,15 @@
3336
};
3437

3538
&gmac {
39+
assigned-clock-parents = <&clkin_gmac>;
40+
clock_in_out = "input";
41+
phy-mode = "rgmii";
42+
pinctrl-names = "default";
43+
pinctrl-0 = <&rgmii_pins>;
44+
snps,reset-active-low;
45+
snps,reset-delays-us = <0 10000 50000>;
46+
tx_delay = <0x28>;
47+
rx_delay = <0x11>;
3648
status = "okay";
3749
};
3850

@@ -48,10 +60,8 @@
4860
bus-width = <4>;
4961
cap-mmc-highspeed;
5062
cap-sd-highspeed;
51-
cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
5263
disable-wp;
5364
vqmmc-supply = <&vccio_sd>;
54-
max-frequency = <150000000>;
5565
pinctrl-names = "default";
5666
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
5767
status = "okay";

arch/arm64/boot/dts/rockchip/rk3399pro-rock-pi-n10.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,8 @@
1515
model = "Radxa ROCK Pi N10";
1616
compatible = "radxa,rockpi-n10", "vamrs,rk3399pro-vmarc-som",
1717
"rockchip,rk3399pro";
18+
19+
chosen {
20+
stdout-path = "serial2:1500000n8";
21+
};
1822
};

arch/arm64/boot/dts/rockchip/rk3399pro-vmarc-som.dtsi

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@
1111

1212
/ {
1313
compatible = "vamrs,rk3399pro-vmarc-som", "rockchip,rk3399pro";
14-
15-
clkin_gmac: external-gmac-clock {
16-
compatible = "fixed-clock";
17-
clock-frequency = <125000000>;
18-
clock-output-names = "clkin_gmac";
19-
#clock-cells = <0>;
20-
};
2114
};
2215

2316
&cpu_l0 {
@@ -42,17 +35,8 @@
4235

4336
&gmac {
4437
assigned-clocks = <&cru SCLK_RMII_SRC>;
45-
assigned-clock-parents = <&clkin_gmac>;
46-
clock_in_out = "input";
4738
phy-supply = <&vcc_lan>;
48-
phy-mode = "rgmii";
49-
pinctrl-names = "default";
50-
pinctrl-0 = <&rgmii_pins>;
5139
snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
52-
snps,reset-active-low;
53-
snps,reset-delays-us = <0 10000 50000>;
54-
tx_delay = <0x28>;
55-
rx_delay = <0x11>;
5640
};
5741

5842
&i2c0 {
@@ -335,6 +319,11 @@
335319
status = "okay";
336320
};
337321

322+
&sdmmc {
323+
cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
324+
max-frequency = <150000000>;
325+
};
326+
338327
&tsadc {
339328
rockchip,hw-tshut-mode = <1>;
340329
rockchip,hw-tshut-polarity = <1>;

0 commit comments

Comments
 (0)