Skip to content

Commit 4193c7c

Browse files
authored
Add initial commit for qcom-metadata.dts for multi DT support (#1)
Add initial commit for qcom-metadata.dts for multi DT support
2 parents e0853ec + b3680e6 commit 4193c7c

File tree

2 files changed

+225
-0
lines changed

2 files changed

+225
-0
lines changed

Makefile

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: 206 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,206 @@
1+
// SPDX-License-Identifier: BSD-3-Clause-clear
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 0x10>;
19+
};
20+
21+
qcs615 {
22+
msm-id = <0x000002a8 0x10>;
23+
};
24+
25+
qcs615v1.1 {
26+
msm-id = <0x000002a8 0x11>;
27+
};
28+
29+
qcs6490 {
30+
msm-id = <0x000001f2 0x10>;
31+
};
32+
33+
qcs8275 {
34+
msm-id = <0x000002a3 0x10>;
35+
};
36+
37+
qcs8300 {
38+
msm-id = <0x000002a2 0x10>;
39+
};
40+
41+
qcs9075 {
42+
msm-id = <0x000002a4 0x10>;
43+
};
44+
45+
qcs9075v2 {
46+
msm-id = <0x000002a4 0x20>;
47+
};
48+
49+
qcs9100 {
50+
msm-id = <0x0000029b 0x10>;
51+
};
52+
53+
qcs9100v2 {
54+
msm-id = <0x0000029b 0x20>;
55+
};
56+
};
57+
58+
soc-sku {
59+
sku0 {
60+
msm-id = <0x00030000>;
61+
};
62+
};
63+
64+
board {
65+
adp {
66+
board-id = <0x00000019>;
67+
};
68+
69+
atp {
70+
board-id = <0x00000021>;
71+
};
72+
73+
cdp {
74+
board-id = <0x00000001>;
75+
};
76+
77+
idp {
78+
board-id = <0x00000022>;
79+
};
80+
81+
iot {
82+
board-id = <0x00000020>;
83+
};
84+
85+
mtp {
86+
board-id = <0x00000008>;
87+
};
88+
89+
qam {
90+
board-id = <0x00000025>;
91+
};
92+
93+
qamr2 {
94+
board-id = <0x00002025>;
95+
};
96+
97+
qrd {
98+
board-id = <0x0000000b>;
99+
};
100+
};
101+
102+
board-subtype-peripheral-subtype {
103+
subtype0 {
104+
board-subtype = <0x00000000>;
105+
};
106+
107+
subtype1 {
108+
board-subtype = <0x00000001>;
109+
};
110+
111+
subtype2 {
112+
board-subtype = <0x00000002>;
113+
};
114+
115+
subtype3 {
116+
board-subtype = <0x00000003>;
117+
};
118+
119+
subtype4 {
120+
board-subtype = <0x00000004>;
121+
};
122+
123+
subtype5 {
124+
board-subtype = <0x00000005>;
125+
};
126+
127+
subtype6 {
128+
board-subtype = <0x00000006>;
129+
};
130+
131+
subtype7 {
132+
board-subtype = <0x00000007>;
133+
};
134+
135+
subtype8 {
136+
board-subtype = <0x00000008>;
137+
};
138+
139+
subtype9 {
140+
board-subtype = <0x00000009>;
141+
};
142+
143+
subtype10 {
144+
board-subtype = <0x0000000a>;
145+
};
146+
};
147+
148+
149+
board-subtype-storage-type {
150+
emmc {
151+
board-subtype = <0x00001000>;
152+
};
153+
154+
nand {
155+
board-subtype = <0x00002000>;
156+
};
157+
158+
ufs {
159+
board-subtype = <0x00000000>;
160+
};
161+
};
162+
163+
board-subtype-memory-size {
164+
256MB {
165+
board-subtype = <0x00000100>;
166+
};
167+
168+
512MB {
169+
board-subtype = <0x00000200>;
170+
};
171+
172+
1GB {
173+
board-subtype = <0x00000300>;
174+
};
175+
176+
2GB {
177+
board-subtype = <0x00000400>;
178+
};
179+
180+
3GB {
181+
board-subtype = <0x00000500>;
182+
};
183+
184+
4GB {
185+
board-subtype = <0x00000600>;
186+
};
187+
188+
4GB+ {
189+
board-subtype = <0x00000000>;
190+
};
191+
};
192+
193+
softsku {
194+
softsku0 {
195+
softsku-id = <0x0>;
196+
};
197+
198+
softsku1 {
199+
softsku-id = <0x1>;
200+
};
201+
};
202+
203+
oem {
204+
205+
};
206+
};

0 commit comments

Comments
 (0)