animeo_ip.dts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. /*
  2. * animeo_ip.dts - Device Tree file for Somfy Animeo IP Boards
  3. *
  4. * Copyright (C) 2011-2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  5. *
  6. * Licensed under GPLv2 only.
  7. */
  8. /dts-v1/;
  9. /include/ "at91sam9260.dtsi"
  10. / {
  11. model = "Somfy Animeo IP";
  12. compatible = "somfy,animeo-ip", "atmel,at91sam9260", "atmel,at91sam9";
  13. aliases {
  14. serial0 = &usart1;
  15. serial1 = &usart2;
  16. serial2 = &usart0;
  17. serial3 = &dbgu;
  18. serial4 = &usart3;
  19. serial5 = &uart0;
  20. serial6 = &uart1;
  21. };
  22. chosen {
  23. linux,stdout-path = &usart2;
  24. };
  25. memory {
  26. reg = <0x20000000 0x4000000>;
  27. };
  28. clocks {
  29. #address-cells = <1>;
  30. #size-cells = <1>;
  31. ranges;
  32. main_clock: clock@0 {
  33. compatible = "atmel,osc", "fixed-clock";
  34. clock-frequency = <18432000>;
  35. };
  36. };
  37. ahb {
  38. apb {
  39. usart0: serial@fffb0000 {
  40. pinctrl-0 = <&pinctrl_usart0 &pinctrl_usart0_rts>;
  41. linux,rs485-enabled-at-boot-time;
  42. status = "okay";
  43. };
  44. usart1: serial@fffb4000 {
  45. pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts>;
  46. linux,rs485-enabled-at-boot-time;
  47. status = "okay";
  48. };
  49. usart2: serial@fffb8000 {
  50. pinctrl-0 = <&pinctrl_usart2>;
  51. status = "okay";
  52. };
  53. macb0: ethernet@fffc4000 {
  54. pinctrl-0 = <&pinctrl_macb_rmii &pinctrl_macb_rmii_mii>;
  55. phy-mode = "mii";
  56. status = "okay";
  57. };
  58. mmc0: mmc@fffa8000 {
  59. pinctrl-0 = <&pinctrl_mmc0_clk
  60. &pinctrl_mmc0_slot1_cmd_dat0
  61. &pinctrl_mmc0_slot1_dat1_3>;
  62. status = "okay";
  63. slot@1 {
  64. reg = <1>;
  65. bus-width = <4>;
  66. };
  67. };
  68. watchdog@fffffd40 {
  69. status = "okay";
  70. };
  71. };
  72. nand0: nand@40000000 {
  73. nand-bus-width = <8>;
  74. nand-ecc-mode = "soft";
  75. nand-on-flash-bbt;
  76. status = "okay";
  77. at91bootstrap@0 {
  78. label = "at91bootstrap";
  79. reg = <0x0 0x8000>;
  80. };
  81. barebox@8000 {
  82. label = "barebox";
  83. reg = <0x8000 0x40000>;
  84. };
  85. bareboxenv@48000 {
  86. label = "bareboxenv";
  87. reg = <0x48000 0x8000>;
  88. };
  89. user_block@0x50000 {
  90. label = "user_block";
  91. reg = <0x50000 0xb0000>;
  92. };
  93. kernel@100000 {
  94. label = "kernel";
  95. reg = <0x100000 0x1b0000>;
  96. };
  97. root@2b0000 {
  98. label = "root";
  99. reg = <0x2b0000 0x1D50000>;
  100. };
  101. };
  102. usb0: ohci@00500000 {
  103. num-ports = <2>;
  104. atmel,vbus-gpio = <&pioB 15 1>;
  105. status = "okay";
  106. };
  107. };
  108. leds {
  109. compatible = "gpio-leds";
  110. power_green {
  111. label = "power_green";
  112. gpios = <&pioC 17 0>;
  113. linux,default-trigger = "heartbeat";
  114. };
  115. power_red {
  116. label = "power_red";
  117. gpios = <&pioA 2 0>;
  118. };
  119. tx_green {
  120. label = "tx_green";
  121. gpios = <&pioC 19 0>;
  122. };
  123. tx_red {
  124. label = "tx_red";
  125. gpios = <&pioC 18 0>;
  126. };
  127. };
  128. gpio_keys {
  129. compatible = "gpio-keys";
  130. #address-cells = <1>;
  131. #size-cells = <0>;
  132. keyswitch_in {
  133. label = "keyswitch_in";
  134. gpios = <&pioB 1 0>;
  135. linux,code = <28>;
  136. gpio-key,wakeup;
  137. };
  138. error_in {
  139. label = "error_in";
  140. gpios = <&pioB 2 0>;
  141. linux,code = <29>;
  142. gpio-key,wakeup;
  143. };
  144. btn {
  145. label = "btn";
  146. gpios = <&pioC 23 0>;
  147. linux,code = <31>;
  148. gpio-key,wakeup;
  149. };
  150. };
  151. };