Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1616368
| Path | csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Franklin S Cooper Jr <fcooper@ti.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/2] ARM: dts: keystone: Add minimum support for K2G ICE evm |
| Date | Tue, 04 Apr 2017 22:10:01 +0200 |
| Message-ID | <tsCW5-1df-1@gated-at.bofh.it> (permalink) |
| References | <tqKl4-8nZ-35@gated-at.bofh.it> <tqKl4-8nZ-33@gated-at.bofh.it> <tsd1E-OH-13@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1491336260; bh=HUyoSWS5WeRS4ul8eu2tslpSkwq7UX91ujuzm1sk3S0=; h=Subject:To:References:CC:From:Date:In-Reply-To; b=uiC9Po+mMwzhaxoA2pffU6Qaazkrjg5OnACNEUst5wDlLjSlJU//nrIfcdBIXeiw9 fOrJ5ScjCEvBacxSkOMFrOyFVDnlUOeUYXztJSQPrGYsViHZRvC4Y6oA2SCtB62XBe /eJD1KQ4u5IvKzlSjob7abARTt9aVDDOCsy1xiSA= |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset="windows-1252" |
| Content-Transfer-Encoding | 7bit |
| X-Originating-IP | [128.247.83.178] |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 99 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | <linux@armlinux.org.uk>, <ssantosh@kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org> |
| X-Original-Date | Tue, 4 Apr 2017 15:04:19 -0500 |
| X-Original-Message-ID | <28385ff4-b9fb-d291-3057-92c321239e44@ti.com> |
| X-Original-References | <20170330152907.12595-1-fcooper@ti.com> <20170330152907.12595-3-fcooper@ti.com> <20170403162708.sf4ovwu3wm2tlyqh@rob-hp-laptop> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1616368 |
Show key headers only | View raw
On 04/03/2017 11:27 AM, Rob Herring wrote:
> On Thu, Mar 30, 2017 at 10:29:07AM -0500, Franklin S Cooper Jr wrote:
>> 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 | 42 ++++++++++++++++++++++++++++++++++
>> 2 files changed, 44 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..9ab5f42
>> --- /dev/null
>> +++ b/arch/arm/boot/dts/keystone-k2g-ice.dts
>> @@ -0,0 +1,42 @@
>> +/*
>> + * Device Tree Source for K2G Industrial Communication Engine EVM
>> + *
>> + * 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.
>
>> + */
>> +/dts-v1/;
>> +
>> +#include "keystone-k2g.dtsi"
>> +
>> +/ {
>> + compatible = "ti,k2g-ice", "ti,k2g", "ti,keystone";
>> + model = "Texas Instruments K2G Industrial Communication EVM";
>> +
>> + memory {
>
> memory@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))
>
> unless that gives you bootloader(s) problems.
>
>> + 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
>>
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 2/2] ARM: dts: keystone: Add minimum support for K2G ICE evm Franklin S Cooper Jr <fcooper@ti.com> - 2017-03-30 17:40 +0200
Re: [PATCH 2/2] ARM: dts: keystone: Add minimum support for K2G ICE evm Rob Herring <robh@kernel.org> - 2017-04-03 18:30 +0200
Re: [PATCH 2/2] ARM: dts: keystone: Add minimum support for K2G ICE evm Franklin S Cooper Jr <fcooper@ti.com> - 2017-04-04 22:10 +0200
csiph-web