* [PATCH v3] dt-bindings: rtc: pcf8523: Convert to YAML
@ 2023-09-05 22:08 Fabio Estevam
2023-09-06 7:28 ` Krzysztof Kozlowski
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Fabio Estevam @ 2023-09-05 22:08 UTC (permalink / raw)
To: alexandre.belloni
Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, sam, linux-rtc,
devicetree, linux-kernel, javier.carrasco, Fabio Estevam
From: Fabio Estevam <festevam@denx.de>
Convert the PCF8523 bindings from text format to YAML.
The YAML format is preferred as it allows validation.
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
Changes since v2:
- Fix the default quartz-load-femtofarads value. (Javier)
.../devicetree/bindings/rtc/nxp,pcf8523.txt | 18 --------
.../devicetree/bindings/rtc/nxp,pcf8523.yaml | 45 +++++++++++++++++++
2 files changed, 45 insertions(+), 18 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/rtc/nxp,pcf8523.txt
create mode 100644 Documentation/devicetree/bindings/rtc/nxp,pcf8523.yaml
diff --git a/Documentation/devicetree/bindings/rtc/nxp,pcf8523.txt b/Documentation/devicetree/bindings/rtc/nxp,pcf8523.txt
deleted file mode 100644
index 0b1080c60f63..000000000000
--- a/Documentation/devicetree/bindings/rtc/nxp,pcf8523.txt
+++ /dev/null
@@ -1,18 +0,0 @@
-* NXP PCF8523 Real Time Clock
-
-Required properties:
-- compatible: Should contain "nxp,pcf8523".
-- reg: I2C address for chip.
-
-Optional property:
-- quartz-load-femtofarads: The capacitive load of the quartz(x-tal),
- expressed in femto Farad (fF). Valid values are 7000 and 12500.
- Default value (if no value is specified) is 12500fF.
-
-Example:
-
-pcf8523: rtc@68 {
- compatible = "nxp,pcf8523";
- reg = <0x68>;
- quartz-load-femtofarads = <7000>;
-};
diff --git a/Documentation/devicetree/bindings/rtc/nxp,pcf8523.yaml b/Documentation/devicetree/bindings/rtc/nxp,pcf8523.yaml
new file mode 100644
index 000000000000..8d17b89fef5e
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/nxp,pcf8523.yaml
@@ -0,0 +1,45 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/nxp,pcf8523.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP PCF8523 Real Time Clock
+
+maintainers:
+ - Sam Ravnborg <sam@ravnborg.org>
+
+allOf:
+ - $ref: rtc.yaml#
+
+properties:
+ compatible:
+ const: nxp,pcf8523
+
+ reg:
+ maxItems: 1
+
+ quartz-load-femtofarads:
+ description:
+ The capacitive load of the crystal, expressed in femto Farad (fF).
+ enum: [ 7000, 12500 ]
+ default: 12500
+
+required:
+ - compatible
+ - reg
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ rtc@68 {
+ compatible = "nxp,pcf8523";
+ reg = <0x68>;
+ quartz-load-femtofarads = <7000>;
+ };
+ };
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v3] dt-bindings: rtc: pcf8523: Convert to YAML
2023-09-05 22:08 [PATCH v3] dt-bindings: rtc: pcf8523: Convert to YAML Fabio Estevam
@ 2023-09-06 7:28 ` Krzysztof Kozlowski
2023-09-16 19:51 ` Sam Ravnborg
2023-10-15 21:27 ` Alexandre Belloni
2 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2023-09-06 7:28 UTC (permalink / raw)
To: Fabio Estevam, alexandre.belloni
Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, sam, linux-rtc,
devicetree, linux-kernel, javier.carrasco, Fabio Estevam
On 06/09/2023 00:08, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
>
> Convert the PCF8523 bindings from text format to YAML.
>
> The YAML format is preferred as it allows validation.
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
> ---
> Changes since v2:
> - Fix the default quartz-load-femtofarads value. (Javier)
>
For the future, please keep also previous changelogs. Otherwise I would
assume that my feedback from v1 was not implemented.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v3] dt-bindings: rtc: pcf8523: Convert to YAML
2023-09-05 22:08 [PATCH v3] dt-bindings: rtc: pcf8523: Convert to YAML Fabio Estevam
2023-09-06 7:28 ` Krzysztof Kozlowski
@ 2023-09-16 19:51 ` Sam Ravnborg
2023-10-15 21:27 ` Alexandre Belloni
2 siblings, 0 replies; 4+ messages in thread
From: Sam Ravnborg @ 2023-09-16 19:51 UTC (permalink / raw)
To: Fabio Estevam
Cc: alexandre.belloni, robh+dt, krzysztof.kozlowski+dt, conor+dt,
linux-rtc, devicetree, linux-kernel, javier.carrasco,
Fabio Estevam
Hi Fabio,
On Tue, Sep 05, 2023 at 07:08:26PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
>
> Convert the PCF8523 bindings from text format to YAML.
>
> The YAML format is preferred as it allows validation.
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
Looks good,
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
I assume the dt people (or rtc people) will land this.
Sam
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v3] dt-bindings: rtc: pcf8523: Convert to YAML
2023-09-05 22:08 [PATCH v3] dt-bindings: rtc: pcf8523: Convert to YAML Fabio Estevam
2023-09-06 7:28 ` Krzysztof Kozlowski
2023-09-16 19:51 ` Sam Ravnborg
@ 2023-10-15 21:27 ` Alexandre Belloni
2 siblings, 0 replies; 4+ messages in thread
From: Alexandre Belloni @ 2023-10-15 21:27 UTC (permalink / raw)
To: Fabio Estevam
Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, sam, linux-rtc,
devicetree, linux-kernel, javier.carrasco, Fabio Estevam
On Tue, 05 Sep 2023 19:08:26 -0300, Fabio Estevam wrote:
> Convert the PCF8523 bindings from text format to YAML.
>
> The YAML format is preferred as it allows validation.
>
>
Applied, thanks!
[1/1] dt-bindings: rtc: pcf8523: Convert to YAML
commit: 539cbe1b81f44e13103795e41f2e000fdc170859
Best regards,
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-10-15 21:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-05 22:08 [PATCH v3] dt-bindings: rtc: pcf8523: Convert to YAML Fabio Estevam
2023-09-06 7:28 ` Krzysztof Kozlowski
2023-09-16 19:51 ` Sam Ravnborg
2023-10-15 21:27 ` Alexandre Belloni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).