lpc3250-ea3250.dts 4.3 KB

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