]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ARM: dts: imx28-apx4devkit: Fix the regulator description
authorFabio Estevam <festevam@denx.de>
Tue, 20 Aug 2024 00:24:35 +0000 (21:24 -0300)
committerShawn Guo <shawnguo@kernel.org>
Sat, 31 Aug 2024 14:00:56 +0000 (22:00 +0800)
The regulator should not be placed under simple-bus.

Remove it from simple-bus to fix the following dt-schema warnings:

'regulators' does not match '^([a-z][a-z0-9\\-]+-bus|bus|localbus|soc|axi|ahb|apb)(@.+)?$'
regulators: #size-cells:0:0: 0 is not one of [1, 2]
regulators: regulator@0:reg:0: [0] is too short
regulators: 'ranges' is a required property

Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/nxp/mxs/imx28-apx4devkit.dts

index f9bf40d96568106781e61c0ea3a95dc12e91843c..4c4ea91c286f954b0a2e6d811746ac57584f2b40 100644 (file)
                reg = <0x40000000 0x04000000>;
        };
 
-       regulators {
-               compatible = "simple-bus";
-               #address-cells = <1>;
-               #size-cells = <0>;
-
-               reg_3p3v: regulator@0 {
-                       compatible = "regulator-fixed";
-                       reg = <0>;
-                       regulator-name = "3P3V";
-                       regulator-min-microvolt = <3300000>;
-                       regulator-max-microvolt = <3300000>;
-                       regulator-always-on;
-               };
+
+       reg_3p3v: regulator-3p3v {
+               compatible = "regulator-fixed";
+               regulator-name = "3P3V";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               regulator-always-on;
        };
 
        sound {