[PATCH v7 02/18] dt-bindings: iio: adc: at91-sama5d2: document nvmem-cells

Varshini Rajendran varshini.rajendran at microchip.com
Tue Dec 1 23:04:40 PST 2026


The SAMA7G5 and SAMA7D65 ADCs read their temperature sensor calibration
from the OTP memory through an nvmem cell named "temperature_calib", and
the sama7g5 and sama7d65 device trees use these properties.
Document nvmem-cells and nvmem-cell-names and only allow them for the SoCs
that have the temperature sensor.

Signed-off-by: Varshini Rajendran <varshini.rajendran at microchip.com>
---
 .../bindings/iio/adc/atmel,sama5d2-adc.yaml   | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/Documentation/devicetree/bindings/iio/adc/atmel,sama5d2-adc.yaml b/Documentation/devicetree/bindings/iio/adc/atmel,sama5d2-adc.yaml
index b1d2416013f4..6e5668690c94 100644
--- a/Documentation/devicetree/bindings/iio/adc/atmel,sama5d2-adc.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/atmel,sama5d2-adc.yaml
@@ -59,6 +59,27 @@ properties:
   "#io-channel-cells":
     const: 1
 
+  nvmem-cells:
+    maxItems: 1
+    description: Temperature sensor calibration data stored in the OTP memory.
+
+  nvmem-cell-names:
+    const: temperature_calib
+
+allOf:
+  - if:
+      not:
+        properties:
+          compatible:
+            contains:
+              enum:
+                - microchip,sama7d65-adc
+                - microchip,sama7g5-adc
+    then:
+      properties:
+        nvmem-cells: false
+        nvmem-cell-names: false
+
 additionalProperties: false
 
 required:
-- 
2.43.0




More information about the linux-arm-kernel mailing list