mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Javier Carrasco <javier.carrasco.cruz@gmail.com>
To: Alexandre Belloni <alexandre.belloni@bootlin.com>,
	 Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	Jiaxun Yang <jiaxun.yang@flygoat.com>,
	 Vladimir Zapolskiy <vz@mleia.com>, Joel Stanley <joel@jms.id.au>,
	 Andrew Jeffery <andrew@codeconstruct.com.au>,
	 Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	 Alexandre Torgue <alexandre.torgue@foss.st.com>
Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org,
	 linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	 linux-aspeed@lists.ozlabs.org,
	linux-stm32@st-md-mailman.stormreply.com,
	 Javier Carrasco <javier.carrasco.cruz@gmail.com>
Subject: [PATCH 8/9] dt-bindings: rtc: stmp3xxx-rtc: convert to dtschema
Date: Mon, 08 Apr 2024 17:53:08 +0200	[thread overview]
Message-ID: <20240408-rtc_dtschema-v1-8-c447542fc362@gmail.com> (raw)
In-Reply-To: <20240408-rtc_dtschema-v1-0-c447542fc362@gmail.com>

Convert existing binding to dtschema to support validation.

The 'fsl,imx28-rtc' compatible is currently not supported, and it is
only referenced in this binding and in nxp/mxs/imx28.dtsi. Therefore,
that compatible has been dropped, which triggers a warning when testing
the DT against the new binding.

There is another reference to fsl,stmp3xxx-rtc in nxp/mxs/imx23.dtsi,
where another unsupported compatible 'fsl,imx23-rtc' is used, and the
same problem would arise when testing the file against the new binding.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
 .../devicetree/bindings/rtc/fsl,stmp3xxx-rtc.yaml  | 45 ++++++++++++++++++++++
 .../devicetree/bindings/rtc/stmp3xxx-rtc.txt       | 21 ----------
 2 files changed, 45 insertions(+), 21 deletions(-)

diff --git a/Documentation/devicetree/bindings/rtc/fsl,stmp3xxx-rtc.yaml b/Documentation/devicetree/bindings/rtc/fsl,stmp3xxx-rtc.yaml
new file mode 100644
index 000000000000..bf70cce2701f
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/fsl,stmp3xxx-rtc.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/fsl,stmp3xxx-rtc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: STMP3xxx/i.MX28 Time Clock Controller
+
+maintainers:
+  - Javier Carrasco <javier.carrasco.cruz@gmail.com>
+
+allOf:
+  - $ref: rtc.yaml#
+
+properties:
+  compatible:
+    const: fsl,stmp3xxx-rtc
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  stmp,crystal-freq:
+    description:
+      Override crystal frequency as determined from fuse bits.
+      Use <0> for "no crystal".
+    $ref: /schemas/types.yaml#/definitions/uint32
+    enum: [0, 32000, 32768]
+
+required:
+  - compatible
+  - reg
+  - interrupts
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    rtc@80056000 {
+        compatible = "fsl,stmp3xxx-rtc";
+        reg = <0x80056000 2000>;
+        interrupts = <29>;
+    };
diff --git a/Documentation/devicetree/bindings/rtc/stmp3xxx-rtc.txt b/Documentation/devicetree/bindings/rtc/stmp3xxx-rtc.txt
deleted file mode 100644
index fa6a94226669..000000000000
--- a/Documentation/devicetree/bindings/rtc/stmp3xxx-rtc.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-* STMP3xxx/i.MX28 Time Clock controller
-
-Required properties:
-- compatible: should be one of the following.
-    * "fsl,stmp3xxx-rtc"
-- reg: physical base address of the controller and length of memory mapped
-  region.
-- interrupts: rtc alarm interrupt
-
-Optional properties:
-- stmp,crystal-freq: override crystal frequency as determined from fuse bits.
-  Only <32000> and <32768> are possible for the hardware.  Use <0> for
-  "no crystal".
-
-Example:
-
-rtc@80056000 {
-	compatible = "fsl,imx28-rtc", "fsl,stmp3xxx-rtc";
-	reg = <0x80056000 2000>;
-	interrupts = <29>;
-};

-- 
2.40.1


  parent reply	other threads:[~2024-04-08 15:53 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-08 15:53 [PATCH 0/9] rtc: convert multiple bindings into dtschema Javier Carrasco
2024-04-08 15:53 ` [PATCH 1/9] dt-bindings: rtc: orion-rtc: move to trivial-rtc Javier Carrasco
2024-04-09  7:31   ` Krzysztof Kozlowski
2024-04-08 15:53 ` [PATCH 2/9] dt-bindings: rtc: google,goldfish-rtc: " Javier Carrasco
2024-04-09  7:32   ` Krzysztof Kozlowski
2024-04-16 22:45   ` kernel test robot
2024-04-17  8:19     ` Javier Carrasco
2024-04-08 15:53 ` [PATCH 3/9] dt-bindings: rtc: lpc32xx-rtc: " Javier Carrasco
2024-04-09  7:34   ` Krzysztof Kozlowski
2024-04-09  8:52     ` Javier Carrasco
2024-04-09  9:40       ` Krzysztof Kozlowski
2024-04-09 12:11       ` Alexandre Belloni
2024-04-08 15:53 ` [PATCH 4/9] dt-bindings: rtc: maxim,ds1742: " Javier Carrasco
2024-04-09  7:35   ` Krzysztof Kozlowski
2024-04-08 15:53 ` [PATCH 5/9] dt-bindings: rtc: rtc-aspeed: " Javier Carrasco
2024-04-09  7:36   ` Krzysztof Kozlowski
2024-04-09 11:53   ` Andrew Jeffery
2024-04-08 15:53 ` [PATCH 6/9] dt-bindings: rtc: pxa-rtc: convert to dtschema Javier Carrasco
2024-04-09  7:37   ` Krzysztof Kozlowski
2024-04-08 15:53 ` [PATCH 7/9] dt-bindings: rtc: spear-rtc: move to trivial-rtc Javier Carrasco
2024-04-09  7:37   ` Krzysztof Kozlowski
2024-04-08 15:53 ` Javier Carrasco [this message]
2024-04-09  7:40   ` [PATCH 8/9] dt-bindings: rtc: stmp3xxx-rtc: convert to dtschema Krzysztof Kozlowski
2024-04-09  9:22     ` Javier Carrasco
2024-04-09  9:42       ` Krzysztof Kozlowski
2024-04-08 15:53 ` [PATCH 9/9] dt-bindings: rtc: via,vt8500-rtc: move to trivial-rtc Javier Carrasco
2024-04-09  7:40   ` Krzysztof Kozlowski
2024-04-09 10:26 ` [PATCH 0/9] rtc: convert multiple bindings into dtschema Alexandre Belloni
2024-04-09 12:02   ` Javier Carrasco

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240408-rtc_dtschema-v1-8-c447542fc362@gmail.com \
    --to=javier.carrasco.cruz@gmail.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=alexandre.torgue@foss.st.com \
    --cc=andrew@codeconstruct.com.au \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jiaxun.yang@flygoat.com \
    --cc=joel@jms.id.au \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-aspeed@lists.ozlabs.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rtc@vger.kernel.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=robh@kernel.org \
    --cc=vz@mleia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®