Commit afa6b4f3 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Gregory CLEMENT

ARM: dts: marvell: armada: drop incorrect reg in fixed regulators

Fixed regulators are not in some bus and bindings do not allow a "reg"
property.  Move them out of "regulators" node to top-level.

  armada-370-dlink-dns327l.dtb: regulator@1: Unevaluated properties are not allowed ('reg' was unexpected)
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarGregory CLEMENT <gregory.clement@bootlin.com>
parent c44fdf86
...@@ -105,14 +105,8 @@ led-backup { ...@@ -105,14 +105,8 @@ led-backup {
}; };
}; };
regulators { usb_power: regulator-1 {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
usb_power: regulator@1 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
reg = <1>;
pinctrl-0 = <&xhci_pwr_pin>; pinctrl-0 = <&xhci_pwr_pin>;
pinctrl-names = "default"; pinctrl-names = "default";
regulator-name = "USB3.0 Port Power"; regulator-name = "USB3.0 Port Power";
...@@ -124,9 +118,8 @@ usb_power: regulator@1 { ...@@ -124,9 +118,8 @@ usb_power: regulator@1 {
gpio = <&gpio0 13 GPIO_ACTIVE_HIGH>; gpio = <&gpio0 13 GPIO_ACTIVE_HIGH>;
}; };
sata_r_power: regulator@2 { sata_r_power: regulator-2 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
reg = <2>;
pinctrl-0 = <&sata_r_pwr_pin>; pinctrl-0 = <&sata_r_pwr_pin>;
pinctrl-names = "default"; pinctrl-names = "default";
regulator-name = "SATA-R Power"; regulator-name = "SATA-R Power";
...@@ -139,9 +132,8 @@ sata_r_power: regulator@2 { ...@@ -139,9 +132,8 @@ sata_r_power: regulator@2 {
gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>; gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
}; };
sata_l_power: regulator@3 { sata_l_power: regulator-3 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
reg = <3>;
pinctrl-0 = <&sata_l_pwr_pin>; pinctrl-0 = <&sata_l_pwr_pin>;
pinctrl-names = "default"; pinctrl-names = "default";
regulator-name = "SATA-L Power"; regulator-name = "SATA-L Power";
...@@ -153,7 +145,6 @@ sata_l_power: regulator@3 { ...@@ -153,7 +145,6 @@ sata_l_power: regulator@3 {
regulator-boot-on; regulator-boot-on;
gpio = <&gpio1 24 GPIO_ACTIVE_HIGH>; gpio = <&gpio1 24 GPIO_ACTIVE_HIGH>;
}; };
};
}; };
&pciec { &pciec {
......
...@@ -46,10 +46,8 @@ pca9554: pca9554@21 { ...@@ -46,10 +46,8 @@ pca9554: pca9554@21 {
}; };
}; };
regulators { regulator-3 {
regulator@3 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
reg = <3>;
regulator-name = "SATA2 power"; regulator-name = "SATA2 power";
regulator-min-microvolt = <5000000>; regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
...@@ -58,9 +56,9 @@ regulator@3 { ...@@ -58,9 +56,9 @@ regulator@3 {
regulator-boot-on; regulator-boot-on;
gpio = <&pca9554 6 GPIO_ACTIVE_HIGH>; gpio = <&pca9554 6 GPIO_ACTIVE_HIGH>;
}; };
regulator@4 {
regulator-4 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
reg = <4>;
regulator-name = "SATA3 power"; regulator-name = "SATA3 power";
regulator-min-microvolt = <5000000>; regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
...@@ -69,7 +67,6 @@ regulator@4 { ...@@ -69,7 +67,6 @@ regulator@4 {
regulator-boot-on; regulator-boot-on;
gpio = <&pca9554 7 GPIO_ACTIVE_HIGH>; gpio = <&pca9554 7 GPIO_ACTIVE_HIGH>;
}; };
};
gpio-leds { gpio-leds {
led-red-sata2 { led-red-sata2 {
......
...@@ -70,15 +70,8 @@ rtc@6f { ...@@ -70,15 +70,8 @@ rtc@6f {
}; };
regulators { regulator-1 {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
regulator@1 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
reg = <1>;
regulator-name = "SATA0 power"; regulator-name = "SATA0 power";
regulator-min-microvolt = <5000000>; regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
...@@ -87,9 +80,9 @@ regulator@1 { ...@@ -87,9 +80,9 @@ regulator@1 {
regulator-boot-on; regulator-boot-on;
gpio = <&gpio1 18 GPIO_ACTIVE_HIGH>; gpio = <&gpio1 18 GPIO_ACTIVE_HIGH>;
}; };
regulator@2 {
regulator-2 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
reg = <2>;
regulator-name = "SATA1 power"; regulator-name = "SATA1 power";
regulator-min-microvolt = <5000000>; regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
...@@ -98,7 +91,6 @@ regulator@2 { ...@@ -98,7 +91,6 @@ regulator@2 {
regulator-boot-on; regulator-boot-on;
gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>; gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
}; };
};
gpio-fan { gpio-fan {
compatible = "gpio-fan"; compatible = "gpio-fan";
......
...@@ -32,10 +32,8 @@ sata@a0000 { ...@@ -32,10 +32,8 @@ sata@a0000 {
}; };
}; };
regulators { regulator-2 {
regulator@2 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
reg = <2>;
regulator-name = "SATA1 power"; regulator-name = "SATA1 power";
regulator-min-microvolt = <5000000>; regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
...@@ -44,5 +42,4 @@ regulator@2 { ...@@ -44,5 +42,4 @@ regulator@2 {
regulator-boot-on; regulator-boot-on;
gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>; gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
}; };
};
}; };
...@@ -53,14 +53,8 @@ usb@50000 { ...@@ -53,14 +53,8 @@ usb@50000 {
}; };
}; };
regulators { regulator-0 {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
regulator@0 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
reg = <0>;
regulator-name = "USB Power"; regulator-name = "USB Power";
regulator-min-microvolt = <5000000>; regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
...@@ -68,9 +62,9 @@ regulator@0 { ...@@ -68,9 +62,9 @@ regulator@0 {
regulator-boot-on; regulator-boot-on;
gpio = <&gpio1 27 GPIO_ACTIVE_LOW>; gpio = <&gpio1 27 GPIO_ACTIVE_LOW>;
}; };
regulator@1 {
regulator-1 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
reg = <1>;
regulator-name = "SATA0 power"; regulator-name = "SATA0 power";
regulator-min-microvolt = <5000000>; regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
...@@ -79,7 +73,6 @@ regulator@1 { ...@@ -79,7 +73,6 @@ regulator@1 {
regulator-boot-on; regulator-boot-on;
gpio = <&gpio1 18 GPIO_ACTIVE_HIGH>; gpio = <&gpio1 18 GPIO_ACTIVE_HIGH>;
}; };
};
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
......
...@@ -142,16 +142,8 @@ disk2-led-amber { ...@@ -142,16 +142,8 @@ disk2-led-amber {
}; };
}; };
regulators { sata1_regulator: sata1-regulator-1 {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
pinctrl-0 = <&sata1_pwr_pin &sata2_pwr_pin>;
pinctrl-names = "default";
sata1_regulator: sata1-regulator@1 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
reg = <1>;
regulator-name = "SATA1 Power"; regulator-name = "SATA1 Power";
regulator-min-microvolt = <5000000>; regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
...@@ -160,11 +152,12 @@ sata1_regulator: sata1-regulator@1 { ...@@ -160,11 +152,12 @@ sata1_regulator: sata1-regulator@1 {
regulator-always-on; regulator-always-on;
regulator-boot-on; regulator-boot-on;
gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>; gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>;
pinctrl-0 = <&sata1_pwr_pin>;
pinctrl-names = "default";
}; };
sata2_regulator: sata2-regulator@2 { sata2_regulator: sata2-regulator-2 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
reg = <2>;
regulator-name = "SATA2 Power"; regulator-name = "SATA2 Power";
regulator-min-microvolt = <5000000>; regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
...@@ -173,7 +166,8 @@ sata2_regulator: sata2-regulator@2 { ...@@ -173,7 +166,8 @@ sata2_regulator: sata2-regulator@2 {
regulator-always-on; regulator-always-on;
regulator-boot-on; regulator-boot-on;
gpio = <&gpio1 30 GPIO_ACTIVE_HIGH>; gpio = <&gpio1 30 GPIO_ACTIVE_HIGH>;
}; pinctrl-0 = <&sata2_pwr_pin>;
pinctrl-names = "default";
}; };
}; };
......
...@@ -109,17 +109,8 @@ ethernet@74000 { ...@@ -109,17 +109,8 @@ ethernet@74000 {
}; };
}; };
regulators { sata1_regulator: sata1-regulator-1 {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
pinctrl-0 = <&sata1_pwr_pin &sata2_pwr_pin
&sata3_pwr_pin &sata4_pwr_pin>;
pinctrl-names = "default";
sata1_regulator: sata1-regulator@1 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
reg = <1>;
regulator-name = "SATA1 Power"; regulator-name = "SATA1 Power";
regulator-min-microvolt = <5000000>; regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
...@@ -128,11 +119,12 @@ sata1_regulator: sata1-regulator@1 { ...@@ -128,11 +119,12 @@ sata1_regulator: sata1-regulator@1 {
regulator-always-on; regulator-always-on;
regulator-boot-on; regulator-boot-on;
gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>; gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>;
pinctrl-0 = <&sata1_pwr_pin>;
pinctrl-names = "default";
}; };
sata2_regulator: sata2-regulator@2 { sata2_regulator: sata2-regulator-2 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
reg = <2>;
regulator-name = "SATA2 Power"; regulator-name = "SATA2 Power";
regulator-min-microvolt = <5000000>; regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
...@@ -141,11 +133,12 @@ sata2_regulator: sata2-regulator@2 { ...@@ -141,11 +133,12 @@ sata2_regulator: sata2-regulator@2 {
regulator-always-on; regulator-always-on;
regulator-boot-on; regulator-boot-on;
gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>; gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
pinctrl-0 = <&sata2_pwr_pin>;
pinctrl-names = "default";
}; };
sata3_regulator: sata3-regulator@3 { sata3_regulator: sata3-regulator-3 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
reg = <3>;
regulator-name = "SATA3 Power"; regulator-name = "SATA3 Power";
regulator-min-microvolt = <5000000>; regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
...@@ -154,11 +147,12 @@ sata3_regulator: sata3-regulator@3 { ...@@ -154,11 +147,12 @@ sata3_regulator: sata3-regulator@3 {
regulator-always-on; regulator-always-on;
regulator-boot-on; regulator-boot-on;
gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>; gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>;
pinctrl-0 = <&sata3_pwr_pin>;
pinctrl-names = "default";
}; };
sata4_regulator: sata4-regulator@4 { sata4_regulator: sata4-regulator-4 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
reg = <4>;
regulator-name = "SATA4 Power"; regulator-name = "SATA4 Power";
regulator-min-microvolt = <5000000>; regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
...@@ -167,7 +161,8 @@ sata4_regulator: sata4-regulator@4 { ...@@ -167,7 +161,8 @@ sata4_regulator: sata4-regulator@4 {
regulator-always-on; regulator-always-on;
regulator-boot-on; regulator-boot-on;
gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>; gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>;
}; pinctrl-0 = <&sata4_pwr_pin>;
pinctrl-names = "default";
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment