[PATCH 2/4] ARM: i.MX51: Add pwm aliases to device tree
Sascha Hauer
s.hauer at pengutronix.de
Tue Nov 11 23:21:21 PST 2014
Needed for accessing the PWMs in barebox.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
arch/arm/dts/imx51-genesi-efika-sb.dts | 1 +
arch/arm/dts/imx51.dtsi | 6 ++++++
2 files changed, 7 insertions(+)
create mode 100644 arch/arm/dts/imx51.dtsi
diff --git a/arch/arm/dts/imx51-genesi-efika-sb.dts b/arch/arm/dts/imx51-genesi-efika-sb.dts
index 6d6ab81..26829d1 100644
--- a/arch/arm/dts/imx51-genesi-efika-sb.dts
+++ b/arch/arm/dts/imx51-genesi-efika-sb.dts
@@ -10,6 +10,7 @@
*/
/dts-v1/;
+#include "imx51.dtsi"
#include <arm/imx51.dtsi>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
diff --git a/arch/arm/dts/imx51.dtsi b/arch/arm/dts/imx51.dtsi
new file mode 100644
index 0000000..828a6c2
--- /dev/null
+++ b/arch/arm/dts/imx51.dtsi
@@ -0,0 +1,6 @@
+/{
+ aliases {
+ pwm0 = &pwm1;
+ pwm1 = &pwm2;
+ };
+};
--
2.1.1
More information about the barebox
mailing list