From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH v2 09/10] Documentation: devicetree: Add dts description for nuc900 Date: Mon, 11 Jul 2016 09:46:50 +0200 Message-ID: <1644086.jqpXDrkuq8@wuerfel> References: <1468136542-2656-1-git-send-email-vw@iommu.org> <1850749.ap1S8Xq0fA@wuerfel> <578300E2.5000405@iommu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <578300E2.5000405@iommu.org> Sender: linux-kernel-owner@vger.kernel.org To: Wan Zongshun Cc: linux-arm-kernel@lists.infradead.org, Russell King , devicetree@vger.kernel.org, linux-clk@vger.kernel.org, jason@lakedaemon.net, Daniel Lezcano , linux-kernel@vger.kernel.org, p.zabel@pengutronix.de, Thomas Gleixner , Wan Zongshun List-Id: devicetree@vger.kernel.org On Monday, July 11, 2016 10:13:54 AM CEST Wan Zongshun wrote: >=20 > On 2016=E5=B9=B407=E6=9C=8811=E6=97=A5 06:17, Arnd Bergmann wrote: > > On Sunday, July 10, 2016 3:42:21 PM CEST Wan Zongshun wrote: > >> + > >> +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@0xb8001000 { > > > > The name should be "timer", not "tmr", and the address should > > not contain a leading "0x". >=20 > Ok, so all dts addresses has no need contain a leading "0x"? In properties, you need the leading 0x for hexadecimal numbers, in the node name the portion after the "@" depends on the bus, but is usually just the value of the address in hexadecimal without the leading 0x. > > > >> + compatible =3D "nuvoton,nuc970-tmr"; > >> + reg =3D <0xb8001000 0x1000>; > >> + interrupts =3D <16>; > >> + clocks =3D <&clks TIMER0_GATE>, > >> + <&clks TIMER1_GATE>; > >> + clock-names =3D "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. >=20 > Two clocks are necessary, so I only need modify this description like= ? >=20 > Required properties: > clocks : Reference on the timer input clock, This list should be 2 > clocks, the order is timer0 , timer1. >=20 > Is it ok? Yes, looks good. Arnd