diff options
author | Ryder Lee <ryder.lee@mediatek.com> | 2017-08-17 21:13:08 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-08-29 10:22:24 -0400 |
commit | 687abc0f77c239dc4cc93ea5cd27cfad76ddd038 (patch) | |
tree | f60fa1e4a3316a4c39e5aad084aeeb1ece0f5939 | |
parent | 47269605aa3bc191bdce6d2f6dec2e73d56b9c3b (diff) |
dt-bindings: ata: add DT bindings for MediaTek SATA controller
Add DT bindings for the onboard SATA controller present on the MediaTek
SoCs.
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
-rw-r--r-- | Documentation/devicetree/bindings/ata/ahci-mtk.txt | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/ata/ahci-mtk.txt b/Documentation/devicetree/bindings/ata/ahci-mtk.txt new file mode 100644 index 000000000000..d2aa696b161b --- /dev/null +++ b/Documentation/devicetree/bindings/ata/ahci-mtk.txt | |||
@@ -0,0 +1,51 @@ | |||
1 | MediaTek Serial ATA controller | ||
2 | |||
3 | Required properties: | ||
4 | - compatible : Must be "mediatek,<chip>-ahci", "mediatek,mtk-ahci". | ||
5 | When using "mediatek,mtk-ahci" compatible strings, you | ||
6 | need SoC specific ones in addition, one of: | ||
7 | - "mediatek,mt7622-ahci" | ||
8 | - reg : Physical base addresses and length of register sets. | ||
9 | - interrupts : Interrupt associated with the SATA device. | ||
10 | - interrupt-names : Associated name must be: "hostc". | ||
11 | - clocks : A list of phandle and clock specifier pairs, one for each | ||
12 | entry in clock-names. | ||
13 | - clock-names : Associated names must be: "ahb", "axi", "asic", "rbc", "pm". | ||
14 | - phys : A phandle and PHY specifier pair for the PHY port. | ||
15 | - phy-names : Associated name must be: "sata-phy". | ||
16 | - ports-implemented : See ./ahci-platform.txt for details. | ||
17 | |||
18 | Optional properties: | ||
19 | - power-domains : A phandle and power domain specifier pair to the power | ||
20 | domain which is responsible for collapsing and restoring | ||
21 | power to the peripheral. | ||
22 | - resets : Must contain an entry for each entry in reset-names. | ||
23 | See ../reset/reset.txt for details. | ||
24 | - reset-names : Associated names must be: "axi", "sw", "reg". | ||
25 | - mediatek,phy-mode : A phandle to the system controller, used to enable | ||
26 | SATA function. | ||
27 | |||
28 | Example: | ||
29 | |||
30 | sata: sata@1a200000 { | ||
31 | compatible = "mediatek,mt7622-ahci", | ||
32 | "mediatek,mtk-ahci"; | ||
33 | reg = <0 0x1a200000 0 0x1100>; | ||
34 | interrupts = <GIC_SPI 233 IRQ_TYPE_LEVEL_HIGH>; | ||
35 | interrupt-names = "hostc"; | ||
36 | clocks = <&pciesys CLK_SATA_AHB_EN>, | ||
37 | <&pciesys CLK_SATA_AXI_EN>, | ||
38 | <&pciesys CLK_SATA_ASIC_EN>, | ||
39 | <&pciesys CLK_SATA_RBC_EN>, | ||
40 | <&pciesys CLK_SATA_PM_EN>; | ||
41 | clock-names = "ahb", "axi", "asic", "rbc", "pm"; | ||
42 | phys = <&u3port1 PHY_TYPE_SATA>; | ||
43 | phy-names = "sata-phy"; | ||
44 | ports-implemented = <0x1>; | ||
45 | power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>; | ||
46 | resets = <&pciesys MT7622_SATA_AXI_BUS_RST>, | ||
47 | <&pciesys MT7622_SATA_PHY_SW_RST>, | ||
48 | <&pciesys MT7622_SATA_PHY_REG_RST>; | ||
49 | reset-names = "axi", "sw", "reg"; | ||
50 | mediatek,phy-mode = <&pciesys>; | ||
51 | }; | ||