Skip to contentSkip to conversation

Add minimal support for dra62x j5-eco

PATCH New Tony Lindgren 2 participants 6 messages Dec 3, 2015 – Dec 4, 2015

Subsystems (5)
lore
Share & tools
lore

Tony Lindgren

author maintainer
#0 lore raw

cover Add minimal support for dra62x j5-eco

Hi all,

Here are minimal changes to add support for dra62x also known as jacinto 5 or j5-eco. We can leverage the dm814x support being fixed in mainline kernel also for dra62x. Compared to dm814x, dra62x has a bit different clocks and devices.

To boot j5-eco evm, you need the the patches below on v4.4-rc3 with the following additional patches posted earlier.

Basic clock driver for dm814x:

http://marc.info/?l=linux-omap&m=144910652029316&w=2

Fixes for dm814x:

http://marc.info/?l=linux-omap&m=144901336001085&w=2

And also make sure you have the initcall level change patch that is needed for having omap clock drivers as regular Linux device drivers:

http://marc.info/?l=linux-omap&m=144890081111207&w=2

Regards,

Tony

Tony Lindgren (3):
ARM: OMAP2+: Fix SoC detection for dra62x j5-eco
ARM: dts: Add basic support for dra62x j5-eco SoC
ARM: dts: Add minimal dra62x j5-eco evm support

 arch/arm/boot/dts/Makefile             |  3 ++-
 arch/arm/boot/dts/dra62x-clocks.dtsi   | 49 ++++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/dra62x-j5eco-evm.dts | 28 +++++++++++++++++++
 arch/arm/boot/dts/dra62x.dtsi          | 23 ++++++++++++++++
 arch/arm/mach-omap2/id.c               |  4 ++-
 5 files changed, 105 insertions(+), 2 deletions(-)
 create mode 100644 arch/arm/boot/dts/dra62x-clocks.dtsi
 create mode 100644 arch/arm/boot/dts/dra62x-j5eco-evm.dts
 create mode 100644 arch/arm/boot/dts/dra62x.dtsi
Signature · 1 line
2.6.2
author maintainer
#1 lore raw

PATCH 1/3 ARM: OMAP2+: Fix SoC detection for dra62x j5-eco

We can boot dra62x j5-eco using the dm814x code as the clocks and devices are mapped in the device tree. The dra62x is also known as jacinto 5.

We may want to add separate soc_is macros for dra62x if needed, but this gets us to the point where we can boot dra62x with just dts changes.

Let's also print out the unknown hawkeye register to make things a bit easier for new SoC variants.

---
 arch/arm/mach-omap2/id.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm/mach-omap2/id.c +3 -1
index 8a2ae82..d85c249 100644
@@ -488,6 +488,7 @@ void __init omap3xxx_check_revision(void)
 		}
 		break;
 	case 0xb8f2:
+	case 0xb968:
 		switch (rev) {
 		case 0:
 		/* FALLTHROUGH */
@@ -511,7 +512,8 @@ void __init omap3xxx_check_revision(void)
 		/* Unknown default to latest silicon rev as default */
 		omap_revision = OMAP3630_REV_ES1_2;
 		cpu_rev = "1.2";
-		pr_warn("Warning: unknown chip type; assuming OMAP3630ES1.2\n");
+		pr_warn("Warning: unknown chip type: hawkeye %04x, assuming OMAP3630ES1.2\n",
+			hawkeye);
 	}
 	sprintf(soc_rev, "ES%s", cpu_rev);
 }
Signature · 1 line
2.6.2
#2 lore raw

PATCH 1/3 ARM: OMAP2+: Fix SoC detection for dra62x j5-eco

Quoted 3 lines · Tony Lindgren

We can boot dra62x j5-eco using the dm814x code as the clocks and devices are mapped in the device tree. The dra62x is also known as jacinto 5.

I'm pretty sure the "eco" in the name isn't optional. As far as I know:
jacinto 5 = dra65x ~ dm814x
jacinto 5 eco = dra62x ~ dm811x
jacinto 5 entry = dra61x/60x ~ am335x

Here ~ means equivalence modulo efuse bits.

My knowledge of TI's automotive processors is limited however, as is public documentation, so perhaps someone from TI can ack or nak this.

Matthijs

author maintainer
#3 lore raw

PATCH 1/3 ARM: OMAP2+: Fix SoC detection for dra62x j5-eco

