Commit 0d7b6f28 authored by Lothar Waßmann's avatar Lothar Waßmann Committed by Shawn Guo

ARM: dts: imx28-tx28: remove the regulators bus

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: default avatarLothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent a408079f
...@@ -75,82 +75,69 @@ onewire { ...@@ -75,82 +75,69 @@ onewire {
status = "disabled"; status = "disabled";
}; };
regulators { reg_usb0_vbus: regulator-usb0-vbus {
compatible = "simple-bus"; compatible = "regulator-fixed";
#address-cells = <1>; regulator-name = "usb0_vbus";
#size-cells = <0>; regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
reg_usb0_vbus: regulator@0 { gpio = <&gpio0 18 GPIO_ACTIVE_HIGH>;
compatible = "regulator-fixed"; enable-active-high;
reg = <0>; };
regulator-name = "usb0_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
gpio = <&gpio0 18 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
reg_usb1_vbus: regulator@1 { reg_usb1_vbus: regulator-usb1-vbus {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
reg = <1>; regulator-name = "usb1_vbus";
regulator-name = "usb1_vbus"; regulator-min-microvolt = <5000000>;
regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
regulator-max-microvolt = <5000000>; gpio = <&gpio3 27 GPIO_ACTIVE_HIGH>;
gpio = <&gpio3 27 GPIO_ACTIVE_HIGH>; enable-active-high;
enable-active-high; };
};
reg_2p5v: regulator@2 { reg_2p5v: regulator-2p5v {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
reg = <2>; regulator-name = "2P5V";
regulator-name = "2P5V"; regulator-min-microvolt = <2500000>;
regulator-min-microvolt = <2500000>; regulator-max-microvolt = <2500000>;
regulator-max-microvolt = <2500000>; regulator-always-on;
regulator-always-on; };
};
reg_3p3v: regulator@3 { reg_3p3v: regulator-3p3v {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
reg = <3>; regulator-name = "3P3V";
regulator-name = "3P3V"; regulator-min-microvolt = <3300000>;
regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
regulator-max-microvolt = <3300000>; regulator-always-on;
regulator-always-on; };
};
reg_can_xcvr: regulator@4 { reg_can_xcvr: regulator-can-xcvr {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
reg = <4>; regulator-name = "CAN XCVR";
regulator-name = "CAN XCVR"; regulator-min-microvolt = <3300000>;
regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
regulator-max-microvolt = <3300000>; gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>; pinctrl-names = "default";
pinctrl-names = "default"; pinctrl-0 = <&tx28_flexcan_xcvr_pins>;
pinctrl-0 = <&tx28_flexcan_xcvr_pins>; };
};
reg_lcd: regulator@5 { reg_lcd: regulator-lcd-power {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
reg = <5>; regulator-name = "LCD POWER";
regulator-name = "LCD POWER"; regulator-min-microvolt = <3300000>;
regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
regulator-max-microvolt = <3300000>; gpio = <&gpio1 31 GPIO_ACTIVE_HIGH>;
gpio = <&gpio1 31 GPIO_ACTIVE_HIGH>; enable-active-high;
enable-active-high; };
};
reg_lcd_reset: regulator@6 { reg_lcd_reset: regulator-lcd-reset {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
reg = <6>; regulator-name = "LCD RESET";
regulator-name = "LCD RESET"; regulator-min-microvolt = <3300000>;
regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
regulator-max-microvolt = <3300000>; gpio = <&gpio3 30 GPIO_ACTIVE_HIGH>;
gpio = <&gpio3 30 GPIO_ACTIVE_HIGH>; startup-delay-us = <300000>;
startup-delay-us = <300000>; enable-active-high;
enable-active-high; regulator-always-on;
regulator-always-on; regulator-boot-on;
regulator-boot-on;
};
}; };
clocks { clocks {
......
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