kirkwood-iomega_ix2_200.dts 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. /dts-v1/;
  2. #include "kirkwood.dtsi"
  3. #include "kirkwood-6281.dtsi"
  4. / {
  5. model = "Iomega StorCenter ix2-200";
  6. compatible = "iom,ix2-200", "marvell,kirkwood-88f6281", "marvell,kirkwood";
  7. memory {
  8. device_type = "memory";
  9. reg = <0x00000000 0x10000000>;
  10. };
  11. chosen {
  12. bootargs = "console=ttyS0,115200n8 earlyprintk";
  13. stdout-path = &uart0;
  14. };
  15. ocp@f1000000 {
  16. pinctrl: pin-controller@10000 {
  17. pinctrl-0 = < &pmx_led_sata_brt_ctrl_1
  18. &pmx_led_sata_brt_ctrl_2
  19. &pmx_led_backup_brt_ctrl_1
  20. &pmx_led_backup_brt_ctrl_2
  21. &pmx_led_power_brt_ctrl_1
  22. &pmx_led_power_brt_ctrl_2
  23. &pmx_led_health_brt_ctrl_1
  24. &pmx_led_health_brt_ctrl_2
  25. &pmx_led_rebuild_brt_ctrl_1
  26. &pmx_led_rebuild_brt_ctrl_2 >;
  27. pinctrl-names = "default";
  28. pmx_button_reset: pmx-button-reset {
  29. marvell,pins = "mpp12";
  30. marvell,function = "gpio";
  31. };
  32. pmx_button_power: pmx-button-power {
  33. marvell,pins = "mpp14";
  34. marvell,function = "gpio";
  35. };
  36. pmx_led_backup: pmx-led-backup {
  37. marvell,pins = "mpp15";
  38. marvell,function = "gpio";
  39. };
  40. pmx_led_power: pmx-led-power {
  41. marvell,pins = "mpp16";
  42. marvell,function = "gpio";
  43. };
  44. pmx_button_otb: pmx-button-otb {
  45. marvell,pins = "mpp35";
  46. marvell,function = "gpio";
  47. };
  48. pmx_led_rebuild: pmx-led-rebuild {
  49. marvell,pins = "mpp36";
  50. marvell,function = "gpio";
  51. };
  52. pmx_led_health: pmx-led_health {
  53. marvell,pins = "mpp37";
  54. marvell,function = "gpio";
  55. };
  56. pmx_led_sata_brt_ctrl_1: pmx-led-sata-brt-ctrl-1 {
  57. marvell,pins = "mpp38";
  58. marvell,function = "gpio";
  59. };
  60. pmx_led_sata_brt_ctrl_2: pmx-led-sata-brt-ctrl-2 {
  61. marvell,pins = "mpp39";
  62. marvell,function = "gpio";
  63. };
  64. pmx_led_backup_brt_ctrl_1: pmx-led-backup-brt-ctrl-1 {
  65. marvell,pins = "mpp40";
  66. marvell,function = "gpio";
  67. };
  68. pmx_led_backup_brt_ctrl_2: pmx-led-backup-brt-ctrl-2 {
  69. marvell,pins = "mpp41";
  70. marvell,function = "gpio";
  71. };
  72. pmx_led_power_brt_ctrl_1: pmx-led-power-brt-ctrl-1 {
  73. marvell,pins = "mpp42";
  74. marvell,function = "gpio";
  75. };
  76. pmx_led_power_brt_ctrl_2: pmx-led-power-brt-ctrl-2 {
  77. marvell,pins = "mpp43";
  78. marvell,function = "gpio";
  79. };
  80. pmx_led_health_brt_ctrl_1: pmx-led-health-brt-ctrl-1 {
  81. marvell,pins = "mpp44";
  82. marvell,function = "gpio";
  83. };
  84. pmx_led_health_brt_ctrl_2: pmx-led-health-brt-ctrl-2 {
  85. marvell,pins = "mpp45";
  86. marvell,function = "gpio";
  87. };
  88. pmx_led_rebuild_brt_ctrl_1: pmx-led-rebuild-brt-ctrl-1 {
  89. marvell,pins = "mpp46";
  90. marvell,function = "gpio";
  91. };
  92. pmx_led_rebuild_brt_ctrl_2: pmx-led-rebuild-brt-ctrl-2 {
  93. marvell,pins = "mpp47";
  94. marvell,function = "gpio";
  95. };
  96. };
  97. i2c@11000 {
  98. status = "okay";
  99. lm63: lm63@4c {
  100. compatible = "national,lm63";
  101. reg = <0x4c>;
  102. };
  103. };
  104. serial@12000 {
  105. status = "ok";
  106. };
  107. sata@80000 {
  108. status = "okay";
  109. nr-ports = <2>;
  110. };
  111. };
  112. gpio-leds {
  113. compatible = "gpio-leds";
  114. pinctrl-0 = < &pmx_led_backup &pmx_led_power
  115. &pmx_led_rebuild &pmx_led_health >;
  116. pinctrl-names = "default";
  117. power_led {
  118. label = "status:white:power_led";
  119. gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
  120. default-state = "keep";
  121. };
  122. rebuild_led {
  123. label = "status:white:rebuild_led";
  124. gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
  125. };
  126. health_led {
  127. label = "status:red:health_led";
  128. gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
  129. };
  130. backup_led {
  131. label = "status:blue:backup_led";
  132. gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
  133. };
  134. };
  135. gpio-keys {
  136. compatible = "gpio-keys";
  137. #address-cells = <1>;
  138. #size-cells = <0>;
  139. pinctrl-0 = <&pmx_button_reset &pmx_button_power
  140. &pmx_button_otb>;
  141. pinctrl-names = "default";
  142. Power {
  143. label = "Power Button";
  144. linux,code = <KEY_POWER>;
  145. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  146. };
  147. Reset {
  148. label = "Reset Button";
  149. linux,code = <KEY_RESTART>;
  150. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  151. };
  152. OTB {
  153. label = "OTB Button";
  154. linux,code = <KEY_COPY>;
  155. gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
  156. };
  157. };
  158. };
  159. &nand {
  160. status = "okay";
  161. partition@0 {
  162. label = "u-boot";
  163. reg = <0x0000000 0x100000>;
  164. read-only;
  165. };
  166. partition@a0000 {
  167. label = "env";
  168. reg = <0xa0000 0x20000>;
  169. read-only;
  170. };
  171. partition@100000 {
  172. label = "uImage";
  173. reg = <0x100000 0x300000>;
  174. };
  175. partition@400000 {
  176. label = "uInitrd";
  177. reg = <0x540000 0x1000000>;
  178. };
  179. };
  180. &mdio {
  181. status = "okay";
  182. ethphy1: ethernet-phy@11 {
  183. reg = <11>;
  184. };
  185. };
  186. &eth0 {
  187. status = "okay";
  188. ethernet0-port@0 {
  189. speed = <1000>;
  190. duplex = <1>;
  191. };
  192. };
  193. &eth1 {
  194. status = "okay";
  195. ethernet1-port@0 {
  196. phy-handle = <&ethphy1>;
  197. };
  198. };