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,ipq5332-qfprom 23 - qcom,ipq5424-qfprom 24 - qcom,ipq6018-qfprom 25 - qcom,ipq8064-qfprom 26 - qcom,ipq8074-qfprom 27 - qcom,ipq9574-qfprom 28 - qcom,msm8226-qfprom 29 - qcom,msm8916-qfprom 30 - qcom,msm8917-qfprom 31 - qcom,msm8974-qfprom 32 - qcom,msm8976-qfprom 33 - qcom,msm8996-qfprom 34 - qcom,msm8998-qfprom 35 - qcom,qcm2290-qfprom 36 - qcom,qcs404-qfprom 37 - qcom,qcs615-qfprom 38 - qcom,qcs8300-qfprom 39 - qcom,sar2130p-qfprom 40 - qcom,sc7180-qfprom 41 - qcom,sc7280-qfprom 42 - qcom,sc8280xp-qfprom 43 - qcom,sdm630-qfprom 44 - qcom,sdm670-qfprom 45 - qcom,sdm845-qfprom 46 - qcom,sm6115-qfprom 47 - qcom,sm6350-qfprom 48 - qcom,sm6375-qfprom 49 - qcom,sm8150-qfprom 50 - qcom,sm8250-qfprom 51 - qcom,sm8450-qfprom 52 - qcom,sm8550-qfprom 53 - qcom,sm8650-qfprom 54 - const: qcom,qfprom 55 56 reg: 57 # If the QFPROM is read-only OS image then only the corrected region 58 # needs to be provided. If the QFPROM is writable then all 4 regions 59 # must be provided. 60 oneOf: 61 - items: 62 - description: The corrected region. 63 - items: 64 - description: The corrected region. 65 - description: The raw region. 66 - description: The config region. 67 - description: The security control region. 68 69 # Clock must be provided if QFPROM is writable from the OS image. 70 clocks: 71 maxItems: 1 72 clock-names: 73 const: core 74 75 # Supply reference must be provided if QFPROM is writable from the OS image. 76 vcc-supply: 77 description: Our power supply. 78 79 power-domains: 80 maxItems: 1 81 82required: 83 - compatible 84 - reg 85 86unevaluatedProperties: false 87 88examples: 89 - | 90 #include <dt-bindings/clock/qcom,gcc-sc7180.h> 91 92 soc { 93 #address-cells = <2>; 94 #size-cells = <2>; 95 96 efuse@784000 { 97 compatible = "qcom,sc7180-qfprom", "qcom,qfprom"; 98 reg = <0 0x00784000 0 0x8ff>, 99 <0 0x00780000 0 0x7a0>, 100 <0 0x00782000 0 0x100>, 101 <0 0x00786000 0 0x1fff>; 102 clocks = <&gcc GCC_SEC_CTRL_CLK_SRC>; 103 clock-names = "core"; 104 #address-cells = <1>; 105 #size-cells = <1>; 106 107 vcc-supply = <&vreg_l11a_1p8>; 108 109 hstx-trim-primary@25b { 110 reg = <0x25b 0x1>; 111 bits = <1 3>; 112 }; 113 }; 114 }; 115 116 - | 117 soc { 118 #address-cells = <2>; 119 #size-cells = <2>; 120 121 efuse@784000 { 122 compatible = "qcom,sdm845-qfprom", "qcom,qfprom"; 123 reg = <0 0x00784000 0 0x8ff>; 124 #address-cells = <1>; 125 #size-cells = <1>; 126 127 hstx-trim-primary@1eb { 128 reg = <0x1eb 0x1>; 129 bits = <1 4>; 130 }; 131 }; 132 }; 133