Skip to contentSkip to conversation

Start converting MVEBU bindings to DT Schema

PATCH In review Andrew Lunn 2 participants 19 messages Aug 25, 2022 – Aug 31, 2022

Subsystems (9)
lore
Share & tools
lore
#0 lore raw

v2 cover Start converting MVEBU bindings to DT Schema

This is the first batch of patches converting the Marvell MVEBU driver bindings from .txt to .yaml. So far, kirkwood has been used for testing, but these drivers apply to a range of Marvell SoCs.

In order to reduce the number of warnings from the DT schema checking tools, a few minor changes have been made to a few DT files. No actual errors have been found, the changes just make the checker quiet.

I propose these patches are merged via mvebu to arm-soc. No conflicts are expected with these patches.

v2:

s/^DT/dt-bindings/
s/YAML/DT schema/
Drop 'Device Tree Bindings' from title:
pinctrl:
Add additionalProperties: false
requires for marvell,function & marvell,pins
regex for mpp values
Split pinctrl/marvell,ac5-pinctrl.yaml cleanup into its own patch Add interrupts-extended to marvell,orion-wdt.yaml
Replace compatible 'bar' with 'arm,pl353-nand-r2p1' to avoid unknown warning Fix some of the USB controller warnings. It is unclear if the kirkwood warnings are valid usage of the core USB binding or not.

Andrew Lunn (12):
dt-bindings: RTC: orion-rtc: Convert to DT schema
dt-bindings: thermal: marvell,kirkwood-thermal: Convert to DT schema
dt-bindings: pinctrl: Convert marvell,kirkwood-pintctrl to DT schema
dt-bindings: marvell,ac5-pinctrl: Refactor to look like other Marvell
pinctrl files
dt-bindings: USB: Convert ehci-orion to DT schema
dt-bindings: watchdog: Convert marvel.txt to DT schema
arm: DT: kirkwood/orion5: Rename watchdog node
dt-bindings: nand-controller: Reflect reality of marvell,orion-nand
dt-bindings: mtd: Convert orion-nand to DT schema
arm: DT: kirkwood.dtsi: Rename nand to nand-controller
dt-bindings: timer: Convert marvell,orion-timer.txt to DT schema
dt-bindings: clock: Convert mvebu-gated-clock.txt to DT schema

 .../clock/marvell,kirkwood-gating-clock.yaml  | 229 +++++++++++
 .../bindings/clock/mvebu-gated-clock.txt      | 205 ----------
 .../bindings/mtd/marvell,orion-nand.yaml      |  98 +++++
 .../bindings/mtd/nand-controller.yaml         |  17 +-
 .../devicetree/bindings/mtd/orion-nand.txt    |  50 ---
 .../pinctrl/marvell,88f6180-pinctrl.yaml      |  73 ++++
 .../pinctrl/marvell,88f6190-pinctrl.yaml      |  73 ++++
 .../pinctrl/marvell,88f6192-pinctrl.yaml      |  73 ++++
 .../pinctrl/marvell,88f6281-pinctrl.yaml      |  74 ++++
 .../pinctrl/marvell,88f6282-pinctrl.yaml      |  74 ++++
 .../pinctrl/marvell,98dx1135-pinctrl.yaml     |  72 ++++
 .../pinctrl/marvell,98dx4122-pinctrl.yaml     |  72 ++++
 .../bindings/pinctrl/marvell,ac5-pinctrl.yaml |  23 +-
 .../pinctrl/marvell,kirkwood-pinctrl.txt      | 359 ------------------
 .../bindings/rtc/marvell,orion-rtc.yaml       |  48 +++
 .../devicetree/bindings/rtc/orion-rtc.txt     |  18 -
 .../bindings/thermal/kirkwood-thermal.txt     |  15 -
 .../thermal/marvell,kirkwood-thermal.yaml     |  32 ++
 .../bindings/timer/marvell,orion-timer.txt    |  16 -
 .../bindings/timer/marvell,orion-timer.yaml   |  51 +++
 .../devicetree/bindings/usb/ehci-orion.txt    |  22 --
 .../bindings/usb/marvell,orion-ehci.yaml      |  48 +++
 .../devicetree/bindings/watchdog/marvel.txt   |  45 ---
 .../bindings/watchdog/marvell,orion-wdt.yaml  | 101 +++++
 arch/arm/boot/dts/kirkwood.dtsi               |   4 +-
 arch/arm/boot/dts/orion5x.dtsi                |   2 +-
 26 files changed, 1150 insertions(+), 744 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/clock/marvell,kirkwood-gating-clock.yaml
 delete mode 100644 Documentation/devicetree/bindings/clock/mvebu-gated-clock.txt
 create mode 100644 Documentation/devicetree/bindings/mtd/marvell,orion-nand.yaml
 delete mode 100644 Documentation/devicetree/bindings/mtd/orion-nand.txt
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,88f6180-pinctrl.yaml
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,88f6190-pinctrl.yaml
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,88f6192-pinctrl.yaml
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,88f6281-pinctrl.yaml
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,88f6282-pinctrl.yaml
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,98dx1135-pinctrl.yaml
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,98dx4122-pinctrl.yaml
 delete mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,kirkwood-pinctrl.txt
 create mode 100644 Documentation/devicetree/bindings/rtc/marvell,orion-rtc.yaml
 delete mode 100644 Documentation/devicetree/bindings/rtc/orion-rtc.txt
 delete mode 100644 Documentation/devicetree/bindings/thermal/kirkwood-thermal.txt
 create mode 100644 Documentation/devicetree/bindings/thermal/marvell,kirkwood-thermal.yaml
 delete mode 100644 Documentation/devicetree/bindings/timer/marvell,orion-timer.txt
 create mode 100644 Documentation/devicetree/bindings/timer/marvell,orion-timer.yaml
 delete mode 100644 Documentation/devicetree/bindings/usb/ehci-orion.txt
 create mode 100644 Documentation/devicetree/bindings/usb/marvell,orion-ehci.yaml
 delete mode 100644 Documentation/devicetree/bindings/watchdog/marvel.txt
 create mode 100644 Documentation/devicetree/bindings/watchdog/marvell,orion-wdt.yaml
