150-dt-sun4i-add-ahci.patch 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. From a9868f7ef1d3828e55de36cfeac2f84a77653a1e Mon Sep 17 00:00:00 2001
  2. From: Oliver Schinagl <oliver@schinagl.nl>
  3. Date: Tue, 3 Dec 2013 12:10:11 +0100
  4. Subject: [PATCH] ARM: sun4i: dt: Add ahci / sata support
  5. This patch adds sunxi sata support to A10 boards that have such a connector.
  6. Some boards also feature a regulator via a GPIO and support for this is also
  7. added.
  8. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
  9. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
  10. ---
  11. arch/arm/boot/dts/sun4i-a10-a1000.dts | 4 ++++
  12. arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 10 ++++++++++
  13. arch/arm/boot/dts/sun4i-a10.dtsi | 8 ++++++++
  14. 3 files changed, 22 insertions(+)
  15. --- a/arch/arm/boot/dts/sun4i-a10-a1000.dts
  16. +++ b/arch/arm/boot/dts/sun4i-a10-a1000.dts
  17. @@ -35,6 +35,10 @@
  18. };
  19. };
  20. + ahci: sata@01c18000 {
  21. + status = "okay";
  22. + };
  23. +
  24. pinctrl@01c20800 {
  25. emac_power_pin_a1000: emac_power_pin@0 {
  26. allwinner,pins = "PH15";
  27. --- a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
  28. +++ b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
  29. @@ -12,6 +12,7 @@
  30. /dts-v1/;
  31. /include/ "sun4i-a10.dtsi"
  32. +/include/ "sunxi-common-regulators.dtsi"
  33. / {
  34. model = "Cubietech Cubieboard";
  35. @@ -33,6 +34,11 @@
  36. };
  37. };
  38. + ahci: sata@01c18000 {
  39. + target-supply = <&reg_ahci_5v>;
  40. + status = "okay";
  41. + };
  42. +
  43. pinctrl@01c20800 {
  44. led_pins_cubieboard: led_pins@0 {
  45. allwinner,pins = "PH20", "PH21";
  46. @@ -77,4 +83,8 @@
  47. linux,default-trigger = "heartbeat";
  48. };
  49. };
  50. +
  51. + reg_ahci_5v: ahci-5v {
  52. + status = "okay";
  53. + };
  54. };
  55. --- a/arch/arm/boot/dts/sun4i-a10.dtsi
  56. +++ b/arch/arm/boot/dts/sun4i-a10.dtsi
  57. @@ -388,6 +388,14 @@
  58. #size-cells = <0>;
  59. };
  60. + ahci: sata@01c18000 {
  61. + compatible = "allwinner,sun4i-a10-ahci";
  62. + reg = <0x01c18000 0x1000>;
  63. + interrupts = <56>;
  64. + clocks = <&pll6 0>, <&ahb_gates 25>;
  65. + status = "disabled";
  66. + };
  67. +
  68. spi3: spi@01c1f000 {
  69. compatible = "allwinner,sun4i-a10-spi";
  70. reg = <0x01c1f000 0x1000>;