ARM: dts: imx7d-sdb: Restore pwm backlight support
This was removed in commit 5eaeaccdae
("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>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
This commit is contained in:
parent
eecd78bc78
commit
4a23e6ee9f
|
@ -108,10 +108,17 @@ reg_can2_3v3: regulator-can2-3v3 {
|
||||||
gpio = <&gpio2 14 GPIO_ACTIVE_LOW>;
|
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 {
|
panel {
|
||||||
compatible = "innolux,at043tn24";
|
compatible = "innolux,at043tn24";
|
||||||
pinctrl-0 = <&pinctrl_backlight>;
|
backlight = <&backlight>;
|
||||||
enable-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
|
|
||||||
power-supply = <®_lcd_3v3>;
|
power-supply = <®_lcd_3v3>;
|
||||||
|
|
||||||
port {
|
port {
|
||||||
|
@ -704,6 +711,12 @@ MX7D_PAD_SD3_STROBE__SD3_STROBE 0x1b
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&pwm1 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&pinctrl_pwm1>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&iomuxc_lpsr {
|
&iomuxc_lpsr {
|
||||||
pinctrl_wdog: wdoggrp {
|
pinctrl_wdog: wdoggrp {
|
||||||
fsl,pins = <
|
fsl,pins = <
|
||||||
|
@ -711,9 +724,9 @@ MX7D_PAD_LPSR_GPIO1_IO00__WDOG1_WDOG_B 0x74
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
|
||||||
pinctrl_backlight: backlightgrp {
|
pinctrl_pwm1: pwm1grp {
|
||||||
fsl,pins = <
|
fsl,pins = <
|
||||||
MX7D_PAD_LPSR_GPIO1_IO01__GPIO1_IO1 0x110b0
|
MX7D_PAD_LPSR_GPIO1_IO01__PWM1_OUT 0x30
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue