mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 09:56:25 -04:00
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>
This commit is contained in:
committed by
Shawn Guo
parent
ca5a60d3be
commit
6a8daebd17
@@ -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 @@ &iomuxc {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user