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