xref: /linux/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml (revision 8ffe772076bbb6828e28705bda93ac37c8d7294c)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/nvmem/qcom,qfprom.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm Technologies Inc, QFPROM Efuse
8
9maintainers:
10  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
11
12allOf:
13  - $ref: nvmem.yaml#
14  - $ref: nvmem-deprecated-cells.yaml#
15
16properties:
17  compatible:
18    items:
19      - enum:
20          - qcom,apq8064-qfprom
21          - qcom,apq8084-qfprom
22          - qcom,ipq5018-qfprom
23          - qcom,ipq5332-qfprom
24          - qcom,ipq5424-qfprom
25          - qcom,ipq6018-qfprom
26          - qcom,ipq8064-qfprom
27          - qcom,ipq8074-qfprom
28          - qcom,ipq9574-qfprom
29          - qcom,msm8226-qfprom
30          - qcom,msm8916-qfprom
31          - qcom,msm8917-qfprom
32          - qcom,msm8937-qfprom
33          - qcom,msm8960-qfprom
34          - qcom,msm8974-qfprom
35          - qcom,msm8976-qfprom
36          - qcom,msm8996-qfprom
37          - qcom,msm8998-qfprom
38          - qcom,qcm2290-qfprom
39          - qcom,qcs404-qfprom
40          - qcom,qcs615-qfprom
41          - qcom,qcs8300-qfprom
42          - qcom,sar2130p-qfprom
43          - qcom,sc7180-qfprom
44          - qcom,sc7280-qfprom
45          - qcom,sc8280xp-qfprom
46          - qcom,sdm630-qfprom
47          - qcom,sdm670-qfprom
48          - qcom,sdm845-qfprom
49          - qcom,sm6115-qfprom
50          - qcom,sm6350-qfprom
51          - qcom,sm6375-qfprom
52          - qcom,sm8150-qfprom
53          - qcom,sm8250-qfprom
54          - qcom,sm8450-qfprom
55          - qcom,sm8550-qfprom
56          - qcom,sm8650-qfprom
57          - qcom,x1e80100-qfprom
58      - const: qcom,qfprom
59
60  reg:
61    # If the QFPROM is read-only OS image then only the corrected region
62    # needs to be provided.  If the QFPROM is writable then all 4 regions
63    # must be provided.
64    oneOf:
65      - items:
66          - description: The corrected region.
67      - items:
68          - description: The corrected region.
69          - description: The raw region.
70          - description: The config region.
71          - description: The security control region.
72
73  # Clock must be provided if QFPROM is writable from the OS image.
74  clocks:
75    maxItems: 1
76  clock-names:
77    const: core
78
79  # Supply reference must be provided if QFPROM is writable from the OS image.
80  vcc-supply:
81    description: Our power supply.
82
83  power-domains:
84    maxItems: 1
85
86required:
87  - compatible
88  - reg
89
90unevaluatedProperties: false
91
92examples:
93  - |
94    #include <dt-bindings/clock/qcom,gcc-sc7180.h>
95
96    soc {
97      #address-cells = <2>;
98      #size-cells = <2>;
99
100      efuse@784000 {
101        compatible = "qcom,sc7180-qfprom", "qcom,qfprom";
102        reg = <0 0x00784000 0 0x8ff>,
103              <0 0x00780000 0 0x7a0>,
104              <0 0x00782000 0 0x100>,
105              <0 0x00786000 0 0x1fff>;
106        clocks = <&gcc GCC_SEC_CTRL_CLK_SRC>;
107        clock-names = "core";
108        #address-cells = <1>;
109        #size-cells = <1>;
110
111        vcc-supply = <&vreg_l11a_1p8>;
112
113        hstx-trim-primary@25b {
114          reg = <0x25b 0x1>;
115          bits = <1 3>;
116        };
117      };
118    };
119
120  - |
121    soc {
122      #address-cells = <2>;
123      #size-cells = <2>;
124
125      efuse@784000 {
126        compatible = "qcom,sdm845-qfprom", "qcom,qfprom";
127        reg = <0 0x00784000 0 0x8ff>;
128        #address-cells = <1>;
129        #size-cells = <1>;
130
131        hstx-trim-primary@1eb {
132          reg = <0x1eb 0x1>;
133          bits = <1 4>;
134        };
135      };
136    };
137