at91sam9260ek.dts 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Device Tree file for Atmel at91sam9260 Evaluation Kit
  4. *
  5. * Copyright (C) 2016 Atmel,
  6. * 2016 Nicolas Ferre <[email protected]>
  7. */
  8. /dts-v1/;
  9. #include "at91sam9260.dtsi"
  10. #include <dt-bindings/input/input.h>
  11. / {
  12. model = "Atmel at91sam9260ek";
  13. compatible = "atmel,at91sam9260ek", "atmel,at91sam9260", "atmel,at91sam9";
  14. chosen {
  15. stdout-path = &dbgu;
  16. };
  17. memory@20000000 {
  18. reg = <0x20000000 0x4000000>;
  19. };
  20. clocks {
  21. slow_xtal {
  22. clock-frequency = <32768>;
  23. };
  24. main_xtal {
  25. clock-frequency = <18432000>;
  26. };
  27. };
  28. ahb {
  29. apb {
  30. tcb0: timer@fffa0000 {
  31. timer@0 {
  32. compatible = "atmel,tcb-timer";
  33. reg = <0>, <1>;
  34. };
  35. timer@2 {
  36. compatible = "atmel,tcb-timer";
  37. reg = <2>;
  38. };
  39. };
  40. usb1: gadget@fffa4000 {
  41. atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
  42. status = "okay";
  43. };
  44. mmc0: mmc@fffa8000 {
  45. pinctrl-0 = <
  46. &pinctrl_board_mmc0_slot1
  47. &pinctrl_mmc0_clk
  48. &pinctrl_mmc0_slot1_cmd_dat0
  49. &pinctrl_mmc0_slot1_dat1_3>;
  50. pinctrl-names = "default";
  51. status = "okay";
  52. slot@1 {
  53. reg = <1>;
  54. bus-width = <4>;
  55. cd-gpios = <&pioC 9 GPIO_ACTIVE_HIGH>;
  56. };
  57. };
  58. usart0: serial@fffb0000 {
  59. pinctrl-0 =
  60. <&pinctrl_usart0
  61. &pinctrl_usart0_rts
  62. &pinctrl_usart0_cts
  63. &pinctrl_usart0_dtr_dsr
  64. &pinctrl_usart0_dcd
  65. &pinctrl_usart0_ri>;
  66. status = "okay";
  67. };
  68. usart1: serial@fffb4000 {
  69. status = "okay";
  70. };
  71. ssc0: ssc@fffbc000 {
  72. status = "okay";
  73. pinctrl-0 = <&pinctrl_ssc0_tx>;
  74. };
  75. macb0: ethernet@fffc4000 {
  76. phy-mode = "rmii";
  77. status = "okay";
  78. };
  79. spi0: spi@fffc8000 {
  80. cs-gpios = <0>, <&pioC 11 0>, <0>, <0>;
  81. flash@1 {
  82. compatible = "atmel,at45", "atmel,dataflash";
  83. spi-max-frequency = <50000000>;
  84. reg = <1>;
  85. };
  86. };
  87. dbgu: serial@fffff200 {
  88. status = "okay";
  89. };
  90. pinctrl@fffff400 {
  91. board {
  92. pinctrl_board_mmc0_slot1: mmc0_slot1-board {
  93. atmel,pins =
  94. <AT91_PIOC 9 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
  95. };
  96. };
  97. };
  98. shdwc@fffffd10 {
  99. atmel,wakeup-counter = <10>;
  100. atmel,wakeup-rtt-timer;
  101. };
  102. rtc@fffffd20 {
  103. atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
  104. status = "okay";
  105. };
  106. watchdog@fffffd40 {
  107. status = "okay";
  108. };
  109. gpbr: syscon@fffffd50 {
  110. status = "okay";
  111. };
  112. };
  113. usb0: ohci@500000 {
  114. num-ports = <2>;
  115. status = "okay";
  116. };
  117. nand0: nand@40000000 {
  118. nand-bus-width = <8>;
  119. nand-ecc-mode = "soft";
  120. nand-on-flash-bbt;
  121. status = "okay";
  122. };
  123. };
  124. gpio-keys {
  125. compatible = "gpio-keys";
  126. button-3 {
  127. label = "Button 3";
  128. gpios = <&pioA 30 GPIO_ACTIVE_LOW>;
  129. linux,code = <0x103>;
  130. wakeup-source;
  131. };
  132. button-4 {
  133. label = "Button 4";
  134. gpios = <&pioA 31 GPIO_ACTIVE_LOW>;
  135. linux,code = <KEY_PROG1>;
  136. wakeup-source;
  137. };
  138. };
  139. i2c-gpio-0 {
  140. status = "okay";
  141. 24c512@50 {
  142. compatible = "atmel,24c512";
  143. reg = <0x50>;
  144. };
  145. };
  146. leds {
  147. compatible = "gpio-leds";
  148. ds1 {
  149. label = "ds1";
  150. gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
  151. linux,default-trigger = "heartbeat";
  152. };
  153. ds5 {
  154. label = "ds5";
  155. gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
  156. };
  157. };
  158. };