animeo_ip.dts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * animeo_ip.dts - Device Tree file for Somfy Animeo IP Boards
  4. *
  5. * Copyright (C) 2011-2012 Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
  6. */
  7. /dts-v1/;
  8. #include "at91sam9260.dtsi"
  9. / {
  10. model = "Somfy Animeo IP";
  11. compatible = "somfy,animeo-ip", "atmel,at91sam9260", "atmel,at91sam9";
  12. aliases {
  13. serial0 = &usart1;
  14. serial1 = &usart2;
  15. serial2 = &usart0;
  16. serial3 = &dbgu;
  17. serial4 = &usart3;
  18. serial5 = &uart0;
  19. serial6 = &uart1;
  20. };
  21. chosen {
  22. stdout-path = &usart2;
  23. };
  24. memory@20000000 {
  25. reg = <0x20000000 0x4000000>;
  26. };
  27. clocks {
  28. slow_xtal {
  29. clock-frequency = <32768>;
  30. };
  31. main_xtal {
  32. clock-frequency = <18432000>;
  33. };
  34. };
  35. ahb {
  36. apb {
  37. tcb0: timer@fffa0000 {
  38. timer@0 {
  39. compatible = "atmel,tcb-timer";
  40. reg = <0>, <1>;
  41. };
  42. timer@2 {
  43. compatible = "atmel,tcb-timer";
  44. reg = <2>;
  45. };
  46. };
  47. usart0: serial@fffb0000 {
  48. pinctrl-0 = <&pinctrl_usart0 &pinctrl_usart0_rts>;
  49. linux,rs485-enabled-at-boot-time;
  50. status = "okay";
  51. };
  52. usart1: serial@fffb4000 {
  53. pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts>;
  54. linux,rs485-enabled-at-boot-time;
  55. status = "okay";
  56. };
  57. usart2: serial@fffb8000 {
  58. pinctrl-0 = <&pinctrl_usart2>;
  59. status = "okay";
  60. };
  61. macb0: ethernet@fffc4000 {
  62. pinctrl-0 = <&pinctrl_macb_rmii &pinctrl_macb_rmii_mii>;
  63. phy-mode = "mii";
  64. status = "okay";
  65. };
  66. mmc0: mmc@fffa8000 {
  67. pinctrl-0 = <&pinctrl_mmc0_clk
  68. &pinctrl_mmc0_slot1_cmd_dat0
  69. &pinctrl_mmc0_slot1_dat1_3>;
  70. pinctrl-names = "default";
  71. status = "okay";
  72. slot@1 {
  73. reg = <1>;
  74. bus-width = <4>;
  75. };
  76. };
  77. watchdog@fffffd40 {
  78. status = "okay";
  79. };
  80. };
  81. ebi: ebi@10000000 {
  82. status = "okay";
  83. nand_controller: nand-controller {
  84. status = "okay";
  85. pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
  86. pinctrl-names = "default";
  87. nand@3 {
  88. reg = <0x3 0x0 0x800000>;
  89. rb-gpios = <&pioC 13 GPIO_ACTIVE_HIGH>;
  90. cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
  91. nand-bus-width = <8>;
  92. nand-ecc-mode = "soft";
  93. nand-on-flash-bbt;
  94. label = "atmel_nand";
  95. partitions {
  96. compatible = "fixed-partitions";
  97. #address-cells = <1>;
  98. #size-cells = <1>;
  99. barebox@0 {
  100. label = "barebox";
  101. reg = <0x0 0x58000>;
  102. };
  103. u_boot_env@58000 {
  104. label = "u_boot_env";
  105. reg = <0x58000 0x8000>;
  106. };
  107. ubi@60000 {
  108. label = "ubi";
  109. reg = <0x60000 0x1FA0000>;
  110. };
  111. };
  112. };
  113. };
  114. };
  115. usb0: ohci@500000 {
  116. num-ports = <2>;
  117. atmel,vbus-gpio = <&pioB 15 GPIO_ACTIVE_LOW>;
  118. status = "okay";
  119. };
  120. };
  121. leds {
  122. compatible = "gpio-leds";
  123. power_green {
  124. label = "power_green";
  125. gpios = <&pioC 17 GPIO_ACTIVE_HIGH>;
  126. linux,default-trigger = "heartbeat";
  127. };
  128. power_red {
  129. label = "power_red";
  130. gpios = <&pioA 2 GPIO_ACTIVE_HIGH>;
  131. };
  132. tx_green {
  133. label = "tx_green";
  134. gpios = <&pioC 19 GPIO_ACTIVE_HIGH>;
  135. };
  136. tx_red {
  137. label = "tx_red";
  138. gpios = <&pioC 18 GPIO_ACTIVE_HIGH>;
  139. };
  140. };
  141. gpio-keys {
  142. compatible = "gpio-keys";
  143. key-switch-in {
  144. label = "keyswitch_in";
  145. gpios = <&pioB 1 GPIO_ACTIVE_HIGH>;
  146. linux,code = <28>;
  147. wakeup-source;
  148. };
  149. key-error-in {
  150. label = "error_in";
  151. gpios = <&pioB 2 GPIO_ACTIVE_HIGH>;
  152. linux,code = <29>;
  153. wakeup-source;
  154. };
  155. key-s {
  156. label = "btn";
  157. gpios = <&pioC 23 GPIO_ACTIVE_HIGH>;
  158. linux,code = <31>;
  159. wakeup-source;
  160. };
  161. };
  162. };