[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220413213313.11511-1-tommaso.merciai@amarulasolutions.com>
Date: Wed, 13 Apr 2022 23:33:11 +0200
From: Tommaso Merciai <tommaso.merciai@...rulasolutions.com>
To: unlisted-recipients:; (no To-header on input)
Cc: tommaso.merciai@...rulasolutions.com,
linux-amarula@...rulasolutions.com,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>,
NXP Linux Team <linux-imx@....com>,
Joakim Zhang <qiangqing.zhang@....com>,
Li Jun <jun.li@....com>, Richard Zhu <hongxing.zhu@....com>,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: [PATCH v4] arm64: dts: imx8mm-evk: add pwm1/backlight support
Add pwm1/backlight support nodes for imx8mm_evk board.
Align with u-boot dts
References:
- https://patchwork.ozlabs.org/project/uboot/patch/20220326111911.13720-9-tommaso.merciai@amarulasolutions.com/
Signed-off-by: Tommaso Merciai <tommaso.merciai@...rulasolutions.com>
---
Changes since v1:
- Fix commit body
- Enable pwm, backlight
Changes since v2:
- Remove status okay from pwm1,backlight (enable as default)
Changes since v3:
- Remove status okay only from backlight (enable as default), pwm1 is disabled
on imx8mm.dtsi, we need to enable it
arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi | 20 +++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
index 6d67df7692f1..6a209395452a 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
@@ -59,6 +59,14 @@ reg_usdhc2_vmmc: regulator-usdhc2 {
enable-active-high;
};
+ backlight: backlight {
+ 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>;
@@ -395,6 +403,12 @@ &wdog1 {
status = "okay";
};
+&pwm1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_backlight>;
+ status = "okay";
+};
+
&iomuxc {
pinctrl_fec1: fec1grp {
fsl,pins = <
@@ -549,4 +563,10 @@ pinctrl_wdog: wdoggrp {
MX8MM_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0x166
>;
};
+
+ pinctrl_backlight: backlightgrp {
+ fsl,pins = <
+ MX8MM_IOMUXC_GPIO1_IO01_PWM1_OUT 0x06
+ >;
+ };
};
--
2.25.1
Powered by blists - more mailing lists