* [PATCH 2/2] dt-bindings: thermal: rockchip: add RK3506 TSADC
[not found] <20261121063330.1094548-1-1194781887@qq.com>
@ 2026-11-21 6:33 ` ZhuXiangyu
0 siblings, 0 replies; only message in thread
From: ZhuXiangyu @ 2026-11-21 6:33 UTC (permalink / raw)
To: Rafael J . Wysocki, Daniel Lezcano, Zhang Rui, Lukasz Luba,
Heiko Stuebner
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-pm,
linux-arm-kernel, linux-rockchip, devicetree, linux-kernel,
ZhuXiangyu
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@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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-21 6:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20261121063330.1094548-1-1194781887@qq.com>
2026-11-21 6:33 ` [PATCH 2/2] dt-bindings: thermal: rockchip: add RK3506 TSADC ZhuXiangyu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®