kirkwood-topkick.dts 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. /dts-v1/;
  2. #include "kirkwood.dtsi"
  3. #include "kirkwood-6282.dtsi"
  4. / {
  5. model = "Univeral Scientific Industrial Co. Topkick-1281P2";
  6. compatible = "usi,topkick-1281P2", "usi,topkick", "marvell,kirkwood-88f6282", "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. /*
  17. * Switch positions
  18. *
  19. * /-SW_LEFT(2)
  20. * |
  21. * | /-SW_IDLE
  22. * | |
  23. * | | /-SW_RIGHT
  24. * | | |
  25. * PS [L] [I] [R] LEDS
  26. */
  27. pinctrl-0 = <&pmx_sw_left &pmx_sw_right
  28. &pmx_sw_idle &pmx_sw_left2>;
  29. pinctrl-names = "default";
  30. pmx_led_disk_yellow: pmx-led-disk-yellow {
  31. marvell,pins = "mpp21";
  32. marvell,function = "gpio";
  33. };
  34. pmx_sata0_pwr_enable: pmx-sata0-pwr-enable {
  35. marvell,pins = "mpp36";
  36. marvell,function = "gpio";
  37. };
  38. pmx_led_sys_red: pmx-led-sys-red {
  39. marvell,pins = "mpp37";
  40. marvell,function = "gpio";
  41. };
  42. pmx_led_sys_blue: pmx-led-sys-blue {
  43. marvell,pins = "mpp38";
  44. marvell,function = "gpio";
  45. };
  46. pmx_led_wifi_green: pmx-led-wifi-green {
  47. marvell,pins = "mpp39";
  48. marvell,function = "gpio";
  49. };
  50. pmx_sw_left: pmx-sw-left {
  51. marvell,pins = "mpp43";
  52. marvell,function = "gpio";
  53. };
  54. pmx_sw_right: pmx-sw-right {
  55. marvell,pins = "mpp44";
  56. marvell,function = "gpio";
  57. };
  58. pmx_sw_idle: pmx-sw-idle {
  59. marvell,pins = "mpp45";
  60. marvell,function = "gpio";
  61. };
  62. pmx_sw_left2: pmx-sw-left2 {
  63. marvell,pins = "mpp46";
  64. marvell,function = "gpio";
  65. };
  66. pmx_led_wifi_yellow: pmx-led-wifi-yellow {
  67. marvell,pins = "mpp48";
  68. marvell,function = "gpio";
  69. };
  70. };
  71. serial@12000 {
  72. status = "ok";
  73. pinctrl-0 = <&pmx_uart0>;
  74. pinctrl-names = "default";
  75. };
  76. sata@80000 {
  77. status = "okay";
  78. nr-ports = <1>;
  79. };
  80. i2c@11000 {
  81. status = "ok";
  82. pinctrl-0 = <&pmx_twsi0>;
  83. pinctrl-names = "default";
  84. };
  85. mvsdio@90000 {
  86. pinctrl-0 = <&pmx_sdio>;
  87. pinctrl-names = "default";
  88. status = "okay";
  89. /* No CD or WP GPIOs */
  90. broken-cd;
  91. };
  92. };
  93. gpio-leds {
  94. /*
  95. * GPIO LED layout
  96. *
  97. * /-SYS_LED(2)
  98. * |
  99. * | /-DISK_LED
  100. * | |
  101. * | | /-WLAN_LED(2)
  102. * | | |
  103. * [SW] [*] [*] [*]
  104. */
  105. compatible = "gpio-leds";
  106. pinctrl-0 = <&pmx_led_disk_yellow &pmx_led_sys_red
  107. &pmx_led_sys_blue &pmx_led_wifi_green
  108. &pmx_led_wifi_yellow>;
  109. pinctrl-names = "default";
  110. disk {
  111. label = "topkick:yellow:disk";
  112. gpios = <&gpio0 21 1>;
  113. linux,default-trigger = "ide-disk";
  114. };
  115. system2 {
  116. label = "topkick:red:system";
  117. gpios = <&gpio1 5 1>;
  118. };
  119. system {
  120. label = "topkick:blue:system";
  121. gpios = <&gpio1 6 1>;
  122. default-state = "on";
  123. };
  124. wifi {
  125. label = "topkick:green:wifi";
  126. gpios = <&gpio1 7 1>;
  127. };
  128. wifi2 {
  129. label = "topkick:yellow:wifi";
  130. gpios = <&gpio1 16 1>;
  131. };
  132. };
  133. regulators {
  134. compatible = "simple-bus";
  135. #address-cells = <1>;
  136. #size-cells = <0>;
  137. pinctrl-0 = <&pmx_sata0_pwr_enable>;
  138. pinctrl-names = "default";
  139. sata0_power: regulator@1 {
  140. compatible = "regulator-fixed";
  141. reg = <1>;
  142. regulator-name = "SATA0 Power";
  143. regulator-min-microvolt = <5000000>;
  144. regulator-max-microvolt = <5000000>;
  145. enable-active-high;
  146. regulator-always-on;
  147. regulator-boot-on;
  148. gpio = <&gpio1 4 0>;
  149. };
  150. };
  151. };
  152. &nand {
  153. status = "okay";
  154. pinctrl-0 = <&pmx_nand>;
  155. pinctrl-names = "default";
  156. partition@0 {
  157. label = "u-boot";
  158. reg = <0x0000000 0x180000>;
  159. };
  160. partition@180000 {
  161. label = "u-boot env";
  162. reg = <0x0180000 0x20000>;
  163. };
  164. partition@200000 {
  165. label = "uImage";
  166. reg = <0x0200000 0x600000>;
  167. };
  168. partition@800000 {
  169. label = "uInitrd";
  170. reg = <0x0800000 0x1000000>;
  171. };
  172. partition@1800000 {
  173. label = "rootfs";
  174. reg = <0x1800000 0xe800000>;
  175. };
  176. };
  177. &mdio {
  178. status = "okay";
  179. ethphy0: ethernet-phy@0 {
  180. device_type = "ethernet-phy";
  181. reg = <0>;
  182. };
  183. };
  184. &eth0 {
  185. status = "okay";
  186. ethernet0-port@0 {
  187. phy-handle = <&ethphy0>;
  188. };
  189. };