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        sdm660
46        sdm845
47        sdx55
48        sdx65
49        sm7225
50        sm8150
51        sdx65
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          - const: qcom,msm8996-mtp
177
178      - items:
179          - enum:
180              - qcom,ipq4019-ap-dk01.1-c1
181              - qcom,ipq4019-ap-dk04.1-c3
182              - qcom,ipq4019-ap-dk07.1-c1
183              - qcom,ipq4019-ap-dk07.1-c2
184              - qcom,ipq4019-dk04.1-c1
185          - const: qcom,ipq4019
186
187      - items:
188          - enum:
189              - qcom,ipq8064-ap148
190          - const: qcom,ipq8064
191
192      - items:
193          - enum:
194              - qcom,ipq8074-hk01
195              - qcom,ipq8074-hk10-c1
196              - qcom,ipq8074-hk10-c2
197          - const: qcom,ipq8074
198
199      - items:
200          - enum:
201              - qcom,sc7180-idp
202          - const: qcom,sc7180
203
204      - items:
205          - enum:
206              - qcom,sc7280-crd
207              - qcom,sc7280-idp
208              - qcom,sc7280-idp2
209              - google,hoglin
210              - google,piglin
211              - google,senor
212          - const: qcom,sc7280
213
214      - items:
215          - enum:
216              - xiaomi,lavender
217          - const: qcom,sdm660
218
219      - items:
220          - enum:
221              - qcom,sdx55-mtp
222              - qcom,sdx55-telit-fn980-tlb
223              - qcom,sdx55-t55
224          - const: qcom,sdx55
225
226      - items:
227          - enum:
228              - qcom,sdx65-mtp
229          - const: qcom,sdx65
230
231      - items:
232          - enum:
233              - qcom,sdx65-mtp
234          - const: qcom,sdx65
235
236      - items:
237          - enum:
238              - qcom,ipq6018-cp01
239              - qcom,ipq6018-cp01-c1
240          - const: qcom,ipq6018
241
242      - items:
243          - enum:
244              - qcom,sa8155p-adp
245          - const: qcom,sa8155p
246
247      - items:
248          - enum:
249              - fairphone,fp4
250          - const: qcom,sm7225
251
252      - items:
253          - enum:
254              - qcom,sm8150-mtp
255          - const: qcom,sm8150
256
257      - items:
258          - enum:
259              - qcom,qrb5165-rb5
260              - qcom,sm8250-mtp
261          - const: qcom,sm8250
262
263      - items:
264          - enum:
265              - qcom,sm8350-hdk
266              - qcom,sm8350-mtp
267          - const: qcom,sm8350
268
269      - items:
270          - enum:
271              - qcom,sm8450-qrd
272          - const: qcom,sm8450
273
274additionalProperties: true
275
276...
277