kirkwood-topkick.dts 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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. nand@3000000 {
  77. status = "okay";
  78. pinctrl-0 = <&pmx_nand>;
  79. pinctrl-names = "default";
  80. partition@0 {
  81. label = "u-boot";
  82. reg = <0x0000000 0x180000>;
  83. };
  84. partition@180000 {
  85. label = "u-boot env";
  86. reg = <0x0180000 0x20000>;
  87. };
  88. partition@200000 {
  89. label = "uImage";
  90. reg = <0x0200000 0x600000>;
  91. };
  92. partition@800000 {
  93. label = "uInitrd";
  94. reg = <0x0800000 0x1000000>;
  95. };
  96. partition@1800000 {
  97. label = "rootfs";
  98. reg = <0x1800000 0xe800000>;
  99. };
  100. };
  101. sata@80000 {
  102. status = "okay";
  103. nr-ports = <1>;
  104. };
  105. i2c@11000 {
  106. status = "ok";
  107. pinctrl-0 = <&pmx_twsi0>;
  108. pinctrl-names = "default";
  109. };
  110. mvsdio@90000 {
  111. pinctrl-0 = <&pmx_sdio>;
  112. pinctrl-names = "default";
  113. status = "okay";
  114. /* No CD or WP GPIOs */
  115. broken-cd;
  116. };
  117. };
  118. gpio-leds {
  119. /*
  120. * GPIO LED layout
  121. *
  122. * /-SYS_LED(2)
  123. * |
  124. * | /-DISK_LED
  125. * | |
  126. * | | /-WLAN_LED(2)
  127. * | | |
  128. * [SW] [*] [*] [*]
  129. */
  130. compatible = "gpio-leds";
  131. pinctrl-0 = <&pmx_led_disk_yellow &pmx_led_sys_red
  132. &pmx_led_sys_blue &pmx_led_wifi_green
  133. &pmx_led_wifi_yellow>;
  134. pinctrl-names = "default";
  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. pinctrl-0 = <&pmx_sata0_pwr_enable>;
  163. pinctrl-names = "default";
  164. sata0_power: regulator@1 {
  165. compatible = "regulator-fixed";
  166. reg = <1>;
  167. regulator-name = "SATA0 Power";
  168. regulator-min-microvolt = <5000000>;
  169. regulator-max-microvolt = <5000000>;
  170. enable-active-high;
  171. regulator-always-on;
  172. regulator-boot-on;
  173. gpio = <&gpio1 4 0>;
  174. };
  175. };
  176. };