From: shawn.guo@freescale.com (Shawn Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/3] ARM: dts: imx: add LVDS backlight for Ventana
Date: Tue, 29 Apr 2014 14:01:07 +0800 [thread overview]
Message-ID: <20140429060106.GG16451@dragon> (raw)
In-Reply-To: <1398377247-3901-3-git-send-email-tharvey@gateworks.com>
On Thu, Apr 24, 2014 at 03:07:26PM -0700, Tim Harvey wrote:
> The GW54xx/GW53xx/GW52xx all support LVDS with a PWM controlled backlight.
>
> Signed-off-by: Tim Harvey <tharvey@gateworks.com>
> ---
> arch/arm/boot/dts/imx6qdl-gw52xx.dtsi | 20 ++++++++++++++++++++
> arch/arm/boot/dts/imx6qdl-gw53xx.dtsi | 20 ++++++++++++++++++++
> arch/arm/boot/dts/imx6qdl-gw54xx.dtsi | 20 ++++++++++++++++++++
> 3 files changed, 60 insertions(+)
>
> diff --git a/arch/arm/boot/dts/imx6qdl-gw52xx.dtsi b/arch/arm/boot/dts/imx6qdl-gw52xx.dtsi
> index 607888c..9c9259b 100644
> --- a/arch/arm/boot/dts/imx6qdl-gw52xx.dtsi
> +++ b/arch/arm/boot/dts/imx6qdl-gw52xx.dtsi
> @@ -27,6 +27,14 @@
> bootargs = "console=ttymxc1,115200";
> };
>
> + backlight {
> + compatible = "pwm-backlight";
> + pwms = <&pwm4 0 5000000>;
> + brightness-levels = <0 4 8 16 32 64 128 255>;
> + default-brightness-level = <7>;
> + status = "okay";
This might be copied from some existing dts file. But the "okay" status
line is only needed for nodes that have a "disabled" status line in
<soc>.dtsi. You can just drop the line from this backlight node.
Shawn
> + };
> +
> leds {
> compatible = "gpio-leds";
>
> @@ -399,6 +407,12 @@
> >;
> };
>
> + pinctrl_pwm4: pwm4grp {
> + fsl,pins = <
> + MX6QDL_PAD_SD1_CMD__PWM4_OUT 0x1b0b1
> + >;
> + };
> +
> pinctrl_uart1: uart1grp {
> fsl,pins = <
> MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA 0x1b0b1
> @@ -451,6 +465,12 @@
> status = "okay";
> };
>
> +&pwm4 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_pwm4>;
> + status = "okay";
> +};
> +
> &ssi1 {
> fsl,mode = "i2s-slave";
> status = "okay";
> diff --git a/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi b/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi
> index ef7bd99..3e146d6 100644
> --- a/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi
> +++ b/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi
> @@ -30,6 +30,14 @@
> bootargs = "console=ttymxc1,115200";
> };
>
> + backlight {
> + compatible = "pwm-backlight";
> + pwms = <&pwm4 0 5000000>;
> + brightness-levels = <0 4 8 16 32 64 128 255>;
> + default-brightness-level = <7>;
> + status = "okay";
> + };
> +
> leds {
> compatible = "gpio-leds";
>
> @@ -439,6 +447,12 @@
> >;
> };
>
> + pinctrl_pwm4: pwm4grp {
> + fsl,pins = <
> + MX6QDL_PAD_SD1_CMD__PWM4_OUT 0x1b0b1
> + >;
> + };
> +
> pinctrl_uart1: uart1grp {
> fsl,pins = <
> MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA 0x1b0b1
> @@ -513,6 +527,12 @@
> };
> };
>
> +&pwm4 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_pwm4>;
> + status = "okay";
> +};
> +
> &ssi1 {
> fsl,mode = "i2s-slave";
> status = "okay";
> diff --git a/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi b/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi
> index 4ce8f68..d145f8c 100644
> --- a/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi
> +++ b/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi
> @@ -30,6 +30,14 @@
> bootargs = "console=ttymxc1,115200";
> };
>
> + backlight {
> + compatible = "pwm-backlight";
> + pwms = <&pwm4 0 5000000>;
> + brightness-levels = <0 4 8 16 32 64 128 255>;
> + default-brightness-level = <7>;
> + status = "okay";
> + };
> +
> leds {
> compatible = "gpio-leds";
>
> @@ -461,6 +469,12 @@
> >;
> };
>
> + pinctrl_pwm4: pwm4grp {
> + fsl,pins = <
> + MX6QDL_PAD_SD1_CMD__PWM4_OUT 0x1b0b1
> + >;
> + };
> +
> pinctrl_uart1: uart1grp {
> fsl,pins = <
> MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA 0x1b0b1
> @@ -535,6 +549,12 @@
> };
> };
>
> +&pwm4 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_pwm4>;
> + status = "okay";
> +};
> +
> &ssi1 {
> fsl,mode = "i2s-slave";
> status = "okay";
> --
> 1.8.3.2
>
>
>
next prev parent reply other threads:[~2014-04-29 6:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-24 22:07 [PATCH 0/3] ARM: dts: imx: various fixes for LVDS on Ventana Tim Harvey
2014-04-24 22:07 ` [PATCH 1/3] ARM: dts: imx: Fix LVDS mapping for Ventana GW53xx/GW54xx Tim Harvey
2014-04-24 22:07 ` [PATCH 2/3] ARM: dts: imx: add LVDS backlight for Ventana Tim Harvey
2014-04-29 6:01 ` Shawn Guo [this message]
2014-05-01 6:32 ` [PATCH 1/2] " Tim Harvey
2014-05-04 12:38 ` Shawn Guo
2014-04-24 22:07 ` [PATCH 3/3] ARM: dts: imx: Fix LVDS mapping for Ventana GW52xx Tim Harvey
2014-04-29 5:55 ` Shawn Guo
2014-05-01 6:34 ` [PATCH 2/2] " Tim Harvey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140429060106.GG16451@dragon \
--to=shawn.guo@freescale.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.