at91sam9n12ek.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. i2c0: i2c@f8010000 {
  35. status = "okay";
  36. qt1070: keyboard@1b {
  37. compatible = "qt1070";
  38. reg = <0x1b>;
  39. interrupt-parent = <&pioA>;
  40. interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
  41. pinctrl-names = "default";
  42. pinctrl-0 = <&pinctrl_qt1070_irq>;
  43. };
  44. };
  45. i2c1: i2c@f8014000 {
  46. status = "okay";
  47. };
  48. mmc0: mmc@f0008000 {
  49. pinctrl-0 = <
  50. &pinctrl_board_mmc0
  51. &pinctrl_mmc0_slot0_clk_cmd_dat0
  52. &pinctrl_mmc0_slot0_dat1_3>;
  53. status = "okay";
  54. slot@0 {
  55. reg = <0>;
  56. bus-width = <4>;
  57. cd-gpios = <&pioA 7 GPIO_ACTIVE_HIGH>;
  58. };
  59. };
  60. pinctrl@fffff400 {
  61. mmc0 {
  62. pinctrl_board_mmc0: mmc0-board {
  63. atmel,pins =
  64. <AT91_PIOA 7 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PA7 gpio CD pin pull up and deglitch */
  65. };
  66. };
  67. qt1070 {
  68. pinctrl_qt1070_irq: qt1070_irq {
  69. atmel,pins =
  70. <AT91_PIOA 2 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
  71. };
  72. };
  73. };
  74. spi0: spi@f0000000 {
  75. status = "okay";
  76. cs-gpios = <&pioA 14 0>, <0>, <0>, <0>;
  77. m25p80@0 {
  78. compatible = "atmel,at25df321a";
  79. spi-max-frequency = <50000000>;
  80. reg = <0>;
  81. };
  82. };
  83. watchdog@fffffe40 {
  84. status = "okay";
  85. };
  86. };
  87. nand0: nand@40000000 {
  88. nand-bus-width = <8>;
  89. nand-ecc-mode = "hw";
  90. atmel,has-pmecc;
  91. atmel,pmecc-cap = <2>;
  92. atmel,pmecc-sector-size = <512>;
  93. nand-on-flash-bbt;
  94. status = "okay";
  95. };
  96. };
  97. leds {
  98. compatible = "gpio-leds";
  99. d8 {
  100. label = "d8";
  101. gpios = <&pioB 4 GPIO_ACTIVE_LOW>;
  102. linux,default-trigger = "mmc0";
  103. };
  104. d9 {
  105. label = "d6";
  106. gpios = <&pioB 5 GPIO_ACTIVE_LOW>;
  107. linux,default-trigger = "nand-disk";
  108. };
  109. d10 {
  110. label = "d7";
  111. gpios = <&pioB 6 GPIO_ACTIVE_HIGH>;
  112. linux,default-trigger = "heartbeat";
  113. };
  114. };
  115. gpio_keys {
  116. compatible = "gpio-keys";
  117. enter {
  118. label = "Enter";
  119. gpios = <&pioB 3 GPIO_ACTIVE_LOW>;
  120. linux,code = <28>;
  121. gpio-key,wakeup;
  122. };
  123. };
  124. };