Signature · 1 line
2.37.2
#1 lore raw

PATCH v2 1/12 dt-bindings: RTC: orion-rtc: Convert to DT schema

Convert the text description to YAML. The clock is optional, Orion5x based boards don't have it, but kirkwood should.

---
 .../bindings/rtc/marvell,orion-rtc.yaml       | 48 +++++++++++++++++++
 .../devicetree/bindings/rtc/orion-rtc.txt     | 18 -------
 2 files changed, 48 insertions(+), 18 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/rtc/marvell,orion-rtc.yaml
 delete mode 100644 Documentation/devicetree/bindings/rtc/orion-rtc.txt
Documentation/devicetree/bindings/rtc/marvell,orion-rtc.yaml new file +48 -0
new file mode 100644
index 000000000000..9e32f4a2fbc2
@@ -0,0 +1,48 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/marvell,orion-rtc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: MVEBU Orion RTC
+
+allOf:
+  - $ref: "rtc.yaml#"
+
+maintainers:
+  - Andrew Lunn <[email protected]>
+
+properties:
+  compatible:
+    oneOf:
+      - enum:
+          - marvell,orion-rtc
+      - items:
+          - enum:
+              - marvell,kirkwood-rtc
+          - const: marvell,orion-rtc
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - interrupts
+
+additionalProperties: false
+
+examples:
+  - |
+    rtc@10300 {
+        compatible = "marvell,orion-rtc";
+        reg = <0xd0010300 0x20>;
+        interrupts = <50>;
+    };
+...
Documentation/devicetree/bindings/rtc/orion-rtc.txt deleted +0 -18
deleted file mode 100644
index 3bf63ffa5160..000000000000
@@ -1,18 +0,0 @@
-* Mvebu Real Time Clock
-
-RTC controller for the Kirkwood, the Dove, the Armada 370 and the
-Armada XP SoCs
-
-Required properties:
-- compatible : Should be "marvell,orion-rtc"
-- reg: physical base address of the controller and length of memory mapped
-  region.
-- interrupts: IRQ line for the RTC.
-
-Example:
-
-rtc@10300 {
-        compatible = "marvell,orion-rtc";
-        reg = <0xd0010300 0x20>;
-        interrupts = <50>;
-};
Signature · 1 line
2.37.2
maintainer Reviewed-by on v2 1/12
#2 lore raw

Re: [PATCH v2 01/12] dt-bindings: RTC: orion-rtc: Convert to DT schema

Quoted 11 lines · Andrew Lunn

Convert the text description to YAML. The clock is optional, Orion5x based boards don't have it, but kirkwood should.

---
 .../bindings/rtc/marvell,orion-rtc.yaml       | 48 +++++++++++++++++++
 .../devicetree/bindings/rtc/orion-rtc.txt     | 18 -------
 2 files changed, 48 insertions(+), 18 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/rtc/marvell,orion-rtc.yaml
 delete mode 100644 Documentation/devicetree/bindings/rtc/orion-rtc.txt
#3 lore raw

PATCH v2 2/12 dt-bindings: thermal: marvell,kirkwood-thermal: Convert to DT schema

In reply to Andrew Lunn

Add a simple YAML description of the thermal binding for the kirkwood thermal sensor.

---
 .../bindings/thermal/kirkwood-thermal.txt     | 15 ---------
 .../thermal/marvell,kirkwood-thermal.yaml     | 32 +++++++++++++++++++
 2 files changed, 32 insertions(+), 15 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/thermal/kirkwood-thermal.txt
 create mode 100644 Documentation/devicetree/bindings/thermal/marvell,kirkwood-thermal.yaml
Documentation/devicetree/bindings/thermal/kirkwood-thermal.txt deleted +0 -15
deleted file mode 100644
index 8c0f5eb86da7..000000000000
@@ -1,15 +0,0 @@
-* Kirkwood Thermal
-
-This version is for Kirkwood 88F8262 & 88F6283 SoCs. Other kirkwoods
-don't contain a thermal sensor.
-
-Required properties:
-- compatible : "marvell,kirkwood-thermal"
-- reg : Address range of the thermal registers
-
-Example:
-
-	thermal@10078 {
-		compatible = "marvell,kirkwood-thermal";
-		reg = <0x10078 0x4>;
-	};
Documentation/devicetree/bindings/thermal/marvell,kirkwood-thermal.yaml new file +32 -0
new file mode 100644
index 000000000000..760cfccd02b0
@@ -0,0 +1,32 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/thermal/marvell,kirkwood-thermal.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Marvell Kirkwood Thermal Controller
+
+maintainers:
+  - Andrew Lunn <[email protected]>
+
+properties:
+  compatible:
+    enum:
+      - marvell,kirkwood-thermal
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    thermal@10078 {
+        compatible = "marvell,kirkwood-thermal";
+        reg = <0x10078 0x4>;
+    };
+...
Signature · 1 line
2.37.2
maintainer Reviewed-by on v2 2/12
#4 lore raw

Re: [PATCH v2 02/12] dt-bindings: thermal: marvell,kirkwood-thermal: Convert to DT schema

Quoted 11 lines · Andrew Lunn

Add a simple YAML description of the thermal binding for the kirkwood thermal sensor.

---
 .../bindings/thermal/kirkwood-thermal.txt     | 15 ---------
 .../thermal/marvell,kirkwood-thermal.yaml     | 32 +++++++++++++++++++
 2 files changed, 32 insertions(+), 15 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/thermal/kirkwood-thermal.txt
 create mode 100644 Documentation/devicetree/bindings/thermal/marvell,kirkwood-thermal.yaml
#5 lore raw

PATCH v2 3/12 dt-bindings: pinctrl: Convert marvell,kirkwood-pintctrl to DT schema

In reply to Andrew Lunn

