kirkwood-netgear_readynas_duo_v2.dts 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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. };
  98. gpio-leds {
  99. compatible = "gpio-leds";
  100. power_led {
  101. label = "status:blue:power_led";
  102. gpios = <&gpio0 31 1>; /* GPIO 31 Active Low */
  103. linux,default-trigger = "default-on";
  104. };
  105. activity_led {
  106. label = "status:blue:activity_led";
  107. gpios = <&gpio1 6 1>; /* GPIO 38 Active Low */
  108. };
  109. disk1_led {
  110. label = "status:blue:disk1_led";
  111. gpios = <&gpio0 23 1>; /* GPIO 23 Active Low */
  112. };
  113. disk2_led {
  114. label = "status:blue:disk2_led";
  115. gpios = <&gpio0 22 1>; /* GPIO 22 Active Low */
  116. };
  117. backup_led {
  118. label = "status:blue:backup_led";
  119. gpios = <&gpio0 29 1>; /* GPIO 29 Active Low*/
  120. };
  121. };
  122. gpio_keys {
  123. compatible = "gpio-keys";
  124. #address-cells = <1>;
  125. #size-cells = <0>;
  126. button@1 {
  127. label = "Power Button";
  128. linux,code = <116>; /* KEY_POWER */
  129. gpios = <&gpio1 15 1>;
  130. };
  131. button@2 {
  132. label = "Reset Button";
  133. linux,code = <0x198>; /* KEY_RESTART */
  134. gpios = <&gpio0 13 1>;
  135. };
  136. button@3 {
  137. label = "Backup Button";
  138. linux,code = <133>; /* KEY_COPY */
  139. gpios = <&gpio1 13 1>;
  140. };
  141. };
  142. regulators {
  143. compatible = "simple-bus";
  144. #address-cells = <1>;
  145. #size-cells = <0>;
  146. usb_power: regulator@1 {
  147. compatible = "regulator-fixed";
  148. reg = <1>;
  149. regulator-name = "USB 3.0 Power";
  150. regulator-min-microvolt = <5000000>;
  151. regulator-max-microvolt = <5000000>;
  152. enable-active-high;
  153. regulator-always-on;
  154. regulator-boot-on;
  155. gpio = <&gpio1 14 0>;
  156. };
  157. };
  158. };