]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: imx6qdl-sabrelite: add pwms for backlights
authorTroy Kisky <troy.kisky@boundarydevices.com>
Tue, 17 Dec 2013 01:12:59 +0000 (18:12 -0700)
committerShawn Guo <shawn.guo@linaro.org>
Tue, 17 Dec 2013 13:44:14 +0000 (21:44 +0800)
add pwm1 for lcd backlight
add pwm4 for lvds backlight
add pwm3 for ov5640 mipi clock

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx6qdl-sabrelite.dtsi

index 29f0b4044f086dadaf5d8a1f5bd3537e2bcc07b7..701059954319971ee3904fae2110d9199109bf40 100644 (file)
                mux-int-port = <1>;
                mux-ext-port = <4>;
        };
+
+       backlight_lcd {
+               compatible = "pwm-backlight";
+               pwms = <&pwm1 0 5000000>;
+               brightness-levels = <0 4 8 16 32 64 128 255>;
+               default-brightness-level = <7>;
+               power-supply = <&reg_3p3v>;
+               status = "okay";
+       };
+
+       backlight_lvds {
+               compatible = "pwm-backlight";
+               pwms = <&pwm4 0 5000000>;
+               brightness-levels = <0 4 8 16 32 64 128 255>;
+               default-brightness-level = <7>;
+               power-supply = <&reg_3p3v>;
+               status = "okay";
+       };
 };
 
 &audmux {
                        fsl,pins = <MX6QDL_I2C1_PINGRP1>;
                };
 
+               pinctrl_pwm1: pwm1grp {
+                       fsl,pins = <
+                               MX6QDL_PAD_SD1_DAT3__PWM1_OUT 0x1b0b1
+                       >;
+               };
+
+               pinctrl_pwm3: pwm3grp {
+                       fsl,pins = <
+                               MX6QDL_PAD_SD1_DAT1__PWM3_OUT 0x1b0b1
+                       >;
+               };
+
+               pinctrl_pwm4: pwm4grp {
+                       fsl,pins = <
+                               MX6QDL_PAD_SD1_CMD__PWM4_OUT 0x1b0b1
+                       >;
+               };
+
                pinctrl_uart1: uart1grp {
                        fsl,pins = <MX6QDL_UART1_PINGRP2>;
                };
        status = "okay";
 };
 
+&pwm1 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_pwm1>;
+       status = "okay";
+};
+
+&pwm3 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_pwm3>;
+       status = "okay";
+};
+
+&pwm4 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_pwm4>;
+       status = "okay";
+};
+
 &ssi1 {
        fsl,mode = "i2s-slave";
        status = "okay";