dt-bindings: memory: convert Marvell MVEBU SDRAM controller to dtschema
Subsystems (4)
PATCH 1/2 dt-bindings: memory: convert Marvell MVEBU SDRAM controller to dtschema
Convert Marvell MVEBU SDRAM controller bindings to DT schema format using json-schema.
--- .../marvell,mvebu-sdram-controller.yaml | 31 +++++++++++++++++++ .../mvebu-sdram-controller.txt | 21 ------------- 2 files changed, 31 insertions(+), 21 deletions(-) create mode 100644 Documentation/devicetree/bindings/memory-controllers/marvell,mvebu-sdram-controller.yaml delete mode 100644 Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt
Documentation/devicetree/bindings/memory-controllers/marvell,mvebu-sdram-controller.yaml new file +31 -0
@@ -0,0 +1,31 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/marvell,mvebu-sdram-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell MVEBU SDRAM controller + +maintainers: + - Jan Luebbe <[email protected]> + - Krzysztof Kozlowski <[email protected]> + +properties: + compatible: + const: marvell,armada-xp-sdram-controller + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + memory-controller@1400 { + compatible = "marvell,armada-xp-sdram-controller"; + reg = <0x1400 0x500>; + };
Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt deleted +0 -21
@@ -1,21 +0,0 @@ -Device Tree bindings for MVEBU SDRAM controllers - -The Marvell EBU SoCs all have a SDRAM controller. The SDRAM controller -differs from one SoC variant to another, but they also share a number -of commonalities. - -For now, this Device Tree binding documentation only documents the -Armada XP SDRAM controller. - -Required properties: - - - compatible: for Armada XP, "marvell,armada-xp-sdram-controller" - - reg: a resource specifier for the register space, which should - include all SDRAM controller registers as per the datasheet. - -Example: - -sdramc@1400 { - compatible = "marvell,armada-xp-sdram-controller"; - reg = <0x1400 0x500>; -};
Signature · 1 line
2.30.2
PATCH 2/2 MAINTAINERS: EDAC/armada_xp: include dt-bindings
Include dt-bindings for Marvell Armada XP SDRAM and L2 cache ECC in the EDAC-ARMADA entry.
--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
@@ -6574,6 +6574,7 @@ EDAC-ARMADA M: Jan Luebbe <[email protected]> L: [email protected] S: Maintained +F: Documentation/devicetree/bindings/memory-controllers/marvell,mvebu-sdram-controller.yaml F: drivers/edac/armada_xp_* EDAC-AST2500
Signature · 1 line
2.30.2
Jan Lübbe
maintainerRe: [PATCH 2/2] MAINTAINERS: EDAC/armada_xp: include dt-bindings
Quoted 2 lines · Krzysztof Kozlowski
Include dt-bindings for Marvell Armada XP SDRAM and L2 cache ECC in the EDAC-ARMADA entry.
The L2 cache binding is already described in Documentation/devicetree/bindings/arm/l2c2x0.yaml, so this is only for the SDRAM.
Jan
Quoted 17 lines
Signed-off-by Krzysztof Kozlowski <[email protected]>--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)MAINTAINERS +1
-0@@ -6574,6 +6574,7 @@ EDAC-ARMADA M: Jan Luebbe <[email protected]> L: [email protected] S: Maintained +F: Documentation/devicetree/bindings/memory-controllers/marvell,mvebu-sdram-controller.yaml F: drivers/edac/armada_xp_* EDAC-AST2500
Signature · 4 lines
Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Rob Herring
maintainerRe: [PATCH 2/2] MAINTAINERS: EDAC/armada_xp: include dt-bindings
Quoted 7 lines · Jan Lübbe
Quoted 2 lines · Krzysztof Kozlowski
Include dt-bindings for Marvell Armada XP SDRAM and L2 cache ECC in the EDAC-ARMADA entry.
The L2 cache binding is already described in
Documentation/devicetree/bindings/arm/l2c2x0.yaml, so this is only for the SDRAM.
Fixed up and applied.
Rob
Jan Lübbe
maintainerQuoted 54 lines · Krzysztof Kozlowski
Convert Marvell MVEBU SDRAM controller bindings to DT schema format using json-schema.
Signed-off-by Krzysztof Kozlowski <[email protected]>--- .../marvell,mvebu-sdram-controller.yaml | 31 +++++++++++++++++++ .../mvebu-sdram-controller.txt | 21 ------------- 2 files changed, 31 insertions(+), 21 deletions(-) create mode 100644 Documentation/devicetree/bindings/memory-controllers/marvell,mvebu-sdram-controller.yaml delete mode 100644 Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txtDocumentation/devicetree/bindings/memory-controllers/marvell,mvebu-sdram-controller.yaml new file +31
-0@@ -0,0 +1,31 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/marvell,mvebu-sdram-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell MVEBU SDRAM controller + +maintainers: + - Jan Luebbe <[email protected]> + - Krzysztof Kozlowski <[email protected]> + +properties: + compatible: + const: marvell,armada-xp-sdram-controller + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + memory-controller@1400 { + compatible = "marvell,armada-xp-sdram-controller"; + reg = <0x1400 0x500>; + };Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt deleted +0
-0
Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt line 8
Quoted 8 lines
Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt deleted +0
-8@@ -1,21 +0,0 @@ -Device Tree bindings for MVEBU SDRAM controllers - -The Marvell EBU SoCs all have a SDRAM controller. The SDRAM controller -differs from one SoC variant to another, but they also share a number -of commonalities. - -For now, this Device Tree binding documentation only documents the -Armada XP SDRAM controller.
Please keep the description, otherwise it would be confusing why the binding is named marvell,mvebu-sdram-controller.yaml although it (currenly) only applies to the Armada XP.
Jan
Quoted 13 lines
Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt deleted +0
-13- -Required properties: - - - compatible: for Armada XP, "marvell,armada-xp-sdram-controller" - - reg: a resource specifier for the register space, which should - include all SDRAM controller registers as per the datasheet. - -Example: - -sdramc@1400 { - compatible = "marvell,armada-xp-sdram-controller"; - reg = <0x1400 0x500>; -};
Signature · 4 lines
Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Quoted 59 lines · Jan Lübbe
Quoted 58 lines · Krzysztof Kozlowski
Convert Marvell MVEBU SDRAM controller bindings to DT schema format using json-schema.
Signed-off-by Krzysztof Kozlowski <[email protected]>--- .../marvell,mvebu-sdram-controller.yaml | 31 +++++++++++++++++++ .../mvebu-sdram-controller.txt | 21 ------------- 2 files changed, 31 insertions(+), 21 deletions(-) create mode 100644 Documentation/devicetree/bindings/memory-controllers/marvell,mvebu-sdram-controller.yaml delete mode 100644 Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txtDocumentation/devicetree/bindings/memory-controllers/marvell,mvebu-sdram-controller.yaml new file +31
-0@@ -0,0 +1,31 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/marvell,mvebu-sdram-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell MVEBU SDRAM controller + +maintainers: + - Jan Luebbe <[email protected]> + - Krzysztof Kozlowski <[email protected]> + +properties: + compatible: + const: marvell,armada-xp-sdram-controller + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + memory-controller@1400 { + compatible = "marvell,armada-xp-sdram-controller"; + reg = <0x1400 0x500>; + };Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt deleted +0
-4@@ -1,21 +0,0 @@ -Device Tree bindings for MVEBU SDRAM controllers - -The Marvell EBU SoCs all have a SDRAM controller. The SDRAM controller -differs from one SoC variant to another, but they also share a number
Quoted 9 lines
Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt line 8
Quoted 4 lines
Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt deleted +0
-4-of commonalities. - -For now, this Device Tree binding documentation only documents the -Armada XP SDRAM controller.Please keep the description, otherwise it would be confusing why the binding is named marvell,mvebu-sdram-controller.yaml although it (currenly) only applies to the Armada XP.
The description does not explain why it only documents Armada XP, so it just duplicates what is in "compatible" part of bindings. How is the confusion removed by saying "we document currently only Armada XP"? What changes?
The entire description (with first paragraph) might make it a derivative work, so I would need Ack or SoB from author to relicense it (Cc: Thomas Petazzoni).
Best regards,
Krzysztof
Jan Lübbe
maintainerQuoted 70 lines · Krzysztof Kozlowski
Quoted 59 lines · Jan Lübbe
Quoted 58 lines · Krzysztof Kozlowski
Convert Marvell MVEBU SDRAM controller bindings to DT schema format using json-schema.
Signed-off-by Krzysztof Kozlowski <[email protected]>--- .../marvell,mvebu-sdram-controller.yaml | 31 +++++++++++++++++++ .../mvebu-sdram-controller.txt | 21 ------------- 2 files changed, 31 insertions(+), 21 deletions(-) create mode 100644 Documentation/devicetree/bindings/memory-controllers/marvell,mvebu-sdram-controller.yaml delete mode 100644 Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txtDocumentation/devicetree/bindings/memory-controllers/marvell,mvebu-sdram-controller.yaml new file +31
-0@@ -0,0 +1,31 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/marvell,mvebu-sdram-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell MVEBU SDRAM controller + +maintainers: + - Jan Luebbe <[email protected]> + - Krzysztof Kozlowski <[email protected]> + +properties: + compatible: + const: marvell,armada-xp-sdram-controller + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + memory-controller@1400 { + compatible = "marvell,armada-xp-sdram-controller"; + reg = <0x1400 0x500>; + };Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt deleted +0
-4@@ -1,21 +0,0 @@ -Device Tree bindings for MVEBU SDRAM controllers - -The Marvell EBU SoCs all have a SDRAM controller. The SDRAM controller -differs from one SoC variant to another, but they also share a numberQuoted 9 lines
Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt line 8
Quoted 4 lines
Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt deleted +0
-4-of commonalities. - -For now, this Device Tree binding documentation only documents the -Armada XP SDRAM controller.Please keep the description, otherwise it would be confusing why the binding is named marvell,mvebu-sdram-controller.yaml although it (currenly) only applies to the Armada XP.
Quoted 4 lines
The description does not explain why it only documents Armada XP, so it just duplicates what is in "compatible" part of bindings. How is the confusion removed by saying "we document currently only Armada XP"? What changes?
Then perhaps the binding should be named marvell,armada-xp-sdram- controller.yaml? It find it unlikely that support for the other SoC's controllers will be added, given their age.
Jan
Quoted 8 lines
The entire description (with first paragraph) might make it a derivative work, so I would need Ack or SoB from author to relicense it (Cc: Thomas Petazzoni).
Best regards,
Krzysztof
Signature · 4 lines
Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Quoted 71 lines · Jan Lübbe
Quoted 70 lines · Krzysztof Kozlowski
Quoted 68 lines · Jan Lübbe
Quoted 54 lines · Krzysztof Kozlowski
Convert Marvell MVEBU SDRAM controller bindings to DT schema format using json-schema.
Signed-off-by Krzysztof Kozlowski <[email protected]>--- .../marvell,mvebu-sdram-controller.yaml | 31 +++++++++++++++++++ .../mvebu-sdram-controller.txt | 21 ------------- 2 files changed, 31 insertions(+), 21 deletions(-) create mode 100644 Documentation/devicetree/bindings/memory-controllers/marvell,mvebu-sdram-controller.yaml delete mode 100644 Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txtDocumentation/devicetree/bindings/memory-controllers/marvell,mvebu-sdram-controller.yaml new file +31
-0@@ -0,0 +1,31 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/marvell,mvebu-sdram-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell MVEBU SDRAM controller + +maintainers: + - Jan Luebbe <[email protected]> + - Krzysztof Kozlowski <[email protected]> + +properties: + compatible: + const: marvell,armada-xp-sdram-controller + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + memory-controller@1400 { + compatible = "marvell,armada-xp-sdram-controller"; + reg = <0x1400 0x500>; + };Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt deleted +0
-0Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt line 8
Quoted 8 lines
Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt deleted +0
-8@@ -1,21 +0,0 @@ -Device Tree bindings for MVEBU SDRAM controllers - -The Marvell EBU SoCs all have a SDRAM controller. The SDRAM controller -differs from one SoC variant to another, but they also share a number -of commonalities. - -For now, this Device Tree binding documentation only documents the -Armada XP SDRAM controller.Please keep the description, otherwise it would be confusing why the binding is named marvell,mvebu-sdram-controller.yaml although it (currenly) only applies to the Armada XP.
Quoted 8 lines
Quoted 4 lines
The description does not explain why it only documents Armada XP, so it just duplicates what is in "compatible" part of bindings. How is the confusion removed by saying "we document currently only Armada XP"? What changes?
Then perhaps the binding should be named marvell,armada-xp-sdram-
controller.yaml? It find it unlikely that support for the other SoC's controllers will be added, given their age.
Sure, could be like this but there is no confusion here and no need to fix anything. It is understandable and common to name bindings file as general (e.g. for group of devices) even though only limited amount of devices are currently documented/described. It's almost everywhere like this, when the bindings are not complete. I don't see where is the confusion.
Look at: arm/marvell/armada-cpu-reset.txt which mentions several SoCs while only three compatibles are documented. arm/marvell/armada-cpu-reset.txt has generic name and describes only one reset controller (370) while being used on multiple SoC (370, 375, 38x, 39x). I could go like this all over the bindings...
Best regards,
Krzysztof
Jan Lübbe
maintainerQuoted 88 lines · Krzysztof Kozlowski
Quoted 71 lines · Jan Lübbe
Quoted 70 lines · Krzysztof Kozlowski
Quoted 68 lines · Jan Lübbe
Quoted 54 lines · Krzysztof Kozlowski
Convert Marvell MVEBU SDRAM controller bindings to DT schema format using json-schema.
Signed-off-by Krzysztof Kozlowski <[email protected]>--- .../marvell,mvebu-sdram-controller.yaml | 31 +++++++++++++++++++ .../mvebu-sdram-controller.txt | 21 ------------- 2 files changed, 31 insertions(+), 21 deletions(-) create mode 100644 Documentation/devicetree/bindings/memory-controllers/marvell,mvebu-sdram-controller.yaml delete mode 100644 Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txtDocumentation/devicetree/bindings/memory-controllers/marvell,mvebu-sdram-controller.yaml new file +31
-0@@ -0,0 +1,31 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/marvell,mvebu-sdram-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell MVEBU SDRAM controller + +maintainers: + - Jan Luebbe <[email protected]> + - Krzysztof Kozlowski <[email protected]> + +properties: + compatible: + const: marvell,armada-xp-sdram-controller + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + memory-controller@1400 { + compatible = "marvell,armada-xp-sdram-controller"; + reg = <0x1400 0x500>; + };Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt deleted +0
-0Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt line 8
Quoted 8 lines
Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt deleted +0
-8@@ -1,21 +0,0 @@ -Device Tree bindings for MVEBU SDRAM controllers - -The Marvell EBU SoCs all have a SDRAM controller. The SDRAM controller -differs from one SoC variant to another, but they also share a number -of commonalities. - -For now, this Device Tree binding documentation only documents the -Armada XP SDRAM controller.Please keep the description, otherwise it would be confusing why the binding is named marvell,mvebu-sdram-controller.yaml although it (currenly) only applies to the Armada XP.
Quoted 8 lines
Quoted 4 lines
The description does not explain why it only documents Armada XP, so it just duplicates what is in "compatible" part of bindings. How is the confusion removed by saying "we document currently only Armada XP"? What changes?
Then perhaps the binding should be named marvell,armada-xp-sdram-
controller.yaml? It find it unlikely that support for the other SoC's controllers will be added, given their age.Sure, could be like this but there is no confusion here and no need to fix anything. It is understandable and common to name bindings file as general (e.g. for group of devices) even though only limited amount of devices are currently documented/described. It's almost everywhere like this, when the bindings are not complete. I don't see where is the confusion.
Quoted 5 lines
Look at:
arm/marvell/armada-cpu-reset.txtwhich mentions several SoCs while only three compatibles are documented.arm/marvell/armada-cpu-reset.txthas generic name and describes only one reset controller (370) while being used on multiple SoC (370, 375, 38x, 39x). I could go like this all over the bindings...
OK, you convinced me. Thanks for the explanation.
Jan
Signature · 4 lines
Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Quoted 11 lines · Krzysztof Kozlowski
Convert Marvell MVEBU SDRAM controller bindings to DT schema format using json-schema.
Signed-off-by Krzysztof Kozlowski <[email protected]>--- .../marvell,mvebu-sdram-controller.yaml | 31 +++++++++++++++++++ .../mvebu-sdram-controller.txt | 21 ------------- 2 files changed, 31 insertions(+), 21 deletions(-) create mode 100644 Documentation/devicetree/bindings/memory-controllers/marvell,mvebu-sdram-controller.yaml delete mode 100644 Documentation/devicetree/bindings/memory-controllers/mvebu-sdram-controller.txt
Applied, thanks!