Skip to contentSkip to conversation

ARM: dts: keystone: Add support for new K2G evm

PATCH Superseded Franklin S Cooper Jr 3 participants 9 messages Mar 30, 2017 – Apr 4, 2017

Subsystems (2)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

cover ARM: dts: keystone: Add support for new K2G evm

This patchset adds support for new K2G Industrial Communication Engine evm. For now only a bare minimal dts which will allow ram boot. Additional peripherals will be added when base K2G SoC patches are upstreamed allowing peripherals to be enabled.

Bootlog: https://pastebin.ubuntu.com/24281838/

Franklin S Cooper Jr (2):
ARM: keystone: Create new binding for K2G ICE evm
ARM: dts: keystone: Add minimum support for K2G ICE evm

 .../devicetree/bindings/arm/keystone/keystone.txt  |  3 ++
 arch/arm/boot/dts/Makefile                         |  3 +-
 arch/arm/boot/dts/keystone-k2g-ice.dts             | 42 ++++++++++++++++++++++
 3 files changed, 47 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/keystone-k2g-ice.dts
Signature · 1 line
2.10.0
#1 lore raw

PATCH 1/2 ARM: keystone: Create new binding for K2G ICE evm

Add a new binding for the new K2G Industrial Communication Engine evm.

---
 Documentation/devicetree/bindings/arm/keystone/keystone.txt | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/arm/keystone/keystone.txt +3 -0
index 48f6703..f310bad 100644
@@ -37,3 +37,6 @@ Boards:
 
 -  K2G EVM
    compatible = "ti,k2g-evm", "ti,k2g", "ti-keystone"
+
+-  K2G Industrial Communication Engine EVM
+   compatible = "ti,k2g-ice", "ti,k2g", "ti-keystone"
Signature · 1 line
2.10.0
#3 lore raw

PATCH 2/2 ARM: dts: keystone: Add minimum support for K2G ICE evm

In reply to Franklin S Cooper Jr

Add barebones dts support for TI's K2G Industrial Communication Engine evm. This dts allows the board to boot using a ram based filesystem.

---
 arch/arm/boot/dts/Makefile             |  3 ++-
 arch/arm/boot/dts/keystone-k2g-ice.dts | 42 ++++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/keystone-k2g-ice.dts
arch/arm/boot/dts/Makefile +2 -1
index 0118084..01a98f1 100644
@@ -193,7 +193,8 @@ dtb-$(CONFIG_ARCH_KEYSTONE) += \
 	keystone-k2hk-evm.dtb \
 	keystone-k2l-evm.dtb \
 	keystone-k2e-evm.dtb \
-	keystone-k2g-evm.dtb
+	keystone-k2g-evm.dtb \
+	keystone-k2g-ice.dtb
 dtb-$(CONFIG_MACH_KIRKWOOD) += \
 	kirkwood-b3.dtb \
 	kirkwood-blackarmor-nas220.dtb \
arch/arm/boot/dts/keystone-k2g-ice.dts new file +42 -0

42 lines not on this page · raw message

Signature · 1 line
2.10.0
maintainer
#4 lore raw

Re: [PATCH 2/2] ARM: dts: keystone: Add minimum support for K2G ICE evm

Quoted 33 lines · Franklin S Cooper Jr

Add barebones dts support for TI's K2G Industrial Communication Engine evm. This dts allows the board to boot using a ram based filesystem.

---
 arch/arm/boot/dts/Makefile             |  3 ++-
 arch/arm/boot/dts/keystone-k2g-ice.dts | 42 ++++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/keystone-k2g-ice.dts
arch/arm/boot/dts/Makefile +2 -1
index 0118084..01a98f1 100644
@@ -193,7 +193,8 @@ dtb-$(CONFIG_ARCH_KEYSTONE) += \
 	keystone-k2hk-evm.dtb \
 	keystone-k2l-evm.dtb \
 	keystone-k2e-evm.dtb \
-	keystone-k2g-evm.dtb
+	keystone-k2g-evm.dtb \
+	keystone-k2g-ice.dtb
 dtb-$(CONFIG_MACH_KIRKWOOD) += \
 	kirkwood-b3.dtb \
 	kirkwood-blackarmor-nas220.dtb \
