]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: imx8mm_evk: add pwm1/backlight support
authorTommaso Merciai <tommaso.merciai@amarulasolutions.com>
Sat, 26 Mar 2022 11:19:09 +0000 (12:19 +0100)
committerStefano Babic <sbabic@denx.de>
Tue, 12 Apr 2022 15:33:55 +0000 (17:33 +0200)
Add pwm1/backlight support nodes for imx8mm_evk board

Signed-off-by: Tommaso Merciai <tommaso.merciai@amarulasolutions.com>
arch/arm/dts/imx8mm-evk.dtsi

index 60179e006d309570a917fd4937aa3251de491c0e..e7a2bd8a646ddb5aaa4de6881a54ac1d14f5e774 100644 (file)
                enable-active-high;
        };
 
+       backlight: backlight {
+               status = "disabled";
+               compatible = "pwm-backlight";
+               pwms = <&pwm1 0 5000000>;
+               brightness-levels = <0 255>;
+               num-interpolated-steps = <255>;
+               default-brightness-level = <250>;
+       };
+
        ir-receiver {
                compatible = "gpio-ir-receiver";
                gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
        status = "okay";
 };
 
+&pwm1 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_backlight>;
+       status = "disabled";
+};
+
 &iomuxc {
        pinctrl_fec1: fec1grp {
                fsl,pins = <
                        MX8MM_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B    0x166
                >;
        };
+
+       pinctrl_backlight: backlightgrp {
+               fsl,pins = <
+                       MX8MM_IOMUXC_GPIO1_IO01_PWM1_OUT        0x06
+               >;
+       };
 };