lkml.org 
[lkml]   [2022]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 06/11] dt-bindings: thermal: k3-j72xx: conditionally require efuse reg range
Date
Only some of TI's J721E SoCs will need a eFuse register range mapped to
determine if they're affected by TI's i2128 erratum. All other SoC will
not need this eFuse range to be mapped to function properly

Update the bindings for the k3_j72xx_bandgap thermal driver so other
devices will only need to define two register ranges

Signed-off-by: Bryan Brattlof <bb@ti.com>
---
.../bindings/thermal/ti,j72xx-thermal.yaml | 34 +++++++++++++------
1 file changed, 24 insertions(+), 10 deletions(-)

diff --git a/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml b/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml
index 0b6a6fa07a532..387628ab35959 100644
--- a/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml
+++ b/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml
@@ -33,16 +33,6 @@ properties:
- ti,j721e-vtm
- ti,j7200-vtm

- reg:
- items:
- - description: VTM cfg1 register space
- - description: VTM cfg2 register space
- - description: |
- A software trimming method must be applied to some Jacinto
- devices to function properly. This eFuse region provides
- the information needed for these SoCs to report
- temperatures accurately.
-
power-domains:
description: |
Should contain the phandle to a power management (PM) domain
@@ -52,6 +42,30 @@ properties:
"#thermal-sensor-cells":
const: 1

+if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - ti,j721e-vtm
+then:
+ properties:
+ reg:
+ items:
+ - description: VTM cfg1 register space
+ - description: VTM cfg2 register space
+ - description: |
+ A software trimming method must be applied to some Jacinto
+ devices to function properly. This eFuse region provides
+ the information needed for these SoCs to report
+ temperatures accurately.
+else:
+ properties:
+ reg:
+ items:
+ - description: VTM cfg1 register space
+ - description: VTM cfg2 register space
+
required:
- compatible
- reg
--
2.38.0
\
 
 \ /
  Last update: 2022-10-12 01:19    [W:0.073 / U:6.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site