Re: [PATCH 1/7] dt-bindings: rtc: rzn1: Describe the RZN1 RTC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Krzysztof,

krzysztof.kozlowski@xxxxxxxxxx wrote on Thu, 7 Apr 2022 09:37:39 +0200:

> On 05/04/2022 20:47, Miquel Raynal wrote:
> > Add new binding file for this RTC.
> > 
> > Signed-off-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx>
> > ---
> >  .../bindings/rtc/renesas,rzn1-rtc.yaml        | 69 +++++++++++++++++++
> >  1 file changed, 69 insertions(+)
> >  create mode 100644 Documentation/devicetree/bindings/rtc/renesas,rzn1-rtc.yaml
> > 
> > diff --git a/Documentation/devicetree/bindings/rtc/renesas,rzn1-rtc.yaml b/Documentation/devicetree/bindings/rtc/renesas,rzn1-rtc.yaml
> > new file mode 100644
> > index 000000000000..903f0cd361fa
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/rtc/renesas,rzn1-rtc.yaml
> > @@ -0,0 +1,69 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/rtc/renesas,rzn1-rtc.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: Renesas RZ/N1 SoCs Real-Time Clock DT bindings
> > +
> > +maintainers:
> > +  - Miquel Raynal <miquel.raynal@xxxxxxxxxxx>
> > +
> > +allOf:
> > +  - $ref: rtc.yaml#
> > +
> > +properties:
> > +  compatible:
> > +    oneOf:  
> 
> Why oneOf?

Right, copy-paste leftover.

> 
> > +      - items:
> > +          - enum:
> > +              - renesas,r9a06g032-rtc
> > +          - const: renesas,rzn1-rtc
> > +
> > +  reg:
> > +    maxItems: 1
> > +
> > +  interrupts:
> > +    minItems: 3
> > +    maxItems: 3
> > +
> > +  interrupt-names:
> > +    items:
> > +      - const: alarm
> > +      - const: timer
> > +      - const: pps
> > +
> > +  clocks:
> > +    maxItems: 1
> > +
> > +  clock-names:
> > +    const: hclk
> > +
> > +  start-year: true  
> 
> You don't need this, it's coming from rtc.yaml.

Right.

Thanks,
Miquèl




[Index of Archives]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux