ARM: dts: marvell: dove: drop incorrect reg in fixed regulators
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 26 Jul 2023 07:02:54 +0000 (09:02 +0200)
committerGregory CLEMENT <gregory.clement@bootlin.com>
Sat, 12 Aug 2023 15:05:33 +0000 (17:05 +0200)
Fixed regulators are not in some bus and bindings do not allow a "reg"
property.  Move them out of "regulators" node to top-level.

  dove-cubox.dtb: regulator@1: Unevaluated properties are not allowed ('reg' was unexpected)

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
arch/arm/boot/dts/marvell/dove-cm-a510.dtsi
arch/arm/boot/dts/marvell/dove-cubox.dts
arch/arm/boot/dts/marvell/dove-d3plug.dts
arch/arm/boot/dts/marvell/dove-sbc-a510.dts

index 1082fdf..621cb14 100644 (file)
                };
        };
 
-       regulators {
-               compatible = "simple-bus";
-               #address-cells = <1>;
-               #size-cells = <0>;
-
-               wifi_power: regulator@1 {
-                       compatible = "regulator-fixed";
-                       regulator-name = "WiFi Power";
-                       regulator-min-microvolt = <3300000>;
-                       regulator-max-microvolt = <3300000>;
-                       gpio = <&gpio2 7 GPIO_ACTIVE_HIGH>;
-               };
+       wifi_power: regulator-1 {
+               compatible = "regulator-fixed";
+               regulator-name = "WiFi Power";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               gpio = <&gpio2 7 GPIO_ACTIVE_HIGH>;
        };
 };
 
index dbba0c8..bfde994 100644 (file)
                };
        };
 
-       regulators {
-               compatible = "simple-bus";
-               #address-cells = <1>;
-               #size-cells = <0>;
-
-               usb_power: regulator@1 {
-                       compatible = "regulator-fixed";
-                       reg = <1>;
-                       regulator-name = "USB Power";
-                       regulator-min-microvolt = <5000000>;
-                       regulator-max-microvolt = <5000000>;
-                       enable-active-high;
-                       regulator-always-on;
-                       regulator-boot-on;
-                       gpio = <&gpio0 1 0>;
-                       pinctrl-0 = <&pmx_gpio_1>;
-                       pinctrl-names = "default";
-               };
+       usb_power: regulator-1 {
+               compatible = "regulator-fixed";
+               regulator-name = "USB Power";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               enable-active-high;
+               regulator-always-on;
+               regulator-boot-on;
+               gpio = <&gpio0 1 0>;
+               pinctrl-0 = <&pmx_gpio_1>;
+               pinctrl-names = "default";
        };
 
        clocks {
index 5aa5d4a..a451fd5 100644 (file)
                };
        };
 
-       regulators {
-               compatible = "simple-bus";
-               #address-cells = <1>;
-               #size-cells = <0>;
-
-               usb_power: regulator@1 {
-                       compatible = "regulator-fixed";
-                       reg = <1>;
-                       regulator-name = "USB Power";
-                       regulator-min-microvolt = <5000000>;
-                       regulator-max-microvolt = <5000000>;
-                       enable-active-high;
-                       regulator-always-on;
-                       regulator-boot-on;
-                       gpio = <&gpio0 8 0>;
-                       pinctrl-0 = <&pmx_gpio_8>;
-                       pinctrl-names = "default";
-               };
+       usb_power: regulator-1 {
+               compatible = "regulator-fixed";
+               regulator-name = "USB Power";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               enable-active-high;
+               regulator-always-on;
+               regulator-boot-on;
+               gpio = <&gpio0 8 0>;
+               pinctrl-0 = <&pmx_gpio_8>;
+               pinctrl-names = "default";
        };
 };
 
index df021f9..8585ee5 100644 (file)
                stdout-path = &uart0;
        };
 
-       regulators {
-               usb0_power: regulator@2 {
-                       compatible = "regulator-fixed";
-                       regulator-name = "USB Power";
-                       regulator-min-microvolt = <5000000>;
-                       regulator-max-microvolt = <5000000>;
-                       gpio = <&gpio_ext 0 GPIO_ACTIVE_HIGH>;
-               };
-
-               mmc_power: regulator@3 {
-                       compatible = "regulator-fixed";
-                       regulator-name = "MMC Power";
-                       regulator-min-microvolt = <3300000>;
-                       regulator-max-microvolt = <3300000>;
-                       gpio = <&gpio_ext 13 GPIO_ACTIVE_HIGH>;
-               };
+       usb0_power: regulator-2 {
+               compatible = "regulator-fixed";
+               regulator-name = "USB Power";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               gpio = <&gpio_ext 0 GPIO_ACTIVE_HIGH>;
+       };
+
+       mmc_power: regulator-3 {
+               compatible = "regulator-fixed";
+               regulator-name = "MMC Power";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               gpio = <&gpio_ext 13 GPIO_ACTIVE_HIGH>;
        };
 };