arch/arm/boot/dts/keystone-k2g-ice.dts new file +3 -0
new file mode 100644
index 0000000..9ab5f42
@@ -0,0 +1,42 @@
+/*
+ * Device Tree Source for K2G Industrial Communication Engine EVM
+ *

arch/arm/boot/dts/keystone-k2g-ice.dts line 13

Quoted 10 lines
arch/arm/boot/dts/keystone-k2g-ice.dts new file +10 -0
+ * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ * 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.
+ *
+ * This program is distributed "as is" WITHOUT ANY WARRANTY of any
+ * kind, whether express or implied; without even the implied warranty
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.

You can Use SPDX tags here.

arch/arm/boot/dts/keystone-k2g-ice.dts line 23

Quoted 10 lines
arch/arm/boot/dts/keystone-k2g-ice.dts new file +10 -0
+ */
+/dts-v1/;
+
+#include "keystone-k2g.dtsi"
+
+/ {
+	compatible = "ti,k2g-ice", "ti,k2g", "ti,keystone";
+	model = "Texas Instruments K2G Industrial Communication EVM";
+
+	memory {

memory at 800000000

unless that gives you bootloader(s) problems.

Quoted 22 lines
arch/arm/boot/dts/keystone-k2g-ice.dts new file +19 -0
+		device_type = "memory";
+		reg = <0x00000008 0x00000000 0x00000000 0x20000000>;
+	};
+};
+
+&k2g_pinctrl {
+	uart0_pins: pinmux_uart0_pins {
+		pinctrl-single,pins = <
+			K2G_CORE_IOPAD(0x11cc) (BUFFER_CLASS_B | PULL_DISABLE | MUX_MODE0)	/* uart0_rxd.uart0_rxd */
+			K2G_CORE_IOPAD(0x11d0) (BUFFER_CLASS_B | PIN_PULLDOWN | MUX_MODE0)	/* uart0_txd.uart0_txd */
+		>;
+	};
+};
+
+&uart0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart0_pins>;
+	status = "okay";
+};
Signature · 1 line
2.10.0
#5 lore raw

Re: [PATCH 2/2] ARM: dts: keystone: Add minimum support for K2G ICE evm

Quoted 47 lines · Rob Herring
Quoted 33 lines · Franklin S Cooper Jr

Add barebones dts support for TI's K2G Industrial Communication Engine evm. This dts allows the board to boot using a ram based filesystem.

---
 arch/arm/boot/dts/Makefile             |  3 ++-
 arch/arm/boot/dts/keystone-k2g-ice.dts | 42 ++++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/keystone-k2g-ice.dts
arch/arm/boot/dts/Makefile +2 -1
index 0118084..01a98f1 100644
@@ -193,7 +193,8 @@ dtb-$(CONFIG_ARCH_KEYSTONE) += \
 	keystone-k2hk-evm.dtb \
 	keystone-k2l-evm.dtb \
 	keystone-k2e-evm.dtb \
-	keystone-k2g-evm.dtb
+	keystone-k2g-evm.dtb \
+	keystone-k2g-ice.dtb
 dtb-$(CONFIG_MACH_KIRKWOOD) += \
 	kirkwood-b3.dtb \
 	kirkwood-blackarmor-nas220.dtb \
