Re: [PATCH v2] clk: Add driver for the si544 clock generator chip

From: Mike Looijmans
Date: Tue Mar 20 2018 - 12:09:44 EST


ïOn 19-03-18 22:08, Stephen Boyd wrote:
Quoting Mike Looijmans (2018-03-19 08:04:15)
On 18-03-18 13:52, Rob Herring wrote:
On Thu, Mar 15, 2018 at 12:50:08PM +0100, Mike Looijmans wrote:
+Required properties:
+ - compatible: One of "silabs,si514a", "silabs,si514b" "silabs,si514c" according
+ to the speed grade of the chip.
+ - reg: I2C device address.
+ - #clock-cells: From common clock bindings: Shall be 0.
+
+Optional properties:
+ - clock-output-names: From common clock bindings. Recommended to be "si544".

What's the point if there is only 1 clock output?

I have a board with 6 of these chips, and the clock registration fails if they
don't have unique names. Providing a clock-output-names property was the
easiest way around it.

Should I just omit the line or change the wording to reflect the above or is
there a better solution (maybe I can use the DT node name as clock name in the
driver, will look into that)

I would leave clock-output-names for now. One day we can get off of
strings in CCF. Soon perhaps.



+
+Example:
+ si544: clock-generator@55 {

clock-controller@55 is the standard node name.

I'll change and post patch v3


I made some comments on v1. Please fold those into v3.


Thanks, found them on patchwork, somehow they didn't end up in my mailbox.

Comments are clear, will incorporate them, I only have trouble with your remark on the DT documentation "Can this reference stuff go to the bottom of this document?". I copied the style from the other documents in the same directory, I'm slightly puzzled about where the reference part should go now.



Kind regards,

Mike Looijmans
System Expert

TOPIC Products
Materiaalweg 4, NL-5681 RJ Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: mike.looijmans@xxxxxxxxxxxxxxxxx
Website: www.topicproducts.com

Please consider the environment before printing this e-mail