ahci-platform.txt 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. * AHCI SATA Controller
  2. SATA nodes are defined to describe on-chip Serial ATA controllers.
  3. Each SATA controller should have its own node.
  4. It is possible, but not required, to represent each port as a sub-node.
  5. It allows to enable each port independently when dealing with multiple
  6. PHYs.
  7. Required properties:
  8. - compatible : compatible string, one of:
  9. - "allwinner,sun4i-a10-ahci"
  10. - "hisilicon,hisi-ahci"
  11. - "ibm,476gtr-ahci"
  12. - "marvell,armada-380-ahci"
  13. - "snps,dwc-ahci"
  14. - "snps,exynos5440-ahci"
  15. - "snps,spear-ahci"
  16. - "generic-ahci"
  17. - interrupts : <interrupt mapping for SATA IRQ>
  18. - reg : <registers mapping>
  19. Please note that when using "generic-ahci" you must also specify a SoC specific
  20. compatible:
  21. compatible = "manufacturer,soc-model-ahci", "generic-ahci";
  22. Optional properties:
  23. - dma-coherent : Present if dma operations are coherent
  24. - clocks : a list of phandle + clock specifier pairs
  25. - target-supply : regulator for SATA target power
  26. - phys : reference to the SATA PHY node
  27. - phy-names : must be "sata-phy"
  28. Required properties when using sub-nodes:
  29. - #address-cells : number of cells to encode an address
  30. - #size-cells : number of cells representing the size of an address
  31. Sub-nodes required properties:
  32. - reg : the port number
  33. And at least one of the following properties:
  34. - phys : reference to the SATA PHY node
  35. - target-supply : regulator for SATA target power
  36. Examples:
  37. sata@ffe08000 {
  38. compatible = "snps,spear-ahci";
  39. reg = <0xffe08000 0x1000>;
  40. interrupts = <115>;
  41. };
  42. ahci: sata@01c18000 {
  43. compatible = "allwinner,sun4i-a10-ahci";
  44. reg = <0x01c18000 0x1000>;
  45. interrupts = <56>;
  46. clocks = <&pll6 0>, <&ahb_gates 25>;
  47. target-supply = <&reg_ahci_5v>;
  48. };
  49. With sub-nodes:
  50. sata@f7e90000 {
  51. compatible = "marvell,berlin2q-achi", "generic-ahci";
  52. reg = <0xe90000 0x1000>;
  53. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
  54. clocks = <&chip CLKID_SATA>;
  55. #address-cells = <1>;
  56. #size-cells = <0>;
  57. sata0: sata-port@0 {
  58. reg = <0>;
  59. phys = <&sata_phy 0>;
  60. target-supply = <&reg_sata0>;
  61. };
  62. sata1: sata-port@1 {
  63. reg = <1>;
  64. phys = <&sata_phy 1>;
  65. target-supply = <&reg_sata1>;;
  66. };
  67. };