kirkwood-iomega_ix2_200.dts 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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. nand@3000000 {
  107. status = "okay";
  108. partition@0 {
  109. label = "u-boot";
  110. reg = <0x0000000 0x100000>;
  111. read-only;
  112. };
  113. partition@a0000 {
  114. label = "env";
  115. reg = <0xa0000 0x20000>;
  116. read-only;
  117. };
  118. partition@100000 {
  119. label = "uImage";
  120. reg = <0x100000 0x300000>;
  121. };
  122. partition@400000 {
  123. label = "uInitrd";
  124. reg = <0x540000 0x1000000>;
  125. };
  126. };
  127. sata@80000 {
  128. status = "okay";
  129. nr-ports = <2>;
  130. };
  131. };
  132. gpio-leds {
  133. compatible = "gpio-leds";
  134. pinctrl-0 = < &pmx_led_backup &pmx_led_power
  135. &pmx_led_rebuild &pmx_led_health >;
  136. pinctrl-names = "default";
  137. power_led {
  138. label = "status:white:power_led";
  139. gpios = <&gpio0 16 0>;
  140. linux,default-trigger = "default-on";
  141. };
  142. rebuild_led {
  143. label = "status:white:rebuild_led";
  144. gpios = <&gpio1 4 0>;
  145. };
  146. health_led {
  147. label = "status:red:health_led";
  148. gpios = <&gpio1 5 0>;
  149. };
  150. backup_led {
  151. label = "status:blue:backup_led";
  152. gpios = <&gpio0 15 0>;
  153. };
  154. };
  155. gpio-keys {
  156. compatible = "gpio-keys";
  157. #address-cells = <1>;
  158. #size-cells = <0>;
  159. pinctrl-0 = <&pmx_button_reset &pmx_button_power
  160. &pmx_button_otb>;
  161. pinctrl-names = "default";
  162. Power {
  163. label = "Power Button";
  164. linux,code = <116>;
  165. gpios = <&gpio0 14 1>;
  166. };
  167. Reset {
  168. label = "Reset Button";
  169. linux,code = <0x198>;
  170. gpios = <&gpio0 12 1>;
  171. };
  172. OTB {
  173. label = "OTB Button";
  174. linux,code = <133>;
  175. gpios = <&gpio1 3 1>;
  176. };
  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. };