diff options
author | Andreas Kemnade <andreas@kemnade.info> | 2022-10-19 09:51:58 +0300 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2022-10-29 07:07:24 +0300 |
commit | 6a8daebd173c934f985ab792c878d629f5b6d2e2 (patch) | |
tree | 4575b0d55ef8bc113dccedd8326feb1119c8b289 /arch/arm/boot/dts/imx6sl-tolino-shine2hd.dts | |
parent | ca5a60d3bedb31daa0e07c0ff96422b784df7730 (diff) | |
download | linux-6a8daebd173c934f985ab792c878d629f5b6d2e2.tar.xz |
ARM: dts: imx6sl-tolino-shine2hd: Add backlight
Add backlight for Tolino Shine2 HD. It uses the PWM
of the embedded controller.
Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/boot/dts/imx6sl-tolino-shine2hd.dts')
-rw-r--r-- | arch/arm/boot/dts/imx6sl-tolino-shine2hd.dts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/imx6sl-tolino-shine2hd.dts b/arch/arm/boot/dts/imx6sl-tolino-shine2hd.dts index 663ee9df79e6..ea0ce59aa4f1 100644 --- a/arch/arm/boot/dts/imx6sl-tolino-shine2hd.dts +++ b/arch/arm/boot/dts/imx6sl-tolino-shine2hd.dts @@ -18,6 +18,21 @@ model = "Tolino Shine 2 HD"; compatible = "kobo,tolino-shine2hd", "fsl,imx6sl"; + backlight { + compatible = "pwm-backlight"; + pwms = <&ec 0 50000>; + power-supply = <&backlight_regulator>; + }; + + backlight_regulator: regulator-backlight { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_backlight_power>; + regulator-name = "backlight"; + gpio = <&gpio2 10 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + chosen { stdout-path = &uart1; }; @@ -299,6 +314,12 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog>; + pinctrl_backlight_power: backlight-powergrp { + fsl,pins = < + MX6SL_PAD_EPDC_PWRCTRL3__GPIO2_IO10 0x10059 + >; + }; + pinctrl_gpio_keys: gpio-keysgrp { fsl,pins = < MX6SL_PAD_SD1_DAT1__GPIO5_IO08 0x17059 |