mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: i.MX8: add pwm aliases
@ 2023-09-06 13:11 Bastian Krause
  2023-09-06 14:10 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Bastian Krause @ 2023-09-06 13:11 UTC (permalink / raw)
  To: barebox; +Cc: afa, Bastian Krause

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-06 14:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-06 13:11 [PATCH] ARM: dts: i.MX8: add pwm aliases Bastian Krause
2023-09-06 14:10 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox