kirkwood-topkick.dts 3.8 KB

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