at91sam9m10g45ek.dts 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. /*
  2. * at91sam9m10g45ek.dts - Device Tree file for AT91SAM9M10G45-EK board
  3. *
  4. * Copyright (C) 2011 Atmel,
  5. * 2011 Nicolas Ferre <nicolas.ferre@atmel.com>
  6. *
  7. * Licensed under GPLv2 or later.
  8. */
  9. /dts-v1/;
  10. #include "at91sam9g45.dtsi"
  11. #include <dt-bindings/pwm/pwm.h>
  12. / {
  13. model = "Atmel AT91SAM9M10G45-EK";
  14. compatible = "atmel,at91sam9m10g45ek", "atmel,at91sam9g45", "atmel,at91sam9";
  15. chosen {
  16. bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=jffs2";
  17. };
  18. memory {
  19. reg = <0x70000000 0x4000000>;
  20. };
  21. clocks {
  22. #address-cells = <1>;
  23. #size-cells = <1>;
  24. ranges;
  25. main_clock: clock@0 {
  26. compatible = "atmel,osc", "fixed-clock";
  27. clock-frequency = <12000000>;
  28. };
  29. slow_xtal {
  30. clock-frequency = <32768>;
  31. };
  32. main_xtal {
  33. clock-frequency = <12000000>;
  34. };
  35. };
  36. ahb {
  37. apb {
  38. dbgu: serial@ffffee00 {
  39. status = "okay";
  40. };
  41. usart1: serial@fff90000 {
  42. pinctrl-0 =
  43. <&pinctrl_usart1
  44. &pinctrl_usart1_rts
  45. &pinctrl_usart1_cts>;
  46. status = "okay";
  47. };
  48. macb0: ethernet@fffbc000 {
  49. phy-mode = "rmii";
  50. status = "okay";
  51. };
  52. i2c0: i2c@fff84000 {
  53. status = "okay";
  54. };
  55. i2c1: i2c@fff88000 {
  56. status = "okay";
  57. };
  58. watchdog@fffffd40 {
  59. status = "okay";
  60. };
  61. mmc0: mmc@fff80000 {
  62. pinctrl-0 = <
  63. &pinctrl_board_mmc0
  64. &pinctrl_mmc0_slot0_clk_cmd_dat0
  65. &pinctrl_mmc0_slot0_dat1_3>;
  66. status = "okay";
  67. slot@0 {
  68. reg = <0>;
  69. bus-width = <4>;
  70. cd-gpios = <&pioD 10 GPIO_ACTIVE_HIGH>;
  71. };
  72. };
  73. mmc1: mmc@fffd0000 {
  74. pinctrl-0 = <
  75. &pinctrl_board_mmc1
  76. &pinctrl_mmc1_slot0_clk_cmd_dat0
  77. &pinctrl_mmc1_slot0_dat1_3>;
  78. status = "okay";
  79. slot@0 {
  80. reg = <0>;
  81. bus-width = <4>;
  82. cd-gpios = <&pioD 11 GPIO_ACTIVE_HIGH>;
  83. wp-gpios = <&pioD 29 GPIO_ACTIVE_HIGH>;
  84. };
  85. };
  86. pinctrl@fffff200 {
  87. mmc0 {
  88. pinctrl_board_mmc0: mmc0-board {
  89. atmel,pins =
  90. <AT91_PIOD 10 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD10 gpio CD pin pull up and deglitch */
  91. };
  92. };
  93. mmc1 {
  94. pinctrl_board_mmc1: mmc1-board {
  95. atmel,pins =
  96. <AT91_PIOD 11 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH /* PD11 gpio CD pin pull up and deglitch */
  97. AT91_PIOD 29 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PD29 gpio WP pin pull up */
  98. };
  99. };
  100. pwm0 {
  101. pinctrl_pwm_leds: pwm-led {
  102. atmel,pins =
  103. <AT91_PIOD 0 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PD0 periph B */
  104. AT91_PIOD 31 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>; /* PD31 periph B */
  105. };
  106. };
  107. };
  108. spi0: spi@fffa4000{
  109. status = "okay";
  110. cs-gpios = <&pioB 3 0>, <0>, <0>, <0>;
  111. mtd_dataflash@0 {
  112. compatible = "atmel,at45", "atmel,dataflash";
  113. spi-max-frequency = <13000000>;
  114. reg = <0>;
  115. };
  116. };
  117. usb2: gadget@fff78000 {
  118. atmel,vbus-gpio = <&pioB 19 GPIO_ACTIVE_HIGH>;
  119. status = "okay";
  120. };
  121. adc0: adc@fffb0000 {
  122. pinctrl-names = "default";
  123. pinctrl-0 = <
  124. &pinctrl_adc0_ad0
  125. &pinctrl_adc0_ad1
  126. &pinctrl_adc0_ad2
  127. &pinctrl_adc0_ad3
  128. &pinctrl_adc0_ad4
  129. &pinctrl_adc0_ad5
  130. &pinctrl_adc0_ad6
  131. &pinctrl_adc0_ad7>;
  132. atmel,adc-ts-wires = <4>;
  133. status = "okay";
  134. };
  135. pwm0: pwm@fffb8000 {
  136. status = "okay";
  137. pinctrl-names = "default";
  138. pinctrl-0 = <&pinctrl_pwm_leds>;
  139. };
  140. rtc@fffffdb0 {
  141. status = "okay";
  142. };
  143. };
  144. fb0: fb@0x00500000 {
  145. display = <&display0>;
  146. status = "okay";
  147. display0: display {
  148. bits-per-pixel = <32>;
  149. atmel,lcdcon-backlight;
  150. atmel,dmacon = <0x1>;
  151. atmel,lcdcon2 = <0x80008002>;
  152. atmel,guard-time = <9>;
  153. atmel,lcd-wiring-mode = "RGB";
  154. display-timings {
  155. native-mode = <&timing0>;
  156. timing0: timing0 {
  157. clock-frequency = <9000000>;
  158. hactive = <480>;
  159. vactive = <272>;
  160. hback-porch = <1>;
  161. hfront-porch = <1>;
  162. vback-porch = <40>;
  163. vfront-porch = <1>;
  164. hsync-len = <45>;
  165. vsync-len = <1>;
  166. };
  167. };
  168. };
  169. };
  170. nand0: nand@40000000 {
  171. nand-bus-width = <8>;
  172. nand-ecc-mode = "soft";
  173. nand-on-flash-bbt;
  174. status = "okay";
  175. boot@0 {
  176. label = "bootstrap/uboot/kernel";
  177. reg = <0x0 0x400000>;
  178. };
  179. rootfs@400000 {
  180. label = "rootfs";
  181. reg = <0x400000 0x3C00000>;
  182. };
  183. data@4000000 {
  184. label = "data";
  185. reg = <0x4000000 0xC000000>;
  186. };
  187. };
  188. usb0: ohci@00700000 {
  189. status = "okay";
  190. num-ports = <2>;
  191. atmel,vbus-gpio = <&pioD 1 GPIO_ACTIVE_LOW
  192. &pioD 3 GPIO_ACTIVE_LOW>;
  193. };
  194. usb1: ehci@00800000 {
  195. status = "okay";
  196. };
  197. };
  198. leds {
  199. compatible = "gpio-leds";
  200. d8 {
  201. label = "d8";
  202. gpios = <&pioD 30 GPIO_ACTIVE_HIGH>;
  203. linux,default-trigger = "heartbeat";
  204. };
  205. };
  206. pwmleds {
  207. compatible = "pwm-leds";
  208. d6 {
  209. label = "d6";
  210. pwms = <&pwm0 3 5000 PWM_POLARITY_INVERTED>;
  211. max-brightness = <255>;
  212. linux,default-trigger = "nand-disk";
  213. };
  214. d7 {
  215. label = "d7";
  216. pwms = <&pwm0 1 5000 PWM_POLARITY_INVERTED>;
  217. max-brightness = <255>;
  218. linux,default-trigger = "mmc0";
  219. };
  220. };
  221. gpio_keys {
  222. compatible = "gpio-keys";
  223. left_click {
  224. label = "left_click";
  225. gpios = <&pioB 6 GPIO_ACTIVE_LOW>;
  226. linux,code = <272>;
  227. gpio-key,wakeup;
  228. };
  229. right_click {
  230. label = "right_click";
  231. gpios = <&pioB 7 GPIO_ACTIVE_LOW>;
  232. linux,code = <273>;
  233. gpio-key,wakeup;
  234. };
  235. left {
  236. label = "Joystick Left";
  237. gpios = <&pioB 14 GPIO_ACTIVE_LOW>;
  238. linux,code = <105>;
  239. };
  240. right {
  241. label = "Joystick Right";
  242. gpios = <&pioB 15 GPIO_ACTIVE_LOW>;
  243. linux,code = <106>;
  244. };
  245. up {
  246. label = "Joystick Up";
  247. gpios = <&pioB 16 GPIO_ACTIVE_LOW>;
  248. linux,code = <103>;
  249. };
  250. down {
  251. label = "Joystick Down";
  252. gpios = <&pioB 17 GPIO_ACTIVE_LOW>;
  253. linux,code = <108>;
  254. };
  255. enter {
  256. label = "Joystick Press";
  257. gpios = <&pioB 18 GPIO_ACTIVE_LOW>;
  258. linux,code = <28>;
  259. };
  260. };
  261. };