ea3250.dts 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. /*
  2. * Embedded Artists LPC3250 board
  3. *
  4. * Copyright 2012 Roland Stigge <stigge@antcom.de>
  5. *
  6. * The code contained herein is licensed under the GNU General Public
  7. * License. You may obtain a copy of the GNU General Public License
  8. * Version 2 or later at the following locations:
  9. *
  10. * http://www.opensource.org/licenses/gpl-license.html
  11. * http://www.gnu.org/copyleft/gpl.html
  12. */
  13. /dts-v1/;
  14. /include/ "lpc32xx.dtsi"
  15. / {
  16. model = "Embedded Artists LPC3250 board based on NXP LPC3250";
  17. compatible = "ea,ea3250", "nxp,lpc3250";
  18. #address-cells = <1>;
  19. #size-cells = <1>;
  20. memory {
  21. device_type = "memory";
  22. reg = <0 0x4000000>;
  23. };
  24. ahb {
  25. mac: ethernet@31060000 {
  26. phy-mode = "rmii";
  27. use-iram;
  28. };
  29. /* Here, choose exactly one from: ohci, usbd */
  30. ohci@31020000 {
  31. transceiver = <&isp1301>;
  32. status = "okay";
  33. };
  34. /*
  35. usbd@31020000 {
  36. transceiver = <&isp1301>;
  37. status = "okay";
  38. };
  39. */
  40. /* 128MB Flash via SLC NAND controller */
  41. slc: flash@20020000 {
  42. status = "okay";
  43. #address-cells = <1>;
  44. #size-cells = <1>;
  45. nxp,wdr-clks = <14>;
  46. nxp,wwidth = <260000000>;
  47. nxp,whold = <104000000>;
  48. nxp,wsetup = <200000000>;
  49. nxp,rdr-clks = <14>;
  50. nxp,rwidth = <34666666>;
  51. nxp,rhold = <104000000>;
  52. nxp,rsetup = <200000000>;
  53. nand-on-flash-bbt;
  54. gpios = <&gpio 5 19 1>; /* GPO_P3 19, active low */
  55. mtd0@00000000 {
  56. label = "ea3250-boot";
  57. reg = <0x00000000 0x00080000>;
  58. read-only;
  59. };
  60. mtd1@00080000 {
  61. label = "ea3250-uboot";
  62. reg = <0x00080000 0x000c0000>;
  63. read-only;
  64. };
  65. mtd2@00140000 {
  66. label = "ea3250-kernel";
  67. reg = <0x00140000 0x00400000>;
  68. };
  69. mtd3@00540000 {
  70. label = "ea3250-rootfs";
  71. reg = <0x00540000 0x07ac0000>;
  72. };
  73. };
  74. apb {
  75. uart5: serial@40090000 {
  76. status = "okay";
  77. };
  78. uart3: serial@40080000 {
  79. status = "okay";
  80. };
  81. uart6: serial@40098000 {
  82. status = "okay";
  83. };
  84. i2c1: i2c@400A0000 {
  85. clock-frequency = <100000>;
  86. eeprom@50 {
  87. compatible = "at,24c256";
  88. reg = <0x50>;
  89. };
  90. eeprom@57 {
  91. compatible = "at,24c64";
  92. reg = <0x57>;
  93. };
  94. uda1380: uda1380@18 {
  95. compatible = "nxp,uda1380";
  96. reg = <0x18>;
  97. power-gpio = <&gpio 0x59 0>;
  98. reset-gpio = <&gpio 0x51 0>;
  99. dac-clk = "wspll";
  100. };
  101. pca9532: pca9532@60 {
  102. compatible = "nxp,pca9532";
  103. gpio-controller;
  104. #gpio-cells = <2>;
  105. reg = <0x60>;
  106. };
  107. };
  108. i2c2: i2c@400A8000 {
  109. clock-frequency = <100000>;
  110. };
  111. i2cusb: i2c@31020300 {
  112. clock-frequency = <100000>;
  113. isp1301: usb-transceiver@2d {
  114. compatible = "nxp,isp1301";
  115. reg = <0x2d>;
  116. };
  117. };
  118. sd@20098000 {
  119. wp-gpios = <&pca9532 5 0>;
  120. cd-gpios = <&pca9532 4 0>;
  121. cd-inverted;
  122. bus-width = <4>;
  123. status = "okay";
  124. };
  125. };
  126. fab {
  127. uart1: serial@40014000 {
  128. status = "okay";
  129. };
  130. /* 3-axis accelerometer X,Y,Z (or AD-IN instead of Z) */
  131. adc@40048000 {
  132. status = "okay";
  133. };
  134. };
  135. };
  136. gpio_keys {
  137. compatible = "gpio-keys";
  138. #address-cells = <1>;
  139. #size-cells = <0>;
  140. autorepeat;
  141. button@21 {
  142. label = "Interrupt Key";
  143. linux,code = <103>;
  144. gpios = <&gpio 4 1 0>; /* GPI_P3 1 */
  145. };
  146. key1 {
  147. label = "KEY1";
  148. linux,code = <1>;
  149. gpios = <&pca9532 0 0>;
  150. };
  151. key2 {
  152. label = "KEY2";
  153. linux,code = <2>;
  154. gpios = <&pca9532 1 0>;
  155. };
  156. key3 {
  157. label = "KEY3";
  158. linux,code = <3>;
  159. gpios = <&pca9532 2 0>;
  160. };
  161. key4 {
  162. label = "KEY4";
  163. linux,code = <4>;
  164. gpios = <&pca9532 3 0>;
  165. };
  166. joy0 {
  167. label = "Joystick Key 0";
  168. linux,code = <10>;
  169. gpios = <&gpio 2 0 0>; /* P2.0 */
  170. };
  171. joy1 {
  172. label = "Joystick Key 1";
  173. linux,code = <11>;
  174. gpios = <&gpio 2 1 0>; /* P2.1 */
  175. };
  176. joy2 {
  177. label = "Joystick Key 2";
  178. linux,code = <12>;
  179. gpios = <&gpio 2 2 0>; /* P2.2 */
  180. };
  181. joy3 {
  182. label = "Joystick Key 3";
  183. linux,code = <13>;
  184. gpios = <&gpio 2 3 0>; /* P2.3 */
  185. };
  186. joy4 {
  187. label = "Joystick Key 4";
  188. linux,code = <14>;
  189. gpios = <&gpio 2 4 0>; /* P2.4 */
  190. };
  191. };
  192. leds {
  193. compatible = "gpio-leds";
  194. /* LEDs on OEM Board */
  195. led1 {
  196. gpios = <&gpio 5 14 1>; /* GPO_P3 14, GPIO 93, active low */
  197. linux,default-trigger = "timer";
  198. default-state = "off";
  199. };
  200. led2 {
  201. gpios = <&gpio 2 10 1>; /* P2.10, active low */
  202. default-state = "off";
  203. };
  204. led3 {
  205. gpios = <&gpio 2 11 1>; /* P2.11, active low */
  206. default-state = "off";
  207. };
  208. led4 {
  209. gpios = <&gpio 2 12 1>; /* P2.12, active low */
  210. default-state = "off";
  211. };
  212. /* LEDs on Base Board */
  213. lede1 {
  214. gpios = <&pca9532 8 0>;
  215. default-state = "off";
  216. };
  217. lede2 {
  218. gpios = <&pca9532 9 0>;
  219. default-state = "off";
  220. };
  221. lede3 {
  222. gpios = <&pca9532 10 0>;
  223. default-state = "off";
  224. };
  225. lede4 {
  226. gpios = <&pca9532 11 0>;
  227. default-state = "off";
  228. };
  229. lede5 {
  230. gpios = <&pca9532 12 0>;
  231. default-state = "off";
  232. };
  233. lede6 {
  234. gpios = <&pca9532 13 0>;
  235. default-state = "off";
  236. };
  237. lede7 {
  238. gpios = <&pca9532 14 0>;
  239. default-state = "off";
  240. };
  241. lede8 {
  242. gpios = <&pca9532 15 0>;
  243. default-state = "off";
  244. };
  245. };
  246. };