kirkwood-dnskw.dtsi 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. /include/ "kirkwood.dtsi"
  2. /include/ "kirkwood-6281.dtsi"
  3. / {
  4. model = "D-Link DNS NASes (kirkwood-based)";
  5. compatible = "dlink,dns-kirkwood", "marvell,kirkwood-88f6281", "marvell,kirkwood";
  6. gpio_keys {
  7. compatible = "gpio-keys";
  8. #address-cells = <1>;
  9. #size-cells = <0>;
  10. button@1 {
  11. label = "Power button";
  12. linux,code = <116>;
  13. gpios = <&gpio1 2 1>;
  14. };
  15. button@2 {
  16. label = "USB unmount button";
  17. linux,code = <161>;
  18. gpios = <&gpio1 15 1>;
  19. };
  20. button@3 {
  21. label = "Reset button";
  22. linux,code = <0x198>;
  23. gpios = <&gpio1 16 1>;
  24. };
  25. };
  26. gpio_fan {
  27. /* Fan: ADDA AD045HB-G73 40mm 6000rpm@5v */
  28. compatible = "gpio-fan";
  29. gpios = <&gpio1 14 1
  30. &gpio1 13 1>;
  31. gpio-fan,speed-map = <0 0
  32. 3000 1
  33. 6000 2>;
  34. };
  35. gpio_poweroff {
  36. compatible = "gpio-poweroff";
  37. gpios = <&gpio1 4 0>;
  38. };
  39. ocp@f1000000 {
  40. pinctrl: pinctrl@10000 {
  41. pinctrl-0 = < &pmx_nand &pmx_uart1
  42. &pmx_sata0 &pmx_sata1
  43. &pmx_led_power
  44. &pmx_led_red_right_hdd
  45. &pmx_led_red_left_hdd
  46. &pmx_led_red_usb_325
  47. &pmx_button_power
  48. &pmx_led_red_usb_320
  49. &pmx_power_off &pmx_power_back_on
  50. &pmx_power_sata0 &pmx_power_sata1
  51. &pmx_present_sata0 &pmx_present_sata1
  52. &pmx_led_white_usb &pmx_fan_tacho
  53. &pmx_fan_high_speed &pmx_fan_low_speed
  54. &pmx_button_unmount &pmx_button_reset
  55. &pmx_temp_alarm >;
  56. pinctrl-names = "default";
  57. pmx_sata0: pmx-sata0 {
  58. marvell,pins = "mpp20";
  59. marvell,function = "sata1";
  60. };
  61. pmx_sata1: pmx-sata1 {
  62. marvell,pins = "mpp21";
  63. marvell,function = "sata0";
  64. };
  65. pmx_led_power: pmx-led-power {
  66. marvell,pins = "mpp26";
  67. marvell,function = "gpio";
  68. };
  69. pmx_led_red_right_hdd: pmx-led-red-right-hdd {
  70. marvell,pins = "mpp27";
  71. marvell,function = "gpio";
  72. };
  73. pmx_led_red_left_hdd: pmx-led-red-left-hdd {
  74. marvell,pins = "mpp28";
  75. marvell,function = "gpio";
  76. };
  77. pmx_led_red_usb_325: pmx-led-red-usb-325 {
  78. marvell,pins = "mpp29";
  79. marvell,function = "gpio";
  80. };
  81. pmx_button_power: pmx-button-power {
  82. marvell,pins = "mpp34";
  83. marvell,function = "gpio";
  84. };
  85. pmx_led_red_usb_320: pmx-led-red-usb-320 {
  86. marvell,pins = "mpp35";
  87. marvell,function = "gpio";
  88. };
  89. pmx_power_off: pmx-power-off {
  90. marvell,pins = "mpp36";
  91. marvell,function = "gpio";
  92. };
  93. pmx_power_back_on: pmx-power-back-on {
  94. marvell,pins = "mpp37";
  95. marvell,function = "gpio";
  96. };
  97. pmx_power_sata0: pmx-power-sata0 {
  98. marvell,pins = "mpp39";
  99. marvell,function = "gpio";
  100. };
  101. pmx_power_sata1: pmx-power-sata1 {
  102. marvell,pins = "mpp40";
  103. marvell,function = "gpio";
  104. };
  105. pmx_present_sata0: pmx-present-sata0 {
  106. marvell,pins = "mpp41";
  107. marvell,function = "gpio";
  108. };
  109. pmx_present_sata1: pmx-present-sata1 {
  110. marvell,pins = "mpp42";
  111. marvell,function = "gpio";
  112. };
  113. pmx_led_white_usb: pmx-led-white-usb {
  114. marvell,pins = "mpp43";
  115. marvell,function = "gpio";
  116. };
  117. pmx_fan_tacho: pmx-fan-tacho {
  118. marvell,pins = "mpp44";
  119. marvell,function = "gpio";
  120. };
  121. pmx_fan_high_speed: pmx-fan-high-speed {
  122. marvell,pins = "mpp45";
  123. marvell,function = "gpio";
  124. };
  125. pmx_fan_low_speed: pmx-fan-low-speed {
  126. marvell,pins = "mpp46";
  127. marvell,function = "gpio";
  128. };
  129. pmx_button_unmount: pmx-button-unmount {
  130. marvell,pins = "mpp47";
  131. marvell,function = "gpio";
  132. };
  133. pmx_button_reset: pmx-button-reset {
  134. marvell,pins = "mpp48";
  135. marvell,function = "gpio";
  136. };
  137. pmx_temp_alarm: pmx-temp-alarm {
  138. marvell,pins = "mpp49";
  139. marvell,function = "gpio";
  140. };
  141. };
  142. sata@80000 {
  143. status = "okay";
  144. nr-ports = <2>;
  145. };
  146. nand@3000000 {
  147. status = "okay";
  148. chip-delay = <35>;
  149. partition@0 {
  150. label = "u-boot";
  151. reg = <0x0000000 0x100000>;
  152. read-only;
  153. };
  154. partition@100000 {
  155. label = "uImage";
  156. reg = <0x0100000 0x500000>;
  157. };
  158. partition@600000 {
  159. label = "ramdisk";
  160. reg = <0x0600000 0x500000>;
  161. };
  162. partition@b00000 {
  163. label = "image";
  164. reg = <0x0b00000 0x6600000>;
  165. };
  166. partition@7100000 {
  167. label = "mini firmware";
  168. reg = <0x7100000 0xa00000>;
  169. };
  170. partition@7b00000 {
  171. label = "config";
  172. reg = <0x7b00000 0x500000>;
  173. };
  174. };
  175. };
  176. regulators {
  177. compatible = "simple-bus";
  178. #address-cells = <1>;
  179. #size-cells = <0>;
  180. sata0_power: regulator@1 {
  181. compatible = "regulator-fixed";
  182. reg = <1>;
  183. regulator-name = "SATA0 Power";
  184. regulator-min-microvolt = <5000000>;
  185. regulator-max-microvolt = <5000000>;
  186. enable-active-high;
  187. regulator-always-on;
  188. regulator-boot-on;
  189. gpio = <&gpio1 7 0>;
  190. };
  191. sata1_power: regulator@2 {
  192. compatible = "regulator-fixed";
  193. reg = <2>;
  194. regulator-name = "SATA1 Power";
  195. regulator-min-microvolt = <5000000>;
  196. regulator-max-microvolt = <5000000>;
  197. enable-active-high;
  198. regulator-always-on;
  199. regulator-boot-on;
  200. gpio = <&gpio1 8 0>;
  201. };
  202. };
  203. };