tegra124-nyan-big.dts 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. /dts-v1/;
  2. #include <dt-bindings/input/input.h>
  3. #include "tegra124.dtsi"
  4. / {
  5. model = "Acer Chromebook 13 CB5-311";
  6. compatible = "google,nyan-big", "nvidia,tegra124";
  7. aliases {
  8. console = &uarta;
  9. i2c0 = "/i2c@7000d000";
  10. i2c1 = "/i2c@7000c000";
  11. i2c2 = "/i2c@7000c400";
  12. i2c3 = "/i2c@7000c500";
  13. i2c4 = "/i2c@7000c700";
  14. i2c5 = "/i2c@7000d100";
  15. rtc0 = "/i2c@0,7000d000/pmic@40";
  16. rtc1 = "/rtc@0,7000e000";
  17. sdhci0 = "/sdhci@700b0600";
  18. sdhci1 = "/sdhci@700b0400";
  19. spi0 = "/spi@7000d400";
  20. spi1 = "/spi@7000da00";
  21. usb0 = "/usb@7d000000";
  22. usb1 = "/usb@7d008000";
  23. };
  24. memory {
  25. reg = <0x80000000 0x80000000>;
  26. };
  27. serial@70006000 {
  28. /* Debug connector on the bottom of the board near SD card. */
  29. status = "okay";
  30. };
  31. pwm@7000a000 {
  32. status = "okay";
  33. };
  34. i2c@7000c000 {
  35. status = "okay";
  36. clock-frequency = <100000>;
  37. acodec: audio-codec@10 {
  38. compatible = "maxim,max98090";
  39. reg = <0x10>;
  40. interrupt-parent = <&gpio>;
  41. interrupts = <TEGRA_GPIO(H, 4) GPIO_ACTIVE_HIGH>;
  42. };
  43. temperature-sensor@4c {
  44. compatible = "ti,tmp451";
  45. reg = <0x4c>;
  46. interrupt-parent = <&gpio>;
  47. interrupts = <TEGRA_GPIO(I, 6) IRQ_TYPE_LEVEL_LOW>;
  48. #thermal-sensor-cells = <1>;
  49. };
  50. };
  51. i2c@7000c400 {
  52. status = "okay";
  53. clock-frequency = <100000>;
  54. };
  55. i2c@7000c500 {
  56. status = "okay";
  57. clock-frequency = <400000>;
  58. tpm@20 {
  59. compatible = "infineon,slb9645tt";
  60. reg = <0x20>;
  61. };
  62. };
  63. hdmi_ddc: i2c@7000c700 {
  64. status = "okay";
  65. clock-frequency = <100000>;
  66. };
  67. i2c@7000d000 {
  68. status = "okay";
  69. clock-frequency = <400000>;
  70. pmic: pmic@40 {
  71. compatible = "ams,as3722";
  72. reg = <0x40>;
  73. interrupts = <0 86 IRQ_TYPE_LEVEL_HIGH>;
  74. ams,system-power-controller;
  75. #interrupt-cells = <2>;
  76. interrupt-controller;
  77. gpio-controller;
  78. #gpio-cells = <2>;
  79. pinctrl-names = "default";
  80. pinctrl-0 = <&as3722_default>;
  81. as3722_default: pinmux {
  82. gpio0 {
  83. pins = "gpio0";
  84. function = "gpio";
  85. bias-pull-down;
  86. };
  87. gpio1 {
  88. pins = "gpio1";
  89. function = "gpio";
  90. bias-pull-up;
  91. };
  92. gpio2_4_7 {
  93. pins = "gpio2", "gpio4", "gpio7";
  94. function = "gpio";
  95. bias-pull-up;
  96. };
  97. gpio3_6 {
  98. pins = "gpio3", "gpio6";
  99. bias-high-impedance;
  100. };
  101. gpio5 {
  102. pins = "gpio5";
  103. function = "clk32k-out";
  104. bias-pull-down;
  105. };
  106. };
  107. };
  108. };
  109. spi@7000d400 {
  110. status = "okay";
  111. cros_ec: cros-ec@0 {
  112. compatible = "google,cros-ec-spi";
  113. spi-max-frequency = <3000000>;
  114. interrupt-parent = <&gpio>;
  115. interrupts = <TEGRA_GPIO(C, 7) IRQ_TYPE_LEVEL_LOW>;
  116. reg = <0>;
  117. google,cros-ec-spi-msg-delay = <2000>;
  118. i2c-tunnel {
  119. compatible = "google,cros-ec-i2c-tunnel";
  120. #address-cells = <1>;
  121. #size-cells = <0>;
  122. google,remote-bus = <0>;
  123. charger: bq24735@9 {
  124. compatible = "ti,bq24735";
  125. reg = <0x9>;
  126. interrupt-parent = <&gpio>;
  127. interrupts = <TEGRA_GPIO(J, 0)
  128. GPIO_ACTIVE_HIGH>;
  129. ti,ac-detect-gpios = <&gpio
  130. TEGRA_GPIO(J, 0)
  131. GPIO_ACTIVE_HIGH>;
  132. };
  133. battery: sbs-battery@b {
  134. compatible = "sbs,sbs-battery";
  135. reg = <0xb>;
  136. sbs,i2c-retry-count = <2>;
  137. sbs,poll-retry-count = <10>;
  138. power-supplies = <&charger>;
  139. };
  140. };
  141. };
  142. };
  143. spi@7000da00 {
  144. status = "okay";
  145. spi-max-frequency = <25000000>;
  146. flash@0 {
  147. compatible = "winbond,w25q32dw";
  148. reg = <0>;
  149. };
  150. };
  151. pmc@7000e400 {
  152. nvidia,invert-interrupt;
  153. nvidia,suspend-mode = <0>;
  154. nvidia,cpu-pwr-good-time = <500>;
  155. nvidia,cpu-pwr-off-time = <300>;
  156. nvidia,core-pwr-good-time = <641 3845>;
  157. nvidia,core-pwr-off-time = <61036>;
  158. nvidia,core-power-req-active-high;
  159. nvidia,sys-clock-req-active-high;
  160. };
  161. hda@70030000 {
  162. status = "okay";
  163. };
  164. sdhci@700b0000 { /* WiFi/BT on this bus */
  165. status = "okay";
  166. power-gpios = <&gpio TEGRA_GPIO(X, 7) GPIO_ACTIVE_HIGH>;
  167. bus-width = <4>;
  168. no-1-8-v;
  169. non-removable;
  170. };
  171. sdhci@700b0400 { /* SD Card on this bus */
  172. status = "okay";
  173. cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>;
  174. power-gpios = <&gpio TEGRA_GPIO(R, 0) GPIO_ACTIVE_HIGH>;
  175. wp-gpios = <&gpio TEGRA_GPIO(Q, 4) GPIO_ACTIVE_LOW>;
  176. bus-width = <4>;
  177. no-1-8-v;
  178. };
  179. sdhci@700b0600 { /* eMMC on this bus */
  180. status = "okay";
  181. bus-width = <8>;
  182. no-1-8-v;
  183. non-removable;
  184. };
  185. ahub@70300000 {
  186. i2s@70301100 {
  187. status = "okay";
  188. };
  189. };
  190. usb@7d000000 { /* Rear external USB port. */
  191. status = "okay";
  192. };
  193. usb-phy@7d000000 {
  194. status = "okay";
  195. };
  196. usb@7d004000 { /* Internal webcam. */
  197. status = "okay";
  198. };
  199. usb-phy@7d004000 {
  200. status = "okay";
  201. };
  202. usb@7d008000 { /* Left external USB port. */
  203. status = "okay";
  204. };
  205. usb-phy@7d008000 {
  206. status = "okay";
  207. };
  208. backlight: backlight {
  209. compatible = "pwm-backlight";
  210. enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
  211. pwms = <&pwm 1 1000000>;
  212. default-brightness-level = <224>;
  213. brightness-levels =
  214. < 0 1 2 3 4 5 6 7
  215. 8 9 10 11 12 13 14 15
  216. 16 17 18 19 20 21 22 23
  217. 24 25 26 27 28 29 30 31
  218. 32 33 34 35 36 37 38 39
  219. 40 41 42 43 44 45 46 47
  220. 48 49 50 51 52 53 54 55
  221. 56 57 58 59 60 61 62 63
  222. 64 65 66 67 68 69 70 71
  223. 72 73 74 75 76 77 78 79
  224. 80 81 82 83 84 85 86 87
  225. 88 89 90 91 92 93 94 95
  226. 96 97 98 99 100 101 102 103
  227. 104 105 106 107 108 109 110 111
  228. 112 113 114 115 116 117 118 119
  229. 120 121 122 123 124 125 126 127
  230. 128 129 130 131 132 133 134 135
  231. 136 137 138 139 140 141 142 143
  232. 144 145 146 147 148 149 150 151
  233. 152 153 154 155 156 157 158 159
  234. 160 161 162 163 164 165 166 167
  235. 168 169 170 171 172 173 174 175
  236. 176 177 178 179 180 181 182 183
  237. 184 185 186 187 188 189 190 191
  238. 192 193 194 195 196 197 198 199
  239. 200 201 202 203 204 205 206 207
  240. 208 209 210 211 212 213 214 215
  241. 216 217 218 219 220 221 222 223
  242. 224 225 226 227 228 229 230 231
  243. 232 233 234 235 236 237 238 239
  244. 240 241 242 243 244 245 246 247
  245. 248 249 250 251 252 253 254 255
  246. 256>;
  247. };
  248. clocks {
  249. compatible = "simple-bus";
  250. #address-cells = <1>;
  251. #size-cells = <0>;
  252. clk32k_in: clock@0 {
  253. compatible = "fixed-clock";
  254. reg = <0>;
  255. #clock-cells = <0>;
  256. clock-frequency = <32768>;
  257. };
  258. };
  259. gpio-keys {
  260. compatible = "gpio-keys";
  261. lid {
  262. label = "Lid";
  263. gpios = <&gpio TEGRA_GPIO(R, 4) GPIO_ACTIVE_LOW>;
  264. linux,input-type = <5>;
  265. linux,code = <KEY_RESERVED>;
  266. debounce-interval = <1>;
  267. gpio-key,wakeup;
  268. };
  269. power {
  270. label = "Power";
  271. gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>;
  272. linux,code = <KEY_POWER>;
  273. debounce-interval = <30>;
  274. gpio-key,wakeup;
  275. };
  276. };
  277. panel: panel {
  278. compatible = "auo,b133xtn01";
  279. backlight = <&backlight>;
  280. };
  281. sound {
  282. compatible = "nvidia,tegra-audio-max98090-nyan-big",
  283. "nvidia,tegra-audio-max98090";
  284. nvidia,model = "Acer Chromebook 13";
  285. nvidia,audio-routing =
  286. "Headphones", "HPR",
  287. "Headphones", "HPL",
  288. "Speakers", "SPKR",
  289. "Speakers", "SPKL",
  290. "Mic Jack", "MICBIAS",
  291. "DMICL", "Int Mic",
  292. "DMICR", "Int Mic",
  293. "IN34", "Mic Jack";
  294. nvidia,i2s-controller = <&tegra_i2s1>;
  295. nvidia,audio-codec = <&acodec>;
  296. clocks = <&tegra_car TEGRA124_CLK_PLL_A>,
  297. <&tegra_car TEGRA124_CLK_PLL_A_OUT0>,
  298. <&tegra_car TEGRA124_CLK_EXTERN1>;
  299. clock-names = "pll_a", "pll_a_out0", "mclk";
  300. nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(I, 7) GPIO_ACTIVE_HIGH>;
  301. };
  302. };
  303. #include "cros-ec-keyboard.dtsi"