mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Bastian Krause <bst@pengutronix.de>
To: barebox@lists.infradead.org
Cc: afa@pengutronix.de, Bastian Krause <bst@pengutronix.de>
Subject: [PATCH] ARM: dts: i.MX8: add pwm aliases
Date: Wed,  6 Sep 2023 15:11:13 +0200	[thread overview]
Message-ID: <20230906131113.1593228-1-bst@pengutronix.de> (raw)

Signed-off-by: Bastian Krause <bst@pengutronix.de>
---
 arch/arm/dts/imx8mm.dtsi | 4 ++++
 arch/arm/dts/imx8mn.dtsi | 9 +++++++++
 arch/arm/dts/imx8mp.dtsi | 7 +++++++
 3 files changed, 20 insertions(+)

diff --git a/arch/arm/dts/imx8mm.dtsi b/arch/arm/dts/imx8mm.dtsi
index 22ae01a20a2..982174375ec 100644
--- a/arch/arm/dts/imx8mm.dtsi
+++ b/arch/arm/dts/imx8mm.dtsi
@@ -5,6 +5,10 @@
 / {
 	aliases {
 		gpr.reboot_mode = &reboot_mode_gpr;
+		pwm0 = &pwm1;
+		pwm1 = &pwm2;
+		pwm2 = &pwm3;
+		pwm3 = &pwm4;
 	};
 };
 
diff --git a/arch/arm/dts/imx8mn.dtsi b/arch/arm/dts/imx8mn.dtsi
index 17e8f78bf2d..098bf0a3671 100644
--- a/arch/arm/dts/imx8mn.dtsi
+++ b/arch/arm/dts/imx8mn.dtsi
@@ -2,6 +2,15 @@
 
 #include <dt-bindings/features/imx8m.h>
 
+/ {
+	aliases {
+		pwm0 = &pwm1;
+		pwm1 = &pwm2;
+		pwm2 = &pwm3;
+		pwm3 = &pwm4;
+	};
+};
+
 feat: &ocotp {
 	#feature-cells = <1>;
 	barebox,feature-controller;
diff --git a/arch/arm/dts/imx8mp.dtsi b/arch/arm/dts/imx8mp.dtsi
index 0059c7b87b6..04767ad382c 100644
--- a/arch/arm/dts/imx8mp.dtsi
+++ b/arch/arm/dts/imx8mp.dtsi
@@ -8,6 +8,13 @@ remoteproc_cm7: remoteproc-cm7 {
 		clocks = <&clk IMX8MP_CLK_M7_CORE>;
 		syscon = <&src>;
 	};
+
+	aliases {
+		pwm0 = &pwm1;
+		pwm1 = &pwm2;
+		pwm2 = &pwm3;
+		pwm3 = &pwm4;
+	};
 };
 
 /* Temporary workaround until snps,gfladj-refclk-lpm-sel-quirk is supported */
-- 
2.39.2




             reply	other threads:[~2023-09-06 13:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-06 13:11 Bastian Krause [this message]
2023-09-06 14:10 ` Sascha Hauer

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=20230906131113.1593228-1-bst@pengutronix.de \
    --to=bst@pengutronix.de \
    --cc=afa@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox