snowball.dts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. /*
  2. * Copyright 2011 ST-Ericsson AB
  3. *
  4. * The code contained herein is licensed under the GNU General Public
  5. * License. You may obtain a copy of the GNU General Public License
  6. * Version 2 or later at the following locations:
  7. *
  8. * http://www.opensource.org/licenses/gpl-license.html
  9. * http://www.gnu.org/copyleft/gpl.html
  10. */
  11. /dts-v1/;
  12. /include/ "dbx5x0.dtsi"
  13. / {
  14. model = "Calao Systems Snowball platform with device tree";
  15. compatible = "calaosystems,snowball-a9500";
  16. memory {
  17. reg = <0x00000000 0x20000000>;
  18. };
  19. en_3v3_reg: en_3v3 {
  20. compatible = "regulator-fixed";
  21. regulator-name = "en-3v3-fixed-supply";
  22. regulator-min-microvolt = <3300000>;
  23. regulator-max-microvolt = <3300000>;
  24. gpios = <&gpio0 26 0x4>; // 26
  25. startup-delay-us = <5000>;
  26. enable-active-high;
  27. };
  28. gpio_keys {
  29. compatible = "gpio-keys";
  30. #address-cells = <1>;
  31. #size-cells = <0>;
  32. button@1 {
  33. debounce_interval = <50>;
  34. wakeup = <1>;
  35. linux,code = <2>;
  36. label = "userpb";
  37. gpios = <&gpio1 0 0x4>;
  38. };
  39. button@2 {
  40. debounce_interval = <50>;
  41. wakeup = <1>;
  42. linux,code = <3>;
  43. label = "extkb1";
  44. gpios = <&gpio4 23 0x4>;
  45. };
  46. button@3 {
  47. debounce_interval = <50>;
  48. wakeup = <1>;
  49. linux,code = <4>;
  50. label = "extkb2";
  51. gpios = <&gpio4 24 0x4>;
  52. };
  53. button@4 {
  54. debounce_interval = <50>;
  55. wakeup = <1>;
  56. linux,code = <5>;
  57. label = "extkb3";
  58. gpios = <&gpio5 1 0x4>;
  59. };
  60. button@5 {
  61. debounce_interval = <50>;
  62. wakeup = <1>;
  63. linux,code = <6>;
  64. label = "extkb4";
  65. gpios = <&gpio5 2 0x4>;
  66. };
  67. };
  68. leds {
  69. compatible = "gpio-leds";
  70. used-led {
  71. label = "user_led";
  72. gpios = <&gpio4 14 0x4>;
  73. default-state = "on";
  74. linux,default-trigger = "heartbeat";
  75. };
  76. };
  77. soc-u9500 {
  78. sound {
  79. compatible = "stericsson,snd-soc-mop500";
  80. stericsson,cpu-dai = <&msp1 &msp3>;
  81. stericsson,audio-codec = <&codec>;
  82. };
  83. msp1: msp@80124000 {
  84. status = "okay";
  85. };
  86. msp3: msp@80125000 {
  87. status = "okay";
  88. };
  89. prcmu@80157000 {
  90. thermal@801573c0 {
  91. num-trips = <4>;
  92. trip0-temp = <70000>;
  93. trip0-type = "active";
  94. trip0-cdev-num = <1>;
  95. trip0-cdev-name0 = "thermal-cpufreq-0";
  96. trip1-temp = <75000>;
  97. trip1-type = "active";
  98. trip1-cdev-num = <1>;
  99. trip1-cdev-name0 = "thermal-cpufreq-0";
  100. trip2-temp = <80000>;
  101. trip2-type = "active";
  102. trip2-cdev-num = <1>;
  103. trip2-cdev-name0 = "thermal-cpufreq-0";
  104. trip3-temp = <85000>;
  105. trip3-type = "critical";
  106. trip3-cdev-num = <0>;
  107. status = "okay";
  108. };
  109. };
  110. external-bus@50000000 {
  111. status = "okay";
  112. ethernet@0 {
  113. compatible = "smsc,lan9115";
  114. reg = <0 0x10000>;
  115. interrupts = <12 0x1>;
  116. interrupt-parent = <&gpio4>;
  117. vdd33a-supply = <&en_3v3_reg>;
  118. vddvario-supply = <&db8500_vape_reg>;
  119. reg-shift = <1>;
  120. reg-io-width = <2>;
  121. smsc,force-internal-phy;
  122. smsc,irq-active-high;
  123. smsc,irq-push-pull;
  124. };
  125. };
  126. // External Micro SD slot
  127. sdi@80126000 {
  128. arm,primecell-periphid = <0x10480180>;
  129. max-frequency = <50000000>;
  130. bus-width = <8>;
  131. mmc-cap-mmc-highspeed;
  132. vmmc-supply = <&ab8500_ldo_aux3_reg>;
  133. cd-gpios = <&gpio6 26 0x4>; // 218
  134. cd-inverted;
  135. status = "okay";
  136. };
  137. // On-board eMMC
  138. sdi@80114000 {
  139. arm,primecell-periphid = <0x10480180>;
  140. max-frequency = <50000000>;
  141. bus-width = <8>;
  142. mmc-cap-mmc-highspeed;
  143. vmmc-supply = <&ab8500_ldo_aux2_reg>;
  144. status = "okay";
  145. };
  146. uart@80120000 {
  147. status = "okay";
  148. };
  149. uart@80121000 {
  150. status = "okay";
  151. };
  152. uart@80007000 {
  153. status = "okay";
  154. };
  155. i2c@80004000 {
  156. tc3589x@42 {
  157. //compatible = "tc3589x";
  158. reg = <0x42>;
  159. gpios = <&gpio6 25 0x4>;
  160. interrupt-parent = <&gpio6>;
  161. };
  162. tps61052@33 {
  163. //compatible = "tps61052";
  164. reg = <0x33>;
  165. };
  166. };
  167. i2c@80128000 {
  168. lp5521@0x33 {
  169. // compatible = "lp5521";
  170. reg = <0x33>;
  171. };
  172. lp5521@0x34 {
  173. // compatible = "lp5521";
  174. reg = <0x34>;
  175. };
  176. bh1780@0x29 {
  177. // compatible = "rohm,bh1780gli";
  178. reg = <0x33>;
  179. };
  180. };
  181. cpufreq-cooling {
  182. status = "okay";
  183. };
  184. };
  185. };