kirkwood-topkick.dts 4.0 KB

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