exynos5250-snow.dts 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. /*
  2. * Google Snow board device tree source
  3. *
  4. * Copyright (c) 2012 Google, Inc
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. /dts-v1/;
  11. #include "exynos5250.dtsi"
  12. #include "cros5250-common.dtsi"
  13. / {
  14. model = "Google Snow";
  15. compatible = "google,snow", "samsung,exynos5250";
  16. aliases {
  17. i2c104 = &i2c_104;
  18. };
  19. pinctrl@11400000 {
  20. sd3_clk: sd3-clk {
  21. samsung,pin-drv = <0>;
  22. };
  23. sd3_cmd: sd3-cmd {
  24. samsung,pin-pud = <3>;
  25. samsung,pin-drv = <0>;
  26. };
  27. sd3_bus4: sd3-bus-width4 {
  28. samsung,pin-drv = <0>;
  29. };
  30. };
  31. gpio-keys {
  32. compatible = "gpio-keys";
  33. lid-switch {
  34. label = "Lid";
  35. gpios = <&gpx3 5 1>;
  36. linux,input-type = <5>; /* EV_SW */
  37. linux,code = <0>; /* SW_LID */
  38. debounce-interval = <1>;
  39. gpio-key,wakeup;
  40. };
  41. };
  42. i2c-arbitrator {
  43. compatible = "i2c-arb-gpio-challenge";
  44. #address-cells = <1>;
  45. #size-cells = <0>;
  46. i2c-parent = <&{/i2c@12CA0000}>;
  47. our-claim-gpio = <&gpf0 3 1>;
  48. their-claim-gpios = <&gpe0 4 1>;
  49. slew-delay-us = <10>;
  50. wait-retry-us = <3000>;
  51. wait-free-us = <50000>;
  52. /* Use ID 104 as a hint that we're on physical bus 4 */
  53. i2c_104: i2c@0 {
  54. reg = <0>;
  55. #address-cells = <1>;
  56. #size-cells = <0>;
  57. battery: sbs-battery@b {
  58. compatible = "sbs,sbs-battery";
  59. reg = <0xb>;
  60. sbs,poll-retry-count = <1>;
  61. };
  62. ec: embedded-controller {
  63. compatible = "google,cros-ec-i2c";
  64. reg = <0x1e>;
  65. interrupts = <6 0>;
  66. interrupt-parent = <&gpx1>;
  67. wakeup-source;
  68. keyboard-controller {
  69. compatible = "google,cros-ec-keyb";
  70. keypad,num-rows = <8>;
  71. keypad,num-columns = <13>;
  72. google,needs-ghost-filter;
  73. linux,keymap = <0x0001003a /* CAPSLK */
  74. 0x0002003b /* F1 */
  75. 0x00030030 /* B */
  76. 0x00040044 /* F10 */
  77. 0x00060031 /* N */
  78. 0x0008000d /* = */
  79. 0x000a0064 /* R_ALT */
  80. 0x01010001 /* ESC */
  81. 0x0102003e /* F4 */
  82. 0x01030022 /* G */
  83. 0x01040041 /* F7 */
  84. 0x01060023 /* H */
  85. 0x01080028 /* ' */
  86. 0x01090043 /* F9 */
  87. 0x010b000e /* BKSPACE */
  88. 0x0200001d /* L_CTRL */
  89. 0x0201000f /* TAB */
  90. 0x0202003d /* F3 */
  91. 0x02030014 /* T */
  92. 0x02040040 /* F6 */
  93. 0x0205001b /* ] */
  94. 0x02060015 /* Y */
  95. 0x02070056 /* 102ND */
  96. 0x0208001a /* [ */
  97. 0x02090042 /* F8 */
  98. 0x03010029 /* GRAVE */
  99. 0x0302003c /* F2 */
  100. 0x03030006 /* 5 */
  101. 0x0304003f /* F5 */
  102. 0x03060007 /* 6 */
  103. 0x0308000c /* - */
  104. 0x030b002b /* \ */
  105. 0x04000061 /* R_CTRL */
  106. 0x0401001e /* A */
  107. 0x04020020 /* D */
  108. 0x04030021 /* F */
  109. 0x0404001f /* S */
  110. 0x04050025 /* K */
  111. 0x04060024 /* J */
  112. 0x04080027 /* ; */
  113. 0x04090026 /* L */
  114. 0x040b001c /* ENTER */
  115. 0x0501002c /* Z */
  116. 0x0502002e /* C */
  117. 0x0503002f /* V */
  118. 0x0504002d /* X */
  119. 0x05050033 /* , */
  120. 0x05060032 /* M */
  121. 0x0507002a /* L_SHIFT */
  122. 0x05080035 /* / */
  123. 0x05090034 /* . */
  124. 0x050B0039 /* SPACE */
  125. 0x06010002 /* 1 */
  126. 0x06020004 /* 3 */
  127. 0x06030005 /* 4 */
  128. 0x06040003 /* 2 */
  129. 0x06050009 /* 8 */
  130. 0x06060008 /* 7 */
  131. 0x0608000b /* 0 */
  132. 0x0609000a /* 9 */
  133. 0x060a0038 /* L_ALT */
  134. 0x060b006c /* DOWN */
  135. 0x060c006a /* RIGHT */
  136. 0x07010010 /* Q */
  137. 0x07020012 /* E */
  138. 0x07030013 /* R */
  139. 0x07040011 /* W */
  140. 0x07050017 /* I */
  141. 0x07060016 /* U */
  142. 0x07070036 /* R_SHIFT */
  143. 0x07080019 /* P */
  144. 0x07090018 /* O */
  145. 0x070b0067 /* UP */
  146. 0x070c0069>; /* LEFT */
  147. };
  148. };
  149. };
  150. };
  151. rtc {
  152. status = "okay";
  153. };
  154. /*
  155. * On Snow we've got SIP WiFi and so can keep drive strengths low to
  156. * reduce EMI.
  157. */
  158. dwmmc3@12230000 {
  159. slot@0 {
  160. pinctrl-names = "default";
  161. pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_bus4>;
  162. };
  163. };
  164. usb@12110000 {
  165. samsung,vbus-gpio = <&gpx1 1 0>;
  166. };
  167. fixed-rate-clocks {
  168. xxti {
  169. compatible = "samsung,clock-xxti";
  170. clock-frequency = <24000000>;
  171. };
  172. };
  173. };