linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: gregory.clement@free-electrons.com (Gregory CLEMENT)
To: linux-arm-kernel@lists.infradead.org
Subject: [patch 0/7] dt: dtb version: add version info to dtb
Date: Thu, 19 Mar 2015 09:12:18 +0100	[thread overview]
Message-ID: <550A84E2.6040904@free-electrons.com> (raw)
In-Reply-To: <550A42AC.8060104@gmail.com>

Hi,

On 19/03/2015 04:29, Frank Rowand wrote:
> Rob,
> 
> Can this be added to the next trees to get some test exposure before submitting
> to Linus?
> 
> There is currently no way to tie a device tree blob (DTB) back to the source
> and environment used to create it.  Add this information, including a DTB
> version number, which is somewhat analogous to the Linux kernel version number.
> 
> The DTB version number is independent of the kernel version number, and is
> incremented for each make of one or more DTBs.
> 
> The DTB information is placed in node /chosen/dtb-info.  The data for this
> node will be automatically generated by the .dtb make system for any .dts
> that includes arch/arm/boot/dts/skeleton.dtsi, either directly or indirectly.
> This means that architectures other than arm will not receive this feature.
> This can be added to other architectures by modifying their skeleton.dtsi.
> 
> There are 70 of the 557 arm .dts files that do not include skeleton.dtsi.
> Thus the .dtb files created for these systems will not have the
> /chosen/dtb-info node:

About the following list some of them use skeleton64.dtsi instead of
skeleton.dtsi. All the armada-xp-*.dts uses it and also axm5516-amarillo.dts
(through axm55xx.dtsi), the ls1021a-*.dts, the mt8127-moose.dts, the
mt8135-evbp1.dts and the sun9i-a80-optimus.dts.

So maybe it would worth updating skeleton64.dtsi.

For the other ones it seems that actually they use skeleton.dtsi but not
through a dtsi file.

Thanks,

Gregory


