diff options
author | Olliver Schinagl <oliver@schinagl.nl> | 2014-02-22 10:53:36 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-02-22 15:35:42 -0500 |
commit | c5754b5220f01e8722799d35c04a76e82c62d7d8 (patch) | |
tree | 59132ed247c3c68903c37fb0ee71d8249e44b98f /Documentation | |
parent | 648cb6fd83b97f0f772db783a280af300fa9f2bc (diff) |
ARM: sunxi: Add support for Allwinner SUNXi SoCs sata to ahci_platform
This patch adds support for the ahci sata controler found on Allwinner A10
and A20 SoCs to the ahci_platform driver.
Orignally written by Olliver Schinagl using the approach of having a platform
device which probe method creates a new child platform device which gets
driven by ahci_platform.c, as done by ahci_imx.c .
Refactored by Hans de Goede to add most of the non sunxi specific functionality
to ahci_platform.c and use a platform_data pointer from of_device_id for the
sunxi specific bits.
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/ata/ahci-platform.txt | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/Documentation/devicetree/bindings/ata/ahci-platform.txt b/Documentation/devicetree/bindings/ata/ahci-platform.txt index 1ac807fd34e6..499bfed81054 100644 --- a/Documentation/devicetree/bindings/ata/ahci-platform.txt +++ b/Documentation/devicetree/bindings/ata/ahci-platform.txt | |||
@@ -4,7 +4,9 @@ SATA nodes are defined to describe on-chip Serial ATA controllers. | |||
4 | Each SATA controller should have its own node. | 4 | Each SATA controller should have its own node. |
5 | 5 | ||
6 | Required properties: | 6 | Required properties: |
7 | - compatible : compatible list, contains "snps,spear-ahci" | 7 | - compatible : compatible list, one of "snps,spear-ahci", |
8 | "snps,exynos5440-ahci", "ibm,476gtr-ahci", or | ||
9 | "allwinner,sun4i-a10-ahci" | ||
8 | - interrupts : <interrupt mapping for SATA IRQ> | 10 | - interrupts : <interrupt mapping for SATA IRQ> |
9 | - reg : <registers mapping> | 11 | - reg : <registers mapping> |
10 | 12 | ||
@@ -13,10 +15,17 @@ Optional properties: | |||
13 | - clocks : a list of phandle + clock specifier pairs | 15 | - clocks : a list of phandle + clock specifier pairs |
14 | - target-supply : regulator for SATA target power | 16 | - target-supply : regulator for SATA target power |
15 | 17 | ||
16 | Example: | 18 | Examples: |
17 | sata@ffe08000 { | 19 | sata@ffe08000 { |
18 | compatible = "snps,spear-ahci"; | 20 | compatible = "snps,spear-ahci"; |
19 | reg = <0xffe08000 0x1000>; | 21 | reg = <0xffe08000 0x1000>; |
20 | interrupts = <115>; | 22 | interrupts = <115>; |
21 | |||
22 | }; | 23 | }; |
24 | |||
25 | ahci: sata@01c18000 { | ||
26 | compatible = "allwinner,sun4i-a10-ahci"; | ||
27 | reg = <0x01c18000 0x1000>; | ||
28 | interrupts = <56>; | ||
29 | clocks = <&pll6 0>, <&ahb_gates 25>; | ||
30 | target-supply = <®_ahci_5v>; | ||
31 | }; | ||