animeo_ip.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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. };
  59. nand0: nand@40000000 {
  60. nand-bus-width = <8>;
  61. nand-ecc-mode = "soft";
  62. nand-on-flash-bbt;
  63. status = "okay";
  64. at91bootstrap@0 {
  65. label = "at91bootstrap";
  66. reg = <0x0 0x8000>;
  67. };
  68. barebox@8000 {
  69. label = "barebox";
  70. reg = <0x8000 0x40000>;
  71. };
  72. bareboxenv@48000 {
  73. label = "bareboxenv";
  74. reg = <0x48000 0x8000>;
  75. };
  76. user_block@0x50000 {
  77. label = "user_block";
  78. reg = <0x50000 0xb0000>;
  79. };
  80. kernel@100000 {
  81. label = "kernel";
  82. reg = <0x100000 0x1b0000>;
  83. };
  84. root@2b0000 {
  85. label = "root";
  86. reg = <0x2b0000 0x1D50000>;
  87. };
  88. };
  89. usb0: ohci@00500000 {
  90. num-ports = <2>;
  91. atmel,vbus-gpio = <&pioB 15 1>;
  92. status = "okay";
  93. };
  94. };
  95. leds {
  96. compatible = "gpio-leds";
  97. power_green {
  98. label = "power_green";
  99. gpios = <&pioC 17 0>;
  100. linux,default-trigger = "heartbeat";
  101. };
  102. power_red {
  103. label = "power_red";
  104. gpios = <&pioA 2 0>;
  105. };
  106. tx_green {
  107. label = "tx_green";
  108. gpios = <&pioC 19 0>;
  109. };
  110. tx_red {
  111. label = "tx_red";
  112. gpios = <&pioC 18 0>;
  113. };
  114. };
  115. gpio_keys {
  116. compatible = "gpio-keys";
  117. #address-cells = <1>;
  118. #size-cells = <0>;
  119. keyswitch_in {
  120. label = "keyswitch_in";
  121. gpios = <&pioB 1 0>;
  122. linux,code = <28>;
  123. gpio-key,wakeup;
  124. };
  125. error_in {
  126. label = "error_in";
  127. gpios = <&pioB 2 0>;
  128. linux,code = <29>;
  129. gpio-key,wakeup;
  130. };
  131. btn {
  132. label = "btn";
  133. gpios = <&pioC 23 0>;
  134. linux,code = <31>;
  135. gpio-key,wakeup;
  136. };
  137. };
  138. };