kirkwood-netgear_readynas_duo_v2.dts 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. /dts-v1/;
  2. /include/ "kirkwood.dtsi"
  3. /include/ "kirkwood-6282.dtsi"
  4. / {
  5. model = "NETGEAR ReadyNAS Duo v2";
  6. compatible = "netgear,readynas-duo-v2", "netgear,readynas", "marvell,kirkwood-88f6282", "marvell,kirkwood";
  7. memory { /* 256 MB */
  8. device_type = "memory";
  9. reg = <0x00000000 0x10000000>;
  10. };
  11. chosen {
  12. bootargs = "console=ttyS0,115200n8 earlyprintk";
  13. };
  14. ocp@f1000000 {
  15. pinctrl: pinctrl@10000 {
  16. pmx_button_power: pmx-button-power {
  17. marvell,pins = "mpp47";
  18. marvell,function = "gpio";
  19. };
  20. pmx_button_backup: pmx-button-backup {
  21. marvell,pins = "mpp45";
  22. marvell,function = "gpio";
  23. };
  24. pmx_button_reset: pmx-button-reset {
  25. marvell,pins = "mpp13";
  26. marvell,function = "gpio";
  27. };
  28. pmx_led_blue_power: pmx-led-blue-power {
  29. marvell,pins = "mpp31";
  30. marvell,function = "gpio";
  31. };
  32. pmx_led_blue_activity: pmx-led-blue-activity {
  33. marvell,pins = "mpp38";
  34. marvell,function = "gpio";
  35. };
  36. pmx_led_blue_disk1: pmx-led-blue-disk1 {
  37. marvell,pins = "mpp23";
  38. marvell,function = "gpio";
  39. };
  40. pmx_led_blue_disk2: pmx-led-blue-disk2 {
  41. marvell,pins = "mpp22";
  42. marvell,function = "gpio";
  43. };
  44. pmx_led_blue_backup: pmx-led-blue-backup {
  45. marvell,pins = "mpp29";
  46. marvell,function = "gpio";
  47. };
  48. };
  49. clocks {
  50. #address-cells = <1>;
  51. #size-cells = <0>;
  52. g762_clk: fixedclk {
  53. compatible = "fixed-clock";
  54. #clock-cells = <0>;
  55. clock-frequency = <8192>;
  56. };
  57. };
  58. i2c@11000 {
  59. status = "okay";
  60. rs5c372a: rs5c372a@32 {
  61. compatible = "ricoh,rs5c372a";
  62. reg = <0x32>;
  63. };
  64. g762: g762@3e {
  65. compatible = "gmt,g762";
  66. reg = <0x3e>;
  67. clocks = <&g762_clk>; /* input clock */
  68. fan_gear_mode = <0>;
  69. fan_startv = <1>;
  70. pwm_polarity = <0>;
  71. };
  72. };
  73. serial@12000 {
  74. pinctrl-0 = <&pmx_uart0>;
  75. pinctrl-names = "default";
  76. status = "okay";
  77. };
  78. nand@3000000 {
  79. status = "okay";
  80. partition@0 {
  81. label = "u-boot";
  82. reg = <0x0000000 0x180000>;
  83. read-only;
  84. };
  85. partition@180000 {
  86. label = "u-boot-env";
  87. reg = <0x180000 0x20000>;
  88. };
  89. partition@200000 {
  90. label = "uImage";
  91. reg = <0x0200000 0x600000>;
  92. };
  93. partition@800000 {
  94. label = "minirootfs";
  95. reg = <0x0800000 0x1000000>;
  96. };
  97. partition@1800000 {
  98. label = "jffs2";
  99. reg = <0x1800000 0x6800000>;
  100. };
  101. };
  102. sata@80000 {
  103. status = "okay";
  104. nr-ports = <2>;
  105. };
  106. pcie-controller {
  107. status = "okay";
  108. pcie@1,0 {
  109. status = "okay";
  110. };
  111. };
  112. };
  113. gpio-leds {
  114. compatible = "gpio-leds";
  115. pinctrl-0 = < &pmx_led_blue_power &pmx_led_blue_activity
  116. &pmx_led_blue_disk1 &pmx_led_blue_disk2
  117. &pmx_led_blue_backup >;
  118. pinctrl-names = "default";
  119. power_led {
  120. label = "status:blue:power_led";
  121. gpios = <&gpio0 31 1>; /* GPIO 31 Active Low */
  122. linux,default-trigger = "default-on";
  123. };
  124. activity_led {
  125. label = "status:blue:activity_led";
  126. gpios = <&gpio1 6 1>; /* GPIO 38 Active Low */
  127. };
  128. disk1_led {
  129. label = "status:blue:disk1_led";
  130. gpios = <&gpio0 23 1>; /* GPIO 23 Active Low */
  131. };
  132. disk2_led {
  133. label = "status:blue:disk2_led";
  134. gpios = <&gpio0 22 1>; /* GPIO 22 Active Low */
  135. };
  136. backup_led {
  137. label = "status:blue:backup_led";
  138. gpios = <&gpio0 29 1>; /* GPIO 29 Active Low*/
  139. };
  140. };
  141. gpio_keys {
  142. compatible = "gpio-keys";
  143. #address-cells = <1>;
  144. #size-cells = <0>;
  145. pinctrl-0 = <&pmx_button_power &pmx_button_backup
  146. &pmx_button_reset>;
  147. pinctrl-names = "default";
  148. button@1 {
  149. label = "Power Button";
  150. linux,code = <116>; /* KEY_POWER */
  151. gpios = <&gpio1 15 1>;
  152. };
  153. button@2 {
  154. label = "Reset Button";
  155. linux,code = <0x198>; /* KEY_RESTART */
  156. gpios = <&gpio0 13 1>;
  157. };
  158. button@3 {
  159. label = "Backup Button";
  160. linux,code = <133>; /* KEY_COPY */
  161. gpios = <&gpio1 13 1>;
  162. };
  163. };
  164. regulators {
  165. compatible = "simple-bus";
  166. #address-cells = <1>;
  167. #size-cells = <0>;
  168. usb_power: regulator@1 {
  169. compatible = "regulator-fixed";
  170. reg = <1>;
  171. regulator-name = "USB 3.0 Power";
  172. regulator-min-microvolt = <5000000>;
  173. regulator-max-microvolt = <5000000>;
  174. enable-active-high;
  175. regulator-always-on;
  176. regulator-boot-on;
  177. gpio = <&gpio1 14 0>;
  178. };
  179. };
  180. };