kirkwood-netgear_readynas_duo_v2.dts 4.1 KB

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