mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alexey Charkov <alchark@gmail.com>
To: "Krzysztof Kozlowski" <krzk@kernel.org>,
	"Andi Shyti" <andi.shyti@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Thomas Gleixner" <tglx@linutronix.de>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Ulf Hansson" <ulf.hansson@linaro.org>,
	"Andrew Lunn" <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	"Eric Dumazet" <edumazet@google.com>,
	"Jakub Kicinski" <kuba@kernel.org>,
	"Paolo Abeni" <pabeni@redhat.com>,
	"Uwe Kleine-König" <ukleinek@kernel.org>,
	"Daniel Lezcano" <daniel.lezcano@linaro.org>
Cc: linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org,
	 devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	 linux-mmc@vger.kernel.org, netdev@vger.kernel.org,
	 linux-pwm@vger.kernel.org, Alexey Charkov <alchark@gmail.com>
Subject: [PATCH 03/13] dt-bindings: mmc: vt8500-sdmmc: Convert to YAML
Date: Wed, 16 Apr 2025 12:21:28 +0400	[thread overview]
Message-ID: <20250416-wmt-updates-v1-3-f9af689cdfc2@gmail.com> (raw)
In-Reply-To: <20250416-wmt-updates-v1-0-f9af689cdfc2@gmail.com>

Rewrite the textual description for the WonderMedia SDMMC controller
as YAML schema, and switch the filename to follow the compatible
string.

Signed-off-by: Alexey Charkov <alchark@gmail.com>
---
 .../devicetree/bindings/mmc/vt8500-sdmmc.txt       | 23 --------
 .../devicetree/bindings/mmc/wm,wm8505-sdhc.yaml    | 61 ++++++++++++++++++++++
 MAINTAINERS                                        |  1 +
 3 files changed, 62 insertions(+), 23 deletions(-)

diff --git a/Documentation/devicetree/bindings/mmc/vt8500-sdmmc.txt b/Documentation/devicetree/bindings/mmc/vt8500-sdmmc.txt
deleted file mode 100644
index d7fb6abb3eb8c87e698ca4f30270c949878f3cbf..0000000000000000000000000000000000000000
--- a/Documentation/devicetree/bindings/mmc/vt8500-sdmmc.txt
+++ /dev/null
@@ -1,23 +0,0 @@
-* Wondermedia WM8505/WM8650 SD/MMC Host Controller
-
-This file documents differences between the core properties described
-by mmc.txt and the properties used by the wmt-sdmmc driver.
-
-Required properties:
-- compatible: Should be "wm,wm8505-sdhc".
-- interrupts: Two interrupts are required - regular irq and dma irq.
-
-Optional properties:
-- sdon-inverted: SD_ON bit is inverted on the controller
-
-Examples:
-
-sdhc@d800a000 {
-	compatible = "wm,wm8505-sdhc";
-	reg = <0xd800a000 0x1000>;
-	interrupts = <20 21>;
-	clocks = <&sdhc>;
-	bus-width = <4>;
-	sdon-inverted;
-};
-
diff --git a/Documentation/devicetree/bindings/mmc/wm,wm8505-sdhc.yaml b/Documentation/devicetree/bindings/mmc/wm,wm8505-sdhc.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a7d962bc13c7ff70b50448201b0416efc7f787af
--- /dev/null
+++ b/Documentation/devicetree/bindings/mmc/wm,wm8505-sdhc.yaml
@@ -0,0 +1,61 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mmc/wm,wm8505-sdhc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: WonderMedia SOC SoC SDHCI Controller
+
+maintainers:
+  - Alexey Charkov <alchark@gmail.com>
+
+allOf:
+  - $ref: mmc-controller.yaml#
+
+properties:
+  compatible:
+    oneOf:
+      - const: wm,wm8505-sdhc
+      - items:
+          - const: wm,wm8650-sdhc
+          - const: wm,wm8505-sdhc
+      - items:
+          - const: wm,wm8750-sdhc
+          - const: wm,wm8505-sdhc
+      - items:
+          - const: wm,wm8850-sdhc
+          - const: wm,wm8505-sdhc
+
+  reg:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1
+
+  interrupts:
+    items:
+      - description: SDMMC controller interrupt
+      - description: SDMMC controller DMA interrupt
+
+  sdon-inverted:
+    type: boolean
+    description: SD_ON bit is inverted on the controller
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    mmc@d800a000 {
+        compatible = "wm,wm8505-sdhc";
+        reg = <0xd800a000 0x1000>;
+        interrupts = <20>, <21>;
+        clocks = <&sdhc>;
+        bus-width = <4>;
+        sdon-inverted;
+    };
diff --git a/MAINTAINERS b/MAINTAINERS
index 2444282096e03b301ed0e3209b4de7a114709764..f106850b9d3d349d82953b672588b967a37ea27b 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -3429,6 +3429,7 @@ L:	linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
 S:	Odd Fixes
 F:	Documentation/devicetree/bindings/i2c/wm,wm8505-i2c.yaml
 F:	Documentation/devicetree/bindings/interrupt-controller/via,vt8500-intc.yaml
