All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tommaso Merciai <tommaso.merciai@amarulasolutions.com>
Cc: tommaso.merciai@amarulasolutions.com,
	Stefano Babic <sbabic@denx.de>,
	Fabio Estevam <festevam@gmail.com>,
	"NXP i.MX U-Boot Team" <uboot-imx@nxp.com>,
	Peng Fan <peng.fan@nxp.com>,
	Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>,
	Alice Guo <alice.guo@nxp.com>, Ye Li <ye.li@nxp.com>,
	u-boot@lists.denx.de
Subject: [PATCH v2 8/9] arm: dts: imx8mm_evk: add pwm1/backlight support
Date: Wed, 16 Mar 2022 16:27:44 +0100	[thread overview]
Message-ID: <20220316152746.47768-9-tommaso.merciai@amarulasolutions.com> (raw)
In-Reply-To: <20220316152746.47768-1-tommaso.merciai@amarulasolutions.com>

Add pwm1/backlight support nodes for imx8mm_evk board

Signed-off-by: Tommaso Merciai <tommaso.merciai@amarulasolutions.com>
---
 arch/arm/dts/imx8mm-evk.dtsi | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/arch/arm/dts/imx8mm-evk.dtsi b/arch/arm/dts/imx8mm-evk.dtsi
index 60179e006d..e7a2bd8a64 100644
--- a/arch/arm/dts/imx8mm-evk.dtsi
+++ b/arch/arm/dts/imx8mm-evk.dtsi
@@ -41,6 +41,15 @@
 		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>;
@@ -350,6 +359,12 @@
 	status = "okay";
 };
 
+&pwm1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_backlight>;
+	status = "disabled";
+};
+
 &iomuxc {
 	pinctrl_fec1: fec1grp {
 		fsl,pins = <
@@ -491,4 +506,10 @@
 			MX8MM_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B	0x166
 		>;
 	};
+
+	pinctrl_backlight: backlightgrp {
+		fsl,pins = <
+			MX8MM_IOMUXC_GPIO1_IO01_PWM1_OUT	0x06
+		>;
+	};
 };
-- 
2.25.1


  parent reply	other threads:[~2022-03-16 15:29 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-16 15:27 [PATCH v2 0/9] imx8mm: add pwm-imx backlight support Tommaso Merciai
2022-03-16 15:27 ` [PATCH v2 1/9] arch: mach-imx: imx8m: add pwm1/pwm2 base address Tommaso Merciai
2022-03-16 15:27 ` [PATCH v2 2/9] arch: mach-imx: imx8m: add pwm ctrl registers fields defines Tommaso Merciai
2022-03-16 15:27 ` [PATCH v2 3/9] arch: mach-imx: imx8m: add pwm_regs struct in imx-regs Tommaso Merciai
2022-03-16 15:27 ` [PATCH v2 4/9] arm: imx: imx8mm: add enable_pwm_clk function Tommaso Merciai
2022-03-16 19:07   ` Michael Nazzareno Trimarchi
2022-03-17  7:40     ` Tommaso Merciai
2022-03-16 20:54   ` Marek Vasut
2022-03-17  7:39     ` Tommaso Merciai
2022-03-17 11:58       ` Marek Vasut
2022-03-17 12:38         ` Tommaso Merciai
2022-03-17 12:44           ` Marek Vasut
2022-03-17 15:13           ` Tommaso Merciai
2022-03-17 15:31             ` Marek Vasut
2022-03-24 10:55               ` Tommaso Merciai
2022-03-16 15:27 ` [PATCH v2 5/9] imx8m: clock: " Tommaso Merciai
2022-03-16 15:27 ` [PATCH v2 6/9] configs: imx8mm_evk: add CONFIG_IMX6_PWM_PER_CLK config Tommaso Merciai
2022-03-16 15:27 ` [PATCH v2 7/9] imx8mm_evk: spl: enable pwm clock Tommaso Merciai
2022-03-16 23:55   ` Fabio Estevam
2022-03-17  0:48     ` Fabio Estevam
2022-03-17  7:34       ` Tommaso Merciai
2022-03-17 10:55         ` Fabio Estevam
2022-03-17 12:40           ` Tommaso Merciai
2022-03-16 15:27 ` Tommaso Merciai [this message]
2022-03-16 15:27 ` [PATCH v2 9/9] configs: imx8mm_evk: add pwm backlight support Tommaso Merciai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220316152746.47768-9-tommaso.merciai@amarulasolutions.com \
    --to=tommaso.merciai@amarulasolutions.com \
    --cc=alice.guo@nxp.com \
    --cc=andrey.zhizhikin@leica-geosystems.com \
    --cc=festevam@gmail.com \
    --cc=peng.fan@nxp.com \
    --cc=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-imx@nxp.com \
    --cc=ye.li@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.