Thread (1 message) 1 message, 1 author, 2017-12-15

[PATCH v3 01/11] dt-bindings: thermal: Describe Armada AP806 and CP110

From: Gregory CLEMENT <hidden>
Date: 2017-12-15 08:44:19
Also in: linux-devicetree, linux-pm

Hi Miquel,
 
 On ven., d?c. 15 2017, Miquel RAYNAL [off-list ref] wrote:
Hello Baruch,

On Fri, 15 Dec 2017 10:27:59 +0200
Baruch Siach [off-list ref] wrote:
quoted
Hi Miquel

On Thu, Dec 14, 2017 at 11:30:01AM +0100, Miquel Raynal wrote:
quoted
+- marvell,thermal-zone-name: The name to identify the thermal zone
+                             within the sysfs, useful when multiple
+                             thermal zones are registered (AP,
CPx...).  
I don't think that would be acceptable. DT is about describing the
hardware. sysfs is a Linux implementation detail which is not tied to
any specific hardware. If this is accepted, the property should be
named 'linux,thermal-zone-name'.
You are right the sysfs mention should not appear in the description.

Otherwise for the naming I'm not sure "linux," is a valid prefix in
that case.
Actually the choice between linux or marvell make me realize that there
is something wrong. Having a name associated to a device is something
pretty usual with the device tree, however it is as the class device
level, such as clock-names, line-name, or regulator-name. So in my
opinion if we want to support naming from device tree it would be done
for all the thermal device not just for the Marvell one.

However I don't think we need it. For example for the clocks we created
the name dynamically using of the base address of the register to keep
them unique.

Gregory

Miqu?l


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help