Skip to content

Commit da2ec82

Browse files
committed
Add initial commit for qcom-metadata.dts for multi DT support
Introduce qcom-metadata.dts to provide SoC and board details for multi DT support using the FIT approach. This enables dynamic DT selection during boot for supported platforms. Adding Makefile to compile it. Signed-off-by: Amrit Anand <[email protected]>
1 parent e5c56c3 commit da2ec82

File tree

2 files changed

+213
-0
lines changed

2 files changed

+213
-0
lines changed

Makefile.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Makefile for compiling qcom-metadata.dts to qcom-metadata.dtb
2+
#
3+
DTC ?= dtc
4+
SRC := qcom-metadata.dts
5+
OUT := qcom-metadata.dtb
6+
O ?= .
7+
8+
OUTFILE := $(O)/$(OUT)
9+
10+
all: $(OUTFILE)
11+
12+
$(OUTFILE): $(SRC)
13+
@mkdir -p $(O)
14+
@$(DTC) -I dts -O dtb -o $(OUTFILE) $(SRC)
15+
@echo "DTC $(OUTFILE)"
16+
17+
clean:
18+
@rm -f $(OUTFILE)
19+
@echo "CLEAN $(OUTFILE)"

qcom-metadata.dts

Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
/*
3+
* qcom metadata device tree source
4+
*
5+
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
6+
*
7+
*/
8+
9+
/dts-v1/;
10+
11+
/ {
12+
description = "Image with compressed metadata blob";
13+
#address-cells = <2>;
14+
#size-cells = <2>;
15+
16+
soc {
17+
qcm6490 {
18+
msm-id = <0x000001f1 0x0>;
19+
};
20+
21+
qcm6490v1 {
22+
msm-id = <0x000001f1 0x30>;
23+
};
24+
25+
qcs6490 {
26+
msm-id = <0x000001f2 0x0>;
27+
};
28+
29+
qcs6490v1 {
30+
msm-id = <0x000001f2 0x30>;
31+
};
32+
33+
qcs9100 {
34+
msm-id = <0x0000029b 0x0>;
35+
};
36+
37+
qcs9075 {
38+
msm-id = <0x000002a4 0x0>;
39+
};
40+
41+
qcs8300 {
42+
msm-id = <0x000002a2 0x0>;
43+
};
44+
45+
qcs8275 {
46+
msm-id = <0x000002a3 0x0>;
47+
};
48+
49+
qcs615 {
50+
msm-id = <0x000002a8 0x0>;
51+
};
52+
};
53+
54+
soc-sku {
55+
sku0 {
56+
msm-id = <0x00030000>;
57+
};
58+
};
59+
60+
board {
61+
cdp {
62+
board-id = <0x00000001>;
63+
};
64+
65+
mtp {
66+
board-id = <0x00000008>;
67+
};
68+
69+
adp {
70+
board-id = <0x00000019>;
71+
};
72+
73+
adpr3 {
74+
board-id = <0x00003019>;
75+
};
76+
77+
iot {
78+
board-id = <0x00000020>;
79+
};
80+
81+
atp {
82+
board-id = <0x00000021>;
83+
};
84+
85+
idp {
86+
board-id = <0x00000022>;
87+
};
88+
};
89+
90+
board-subtype-peripheral-subtype {
91+
subtype0 {
92+
board-subtype = <0x00000000>;
93+
};
94+
95+
subtype1 {
96+
board-subtype = <0x00000001>;
97+
};
98+
99+
subtype2 {
100+
board-subtype = <0x00000002>;
101+
};
102+
103+
subtype3 {
104+
board-subtype = <0x00000003>;
105+
};
106+
107+
subtype4 {
108+
board-subtype = <0x00000004>;
109+
};
110+
111+
subtype5 {
112+
board-subtype = <0x00000005>;
113+
};
114+
115+
subtype6 {
116+
board-subtype = <0x00000006>;
117+
};
118+
119+
subtype7 {
120+
board-subtype = <0x00000007>;
121+
};
122+
123+
subtype8 {
124+
board-subtype = <0x00000008>;
125+
};
126+
127+
subtype9 {
128+
board-subtype = <0x00000009>;
129+
};
130+
131+
subtype10 {
132+
board-subtype = <0x0000000a>;
133+
};
134+
};
135+
136+
137+
board-subtype-storage-type {
138+
ufs {
139+
board-subtype = <0x00000000>;
140+
};
141+
142+
emmc {
143+
board-subtype = <0x00001000>;
144+
};
145+
146+
nand {
147+
board-subtype = <0x00002000>;
148+
};
149+
};
150+
151+
board-subtype-memory-size {
152+
256MB {
153+
board-subtype = <0x00000100>;
154+
};
155+
156+
512MB {
157+
board-subtype = <0x00000200>;
158+
};
159+
160+
1GB {
161+
board-subtype = <0x00000300>;
162+
};
163+
164+
2GB {
165+
board-subtype = <0x00000400>;
166+
};
167+
168+
3GB {
169+
board-subtype = <0x00000500>;
170+
};
171+
172+
4GB {
173+
board-subtype = <0x00000600>;
174+
};
175+
176+
4GB+ {
177+
board-subtype = <0x00000000>;
178+
};
179+
};
180+
181+
softsku {
182+
softsku0 {
183+
softsku-id = <0x0>;
184+
};
185+
186+
softsku1 {
187+
softsku-id = <0x1>;
188+
};
189+
};
190+
191+
oem {
192+
193+
};
194+
};

0 commit comments

Comments
 (0)