Thread (10 messages) 10 messages, 3 authors, 2016-07-21

[PATCH v2 09/10] Documentation: devicetree: Add dts description for nuc900

From: Wan Zongshun <hidden>
Date: 2016-07-11 02:14:20
Also in: linux-clk, linux-devicetree, lkml


On 2016?07?11? 06:17, Arnd Bergmann wrote:
On Sunday, July 10, 2016 3:42:21 PM CEST Wan Zongshun wrote:
quoted
+
+Required properties:
+- compatible : Should be "nuvoton,nuc970-tmr"
+- reg : Address and length of the register set
+- clocks : Reference on the timer input clock
+- interrupts : Reference to the timer interrupt
+
+Example:
+
+tmr at 0xb8001000 {
The name should be "timer", not "tmr", and the address should
not contain a leading "0x".
Ok, so all dts addresses has no need contain a leading "0x"?
quoted
+       compatible = "nuvoton,nuc970-tmr";
+       reg = <0xb8001000 0x1000>;
+       interrupts = <16>;
+       clocks = <&clks TIMER0_GATE>,
+       <&clks TIMER1_GATE>;
+       clock-names = "timer0", "timer1";
+};
The clocks/clock-names description does not match the example:
you only define a single clock in the required properties, but
have two separate inputs in the example. Please fix one or the
other.
Two clocks are necessary, so I only need modify this description like?

Required properties:
   clocks : Reference on the timer input clock, This list should be 2
	   clocks, the order is timer0 , timer1.

Is it ok?
	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help