All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frank Rowand <frowand.list@gmail.com>
To: Gregory CLEMENT <gregory.clement@free-electrons.com>
Cc: Rob Herring <robh+dt@kernel.org>,
	Grant Likely <grant.likely@linaro.org>,
	Russell King <linux@arm.linux.org.uk>,
	Michal Marek <mmarek@suse.cz>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Kumar Gala <galak@codeaurora.org>,
	Leif Lindholm <leif.lindholm@linaro.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Pawel Moll <pawel.moll@arm.com>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	linux-kbuild@vger.kernel.org,
	Linux Kernel list <linux-kernel@vger.kernel.org>
Subject: Re: [patch 0/7] dt: dtb version: add version info to dtb
Date: Thu, 19 Mar 2015 10:05:23 -0700	[thread overview]
Message-ID: <550B01D3.4090103@gmail.com> (raw)
In-Reply-To: <550A84E2.6040904@free-electrons.com>

On 3/19/2015 1:12 AM, Gregory CLEMENT wrote:
> 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.

Thanks for noticing that!  I'll add skeleton64.dtsi.

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

I'll go check again.


> 
> 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@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@buildhost) (DTC 1.4.0-dirty) #4 Wed Mar 18 20:04:11 PDT 2015
>>   DTB linux version 4.0.0-rc4-dirty (frank@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@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
> 
> 


WARNING: multiple messages have this Message-ID (diff)
From: frowand.list@gmail.com (Frank Rowand)
To: linux-arm-kernel@lists.infradead.org
Subject: [patch 0/7] dt: dtb version: add version info to dtb
Date: Thu, 19 Mar 2015 10:05:23 -0700	[thread overview]
Message-ID: <550B01D3.4090103@gmail.com> (raw)
In-Reply-To: <550A84E2.6040904@free-electrons.com>

On 3/19/2015 1:12 AM, Gregory CLEMENT wrote:
> 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.

Thanks for noticing that!  I'll add skeleton64.dtsi.

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

I'll go check again.


> 
> 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
>>
> 
> 

  reply	other threads:[~2015-03-19 17:05 UTC|newest]

Thread overview: 65+ 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:29 ` Frank Rowand
2015-03-19  3:31 ` [patch 1/7] dt: dtb version: consolidate documentation of chosen node bindings Frank Rowand
2015-03-19  3:31   ` Frank Rowand
2015-03-19 13:40   ` Mark Rutland
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  3:33   ` Frank Rowand
2015-03-19 13:23   ` Rob Herring
2015-03-19 13:23     ` Rob Herring
2015-03-19 16:42     ` Frank Rowand
2015-03-19 16:42       ` Frank Rowand
2015-03-19 18:41     ` Russell King - ARM Linux
2015-03-19 18:41       ` Russell King - ARM Linux
2015-03-19 18:53       ` Mark Rutland
2015-03-19 18:53         ` Mark Rutland
2015-03-19 18:53         ` Mark Rutland
2015-03-19 19:01       ` Frank Rowand
2015-03-19 19:01         ` Frank Rowand
2015-03-19 19:32         ` Russell King - ARM Linux
2015-03-19 19:32           ` Russell King - ARM Linux
2015-03-19 19:32           ` Russell King - ARM Linux
2015-03-19 20:44           ` Frank Rowand
2015-03-19 20:44             ` Frank Rowand
2015-03-20 14:42             ` Mark Rutland
2015-03-20 14:42               ` Mark Rutland
2015-03-20 14:42               ` Mark Rutland
2015-03-19 13:49   ` Mark Rutland
2015-03-19 13:49     ` Mark Rutland
2015-03-19 17:02     ` Frank Rowand
2015-03-19 17:02       ` Frank Rowand
2015-03-19 17:23       ` Geert Uytterhoeven
2015-03-19 17:23         ` Geert Uytterhoeven
2015-03-19 19:12       ` Mark Rutland
2015-03-19 19:12         ` Mark Rutland
2015-03-19 21:27         ` Frank Rowand
2015-03-19 21:27           ` Frank Rowand
2015-03-20 15:25           ` Mark Rutland
2015-03-20 15:25             ` Mark Rutland
2015-03-19 17:37   ` Frank Rowand
2015-03-19 17:37     ` Frank Rowand
2015-03-19 17:37     ` Frank Rowand
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:34   ` Frank Rowand
2015-03-19  3:34   ` Frank Rowand
2015-03-19  3:36 ` [patch 4/7] dt: dtb version: kernel Makefile Frank Rowand
2015-03-19  3:36   ` Frank Rowand
2015-03-19  3:38 ` [patch 5/7] dt: dtb version: kbuild scripts Frank Rowand
2015-03-19  3:38   ` Frank Rowand
2015-03-19  3:39 ` [patch 6/7] dt: dtb version: dtsi files Frank Rowand
2015-03-19  3:39   ` Frank Rowand
2015-03-19 18:46   ` Sascha Hauer
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  3:41   ` Frank Rowand
2015-03-19  8:12 ` [patch 0/7] dt: dtb version: add version info to dtb Gregory CLEMENT
2015-03-19  8:12   ` Gregory CLEMENT
2015-03-19 17:05   ` Frank Rowand [this message]
2015-03-19 17:05     ` Frank Rowand
2015-03-20 13:46 ` Rob Herring
2015-03-20 13:46   ` Rob Herring
2015-03-20 19:14   ` Uwe Kleine-König
2015-03-20 19:14     ` Uwe Kleine-König
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=550B01D3.4090103@gmail.com \
    --to=frowand.list@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=galak@codeaurora.org \
    --cc=grant.likely@linaro.org \
    --cc=gregory.clement@free-electrons.com \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=leif.lindholm@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=mark.rutland@arm.com \
    --cc=mmarek@suse.cz \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.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.