ARM: dts: keystone: Add support for new K2G evm
v2 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.
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
Signature · 1 line
2.10.0
PATCH v2 1/4 ARM: dts: keystone-k2g: Remove skeleton.dtsi
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.
--- arch/arm/boot/dts/keystone-k2g.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/boot/dts/keystone-k2g.dtsi +2 -1
@@ -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; };
Signature · 1 line
2.10.0
PATCH v2 2/4 ARM: dts: k2g-evm: Add unit address to memory node
In reply to Franklin S Cooper JrWith 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.
--- arch/arm/boot/dts/keystone-k2g-evm.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/keystone-k2g-evm.dts +1 -1
@@ -20,7 +20,7 @@ compatible = "ti,k2g-evm", "ti,k2g", "ti,keystone"; model = "Texas Instruments K2G General Purpose EVM"; - memory { + memory at 800000000 { device_type = "memory"; reg = <0x00000008 0x00000000 0x00000000 0x80000000>; };
Signature · 1 line
2.10.0
PATCH v2 3/4 ARM: keystone: Create new binding for K2G ICE evm
In reply to Franklin S Cooper JrAdd 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
@@ -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
PATCH v2 4/4 ARM: dts: keystone: Add minimum support for K2G ICE evm
In reply to Franklin S Cooper JrAdd 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 | 35 ++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/keystone-k2g-ice.dts
arch/arm/boot/dts/Makefile +2 -1
@@ -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 +35 -0
@@ -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 at 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"; +};
Signature · 1 line
2.10.0
Quoted 5 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 9 lines
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: Removeskeleton.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
Quoted 8 lines
.../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
Quoted 5 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 9 lines
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: Removeskeleton.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
[email protected]
AppliedQuoted 11 lines · Santosh Shilimkar
Quoted 10 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.Version 2 changes:
Make various tweaks to allow unit address to be added to memory node.
Quoted 8 lines
Quoted 6 lines
Franklin S Cooper Jr (4):
ARM: dts: keystone-k2g: Removeskeleton.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 evmWill pick this up for next merge window. Thanks !!
Applied to 'for_4.13/keystone_dts'. Should show up in next soon.
Regards,
Santosh