]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ARM: dts: rockchip: Adapt tps65910 nodes on RK3066 boards
authorJohan Jonker <jbx6244@gmail.com>
Thu, 30 Oct 2025 23:38:55 +0000 (00:38 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Fri, 31 Oct 2025 22:42:54 +0000 (23:42 +0100)
The binding for tps65910 has been converted to yaml and instead of the
deprecated regulator-compatible, the node-names are now used to identify
the individual regulators. Also some additional required properties
were added.

Adapt the tps65910 nodes on Rockchip boards to adhere to the updated
binding, which also allows us to drop the tps65910.dtsi include.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Link: https://patch.msgid.link/b3d05df4-a916-48e1-8d9e-590782806bd5@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/boot/dts/rockchip/rk3066a-bqcurie2.dts
arch/arm/boot/dts/rockchip/rk3066a-marsboard.dts
arch/arm/boot/dts/rockchip/rk3066a-rayeager.dts

index c227691013eaf0c3cd53e8a5b2140c2ca3892753..65f8bc804d21213acb3d083f6e5ecde7ca1940b2 100644 (file)
        clock-frequency = <400000>;
 
        tps: tps@2d {
+               compatible = "ti,tps65910";
                reg = <0x2d>;
 
+               gpio-controller;
+               #gpio-cells = <2>;
+
                interrupt-parent = <&gpio6>;
                interrupts = <RK_PA6 IRQ_TYPE_LEVEL_LOW>;
 
+               interrupt-controller;
+               #interrupt-cells = <2>;
+
                vcc5-supply = <&vcc_io>;
                vcc6-supply = <&vcc_io>;
 
                regulators {
-                       vcc_rtc: regulator@0 {
+                       vcc_rtc: vrtc {
                                regulator-name = "vcc_rtc";
                                regulator-always-on;
                        };
 
-                       vcc_io: regulator@1 {
+                       vcc_io: vio {
                                regulator-name = "vcc_io";
                                regulator-always-on;
                        };
 
-                       vdd_arm: regulator@2 {
+                       vdd_arm: vdd1 {
                                regulator-name = "vdd_arm";
                                regulator-min-microvolt = <600000>;
                                regulator-max-microvolt = <1500000>;
                                regulator-always-on;
                        };
 
-                       vcc_ddr: regulator@3 {
+                       vcc_ddr: vdd2 {
                                regulator-name = "vcc_ddr";
                                regulator-min-microvolt = <600000>;
                                regulator-max-microvolt = <1500000>;
                                regulator-always-on;
                        };
 
-                       vcc18_cif: regulator@5 {
+                       vcc18_cif: vdig1 {
                                regulator-name = "vcc18_cif";
                                regulator-always-on;
                        };
 
-                       vdd_11: regulator@6 {
+                       vdd_11: vdig2 {
                                regulator-name = "vdd_11";
                                regulator-always-on;
                        };
 
-                       vcc_25: regulator@7 {
+                       vcc_25: vpll {
                                regulator-name = "vcc_25";
                                regulator-always-on;
                        };
 
-                       vcc_18: regulator@8 {
+                       vcc_18: vdac {
                                regulator-name = "vcc_18";
                                regulator-always-on;
                        };
 
-                       vcc25_hdmi: regulator@9 {
+                       vcc25_hdmi: vaux1 {
                                regulator-name = "vcc25_hdmi";
                                regulator-always-on;
                        };
 
-                       vcca_33: regulator@10 {
+                       vcca_33: vaux2 {
                                regulator-name = "vcca_33";
                                regulator-always-on;
                        };
 
-                       vcc_tp: regulator@11 {
+                       vcc_tp: vaux33 {
                                regulator-name = "vcc_tp";
                                regulator-always-on;
                        };
 
-                       vcc28_cif: regulator@12 {
+                       vcc28_cif: vmmc {
                                regulator-name = "vcc28_cif";
                                regulator-always-on;
                        };
        };
 };
 
-/* must be included after &tps gets defined */
-#include "../tps65910.dtsi"
-
 &mmc0 { /* sdmmc */
        status = "okay";
        pinctrl-names = "default";
index de42d1855121cba774243dafafe8ee4291d6cba4..15dbe1677e309c71536d5f32fab27718c82d341d 100644 (file)
        clock-frequency = <400000>;
 
        tps: tps@2d {
+               compatible = "ti,tps65910";
                reg = <0x2d>;
 
+               gpio-controller;
+               #gpio-cells = <2>;
+
                interrupt-parent = <&gpio6>;
                interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
 
+               interrupt-controller;
+               #interrupt-cells = <2>;
+
                vcc1-supply = <&vsys>;
                vcc2-supply = <&vsys>;
                vcc3-supply = <&vsys>;
                vccio-supply = <&vsys>;
 
                regulators {
-                       vcc_rtc: regulator@0 {
+                       vcc_rtc: vrtc {
                                regulator-name = "vcc_rtc";
                                regulator-always-on;
                        };
 
-                       vcc_io: regulator@1 {
+                       vcc_io: vio {
                                regulator-name = "vcc_io";
                                regulator-always-on;
                        };
 
-                       vdd_arm: regulator@2 {
+                       vdd_arm: vdd1 {
                                regulator-name = "vdd_arm";
                                regulator-min-microvolt = <600000>;
                                regulator-max-microvolt = <1500000>;
                                regulator-always-on;
                        };
 
-                       vcc_ddr: regulator@3 {
+                       vcc_ddr: vdd2 {
                                regulator-name = "vcc_ddr";
                                regulator-min-microvolt = <600000>;
                                regulator-max-microvolt = <1500000>;
                                regulator-always-on;
                        };
 
-                       vcc18_cif: regulator@5 {
+                       vcc18_cif: vdig1 {
                                regulator-name = "vcc18_cif";
                                regulator-always-on;
                        };
 
-                       vdd_11: regulator@6 {
+                       vdd_11: vdig2 {
                                regulator-name = "vdd_11";
                                regulator-always-on;
                        };
 
-                       vcc_25: regulator@7 {
+                       vcc_25: vpll {
                                regulator-name = "vcc_25";
                                regulator-always-on;
                        };
 
-                       vcc_18: regulator@8 {
+                       vcc_18: vdac {
                                regulator-name = "vcc_18";
                                regulator-always-on;
                        };
 
-                       vcc25_hdmi: regulator@9 {
+                       vcc25_hdmi: vaux1 {
                                regulator-name = "vcc25_hdmi";
                                regulator-always-on;
                        };
 
-                       vcca_33: regulator@10 {
+                       vcca_33: vaux2 {
                                regulator-name = "vcca_33";
                                regulator-always-on;
                        };
 
-                       vcc_rmii: regulator@11 {
+                       vcc_rmii: vaux33 {
                                regulator-name = "vcc_rmii";
                        };
 
-                       vcc28_cif: regulator@12 {
+                       vcc28_cif: vmmc {
                                regulator-name = "vcc28_cif";
                                regulator-always-on;
                        };
        };
 };
 
-/* must be included after &tps gets defined */
-#include "../tps65910.dtsi"
-
 &emac {
        phy = <&phy0>;
        phy-supply = <&vcc_rmii>;
index b0b029f146436f40b88f4459b5d0bebfbc3f050b..07c03ed6fac683905a68a056035ad2f316db380d 100644 (file)
        status = "okay";
 
        tps: tps@2d {
+               compatible = "ti,tps65910";
                reg = <0x2d>;
+
+               gpio-controller;
+               #gpio-cells = <2>;
+
                interrupt-parent = <&gpio6>;
                interrupts = <RK_PA4 IRQ_TYPE_EDGE_RISING>;
+
+               interrupt-controller;
+               #interrupt-cells = <2>;
+
                pinctrl-names = "default";
                pinctrl-0 = <&pmic_int>, <&pwr_hold>;
 
                vccio-supply = <&vsys>;
 
                regulators {
-                       vcc_rtc: regulator@0 {
+                       vcc_rtc: vrtc {
                                regulator-name = "vcc_rtc";
                                regulator-always-on;
                        };
 
-                       vcc_io: regulator@1 {
+                       vcc_io: vio {
                                regulator-name = "vcc_io";
                                regulator-min-microvolt = <3300000>;
                                regulator-max-microvolt = <3300000>;
                                regulator-always-on;
                        };
 
-                       vdd_arm: regulator@2 {
+                       vdd_arm: vdd1 {
                                regulator-name = "vdd_arm";
                                regulator-min-microvolt = <600000>;
                                regulator-max-microvolt = <1500000>;
                                regulator-boot-on;
                        };
 
-                       vcc_ddr: regulator@3 {
+                       vcc_ddr: vdd2 {
                                regulator-name = "vcc_ddr";
                                regulator-min-microvolt = <600000>;
                                regulator-max-microvolt = <1500000>;
                                regulator-boot-on;
                        };
 
-                       vcc18: regulator@5 {
+                       vcc18: vdig1 {
                                regulator-name = "vcc18";
                                regulator-min-microvolt = <1800000>;
                                regulator-max-microvolt = <1800000>;
                                regulator-always-on;
                        };
 
-                       vdd_11: regulator@6 {
+                       vdd_11: vdig2 {
                                regulator-name = "vdd_11";
                                regulator-min-microvolt = <1100000>;
                                regulator-max-microvolt = <1100000>;
                                regulator-always-on;
                        };
 
-                       vcc_25: regulator@7 {
+                       vcc_25: vpll {
                                regulator-name = "vcc_25";
                                regulator-min-microvolt = <2500000>;
                                regulator-max-microvolt = <2500000>;
                                regulator-always-on;
                        };
 
-                       vccio_wl: regulator@8 {
+                       vccio_wl: vdac {
                                regulator-name = "vccio_wl";
                                regulator-min-microvolt = <1800000>;
                                regulator-max-microvolt = <1800000>;
                        };
 
-                       vcc25_hdmi: regulator@9 {
+                       vcc25_hdmi: vaux1 {
                                regulator-name = "vcc25_hdmi";
                                regulator-min-microvolt = <2500000>;
                                regulator-max-microvolt = <2500000>;
                        };
 
-                       vcca_33: regulator@10 {
+                       vcca_33: vaux2 {
                                regulator-name = "vcca_33";
                                regulator-min-microvolt = <3300000>;
                                regulator-max-microvolt = <3300000>;
                        };
 
-                       vcc_rmii: regulator@11 {
+                       vcc_rmii: vaux33 {
                                regulator-name = "vcc_rmii";
                                regulator-min-microvolt = <3300000>;
                                regulator-max-microvolt = <3300000>;
                        };
 
-                       vcc28_cif: regulator@12 {
+                       vcc28_cif: vmmc {
                                regulator-name = "vcc28_cif";
                                regulator-min-microvolt = <2800000>;
                                regulator-max-microvolt = <2800000>;
        };
 };
 
-#include "../tps65910.dtsi"
-
 &i2c2 {
        status = "okay";
 };