ARM: dts: imx7d-sdb: Adjust the regulator nodes
It is not recommended to place the regulator nodes inside 'simple-bus', so adjust them accordingly. The motivation for rearranging this is to make it easier to add new regulator nodes in the future. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
This commit is contained in:
parent
12de44f55d
commit
b877039aa1
1 changed files with 28 additions and 38 deletions
|
@ -73,14 +73,8 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
regulators {
|
reg_usb_otg1_vbus: regulator-usb-otg1-vbus {
|
||||||
compatible = "simple-bus";
|
|
||||||
#address-cells = <1>;
|
|
||||||
#size-cells = <0>;
|
|
||||||
|
|
||||||
reg_usb_otg1_vbus: regulator@0 {
|
|
||||||
compatible = "regulator-fixed";
|
compatible = "regulator-fixed";
|
||||||
reg = <0>;
|
|
||||||
regulator-name = "usb_otg1_vbus";
|
regulator-name = "usb_otg1_vbus";
|
||||||
regulator-min-microvolt = <5000000>;
|
regulator-min-microvolt = <5000000>;
|
||||||
regulator-max-microvolt = <5000000>;
|
regulator-max-microvolt = <5000000>;
|
||||||
|
@ -88,9 +82,8 @@
|
||||||
enable-active-high;
|
enable-active-high;
|
||||||
};
|
};
|
||||||
|
|
||||||
reg_usb_otg2_vbus: regulator@1 {
|
reg_usb_otg2_vbus: regulator-usb-otg1-vbus {
|
||||||
compatible = "regulator-fixed";
|
compatible = "regulator-fixed";
|
||||||
reg = <1>;
|
|
||||||
regulator-name = "usb_otg2_vbus";
|
regulator-name = "usb_otg2_vbus";
|
||||||
regulator-min-microvolt = <5000000>;
|
regulator-min-microvolt = <5000000>;
|
||||||
regulator-max-microvolt = <5000000>;
|
regulator-max-microvolt = <5000000>;
|
||||||
|
@ -98,24 +91,21 @@
|
||||||
enable-active-high;
|
enable-active-high;
|
||||||
};
|
};
|
||||||
|
|
||||||
reg_can2_3v3: regulator@2 {
|
reg_can2_3v3: regulator-can2-3v3 {
|
||||||
compatible = "regulator-fixed";
|
compatible = "regulator-fixed";
|
||||||
reg = <2>;
|
|
||||||
regulator-name = "can2-3v3";
|
regulator-name = "can2-3v3";
|
||||||
regulator-min-microvolt = <3300000>;
|
regulator-min-microvolt = <3300000>;
|
||||||
regulator-max-microvolt = <3300000>;
|
regulator-max-microvolt = <3300000>;
|
||||||
gpio = <&gpio1 7 GPIO_ACTIVE_LOW>;
|
gpio = <&gpio1 7 GPIO_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
|
||||||
reg_vref_1v8: regulator@3 {
|
reg_vref_1v8: regulator-vref-1v8 {
|
||||||
compatible = "regulator-fixed";
|
compatible = "regulator-fixed";
|
||||||
reg = <3>;
|
|
||||||
regulator-name = "vref-1v8";
|
regulator-name = "vref-1v8";
|
||||||
regulator-min-microvolt = <1800000>;
|
regulator-min-microvolt = <1800000>;
|
||||||
regulator-max-microvolt = <1800000>;
|
regulator-max-microvolt = <1800000>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
&adc1 {
|
&adc1 {
|
||||||
vref-supply = <®_vref_1v8>;
|
vref-supply = <®_vref_1v8>;
|
||||||
|
|
Loading…
Add table
Reference in a new issue