* [PATCH] ARM: dts: imx7d-sdb: Restore pwm backlight support
@ 2018-06-20 10:41 Leonard Crestez
2018-06-20 10:50 ` Fabio Estevam
2018-07-01 2:55 ` Shawn Guo
0 siblings, 2 replies; 3+ messages in thread
From: Leonard Crestez @ 2018-06-20 10:41 UTC (permalink / raw)
To: linux-arm-kernel
This was removed in commit 5eaeaccdaedb ("ARM: dts: imx7d-sdb: Pass
'enable-gpios' and 'power-supply' properties") with a note claiming that
GPIO1_IO01 is connected to a pin labeled as "PWREN" on the connector.
Despite that label this pin does actually work as a PWM controlling
brightness. So restore pwm functionality.
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
---
arch/arm/boot/dts/imx7d-sdb.dts | 21 +++++++++++++++++----
1 file changed, 17 insertions(+), 4 deletions(-)
This was tested with the suggested LCD8000-43T, maybe there are other
display options which don't have PWM and require that pin to be always
enabled?
This same LCD is also supported on imx6ul-14x14-evk with a similar
backlight.
diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts
index 940849163104..bf6f21b984ca 100644
--- a/arch/arm/boot/dts/imx7d-sdb.dts
+++ b/arch/arm/boot/dts/imx7d-sdb.dts
@@ -114,14 +114,21 @@
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio2 14 GPIO_ACTIVE_LOW>;
};
+ backlight: backlight {
+ compatible = "pwm-backlight";
+ pwms = <&pwm1 0 5000000 0>;
+ brightness-levels = <0 4 8 16 32 64 128 255>;
+ default-brightness-level = <6>;
+ status = "okay";
+ };
+
panel {
compatible = "innolux,at043tn24";
- pinctrl-0 = <&pinctrl_backlight>;
- enable-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
+ backlight = <&backlight>;
power-supply = <®_lcd_3v3>;
port {
panel_in: endpoint {
remote-endpoint = <&display_out>;
@@ -710,18 +717,24 @@
>;
};
};
};
+&pwm1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_pwm1>;
+ status = "okay";
+};
+
&iomuxc_lpsr {
pinctrl_wdog: wdoggrp {
fsl,pins = <
MX7D_PAD_LPSR_GPIO1_IO00__WDOG1_WDOG_B 0x74
>;
};
- pinctrl_backlight: backlightgrp {
+ pinctrl_pwm1: pwm1grp {
fsl,pins = <
- MX7D_PAD_LPSR_GPIO1_IO01__GPIO1_IO1 0x110b0
+ MX7D_PAD_LPSR_GPIO1_IO01__PWM1_OUT 0x30
>;
};
};
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] ARM: dts: imx7d-sdb: Restore pwm backlight support
2018-06-20 10:41 [PATCH] ARM: dts: imx7d-sdb: Restore pwm backlight support Leonard Crestez
@ 2018-06-20 10:50 ` Fabio Estevam
2018-07-01 2:55 ` Shawn Guo
1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2018-06-20 10:50 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Jun 20, 2018 at 7:41 AM, Leonard Crestez
<leonard.crestez@nxp.com> wrote:
> This was removed in commit 5eaeaccdaedb ("ARM: dts: imx7d-sdb: Pass
> 'enable-gpios' and 'power-supply' properties") with a note claiming that
> GPIO1_IO01 is connected to a pin labeled as "PWREN" on the connector.
>
> Despite that label this pin does actually work as a PWM controlling
> brightness. So restore pwm functionality.
>
> Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Yes, it seems to me that the PWM functionality has been removed by mistake:
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] ARM: dts: imx7d-sdb: Restore pwm backlight support
2018-06-20 10:41 [PATCH] ARM: dts: imx7d-sdb: Restore pwm backlight support Leonard Crestez
2018-06-20 10:50 ` Fabio Estevam
@ 2018-07-01 2:55 ` Shawn Guo
1 sibling, 0 replies; 3+ messages in thread
From: Shawn Guo @ 2018-07-01 2:55 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Jun 20, 2018 at 01:41:16PM +0300, Leonard Crestez wrote:
> This was removed in commit 5eaeaccdaedb ("ARM: dts: imx7d-sdb: Pass
> 'enable-gpios' and 'power-supply' properties") with a note claiming that
> GPIO1_IO01 is connected to a pin labeled as "PWREN" on the connector.
>
> Despite that label this pin does actually work as a PWM controlling
> brightness. So restore pwm functionality.
>
> Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-07-01 2:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-20 10:41 [PATCH] ARM: dts: imx7d-sdb: Restore pwm backlight support Leonard Crestez
2018-06-20 10:50 ` Fabio Estevam
2018-07-01 2:55 ` Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).