kirkwood-b3.dts 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Device Tree file for Excito Bubba B3
  4. *
  5. * Copyright (C) 2013, Andrew Lunn <[email protected]>
  6. *
  7. *
  8. * Note: This requires a new'ish version of u-boot, which disables the
  9. * L2 cache. If your B3 silently fails to boot, u-boot is probably too
  10. * old. Either upgrade, or consider the following email:
  11. *
  12. * https://lists.debian.org/debian-arm/2012/08/msg00128.html
  13. */
  14. /dts-v1/;
  15. #include "kirkwood.dtsi"
  16. #include "kirkwood-6281.dtsi"
  17. / {
  18. model = "Excito B3";
  19. compatible = "excito,b3", "marvell,kirkwood-88f6281", "marvell,kirkwood";
  20. memory { /* 512 MB */
  21. device_type = "memory";
  22. reg = <0x00000000 0x20000000>;
  23. };
  24. chosen {
  25. bootargs = "console=ttyS0,115200n8 earlyprintk";
  26. stdout-path = &uart0;
  27. };
  28. ocp@f1000000 {
  29. pinctrl: pin-controller@10000 {
  30. pmx_button_power: pmx-button-power {
  31. marvell,pins = "mpp39";
  32. marvell,function = "gpio";
  33. };
  34. pmx_led_green: pmx-led-green {
  35. marvell,pins = "mpp38";
  36. marvell,function = "gpio";
  37. };
  38. pmx_led_red: pmx-led-red {
  39. marvell,pins = "mpp41";
  40. marvell,function = "gpio";
  41. };
  42. pmx_led_blue: pmx-led-blue {
  43. marvell,pins = "mpp42";
  44. marvell,function = "gpio";
  45. };
  46. pmx_beeper: pmx-beeper {
  47. marvell,pins = "mpp40";
  48. marvell,function = "gpio";
  49. };
  50. };
  51. spi@10600 {
  52. status = "okay";
  53. m25p16@0 {
  54. #address-cells = <1>;
  55. #size-cells = <1>;
  56. compatible = "st,m25p16", "jedec,spi-nor";
  57. reg = <0>;
  58. spi-max-frequency = <40000000>;
  59. mode = <0>;
  60. partition@0 {
  61. reg = <0x0 0xc0000>;
  62. label = "u-boot";
  63. };
  64. partition@c0000 {
  65. reg = <0xc0000 0x20000>;
  66. label = "u-boot env";
  67. };
  68. partition@e0000 {
  69. reg = <0xe0000 0x120000>;
  70. label = "data";
  71. };
  72. };
  73. };
  74. i2c@11000 {
  75. status = "okay";
  76. /*
  77. * There is something on the bus at address 0x64.
  78. * Not yet identified what it is, maybe the eeprom
  79. * for the Atheros WiFi chip?
  80. */
  81. };
  82. serial@12000 {
  83. /* Internal on test pins, 3.3v TTL
  84. * UART0_RX = Testpoint 65
  85. * UART0_TX = Testpoint 66
  86. * See the Excito Wiki for more details.
  87. */
  88. status = "okay";
  89. };
  90. sata@80000 {
  91. /* One internal, the second as eSATA */
  92. status = "okay";
  93. nr-ports = <2>;
  94. };
  95. };
  96. gpio-leds {
  97. /*
  98. * There is one LED "port" on the front and the colours
  99. * mix together giving some interesting combinations.
  100. */
  101. compatible = "gpio-leds";
  102. pinctrl-0 = < &pmx_led_green &pmx_led_red
  103. &pmx_led_blue >;
  104. pinctrl-names = "default";
  105. programming_led {
  106. label = "bubba3:green:programming";
  107. gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
  108. default-state = "off";
  109. };
  110. error_led {
  111. label = "bubba3:red:error";
  112. gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
  113. };
  114. active_led {
  115. label = "bubba3:blue:active";
  116. gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
  117. };
  118. };
  119. gpio-keys {
  120. compatible = "gpio-keys";
  121. pinctrl-0 = <&pmx_button_power>;
  122. pinctrl-names = "default";
  123. power-button {
  124. /* On the back */
  125. label = "Power Button";
  126. linux,code = <KEY_POWER>;
  127. gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
  128. };
  129. };
  130. beeper: beeper {
  131. /* 4KHz Piezoelectric buzzer */
  132. compatible = "gpio-beeper";
  133. pinctrl-0 = <&pmx_beeper>;
  134. pinctrl-names = "default";
  135. gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
  136. };
  137. };
  138. &mdio {
  139. status = "okay";
  140. ethphy0: ethernet-phy@8 {
  141. device_type = "ethernet-phy";
  142. reg = <8>;
  143. };
  144. ethphy1: ethernet-phy@24 {
  145. device_type = "ethernet-phy";
  146. reg = <24>;
  147. };
  148. };
  149. &eth0 {
  150. status = "okay";
  151. ethernet0-port@0 {
  152. phy-handle = <&ethphy0>;
  153. };
  154. };
  155. &eth1 {
  156. status = "okay";
  157. ethernet1-port@0 {
  158. phy-handle = <&ethphy1>;
  159. };
  160. };
  161. /* Wifi model has Atheros chipset on pcie port */
  162. &pciec {
  163. status = "okay";
  164. };
  165. &pcie0 {
  166. status = "okay";
  167. };