kirkwood-dnskw.dtsi 4.9 KB

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