Re: [PATCH v4 1/5] clocksource/drivers/timer-mediatek: Add system timer bindings

From: Stanley Chu
Date: Tue Jul 03 2018 - 21:49:49 EST


On Tue, 2018-07-03 at 17:32 -0600, Rob Herring wrote:

Hi Rob,

> > +- reg: Should contain location and length for GPT register.
> > +- clocks: GPT is drived by system clock.
>
> s/drived/driven/

Will be fixed in v5.

>
> >
> > Examples:
> >
> > @@ -21,5 +29,23 @@ Examples:
> > compatible = "mediatek,mt6577-timer";
> > reg = <0x10008000 0x80>;
> > interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>;
> > - clocks = <&system_clk>, <&rtc_clk>;
> > + clocks = <&system_clk>;
> > + };
> > +
> > +
> > +** System Timer (SYST)
> > +
> > +Required properties:
> > +- compatible: Should contain
> > + * "mediatek,mt6765-timer" for MT6765 compatible timers
> > +- reg: Should contain the location and length for system timer registers.
> > +- clocks: System timer is drived by system clock.
>
> These look the same. Can't you just add the compatible string and note
> in the description it is the system timer. Or make the compatible
> "mediatek,mt6765-systimer"
>

OK! We will simplify it and just use the same compatible string.

> > +
> > +Examples:
> > +
> > + systimer@10017000 {
>
> timer@

As above, will be fixed in v5.

>
> > + compatible = "mediatek,mt6765-timer";
> > + reg = <0 0x10017000 0 0x1000>;
> > + interrupts = <GIC_SPI 194 IRQ_TYPE_LEVEL_HIGH>;
> > + clocks = <&system_clk>;
> > };
> > --
> > 1.7.9.5
> >

Thanks.
Stanley Chu