kirkwood-netgear_readynas_duo_v2.dts 4.0 KB

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