Commit Graph

5 Commits

Author SHA1 Message Date
Lijuan Gao 1b9fdb5ae8 dtbtool: Add qcom,pmic-id support (version 3)
Add support for parsing PMIC info in the DTB files. The new format supports
up to four pmic nodes in the DTB. pmic0, pmic1, pmic2 & pmic3. Unused pmic
nodes should be marked as '0' in the DTB.

dtbtool(v3) to parse the split qcom,msm-id/qcom,board-id/qcom,pmic-id in
DTB files.  The original qcom,msm-id with soc_id/platform, soc_rev is split
into qcom,msm-id with only soc_id/soc_rev; The original qcom,board-id with
platform/subtype. and a new qcom,pmic-id with pmic0/pmic1/pmic2/pmic3.

The tool always generate the new table of device tree format (v3), but is
backward compatible with parsing original DTB files with only qcom,msm-id
(in which case subtype and pmic 0 to 3 are assumed zero) and backward com
-patible with parsing original DTB files with qcom,msm-id and qcom,board-id
(in which case pmic 0 to 3 are assumed zero)

This change requires a corresponding bootloader change to properly parse
the updated table of device tree image format (v3)

Change-Id: If44d7a2617a6a8ea4434ed3ac6138ec4726aae50
2014-10-28 15:46:06 -07:00
Pradeep Sakhamoori 30576c9006 dtbtool: Add qcom,board-id support (version 2)
Add support to parse the new split qcom,msm-id/qcom,board-id
in DTB files.  The original qcom,msm-id with soc_id/platform/
soc_rev is split into qcom,msm-id with only soc_id/soc_rev
and a new qcom,board-id with platform/subtype.

The tool always generate the new table of device tree
format (v2), but is backward compatible with parsing original
DTB files with only qcom,msm-id (in which case subtype is
assumed zero).

This change requires a corresponding bootloader change to
properly parse the updated table of device tree image
format (v2).

Change-Id: Iee4a0bf7de026ffc7f610ad485254c4b192ed3eb
2013-07-15 13:28:29 -07:00
Duy Truong 0c0744e022 Update copyright to The Linux Foundation
Change-Id: Id084b09bf3a083ea5c0389900bbeb5ef149b3108
2013-02-10 06:35:11 -08:00
David Ng 82e6aa61f4 dtbtool: Add support for array of ID's in qcom,msm-id tag
Allow multiple chipset/platform/soc_rev triplets in
qcom,msm-id tag.  This allows one DTS/DTB file to be used
for multiple chipset/platform/soc_rev variants.

Preliminary version - needs error handling in triplet
parsing and general code cleanup.

Change-Id: Ic3d018c0667d1ec7189d6e14b3378effda00d781
2012-08-09 21:04:36 -07:00
David Ng b053341c3d dtbtool: Initial revision of table of device tree tool
A tool to generate an image of table of device tree.  The image
contains a header, table of device tree indices followed by the
list of device tree blobs.

Refer to dtbtool.txt for more information.

Change-Id: Ib0d5f974cdb8a8fc341f01b5d086a5285b1d7dc5
2012-08-07 14:40:21 -07:00