linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] ARM: dts: keystone: Add support for new K2G evm
@ 2017-04-24 20:22 Franklin S Cooper Jr
  2017-04-24 20:22 ` [PATCH v2 1/4] ARM: dts: keystone-k2g: Remove skeleton.dtsi Franklin S Cooper Jr
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Franklin S Cooper Jr @ 2017-04-24 20:22 UTC (permalink / raw)
  To: robh+dt, linux, ssantosh, devicetree, linux-kernel, linux-arm-kernel
  Cc: 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.

Version 2 changes:
Make various tweaks to allow unit address to be added to memory node.

Franklin S Cooper Jr (4):
  ARM: dts: keystone-k2g: Remove skeleton.dtsi
  ARM: dts: k2g-evm: Add unit address to memory node
  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-evm.dts             |  2 +-
 arch/arm/boot/dts/keystone-k2g-ice.dts             | 35 ++++++++++++++++++++++
 arch/arm/boot/dts/keystone-k2g.dtsi                |  3 +-
 5 files changed, 43 insertions(+), 3 deletions(-)
 create mode 100644 arch/arm/boot/dts/keystone-k2g-ice.dts

-- 
2.10.0

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH v2 1/4] ARM: dts: keystone-k2g: Remove skeleton.dtsi
  2017-04-24 20:22 [PATCH v2 0/4] ARM: dts: keystone: Add support for new K2G evm Franklin S Cooper Jr
@ 2017-04-24 20:22 ` Franklin S Cooper Jr
  2017-04-24 20:22 ` [PATCH v2 2/4] ARM: dts: k2g-evm: Add unit address to memory node Franklin S Cooper Jr
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Franklin S Cooper Jr @ 2017-04-24 20:22 UTC (permalink / raw)
  To: robh+dt, linux, ssantosh, devicetree, linux-kernel, linux-arm-kernel
  Cc: Franklin S Cooper Jr

Adding the unit address to the memory node was causing the below error:
Warning (reg_format): "reg" property in /memory has invalid length
(8 bytes) (#address-cells == 2, #size-cells == 2)

Further debugging showed that this was due to the memory node added by
default to skeleton.dtsi which was being included in keystone-k2g.dtsi.
Adding a missing node was all that was needed to remove this deprecated
dtsi file from the SoC dtsi. With skeleton.dtsi removed the dtc compiler
no longer complained about including the unit address for the memory node.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
---
 arch/arm/boot/dts/keystone-k2g.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/keystone-k2g.dtsi b/arch/arm/boot/dts/keystone-k2g.dtsi
index f59567f..a789f75 100644
--- a/arch/arm/boot/dts/keystone-k2g.dtsi
+++ b/arch/arm/boot/dts/keystone-k2g.dtsi
@@ -15,7 +15,6 @@
 
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/pinctrl/keystone.h>
-#include "skeleton.dtsi"
 
 / {
 	compatible = "ti,k2g","ti,keystone";
@@ -24,6 +23,8 @@
 	#size-cells = <2>;
 	interrupt-parent = <&gic>;
 
+	chosen { };
+
 	aliases {
 		serial0 = &uart0;
 	};
-- 
2.10.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v2 2/4] ARM: dts: k2g-evm: Add unit address to memory node
  2017-04-24 20:22 [PATCH v2 0/4] ARM: dts: keystone: Add support for new K2G evm Franklin S Cooper Jr
  2017-04-24 20:22 ` [PATCH v2 1/4] ARM: dts: keystone-k2g: Remove skeleton.dtsi Franklin S Cooper Jr
@ 2017-04-24 20:22 ` Franklin S Cooper Jr
  2017-04-24 20:22 ` [PATCH v2 3/4] ARM: keystone: Create new binding for K2G ICE evm Franklin S Cooper Jr
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Franklin S Cooper Jr @ 2017-04-24 20:22 UTC (permalink / raw)
  To: robh+dt, linux, ssantosh, devicetree, linux-kernel, linux-arm-kernel
  Cc: Franklin S Cooper Jr

With the new Keystone 2 Industrial Communication EVM adding the
unit address to the memory node it made sense to add it for this board
also.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
---
 arch/arm/boot/dts/keystone-k2g-evm.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/keystone-k2g-evm.dts b/arch/arm/boot/dts/keystone-k2g-evm.dts
index 692fcbb..61883cb 100644
--- a/arch/arm/boot/dts/keystone-k2g-evm.dts
+++ b/arch/arm/boot/dts/keystone-k2g-evm.dts
@@ -20,7 +20,7 @@
 	compatible =  "ti,k2g-evm", "ti,k2g", "ti,keystone";
 	model = "Texas Instruments K2G General Purpose EVM";
 
