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 | |
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')
-rw-r--r-- | arch/arm/boot/dts/imx23-evk.dts | 11 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx28-evk.dts | 11 |
2 files changed, 20 insertions, 2 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 { |
diff --git a/arch/arm/boot/dts/imx28-evk.dts b/arch/arm/boot/dts/imx28-evk.dts index 2d4ea3bfff4c..3637bf3b1d59 100644 --- a/arch/arm/boot/dts/imx28-evk.dts +++ b/arch/arm/boot/dts/imx28-evk.dts | |||
@@ -123,7 +123,7 @@ | |||
123 | pinctrl-names = "default"; | 123 | pinctrl-names = "default"; |
124 | pinctrl-0 = <&lcdif_24bit_pins_a | 124 | pinctrl-0 = <&lcdif_24bit_pins_a |
125 | &lcdif_pins_evk>; | 125 | &lcdif_pins_evk>; |
126 | panel-enable-gpios = <&gpio3 30 0>; | 126 | lcd-supply = <®_lcd_3v3>; |
127 | display = <&display>; | 127 | display = <&display>; |
128 | status = "okay"; | 128 | status = "okay"; |
129 | 129 | ||
@@ -310,6 +310,15 @@ | |||
310 | gpio = <&gpio3 8 0>; | 310 | gpio = <&gpio3 8 0>; |
311 | enable-active-high; | 311 | enable-active-high; |
312 | }; | 312 | }; |
313 | |||
314 | reg_lcd_3v3: lcd-3v3 { | ||
315 | compatible = "regulator-fixed"; | ||
316 | regulator-name = "lcd-3v3"; | ||
317 | regulator-min-microvolt = <3300000>; | ||
318 | regulator-max-microvolt = <3300000>; | ||
319 | gpio = <&gpio3 30 0>; | ||
320 | enable-active-high; | ||
321 | }; | ||
313 | }; | 322 | }; |
314 | 323 | ||
315 | sound { | 324 | sound { |