Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: thermal: tsens: Document ipq8064 bindings

Document the use of bindings used for msm8960 tsens based devices.
msm8960 use the same gcc regs and is set as a child of the qcom gcc.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210420183343.2272-10-ansuelsmth@gmail.com

authored by

Ansuel Smith and committed by
Daniel Lezcano
26b2f03d 6b3aeafb

+48 -8
+48 -8
Documentation/devicetree/bindings/thermal/qcom-tsens.yaml
··· 19 19 properties: 20 20 compatible: 21 21 oneOf: 22 + - description: msm9860 TSENS based 23 + items: 24 + - enum: 25 + - qcom,ipq8064-tsens 26 + 22 27 - description: v0.1 of TSENS 23 28 items: 24 29 - enum: ··· 80 75 maxItems: 2 81 76 items: 82 77 - const: calib 83 - - const: calib_sel 78 + - enum: 79 + - calib_backup 80 + - calib_sel 84 81 85 82 "#qcom,sensors": 86 83 description: ··· 97 90 Number of cells required to uniquely identify the thermal sensors. Since 98 91 we have multiple sensors this is set to 1 99 92 93 + required: 94 + - compatible 95 + - interrupts 96 + - interrupt-names 97 + - "#thermal-sensor-cells" 98 + - "#qcom,sensors" 99 + 100 100 allOf: 101 101 - if: 102 102 properties: 103 103 compatible: 104 104 contains: 105 105 enum: 106 + - qcom,ipq8064-tsens 106 107 - qcom,mdm9607-tsens 107 108 - qcom,msm8916-tsens 108 109 - qcom,msm8974-tsens ··· 132 117 interrupt-names: 133 118 minItems: 2 134 119 135 - required: 136 - - compatible 137 - - reg 138 - - "#qcom,sensors" 139 - - interrupts 140 - - interrupt-names 141 - - "#thermal-sensor-cells" 120 + - if: 121 + properties: 122 + compatible: 123 + contains: 124 + enum: 125 + - qcom,tsens-v0_1 126 + - qcom,tsens-v1 127 + - qcom,tsens-v2 128 + 129 + then: 130 + required: 131 + - reg 142 132 143 133 additionalProperties: false 144 134 145 135 examples: 136 + - | 137 + #include <dt-bindings/interrupt-controller/arm-gic.h> 138 + // Example msm9860 based SoC (ipq8064): 139 + gcc: clock-controller { 140 + 141 + /* ... */ 142 + 143 + tsens: thermal-sensor { 144 + compatible = "qcom,ipq8064-tsens"; 145 + 146 + nvmem-cells = <&tsens_calib>, <&tsens_calib_backup>; 147 + nvmem-cell-names = "calib", "calib_backup"; 148 + interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>; 149 + interrupt-names = "uplow"; 150 + 151 + #qcom,sensors = <11>; 152 + #thermal-sensor-cells = <1>; 153 + }; 154 + }; 155 + 146 156 - | 147 157 #include <dt-bindings/interrupt-controller/arm-gic.h> 148 158 // Example 1 (legacy: for pre v1 IP):