> 
>    armada-xp-axpwifiap.dts
>    armada-xp-db.dts
>    armada-xp-gp.dts
>    armada-xp-lenovo-ix4-300d.dts
>    armada-xp-matrix.dts
>    armada-xp-netgear-rn2120.dts
>    armada-xp-openblocks-ax3-4.dts
>    armada-xp-synology-ds414.dts
>    atlas6-evb.dts
>    atlas7-evb.dts
>    axm5516-amarillo.dts
>    bcm2835-rpi-b-plus.dts
>    bcm2835-rpi-b.dts
>    ea3250.dts
>    ecx-2000.dts
>    highbank.dts
>    hip04-d01.dts
>    integratorap.dts
>    integratorcp.dts
>    ls1021a-qds.dts
>    ls1021a-twr.dts
>    meson6-atv1200.dts
>    moxart-uc7112lx.dts
>    mt8127-moose.dts
>    mt8135-evbp1.dts
>    nspire-clp.dts
>    nspire-cx.dts
>    nspire-tp.dts
>    phy3250.dts
>    picoxcell-pc7302-pc3x2.dts
>    picoxcell-pc7302-pc3x3.dts
>    prima2-evb.dts
>    r7s72100-genmai.dts
>    r8a73a4-ape6evm-reference.dts
>    r8a73a4-ape6evm.dts
>    r8a7790-lager.dts
>    r8a7791-henninger.dts
>    r8a7791-koelsch.dts
>    r8a7794-alt.dts
>    spear1310-evb.dts
>    spear1340-evb.dts
>    spear300-evb.dts
>    spear310-evb.dts
>    spear320-evb.dts
>    spear320-hmi.dts
>    spear600-evb.dts
>    stih407-b2120.dts
>    stih410-b2120.dts
>    stih415-b2000.dts
>    stih415-b2020.dts
>    stih416-b2000.dts
>    stih416-b2020.dts
>    stih416-b2020e.dts
>    stih418-b2199.dts
>    sun9i-a80-optimus.dts
>    vexpress-v2p-ca15-tc1.dts
>    vexpress-v2p-ca15_a7.dts
>    vexpress-v2p-ca5s.dts
>    vexpress-v2p-ca9.dts
>    vt8500-bv07.dts
>    wm8505-ref.dts
>    wm8650-mid.dts
>    wm8750-apc8750.dts
>    wm8850-w70v2.dts
>    xenvm-4.2.dts
>    zynq-parallella.dts
>    zynq-zc702.dts
>    zynq-zc706.dts
>    zynq-zed.dts
>    zynq-zybo.dts
> 
> 
> 
> An example of the DTB information reported is:
> 
>   $ echo ; cat /proc/version; echo ; echo ; dmesg | grep DTB
> 
>   Linux version 4.0.0-rc4-dirty (frank at buildhost) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #5 SMP PREEMPT Wed Mar 18 20:04:48 PDT 2015
> 
> 
>   DTB version 4.0.0-rc4-dirty (frank at buildhost) (DTC 1.4.0-dirty) #4 Wed Mar 18 20:04:11 PDT 2015
>   DTB linux version 4.0.0-rc4-dirty (frank at build_host) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #3 SMP PREEMPT Wed Mar 18 20:02:46 PDT 2015
>   DTB source /local/nobackup/src/git_linus/linux--4.0/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts
>   DTB blob arch/arm/boot/dts/qcom-apq8074-dragonboard.dtb
> 
> 
> The values of the /chosen/dtb-info/ properties are also available in
> /proc/device-tree/chosen/dtb-info/
> --
> To unsubscribe from this list: send the line "unsubscribe devicetree" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  parent reply	other threads:[~2015-03-19  8:12 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-19  3:29 [patch 0/7] dt: dtb version: add version info to dtb Frank Rowand
2015-03-19  3:31 ` [patch 1/7] dt: dtb version: consolidate documentation of chosen node bindings Frank Rowand
2015-03-19 13:40   ` Mark Rutland
2015-03-19  3:33 ` [patch 2/7] dt: dtb version: document chosen/dtb-info node binding Frank Rowand
2015-03-19 13:23   ` Rob Herring
2015-03-19 16:42     ` Frank Rowand
2015-03-19 18:41     ` Russell King - ARM Linux
2015-03-19 18:53       ` Mark Rutland
2015-03-19 19:01       ` Frank Rowand
2015-03-19 19:32         ` Russell King - ARM Linux
2015-03-19 20:44           ` Frank Rowand
2015-03-20 14:42             ` Mark Rutland
2015-03-19 13:49   ` Mark Rutland
2015-03-19 17:02     ` Frank Rowand
2015-03-19 17:23       ` Geert Uytterhoeven
2015-03-19 19:12       ` Mark Rutland
2015-03-19 21:27         ` Frank Rowand
2015-03-20 15:25           ` Mark Rutland
2015-03-19 17:37   ` Frank Rowand
2015-03-19  3:34 ` [patch 3/7] dt: dtb version: arm dts Makefile Frank Rowand
2015-03-19  3:36 ` [patch 4/7] dt: dtb version: kernel Makefile Frank Rowand
2015-03-19  3:38 ` [patch 5/7] dt: dtb version: kbuild scripts Frank Rowand
2015-03-19  3:39 ` [patch 6/7] dt: dtb version: dtsi files Frank Rowand
2015-03-19 18:46   ` Sascha Hauer
2015-03-19  3:41 ` [patch 7/7] dt: dtb version: report dtb info Frank Rowand
2015-03-19  8:12 ` Gregory CLEMENT [this message]
2015-03-19 17:05   ` [patch 0/7] dt: dtb version: add version info to dtb Frank Rowand
2015-03-20 13:46 ` Rob Herring
2015-03-20 19:14   ` Uwe Kleine-König

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=550A84E2.6040904@free-electrons.com \
    --to=gregory.clement@free-electrons.com \
    --cc=linux-arm-kernel@lists.infradead.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 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).