Skip to contentSkip to conversation

dt-bindings: ata: Convert apm,xgene-ahci to DT schema

PATCH Applied Rob Herring (Arm) 2 participants 2 messages May 12, 2025 – May 15, 2025

Subsystems (2)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: ata: Convert apm,xgene-ahci to DT schema

Convert the APM X-Gene AHCI SATA Controller to DT schema format. It's a straight-forward conversion.

---
 .../bindings/ata/apm,xgene-ahci.yaml          | 58 ++++++++++++++
 .../devicetree/bindings/ata/apm-xgene.txt     | 77 -------------------
 2 files changed, 58 insertions(+), 77 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/ata/apm,xgene-ahci.yaml
 delete mode 100644 Documentation/devicetree/bindings/ata/apm-xgene.txt
Documentation/devicetree/bindings/ata/apm,xgene-ahci.yaml new file +58 -0
new file mode 100644
index 000000000000..7dc942808656
@@ -0,0 +1,58 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/ata/apm,xgene-ahci.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: APM X-Gene 6.0 Gb/s SATA host controller
+
+maintainers:
+  - Rob Herring <[email protected]>
+
+allOf:
+  - $ref: ahci-common.yaml#
+
+properties:
+  compatible:
+    enum:
+      - apm,xgene-ahci
+      - apm,xgene-ahci-pcie
+
+  reg:
+    minItems: 4
+    items:
+      - description: AHCI memory resource
+      - description: Host controller core
+      - description: Host controller diagnostic
+      - description: Host controller AXI
+      - description: Host controller MUX
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1
+
+required:
+  - compatible
+  - clocks
+  - phys
+  - phy-names
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    sata@1a400000 {
+        compatible = "apm,xgene-ahci";
+        reg = <0x1a400000 0x1000>,
+              <0x1f220000 0x1000>,
+              <0x1f22d000 0x1000>,
+              <0x1f22e000 0x1000>,
+              <0x1f227000 0x1000>;
+        clocks = <&sataclk 0>;
+        dma-coherent;
+        interrupts = <0x0 0x87 0x4>;
+        phys = <&phy2 0>;
+        phy-names = "sata-phy";
+    };
Documentation/devicetree/bindings/ata/apm-xgene.txt deleted +0 -77

77 lines not on this page · raw message

Signature · 1 line
2.47.2
maintainer Applied
#1 lore raw
Quoted 4 lines · Rob Herring (Arm)

Convert the APM X-Gene AHCI SATA Controller to DT schema format. It's a straight-forward conversion.

Applied to for-6.16. Thanks !

Signature · 2 lines
Damien Le Moal
Western Digital Research