ahci-mtk.txt 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. MediaTek Serial ATA controller
  2. Required properties:
  3. - compatible : Must be "mediatek,<chip>-ahci", "mediatek,mtk-ahci".
  4. When using "mediatek,mtk-ahci" compatible strings, you
  5. need SoC specific ones in addition, one of:
  6. - "mediatek,mt7622-ahci"
  7. - reg : Physical base addresses and length of register sets.
  8. - interrupts : Interrupt associated with the SATA device.
  9. - interrupt-names : Associated name must be: "hostc".
  10. - clocks : A list of phandle and clock specifier pairs, one for each
  11. entry in clock-names.
  12. - clock-names : Associated names must be: "ahb", "axi", "asic", "rbc", "pm".
  13. - phys : A phandle and PHY specifier pair for the PHY port.
  14. - phy-names : Associated name must be: "sata-phy".
  15. - ports-implemented : See ./ahci-platform.txt for details.
  16. Optional properties:
  17. - power-domains : A phandle and power domain specifier pair to the power
  18. domain which is responsible for collapsing and restoring
  19. power to the peripheral.
  20. - resets : Must contain an entry for each entry in reset-names.
  21. See ../reset/reset.txt for details.
  22. - reset-names : Associated names must be: "axi", "sw", "reg".
  23. - mediatek,phy-mode : A phandle to the system controller, used to enable
  24. SATA function.
  25. Example:
  26. sata: sata@1a200000 {
  27. compatible = "mediatek,mt7622-ahci",
  28. "mediatek,mtk-ahci";
  29. reg = <0 0x1a200000 0 0x1100>;
  30. interrupts = <GIC_SPI 233 IRQ_TYPE_LEVEL_HIGH>;
  31. interrupt-names = "hostc";
  32. clocks = <&pciesys CLK_SATA_AHB_EN>,
  33. <&pciesys CLK_SATA_AXI_EN>,
  34. <&pciesys CLK_SATA_ASIC_EN>,
  35. <&pciesys CLK_SATA_RBC_EN>,
  36. <&pciesys CLK_SATA_PM_EN>;
  37. clock-names = "ahb", "axi", "asic", "rbc", "pm";
  38. phys = <&u3port1 PHY_TYPE_SATA>;
  39. phy-names = "sata-phy";
  40. ports-implemented = <0x1>;
  41. power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>;
  42. resets = <&pciesys MT7622_SATA_AXI_BUS_RST>,
  43. <&pciesys MT7622_SATA_PHY_SW_RST>,
  44. <&pciesys MT7622_SATA_PHY_REG_RST>;
  45. reset-names = "axi", "sw", "reg";
  46. mediatek,phy-mode = <&pciesys>;
  47. };