arm64: dts: rockchip: move NanoPC-T6 parts to DTS
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Thu, 29 Aug 2024 12:26:54 +0000 (14:26 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 29 Aug 2024 12:57:16 +0000 (14:57 +0200)
MiniPCIe slot is present only in first version of NanoPC-T6 (2301).

Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Link: https://lore.kernel.org/r/20240829-friendlyelec-nanopc-t6-lts-v6-3-edff247e8c02@linaro.org
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts
arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi

index 3f8fbec65098e73e424c10557a13f47a05fc5404..92321c1d3ff10eeafa2281a958b622d8cfea805a 100644 (file)
        model = "FriendlyElec NanoPC-T6";
        compatible = "friendlyarm,nanopc-t6", "rockchip,rk3588";
 
+       vdd_4g_3v3: vdd-4g-3v3-regulator {
+               compatible = "regulator-fixed";
+               enable-active-high;
+               gpio = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pin_4g_lte_pwren>;
+               regulator-name = "vdd_4g_3v3";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               vin-supply = <&vcc5v0_sys>;
+       };
+};
+
+&pinctrl {
+       usb {
+               pin_4g_lte_pwren: 4g-lte-pwren {
+                       rockchip,pins = <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
+};
+
+&u2phy2_host {
+       phy-supply = <&vdd_4g_3v3>;
 };
index ad8e36a339dc45c8cca0eea36d8e5b1822e46138..d199f51a220ca3c767d512015df615eb53959629 100644 (file)
                regulator-name = "vcc3v3_sd_s0";
                vin-supply = <&vcc_3v3_s3>;
        };
-
-       vdd_4g_3v3: vdd-4g-3v3-regulator {
-               compatible = "regulator-fixed";
-               enable-active-high;
-               gpio = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
-               pinctrl-names = "default";
-               pinctrl-0 = <&pin_4g_lte_pwren>;
-               regulator-name = "vdd_4g_3v3";
-               regulator-min-microvolt = <3300000>;
-               regulator-max-microvolt = <3300000>;
-               vin-supply = <&vcc5v0_sys>;
-       };
 };
 
 &combphy0_ps {
        };
 
        usb {
-               pin_4g_lte_pwren: 4g-lte-pwren {
-                       rockchip,pins = <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
-               };
-
                typec5v_pwren: typec5v-pwren {
                        rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
                };
 };
 
 &u2phy2_host {
-       phy-supply = <&vdd_4g_3v3>;
        status = "okay";
 };