ARM: dts: Add basic support for dra62x j5-eco SoC
authorTony Lindgren <tony@atomide.com>
Wed, 23 Dec 2015 00:00:20 +0000 (16:00 -0800)
committerTony Lindgren <tony@atomide.com>
Wed, 23 Dec 2015 00:00:20 +0000 (16:00 -0800)
The dra762x j5-eco is similar to dm814x with a bit different clocks
and devices.

[tony@atomide.com: updated to leave out adpll clock driver references]
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/dra62x-clocks.dtsi [new file with mode: 0644]
arch/arm/boot/dts/dra62x.dtsi [new file with mode: 0644]

diff --git a/arch/arm/boot/dts/dra62x-clocks.dtsi b/arch/arm/boot/dts/dra62x-clocks.dtsi
new file mode 100644 (file)
index 0000000..6f98dc8
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include "dm814x-clocks.dtsi"
+
+/*
+ * Compared to dm814x, dra62x has different shifts and more mux options.
+ * Please add the extra options for ysclk_14 and 16 if really needed.
+ */
+&timer1_fck {
+       clocks = <&sysclk18_ck &aud_clkin0_ck &aud_clkin1_ck
+                 &aud_clkin2_ck &devosc_ck &auxosc_ck &tclkin_ck>;
+       ti,bit-shift = <4>;
+};
+
+&timer2_fck {
+       clocks = <&sysclk18_ck &aud_clkin0_ck &aud_clkin1_ck
+                 &aud_clkin2_ck &devosc_ck &auxosc_ck &tclkin_ck>;
+       ti,bit-shift = <8>;
+};
diff --git a/arch/arm/boot/dts/dra62x.dtsi b/arch/arm/boot/dts/dra62x.dtsi
new file mode 100644 (file)
index 0000000..d3cbb4e
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+ * This file is licensed under the terms of the GNU General Public License
+ * version 2.  This program is licensed "as is" without any warranty of any
+ * kind, whether express or implied.
+ */
+
+#include "dm814x.dtsi"
+
+/ {
+       compatible = "ti,dra62x";
+};
+
+/* Compared to dm814x, dra62x has different offsets for Ethernet */
+&mac {
+       reg = <0x4a100000 0x800
+               0x4a101200 0x100>;
+};
+
+&davinci_mdio {
+       reg = <0x4a101000 0x100>;
+};
+
+#include "dra62x-clocks.dtsi"