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