[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7f45aaea-6520-41c7-8788-f6dd14c5fcb2@linaro.org>
Date: Fri, 12 Jan 2024 18:18:58 +0100
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Josua Mayer <josua@...id-run.com>, Nishanth Menon <nm@...com>,
Vignesh Raghavendra <vigneshr@...com>, Tero Kristo <kristo@...nel.org>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>, Alessandro Zummo <a.zummo@...ertech.it>,
Alexandre Belloni <alexandre.belloni@...tlin.com>
Cc: Yazan Shhady <yazan.shhady@...id-run.com>,
linux-arm-kernel@...ts.infradead.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-rtc@...r.kernel.org
Subject: Re: [PATCH v2 2/5] dt-bindings: rtc: abx80x: convert to yaml
On 12/01/2024 18:12, Josua Mayer wrote:
> Convert the abracon abx80x rtc text bindings to dt-schema format.
>
> Additionally added "interrupts" property which was missing from text
> format, because abx80x and driver support them.
>
> Signed-off-by: Josua Mayer <josua@...id-run.com>
> ---
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/rtc/abracon,abx80x.yaml
> @@ -0,0 +1,56 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/rtc/abracon,abx80x.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Abracon ABX80X I2C ultra low power RTC/Alarm chip
> +
> +maintainers: []
You need a name here. If there is no driver maintainer or anyone
interested, put devicetree list.
> +
> +allOf:
> + - $ref: rtc.yaml#
> +
> +properties:
> + compatible:
> + anyOf:
Please do not invent your own solutions, but use existing code as
template. Just open example-schema or any other recent RTC binding.
> + - description: auto-detection from id register
> + const: abracon,abx80x
> + - const: abracon,,ab0801
> + - const: abracon,,ab0803
> + - const: abracon,,ab0804
> + - const: abracon,,ab0805
> + - const: abracon,,ab1801
> + - const: abracon,,ab1803
> + - const: abracon,,ab1804
> + - const: abracon,,ab1805
> + - const: microcrystal,rv1805
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + abracon,tc-diode:
Missing type - string.
> + description:
> + Trickle-charge diode type.
> + Required to enable charging backup battery.
> + anyOf:
Use enum and explain the meanings of the values in descruption.
> + - description: standard diode with 0.6V drop
> + const: standard
> + - description: schottky diode with 0.3V drop
> + const: schottky
> +
> + abracon,tc-resistor:
> + description:
> + Trickle-charge resistor value in kOhm.
> + Required to enable charging backup battery.
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum: [0, 3, 6, 11]
> +
> +required:
> + - compatible
> + - reg
> +
> +unevaluatedProperties: false
Provide example.
Best regards,
Krzysztof
Powered by blists - more mailing lists