summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/ata/allwinner,sun4i-a10-ahci.yaml
diff options
context:
space:
mode:
authorMaxime Ripard <maxime@cerno.tech>2019-12-13 08:49:38 +0100
committerRob Herring <robh@kernel.org>2019-12-17 20:15:02 -0600
commitfe96df93f86c9006f9c76d53779445dffa4f3b2d (patch)
tree7b77c236d84cf7f14d8336f435f0977c19d54b53 /Documentation/devicetree/bindings/ata/allwinner,sun4i-a10-ahci.yaml
parent2609a1271d50847e7d5499d000097fc9b8802ffa (diff)
downloadlinux-stable-fe96df93f86c9006f9c76d53779445dffa4f3b2d.tar.gz
linux-stable-fe96df93f86c9006f9c76d53779445dffa4f3b2d.tar.bz2
linux-stable-fe96df93f86c9006f9c76d53779445dffa4f3b2d.zip
dt-bindings: ata: Convert Allwinner AHCI controller to a schema
The Allwinner SoCs have a AHCI controllers that is supported in Linux, with a matching Device Tree binding. Now that we have the DT validation in place, let's convert the device tree bindings for that controller over to a YAML schemas. Signed-off-by: Maxime Ripard <maxime@cerno.tech> [robh: 'maxItems: 1' for resets] Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/ata/allwinner,sun4i-a10-ahci.yaml')
-rw-r--r--Documentation/devicetree/bindings/ata/allwinner,sun4i-a10-ahci.yaml47
1 files changed, 47 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/ata/allwinner,sun4i-a10-ahci.yaml b/Documentation/devicetree/bindings/ata/allwinner,sun4i-a10-ahci.yaml
new file mode 100644
index 000000000000..cb530b46beff
--- /dev/null
+++ b/Documentation/devicetree/bindings/ata/allwinner,sun4i-a10-ahci.yaml
@@ -0,0 +1,47 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/ata/allwinner,sun4i-a10-ahci.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Allwinner A10 AHCI SATA Controller bindings
+
+maintainers:
+ - Chen-Yu Tsai <wens@csie.org>
+ - Maxime Ripard <mripard@kernel.org>
+
+properties:
+ compatible:
+ const: allwinner,sun4i-a10-ahci
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ items:
+ - description: AHCI Bus Clock
+ - description: AHCI Module Clock
+
+ interrupts:
+ maxItems: 1
+
+ target-supply:
+ description: Regulator for SATA target power
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - interrupts
+
+additionalProperties: false
+
+examples:
+ - |
+ ahci: sata@1c18000 {
+ compatible = "allwinner,sun4i-a10-ahci";
+ reg = <0x01c18000 0x1000>;
+ interrupts = <56>;
+ clocks = <&pll6 0>, <&ahb_gates 25>;
+ target-supply = <&reg_ahci_5v>;
+ };