kirkwood-netgear_readynas_duo_v2.dts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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. mbus {
  15. ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>;
  16. pcie-controller {
  17. status = "okay";
  18. pcie@1,0 {
  19. status = "okay";
  20. };
  21. };
  22. };
  23. ocp@f1000000 {
  24. pinctrl: pinctrl@10000 {
  25. pmx_button_power: pmx-button-power {
  26. marvell,pins = "mpp47";
  27. marvell,function = "gpio";
  28. };
  29. pmx_button_backup: pmx-button-backup {
  30. marvell,pins = "mpp45";
  31. marvell,function = "gpio";
  32. };
  33. pmx_button_reset: pmx-button-reset {
  34. marvell,pins = "mpp13";
  35. marvell,function = "gpio";
  36. };
  37. pmx_led_blue_power: pmx-led-blue-power {
  38. marvell,pins = "mpp31";
  39. marvell,function = "gpio";
  40. };
  41. pmx_led_blue_activity: pmx-led-blue-activity {
  42. marvell,pins = "mpp38";
  43. marvell,function = "gpio";
  44. };
  45. pmx_led_blue_disk1: pmx-led-blue-disk1 {
  46. marvell,pins = "mpp23";
  47. marvell,function = "gpio";
  48. };
  49. pmx_led_blue_disk2: pmx-led-blue-disk2 {
  50. marvell,pins = "mpp22";
  51. marvell,function = "gpio";
  52. };
  53. pmx_led_blue_backup: pmx-led-blue-backup {
  54. marvell,pins = "mpp29";
  55. marvell,function = "gpio";
  56. };
  57. };
  58. i2c@11000 {
  59. status = "okay";
  60. rs5c372a: rs5c372a@32 {
  61. compatible = "ricoh,rs5c372a";
  62. reg = <0x32>;
  63. };
  64. };
  65. serial@12000 {
  66. pinctrl-0 = <&pmx_uart0>;
  67. pinctrl-names = "default";
  68. status = "okay";
  69. };
  70. nand@3000000 {
  71. status = "okay";
  72. partition@0 {
  73. label = "u-boot";
  74. reg = <0x0000000 0x180000>;
  75. read-only;
  76. };
  77. partition@180000 {
  78. label = "u-boot-env";
  79. reg = <0x180000 0x20000>;
  80. };
  81. partition@200000 {
  82. label = "uImage";
  83. reg = <0x0200000 0x600000>;
  84. };
  85. partition@800000 {
  86. label = "minirootfs";
  87. reg = <0x0800000 0x1000000>;
  88. };
  89. partition@1800000 {
  90. label = "jffs2";
  91. reg = <0x1800000 0x6800000>;
  92. };
  93. };
  94. sata@80000 {
  95. status = "okay";
  96. nr-ports = <2>;
  97. };
  98. };
  99. gpio-leds {
  100. compatible = "gpio-leds";
  101. pinctrl-0 = < &pmx_led_blue_power &pmx_led_blue_activity
  102. &pmx_led_blue_disk1 &pmx_led_blue_disk2
  103. &pmx_led_blue_backup >;
  104. pinctrl-names = "default";
  105. power_led {
  106. label = "status:blue:power_led";
  107. gpios = <&gpio0 31 1>; /* GPIO 31 Active Low */
  108. linux,default-trigger = "default-on";
  109. };
  110. activity_led {
  111. label = "status:blue:activity_led";
  112. gpios = <&gpio1 6 1>; /* GPIO 38 Active Low */
  113. };
  114. disk1_led {
  115. label = "status:blue:disk1_led";
  116. gpios = <&gpio0 23 1>; /* GPIO 23 Active Low */
  117. };
  118. disk2_led {
  119. label = "status:blue:disk2_led";
  120. gpios = <&gpio0 22 1>; /* GPIO 22 Active Low */
  121. };
  122. backup_led {
  123. label = "status:blue:backup_led";
  124. gpios = <&gpio0 29 1>; /* GPIO 29 Active Low*/
  125. };
  126. };
  127. gpio_keys {
  128. compatible = "gpio-keys";
  129. #address-cells = <1>;
  130. #size-cells = <0>;
  131. pinctrl-0 = <&pmx_button_power &pmx_button_backup
  132. &pmx_button_reset>;
  133. pinctrl-names = "default";
  134. button@1 {
  135. label = "Power Button";
  136. linux,code = <116>; /* KEY_POWER */
  137. gpios = <&gpio1 15 1>;
  138. };
  139. button@2 {
  140. label = "Reset Button";
  141. linux,code = <0x198>; /* KEY_RESTART */
  142. gpios = <&gpio0 13 1>;
  143. };
  144. button@3 {
  145. label = "Backup Button";
  146. linux,code = <133>; /* KEY_COPY */
  147. gpios = <&gpio1 13 1>;
  148. };
  149. };
  150. regulators {
  151. compatible = "simple-bus";
  152. #address-cells = <1>;
  153. #size-cells = <0>;
  154. usb_power: regulator@1 {
  155. compatible = "regulator-fixed";
  156. reg = <1>;
  157. regulator-name = "USB 3.0 Power";
  158. regulator-min-microvolt = <5000000>;
  159. regulator-max-microvolt = <5000000>;
  160. enable-active-high;
  161. regulator-always-on;
  162. regulator-boot-on;
  163. gpio = <&gpio1 14 0>;
  164. };
  165. };
  166. };