MLK-11699-1 ARM: dts: imx6sx-sabreauto: add dts support for backlight and pwm4
authorFancy Fang <chen.fang@freescale.com>
Tue, 13 Oct 2015 07:08:46 +0000 (15:08 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:52 +0000 (14:48 -0500)
Add dts support for backlight and pwm4 modules on
imx6sx sabreauto board.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
arch/arm/boot/dts/imx6sx-sabreauto.dts

index 938ef6b..30caaff 100644 (file)
        model = "Freescale i.MX6 SoloX Sabre Auto Board";
        compatible = "fsl,imx6sx-sabreauto", "fsl,imx6sx";
 
+       backlight2 {
+               compatible = "pwm-backlight";
+               pwms = <&pwm4 0 5000000>;
+               brightness-levels = <0 4 8 16 32 64 128 255>;
+               default-brightness-level = <6>;
+               fb-names = "mxs-lcdif1";
+       };
+
        clocks {
                codec_osc: anaclk2 {
                        #clock-cells = <0>;
        status = "okay";
 };
 
+&pwm4 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_pwm4_0>;
+       status = "okay";
+};
+
 &iomuxc {
        imx6x-sabreauto {
                pinctrl_audmux_3: audmux-3 {
                        >;
                };
 
+               pinctrl_pwm4_0: pwm4grp-0 {
+                       fsl,pins = <
+                               MX6SX_PAD_SD1_DATA1__PWM4_OUT 0x110b0
+                       >;
+               };
+
                pinctrl_spdif_3: spdifgrp-3 {
                        fsl,pins = <
                                MX6SX_PAD_ENET2_COL__SPDIF_IN           0x1b0b0