dt-bindings: thermal: Drop thermal zone node name length limit
Subsystems (2)
PATCH 1/1 dt-bindings: thermal: Drop thermal zone node name length limit
Device Tree bindings describe hardware and must remain OS-agnostic. The thermal zone node name length limit is derived from Linux's THERMAL_NAME_LENGTH macro, which is an implementation detail rather than a hardware requirement.
Remove the length restriction and its accompanying comment while preserving the thermal zone naming convention. Any OS-specific limits should be handled by the implementation rather than encoded in the Device Tree ABI.
--- Documentation/devicetree/bindings/thermal/thermal-zones.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
Documentation/devicetree/bindings/thermal/thermal-zones.yaml +1 -4
@@ -49,10 +49,7 @@ properties: to take when the temperature crosses those thresholds. patternProperties: - # Node name is limited in size due to Linux kernel requirements - 19 - # characters in total (see THERMAL_NAME_LENGTH, including terminating NUL - # byte): - "^[a-zA-Z][a-zA-Z0-9\\-]{1,10}-thermal$": + "^[a-zA-Z][a-zA-Z0-9\\-]*-thermal$": type: object description: Each thermal zone node contains information about how frequently it
Signature · 1 line
2.43.0
Quoted 1 line · Daniel Lezcano
Device Tree bindings describe hardware and must remain OS-agnostic.
DTS describes hardware. Bindings describe the ABI between hardware and software, so if SW requires something regarding the DTS, should be placed in the binding as well, IMO.
Best regards,
Krzysztof
Quoted 6 lines · Krzysztof Kozlowski
Quoted 1 line · Daniel Lezcano
Device Tree bindings describe hardware and must remain OS-agnostic.
DTS describes hardware. Bindings describe the ABI between hardware and software, so if SW requires something regarding the DTS, should be placed in the binding as well, IMO.
That's odd, if the Linux kernel changes the thermal zone name length to something else, then that impacts the bindings, no ?
I don't see a good reason why the node name must be limited by Linux.
Quoted 11 lines · Daniel Lezcano
Quoted 6 lines · Krzysztof Kozlowski
Quoted 1 line · Daniel Lezcano
Device Tree bindings describe hardware and must remain OS-agnostic.
DTS describes hardware. Bindings describe the ABI between hardware and software, so if SW requires something regarding the DTS, should be placed in the binding as well, IMO.
That's odd, if the Linux kernel changes the thermal zone name length to something else, then that impacts the bindings, no ?
I don't see a good reason why the node name must be limited by Linux.
I provided the reason. Why aren't we/you removing all the device subnode namings coming from of_get_child_by_name() usage? That's purely a Linux requirement, no?
Best regards,
Krzysztof