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

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