diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-04-07 14:44:59 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2013-04-08 03:44:55 -0400 |
commit | 4344429d3d926d219671f607125cff51223a140a (patch) | |
tree | 38d3c3c93f5af889d98f8866962f142ff99f90d8 /arch/arm/boot/dts/imx23-evk.dts | |
parent | ac77bc227e96bb6d42b86ee5e20e4fa6a743d632 (diff) |
video: mxsfb: Introduce regulator support
Instead of using a custom binding for retrieving the GPIO that activates the
LCD from devicetree, use a standard regulator.
This approach has the advantage to be more generic.
For example: in the case of a board that has a PMIC supplying the LCD voltage,
the current approach would not work, as it only searches for a GPIO pin.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts/imx23-evk.dts')
-rw-r--r-- | arch/arm/boot/dts/imx23-evk.dts | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/imx23-evk.dts b/arch/arm/boot/dts/imx23-evk.dts index 7880e17e27f5..da0588a04131 100644 --- a/arch/arm/boot/dts/imx23-evk.dts +++ b/arch/arm/boot/dts/imx23-evk.dts | |||
@@ -59,7 +59,7 @@ | |||
59 | lcdif@80030000 { | 59 | lcdif@80030000 { |
60 | pinctrl-names = "default"; | 60 | pinctrl-names = "default"; |
61 | pinctrl-0 = <&lcdif_24bit_pins_a>; | 61 | pinctrl-0 = <&lcdif_24bit_pins_a>; |
62 | panel-enable-gpios = <&gpio1 18 0>; | 62 | lcd-supply = <®_lcd_3v3>; |
63 | display = <&display>; | 63 | display = <&display>; |
64 | status = "okay"; | 64 | status = "okay"; |
65 | 65 | ||
@@ -120,6 +120,15 @@ | |||
120 | regulator-max-microvolt = <3300000>; | 120 | regulator-max-microvolt = <3300000>; |
121 | gpio = <&gpio1 29 0>; | 121 | gpio = <&gpio1 29 0>; |
122 | }; | 122 | }; |
123 | |||
124 | reg_lcd_3v3: lcd-3v3 { | ||
125 | compatible = "regulator-fixed"; | ||
126 | regulator-name = "lcd-3v3"; | ||
127 | regulator-min-microvolt = <3300000>; | ||
128 | regulator-max-microvolt = <3300000>; | ||
129 | gpio = <&gpio1 18 0>; | ||
130 | enable-active-high; | ||
131 | }; | ||
123 | }; | 132 | }; |
124 | 133 | ||
125 | backlight { | 134 | backlight { |