Re: [PATCH] ARM: OMAP3: DTS: Fix backlight regulator binding on torpedo and SOM-LV

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 21, 2016 at 9:33 AM,  <aford173@xxxxxxxxx> wrote:
> From: Adam Ford <aford173@xxxxxxxxx>
>
> 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@xxxxxxxxx>
>
> 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux