Message ID | 1477060403-3278-1-git-send-email-aford173@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Fri, Oct 21, 2016 at 9:33 AM, <aford173@gmail.com> wrote: > From: Adam Ford <aford173@gmail.com> > > The backlight bindings require a regulator. If one is missing, the > system generates an warning. This patch creates a dummy regulator > for the backlight to eliminate this warning. > Tony, Please disregard this patch. It seems to work without the patch, and it's causing some other issues. Sorry to waste everyone's time. > Signed-off-by: Adam Ford <aford173@gmail.com> > > diff --git a/arch/arm/boot/dts/logicpd-som-lv-37xx-devkit.dts b/arch/arm/boot/dts/logicpd-som-lv-37xx-devkit.dts > index da85984..9276070 100644 > --- a/arch/arm/boot/dts/logicpd-som-lv-37xx-devkit.dts > +++ b/arch/arm/boot/dts/logicpd-som-lv-37xx-devkit.dts > @@ -144,6 +144,12 @@ > }; > }; > > + backlight_reg: backlight_reg { > + regulator-name = "backlight-supply"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + }; > + > bl: backlight { > compatible = "pwm-backlight"; > pinctrl-names = "default"; > @@ -151,6 +157,7 @@ > pwms = <&twl_pwm 0 5000000>; > brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; > default-brightness-level = <7>; > + power-supply = <&backlight_reg>; > enable-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; /* gpio_8 */ > }; > }; > diff --git a/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts b/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts > index 08cce17..8741c47 100644 > --- a/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts > +++ b/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts > @@ -177,6 +177,12 @@ > }; > }; > > + backlight_reg: backlight_reg { > + regulator-name = "backlight-supply"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + }; > + > bl: backlight { > compatible = "pwm-backlight"; > pinctrl-names = "default"; > @@ -184,6 +190,7 @@ > pwms = <&pwm10 0 5000000 0>; > brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; > default-brightness-level = <7>; > + power-supply = <&backlight_reg>; > enable-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH>; /* gpio_154 */ > }; > }; > -- > 2.7.4 > -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/arm/boot/dts/logicpd-som-lv-37xx-devkit.dts b/arch/arm/boot/dts/logicpd-som-lv-37xx-devkit.dts index da85984..9276070 100644 --- a/arch/arm/boot/dts/logicpd-som-lv-37xx-devkit.dts +++ b/arch/arm/boot/dts/logicpd-som-lv-37xx-devkit.dts @@ -144,6 +144,12 @@ }; }; + backlight_reg: backlight_reg { + regulator-name = "backlight-supply"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + }; + bl: backlight { compatible = "pwm-backlight"; pinctrl-names = "default"; @@ -151,6 +157,7 @@ pwms = <&twl_pwm 0 5000000>; brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; default-brightness-level = <7>; + power-supply = <&backlight_reg>; enable-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; /* gpio_8 */ }; }; diff --git a/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts b/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts index 08cce17..8741c47 100644 --- a/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts +++ b/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts @@ -177,6 +177,12 @@ }; }; + backlight_reg: backlight_reg { + regulator-name = "backlight-supply"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + }; + bl: backlight { compatible = "pwm-backlight"; pinctrl-names = "default"; @@ -184,6 +190,7 @@ pwms = <&pwm10 0 5000000 0>; brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; default-brightness-level = <7>; + power-supply = <&backlight_reg>; enable-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH>; /* gpio_154 */ }; };