at91sam9n12ek.dts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. /*
  2. * at91sam9n12ek.dts - Device Tree file for AT91SAM9N12-EK board
  3. *
  4. * Copyright (C) 2012 Atmel,
  5. * 2012 Hong Xu <hong.xu@atmel.com>
  6. *
  7. * Licensed under GPLv2 or later.
  8. */
  9. /dts-v1/;
  10. #include "at91sam9n12.dtsi"
  11. / {
  12. model = "Atmel AT91SAM9N12-EK";
  13. compatible = "atmel,at91sam9n12ek", "atmel,at91sam9n12", "atmel,at91sam9";
  14. chosen {
  15. bootargs = "console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=jffs2";
  16. };
  17. memory {
  18. reg = <0x20000000 0x8000000>;
  19. };
  20. clocks {
  21. #address-cells = <1>;
  22. #size-cells = <1>;
  23. ranges;
  24. main_clock: clock@0 {
  25. compatible = "atmel,osc", "fixed-clock";
  26. clock-frequency = <16000000>;
  27. };
  28. };
  29. ahb {
  30. apb {
  31. dbgu: serial@fffff200 {
  32. status = "okay";
  33. };
  34. ssc0: ssc@f0010000 {
  35. status = "okay";
  36. };
  37. i2c0: i2c@f8010000 {
  38. status = "okay";
  39. wm8904: codec@1a {
  40. compatible = "wm8904";
  41. reg = <0x1a>;
  42. };
  43. qt1070: keyboard@1b {
  44. compatible = "qt1070";
  45. reg = <0x1b>;
  46. interrupt-parent = <&pioA>;
  47. interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
  48. pinctrl-names = "default";
  49. pinctrl-0 = <&pinctrl_qt1070_irq>;
  50. };
  51. };
  52. i2c1: i2c@f8014000 {
  53. status = "okay";
  54. };
  55. mmc0: mmc@f0008000 {
  56. pinctrl-0 = <
  57. &pinctrl_board_mmc0
  58. &pinctrl_mmc0_slot0_clk_cmd_dat0
  59. &pinctrl_mmc0_slot0_dat1_3>;
  60. status = "okay";
  61. slot@0 {
  62. reg = <0>;
  63. bus-width = <4>;
  64. cd-gpios = <&pioA 7 GPIO_ACTIVE_HIGH>;
  65. };
  66. };
  67. pinctrl@fffff400 {
  68. mmc0 {
  69. pinctrl_board_mmc0: mmc0-board {
  70. atmel,pins =
  71. <AT91_PIOA 7 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PA7 gpio CD pin pull up and deglitch */
  72. };
  73. };
  74. qt1070 {
  75. pinctrl_qt1070_irq: qt1070_irq {
  76. atmel,pins =
  77. <AT91_PIOA 2 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
  78. };
  79. };
  80. sound {
  81. pinctrl_pck0_as_audio_mck: pck0_as_audio_mck {
  82. atmel,pins =
  83. <AT91_PIOB 10 AT91_PERIPH_B AT91_PINCTRL_NONE>;
  84. };
  85. };
  86. };
  87. spi0: spi@f0000000 {
  88. status = "okay";
  89. cs-gpios = <&pioA 14 0>, <0>, <0>, <0>;
  90. m25p80@0 {
  91. compatible = "atmel,at25df321a";
  92. spi-max-frequency = <50000000>;
  93. reg = <0>;
  94. };
  95. };
  96. watchdog@fffffe40 {
  97. status = "okay";
  98. };
  99. };
  100. nand0: nand@40000000 {
  101. nand-bus-width = <8>;
  102. nand-ecc-mode = "hw";
  103. atmel,has-pmecc;
  104. atmel,pmecc-cap = <2>;
  105. atmel,pmecc-sector-size = <512>;
  106. nand-on-flash-bbt;
  107. status = "okay";
  108. };
  109. };
  110. leds {
  111. compatible = "gpio-leds";
  112. d8 {
  113. label = "d8";
  114. gpios = <&pioB 4 GPIO_ACTIVE_LOW>;
  115. linux,default-trigger = "mmc0";
  116. };
  117. d9 {
  118. label = "d6";
  119. gpios = <&pioB 5 GPIO_ACTIVE_LOW>;
  120. linux,default-trigger = "nand-disk";
  121. };
  122. d10 {
  123. label = "d7";
  124. gpios = <&pioB 6 GPIO_ACTIVE_HIGH>;
  125. linux,default-trigger = "heartbeat";
  126. };
  127. };
  128. gpio_keys {
  129. compatible = "gpio-keys";
  130. enter {
  131. label = "Enter";
  132. gpios = <&pioB 3 GPIO_ACTIVE_LOW>;
  133. linux,code = <28>;
  134. gpio-key,wakeup;
  135. };
  136. };
  137. sound {
  138. compatible = "atmel,asoc-wm8904";
  139. pinctrl-names = "default";
  140. pinctrl-0 = <&pinctrl_pck0_as_audio_mck>;
  141. atmel,model = "wm8904 @ AT91SAM9N12";
  142. atmel,audio-routing =
  143. "Headphone Jack", "HPOUTL",
  144. "Headphone Jack", "HPOUTR",
  145. "IN2L", "Line In Jack",
  146. "IN2R", "Line In Jack",
  147. "Mic", "MICBIAS",
  148. "IN1L", "Mic";
  149. atmel,ssc-controller = <&ssc0>;
  150. atmel,audio-codec = <&wm8904>;
  151. };
  152. };