at91sam9x5ek.dtsi 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * at91sam9x5ek.dtsi - Device Tree file for AT91SAM9x5CM Base board
  4. *
  5. * Copyright (C) 2012 Atmel,
  6. * 2012 Nicolas Ferre <[email protected]>
  7. */
  8. #include "at91sam9x5cm.dtsi"
  9. / {
  10. model = "Atmel AT91SAM9X5-EK";
  11. compatible = "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
  12. chosen {
  13. bootargs = "root=/dev/mtdblock1 rw rootfstype=ubifs ubi.mtd=1 root=ubi0:rootfs";
  14. stdout-path = "serial0:115200n8";
  15. };
  16. sound {
  17. compatible = "atmel,sam9x5-wm8731-audio";
  18. atmel,model = "wm8731 @ AT91SAM9X5EK";
  19. atmel,audio-routing =
  20. "Headphone Jack", "RHPOUT",
  21. "Headphone Jack", "LHPOUT",
  22. "LLINEIN", "Line In Jack",
  23. "RLINEIN", "Line In Jack";
  24. atmel,ssc-controller = <&ssc0>;
  25. atmel,audio-codec = <&wm8731>;
  26. };
  27. };
  28. &adc0 {
  29. atmel,adc-ts-wires = <4>;
  30. atmel,adc-ts-pressure-threshold = <10000>;
  31. status = "okay";
  32. };
  33. &dbgu {
  34. status = "okay";
  35. };
  36. &i2c0 {
  37. status = "okay";
  38. wm8731: wm8731@1a {
  39. compatible = "wm8731";
  40. reg = <0x1a>;
  41. };
  42. };
  43. &mmc0 {
  44. pinctrl-0 = <
  45. &pinctrl_board_mmc0
  46. &pinctrl_mmc0_slot0_clk_cmd_dat0
  47. &pinctrl_mmc0_slot0_dat1_3>;
  48. pinctrl-names = "default";
  49. status = "okay";
  50. slot@0 {
  51. reg = <0>;
  52. bus-width = <4>;
  53. cd-gpios = <&pioD 15 GPIO_ACTIVE_HIGH>;
  54. };
  55. };
  56. &mmc1 {
  57. pinctrl-0 = <
  58. &pinctrl_board_mmc1
  59. &pinctrl_mmc1_slot0_clk_cmd_dat0
  60. &pinctrl_mmc1_slot0_dat1_3>;
  61. pinctrl-names = "default";
  62. status = "okay";
  63. slot@0 {
  64. reg = <0>;
  65. bus-width = <4>;
  66. cd-gpios = <&pioD 14 GPIO_ACTIVE_HIGH>;
  67. };
  68. };
  69. &pinctrl {
  70. camera_sensor {
  71. pinctrl_pck0_as_isi_mck: pck0_as_isi_mck-0 {
  72. atmel,pins =
  73. <AT91_PIOC 15 AT91_PERIPH_C AT91_PINCTRL_NONE>; /* ISI_MCK */
  74. };
  75. pinctrl_sensor_power: sensor_power-0 {
  76. atmel,pins =
  77. <AT91_PIOA 13 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
  78. };
  79. pinctrl_sensor_reset: sensor_reset-0 {
  80. atmel,pins =
  81. <AT91_PIOA 7 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
  82. };
  83. };
  84. mmc0 {
  85. pinctrl_board_mmc0: mmc0-board {
  86. atmel,pins =
  87. <AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD15 gpio CD pin pull up and deglitch */
  88. };
  89. };
  90. mmc1 {
  91. pinctrl_board_mmc1: mmc1-board {
  92. atmel,pins =
  93. <AT91_PIOD 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD14 gpio CD pin pull up and deglitch */
  94. };
  95. };
  96. usb2 {
  97. pinctrl_board_usb2: usb2-board {
  98. atmel,pins =
  99. <AT91_PIOB 16 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PB16 gpio vbus sense, deglitch */
  100. };
  101. };
  102. };
  103. &spi0 {
  104. cs-gpios = <&pioA 14 0>, <0>, <0>, <0>;
  105. status = "disabled"; /* conflicts with mmc1 */
  106. flash@0 {
  107. compatible = "atmel,at25df321a";
  108. spi-max-frequency = <50000000>;
  109. reg = <0>;
  110. };
  111. };
  112. &ssc0 {
  113. status = "okay";
  114. };
  115. &usart0 {
  116. atmel,use-dma-rx;
  117. atmel,use-dma-tx;
  118. status = "okay";
  119. };
  120. &usb0 {
  121. num-ports = <3>;
  122. atmel,vbus-gpio = <0 /* &pioD 18 GPIO_ACTIVE_LOW *//* Activate to have access to port A */
  123. &pioD 19 GPIO_ACTIVE_LOW
  124. &pioD 20 GPIO_ACTIVE_LOW
  125. >;
  126. status = "okay";
  127. };
  128. &usb1 {
  129. status = "okay";
  130. };
  131. &usb2 {
  132. pinctrl-names = "default";
  133. pinctrl-0 = <&pinctrl_board_usb2>;
  134. atmel,vbus-gpio = <&pioB 16 GPIO_ACTIVE_HIGH>;
  135. status = "okay";
  136. };
  137. &watchdog {
  138. status = "okay";
  139. };