Quoted 10 lines · Matthijs van Duin
Quoted 3 lines · Tony Lindgren

We can boot dra62x j5-eco using the dm814x code as the clocks and devices are mapped in the device tree. The dra62x is also known as jacinto 5.

I'm pretty sure the "eco" in the name isn't optional. As far as I know:
jacinto 5 = dra65x ~ dm814x
jacinto 5 eco = dra62x ~ dm811x
jacinto 5 entry = dra61x/60x ~ am335x

Quoted 4 lines

Here ~ means equivalence modulo efuse bits.

My knowledge of TI's automotive processors is limited however, as is public documentation, so perhaps someone from TI can ack or nak this.

OK I'll update to to use "jacinto 5 eco" specifically to avoid more confusion.

Thanks,

Tony

author maintainer
#4 lore raw

PATCH 2/3 ARM: dts: Add basic support for dra62x j5-eco SoC

In reply to Tony Lindgren

The dra762x j5-eco is similar to dm814x with a bit different clocks and devices.

---
 arch/arm/boot/dts/dra62x-clocks.dtsi | 49 ++++++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/dra62x.dtsi        | 23 +++++++++++++++++
 2 files changed, 72 insertions(+)
 create mode 100644 arch/arm/boot/dts/dra62x-clocks.dtsi
 create mode 100644 arch/arm/boot/dts/dra62x.dtsi
arch/arm/boot/dts/dra62x-clocks.dtsi new file +49 -0
new file mode 100644
index 0000000..0e49741
@@ -0,0 +1,49 @@
+/*
+ * 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 does not have hdic, l3 or dss PLLs */
+&adpll_hdvic_ck {
+	status = "disabled";
+};
+
+&adpll_l3_ck {
+	status = "disabled";
+};
+
+&adpll_dss_ck {
+	status = "disabled";
+};
+
+/* Compared to dm814x, dra62x has interconnect clocks on isp PLL */
+&sysclk4_ck {
+	clocks = <&adpll_isp_ck 1>;
+};
+
+&sysclk5_ck {
+	clocks = <&adpll_isp_ck 1>;
+};
+
+&sysclk6_ck {
+	clocks = <&adpll_isp_ck 1>;
+};
+
+/*
+ * 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>;
+};
arch/arm/boot/dts/dra62x.dtsi new file +23 -0
new file mode 100644
index 0000000..d3cbb4e
@@ -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"
Signature · 1 line
2.6.2
author maintainer
#5 lore raw

PATCH 3/3 ARM: dts: Add minimal dra62x j5-eco evm support

In reply to Tony Lindgren

This allows us to boot dra62x j5-eco evm with NFSroot.

---
 arch/arm/boot/dts/Makefile             |  3 ++-
 arch/arm/boot/dts/dra62x-j5eco-evm.dts | 28 ++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/dra62x-j5eco-evm.dts
arch/arm/boot/dts/Makefile +2 -1
index 30bbc37..aa237cf14 100644
@@ -452,7 +452,8 @@ dtb-$(CONFIG_ARCH_OMAP3) += \
 dtb-$(CONFIG_SOC_TI81XX) += \
 	dm8148-evm.dtb \
 	dm8148-t410.dtb \
-	dm8168-evm.dtb
+	dm8168-evm.dtb \
+	dra62x-j5eco-evm.dtb
 dtb-$(CONFIG_SOC_AM33XX) += \
 	am335x-baltos-ir5221.dtb \
 	am335x-base0033.dtb \
arch/arm/boot/dts/dra62x-j5eco-evm.dts new file +28 -0
new file mode 100644
index 0000000..49a05d2
@@ -0,0 +1,28 @@
+/*
+ * 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.
+ */
+/dts-v1/;
+
+#include "dra62x.dtsi"
+
+/ {
+	model = "DRA62x J5 Eco EVM";
+	compatible = "ti,dra62x-j5eco-evm", "ti,dra62x", "ti,dm8148";
+
+	memory {
+		device_type = "memory";
+		reg = <0x80000000 0x40000000>;	/* 1 GB */
+	};
+};
+
+&cpsw_emac0 {
+	phy_id = <&davinci_mdio>, <0>;
+	phy-mode = "rgmii";
+};
+
+&cpsw_emac1 {
+	phy_id = <&davinci_mdio>, <1>;
+	phy-mode = "rgmii";
+};
Signature · 1 line
2.6.2