-	memory {
+	memory@800000000 {
 		device_type = "memory";
 		reg = <0x00000008 0x00000000 0x00000000 0x80000000>;
 	};
-- 
2.10.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v2 3/4] ARM: keystone: Create new binding for K2G ICE evm
  2017-04-24 20:22 [PATCH v2 0/4] ARM: dts: keystone: Add support for new K2G evm Franklin S Cooper Jr
  2017-04-24 20:22 ` [PATCH v2 1/4] ARM: dts: keystone-k2g: Remove skeleton.dtsi Franklin S Cooper Jr
  2017-04-24 20:22 ` [PATCH v2 2/4] ARM: dts: k2g-evm: Add unit address to memory node Franklin S Cooper Jr
@ 2017-04-24 20:22 ` Franklin S Cooper Jr
  2017-04-24 20:22 ` [PATCH v2 4/4] ARM: dts: keystone: Add minimum support " Franklin S Cooper Jr
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Franklin S Cooper Jr @ 2017-04-24 20:22 UTC (permalink / raw)
  To: robh+dt, linux, ssantosh, devicetree, linux-kernel, linux-arm-kernel
  Cc: Franklin S Cooper Jr

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

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Acked-by: Rob Herring <robh@kernel.org>
---
 Documentation/devicetree/bindings/arm/keystone/keystone.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/keystone/keystone.txt b/Documentation/devicetree/bindings/arm/keystone/keystone.txt
index 48f6703..f310bad 100644
--- a/Documentation/devicetree/bindings/arm/keystone/keystone.txt
+++ b/Documentation/devicetree/bindings/arm/keystone/keystone.txt
@@ -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"
-- 
2.10.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH v2 4/4] ARM: dts: keystone: Add minimum support for K2G ICE evm
  2017-04-24 20:22 [PATCH v2 0/4] ARM: dts: keystone: Add support for new K2G evm Franklin S Cooper Jr
                   ` (2 preceding siblings ...)
  2017-04-24 20:22 ` [PATCH v2 3/4] ARM: keystone: Create new binding for K2G ICE evm Franklin S Cooper Jr
@ 2017-04-24 20:22 ` Franklin S Cooper Jr
  2017-05-05 19:07 ` [PATCH v2 0/4] ARM: dts: keystone: Add support for new K2G evm Franklin S Cooper Jr
  2017-05-10 16:08 ` Santosh Shilimkar
  5 siblings, 0 replies; 8+ messages in thread
From: Franklin S Cooper Jr @ 2017-04-24 20:22 UTC (permalink / raw)
  To: robh+dt, linux, ssantosh, devicetree, linux-kernel, linux-arm-kernel
  Cc: 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.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
---
 arch/arm/boot/dts/Makefile             |  3 ++-
 arch/arm/boot/dts/keystone-k2g-ice.dts | 35 ++++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/keystone-k2g-ice.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 0118084..01a98f1 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -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 \
diff --git a/arch/arm/boot/dts/keystone-k2g-ice.dts b/arch/arm/boot/dts/keystone-k2g-ice.dts
new file mode 100644
index 0000000..d820d37
--- /dev/null
+++ b/arch/arm/boot/dts/keystone-k2g-ice.dts
@@ -0,0 +1,35 @@
+/*
+ * Device Tree Source for K2G Industrial Communication Engine EVM
+ *
+ * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ * SPDX-License-Identifier: GPL-2.0
+ */
+/dts-v1/;
+
+#include "keystone-k2g.dtsi"
+
+/ {
+	compatible = "ti,k2g-ice", "ti,k2g", "ti,keystone";
+	model = "Texas Instruments K2G Industrial Communication EVM";
+
+	memory@800000000 {
+		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";
+};
-- 
2.10.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 0/4] ARM: dts: keystone: Add support for new K2G evm
  2017-04-24 20:22 [PATCH v2 0/4] ARM: dts: keystone: Add support for new K2G evm Franklin S Cooper Jr
                   ` (3 preceding siblings ...)
  2017-04-24 20:22 ` [PATCH v2 4/4] ARM: dts: keystone: Add minimum support " Franklin S Cooper Jr
@ 2017-05-05 19:07 ` Franklin S Cooper Jr
  2017-05-10 16:08 ` Santosh Shilimkar
  5 siblings, 0 replies; 8+ messages in thread
From: Franklin S Cooper Jr @ 2017-05-05 19:07 UTC (permalink / raw)
  To: robh+dt, linux, ssantosh, devicetree, linux-kernel, linux-arm-kernel



On 04/24/2017 03:22 PM, Franklin S Cooper Jr wrote:
> 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.
> 
> Version 2 changes:
> Make various tweaks to allow unit address to be added to memory node.
> 
> Franklin S Cooper Jr (4):
>   ARM: dts: keystone-k2g: Remove skeleton.dtsi
>   ARM: dts: k2g-evm: Add unit address to memory node
>   ARM: keystone: Create new binding for K2G ICE evm
>   ARM: dts: keystone: Add minimum support for K2G ICE evm
> 

ping
>  .../devicetree/bindings/arm/keystone/keystone.txt  |  3 ++
>  arch/arm/boot/dts/Makefile                         |  3 +-
>  arch/arm/boot/dts/keystone-k2g-evm.dts             |  2 +-
>  arch/arm/boot/dts/keystone-k2g-ice.dts             | 35 ++++++++++++++++++++++
>  arch/arm/boot/dts/keystone-k2g.dtsi                |  3 +-
>  5 files changed, 43 insertions(+), 3 deletions(-)
>  create mode 100644 arch/arm/boot/dts/keystone-k2g-ice.dts
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 0/4] ARM: dts: keystone: Add support for new K2G evm
  2017-04-24 20:22 [PATCH v2 0/4] ARM: dts: keystone: Add support for new K2G evm Franklin S Cooper Jr
                   ` (4 preceding siblings ...)
  2017-05-05 19:07 ` [PATCH v2 0/4] ARM: dts: keystone: Add support for new K2G evm Franklin S Cooper Jr
@ 2017-05-10 16:08 ` Santosh Shilimkar
  2017-05-22  5:51   ` santosh.shilimkar
  5 siblings, 1 reply; 8+ messages in thread
From: Santosh Shilimkar @ 2017-05-10 16:08 UTC (permalink / raw)
  To: Franklin S Cooper Jr, robh+dt, linux, ssantosh, devicetree,
	linux-kernel, linux-arm-kernel

On 4/24/2017 1:22 PM, Franklin S Cooper Jr wrote:
> 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.
>
> Version 2 changes:
> Make various tweaks to allow unit address to be added to memory node.
>
> Franklin S Cooper Jr (4):
>   ARM: dts: keystone-k2g: Remove skeleton.dtsi
>   ARM: dts: k2g-evm: Add unit address to memory node
>   ARM: keystone: Create new binding for K2G ICE evm
>   ARM: dts: keystone: Add minimum support for K2G ICE evm
>
Will pick this up for next merge window. Thanks !!

Regards,
Santosh

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 0/4] ARM: dts: keystone: Add support for new K2G evm
  2017-05-10 16:08 ` Santosh Shilimkar
