* [PATCH v2 0/4] dt-bindings: mmc: Convert orion/dove bindings to JSON schema
@ 2022-04-19 2:46 Chris Packham
2022-04-19 2:46 ` [PATCH v2 1/4] ARM: dts: mvebu: Update mvsdio node names to match schema Chris Packham
` (3 more replies)
0 siblings, 4 replies; 12+ messages in thread
From: Chris Packham @ 2022-04-19 2:46 UTC (permalink / raw)
To: ulf.hansson, robh+dt, krzk+dt, andrew, gregory.clement,
sebastian.hesselbarth, adrian.hunter, nico
Cc: linux-mmc, devicetree, linux-kernel, linux-arm-kernel, Chris Packham
This is a small series converting the device tree bindings for the orion and
dove sdhci controllers to JSON schema.
The first 2 patches update the dtsi files to use a node name enforces by the
schema. These need to be applied for the schema to validate correctly.
The next 2 patches convert the old text binding to JSON schema.
Chris Packham (4):
ARM: dts: mvebu: Update mvsdio node names to match schema
ARM: dts: dove: Update sdio-host node names to match schema
dt-bindings: mmc: convert orion-sdio to JSON schema
dt-bindings: mmc: convert sdhci-dove to JSON schema
.../bindings/mmc/marvell,dove-sdhci.yaml | 44 +++++++++++++++++++
.../bindings/mmc/marvell,orion-sdio.yaml | 44 +++++++++++++++++++
.../devicetree/bindings/mmc/orion-sdio.txt | 16 -------
.../devicetree/bindings/mmc/sdhci-dove.txt | 14 ------
arch/arm/boot/dts/armada-370-xp.dtsi | 2 +-
arch/arm/boot/dts/armada-375.dtsi | 2 +-
arch/arm/boot/dts/dove.dtsi | 4 +-
arch/arm/boot/dts/kirkwood-6192.dtsi | 2 +-
arch/arm/boot/dts/kirkwood-6281.dtsi | 2 +-
arch/arm/boot/dts/kirkwood-6282.dtsi | 2 +-
10 files changed, 95 insertions(+), 37 deletions(-)
create mode 100644 Documentation/devicetree/bindings/mmc/marvell,dove-sdhci.yaml
create mode 100644 Documentation/devicetree/bindings/mmc/marvell,orion-sdio.yaml
delete mode 100644 Documentation/devicetree/bindings/mmc/orion-sdio.txt
delete mode 100644 Documentation/devicetree/bindings/mmc/sdhci-dove.txt
--
2.35.1
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 1/4] ARM: dts: mvebu: Update mvsdio node names to match schema
2022-04-19 2:46 [PATCH v2 0/4] dt-bindings: mmc: Convert orion/dove bindings to JSON schema Chris Packham
@ 2022-04-19 2:46 ` Chris Packham
2022-04-19 12:08 ` Andrew Lunn
2022-04-19 2:46 ` [PATCH v2 2/4] ARM: dts: dove: Update sdio-host " Chris Packham
` (2 subsequent siblings)
3 siblings, 1 reply; 12+ messages in thread
From: Chris Packham @ 2022-04-19 2:46 UTC (permalink / raw)
To: ulf.hansson, robh+dt, krzk+dt, andrew, gregory.clement,
sebastian.hesselbarth, adrian.hunter, nico
Cc: linux-mmc, devicetree, linux-kernel, linux-arm-kernel, Chris Packham
Update the node names of the mvsdio@ interfaces to be mmc@ to match the
node name enforced by the mmc-controller.yaml schema.
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
---
Notes:
Changes in v2:
- None
arch/arm/boot/dts/armada-370-xp.dtsi | 2 +-
arch/arm/boot/dts/armada-375.dtsi | 2 +-
arch/arm/boot/dts/kirkwood-6192.dtsi | 2 +-
arch/arm/boot/dts/kirkwood-6281.dtsi | 2 +-
arch/arm/boot/dts/kirkwood-6282.dtsi | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/arch/arm/boot/dts/armada-370-xp.dtsi b/arch/arm/boot/dts/armada-370-xp.dtsi
index 0b8c2a64b36f..c611166b6dc5 100644
--- a/arch/arm/boot/dts/armada-370-xp.dtsi
+++ b/arch/arm/boot/dts/armada-370-xp.dtsi
@@ -252,7 +252,7 @@ nand_controller: nand-controller@d0000 {
status = "disabled";
};
- sdio: mvsdio@d4000 {
+ sdio: mmc@d4000 {
compatible = "marvell,orion-sdio";
reg = <0xd4000 0x200>;
interrupts = <54>;
diff --git a/arch/arm/boot/dts/armada-375.dtsi b/arch/arm/boot/dts/armada-375.dtsi
index 7f2f24a29e6c..802cabb8dd8a 100644
--- a/arch/arm/boot/dts/armada-375.dtsi
+++ b/arch/arm/boot/dts/armada-375.dtsi
@@ -510,7 +510,7 @@ nand_controller: nand-controller@d0000 {
status = "disabled";
};
- sdio: mvsdio@d4000 {
+ sdio: mmc@d4000 {
compatible = "marvell,orion-sdio";
reg = <0xd4000 0x200>;
interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
diff --git a/arch/arm/boot/dts/kirkwood-6192.dtsi b/arch/arm/boot/dts/kirkwood-6192.dtsi
index 396bcba08adb..d558980af67b 100644
--- a/arch/arm/boot/dts/kirkwood-6192.dtsi
+++ b/arch/arm/boot/dts/kirkwood-6192.dtsi
@@ -73,7 +73,7 @@ sata: sata@80000 {
status = "disabled";
};
- sdio: mvsdio@90000 {
+ sdio: mmc@90000 {
compatible = "marvell,orion-sdio";
reg = <0x90000 0x200>;
interrupts = <28>;
diff --git a/arch/arm/boot/dts/kirkwood-6281.dtsi b/arch/arm/boot/dts/kirkwood-6281.dtsi
index faa05849a40d..e09dbbf35078 100644
--- a/arch/arm/boot/dts/kirkwood-6281.dtsi
+++ b/arch/arm/boot/dts/kirkwood-6281.dtsi
@@ -73,7 +73,7 @@ sata: sata@80000 {
status = "disabled";
};
- sdio: mvsdio@90000 {
+ sdio: mmc@90000 {
compatible = "marvell,orion-sdio";
reg = <0x90000 0x200>;
interrupts = <28>;
diff --git a/arch/arm/boot/dts/kirkwood-6282.dtsi b/arch/arm/boot/dts/kirkwood-6282.dtsi
index e84c54b77dea..bc372f48a1af 100644
--- a/arch/arm/boot/dts/kirkwood-6282.dtsi
+++ b/arch/arm/boot/dts/kirkwood-6282.dtsi
@@ -124,7 +124,7 @@ sata: sata@80000 {
status = "disabled";
};
- sdio: mvsdio@90000 {
+ sdio: mmc@90000 {
compatible = "marvell,orion-sdio";
reg = <0x90000 0x200>;
interrupts = <28>;
--
2.35.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v2 2/4] ARM: dts: dove: Update sdio-host node names to match schema
2022-04-19 2:46 [PATCH v2 0/4] dt-bindings: mmc: Convert orion/dove bindings to JSON schema Chris Packham
2022-04-19 2:46 ` [PATCH v2 1/4] ARM: dts: mvebu: Update mvsdio node names to match schema Chris Packham
@ 2022-04-19 2:46 ` Chris Packham
2022-04-19 12:09 ` Andrew Lunn
2022-04-19 2:46 ` [PATCH v2 3/4] dt-bindings: mmc: convert orion-sdio to JSON schema Chris Packham
2022-04-19 2:46 ` [PATCH v2 4/4] dt-bindings: mmc: convert sdhci-dove " Chris Packham
3 siblings, 1 reply; 12+ messages in thread
From: Chris Packham @ 2022-04-19 2:46 UTC (permalink / raw)
To: ulf.hansson, robh+dt, krzk+dt, andrew, gregory.clement,
sebastian.hesselbarth, adrian.hunter, nico
Cc: linux-mmc, devicetree, linux-kernel, linux-arm-kernel, Chris Packham
Update the node names of the sdio-host@ interfaces to be mmc@ to match
the node name enforced by the mmc-controller.yaml schema.
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
---
Notes:
Changes in v2:
- None
arch/arm/boot/dts/dove.dtsi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/dove.dtsi b/arch/arm/boot/dts/dove.dtsi
index 89e0bdaf3a85..d81562eac7aa 100644
--- a/arch/arm/boot/dts/dove.dtsi
+++ b/arch/arm/boot/dts/dove.dtsi
@@ -337,7 +337,7 @@ channel1 {
};
};
- sdio1: sdio-host@90000 {
+ sdio1: mmc@90000 {
compatible = "marvell,dove-sdhci";
reg = <0x90000 0x100>;
interrupts = <36>, <38>;
@@ -380,7 +380,7 @@ ethphy: ethernet-phy {
};
};
- sdio0: sdio-host@92000 {
+ sdio0: mmc@92000 {
compatible = "marvell,dove-sdhci";
reg = <0x92000 0x100>;
interrupts = <35>, <37>;
--
2.35.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v2 3/4] dt-bindings: mmc: convert orion-sdio to JSON schema
2022-04-19 2:46 [PATCH v2 0/4] dt-bindings: mmc: Convert orion/dove bindings to JSON schema Chris Packham
2022-04-19 2:46 ` [PATCH v2 1/4] ARM: dts: mvebu: Update mvsdio node names to match schema Chris Packham
2022-04-19 2:46 ` [PATCH v2 2/4] ARM: dts: dove: Update sdio-host " Chris Packham
@ 2022-04-19 2:46 ` Chris Packham
2022-04-19 12:10 ` Andrew Lunn
2022-04-21 13:54 ` Ulf Hansson
2022-04-19 2:46 ` [PATCH v2 4/4] dt-bindings: mmc: convert sdhci-dove " Chris Packham
3 siblings, 2 replies; 12+ messages in thread
From: Chris Packham @ 2022-04-19 2:46 UTC (permalink / raw)
To: ulf.hansson, robh+dt, krzk+dt, andrew, gregory.clement,
sebastian.hesselbarth, adrian.hunter, nico
Cc: linux-mmc, devicetree, linux-kernel, linux-arm-kernel, Chris Packham
Convert the orion-sdio binding to JSON schema.
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
Notes:
Changes in v2:
- Add review from Krzysztof
.../bindings/mmc/marvell,orion-sdio.yaml | 44 +++++++++++++++++++
.../devicetree/bindings/mmc/orion-sdio.txt | 16 -------
2 files changed, 44 insertions(+), 16 deletions(-)
create mode 100644 Documentation/devicetree/bindings/mmc/marvell,orion-sdio.yaml
delete mode 100644 Documentation/devicetree/bindings/mmc/orion-sdio.txt
diff --git a/Documentation/devicetree/bindings/mmc/marvell,orion-sdio.yaml b/Documentation/devicetree/bindings/mmc/marvell,orion-sdio.yaml
new file mode 100644
index 000000000000..8a97ded15aed
--- /dev/null
+++ b/Documentation/devicetree/bindings/mmc/marvell,orion-sdio.yaml
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mmc/marvell,orion-sdio.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Marvell orion-sdio controller
+
+maintainers:
+ - Nicolas Pitre <nico@fluxnic.net>
+ - Ulf Hansson <ulf.hansson@linaro.org>
+
+allOf:
+ - $ref: mmc-controller.yaml#
+
+properties:
+ compatible:
+ const: marvell,orion-sdio
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - clocks
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ mmc@d00d4000 {
+ compatible = "marvell,orion-sdio";
+ reg = <0xd00d4000 0x200>;
+ interrupts = <54>;
+ clocks = <&gateclk 17>;
+ };
diff --git a/Documentation/devicetree/bindings/mmc/orion-sdio.txt b/Documentation/devicetree/bindings/mmc/orion-sdio.txt
deleted file mode 100644
index 10f0818a34c5..000000000000
--- a/Documentation/devicetree/bindings/mmc/orion-sdio.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-* Marvell orion-sdio controller
-
-This file documents differences between the core properties in mmc.txt
-and the properties used by the orion-sdio driver.
-
-- compatible: Should be "marvell,orion-sdio"
-- clocks: reference to the clock of the SDIO interface
-
-Example:
-
- mvsdio@d00d4000 {
- compatible = "marvell,orion-sdio";
- reg = <0xd00d4000 0x200>;
- interrupts = <54>;
- clocks = <&gateclk 17>;
- };
--
2.35.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v2 4/4] dt-bindings: mmc: convert sdhci-dove to JSON schema
2022-04-19 2:46 [PATCH v2 0/4] dt-bindings: mmc: Convert orion/dove bindings to JSON schema Chris Packham
` (2 preceding siblings ...)
2022-04-19 2:46 ` [PATCH v2 3/4] dt-bindings: mmc: convert orion-sdio to JSON schema Chris Packham
@ 2022-04-19 2:46 ` Chris Packham
2022-04-19 7:39 ` Krzysztof Kozlowski
` (2 more replies)
3 siblings, 3 replies; 12+ messages in thread
From: Chris Packham @ 2022-04-19 2:46 UTC (permalink / raw)
To: ulf.hansson, robh+dt, krzk+dt, andrew, gregory.clement,
sebastian.hesselbarth, adrian.hunter, nico
Cc: linux-mmc, devicetree, linux-kernel, linux-arm-kernel, Chris Packham
Convert the sdhci-dove binding to JSON schema. The optional clocks
property was not in the original binding document but has been in the
dove.dtsi since commit 5b03df9ace68 ("ARM: dove: switch to DT clock
providers").
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
---
Notes:
Changes in v2:
- Add clocks property
- interrupts.maxItems = 2
- Update maintainers based on ./scripts/get_maintainer.pl -f drivers/mmc/host/sdhci-dove.c
.../bindings/mmc/marvell,dove-sdhci.yaml | 44 +++++++++++++++++++
.../devicetree/bindings/mmc/sdhci-dove.txt | 14 ------
2 files changed, 44 insertions(+), 14 deletions(-)
create mode 100644 Documentation/devicetree/bindings/mmc/marvell,dove-sdhci.yaml
delete mode 100644 Documentation/devicetree/bindings/mmc/sdhci-dove.txt
diff --git a/Documentation/devicetree/bindings/mmc/marvell,dove-sdhci.yaml b/Documentation/devicetree/bindings/mmc/marvell,dove-sdhci.yaml
new file mode 100644
index 000000000000..7c9c652ad59c
--- /dev/null
+++ b/Documentation/devicetree/bindings/mmc/marvell,dove-sdhci.yaml
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mmc/marvell,dove-sdhci.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Marvell sdhci-dove controller
+
+maintainers:
+ - Adrian Hunter <adrian.hunter@intel.com>
+ - Ulf Hansson <ulf.hansson@linaro.org>
+
+allOf:
+ - $ref: mmc-controller.yaml#
+
+properties:
+ compatible:
+ const: marvell,dove-sdhci
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ minItems: 1
+ maxItems: 2
+
+ clocks:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - interrupts
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ sdio0: mmc@92000 {
+ compatible = "marvell,dove-sdhci";
+ reg = <0x92000 0x100>;
+ interrupts = <35>;
+ clocks = <&gate_clk 9>;
+ };
diff --git a/Documentation/devicetree/bindings/mmc/sdhci-dove.txt b/Documentation/devicetree/bindings/mmc/sdhci-dove.txt
deleted file mode 100644
index ae9aab9abcd7..000000000000
--- a/Documentation/devicetree/bindings/mmc/sdhci-dove.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-* Marvell sdhci-dove controller
-
-This file documents differences between the core properties in mmc.txt
-and the properties used by the sdhci-pxav2 and sdhci-pxav3 drivers.
-
-- compatible: Should be "marvell,dove-sdhci".
-
-Example:
-
-sdio0: sdio@92000 {
- compatible = "marvell,dove-sdhci";
- reg = <0x92000 0x100>;
- interrupts = <35>;
-};
--
2.35.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH v2 4/4] dt-bindings: mmc: convert sdhci-dove to JSON schema
2022-04-19 2:46 ` [PATCH v2 4/4] dt-bindings: mmc: convert sdhci-dove " Chris Packham
@ 2022-04-19 7:39 ` Krzysztof Kozlowski
2022-04-19 12:11 ` Andrew Lunn
2022-04-21 13:54 ` Ulf Hansson
2 siblings, 0 replies; 12+ messages in thread
From: Krzysztof Kozlowski @ 2022-04-19 7:39 UTC (permalink / raw)
To: Chris Packham, ulf.hansson, robh+dt, krzk+dt, andrew,
gregory.clement, sebastian.hesselbarth, adrian.hunter, nico
Cc: linux-mmc, devicetree, linux-kernel, linux-arm-kernel
On 19/04/2022 04:46, Chris Packham wrote:
> Convert the sdhci-dove binding to JSON schema. The optional clocks
> property was not in the original binding document but has been in the
> dove.dtsi since commit 5b03df9ace68 ("ARM: dove: switch to DT clock
> providers").
>
> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 1/4] ARM: dts: mvebu: Update mvsdio node names to match schema
2022-04-19 2:46 ` [PATCH v2 1/4] ARM: dts: mvebu: Update mvsdio node names to match schema Chris Packham
@ 2022-04-19 12:08 ` Andrew Lunn
0 siblings, 0 replies; 12+ messages in thread
From: Andrew Lunn @ 2022-04-19 12:08 UTC (permalink / raw)
To: Chris Packham
Cc: ulf.hansson, robh+dt, krzk+dt, gregory.clement,
sebastian.hesselbarth, adrian.hunter, nico, linux-mmc,
devicetree, linux-kernel, linux-arm-kernel
On Tue, Apr 19, 2022 at 02:46:08PM +1200, Chris Packham wrote:
> Update the node names of the mvsdio@ interfaces to be mmc@ to match the
> node name enforced by the mmc-controller.yaml schema.
>
> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 2/4] ARM: dts: dove: Update sdio-host node names to match schema
2022-04-19 2:46 ` [PATCH v2 2/4] ARM: dts: dove: Update sdio-host " Chris Packham
@ 2022-04-19 12:09 ` Andrew Lunn
0 siblings, 0 replies; 12+ messages in thread
From: Andrew Lunn @ 2022-04-19 12:09 UTC (permalink / raw)
To: Chris Packham
Cc: ulf.hansson, robh+dt, krzk+dt, gregory.clement,
sebastian.hesselbarth, adrian.hunter, nico, linux-mmc,
devicetree, linux-kernel, linux-arm-kernel
On Tue, Apr 19, 2022 at 02:46:09PM +1200, Chris Packham wrote:
> Update the node names of the sdio-host@ interfaces to be mmc@ to match
> the node name enforced by the mmc-controller.yaml schema.
>
> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 3/4] dt-bindings: mmc: convert orion-sdio to JSON schema
2022-04-19 2:46 ` [PATCH v2 3/4] dt-bindings: mmc: convert orion-sdio to JSON schema Chris Packham
@ 2022-04-19 12:10 ` Andrew Lunn
2022-04-21 13:54 ` Ulf Hansson
1 sibling, 0 replies; 12+ messages in thread
From: Andrew Lunn @ 2022-04-19 12:10 UTC (permalink / raw)
To: Chris Packham
Cc: ulf.hansson, robh+dt, krzk+dt, gregory.clement,
sebastian.hesselbarth, adrian.hunter, nico, linux-mmc,
devicetree, linux-kernel, linux-arm-kernel
On Tue, Apr 19, 2022 at 02:46:10PM +1200, Chris Packham wrote:
> Convert the orion-sdio binding to JSON schema.
>
> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 4/4] dt-bindings: mmc: convert sdhci-dove to JSON schema
2022-04-19 2:46 ` [PATCH v2 4/4] dt-bindings: mmc: convert sdhci-dove " Chris Packham
2022-04-19 7:39 ` Krzysztof Kozlowski
@ 2022-04-19 12:11 ` Andrew Lunn
2022-04-21 13:54 ` Ulf Hansson
2 siblings, 0 replies; 12+ messages in thread
From: Andrew Lunn @ 2022-04-19 12:11 UTC (permalink / raw)
To: Chris Packham
Cc: ulf.hansson, robh+dt, krzk+dt, gregory.clement,
sebastian.hesselbarth, adrian.hunter, nico, linux-mmc,
devicetree, linux-kernel, linux-arm-kernel
On Tue, Apr 19, 2022 at 02:46:11PM +1200, Chris Packham wrote:
> Convert the sdhci-dove binding to JSON schema. The optional clocks
> property was not in the original binding document but has been in the
> dove.dtsi since commit 5b03df9ace68 ("ARM: dove: switch to DT clock
> providers").
>
> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 3/4] dt-bindings: mmc: convert orion-sdio to JSON schema
2022-04-19 2:46 ` [PATCH v2 3/4] dt-bindings: mmc: convert orion-sdio to JSON schema Chris Packham
2022-04-19 12:10 ` Andrew Lunn
@ 2022-04-21 13:54 ` Ulf Hansson
1 sibling, 0 replies; 12+ messages in thread
From: Ulf Hansson @ 2022-04-21 13:54 UTC (permalink / raw)
To: Chris Packham
Cc: robh+dt, krzk+dt, andrew, gregory.clement, sebastian.hesselbarth,
adrian.hunter, nico, linux-mmc, devicetree, linux-kernel,
linux-arm-kernel
On Tue, 19 Apr 2022 at 04:46, Chris Packham
<chris.packham@alliedtelesis.co.nz> wrote:
>
> Convert the orion-sdio binding to JSON schema.
>
> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Applied for next, thanks!
Kind regards
Uffe
> ---
>
> Notes:
> Changes in v2:
> - Add review from Krzysztof
>
> .../bindings/mmc/marvell,orion-sdio.yaml | 44 +++++++++++++++++++
> .../devicetree/bindings/mmc/orion-sdio.txt | 16 -------
> 2 files changed, 44 insertions(+), 16 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/mmc/marvell,orion-sdio.yaml
> delete mode 100644 Documentation/devicetree/bindings/mmc/orion-sdio.txt
>
> diff --git a/Documentation/devicetree/bindings/mmc/marvell,orion-sdio.yaml b/Documentation/devicetree/bindings/mmc/marvell,orion-sdio.yaml
> new file mode 100644
> index 000000000000..8a97ded15aed
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mmc/marvell,orion-sdio.yaml
> @@ -0,0 +1,44 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mmc/marvell,orion-sdio.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Marvell orion-sdio controller
> +
> +maintainers:
> + - Nicolas Pitre <nico@fluxnic.net>
> + - Ulf Hansson <ulf.hansson@linaro.org>
> +
> +allOf:
> + - $ref: mmc-controller.yaml#
> +
> +properties:
> + compatible:
> + const: marvell,orion-sdio
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + clocks:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - clocks
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + mmc@d00d4000 {
> + compatible = "marvell,orion-sdio";
> + reg = <0xd00d4000 0x200>;
> + interrupts = <54>;
> + clocks = <&gateclk 17>;
> + };
> diff --git a/Documentation/devicetree/bindings/mmc/orion-sdio.txt b/Documentation/devicetree/bindings/mmc/orion-sdio.txt
> deleted file mode 100644
> index 10f0818a34c5..000000000000
> --- a/Documentation/devicetree/bindings/mmc/orion-sdio.txt
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -* Marvell orion-sdio controller
> -
> -This file documents differences between the core properties in mmc.txt
> -and the properties used by the orion-sdio driver.
> -
> -- compatible: Should be "marvell,orion-sdio"
> -- clocks: reference to the clock of the SDIO interface
> -
> -Example:
> -
> - mvsdio@d00d4000 {
> - compatible = "marvell,orion-sdio";
> - reg = <0xd00d4000 0x200>;
> - interrupts = <54>;
> - clocks = <&gateclk 17>;
> - };
> --
> 2.35.1
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 4/4] dt-bindings: mmc: convert sdhci-dove to JSON schema
2022-04-19 2:46 ` [PATCH v2 4/4] dt-bindings: mmc: convert sdhci-dove " Chris Packham
2022-04-19 7:39 ` Krzysztof Kozlowski
2022-04-19 12:11 ` Andrew Lunn
@ 2022-04-21 13:54 ` Ulf Hansson
2 siblings, 0 replies; 12+ messages in thread
From: Ulf Hansson @ 2022-04-21 13:54 UTC (permalink / raw)
To: Chris Packham
Cc: robh+dt, krzk+dt, andrew, gregory.clement, sebastian.hesselbarth,
adrian.hunter, nico, linux-mmc, devicetree, linux-kernel,
linux-arm-kernel
On Tue, 19 Apr 2022 at 04:46, Chris Packham
<chris.packham@alliedtelesis.co.nz> wrote:
>
> Convert the sdhci-dove binding to JSON schema. The optional clocks
> property was not in the original binding document but has been in the
> dove.dtsi since commit 5b03df9ace68 ("ARM: dove: switch to DT clock
> providers").
>
> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Applied for next, thanks!
Kind regards
Uffe
> ---
>
> Notes:
> Changes in v2:
> - Add clocks property
> - interrupts.maxItems = 2
> - Update maintainers based on ./scripts/get_maintainer.pl -f drivers/mmc/host/sdhci-dove.c
>
> .../bindings/mmc/marvell,dove-sdhci.yaml | 44 +++++++++++++++++++
> .../devicetree/bindings/mmc/sdhci-dove.txt | 14 ------
> 2 files changed, 44 insertions(+), 14 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/mmc/marvell,dove-sdhci.yaml
> delete mode 100644 Documentation/devicetree/bindings/mmc/sdhci-dove.txt
>
> diff --git a/Documentation/devicetree/bindings/mmc/marvell,dove-sdhci.yaml b/Documentation/devicetree/bindings/mmc/marvell,dove-sdhci.yaml
> new file mode 100644
> index 000000000000..7c9c652ad59c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mmc/marvell,dove-sdhci.yaml
> @@ -0,0 +1,44 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mmc/marvell,dove-sdhci.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Marvell sdhci-dove controller
> +
> +maintainers:
> + - Adrian Hunter <adrian.hunter@intel.com>
> + - Ulf Hansson <ulf.hansson@linaro.org>
> +
> +allOf:
> + - $ref: mmc-controller.yaml#
> +
> +properties:
> + compatible:
> + const: marvell,dove-sdhci
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + minItems: 1
> + maxItems: 2
> +
> + clocks:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + sdio0: mmc@92000 {
> + compatible = "marvell,dove-sdhci";
> + reg = <0x92000 0x100>;
> + interrupts = <35>;
> + clocks = <&gate_clk 9>;
> + };
> diff --git a/Documentation/devicetree/bindings/mmc/sdhci-dove.txt b/Documentation/devicetree/bindings/mmc/sdhci-dove.txt
> deleted file mode 100644
> index ae9aab9abcd7..000000000000
> --- a/Documentation/devicetree/bindings/mmc/sdhci-dove.txt
> +++ /dev/null
> @@ -1,14 +0,0 @@
> -* Marvell sdhci-dove controller
> -
> -This file documents differences between the core properties in mmc.txt
> -and the properties used by the sdhci-pxav2 and sdhci-pxav3 drivers.
> -
> -- compatible: Should be "marvell,dove-sdhci".
> -
> -Example:
> -
> -sdio0: sdio@92000 {
> - compatible = "marvell,dove-sdhci";
> - reg = <0x92000 0x100>;
> - interrupts = <35>;
> -};
> --
> 2.35.1
>
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2022-04-21 13:55 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-19 2:46 [PATCH v2 0/4] dt-bindings: mmc: Convert orion/dove bindings to JSON schema Chris Packham
2022-04-19 2:46 ` [PATCH v2 1/4] ARM: dts: mvebu: Update mvsdio node names to match schema Chris Packham
2022-04-19 12:08 ` Andrew Lunn
2022-04-19 2:46 ` [PATCH v2 2/4] ARM: dts: dove: Update sdio-host " Chris Packham
2022-04-19 12:09 ` Andrew Lunn
2022-04-19 2:46 ` [PATCH v2 3/4] dt-bindings: mmc: convert orion-sdio to JSON schema Chris Packham
2022-04-19 12:10 ` Andrew Lunn
2022-04-21 13:54 ` Ulf Hansson
2022-04-19 2:46 ` [PATCH v2 4/4] dt-bindings: mmc: convert sdhci-dove " Chris Packham
2022-04-19 7:39 ` Krzysztof Kozlowski
2022-04-19 12:11 ` Andrew Lunn
2022-04-21 13:54 ` Ulf Hansson
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).