Skip to content

Commit e881662

Browse files
sredlezcano
authored andcommitted
dt-bindings: thermal: rockchip: Tighten grf requirements
Instead of having an optional rockchip,grf property, forbid using it on platforms without registers in a GRF being needed for thermal monitoring and make it mandatory on the platforms actually needing it. Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> Reviewed-by: Dragan Simic <dsimic@manjaro.org> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20250820-thermal-rockchip-grf-warning-v2-3-c7e2d35017b8@kernel.org Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent c268a9d commit e881662

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Documentation/devicetree/bindings/thermal/rockchip-thermal.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,21 @@ required:
119119
- resets
120120

121121
allOf:
122+
- if:
123+
properties:
124+
compatible:
125+
contains:
126+
enum:
127+
- rockchip,px30-tsadc
128+
- rockchip,rk3366-tsadc
129+
- rockchip,rk3399-tsadc
130+
- rockchip,rk3568-tsadc
131+
then:
132+
required:
133+
- rockchip,grf
134+
else:
135+
properties:
136+
rockchip,grf: false
122137
- if:
123138
not:
124139
properties:

0 commit comments

Comments
 (0)