This patch adds i.MX7ULP EVK board MIPI-DSI backlight support.

Signed-off-by: Anson Huang <anson.hu...@nxp.com>
---
No changes.
---
 arch/arm/boot/dts/imx7ulp-evk.dts | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/arch/arm/boot/dts/imx7ulp-evk.dts 
b/arch/arm/boot/dts/imx7ulp-evk.dts
index a09026a..94891c7 100644
--- a/arch/arm/boot/dts/imx7ulp-evk.dts
+++ b/arch/arm/boot/dts/imx7ulp-evk.dts
@@ -8,6 +8,7 @@
 /dts-v1/;
 
 #include "imx7ulp.dtsi"
+#include <dt-bindings/pwm/pwm.h>
 
 / {
        model = "NXP i.MX7ULP EVK";
@@ -22,6 +23,14 @@
                reg = <0x60000000 0x40000000>;
        };
 
+       backlight {
+               compatible = "pwm-backlight";
+               pwms = <&tpm4 1 50000 0>;
+               brightness-levels = <0 20 25 30 35 40 100>;
+               default-brightness-level = <6>;
+               status = "okay";
+       };
+
        reg_vsd_3v3: regulator-vsd-3v3 {
                compatible = "regulator-fixed";
                regulator-name = "VSD_3V3";
@@ -40,6 +49,12 @@
        status = "okay";
 };
 
+&tpm4 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_pwm0>;
+       status = "okay";
+};
+
 &usdhc0 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_usdhc0>;
@@ -57,6 +72,12 @@
                bias-pull-up;
        };
 
+       pinctrl_pwm0: pwm0grp {
+               fsl,pins = <
+                       IMX7ULP_PAD_PTF2__TPM4_CH1      0x2
+               >;
+       };
+
        pinctrl_usdhc0: usdhc0grp {
                fsl,pins = <
                        IMX7ULP_PAD_PTD1__SDHC0_CMD     0x43
-- 
2.7.4

Reply via email to