armada-370-netgear-rn102.dts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. /*
  2. * Device Tree file for NETGEAR ReadyNAS 102
  3. *
  4. * Copyright (C) 2013, Arnaud EBALARD <arno@natisbad.org>
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version
  9. * 2 of the License, or (at your option) any later version.
  10. */
  11. /dts-v1/;
  12. #include "armada-370.dtsi"
  13. / {
  14. model = "NETGEAR ReadyNAS 102";
  15. compatible = "netgear,readynas-102", "marvell,armada370", "marvell,armada-370-xp";
  16. chosen {
  17. bootargs = "console=ttyS0,115200 earlyprintk";
  18. };
  19. memory {
  20. device_type = "memory";
  21. reg = <0x00000000 0x20000000>; /* 512 MB */
  22. };
  23. soc {
  24. internal-regs {
  25. serial@12000 {
  26. clock-frequency = <200000000>;
  27. status = "okay";
  28. };
  29. sata@a0000 {
  30. nr-ports = <2>;
  31. status = "okay";
  32. };
  33. pinctrl {
  34. power_led_pin: power-led-pin {
  35. marvell,pins = "mpp57";
  36. marvell,function = "gpio";
  37. };
  38. sata1_led_pin: sata1-led-pin {
  39. marvell,pins = "mpp15";
  40. marvell,function = "gpio";
  41. };
  42. sata2_led_pin: sata2-led-pin {
  43. marvell,pins = "mpp14";
  44. marvell,function = "gpio";
  45. };
  46. backup_led_pin: backup-led-pin {
  47. marvell,pins = "mpp56";
  48. marvell,function = "gpio";
  49. };
  50. };
  51. mdio {
  52. phy0: ethernet-phy@0 {
  53. reg = <0>;
  54. };
  55. };
  56. ethernet@74000 {
  57. status = "okay";
  58. phy = <&phy0>;
  59. phy-mode = "rgmii-id";
  60. };
  61. usb@50000 {
  62. status = "okay";
  63. };
  64. i2c@11000 {
  65. compatible = "marvell,mv64xxx-i2c";
  66. clock-frequency = <100000>;
  67. status = "okay";
  68. g762: g762@3e {
  69. compatible = "gmt,g762";
  70. reg = <0x3e>;
  71. clocks = <&g762_clk>; /* input clock */
  72. fan_gear_mode = <0>;
  73. fan_startv = <1>;
  74. pwm_polarity = <0>;
  75. };
  76. };
  77. pcie-controller {
  78. status = "okay";
  79. /* Connected to Marvell SATA controller */
  80. pcie@1,0 {
  81. /* Port 0, Lane 0 */
  82. status = "okay";
  83. };
  84. /* Connected to FL1009 USB 3.0 controller */
  85. pcie@2,0 {
  86. /* Port 1, Lane 0 */
  87. status = "okay";
  88. };
  89. };
  90. };
  91. };
  92. clocks {
  93. #address-cells = <1>;
  94. #size-cells = <0>;
  95. g762_clk: fixedclk {
  96. compatible = "fixed-clock";
  97. #clock-cells = <0>;
  98. clock-frequency = <8192>;
  99. };
  100. };
  101. gpio_leds {
  102. compatible = "gpio-leds";
  103. pinctrl-0 = < &power_led_pin
  104. &sata1_led_pin
  105. &sata2_led_pin
  106. &backup_led_pin >;
  107. pinctrl-names = "default";
  108. blue_power_led {
  109. label = "rn102:blue:pwr";
  110. gpios = <&gpio1 25 1>; /* GPIO 57 Active Low */
  111. linux,default-trigger = "heartbeat";
  112. };
  113. green_sata1_led {
  114. label = "rn102:green:sata1";
  115. gpios = <&gpio0 15 1>; /* GPIO 15 Active Low */
  116. default-state = "on";
  117. };
  118. green_sata2_led {
  119. label = "rn102:green:sata2";
  120. gpios = <&gpio0 14 1>; /* GPIO 14 Active Low */
  121. default-state = "on";
  122. };
  123. green_backup_led {
  124. label = "rn102:green:backup";
  125. gpios = <&gpio1 24 1>; /* GPIO 56 Active Low */
  126. default-state = "on";
  127. };
  128. };
  129. gpio_keys {
  130. compatible = "gpio-keys";
  131. #address-cells = <1>;
  132. #size-cells = <0>;
  133. button@1 {
  134. label = "Power Button";
  135. linux,code = <116>; /* KEY_POWER */
  136. gpios = <&gpio1 30 1>;
  137. };
  138. button@2 {
  139. label = "Reset Button";
  140. linux,code = <0x198>; /* KEY_RESTART */
  141. gpios = <&gpio0 6 1>;
  142. };
  143. button@3 {
  144. label = "Backup Button";
  145. linux,code = <133>; /* KEY_COPY */
  146. gpios = <&gpio1 26 1>;
  147. };
  148. };
  149. };