kirkwood-netgear_readynas_duo_v2.dts 4.0 KB

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