Convert the text description to YAML. To keep the YAML versions readable, add a file per compatible.

---
 .../pinctrl/marvell,88f6180-pinctrl.yaml      |  73 ++++
 .../pinctrl/marvell,88f6190-pinctrl.yaml      |  73 ++++
 .../pinctrl/marvell,88f6192-pinctrl.yaml      |  73 ++++
 .../pinctrl/marvell,88f6281-pinctrl.yaml      |  74 ++++
 .../pinctrl/marvell,88f6282-pinctrl.yaml      |  74 ++++
 .../pinctrl/marvell,98dx1135-pinctrl.yaml     |  72 ++++
 .../pinctrl/marvell,98dx4122-pinctrl.yaml     |  72 ++++
 .../pinctrl/marvell,kirkwood-pinctrl.txt      | 359 ------------------
 8 files changed, 511 insertions(+), 359 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,88f6180-pinctrl.yaml
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,88f6190-pinctrl.yaml
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,88f6192-pinctrl.yaml
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,88f6281-pinctrl.yaml
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,88f6282-pinctrl.yaml
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,98dx1135-pinctrl.yaml
 create mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,98dx4122-pinctrl.yaml
 delete mode 100644 Documentation/devicetree/bindings/pinctrl/marvell,kirkwood-pinctrl.txt
Documentation/devicetree/bindings/pinctrl/marvell,88f6180-pinctrl.yaml new file +73 -0
new file mode 100644
index 000000000000..89c98ce27f6e
@@ -0,0 +1,73 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pinctrl/marvell,88f6180-pinctrl.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Marvell Kirkwood 88f6180 pin controller
+
+maintainers:
+  - Andrew Lunn <[email protected]>
+
+description:
+  Bindings for Marvell's Kirkwood 88F6180 memory-mapped pin controller.
+
+properties:
+  compatible:
+    items:
+      - const: marvell,88f6180-pinctrl
+
+  reg:
+    maxItems: 1
+
+patternProperties:
+  '^pmx-.*$':
+    type: object
+
+    properties:
+      marvell,function:
+        $ref: "/schemas/types.yaml#/definitions/string"
+        description:
+          Indicates the function to select.
+        enum: [ audio, gpio, gpo, mii, nand, pex, ptp, ptp-1, ptp-2, sdio,
+                spi, sysrst, twsi0, uart0, uart1 ]
+
+      marvell,pins:
+        $ref: /schemas/types.yaml#/definitions/string-array
+        description:
+          Array of MPP pins to be used for the given function.
+        minItems: 1
+        items:
+          pattern: '^mpp([0-9]|[1-3][0-9]|4[0-4])$'
+
+    required:
+      - marvell,function
+      - marvell,pins
+
+  additionalProperties: false
+
+allOf:
+  - $ref: "pinctrl.yaml#"
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    pinctrl@80020100 {
+      compatible = "marvell,88f6180-pinctrl";
+      reg = <0x80020100 0x20>;
+
+      pmx_spi: pmx-spidc {
+        marvell,pins = "mpp0", "mpp1", "mpp2", "mpp3";
+        marvell,function = "spi";
+      };
+
+      pmx_spic_gpio: pmx-gpio-spi {
+        marvell,pins = "mpp26", "mpp27";
+        marvell,function = "gpio";
+      };
+    };
Documentation/devicetree/bindings/pinctrl/marvell,88f6190-pinctrl.yaml new file +73 -0

73 lines not on this page · raw message

Documentation/devicetree/bindings/pinctrl/marvell,88f6192-pinctrl.yaml new file +73 -0

73 lines not on this page · raw message

Documentation/devicetree/bindings/pinctrl/marvell,88f6281-pinctrl.yaml new file +74 -0

74 lines not on this page · raw message

Documentation/devicetree/bindings/pinctrl/marvell,88f6282-pinctrl.yaml new file +74 -0

74 lines not on this page · raw message

Documentation/devicetree/bindings/pinctrl/marvell,98dx1135-pinctrl.yaml new file +72 -0

72 lines not on this page · raw message

Documentation/devicetree/bindings/pinctrl/marvell,98dx4122-pinctrl.yaml new file +72 -0

72 lines not on this page · raw message

Documentation/devicetree/bindings/pinctrl/marvell,kirkwood-pinctrl.txt deleted +0 -359

359 lines not on this page · raw message

Signature · 1 line
2.37.2
#6 lore raw

PATCH v2 4/12 dt-bindings: marvell,ac5-pinctrl: Refactor to look like other Marvell pinctrl files

In reply to Andrew Lunn

Wrap the long lines, use a regex for the valid mpp names, add missing required properties and indicate additional properties are not expected.

Also fix up the example so it does not give warnings.

---
 .../bindings/pinctrl/marvell,ac5-pinctrl.yaml | 23 +++++++++++--------
 1 file changed, 13 insertions(+), 10 deletions(-)
Documentation/devicetree/bindings/pinctrl/marvell,ac5-pinctrl.yaml +13 -10
index a651b2744caf..db28b8149520 100644
@@ -21,7 +21,7 @@ properties:
     maxItems: 1
 
 patternProperties:
-  '-pins$':
+  '^pmx-':
     type: object
     $ref: pinmux-node.yaml#
 
@@ -30,8 +30,9 @@ patternProperties:
         $ref: "/schemas/types.yaml#/definitions/string"
         description:
           Indicates the function to select.
-        enum: [ dev_init_done, ge, gpio, i2c0, i2c1, int_out, led, nand, pcie, ptp, sdio,
-                spi0, spi1, synce, tsen_int, uart0, uart1, uart2, uart3, uartsd, wd_int, xg ]
+        enum: [ dev_init_done, ge, gpio, i2c0, i2c1, int_out, led, nand, pcie,
+                ptp, sdio, spi0, spi1, synce, tsen_int, uart0, uart1, uart2,
+                uart3, uartsd, wd_int, xg ]
 
       marvell,pins:
         $ref: /schemas/types.yaml#/definitions/string-array
@@ -39,11 +40,13 @@ patternProperties:
           Array of MPP pins to be used for the given function.
         minItems: 1
         items:
-          enum: [ mpp0, mpp1, mpp2, mpp3, mpp4, mpp5, mpp6, mpp7, mpp8, mpp9,
-                  mpp10, mpp11, mpp12, mpp13, mpp14, mpp15, mpp16, mpp17, mpp18, mpp19,
-                  mpp20, mpp21, mpp22, mpp23, mpp24, mpp25, mpp26, mpp27, mpp28, mpp29,
-                  mpp30, mpp31, mpp32, mpp33, mpp34, mpp35, mpp36, mpp37, mpp38, mpp39,
-                  mpp40, mpp41, mpp42, mpp43, mpp44, mpp45 ]
+          pattern: '^mpp([0-9]|[1-3][0-9]|4[0-5])$'
+
+    required:
+      - marvell,function
+      - marvell,pins
+
+  additionalProperties: false
 
 allOf:
   - $ref: "pinctrl.yaml#"
@@ -60,12 +63,12 @@ examples:
       compatible = "marvell,ac5-pinctrl";
       reg = <0x80020100 0x20>;
 
-      i2c0_pins: i2c0-pins {
+      pmx_i2c0_pins: pmx-i2c0 {
         marvell,pins = "mpp26", "mpp27";
         marvell,function = "i2c0";
       };
 
-      i2c0_gpio: i2c0-gpio-pins {
+      pmx_i2c0_gpio: pmx-gpio-i2c0 {
         marvell,pins = "mpp26", "mpp27";
         marvell,function = "gpio";
       };
Signature · 1 line
2.37.2
#7 lore raw

PATCH v2 5/12 dt-bindings: USB: Convert ehci-orion to DT schema

In reply to Andrew Lunn
---
 .../devicetree/bindings/usb/ehci-orion.txt    | 22 ---------
 .../bindings/usb/marvell,orion-ehci.yaml      | 48 +++++++++++++++++++
 arch/arm/boot/dts/kirkwood-c200-v1.dts        |  2 +-
 arch/arm/boot/dts/kirkwood-l-50.dts           |  2 +-
 arch/arm/boot/dts/kirkwood-ts219.dtsi         |  2 +-
 5 files changed, 51 insertions(+), 25 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/usb/ehci-orion.txt
 create mode 100644 Documentation/devicetree/bindings/usb/marvell,orion-ehci.yaml
Documentation/devicetree/bindings/usb/ehci-orion.txt deleted +0 -22
deleted file mode 100644
index 2855bae79fda..000000000000
@@ -1,22 +0,0 @@
-* EHCI controller, Orion Marvell variants
-
-Required properties:
-- compatible: must be one of the following
-	"marvell,orion-ehci"
-	"marvell,armada-3700-ehci"
-- reg: physical base address of the controller and length of memory mapped
-  region.
-- interrupts: The EHCI interrupt
-
-Optional properties:
-- clocks: reference to the clock
-- phys: reference to the USB PHY
-- phy-names: name of the USB PHY, should be "usb"
-
-Example:
-
-	ehci@50000 {
-		compatible = "marvell,orion-ehci";
-		reg = <0x50000 0x1000>;
-		interrupts = <19>;
-	};
Documentation/devicetree/bindings/usb/marvell,orion-ehci.yaml new file +48 -0

48 lines not on this page · raw message

arch/arm/boot/dts/kirkwood-c200-v1.dts +1 -1
index f59ff7578dfc..a38f69331284 100644
@@ -170,7 +170,7 @@ &i2c0 {
 	status = "okay";
 
 	rtc@30 {
-		compatible = "s35390a";
+		compatible = "sii,s35390a";
 		reg = <0x30>;
 	};
 
arch/arm/boot/dts/kirkwood-l-50.dts +1 -1
index 0d81c43a6a73..b5a658b38b6d 100644
@@ -86,7 +86,7 @@ gpio3: gpio-expander@21{
 			};
 
 			rtc@30 {
-				compatible = "s35390a";
+				compatible = "sii,s35390a";
 				reg = <0x30>;
 			};
 		};
arch/arm/boot/dts/kirkwood-ts219.dtsi +1 -1
index 994cabcf4b51..de5b3cb516dd 100644
@@ -19,7 +19,7 @@ i2c@11000 {
 			clock-frequency = <400000>;
 
 			s35390a: s35390a@30 {
-				compatible = "s35390a";
+				compatible = "sii,s35390a";
 				reg = <0x30>;
 			};
 		};
Signature · 1 line
2.37.2
#8 lore raw

PATCH v2 6/12 dt-bindings: watchdog: Convert marvel.txt to DT schema

In reply to Andrew Lunn

The .txt file is missing the interrupts-extended property, which can be used by some Armada chips. Add it and an example making use of it.

---
 .../devicetree/bindings/watchdog/marvel.txt   |  45 --------
 .../bindings/watchdog/marvell,orion-wdt.yaml  | 101 ++++++++++++++++++
 2 files changed, 101 insertions(+), 45 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/watchdog/marvel.txt
 create mode 100644 Documentation/devicetree/bindings/watchdog/marvell,orion-wdt.yaml
Documentation/devicetree/bindings/watchdog/marvel.txt deleted +0 -45
deleted file mode 100644
index c1b67a78f00c..000000000000
@@ -1,45 +0,0 @@
-* Marvell Orion Watchdog Time
-
-Required Properties:
-
-- Compatibility : "marvell,orion-wdt"
-		  "marvell,armada-370-wdt"
-		  "marvell,armada-xp-wdt"
-		  "marvell,armada-375-wdt"
-		  "marvell,armada-380-wdt"
-
-- reg		: Should contain two entries: first one with the
-		  timer control address, second one with the
-		  rstout enable address.
-
-For "marvell,armada-375-wdt" and "marvell,armada-380-wdt":
-
-- reg		: A third entry is mandatory and should contain the
-                  shared mask/unmask RSTOUT address.
-
-Clocks required for compatibles = "marvell,orion-wdt",
-				  "marvell,armada-370-wdt":
-- clocks : Must contain a single entry describing the clock input
-
-Clocks required for compatibles = "marvell,armada-xp-wdt"
-				  "marvell,armada-375-wdt"
-				  "marvell,armada-380-wdt":
-- clocks : Must contain an entry for each entry in clock-names.
-- clock-names : Must include the following entries:
-  "nbclk" (L2/coherency fabric clock),
-  "fixed" (Reference 25 MHz fixed-clock).
-
-Optional properties:
-
-- interrupts	: Contains the IRQ for watchdog expiration
-- timeout-sec	: Contains the watchdog timeout in seconds
-
-Example:
-
-	wdt@20300 {
-		compatible = "marvell,orion-wdt";
-		reg = <0x20300 0x28>, <0x20108 0x4>;
-		interrupts = <3>;
-		timeout-sec = <10>;
-		clocks = <&gate_clk 7>;
-	};
Documentation/devicetree/bindings/watchdog/marvell,orion-wdt.yaml new file +101 -0

101 lines not on this page · raw message

Signature · 1 line
2.37.2
#9 lore raw

PATCH v2 7/12 arm: DT: kirkwood/orion5: Rename watchdog node

In reply to Andrew Lunn

The watchdog.yaml requires the node be called watchdog. So change from the current wdt/watchdog-timer.

---
 arch/arm/boot/dts/kirkwood.dtsi | 2 +-
 arch/arm/boot/dts/orion5x.dtsi  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/kirkwood.dtsi +1 -1
index fca31a5d5ac7..362d2a6fbb54 100644
@@ -243,7 +243,7 @@ timer: timer@20300 {
 			clocks = <&core_clk 0>;
 		};
 
-		wdt: watchdog-timer@20300 {
+		wdt: watchdog@20300 {
 			compatible = "marvell,orion-wdt";
 			reg = <0x20300 0x28>, <0x20108 0x4>;
 			interrupt-parent = <&bridge_intc>;
arch/arm/boot/dts/orion5x.dtsi +1 -1
index 2d41f5c166ee..7de95818663e 100644
@@ -137,7 +137,7 @@ timer: timer@20300 {
 				clocks = <&core_clk 0>;
 			};
 
-			wdt: wdt@20300 {
+			wdt: watchdog@20300 {
 				compatible = "marvell,orion-wdt";
 				reg = <0x20300 0x28>, <0x20108 0x4>;
 				interrupt-parent = <&bridge_intc>;
Signature · 1 line
2.37.2
#10 lore raw

PATCH v2 8/12 dt-bindings: nand-controller: Reflect reality of marvell,orion-nand

In reply to Andrew Lunn

The Marvell Orion NAND driver comes from before the time of the standardised NAND binding. The controller only supports a single device, and expects the NAND partition table to be directly in the controller node. This goes against the standardised NAND binding which expects a sub node per NAND device, which contains the partition table.

Since the partition table contains a reg property indicating the start address of the partition and its length, it needs #size-cells set to
1. However, for a list of nand devices, the reg value is the device number, requiring #size-cells of 0.

Add an exception to nand-controller.yaml to allow this #size-cells value when the compatible matches the orion controller.

In order that the example works, it needs a compatible string so the comparison can be made. Pick the first example in the directory.

---
 .../bindings/mtd/nand-controller.yaml           | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/mtd/nand-controller.yaml +16 -1
index 359a015d4e5a..e3bb97353793 100644
@@ -34,7 +34,7 @@ properties:
     const: 1
 
   "#size-cells":
-    const: 0
+    enum: [0, 1]
 
   ranges: true
 
@@ -130,11 +130,26 @@ required:
   - "#address-cells"
   - "#size-cells"
 
+if:
+  properties:
+    compatible:
+      contains:
+        const: marvell,orion-nand
+then:
+  properties:
+    "#size-cells":
+      const: 1
+else:
+  properties:
+    "#size-cells":
+      const: 0
+
 additionalProperties: true
 
 examples:
   - |
     nand-controller {
+      compatible = "arm,pl353-nand-r2p1";
       #address-cells = <1>;
       #size-cells = <0>;
       cs-gpios = <0>, <&gpioA 1>; /* A single native CS is available */
Signature · 1 line
2.37.2
maintainer
#11 lore raw

Re: [PATCH v2 08/12] dt-bindings: nand-controller: Reflect reality of marvell,orion-nand

Quoted 15 lines · Andrew Lunn

The Marvell Orion NAND driver comes from before the time of the standardised NAND binding. The controller only supports a single device, and expects the NAND partition table to be directly in the controller node. This goes against the standardised NAND binding which expects a sub node per NAND device, which contains the partition table.

Since the partition table contains a reg property indicating the start address of the partition and its length, it needs #size-cells set to
1. However, for a list of nand devices, the reg value is the device number, requiring #size-cells of 0.

Add an exception to nand-controller.yaml to allow this #size-cells value when the compatible matches the orion controller.

Quoted 8 lines

In order that the example works, it needs a compatible string so the comparison can be made. Pick the first example in the directory.

---
 .../bindings/mtd/nand-controller.yaml           | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):

yamllint warnings/errors:

dtschema/dtc warnings/errors:
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/mtd/nand-controller.example.dtb: nand-controller: 'reg' is a required property
From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/mtd/arm,pl353-nand-r2p1.yaml

doc reference errors (make refcheckdocs):

See https://patchwork.ozlabs.org/patch/

This check can fail if there are any dependencies. The base for a patch series is generally the most recent rc1.

If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:

pip3 install dtschema --upgrade

Please check and re-submit.

#12 lore raw

PATCH v2 9/12 dt-bindings: mtd: Convert orion-nand to DT schema

In reply to Andrew Lunn

This works for Kirkwood, but orion5x has an odd bus structure which results in some warnings.

---
 .../bindings/mtd/marvell,orion-nand.yaml      | 98 +++++++++++++++++++
 .../devicetree/bindings/mtd/orion-nand.txt    | 50 ----------
 2 files changed, 98 insertions(+), 50 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/mtd/marvell,orion-nand.yaml
 delete mode 100644 Documentation/devicetree/bindings/mtd/orion-nand.txt
Documentation/devicetree/bindings/mtd/marvell,orion-nand.yaml new file +98 -0
new file mode 100644
index 000000000000..57368bf16bc1
@@ -0,0 +1,98 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mtd/marvell,orion-nand.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Marvell Orion NAND Controller
+
+allOf:
+  - $ref: "nand-controller.yaml"
+
+maintainers:
+  - Andrew Lunn <[email protected]>
+
+properties:
+  compatible:
+    enum:
+      - marvell,orion-nand
+
+  "#address-cells":
+    const: 1
+
+  "#size-cells":
+    const: 1
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1
+
+  cle:
+    description:
+      Address line number connected to CLE. Default is 0
+    $ref: /schemas/types.yaml#/definitions/uint32
+    minimum: 0
+    maximum: 255
+
+  ale:
+    description:
+      Address line number connected to ALE. Default is 1
+    $ref: /schemas/types.yaml#/definitions/uint32
+    minimum: 0
+    maximum: 255
+
+  bank-width:
+    description: Width (in bytes) of the bank.  Equal to the device width times
+      the number of interleaved chips.
+    $ref: /schemas/types.yaml#/definitions/uint32
+    enum: [ 1, 2, 4 ]
+
+  chip-delay:
+    description:
+      Chip dependent delay for transferring data from array to read
+      registers in usecs
+    $ref: /schemas/types.yaml#/definitions/uint32
+    minimum: 0
+    maximum: 255
+
+  partitions:
+    description:
+      Deprecated container of partitions
+    type: object
+
+patternProperties:
+  "@[0-9a-f]+$":
+    $ref: "/schemas/mtd/partitions/partition.yaml"
+    description:
+      Partitions within the NAND
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    nand-controller@f4000000 {
+        compatible = "marvell,orion-nand";
+        #address-cells = <1>;
+        #size-cells = <1>;
+        cle = <0>;
+        ale = <1>;
+        bank-width = <1>;
+        chip-delay = <25>;
+        reg = <0xf4000000 0x400>;
+
+        partition@0 {
+            label = "u-boot";
+            reg = <0x0000000 0x100000>;
+            read-only;
+        };
+    };
+...
Documentation/devicetree/bindings/mtd/orion-nand.txt deleted +0 -50

50 lines not on this page · raw message

Signature · 1 line
2.37.2
#13 lore raw

PATCH v2 10/12 arm: DT: kirkwood.dtsi: Rename nand to nand-controller

In reply to Andrew Lunn

Current convention is to use the name namd-controller. Now that the orion-nand controller binding has validation via YAML, fix the name.

---
 arch/arm/boot/dts/kirkwood.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/kirkwood.dtsi +1 -1
index 362d2a6fbb54..122a6db6c001 100644
@@ -42,7 +42,7 @@ MBUS_ID(0x03, 0x01) 0 0xf5000000 0x10000	/* crypto sram */
 		pcie-mem-aperture = <0xe0000000 0x10000000>; /* 256 MiB memory space */
 		pcie-io-aperture  = <0xf2000000 0x100000>;   /*   1 MiB    I/O space */
 
-		nand: nand@12f {
+		nand: nand-controller@12f {
 			#address-cells = <1>;
 			#size-cells = <1>;
 			cle = <0>;
Signature · 1 line
2.37.2
#14 lore raw

PATCH v2 11/12 dt-bindings: timer: Convert marvell,orion-timer.txt to DT schema

In reply to Andrew Lunn
---
 .../bindings/timer/marvell,orion-timer.txt    | 16 ------
 .../bindings/timer/marvell,orion-timer.yaml   | 51 +++++++++++++++++++
 2 files changed, 51 insertions(+), 16 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/timer/marvell,orion-timer.txt
 create mode 100644 Documentation/devicetree/bindings/timer/marvell,orion-timer.yaml
Documentation/devicetree/bindings/timer/marvell,orion-timer.txt deleted +0 -16
deleted file mode 100644
index cd1a0c256f94..000000000000
@@ -1,16 +0,0 @@
-Marvell Orion SoC timer
-
-Required properties:
-- compatible: shall be "marvell,orion-timer"
-- reg: base address of the timer register starting with TIMERS CONTROL register
-- interrupts: should contain the interrupts for Timer0 and Timer1
-- clocks: phandle of timer reference clock (tclk)
-
-Example:
-	timer: timer {
-		compatible = "marvell,orion-timer";
-		reg = <0x20300 0x20>;
-		interrupt-parent = <&bridge_intc>;
-		interrupts = <1>, <2>;
-		clocks = <&core_clk 0>;
-	};
Documentation/devicetree/bindings/timer/marvell,orion-timer.yaml new file +51 -0

51 lines not on this page · raw message

Signature · 1 line
2.37.2
#15 lore raw

PATCH v2 12/12 dt-bindings: clock: Convert mvebu-gated-clock.txt to DT schema

In reply to Andrew Lunn
---
 .../clock/marvell,kirkwood-gating-clock.yaml  | 229 ++++++++++++++++++
 .../bindings/clock/mvebu-gated-clock.txt      | 205 ----------------
 2 files changed, 229 insertions(+), 205 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/clock/marvell,kirkwood-gating-clock.yaml
 delete mode 100644 Documentation/devicetree/bindings/clock/mvebu-gated-clock.txt
Documentation/devicetree/bindings/clock/marvell,kirkwood-gating-clock.yaml new file +229 -0
new file mode 100644
index 000000000000..efc713002de1
@@ -0,0 +1,229 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/marvell,kirkwood-gating-clock.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Marvel Gating Clock
+
+maintainers:
+  - Andrew Lunn <[email protected]>
+
+description: |
+  Marvell Armada 370/375/380/385/39x/XP, Dove and Kirkwood allow some
+  peripheral clocks to be gated to save some power. The clock consumer
+  should specify the desired clock by having the clock ID in its
+  "clocks" phandle cell. The clock ID is directly mapped to the
+  corresponding clock gating control bit in HW to ease manual clock
+  lookup in datasheet.
+
+  The following is a list of provided IDs for Armada 370:
+  ID	Clock	Peripheral
+  -----------------------------------
+  0	Audio	AC97 Cntrl
+  1	pex0_en	PCIe 0 Clock out
+  2	pex1_en	PCIe 1 Clock out
+  3	ge1	Gigabit Ethernet 1
+  4	ge0	Gigabit Ethernet 0
+  5	pex0	PCIe Cntrl 0
+  9	pex1	PCIe Cntrl 1
+  15	sata0	SATA Host 0
+  17	sdio	SDHCI Host
+  23	crypto	CESA (crypto engine)
+  25	tdm	Time Division Mplx
+  28	ddr	DDR Cntrl
+  30	sata1	SATA Host 0
+
+  The following is a list of provided IDs for Armada 375:
+  ID	Clock		Peripheral
+  -----------------------------------
+  2	mu		Management Unit
+  3	pp		Packet Processor
+  4	ptp		PTP
+  5	pex0		PCIe 0 Clock out
+  6	pex1		PCIe 1 Clock out
+  8	audio		Audio Cntrl
+  11	nd_clk		Nand Flash Cntrl
+  14	sata0_link	SATA 0 Link
+  15	sata0_core	SATA 0 Core
+  16	usb3		USB3 Host
+  17	sdio		SDHCI Host
+  18	usb		USB Host
+  19	gop		Gigabit Ethernet MAC
+  20	sata1_link	SATA 1 Link
+  21	sata1_core	SATA 1 Core
+  22	xor0		XOR DMA 0
+  23	xor1		XOR DMA 0
+  24	copro		Coprocessor
+  25	tdm		Time Division Mplx
+  28	crypto0_enc	Cryptographic Unit Port 0 Encryption
+  29	crypto0_core	Cryptographic Unit Port 0 Core
+  30	crypto1_enc	Cryptographic Unit Port 1 Encryption
+  31	crypto1_core	Cryptographic Unit Port 1 Core
+
+  The following is a list of provided IDs for Armada 380/385:
+  ID	Clock		Peripheral
+  -----------------------------------
+  0	audio		Audio
+  2	ge2		Gigabit Ethernet 2
+  3	ge1		Gigabit Ethernet 1
+  4	ge0		Gigabit Ethernet 0
+  5	pex1		PCIe 1
+  6	pex2		PCIe 2
+  7	pex3		PCIe 3
+  8	pex0		PCIe 0
+  9	usb3h0		USB3 Host 0
+  10	usb3h1		USB3 Host 1
+  11	usb3d		USB3 Device
+  13	bm		Buffer Management
+  14	crypto0z	Cryptographic 0 Z
+  15	sata0		SATA 0
+  16	crypto1z	Cryptographic 1 Z
+  17	sdio		SDIO
+  18	usb2		USB 2
+  21	crypto1		Cryptographic 1
+  22	xor0		XOR 0
+  23	crypto0		Cryptographic 0
+  25	tdm		Time Division Multiplexing
+  28	xor1		XOR 1
+  30	sata1		SATA 1
+
+  The following is a list of provided IDs for Armada 39x:
+  ID	Clock		Peripheral
+  -----------------------------------
+  5	pex1		PCIe 1
+  6	pex2		PCIe 2
+  7	pex3		PCIe 3
+  8	pex0		PCIe 0
+  9	usb3h0		USB3 Host 0
+  10	usb3h1		USB3 Host 1
+  15	sata0		SATA 0
+  17	sdio		SDIO
+  22	xor0		XOR 0
+  28	xor1		XOR 1
+
+  The following is a list of provided IDs for Armada XP:
+  ID	Clock	Peripheral
+  -----------------------------------
+  0	audio	Audio Cntrl
+  1	ge3	Gigabit Ethernet 3
+  2	ge2	Gigabit Ethernet 2
+  3	ge1	Gigabit Ethernet 1
+  4	ge0	Gigabit Ethernet 0
+  5	pex0	PCIe Cntrl 0
+  6	pex1	PCIe Cntrl 1
+  7	pex2	PCIe Cntrl 2
+  8	pex3	PCIe Cntrl 3
+  13	bp
+  14	sata0lnk
+  15	sata0	SATA Host 0
+  16	lcd	LCD Cntrl
+  17	sdio	SDHCI Host
+  18	usb0	USB Host 0
+  19	usb1	USB Host 1
+  20	usb2	USB Host 2
+  22	xor0	XOR DMA 0
+  23	crypto	CESA engine
+  25	tdm	Time Division Mplx
+  28	xor1	XOR DMA 1
+  29	sata1lnk
+  30	sata1	SATA Host 1
+
+  The following is a list of provided IDs for 98dx3236:
+  ID	Clock	Peripheral
+  -----------------------------------
+  3	ge1	Gigabit Ethernet 1
+  4	ge0	Gigabit Ethernet 0
+  5	pex0	PCIe Cntrl 0
+  17	sdio	SDHCI Host
+  18	usb0	USB Host 0
+  22	xor0	XOR DMA 0
+
+  The following is a list of provided IDs for Dove:
+  ID	Clock	Peripheral
+  -----------------------------------
+  0	usb0	USB Host 0
+  1	usb1	USB Host 1
+  2	ge	Gigabit Ethernet
+  3	sata	SATA Host
+  4	pex0	PCIe Cntrl 0
+  5	pex1	PCIe Cntrl 1
+  8	sdio0	SDHCI Host 0
+  9	sdio1	SDHCI Host 1
+  10	nand	NAND Cntrl
+  11	camera	Camera Cntrl
+  12	i2s0	I2S Cntrl 0
+  13	i2s1	I2S Cntrl 1
+  15	crypto	CESA engine
+  21	ac97	AC97 Cntrl
+  22	pdma	Peripheral DMA
+  23	xor0	XOR DMA 0
+  24	xor1	XOR DMA 1
+  30	gephy	Gigabit Ethernel PHY
+  Note: gephy(30) is implemented as a parent clock of ge(2)
+
+  The following is a list of provided IDs for Kirkwood:
+  ID	Clock	Peripheral
+  -----------------------------------
+  0	ge0	Gigabit Ethernet 0
+  2	pex0	PCIe Cntrl 0
+  3	usb0	USB Host 0
+  4	sdio	SDIO Cntrl
+  5	tsu	Transp. Stream Unit
+  6	dunit	SDRAM Cntrl
+  7	runit	Runit
+  8	xor0	XOR DMA 0
+  9	audio	I2S Cntrl 0
+  14	sata0	SATA Host 0
+  15	sata1	SATA Host 1
+  16	xor1	XOR DMA 1
+  17	crypto	CESA engine
+  18	pex1	PCIe Cntrl 1
+  19	ge1	Gigabit Ethernet 1
+  20	tdm	Time Division Mplx
+
+properties:
+  compatible:
+    enum:
+      - marvell,armada-370-gating-clock
+      - marvell,armada-375-gating-clock
+      - marvell,armada-380-gating-clock
+      - marvell,armada-390-gating-clock
+      - marvell,armada-xp-gating-clock
+      - marvell,mv98dx3236-gating-clock
+      - marvell,dove-gating-clock
+      - marvell,kirkwood-gating-clock
+
+  reg:
+    description:
+      Shall be the register address of the Clock Gating Control register
+    maxItems: 1
+
+  "#clock-cells":
+    const: 1
+    description:
+      This additional argument passed to that clock is the offset of
+      the bit controlling this particular gate in the register.
+
+  clocks:
+    description:
+      default parent clock phandle (e.g. tclk)
+    maxItems: 1
+
+required:
+  - "#clock-cells"
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    gate_clk: clock-gating-control@d0038 {
+      compatible = "marvell,dove-gating-clock";
+      reg = <0xd0038 0x4>;
+      /* default parent clock is tclk */
+      clocks = <&core_clk 0>;
+      #clock-cells = <1>;
+    };
+...
Documentation/devicetree/bindings/clock/mvebu-gated-clock.txt deleted +0 -205

205 lines not on this page · raw message

Signature · 1 line
2.37.2
maintainer
#16 lore raw
In reply to Andrew Lunn
Quoted 10 lines · Andrew Lunn

This is the first batch of patches converting the Marvell MVEBU driver bindings from .txt to .yaml. So far, kirkwood has been used for testing, but these drivers apply to a range of Marvell SoCs.

In order to reduce the number of warnings from the DT schema checking tools, a few minor changes have been made to a few DT files. No actual errors have been found, the changes just make the checker quiet.

I propose these patches are merged via mvebu to arm-soc. No conflicts are expected with these patches.

Why? I strongly prefer the bindings go via subsystem trees. That is the documented way.

As pointed out in v1, you again have not Cc'ed the subsystem maintainers. Please resend.

Rob

#17 lore raw
Quoted 9 lines · Rob Herring
Quoted 8 lines · Andrew Lunn

This is the first batch of patches converting the Marvell MVEBU driver bindings from .txt to .yaml. So far, kirkwood has been used for testing, but these drivers apply to a range of Marvell SoCs.

In order to reduce the number of warnings from the DT schema checking tools, a few minor changes have been made to a few DT files. No actual errors have been found, the changes just make the checker quiet.

Quoted 5 lines
Quoted 2 lines

I propose these patches are merged via mvebu to arm-soc. No conflicts are expected with these patches.

Why? I strongly prefer the bindings go via subsystem trees. That is the documented way.

I have 50 patches to convert kirkwood from .txt to .yaml. probably around 30 subsystems.

1) Complete nightmare to keep track of so many different patchsets going in 30 different directions.

2) None of these patches change any driver code. This is pure 'Documentation'. The subsystem probably reviewed the .txt file 10 years ago when I and other mvebu maintainers submitted them. Nothing is changing in the kernel code base, except now we gain some degree of validation for this 'Documentation'.

3) Pretty much all of these were merged via arm-soc 10 years ago. Why do it different now? What is gained by not going via arm-soc?

Andrew

maintainer
#18 lore raw
Quoted 14 lines · Andrew Lunn
Quoted 12 lines · Rob Herring
Quoted 10 lines · Andrew Lunn

This is the first batch of patches converting the Marvell MVEBU driver bindings from .txt to .yaml. So far, kirkwood has been used for testing, but these drivers apply to a range of Marvell SoCs.

In order to reduce the number of warnings from the DT schema checking tools, a few minor changes have been made to a few DT files. No actual errors have been found, the changes just make the checker quiet.

I propose these patches are merged via mvebu to arm-soc. No conflicts are expected with these patches.

Quoted 8 lines
Quoted 2 lines

Why? I strongly prefer the bindings go via subsystem trees. That is the documented way.

I have 50 patches to convert kirkwood from .txt to .yaml. probably around 30 subsystems.

1) Complete nightmare to keep track of so many different patchsets going in 30 different directions.

That's what everyone else does. Send them out and let the maintainers pick them up. Anything left can go via the DT tree or arm-soc. That is going to happen anyways once you Cc the correct maintainers unless you state in each patch not to apply.

Quoted 8 lines

2) None of these patches change any driver code. This is pure 'Documentation'. The subsystem probably reviewed the .txt file 10 years ago when I and other mvebu maintainers submitted them. Nothing is changing in the kernel code base, except now we gain some degree of validation for this 'Documentation'.

3) Pretty much all of these were merged via arm-soc 10 years ago. Why do it different now? What is gained by not going via arm-soc?

10 years ago it was hit or miss whether bindings even got reviewed. Shall we go back to that?

Probably my biggest complaint is when anything breaks in next, fixes going into arm-soc are slow because there are 2 levels of maintainers.

Rob