at91sam9n12ek.dts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. };
  81. spi0: spi@f0000000 {
  82. status = "okay";
  83. cs-gpios = <&pioA 14 0>, <0>, <0>, <0>;
  84. m25p80@0 {
  85. compatible = "atmel,at25df321a";
  86. spi-max-frequency = <50000000>;
  87. reg = <0>;
  88. };
  89. };
  90. watchdog@fffffe40 {
  91. status = "okay";
  92. };
  93. };
  94. nand0: nand@40000000 {
  95. nand-bus-width = <8>;
  96. nand-ecc-mode = "hw";
  97. atmel,has-pmecc;
  98. atmel,pmecc-cap = <2>;
  99. atmel,pmecc-sector-size = <512>;
  100. nand-on-flash-bbt;
  101. status = "okay";
  102. };
  103. };
  104. leds {
  105. compatible = "gpio-leds";
  106. d8 {
  107. label = "d8";
  108. gpios = <&pioB 4 GPIO_ACTIVE_LOW>;
  109. linux,default-trigger = "mmc0";
  110. };
  111. d9 {
  112. label = "d6";
  113. gpios = <&pioB 5 GPIO_ACTIVE_LOW>;
  114. linux,default-trigger = "nand-disk";
  115. };
  116. d10 {
  117. label = "d7";
  118. gpios = <&pioB 6 GPIO_ACTIVE_HIGH>;
  119. linux,default-trigger = "heartbeat";
  120. };
  121. };
  122. gpio_keys {
  123. compatible = "gpio-keys";
  124. enter {
  125. label = "Enter";
  126. gpios = <&pioB 3 GPIO_ACTIVE_LOW>;
  127. linux,code = <28>;
  128. gpio-key,wakeup;
  129. };
  130. };
  131. };