1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/arm/qcom.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: QCOM device tree bindings
8
9maintainers:
10  - Stephen Boyd <sboyd@codeaurora.org>
11
12description: |
13  Some qcom based bootloaders identify the dtb blob based on a set of
14  device properties like SoC and platform and revisions of those components.
15  To support this scheme, we encode this information into the board compatible
16  string.
17
18  Each board must specify a top-level board compatible string with the following
19  format:
20
21  	compatible = "qcom,<SoC>[-<soc_version>][-<foundry_id>]-<board>[/<subtype>][-<board_version>]"
22
23  The 'SoC' and 'board' elements are required. All other elements are optional.
24
25  The 'SoC' element must be one of the following strings:
26
27        apq8016
28        apq8026
29        apq8074
30        apq8084
31        apq8096
32        ipq6018
33        ipq8074
34        mdm9615
35        msm8226
36        msm8916
37        msm8974
38        msm8992
39        msm8994
40        msm8996
41        sa8155p
42        sc7180
43        sc7280
44        sdm630
45        sdm632
46        sdm660
47        sdm845
48        sdx55
49        sdx65
50        sm7225
51        sm8150
52        sm8250
53        sm8350
54        sm8450
55
56  The 'board' element must be one of the following strings:
57
58        adp
59        cdp
60        cp01-c1
61        dragonboard
62        hk01
63        hk10-c1
64        hk10-c2
65        idp
66        liquid
67        mtp
68        qrd
69        sbc
70
71  The 'soc_version' and 'board_version' elements take the form of v<Major>.<Minor>
72  where the minor number may be omitted when it's zero, i.e.  v1.0 is the same
73  as v1. If all versions of the 'board_version' elements match, then a
74  wildcard '*' should be used, e.g. 'v*'.
75
76  The 'foundry_id' and 'subtype' elements are one or more digits from 0 to 9.
77
78  Examples:
79
80  	"qcom,msm8916-v1-cdp-pm8916-v2.1"
81
82  A CDP board with an msm8916 SoC, version 1 paired with a pm8916 PMIC of version
83  2.1.
84
85  	"qcom,apq8074-v2.0-2-dragonboard/1-v0.1"
86
87  A dragonboard board v0.1 of subtype 1 with an apq8074 SoC version 2, made in
88  foundry 2.
89
90properties:
91  $nodename:
92    const: "/"
93  compatible:
94    oneOf:
95      - items:
96          - enum:
97              - qcom,apq8016-sbc
98          - const: qcom,apq8016
99
100      - items:
101          - enum:
102              - lg,lenok
103          - const: qcom,apq8026
104
105      - items:
106          - enum:
107              - asus,nexus7-flo
108              - lg,nexus4-mako
109              - sony,xperia-yuga
110              - qcom,apq8064-cm-qs600
111              - qcom,apq8064-ifc6410
112          - const: qcom,apq8064
113
114      - items:
115          - enum:
116              - qcom,apq8074-dragonboard
117          - const: qcom,apq8074
118
119      - items:
120          - enum:
121              - qcom,apq8060-dragonboard
122              - qcom,msm8660-surf
123          - const: qcom,msm8660
124
125      - items:
126          - enum:
127              - qcom,apq8084-mtp
128              - qcom,apq8084-sbc
129          - const: qcom,apq8084
130
131      - items:
132          - enum:
133              - samsung,s3ve3g
134          - const: qcom,msm8226
135
136      - items:
137          - enum:
138              - qcom,msm8960-cdp
139          - const: qcom,msm8960
140
141      - items:
142          - enum:
143              - fairphone,fp2
144              - lge,hammerhead
145              - samsung,klte
146              - sony,xperia-amami
147              - sony,xperia-castor
148              - sony,xperia-honami
149          - const: qcom,msm8974
150
151      - items:
152          - enum:
153              - alcatel,idol347
154          - const: qcom,msm8916-mtp/1
155          - const: qcom,msm8916-mtp
156          - const: qcom,msm8916
157
158      - items:
159          - enum:
160              - longcheer,l8150
161              - samsung,a3u-eur
162              - samsung,a5u-eur
163          - const: qcom,msm8916
164
165      - items:
166          - enum:
167              - sony,karin_windy
168              - sony,karin-row
169              - sony,satsuki-row
170              - sony,sumire-row
171              - sony,suzuran-row
172              - qcom,msm8994
173          - const: qcom,apq8094
174
175      - items:
176          - enum:
177              - arrow,apq8096-db820c
178              - inforce,ifc6640
179          - const: qcom,apq8096-sbc
180          - const: qcom,apq8096
181
182      - items:
183          - enum:
184              - qcom,msm8996-mtp
185              - sony,dora-row
186              - sony,kagura-row
187              - sony,keyaki-row
188              - xiaomi,gemini
189              - xiaomi,scorpio
190          - const: qcom,msm8996
191
192      - items:
193          - enum:
194              - qcom,ipq4019-ap-dk01.1-c1
195              - qcom,ipq4019-ap-dk04.1-c3
196              - qcom,ipq4019-ap-dk07.1-c1
197              - qcom,ipq4019-ap-dk07.1-c2
198              - qcom,ipq4019-dk04.1-c1
199          - const: qcom,ipq4019
200
201      - items:
202          - enum:
203              - qcom,ipq8064-ap148
204          - const: qcom,ipq8064
205
206      - items:
207          - enum:
208              - qcom,ipq8074-hk01
209              - qcom,ipq8074-hk10-c1
210              - qcom,ipq8074-hk10-c2
211          - const: qcom,ipq8074
212
213      - items:
214          - enum:
215              - qcom,sc7180-idp
216          - const: qcom,sc7180
217
218      - items:
219          - enum:
220              - qcom,sc7280-crd
221              - qcom,sc7280-idp
222              - qcom,sc7280-idp2
223              - google,hoglin
224              - google,piglin
225              - google,senor
226          - const: qcom,sc7280
227
228      - items:
229          - enum:
230              - fairphone,fp3
231          - const: qcom,sdm632
232
233      - items:
234          - enum:
235              - xiaomi,lavender
236          - const: qcom,sdm660
237
238      - items:
239          - enum:
240              - qcom,sdx55-mtp
241              - qcom,sdx55-telit-fn980-tlb
242              - qcom,sdx55-t55
243          - const: qcom,sdx55
244
245      - items:
246          - enum:
247              - qcom,sdx65-mtp
248          - const: qcom,sdx65
249
250      - items:
251          - enum:
252              - qcom,ipq6018-cp01
253              - qcom,ipq6018-cp01-c1
254          - const: qcom,ipq6018
255
256      - items:
257          - enum:
258              - qcom,sa8155p-adp
259          - const: qcom,sa8155p
260
261      - items:
262          - enum:
263              - fairphone,fp4
264          - const: qcom,sm7225
265
266      - items:
267          - enum:
268              - qcom,sm8150-mtp
269          - const: qcom,sm8150
270
271      - items:
272          - enum:
273              - qcom,qrb5165-rb5
274              - qcom,sm8250-mtp
275          - const: qcom,sm8250
276
277      - items:
278          - enum:
279              - qcom,sm8350-hdk
280              - qcom,sm8350-mtp
281          - const: qcom,sm8350
282
283      - items:
284          - enum:
285              - qcom,sm8450-hdk
286              - qcom,sm8450-qrd
287          - const: qcom,sm8450
288
289additionalProperties: true
290
291...
292