From: Tero Kristo <t-kristo@ti.com>
To: Russell King <rmk@armlinux.org.uk>
Cc: devicetree@vger.kernel.org, robh+dt@kernel.org,
frowand.list@gmail.com, mark.rutland@arm.com, wmills@ti.com,
tony@atomide.com, trini@konsulko.com
Subject: Re: [RFC 12/13] ARM: dts: ti: add dra71-evm FIT description file
Date: Tue, 17 Apr 2018 12:34:32 +0300 [thread overview]
Message-ID: <ad5ef67d-d566-0034-a7cd-09a549cbd6d7@ti.com> (raw)
In-Reply-To: <20180417092924.GB20335@flint.armlinux.org.uk>
On 17/04/18 12:29, Russell King wrote:
> On Tue, Apr 17, 2018 at 12:10:14PM +0300, Tero Kristo wrote:
>> Add FIT image description file for dra71-evm, and the available
>> configurations for it.
>>
>> Signed-off-by: Tero Kristo <t-kristo@ti.com>
>> ---
>> arch/arm/boot/dts/ti/dra71-evm.its | 62 ++++++++++++++++++++++++++++++++++++++
>> 1 file changed, 62 insertions(+)
>> create mode 100644 arch/arm/boot/dts/ti/dra71-evm.its
>>
>> diff --git a/arch/arm/boot/dts/ti/dra71-evm.its b/arch/arm/boot/dts/ti/dra71-evm.its
>> new file mode 100644
>> index 0000000..8dc53cb
>> --- /dev/null
>> +++ b/arch/arm/boot/dts/ti/dra71-evm.its
>> @@ -0,0 +1,62 @@
>> +/dts-v1/;
>> +
>> +/ {
>> + description = "DRA71x-evm";
>> + #address-cells = <1>;
>> +
>> + images {
>> + kernel@1 {
>> + description = "Linux kernel";
>> + data = /incbin/("../../zImage");
>> + type = "kernel";
>> + arch = "arm";
>> + os = "linux";
>> + compression = "none";
>> + load = <0x82000000>;
>> + entry = <0x82000000>;
>> + };
>> + fdt@1 {
>> + description = "DRA71x-evm";
>> + data = /incbin/("dra71-evm.dtb");
>> + type = "flat_dt";
>> + arch = "arm";
>> + compression = "none";
>> + load = <0x83000000>;
>> + };
>> + fdt@2 {
>> + description = "DRA71x-evm LCD";
>> + data = /incbin/("dra71-evm-lcd-auo-g101evn01.0.dtbo");
>> + type = "flat_dt";
>> + arch = "arm";
>> + compression = "none";
>> + load = <0x83100000>;
>> + };
>> + fdt@3 {
>> + description = "DRA71x-evm NAND";
>> + data = /incbin/("dra71-evm-nand.dtbo");
>> + type = "flat_dt";
>> + arch = "arm";
>> + compression = "none";
>> + load = <0x83200000>;
>> + };
>> + };
>> +
>> + configurations {
>> + default = "dra71-evm";
>> + dra71-evm {
>> + description = "DRA71x-evm";
>> + kernel = "kernel@1";
>> + fdt = "fdt@1";
>> + };
>> + dra71-evm-lcd-auo-g101evn01.0 {
>> + description = "DRA71x-evm with LCD overlay";
>> + kernel = "kernel@1";
>> + fdt = "fdt@1", "fdt@2";
>> + };
>> + dra71-evm-nand {
>> + description = "DRA71x-evm with NAND overlay";
>> + kernel = "kernel@1";
>> + fdt = "fdt@1", "fdt@3";
>> + };
>
> This strikes me as really horrid and inflexible.
>
> Consider a platform where you have multiple choices, each one
> independent - for example, you may have the selection of two base
> DT files depending on the SoC. Then you may have four board-level
> DT overlays to choose from. Then you may have a selection of
> overlays depending on what hardware is connected (eg, whether a
> camera is connected and what type of camera, whether a LVDS panel
> is connected and what it is, etc.)
>
> Before considering the optional hardware, you already have 8
> different combinations, and that multiplies up each time there
> is another variable to consider.
>
> Exhaustively listing each combination of kernel, base dtb and
> overlays is not practical in such a scenario, and if this is what
> FIT requires, FIT is not fit for purpose.
>
This specific dra71-evm is rather a poor example, as we have built the
available configs as separate config entries due to limited amount of them.
In typical setup, you can boot a large number of different configs via:
bootm 0x82000000#dra71-evm#nand#lcd-auo-g101evn01.0
... assuming the configs were named like that, and assuming they would
be compatible with each other. The am57xx-evm example provided is
better, as you can chain the different cameras to the available evm configs.
-Tero
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
next prev parent reply other threads:[~2018-04-17 9:34 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-17 9:10 [RFC 00/13] ARM: dts: DT overlay support infra + some data Tero Kristo
2018-04-17 9:10 ` [RFC 01/13] ARM: dts: allow building .dtb files under platform subdirs Tero Kristo
2018-04-19 0:02 ` Rob Herring
2018-04-17 9:10 ` [RFC 02/13] ARM: dts: add support for building DT overlays Tero Kristo
2018-04-17 9:10 ` [RFC 03/13] ARM: dts: add subdir for TI SoC DT files Tero Kristo
2018-04-17 9:10 ` [RFC 04/13] kbuild: add support for building %.dtbo targets Tero Kristo
2018-04-18 14:16 ` Geert Uytterhoeven
2018-04-17 9:10 ` [RFC 05/13] ARM: dts: ti: add support for building .dtb files containing symbols Tero Kristo
2018-04-18 14:20 ` Geert Uytterhoeven
2018-04-18 19:07 ` Tero Kristo
2018-04-18 22:43 ` Rob Herring
2018-04-19 6:36 ` Tero Kristo
2018-04-19 15:26 ` Rob Herring
2018-04-19 18:00 ` Tero Kristo
2018-04-17 9:10 ` [RFC 06/13] ARM: dts: am57xx-evm: add AM57xx-evm DT overlay Tero Kristo
2018-04-18 14:36 ` Geert Uytterhoeven
2018-04-18 19:12 ` Tero Kristo
2018-04-18 19:15 ` Russell King
2018-04-20 13:27 ` Geert Uytterhoeven
2018-04-18 22:40 ` Rob Herring
2018-04-19 0:19 ` Rob Herring
2018-04-19 6:49 ` Tero Kristo
2018-04-20 1:31 ` Rob Herring
2018-04-17 9:10 ` [RFC 07/13] ARM: dts: ti: add camera overlays Tero Kristo
2018-04-17 9:10 ` [RFC 08/13] ARM: dts: ti: add dra71-evm overlays Tero Kristo
2018-04-17 9:10 ` [RFC 09/13] kbuild: add support for generating FIT images Tero Kristo
2018-04-17 9:10 ` [RFC 10/13] ARM: dts: add FIT image build support for ARM architecture Tero Kristo
2018-04-17 9:10 ` [RFC 11/13] ARM: dts: ti: add FIT image dependencies Tero Kristo
2018-04-17 9:10 ` [RFC 12/13] ARM: dts: ti: add dra71-evm FIT description file Tero Kristo
2018-04-17 9:29 ` Russell King
2018-04-17 9:34 ` Tero Kristo [this message]
2018-04-17 14:49 ` Tony Lindgren
2018-05-21 6:57 ` Tero Kristo
2018-05-22 20:01 ` Rob Herring
2018-05-23 5:55 ` Tero Kristo
2018-05-23 14:13 ` Rob Herring
2018-05-23 18:37 ` Tony Lindgren
2018-05-29 17:05 ` Frank Rowand
2018-05-29 17:33 ` Russell King - ARM Linux
2018-05-29 22:45 ` Frank Rowand
2018-05-29 22:51 ` Russell King - ARM Linux
2018-04-17 9:10 ` [RFC 13/13] ARM: dts: ti: add am57xx-evm " Tero Kristo
2018-04-17 9:18 ` [RFC 00/13] ARM: dts: DT overlay support infra + some data Russell King
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=ad5ef67d-d566-0034-a7cd-09a549cbd6d7@ti.com \
--to=t-kristo@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=frowand.list@gmail.com \
--cc=mark.rutland@arm.com \
--cc=rmk@armlinux.org.uk \
--cc=robh+dt@kernel.org \
--cc=tony@atomide.com \
--cc=trini@konsulko.com \
--cc=wmills@ti.com \
/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 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).