[PATCH 2/2] dt-bindings: thermal: rockchip: add RK3506 TSADC
ZhuXiangyu
1194781887 at qq.com
Fri Nov 20 22:33:30 PST 2026
Document the RK3506 TSADC, which uses the TSADCV13 register layout
and requires the TSEN clock in addition to the controller and APB
clocks. Like the other newer Rockchip TSADCs it needs the GRF to
enable the sensor analog front-end.
Signed-off-by: ZhuXiangyu <1194781887 at qq.com>
---
.../bindings/thermal/rockchip-thermal.yaml | 23 ++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/thermal/rockchip-thermal.yaml b/Documentation/devicetree/bindings/thermal/rockchip-thermal.yaml
index 9fa5c4c4..f7fa4b60 100644
--- a/Documentation/devicetree/bindings/thermal/rockchip-thermal.yaml
+++ b/Documentation/devicetree/bindings/thermal/rockchip-thermal.yaml
@@ -20,6 +20,7 @@ properties:
- rockchip,rk3328-tsadc
- rockchip,rk3368-tsadc
- rockchip,rk3399-tsadc
+ - rockchip,rk3506-tsadc
- rockchip,rk3568-tsadc
- rockchip,rk3576-tsadc
- rockchip,rk3588-tsadc
@@ -33,12 +34,14 @@ properties:
clocks:
minItems: 2
- maxItems: 2
+ maxItems: 3
clock-names:
+ minItems: 2
items:
- const: tsadc
- const: apb_pclk
+ - const: tsen
nvmem-cells:
items:
@@ -127,6 +130,7 @@ allOf:
- rockchip,px30-tsadc
- rockchip,rk3366-tsadc
- rockchip,rk3399-tsadc
+ - rockchip,rk3506-tsadc
- rockchip,rk3568-tsadc
then:
required:
@@ -155,6 +159,23 @@ allOf:
then:
patternProperties:
"@[0-9a-f]+$": false
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: rockchip,rk3506-tsadc
+ then:
+ properties:
+ clocks:
+ minItems: 3
+ clock-names:
+ minItems: 3
+ else:
+ properties:
+ clocks:
+ maxItems: 2
+ clock-names:
+ maxItems: 2
unevaluatedProperties: false
--
2.47.3
More information about the Linux-rockchip
mailing list