]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
arm64: dts: rk3399pro: vmarc-som: Move common properties into Carrier
authorJagan Teki <jagan@amarulasolutions.com>
Wed, 15 Jul 2020 08:34:15 +0000 (14:04 +0530)
committerHeiko Stuebner <heiko@sntech.de>
Sat, 18 Jul 2020 15:06:13 +0000 (17:06 +0200)
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 <jagan@amarulasolutions.com>
Link: https://lore.kernel.org/r/20200715083418.112003-5-jagan@amarulasolutions.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi
arch/arm64/boot/dts/rockchip/rk3399pro-rock-pi-n10.dts
arch/arm64/boot/dts/rockchip/rk3399pro-vmarc-som.dtsi

index 00b200a62263d6e14451f1d83c3c5b2f916459ef..450e5bb5af0b39df4dc155fd047b3c1198b36c04 100644 (file)
@@ -8,8 +8,11 @@
 #include <dt-bindings/pwm/pwm.h>
 
 / {
-       chosen {
-               stdout-path = "serial2:1500000n8";
+       clkin_gmac: external-gmac-clock {
+               compatible = "fixed-clock";
+               clock-frequency = <125000000>;
+               clock-output-names = "clkin_gmac";
+               #clock-cells = <0>;
        };
 
        vcc12v_dcin: vcc12v-dcin-regulator {
 };
 
 &gmac {
+       assigned-clock-parents = <&clkin_gmac>;
+       clock_in_out = "input";
+       phy-mode = "rgmii";
+       pinctrl-names = "default";
+       pinctrl-0 = <&rgmii_pins>;
+       snps,reset-active-low;
+       snps,reset-delays-us = <0 10000 50000>;
+       tx_delay = <0x28>;
+       rx_delay = <0x11>;
        status = "okay";
 };
 
        bus-width = <4>;
        cap-mmc-highspeed;
        cap-sd-highspeed;
-       cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
        disable-wp;
        vqmmc-supply = <&vccio_sd>;
-       max-frequency = <150000000>;
        pinctrl-names = "default";
        pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
        status = "okay";
index 539f4005386d2b9bc1141a6fd5d0e67667115b94..369de5dc0ebdf1766747aa79d092bd548c0c227a 100644 (file)
@@ -15,4 +15,8 @@
        model = "Radxa ROCK Pi N10";
        compatible = "radxa,rockpi-n10", "vamrs,rk3399pro-vmarc-som",
                     "rockchip,rk3399pro";
+
+       chosen {
+               stdout-path = "serial2:1500000n8";
+       };
 };
index d8fa8127d9dc70ed63c7d250dcc6dd285291cb71..37ed95d5f7e9f6071f81428b0d2c37d653fe60e9 100644 (file)
 
 / {
        compatible = "vamrs,rk3399pro-vmarc-som", "rockchip,rk3399pro";
-
-       clkin_gmac: external-gmac-clock {
-               compatible = "fixed-clock";
-               clock-frequency = <125000000>;
-               clock-output-names = "clkin_gmac";
-               #clock-cells = <0>;
-       };
 };
 
 &cpu_l0 {
 
 &gmac {
        assigned-clocks = <&cru SCLK_RMII_SRC>;
-       assigned-clock-parents = <&clkin_gmac>;
-       clock_in_out = "input";
        phy-supply = <&vcc_lan>;
-       phy-mode = "rgmii";
-       pinctrl-names = "default";
-       pinctrl-0 = <&rgmii_pins>;
        snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
-       snps,reset-active-low;
-       snps,reset-delays-us = <0 10000 50000>;
-       tx_delay = <0x28>;
-       rx_delay = <0x11>;
 };
 
 &i2c0 {
        status = "okay";
 };
 
+&sdmmc {
+       cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
+       max-frequency = <150000000>;
+};
+
 &tsadc {
        rockchip,hw-tshut-mode = <1>;
        rockchip,hw-tshut-polarity = <1>;