[PATCH] ARM: dts: i.MX8: add pwm aliases
Bastian Krause
bst at pengutronix.de
Wed Sep 6 06:11:13 PDT 2023
Signed-off-by: Bastian Krause <bst at 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
More information about the barebox
mailing list