From: Tomasz Figa <tomasz.figa@gmail.com>
To: Doug Anderson <dianders@chromium.org>
Cc: Arun Kumar K <arun.kk@samsung.com>,
linux-samsung-soc <linux-samsung-soc@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Kukjin Kim <kgene.kim@samsung.com>,
Olof Johansson <olofj@google.com>,
Tomasz Figa <t.figa@samsung.com>,
Sachin Kamat <sachin.kamat@linaro.org>,
Tushar Behera <tushar.behera@linaro.org>,
Arun Kumar <arunkk.samsung@gmail.com>
Subject: Re: [PATCH 3/3] ARM: dts: Add peach-pi board support
Date: Sat, 03 May 2014 04:00:59 +0200 [thread overview]
Message-ID: <53644DDB.7050503@gmail.com> (raw)
In-Reply-To: <CAD=FV=XYjMg7V9=OzAy_ifwaM83QS0tiTrp5+nxvG236kkSjRQ@mail.gmail.com>
Hi Doug,
On 02.05.2014 20:31, Doug Anderson wrote:
> Tomasz,
>
> On Fri, May 2, 2014 at 10:10 AM, Tomasz Figa <tomasz.figa@gmail.com> wrote:
>> Hi Arun,
>>
>>
>> On 02.05.2014 15:03, Arun Kumar K wrote:
>>>
>>> Adds support for google peach-pi board having the
>>> Exynos5800 SoC.
>>>
>>> Signed-off-by: Arun Kumar K <arun.kk@samsung.com>
>>> Signed-off-by: Doug Anderson <dianders@chromium.org>
>>> ---
>>> arch/arm/boot/dts/Makefile | 3 +-
>>> arch/arm/boot/dts/exynos5800-peach-pi.dts | 144
>>> +++++++++++++++++++++++++++++
>>> 2 files changed, 146 insertions(+), 1 deletion(-)
>>> create mode 100644 arch/arm/boot/dts/exynos5800-peach-pi.dts
>>>
>>> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
>>> index 35c146f..efe1573 100644
>>> --- a/arch/arm/boot/dts/Makefile
>>> +++ b/arch/arm/boot/dts/Makefile
>>> @@ -76,7 +76,8 @@ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-origen.dtb \
>>> exynos5420-arndale-octa.dtb \
>>> exynos5420-smdk5420.dtb \
>>> exynos5440-sd5v1.dtb \
>>> - exynos5440-ssdk5440.dtb
>>> + exynos5440-ssdk5440.dtb \
>>> + exynos5800-peach-pi.dtb
>>> dtb-$(CONFIG_ARCH_HI3xxx) += hi3620-hi4511.dtb
>>> dtb-$(CONFIG_ARCH_HIGHBANK) += highbank.dtb \
>>> ecx-2000.dtb
>>> diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts
>>> b/arch/arm/boot/dts/exynos5800-peach-pi.dts
>>> new file mode 100644
>>> index 0000000..e0f8633
>>> --- /dev/null
>>> +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts
>>> @@ -0,0 +1,144 @@
>>> +/*
>>> + * Google Peach Pi Rev 10+ board device tree source
>>> + *
>>> + * Copyright (c) 2014 Google, Inc
>>> + *
>>> + * 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 <dt-bindings/input/input.h>
>>> +#include <dt-bindings/gpio/gpio.h>
>>> +#include "exynos5800.dtsi"
>>> +
>>> +/ {
>>> + model = "Google Peach Pi Rev 10+";
>>> +
>>> + compatible = "google,pi-rev16",
>>> + "google,pi-rev15", "google,pi-rev14",
>>> + "google,pi-rev13", "google,pi-rev12",
>>> + "google,pi-rev11", "google,pi-rev10",
>>> + "google,pi", "google,peach", "samsung,exynos5800",
>>> + "samsung,exynos5";
>>
>>
>> I can see this board using the "google,peach" compatible string, which is
>> the same as one listed for peach-pit board. Since they are based on
>> different SoCs, are they really compatible?
>
> I'd like to see "google,peach" continue to be here but won't fight too
> strongly if it's rejected. The pit and pi boards are incredibly
> similar to each other. They have a 380 point difference in their
> processor and a few minor peripheral differences, but not a lot else.
>
> I could totally imagine some code somewhere wanting to know if this
> board is compatible with "google,peach" just like you can imagine code
> somewhere wanting to know if this is compatible with
> "samsung,exynos5".
>
> Potentially you could swap the order of "google,peach" and
> "samsung,exynos5800" though...
>
Well, if you can use the device tree of peach-pit board and boot
peach-pi and vice-versa and it won't cause any hardware failures then I
guess it's fine to keep this string.
Not sure about the order, though, as both "google,peach" and
"samsung,exynos5800" strings can't really be strictly ordered. IMHO
current order is the closest to ideal, as particular family of similar
boards is supposedly less generic than all boards based on particular SoC.
>
>>> +
>>> + memory {
>>> + reg = <0 0>;
>>
>> I don't think this is a good idea, because this is basically rendering this
>> dts file useless, unless used with a bootloader that can actually inject
>> correct values. I believe that some generic setup could be provided in the
>> dts, so you could at least get the board running.
>
> I won't say that I care a whole lot, but I think that was what was
> agreed upon the other day. Specifically Tom Rini of U-Boot was
> worried about the fact that U-Boot will read the memory node and
> totally clobber it. He thought there might be cases where someone
> might _purposely_ not want U-Boot to do that.
>
> ...I would wonder what alternate bootloader you're imagining will
> actually run on this board and not do this?
People should have the freedom to choose anything they want. We have
also barebox and coreboot with ARM and even Exynos5 support (in
coreboot), but people might want to use something completely exotic as
well and the device tree should let them do so.
Best regards,
Tomasz
next prev parent reply other threads:[~2014-05-03 2:01 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-02 13:03 [PATCH 0/3] Add Exynos5800 support Arun Kumar K
2014-05-02 13:03 ` [PATCH 1/3] clk: exynos5420: Add 5800 specific clocks Arun Kumar K
2014-05-02 17:23 ` Tomasz Figa
2014-05-03 12:06 ` Arun Kumar K
2014-05-02 17:51 ` Andrew Bresticker
2014-05-03 12:12 ` Arun Kumar K
2014-05-02 18:52 ` Arnd Bergmann
2014-05-02 19:35 ` Doug Anderson
2014-05-03 2:12 ` Tomasz Figa
2014-05-02 13:03 ` [PATCH 2/3] ARM: dts: Add Exynos5800 dt file Arun Kumar K
2014-05-02 16:49 ` Olof Johansson
2014-05-02 17:03 ` Tomasz Figa
2014-05-02 13:03 ` [PATCH 3/3] ARM: dts: Add peach-pi board support Arun Kumar K
2014-05-02 17:10 ` Tomasz Figa
2014-05-02 18:31 ` Doug Anderson
2014-05-03 2:00 ` Tomasz Figa [this message]
[not found] ` <53644DDB.7050503-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-05-05 15:17 ` Doug Anderson
2014-05-05 18:18 ` Tom Rini
2014-05-08 21:55 ` Bjorn Andersson
2014-05-08 22:16 ` Tom Rini
2014-05-08 22:22 ` Bjorn Andersson
2014-05-02 13:14 ` [PATCH 0/3] Add Exynos5800 support Kukjin Kim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53644DDB.7050503@gmail.com \
--to=tomasz.figa@gmail.com \
--cc=arun.kk@samsung.com \
--cc=arunkk.samsung@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=dianders@chromium.org \
--cc=kgene.kim@samsung.com \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=olofj@google.com \
--cc=sachin.kamat@linaro.org \
--cc=t.figa@samsung.com \
--cc=tushar.behera@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.