armada-370-seagate-nas-4bay.dts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. /*
  2. * Device Tree file for Seagate NAS 4-Bay (Armada 370 SoC).
  3. *
  4. * Copyright (C) 2015 Seagate
  5. *
  6. * Author: Vincent Donnefort <vdonnefort@gmail.com>
  7. *
  8. * This file is licensed under the terms of the GNU General Public
  9. * License version 2. This program is licensed "as is" without any
  10. * warranty of any kind, whether express or implied.
  11. */
  12. /*
  13. * Here are some information allowing to identify the device:
  14. *
  15. * Product name : Seagate NAS 4-Bay
  16. * Code name (board/PCB) : Dart 4-Bay
  17. * Model name (case sticker) : SRPD40
  18. * Material desc (product spec) : STCUxxxxxxx
  19. */
  20. /dts-v1/;
  21. #include "armada-370-seagate-nas-xbay.dtsi"
  22. #include <dt-bindings/leds/leds-ns2.h>
  23. / {
  24. model = "Seagate NAS 4-Bay (Dart, SRPD40)";
  25. compatible = "seagate,dart-4", "marvell,armada370", "marvell,armada-370-xp";
  26. soc {
  27. pcie-controller {
  28. /* SATA AHCI controller 88SE9170 */
  29. pcie@1,0 {
  30. status = "okay";
  31. };
  32. };
  33. internal-regs {
  34. mdio {
  35. phy1: ethernet-phy@1 {
  36. reg = <1>;
  37. };
  38. };
  39. ethernet@74000 {
  40. status = "okay";
  41. pinctrl-0 = <&ge1_rgmii_pins>;
  42. pinctrl-names = "default";
  43. phy = <&phy1>;
  44. phy-mode = "rgmii-id";
  45. };
  46. i2c@11000 {
  47. /* I2C GPIO expander (PCA9554A) */
  48. pca9554: pca9554@21 {
  49. compatible = "nxp,pca9554";
  50. reg = <0x21>;
  51. #gpio-cells = <2>;
  52. gpio-controller;
  53. };
  54. };
  55. };
  56. };
  57. regulators {
  58. regulator@3 {
  59. compatible = "regulator-fixed";
  60. reg = <3>;
  61. regulator-name = "SATA2 power";
  62. regulator-min-microvolt = <5000000>;
  63. regulator-max-microvolt = <5000000>;
  64. enable-active-high;
  65. regulator-always-on;
  66. regulator-boot-on;
  67. gpio = <&pca9554 6 GPIO_ACTIVE_HIGH>;
  68. };
  69. regulator@4 {
  70. compatible = "regulator-fixed";
  71. reg = <4>;
  72. regulator-name = "SATA3 power";
  73. regulator-min-microvolt = <5000000>;
  74. regulator-max-microvolt = <5000000>;
  75. enable-active-high;
  76. regulator-always-on;
  77. regulator-boot-on;
  78. gpio = <&pca9554 7 GPIO_ACTIVE_HIGH>;
  79. };
  80. };
  81. gpio-leds {
  82. red-sata2 {
  83. label = "dart:red:sata2";
  84. gpios = <&pca9554 0 GPIO_ACTIVE_LOW>;
  85. };
  86. red-sata3 {
  87. label = "dart:red:sata3";
  88. gpios = <&pca9554 3 GPIO_ACTIVE_LOW>;
  89. };
  90. };
  91. leds-ns2 {
  92. compatible = "lacie,ns2-leds";
  93. white-sata2 {
  94. label = "dart:white:sata2";
  95. cmd-gpio = <&pca9554 1 GPIO_ACTIVE_HIGH>;
  96. slow-gpio = <&pca9554 2 GPIO_ACTIVE_HIGH>;
  97. num-modes = <4>;
  98. modes-map = <NS_V2_LED_SATA 0 0
  99. NS_V2_LED_OFF 0 1
  100. NS_V2_LED_ON 1 0
  101. NS_V2_LED_ON 1 1>;
  102. };
  103. white-sata3 {
  104. label = "dart:white:sata3";
  105. cmd-gpio = <&pca9554 4 GPIO_ACTIVE_HIGH>;
  106. slow-gpio = <&pca9554 5 GPIO_ACTIVE_HIGH>;
  107. num-modes = <4>;
  108. modes-map = <NS_V2_LED_SATA 0 0
  109. NS_V2_LED_OFF 0 1
  110. NS_V2_LED_ON 1 0
  111. NS_V2_LED_ON 1 1>;
  112. };
  113. };
  114. gpio-fan {
  115. gpio-fan,speed-map =
  116. < 0 3
  117. 800 2
  118. 1050 1
  119. 1300 0>;
  120. };
  121. };