@ 2017-05-22  5:51   ` santosh.shilimkar
  0 siblings, 0 replies; 8+ messages in thread
From: santosh.shilimkar @ 2017-05-22  5:51 UTC (permalink / raw)
  To: Franklin S Cooper Jr, ssantosh
  Cc: robh+dt, linux, devicetree, linux-kernel, linux-arm-kernel

On 5/10/17 9:08 AM, Santosh Shilimkar wrote:
> On 4/24/2017 1:22 PM, Franklin S Cooper Jr wrote:
>> 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.
>>
>> Version 2 changes:
>> Make various tweaks to allow unit address to be added to memory node.
>>
>> Franklin S Cooper Jr (4):
>>   ARM: dts: keystone-k2g: Remove skeleton.dtsi
>>   ARM: dts: k2g-evm: Add unit address to memory node
>>   ARM: keystone: Create new binding for K2G ICE evm
>>   ARM: dts: keystone: Add minimum support for K2G ICE evm
>>
> Will pick this up for next merge window. Thanks !!
>
Applied to 'for_4.13/keystone_dts'. Should show up in next soon.

Regards,
Santosh

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-05-22  5:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-24 20:22 [PATCH v2 0/4] ARM: dts: keystone: Add support for new K2G evm Franklin S Cooper Jr
2017-04-24 20:22 ` [PATCH v2 1/4] ARM: dts: keystone-k2g: Remove skeleton.dtsi Franklin S Cooper Jr
2017-04-24 20:22 ` [PATCH v2 2/4] ARM: dts: k2g-evm: Add unit address to memory node Franklin S Cooper Jr
2017-04-24 20:22 ` [PATCH v2 3/4] ARM: keystone: Create new binding for K2G ICE evm Franklin S Cooper Jr
2017-04-24 20:22 ` [PATCH v2 4/4] ARM: dts: keystone: Add minimum support " Franklin S Cooper Jr
2017-05-05 19:07 ` [PATCH v2 0/4] ARM: dts: keystone: Add support for new K2G evm Franklin S Cooper Jr
2017-05-10 16:08 ` Santosh Shilimkar
2017-05-22  5:51   ` santosh.shilimkar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).