arch/arm/boot/dts/keystone-k2g-ice.dts new file +3 -0
new file mode 100644
index 0000000..9ab5f42
@@ -0,0 +1,42 @@
+/*
+ * Device Tree Source for K2G Industrial Communication Engine EVM
+ *

arch/arm/boot/dts/keystone-k2g-ice.dts line 13

Quoted 10 lines
arch/arm/boot/dts/keystone-k2g-ice.dts new file +10 -0
+ * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ * 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.
+ *
+ * This program is distributed "as is" WITHOUT ANY WARRANTY of any
+ * kind, whether express or implied; without even the implied warranty
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.

You can Use SPDX tags here.

Quoted 12 lines

arch/arm/boot/dts/keystone-k2g-ice.dts line 23

Quoted 10 lines
arch/arm/boot/dts/keystone-k2g-ice.dts new file +10 -0
+ */
+/dts-v1/;
+
+#include "keystone-k2g.dtsi"
+
+/ {
+	compatible = "ti,k2g-ice", "ti,k2g", "ti,keystone";
+	model = "Texas Instruments K2G Industrial Communication EVM";
+
+	memory {

memory at 800000000

Adding this causes the dtb compiler to issue the below warning:
Warning (reg_format): "reg" property in /memory has invalid length (8 bytes) (#address-cells == 2, #size-cells == 2)

I don't quite understand what causes this to be triggered only when the unit address is included. I tried adding the unit address to the memory node on other dts/dtsi files and compiled it and I get similar errors. Looking at scripts/dtc/checks.c its a bit unclear how the value for prop->val.len is set. But I'm curious if the check has issues with 64 bit addressing? Note it says the property's length is 8 bytes while the entry length is 16 ((addr_cells + size_cells) * sizeof(cell_t))

Quoted 25 lines

unless that gives you bootloader(s) problems.

Quoted 22 lines
arch/arm/boot/dts/keystone-k2g-ice.dts new file +19 -0
+		device_type = "memory";
+		reg = <0x00000008 0x00000000 0x00000000 0x20000000>;
+	};
+};
+
+&k2g_pinctrl {
+	uart0_pins: pinmux_uart0_pins {
+		pinctrl-single,pins = <
+			K2G_CORE_IOPAD(0x11cc) (BUFFER_CLASS_B | PULL_DISABLE | MUX_MODE0)	/* uart0_rxd.uart0_rxd */
+			K2G_CORE_IOPAD(0x11d0) (BUFFER_CLASS_B | PIN_PULLDOWN | MUX_MODE0)	/* uart0_txd.uart0_txd */
+		>;
+	};
+};
+
+&uart0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart0_pins>;
+	status = "okay";
+};
Signature · 1 line
2.10.0
#6 lore raw
In reply to Franklin S Cooper Jr

Hi Franklin,

Quoted 9 lines · Franklin S Cooper Jr

This patchset adds support for new K2G Industrial Communication Engine evm. For now only a bare minimal dts which will allow ram boot. Additional peripherals will be added when base K2G SoC patches are upstreamed allowing peripherals to be enabled.

ARM: keystone: Create new binding for K2G ICE evm
ARM: dts: keystone: Add minimum support for K2G ICE evm

Can you clarify Rob's comment on second patch and re-post the updated patch with his ack if you agree ? Will apply the series.

Regards,
Santosh

#7 lore raw
Quoted 11 lines · santosh.shilimkar at oracle.com

Hi Franklin,

Quoted 7 lines · Franklin S Cooper Jr

This patchset adds support for new K2G Industrial Communication Engine evm. For now only a bare minimal dts which will allow ram boot. Additional
peripherals will be added when base K2G SoC patches are upstreamed allowing
peripherals to be enabled.

Quoted 6 lines
Quoted 3 lines

ARM: keystone: Create new binding for K2G ICE evm
ARM: dts: keystone: Add minimum support for K2G ICE evm

Can you clarify Rob's comment on second patch and re-post the updated patch with his ack if you agree ? Will apply the series.

Just to be clear, you need to send v2 with Rob's comment addressed for me to pick it up.

Regards,
Snatosh

#8 lore raw
Quoted 12 lines · Santosh Shilimkar
Quoted 11 lines · santosh.shilimkar at oracle.com

Hi Franklin,

Quoted 7 lines · Franklin S Cooper Jr

This patchset adds support for new K2G Industrial Communication Engine evm. For now only a bare minimal dts which will allow ram boot. Additional
peripherals will be added when base K2G SoC patches are upstreamed allowing
peripherals to be enabled.

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

ARM: keystone: Create new binding for K2G ICE evm
ARM: dts: keystone: Add minimum support for K2G ICE evm

Can you clarify Rob's comment on second patch and re-post the updated patch with his ack if you agree ? Will apply the series.

Just to be clear, you need to send v2 with Rob's comment addressed for me to pick it up.

Will do.

Quoted 3 lines

Regards,
Snatosh