Commit 6a8daebd authored by Andreas Kemnade's avatar Andreas Kemnade Committed by Shawn Guo

ARM: dts: imx6sl-tolino-shine2hd: Add backlight

Add backlight for Tolino Shine2 HD. It uses the PWM
of the embedded controller.
Signed-off-by: default avatarAndreas Kemnade <andreas@kemnade.info>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent ca5a60d3
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment