Skip to contentSkip to conversation

dt-bindings: Microchip/Atmel AT91/SAMA system peripherals: convert to YAML

PATCH Superseded Akhila YS 2 participants 13 messages Feb 17 – Feb 24

Subsystems (2)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Akhila YS

author
#0 lore raw

cover dt-bindings: Microchip/Atmel AT91/SAMA system peripherals: convert to YAML

Convert various legacy .txt bindings for Microchip (formerly Atmel) AT91/SAMA family system peripherals to proper YAML schemas. This includes:

- CHIPID (SoC ID register block)
- PIT (Period Interval Timer, old style)
- PIT64B (64-bit Period Interval Timer, newer parts)
- ST (System Timer, including watchdog subnode)
- RAMC/SDRAMC/DDRAMC/UDDRC (SDRAM/DDR memory controller

---
Akhila YS (5):
dt-bindings: arm: microchip,sama7g5-chipid : convert to DT schema
dt-bindings: arm: atmel,at91sam9260-pit: convert to DT schema
dt-bindings: arm: microchip,sam9x60-pit64b : convert to DT schema
dt-bindings: arm: atmel,at91rm9200-st: convert to DT schema
dt-bindings: arm: atmel,at91rm9200-sdramc: convert to DT schema

 .../bindings/arm/atmel,at91rm9200-sdramc.yaml      | 67 ++++++++++++++++++++
 .../bindings/arm/atmel,at91rm9200-st.yaml          | 65 ++++++++++++++++++++
 .../bindings/arm/atmel,at91sam9260-pit.yaml        | 49 +++++++++++++++
 .../devicetree/bindings/arm/atmel-sysregs.txt      | 48 ---------------
 .../bindings/arm/microchip,sam9x60-pit64b.yaml     | 71 ++++++++++++++++++++++
 .../bindings/arm/microchip,sama7g5-chipid.yaml     | 41 +++++++++++++
 6 files changed, 293 insertions(+), 48 deletions(-)

---
base-commit: ca3a02fda4da8e2c1cb6baee5d72352e9e2cfaea
change-id: 20260128-arm-microchip-c0c0515024e6

Best regards,

Signature · 1 line
Akhila YS <[email protected]>
author
#1 lore raw

PATCH 1/5 dt-bindings: arm: microchip,sama7g5-chipid : convert to DT schema

Convert Atmel system registers binding to YAML format.

---
 .../bindings/arm/microchip,sama7g5-chipid.yaml     | 41 ++++++++++++++++++++++
 1 file changed, 41 insertions(+)
Documentation/devicetree/bindings/arm/microchip,sama7g5-chipid.yaml new file +41 -0
new file mode 100644
index 000000000000..4227f308d43a
@@ -0,0 +1,41 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/microchip,sama7g5-chipid.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Atmel/Microchip RAMC SDRAM/DDR Controller
+
+maintainers:
+  - Nicolas Ferre <[email protected]>
+  - Claudiu Beznea <[email protected]>
+
+description:
+  This binding describes the Atmel/Microchip Chip ID register block used
+  for SoC identification and revision information. It requires compatible
+  strings matching specific SoC families and a reg property defining the
+  register address and size.
+
+properties:
+  compatible:
+    enum:
+      - atmel,sama5d2-chipid
+      - microchip,sama7g5-chipid
+      - microchip,sama7d65-chipid
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    chipid@fc069000 {
+        compatible = "atmel,sama5d2-chipid";
+        reg = <0xfc069000 0x8>;
+    };
+...
Signature · 1 line
2.43.0
#2 lore raw

Re: [PATCH 1/5] dt-bindings: arm: microchip,sama7g5-chipid : convert to DT schema

Quoted 15 lines · Akhila YS

Convert Atmel system registers binding to YAML format.

---
 .../bindings/arm/microchip,sama7g5-chipid.yaml     | 41 ++++++++++++++++++++++
 1 file changed, 41 insertions(+)
Documentation/devicetree/bindings/arm/microchip,sama7g5-chipid.yaml new file +2 -0
new file mode 100644
index 000000000000..4227f308d43a
@@ -0,0 +1,41 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2

Documentation/devicetree/bindings/arm/microchip,sama7g5-chipid.yaml line 11

Quoted 10 lines
Documentation/devicetree/bindings/arm/microchip,sama7g5-chipid.yaml new file +9 -0
+---
+$id: http://devicetree.org/schemas/arm/microchip,sama7g5-chipid.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Atmel/Microchip RAMC SDRAM/DDR Controller
+
+maintainers:
+  - Nicolas Ferre <[email protected]>
 
+  - Claudiu Beznea <[email protected]>

This email no longer exists, think the new one is [email protected]. Look it up in MAINTAINERS.

Quoted 34 lines
Documentation/devicetree/bindings/arm/microchip,sama7g5-chipid.yaml new file +30 -0
+
+description:
+  This binding describes the Atmel/Microchip Chip ID register block used
+  for SoC identification and revision information. It requires compatible
+  strings matching specific SoC families and a reg property defining the
+  register address and size.
+
+properties:
+  compatible:
+    enum:
+      - atmel,sama5d2-chipid
+      - microchip,sama7g5-chipid
+      - microchip,sama7d65-chipid
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    chipid@fc069000 {
+        compatible = "atmel,sama5d2-chipid";
+        reg = <0xfc069000 0x8>;
+    };
+...
Signature · 2 lines
-- 
2.43.0
author
#3 lore raw

Re: [PATCH 1/5] dt-bindings: arm: microchip,sama7g5-chipid : convert to DT schema

Quoted 19 lines · Conor Dooley
Quoted 18 lines · Akhila YS

Convert Atmel system registers binding to YAML format.

---
 .../bindings/arm/microchip,sama7g5-chipid.yaml     | 41 ++++++++++++++++++++++
 1 file changed, 41 insertions(+)
Documentation/devicetree/bindings/arm/microchip,sama7g5-chipid.yaml new file +5 -0
new file mode 100644
index 000000000000..4227f308d43a
@@ -0,0 +1,41 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/microchip,sama7g5-chipid.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
Quoted 8 lines

Documentation/devicetree/bindings/arm/microchip,sama7g5-chipid.yaml line 11

Quoted 6 lines
Documentation/devicetree/bindings/arm/microchip,sama7g5-chipid.yaml new file +6 -0
+
+title: Atmel/Microchip RAMC SDRAM/DDR Controller
+
+maintainers:
+  - Nicolas Ferre <[email protected]>
+  - Claudiu Beznea <[email protected]>

This email no longer exists, think the new one is [email protected]. Look it up in MAINTAINERS.

Sure.

Signature · 2 lines
Best Regards,
Akhila.
author
#4 lore raw

PATCH 2/5 dt-bindings: arm: atmel,at91sam9260-pit: convert to DT schema

In reply to Akhila YS

Convert Atmel Periodic interval timer (PIT) binding to YAML format.

---
 .../bindings/arm/atmel,at91sam9260-pit.yaml        | 49 ++++++++++++++++++++++
 1 file changed, 49 insertions(+)
Documentation/devicetree/bindings/arm/atmel,at91sam9260-pit.yaml new file +49 -0
new file mode 100644
index 000000000000..954cd14ac1c1
@@ -0,0 +1,49 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/atmel,at91sam9260-pit.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Atmel AT91SAM9260 Periodic Interval Timer (PIT)
+
+maintainers:
+  - Nicolas Ferre <[email protected]>
+  - Claudiu Beznea <[email protected]>
+
+description:
+  The Periodic Interval Timer (PIT) is part of the System Controller of
+  various Microchip 32-bit ARM-based SoCs (formerly Atmel AT91 series).
+  It is a simple down-counter timer used mainly as the kernel tick source.
+  The PIT is clocked from the slow clock and shares a single IRQ line with
+  other System Controller peripherals.
+
+properties:
+  compatible:
+    const: atmel,at91sam9260-pit
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - interrupts
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+    timer@fffffd30 {
+        compatible = "atmel,at91sam9260-pit";
+        reg = <0xfffffd30 0x10>;
+        interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
+        clocks = <&clk32k>;
+    };
+...
Signature · 1 line
2.43.0
author
#5 lore raw

PATCH 3/5 dt-bindings: arm: microchip,sam9x60-pit64b : convert to DT schema

In reply to Akhila YS

Convert Atmel Periodic interval timer of 64bit (PIT64b) binding to YAML format.
Changes during conversion:
- Add missing compatible "microchip,sama7g5-pit64b" along with a fallback compatible "microchip,sam9x60-pit64b".

---
 .../bindings/arm/microchip,sam9x60-pit64b.yaml     | 71 ++++++++++++++++++++++
 1 file changed, 71 insertions(+)
Documentation/devicetree/bindings/arm/microchip,sam9x60-pit64b.yaml new file +71 -0
new file mode 100644
index 000000000000..6bf8e81d4c72
@@ -0,0 +1,71 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/microchip,sam9x60-pit64b.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Microchip PIT64B 64-bit Periodic Interval Timer
+
+maintainers:
+  - Nicolas Ferre <[email protected]>
+  - Claudiu Beznea <[email protected]>
+
+description:
+  The Microchip PIT64B is a 64-bit periodic interval timer used in
+  several modern Microchip ARM SoCs including SAM9X60, SAM9X7 and
+  SAMA7D65 families. It provides extended timing range, flexible
+  clock selection and supports both periodic and one-shot interrupt
+  generation modes.
+
+properties:
+  compatible:
+    oneOf:
+      - const: microchip,sam9x60-pit64b
+      - items:
+          - const: microchip,sama7d65-pit64b
+          - const: microchip,sam9x60-pit64b
+      - items:
+          - const: microchip,sama7g5-pit64b
+          - const: microchip,sam9x60-pit64b
+      - items:
+          - const: microchip,sam9x7-pit64b
+          - const: microchip,sam9x60-pit64b
+
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    minItems: 1
+    maxItems: 2
+
+  clock-names:
+    oneOf:
+      - const: pclk
+      - items:
+          - const: pclk
+          - const: gclk
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+    #include <dt-bindings/clock/at91.h>
+    timer@f0028000 {
+        compatible = "microchip,sama7g5-pit64b", "microchip,sam9x60-pit64b";
+        reg = <0xf0028000 0x100>;
+        interrupts = <37 IRQ_TYPE_LEVEL_HIGH 7>;
+        clocks = <&pmc PMC_TYPE_PERIPHERAL 37>, <&pmc PMC_TYPE_GCK 37>;
+        clock-names = "pclk", "gclk";
+    };
+...
Signature · 1 line
2.43.0
#6 lore raw

Re: [PATCH 3/5] dt-bindings: arm: microchip,sam9x60-pit64b : convert to DT schema

Quoted 40 lines · Akhila YS

Convert Atmel Periodic interval timer of 64bit (PIT64b) binding to YAML format.
Changes during conversion:
- Add missing compatible "microchip,sama7g5-pit64b" along with a fallback compatible "microchip,sam9x60-pit64b".

---
 .../bindings/arm/microchip,sam9x60-pit64b.yaml     | 71 ++++++++++++++++++++++
 1 file changed, 71 insertions(+)
Documentation/devicetree/bindings/arm/microchip,sam9x60-pit64b.yaml new file +23 -0
new file mode 100644
index 000000000000..6bf8e81d4c72
@@ -0,0 +1,71 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/microchip,sam9x60-pit64b.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Microchip PIT64B 64-bit Periodic Interval Timer
+
+maintainers:
+  - Nicolas Ferre <[email protected]>
+  - Claudiu Beznea <[email protected]>
+
+description:
+  The Microchip PIT64B is a 64-bit periodic interval timer used in
+  several modern Microchip ARM SoCs including SAM9X60, SAM9X7 and
+  SAMA7D65 families. It provides extended timing range, flexible
+  clock selection and supports both periodic and one-shot interrupt
+  generation modes.
+
+properties:
+  compatible:
+    oneOf:
+      - const: microchip,sam9x60-pit64b

Documentation/devicetree/bindings/arm/microchip,sam9x60-pit64b.yaml line 32

Quoted 10 lines
Documentation/devicetree/bindings/arm/microchip,sam9x60-pit64b.yaml new file +9 -0
 
+      - items:
+          - const: microchip,sama7d65-pit64b
+          - const: microchip,sam9x60-pit64b
+      - items:
+          - const: microchip,sama7g5-pit64b
+          - const: microchip,sam9x60-pit64b
+      - items:
+          - const: microchip,sam9x7-pit64b
+          - const: microchip,sam9x60-pit64b

These three can be merged into one enum + const items list.

Quoted 6 lines
Documentation/devicetree/bindings/arm/microchip,sam9x60-pit64b.yaml new file +6 -0
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+

Documentation/devicetree/bindings/arm/microchip,sam9x60-pit64b.yaml line 50

Quoted 10 lines
Documentation/devicetree/bindings/arm/microchip,sam9x60-pit64b.yaml new file +10 -0
+  clocks:
+    minItems: 1
+    maxItems: 2
+
+  clock-names:
+    oneOf:
+      - const: pclk
+      - items:
+          - const: pclk
+          - const: gclk

This can be an items list with minItems: 1, but there should be some conditional logic used to permit gclk only where it is valid. The text binding removal is missing so I cannot say exactly what that logic should be.

pw-bot: changes-requested

Cheers,
Conor.

Quoted 25 lines
Documentation/devicetree/bindings/arm/microchip,sam9x60-pit64b.yaml new file +21 -0
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+    #include <dt-bindings/clock/at91.h>
+    timer@f0028000 {
+        compatible = "microchip,sama7g5-pit64b", "microchip,sam9x60-pit64b";
+        reg = <0xf0028000 0x100>;
+        interrupts = <37 IRQ_TYPE_LEVEL_HIGH 7>;
+        clocks = <&pmc PMC_TYPE_PERIPHERAL 37>, <&pmc PMC_TYPE_GCK 37>;
+        clock-names = "pclk", "gclk";
+    };
+...
Signature · 2 lines
-- 
2.43.0
author
#7 lore raw

Re: [PATCH 3/5] dt-bindings: arm: microchip,sam9x60-pit64b : convert to DT schema

Quoted 43 lines · Conor Dooley
Quoted 42 lines · Akhila YS

Convert Atmel Periodic interval timer of 64bit (PIT64b) binding to YAML format.
Changes during conversion:
- Add missing compatible "microchip,sama7g5-pit64b" along with a fallback compatible "microchip,sam9x60-pit64b".

---
 .../bindings/arm/microchip,sam9x60-pit64b.yaml     | 71 ++++++++++++++++++++++
 1 file changed, 71 insertions(+)
Documentation/devicetree/bindings/arm/microchip,sam9x60-pit64b.yaml new file +25 -0
new file mode 100644
index 000000000000..6bf8e81d4c72
@@ -0,0 +1,71 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/microchip,sam9x60-pit64b.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Microchip PIT64B 64-bit Periodic Interval Timer
+
+maintainers:
+  - Nicolas Ferre <[email protected]>
+  - Claudiu Beznea <[email protected]>
+
+description:
+  The Microchip PIT64B is a 64-bit periodic interval timer used in
+  several modern Microchip ARM SoCs including SAM9X60, SAM9X7 and
+  SAMA7D65 families. It provides extended timing range, flexible
+  clock selection and supports both periodic and one-shot interrupt
+  generation modes.
+
+properties:
+  compatible:
+    oneOf:
+      - const: microchip,sam9x60-pit64b
+      - items:
+          - const: microchip,sama7d65-pit64b
Quoted 8 lines

Documentation/devicetree/bindings/arm/microchip,sam9x60-pit64b.yaml line 32

Quoted 7 lines
Documentation/devicetree/bindings/arm/microchip,sam9x60-pit64b.yaml new file +7 -0
+          - const: microchip,sam9x60-pit64b
+      - items:
+          - const: microchip,sama7g5-pit64b
+          - const: microchip,sam9x60-pit64b
+      - items:
+          - const: microchip,sam9x7-pit64b
+          - const: microchip,sam9x60-pit64b

These three can be merged into one enum + const items list.

Okay.

Quoted 13 lines
Quoted 13 lines
Documentation/devicetree/bindings/arm/microchip,sam9x60-pit64b.yaml new file +12 -0
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    minItems: 1
+    maxItems: 2
+
+  clock-names:
+    oneOf:
Quoted 8 lines

Documentation/devicetree/bindings/arm/microchip,sam9x60-pit64b.yaml line 50

Quoted 4 lines
Documentation/devicetree/bindings/arm/microchip,sam9x60-pit64b.yaml new file +4 -0
+      - const: pclk
+      - items:
+          - const: pclk
+          - const: gclk

This can be an items list with minItems: 1, but there should be some conditional logic used to permit gclk only where it is valid. The text binding removal is missing so I cannot say exactly what that logic should be.

Okay.

Quoted 31 lines

pw-bot: changes-requested

Cheers,
Conor.

Quoted 25 lines
Documentation/devicetree/bindings/arm/microchip,sam9x60-pit64b.yaml new file +21 -0
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+    #include <dt-bindings/clock/at91.h>
+    timer@f0028000 {
+        compatible = "microchip,sama7g5-pit64b", "microchip,sam9x60-pit64b";
+        reg = <0xf0028000 0x100>;
+        interrupts = <37 IRQ_TYPE_LEVEL_HIGH 7>;
+        clocks = <&pmc PMC_TYPE_PERIPHERAL 37>, <&pmc PMC_TYPE_GCK 37>;
+        clock-names = "pclk", "gclk";
+    };
+...
Signature · 2 lines
-- 
2.43.0
Signature · 2 lines
Best Regards,
Akhila.
author
#8 lore raw

PATCH 4/5 dt-bindings: arm: atmel,at91rm9200-st: convert to DT schema

In reply to Akhila YS

Convert System Timer binding to YAML format.

---
 .../bindings/arm/atmel,at91rm9200-st.yaml          | 65 ++++++++++++++++++++++
 1 file changed, 65 insertions(+)
Documentation/devicetree/bindings/arm/atmel,at91rm9200-st.yaml new file +65 -0
new file mode 100644
index 000000000000..ac6e2c71969e
@@ -0,0 +1,65 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/atmel,at91rm9200-st.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Atmel System Timer
+
+maintainers:
+  - Nicolas Ferre <[email protected]>
+  - Claudiu Beznea <[email protected]>
+
+description:
+  The System Timer (ST) module in AT91RM9200 provides periodic tick and
+  alarm capabilities. It is exposed as a simple multi-function device
+  (simple-mfd + syscon) because it shares its register space and interrupt
+  with other System Controller blocks.
+
+properties:
+  compatible:
+    items:
+      - const: atmel,at91rm9200-st
+      - const: syscon
+      - const: simple-mfd
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1
+
+  watchdog:
+    type: object
+    description: Watchdog timer subnode.
+    properties:
+      compatible:
+        const: atmel,at91rm9200-wdt
+    required:
+      - compatible
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+    timer@fffffd00 {
+        compatible = "atmel,at91rm9200-st", "syscon", "simple-mfd";
+        reg = <0xfffffd00 0x100>;
+        interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
+        clocks = <&slow_xtal>;
+
+        watchdog {
+                compatible = "atmel,at91rm9200-wdt";
+        };
+    };
+...
Signature · 1 line
2.43.0
author
#9 lore raw

PATCH 5/5 dt-bindings: arm: atmel,at91rm9200-sdramc: convert to DT schema

In reply to Akhila YS

Convert RAMC SDRAM/DDR controller binding to YAML format.

---
 .../bindings/arm/atmel,at91rm9200-sdramc.yaml      | 67 ++++++++++++++++++++++
 .../devicetree/bindings/arm/atmel-sysregs.txt      | 48 ----------------
 2 files changed, 67 insertions(+), 48 deletions(-)
Documentation/devicetree/bindings/arm/atmel,at91rm9200-sdramc.yaml new file +67 -0
new file mode 100644
index 000000000000..76cd8f73331c
@@ -0,0 +1,67 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/atmel,at91rm9200-sdramc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Microchip (Atmel) SDRAM / DDR Controller (RAMC / DDRAMC / UDDRC)
+
+maintainers:
+  - Nicolas Ferre <[email protected]>
+  - Claudiu Beznea <[email protected]>
+
+description:
+  The SDRAM/DDR Controller (often called RAMC or DDRAMC) in various
+  Atmel/Microchip ARM9 and Cortex-A5/A7 SoCs  manages external
+  SDRAM / DDR memory. It is typically exposed as a syscon node for
+  register access from other drivers (e.g. for initialization or mode
+  configuration). No interrupts or clocks are usually required in the
+  binding.
+
+properties:
+  compatible:
+    oneOf:
+      - items:
+          - const: atmel,at91rm9200-sdramc
+          - const: syscon
+      - items:
+          - const: microchip,sama7d65-uddrc
+          - const: microchip,sama7g5-uddrc
+      - items:
+          enum:
+            - atmel,at91sam9260-sdramc
+            - atmel,at91sam9g45-ddramc
+            - atmel,sama5d3-ddramc
+            - microchip,sam9x60-ddramc
+            - microchip,sam9x7-ddramc
+            - microchip,sama7g5-uddrc
+
+  reg:
+    maxItems: 1
+
+  clocks:
+    minItems: 1
+    maxItems: 2
+
+  clock-names:
+    minItems: 1
+    items:
+      - const: ddrck
+      - const: mpddr
+
+required:
+  - compatible
+  - reg
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/clock/at91.h>
+    ramc@ffffe400 {
+        compatible = "atmel,at91sam9g45-ddramc";
+        reg = <0xffffe400 0x200>;
+        clocks = <&pmc PMC_TYPE_SYSTEM 2>;
+        clock-names = "ddrck";
+    };
+...
Documentation/devicetree/bindings/arm/atmel-sysregs.txt deleted +0 -48

48 lines not on this page · raw message

Signature · 1 line
2.43.0
#10 lore raw
In reply to Akhila YS
Quoted 18 lines · Akhila YS

Convert various legacy .txt bindings for Microchip (formerly Atmel) AT91/SAMA family system peripherals to proper YAML schemas. This includes:

- CHIPID (SoC ID register block)
- PIT (Period Interval Timer, old style)
- PIT64B (64-bit Period Interval Timer, newer parts)
- ST (System Timer, including watchdog subnode)
- RAMC/SDRAMC/DDRAMC/UDDRC (SDRAM/DDR memory controller

---
Akhila YS (5):
dt-bindings: arm: microchip,sama7g5-chipid : convert to DT schema
dt-bindings: arm: atmel,at91sam9260-pit: convert to DT schema
dt-bindings: arm: microchip,sam9x60-pit64b : convert to DT schema
dt-bindings: arm: atmel,at91rm9200-st: convert to DT schema
dt-bindings: arm: atmel,at91rm9200-sdramc: convert to DT schema

Quoted 6 lines
 .../bindings/arm/atmel,at91rm9200-sdramc.yaml      | 67 ++++++++++++++++++++
 .../bindings/arm/atmel,at91rm9200-st.yaml          | 65 ++++++++++++++++++++
 .../bindings/arm/atmel,at91sam9260-pit.yaml        | 49 +++++++++++++++
 .../devicetree/bindings/arm/atmel-sysregs.txt      | 48 ---------------
 .../bindings/arm/microchip,sam9x60-pit64b.yaml     | 71 ++++++++++++++++++++++
 .../bindings/arm/microchip,sama7g5-chipid.yaml     | 41 +++++++++++++

Is this intentional? They all say "convert", but only one file is removed in one commit?

author
#11 lore raw
Quoted 19 lines · Conor Dooley
Quoted 18 lines · Akhila YS

Convert various legacy .txt bindings for Microchip (formerly Atmel) AT91/SAMA family system peripherals to proper YAML schemas. This includes:

- CHIPID (SoC ID register block)
- PIT (Period Interval Timer, old style)
- PIT64B (64-bit Period Interval Timer, newer parts)
- ST (System Timer, including watchdog subnode)
- RAMC/SDRAMC/DDRAMC/UDDRC (SDRAM/DDR memory controller

---
Akhila YS (5):
dt-bindings: arm: microchip,sama7g5-chipid : convert to DT schema
dt-bindings: arm: atmel,at91sam9260-pit: convert to DT schema
dt-bindings: arm: microchip,sam9x60-pit64b : convert to DT schema
dt-bindings: arm: atmel,at91rm9200-st: convert to DT schema
dt-bindings: arm: atmel,at91rm9200-sdramc: convert to DT schema

Quoted 8 lines
Quoted 6 lines
 .../bindings/arm/atmel,at91rm9200-sdramc.yaml      | 67 ++++++++++++++++++++
 .../bindings/arm/atmel,at91rm9200-st.yaml          | 65 ++++++++++++++++++++
 .../bindings/arm/atmel,at91sam9260-pit.yaml        | 49 +++++++++++++++
 .../devicetree/bindings/arm/atmel-sysregs.txt      | 48 ---------------
 .../bindings/arm/microchip,sam9x60-pit64b.yaml     | 71 ++++++++++++++++++++++
 .../bindings/arm/microchip,sama7g5-chipid.yaml     | 41 +++++++++++++

Is this intentional? They all say "convert", but only one file is removed in one commit?

Yes, all bindings are present in one text file.

Signature · 2 lines
Best Regards,
Akhila.
#12 lore raw
Quoted 27 lines · Akhila YS
Quoted 25 lines · Conor Dooley
Quoted 24 lines · Akhila YS

Convert various legacy .txt bindings for Microchip (formerly Atmel) AT91/SAMA family system peripherals to proper YAML schemas. This includes:

- CHIPID (SoC ID register block)
- PIT (Period Interval Timer, old style)
- PIT64B (64-bit Period Interval Timer, newer parts)
- ST (System Timer, including watchdog subnode)
- RAMC/SDRAMC/DDRAMC/UDDRC (SDRAM/DDR memory controller

---
Akhila YS (5):
dt-bindings: arm: microchip,sama7g5-chipid : convert to DT schema
dt-bindings: arm: atmel,at91sam9260-pit: convert to DT schema
dt-bindings: arm: microchip,sam9x60-pit64b : convert to DT schema
dt-bindings: arm: atmel,at91rm9200-st: convert to DT schema
dt-bindings: arm: atmel,at91rm9200-sdramc: convert to DT schema

 .../bindings/arm/atmel,at91rm9200-sdramc.yaml      | 67 ++++++++++++++++++++
 .../bindings/arm/atmel,at91rm9200-st.yaml          | 65 ++++++++++++++++++++
 .../bindings/arm/atmel,at91sam9260-pit.yaml        | 49 +++++++++++++++
 .../devicetree/bindings/arm/atmel-sysregs.txt      | 48 ---------------
 .../bindings/arm/microchip,sam9x60-pit64b.yaml     | 71 ++++++++++++++++++++++
 .../bindings/arm/microchip,sama7g5-chipid.yaml     | 41 +++++++++++++
Quoted 6 lines
Quoted 2 lines

Is this intentional? They all say "convert", but only one file is removed in one commit?

Yes, all bindings are present in one text file.

Surely the thing to do would be to remove each section from the text file as it gets converted, no?