animeo_ip.dts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. slow_xtal {
  37. clock-frequency = <32768>;
  38. };
  39. main_xtal {
  40. clock-frequency = <18432000>;
  41. };
  42. };
  43. ahb {
  44. apb {
  45. usart0: serial@fffb0000 {
  46. pinctrl-0 = <&pinctrl_usart0 &pinctrl_usart0_rts>;
  47. linux,rs485-enabled-at-boot-time;
  48. status = "okay";
  49. };
  50. usart1: serial@fffb4000 {
  51. pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts>;
  52. linux,rs485-enabled-at-boot-time;
  53. status = "okay";
  54. };
  55. usart2: serial@fffb8000 {
  56. pinctrl-0 = <&pinctrl_usart2>;
  57. status = "okay";
  58. };
  59. macb0: ethernet@fffc4000 {
  60. pinctrl-0 = <&pinctrl_macb_rmii &pinctrl_macb_rmii_mii>;
  61. phy-mode = "mii";
  62. status = "okay";
  63. };
  64. mmc0: mmc@fffa8000 {
  65. pinctrl-0 = <&pinctrl_mmc0_clk
  66. &pinctrl_mmc0_slot1_cmd_dat0
  67. &pinctrl_mmc0_slot1_dat1_3>;
  68. status = "okay";
  69. slot@1 {
  70. reg = <1>;
  71. bus-width = <4>;
  72. };
  73. };
  74. watchdog@fffffd40 {
  75. status = "okay";
  76. };
  77. };
  78. nand0: nand@40000000 {
  79. nand-bus-width = <8>;
  80. nand-ecc-mode = "soft";
  81. nand-on-flash-bbt;
  82. status = "okay";
  83. barebox@0 {
  84. label = "barebox";
  85. reg = <0x0 0x58000>;
  86. };
  87. u_boot_env@58000 {
  88. label = "u_boot_env";
  89. reg = <0x58000 0x8000>;
  90. };
  91. ubi@60000 {
  92. label = "ubi";
  93. reg = <0x60000 0x1FA0000>;
  94. };
  95. };
  96. usb0: ohci@00500000 {
  97. num-ports = <2>;
  98. atmel,vbus-gpio = <&pioB 15 GPIO_ACTIVE_LOW>;
  99. status = "okay";
  100. };
  101. };
  102. leds {
  103. compatible = "gpio-leds";
  104. power_green {
  105. label = "power_green";
  106. gpios = <&pioC 17 GPIO_ACTIVE_HIGH>;
  107. linux,default-trigger = "heartbeat";
  108. };
  109. power_red {
  110. label = "power_red";
  111. gpios = <&pioA 2 GPIO_ACTIVE_HIGH>;
  112. };
  113. tx_green {
  114. label = "tx_green";
  115. gpios = <&pioC 19 GPIO_ACTIVE_HIGH>;
  116. };
  117. tx_red {
  118. label = "tx_red";
  119. gpios = <&pioC 18 GPIO_ACTIVE_HIGH>;
  120. };
  121. };
  122. gpio_keys {
  123. compatible = "gpio-keys";
  124. #address-cells = <1>;
  125. #size-cells = <0>;
  126. keyswitch_in {
  127. label = "keyswitch_in";
  128. gpios = <&pioB 1 GPIO_ACTIVE_HIGH>;
  129. linux,code = <28>;
  130. gpio-key,wakeup;
  131. };
  132. error_in {
  133. label = "error_in";
  134. gpios = <&pioB 2 GPIO_ACTIVE_HIGH>;
  135. linux,code = <29>;
  136. gpio-key,wakeup;
  137. };
  138. btn {
  139. label = "btn";
  140. gpios = <&pioC 23 GPIO_ACTIVE_HIGH>;
  141. linux,code = <31>;
  142. gpio-key,wakeup;
  143. };
  144. };
  145. };