[PATCH 6/9] MIPS: ath79: ar9331: add devicetree files

Antony Pavlov antonynpavlov at gmail.com
Thu Mar 27 17:26:41 EDT 2014


Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
---
 arch/mips/dts/ar9331.dtsi         | 26 ++++++++++++++++++++++++++
 arch/mips/dts/include/dt-bindings |  1 +
 2 files changed, 27 insertions(+)

diff --git a/arch/mips/dts/ar9331.dtsi b/arch/mips/dts/ar9331.dtsi
new file mode 100644
index 0000000..890fda8
--- /dev/null
+++ b/arch/mips/dts/ar9331.dtsi
@@ -0,0 +1,26 @@
+#include <dt-bindings/clock/ar933x-clk.h>
+
+#include "skeleton.dtsi"
+
+/ {
+	soc {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "simple-bus";
+		device_type = "soc";
+		ranges;
+
+		serial0: serial at b8020000 {
+			compatible = "qca,ar9330-uart";
+			reg = <0xb8020000 0x14>;
+			clocks = <&ar9331_clk AR933X_CLK_UART>;
+			status = "disabled";
+		};
+
+		ar9331_clk: clock {
+			compatible = "qca,ar933x-clk";
+			reg = <0xb8050000 0x48>;
+			#clock-cells = <1>;
+		};
+	};
+};
diff --git a/arch/mips/dts/include/dt-bindings b/arch/mips/dts/include/dt-bindings
new file mode 120000
index 0000000..0cecb3d
--- /dev/null
+++ b/arch/mips/dts/include/dt-bindings
@@ -0,0 +1 @@
+../../../../include/dt-bindings
\ No newline at end of file
-- 
1.9.0




More information about the barebox mailing list