+F:	Documentation/devicetree/bindings/mmc/wm,wm8505-sdhc.yaml
 F:	arch/arm/boot/dts/vt8500/
 F:	arch/arm/mach-vt8500/
 F:	drivers/clocksource/timer-vt8500.c

-- 
2.49.0


  parent reply	other threads:[~2025-04-16  8:22 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-16  8:21 [PATCH 00/13] ARM: vt8500: DT bindings and dts updates Alexey Charkov
2025-04-16  8:21 ` [PATCH 01/13] dt-bindings: i2c: i2c-wmt: Convert to YAML Alexey Charkov
2025-04-23 11:50   ` Alexey Charkov
2025-04-25 11:42   ` Krzysztof Kozlowski
2025-04-16  8:21 ` [PATCH 02/13] dt-bindings: interrupt-controller: via,vt8500-intc: " Alexey Charkov
2025-04-16 20:10   ` Rob Herring
2025-04-17  6:15     ` Alexey Charkov
2025-04-16  8:21 ` Alexey Charkov [this message]
2025-04-16 20:14   ` [PATCH 03/13] dt-bindings: mmc: vt8500-sdmmc: " Rob Herring
2025-04-17  6:25     ` Alexey Charkov
2025-04-18 12:38       ` Alexey Charkov
2025-04-22  8:08         ` Krzysztof Kozlowski
2025-04-22  9:01           ` Alexey Charkov
2025-04-16  8:21 ` [PATCH 04/13] dt-bindings: net: via-rhine: " Alexey Charkov
2025-04-23 11:49   ` Alexey Charkov
2025-04-16  8:21 ` [PATCH 05/13] dt-bindings: pwm: vt8500-pwm: " Alexey Charkov
2025-04-16 20:15   ` Rob Herring
2025-04-17  6:27     ` Alexey Charkov
2025-04-16  8:21 ` [PATCH 06/13] dt-bindings: timer: via,vt8500-timer: " Alexey Charkov
2025-04-16 20:16   ` Rob Herring
2025-04-17  6:34     ` Alexey Charkov
2025-04-16  8:21 ` [PATCH 07/13] dt-bindings: arm: vt8500: Add VIA APC Rock/Paper boards Alexey Charkov
2025-04-16 20:17   ` Rob Herring
2025-04-16  8:21 ` [PATCH 08/13] ARM: dts: vt8500: Add node address and reg in CPU nodes Alexey Charkov
2025-04-16  8:21 ` [PATCH 09/13] ARM: dts: vt8500: Move memory nodes to board dts and fix addr/size Alexey Charkov
2025-04-16  8:21 ` [PATCH 10/13] ARM: dts: vt8500: Use generic compatibles for EHCI Alexey Charkov
2025-04-17  5:34   ` Krzysztof Kozlowski
2025-04-17  5:54     ` Alexey Charkov
2025-04-16  8:21 ` [PATCH 11/13] ARM: dts: vt8500: Use generic node name for the SD/MMC controller Alexey Charkov
2025-04-16  8:21 ` [PATCH 12/13] ARM: dts: vt8500: Add VIA APC Rock/Paper board Alexey Charkov
2025-04-17  5:36   ` Krzysztof Kozlowski
2025-04-17  6:01     ` Alexey Charkov
2025-04-17  6:07       ` Krzysztof Kozlowski
2025-04-16  8:21 ` [PATCH 13/13] ARM: dts: vt8500: Add L2 cache controller on WM8850/WM8950 Alexey Charkov
2025-04-16 15:54 ` [PATCH 00/13] ARM: vt8500: DT bindings and dts updates Rob Herring
2025-04-16 18:55   ` Alexey Charkov
2025-04-16 20:09     ` Rob Herring

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=20250416-wmt-updates-v1-3-f9af689cdfc2@gmail.com \
    --to=alchark@gmail.com \
    --cc=andi.shyti@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=conor+dt@kernel.org \
    --cc=daniel.lezcano@linaro.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@google.com \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=robh@kernel.org \
    --cc=tglx@linutronix.de \
    --cc=ukleinek@kernel.org \
    --cc=ulf.hansson@linaro.org \
    /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®