at91sam9n12ek.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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 = "mem=128M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=jffs2";
  16. };
  17. memory {
  18. reg = <0x20000000 0x10000000>;
  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. };
  37. i2c1: i2c@f8014000 {
  38. status = "okay";
  39. };
  40. mmc0: mmc@f0008000 {
  41. pinctrl-0 = <
  42. &pinctrl_board_mmc0
  43. &pinctrl_mmc0_slot0_clk_cmd_dat0
  44. &pinctrl_mmc0_slot0_dat1_3>;
  45. status = "okay";
  46. slot@0 {
  47. reg = <0>;
  48. bus-width = <4>;
  49. cd-gpios = <&pioA 7 GPIO_ACTIVE_HIGH>;
  50. };
  51. };
  52. pinctrl@fffff400 {
  53. mmc0 {
  54. pinctrl_board_mmc0: mmc0-board {
  55. atmel,pins =
  56. <AT91_PIOA 7 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PA7 gpio CD pin pull up and deglitch */
  57. };
  58. };
  59. };
  60. spi0: spi@f0000000 {
  61. status = "okay";
  62. cs-gpios = <&pioA 14 0>, <0>, <0>, <0>;
  63. m25p80@0 {
  64. compatible = "atmel,at25df321a";
  65. spi-max-frequency = <50000000>;
  66. reg = <0>;
  67. };
  68. };
  69. watchdog@fffffe40 {
  70. status = "okay";
  71. };
  72. };
  73. nand0: nand@40000000 {
  74. nand-bus-width = <8>;
  75. nand-ecc-mode = "hw";
  76. atmel,has-pmecc;
  77. atmel,pmecc-cap = <2>;
  78. atmel,pmecc-sector-size = <512>;
  79. nand-on-flash-bbt;
  80. status = "okay";
  81. };
  82. };
  83. leds {
  84. compatible = "gpio-leds";
  85. d8 {
  86. label = "d8";
  87. gpios = <&pioB 4 GPIO_ACTIVE_LOW>;
  88. linux,default-trigger = "mmc0";
  89. };
  90. d9 {
  91. label = "d6";
  92. gpios = <&pioB 5 GPIO_ACTIVE_LOW>;
  93. linux,default-trigger = "nand-disk";
  94. };
  95. d10 {
  96. label = "d7";
  97. gpios = <&pioB 6 GPIO_ACTIVE_HIGH>;
  98. linux,default-trigger = "heartbeat";
  99. };
  100. };
  101. gpio_keys {
  102. compatible = "gpio-keys";
  103. enter {
  104. label = "Enter";
  105. gpios = <&pioB 4 GPIO_ACTIVE_LOW>;
  106. linux,code = <28>;
  107. gpio-key,wakeup;
  108. };
  109. };
  110. };