xref: /linux/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml (revision 336b78c655c84ce9ce47219185171b3912109c0a)
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
15properties:
16  compatible:
17    items:
18      - enum:
19          - qcom,apq8064-qfprom
20          - qcom,apq8084-qfprom
21          - qcom,ipq8064-qfprom
22          - qcom,ipq8074-qfprom
23          - qcom,msm8916-qfprom
24          - qcom,msm8974-qfprom
25          - qcom,msm8976-qfprom
26          - qcom,msm8996-qfprom
27          - qcom,msm8998-qfprom
28          - qcom,qcs404-qfprom
29          - qcom,sc7180-qfprom
30          - qcom,sc7280-qfprom
31          - qcom,sdm630-qfprom
32          - qcom,sdm670-qfprom
33          - qcom,sdm845-qfprom
34          - qcom,sm6115-qfprom
35          - qcom,sm8150-qfprom
36          - qcom,sm8250-qfprom
37      - const: qcom,qfprom
38
39  reg:
40    # If the QFPROM is read-only OS image then only the corrected region
41    # needs to be provided.  If the QFPROM is writable then all 4 regions
42    # must be provided.
43    oneOf:
44      - items:
45          - description: The corrected region.
46      - items:
47          - description: The corrected region.
48          - description: The raw region.
49          - description: The config region.
50          - description: The security control region.
51
52  # Clock must be provided if QFPROM is writable from the OS image.
53  clocks:
54    maxItems: 1
55  clock-names:
56    const: core
57
58  # Supply reference must be provided if QFPROM is writable from the OS image.
59  vcc-supply:
60    description: Our power supply.
61
62  power-domains:
63    maxItems: 1
64
65  # Needed if any child nodes are present.
66  "#address-cells":
67    const: 1
68  "#size-cells":
69    const: 1
70
71required:
72  - compatible
73  - reg
74
75unevaluatedProperties: false
76
77examples:
78  - |
79    #include <dt-bindings/clock/qcom,gcc-sc7180.h>
80
81    soc {
82      #address-cells = <2>;
83      #size-cells = <2>;
84
85      efuse@784000 {
86        compatible = "qcom,sc7180-qfprom", "qcom,qfprom";
87        reg = <0 0x00784000 0 0x8ff>,
88              <0 0x00780000 0 0x7a0>,
89              <0 0x00782000 0 0x100>,
90              <0 0x00786000 0 0x1fff>;
91        clocks = <&gcc GCC_SEC_CTRL_CLK_SRC>;
92        clock-names = "core";
93        #address-cells = <1>;
94        #size-cells = <1>;
95
96        vcc-supply = <&vreg_l11a_1p8>;
97
98        hstx-trim-primary@25b {
99          reg = <0x25b 0x1>;
100          bits = <1 3>;
101        };
102      };
103    };
104
105  - |
106    soc {
107      #address-cells = <2>;
108      #size-cells = <2>;
109
110      efuse@784000 {
111        compatible = "qcom,sdm845-qfprom", "qcom,qfprom";
112        reg = <0 0x00784000 0 0x8ff>;
113        #address-cells = <1>;
114        #size-cells = <1>;
115
116        hstx-trim-primary@1eb {
117          reg = <0x1eb 0x1>;
118          bits = <1 4>;
119        };
120      };
121    };
122