[PATCH V4 6/9] ARM: mxs: Provide regulator to pwm-backlight
Shawn Guo
shawn.guo at linaro.org
Tue Mar 19 23:13:26 EDT 2013
On Tue, Mar 19, 2013 at 11:59:30AM -0700, Andrew Chew wrote:
> The pwm-backlight driver now takes a mandatory regulator that is gotten
> during driver probe. Initialize a dummy regulator to satisfy this
> requirement.
>
> Signed-off-by: Andrew Chew <achew at nvidia.com>
> ---
> arch/arm/boot/dts/imx23-evk.dts | 6 ++++++
> arch/arm/boot/dts/imx28-apf28dev.dts | 6 ++++++
> arch/arm/boot/dts/imx28-cfa10049.dts | 6 ++++++
> arch/arm/boot/dts/imx28-evk.dts | 6 ++++++
> arch/arm/boot/dts/imx28-tx28.dts | 6 ++++++
> 5 files changed, 30 insertions(+)
>
> diff --git a/arch/arm/boot/dts/imx23-evk.dts b/arch/arm/boot/dts/imx23-evk.dts
> index 035c13f..e48e36c 100644
> --- a/arch/arm/boot/dts/imx23-evk.dts
> +++ b/arch/arm/boot/dts/imx23-evk.dts
> @@ -97,10 +97,16 @@
> };
> };
>
> + bl_en: fixed-regulator {
The node name is too generic. Very likely we have other fixed regulator
in a dts.
For mxs, we have all such board level regulators defined in node
"regulators" as children.
Shawn
> + compatible = "regulator-fixed";
> + regulator-name = "bl-en-supply";
> + };
> +
> backlight {
> compatible = "pwm-backlight";
> pwms = <&pwm 2 5000000>;
> brightness-levels = <0 4 8 16 32 64 128 255>;
> default-brightness-level = <6>;
> + enable-supply = <&bl_en>;
> };
> };
More information about the linux-arm-kernel
mailing list