]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: imx: apf51dev: add gpio-backlight support
authorGwenhael Goavec-Merou <gwenhael.goavec-merou@armadeus.com>
Tue, 16 Dec 2014 11:20:57 +0000 (12:20 +0100)
committerShawn Guo <shawn.guo@linaro.org>
Mon, 5 Jan 2015 13:05:59 +0000 (21:05 +0800)
Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@armadeus.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx51-apf51dev.dts

index c5a9a24c280a48941bf004ee7370e39ce3c23068..93d3ea12328c50c07cf9d7ab4d09fc952dc5a397 100644 (file)
        model = "Armadeus Systems APF51Dev docking/development board";
        compatible = "armadeus,imx51-apf51dev", "armadeus,imx51-apf51", "fsl,imx51";
 
+       backlight@bl1{
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_backlight>;
+               compatible = "gpio-backlight";
+               gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>;
+               default-on;
+       };
+
        display@di1 {
                compatible = "fsl,imx-parallel-display";
                interface-pix-fmt = "bgr666";
        pinctrl-0 = <&pinctrl_hog>;
 
        imx51-apf51dev {
+               pinctrl_backlight: bl1grp {
+                       fsl,pins = <
+                               MX51_PAD_DI1_D1_CS__GPIO3_4 0x1F5
+                       >;
+               };
+
                pinctrl_hog: hoggrp {
                        fsl,pins = <
                                MX51_PAD_EIM_EB2__GPIO2_22   0x0C5