kirkwood-topkick.dts 3.9 KB

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