kirkwood-topkick.dts 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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. status = "ok";
  95. };
  96. nand@3000000 {
  97. status = "okay";
  98. partition@0 {
  99. label = "u-boot";
  100. reg = <0x0000000 0x180000>;
  101. };
  102. partition@180000 {
  103. label = "u-boot env";
  104. reg = <0x0180000 0x20000>;
  105. };
  106. partition@200000 {
  107. label = "uImage";
  108. reg = <0x0200000 0x600000>;
  109. };
  110. partition@800000 {
  111. label = "uInitrd";
  112. reg = <0x0800000 0x1000000>;
  113. };
  114. partition@1800000 {
  115. label = "rootfs";
  116. reg = <0x1800000 0xe800000>;
  117. };
  118. };
  119. sata@80000 {
  120. status = "okay";
  121. nr-ports = <1>;
  122. };
  123. i2c@11000 {
  124. status = "ok";
  125. };
  126. mvsdio@90000 {
  127. pinctrl-0 = <&pmx_sdio>;
  128. pinctrl-names = "default";
  129. status = "okay";
  130. /* No CD or WP GPIOs */
  131. };
  132. };
  133. gpio-leds {
  134. compatible = "gpio-leds";
  135. disk {
  136. label = "topkick:yellow:disk";
  137. gpios = <&gpio0 21 1>;
  138. linux,default-trigger = "ide-disk";
  139. };
  140. system2 {
  141. label = "topkick:red:system";
  142. gpios = <&gpio1 5 1>;
  143. };
  144. system {
  145. label = "topkick:blue:system";
  146. gpios = <&gpio1 6 1>;
  147. default-state = "on";
  148. };
  149. wifi {
  150. label = "topkick:green:wifi";
  151. gpios = <&gpio1 7 1>;
  152. };
  153. wifi2 {
  154. label = "topkick:yellow:wifi";
  155. gpios = <&gpio1 16 1>;
  156. };
  157. };
  158. regulators {
  159. compatible = "simple-bus";
  160. #address-cells = <1>;
  161. #size-cells = <0>;
  162. sata0_power: regulator@1 {
  163. compatible = "regulator-fixed";
  164. reg = <1>;
  165. regulator-name = "SATA0 Power";
  166. regulator-min-microvolt = <5000000>;
  167. regulator-max-microvolt = <5000000>;
  168. enable-active-high;
  169. regulator-always-on;
  170. regulator-boot-on;
  171. gpio = <&gpio1 4 0>;
  172. };
  173. };
  174. };