rk3288-veyron.dtsi 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846
  1. /*
  2. * Google Veyron (and derivatives) board device tree source
  3. *
  4. * Copyright 2014 Google, Inc
  5. *
  6. * SPDX-License-Identifier: GPL-2.0
  7. */
  8. #include <dt-bindings/clock/rockchip,rk808.h>
  9. #include <dt-bindings/input/input.h>
  10. #include "rk3288.dtsi"
  11. / {
  12. memory {
  13. reg = <0x0 0x80000000>;
  14. };
  15. chosen {
  16. stdout-path = &uart2;
  17. };
  18. config {
  19. u-boot,dm-pre-reloc;
  20. u-boot,boot0 = &spi_flash;
  21. };
  22. firmware {
  23. chromeos {
  24. pinctrl-names = "default";
  25. pinctrl-0 = <&fw_wp_ap>;
  26. write-protect-gpio = <&gpio7 6 GPIO_ACTIVE_LOW>;
  27. };
  28. };
  29. backlight: backlight {
  30. compatible = "pwm-backlight";
  31. brightness-levels = <
  32. 0 1 2 3 4 5 6 7
  33. 8 9 10 11 12 13 14 15
  34. 16 17 18 19 20 21 22 23
  35. 24 25 26 27 28 29 30 31
  36. 32 33 34 35 36 37 38 39
  37. 40 41 42 43 44 45 46 47
  38. 48 49 50 51 52 53 54 55
  39. 56 57 58 59 60 61 62 63
  40. 64 65 66 67 68 69 70 71
  41. 72 73 74 75 76 77 78 79
  42. 80 81 82 83 84 85 86 87
  43. 88 89 90 91 92 93 94 95
  44. 96 97 98 99 100 101 102 103
  45. 104 105 106 107 108 109 110 111
  46. 112 113 114 115 116 117 118 119
  47. 120 121 122 123 124 125 126 127
  48. 128 129 130 131 132 133 134 135
  49. 136 137 138 139 140 141 142 143
  50. 144 145 146 147 148 149 150 151
  51. 152 153 154 155 156 157 158 159
  52. 160 161 162 163 164 165 166 167
  53. 168 169 170 171 172 173 174 175
  54. 176 177 178 179 180 181 182 183
  55. 184 185 186 187 188 189 190 191
  56. 192 193 194 195 196 197 198 199
  57. 200 201 202 203 204 205 206 207
  58. 208 209 210 211 212 213 214 215
  59. 216 217 218 219 220 221 222 223
  60. 224 225 226 227 228 229 230 231
  61. 232 233 234 235 236 237 238 239
  62. 240 241 242 243 244 245 246 247
  63. 248 249 250 251 252 253 254 255>;
  64. default-brightness-level = <128>;
  65. enable-gpios = <&gpio7 2 GPIO_ACTIVE_HIGH>;
  66. backlight-boot-off;
  67. pinctrl-names = "default";
  68. pinctrl-0 = <&bl_en>;
  69. pwms = <&pwm0 0 1000000 0>;
  70. };
  71. panel: panel {
  72. compatible ="cnm,n116bgeea2","simple-panel";
  73. status = "okay";
  74. power-supply = <&vcc33_lcd>;
  75. backlight = <&backlight>;
  76. };
  77. gpio_keys: gpio-keys {
  78. compatible = "gpio-keys";
  79. #address-cells = <1>;
  80. #size-cells = <0>;
  81. pinctrl-names = "default";
  82. pinctrl-0 = <&pwr_key_h>;
  83. power {
  84. label = "Power";
  85. gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
  86. linux,code = <KEY_POWER>;
  87. debounce-interval = <100>;
  88. gpio-key,wakeup;
  89. };
  90. };
  91. gpio-restart {
  92. compatible = "gpio-restart";
  93. gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
  94. pinctrl-names = "default";
  95. pinctrl-0 = <&ap_warm_reset_h>;
  96. priority = /bits/ 8 <200>;
  97. };
  98. emmc_pwrseq: emmc-pwrseq {
  99. compatible = "mmc-pwrseq-emmc";
  100. pinctrl-0 = <&emmc_reset>;
  101. pinctrl-names = "default";
  102. reset-gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>;
  103. };
  104. sound {
  105. compatible = "rockchip,rockchip-audio-max98090";
  106. rockchip,model = "ROCKCHIP-I2S";
  107. rockchip,i2s-controller = <&i2s>;
  108. rockchip,audio-codec = <&max98090>;
  109. rockchip,hp-det-gpios = <&gpio6 5 GPIO_ACTIVE_HIGH>;
  110. rockchip,mic-det-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
  111. rockchip,headset-codec = <&headsetcodec>;
  112. pinctrl-names = "default";
  113. pinctrl-0 = <&mic_det>, <&hp_det>;
  114. };
  115. vdd_logic: pwm-regulator {
  116. compatible = "pwm-regulator";
  117. pwms = <&pwm1 0 2000 0>;
  118. voltage-table = <1350000 0>,
  119. <1300000 10>,
  120. <1250000 20>,
  121. <1200000 31>,
  122. <1150000 41>,
  123. <1100000 52>,
  124. <1050000 62>,
  125. <1000000 72>,
  126. < 950000 83>;
  127. regulator-min-microvolt = <950000>;
  128. regulator-max-microvolt = <1350000>;
  129. regulator-name = "vdd_logic";
  130. regulator-ramp-delay = <4000>;
  131. };
  132. vcc33_sys: vcc33-sys {
  133. compatible = "regulator-fixed";
  134. regulator-name = "vcc33_sys";
  135. regulator-always-on;
  136. regulator-boot-on;
  137. regulator-min-microvolt = <3300000>;
  138. regulator-max-microvolt = <3300000>;
  139. vin-supply = <&vccsys>;
  140. };
  141. vcc_5v: vcc-5v {
  142. compatible = "regulator-fixed";
  143. regulator-name = "vcc_5v";
  144. regulator-always-on;
  145. regulator-boot-on;
  146. regulator-min-microvolt = <5000000>;
  147. regulator-max-microvolt = <5000000>;
  148. };
  149. vcc50_hdmi: vcc50-hdmi {
  150. compatible = "regulator-fixed";
  151. regulator-name = "vcc50_hdmi";
  152. regulator-always-on;
  153. regulator-boot-on;
  154. vin-supply = <&vcc_5v>;
  155. };
  156. bt_regulator: bt-regulator {
  157. /*
  158. * On the module itself this is one of these (depending
  159. * on the actual card pouplated):
  160. * - BT_I2S_WS_BT_RFDISABLE_L
  161. * - No connect
  162. */
  163. compatible = "regulator-fixed";
  164. enable-active-high;
  165. gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
  166. pinctrl-names = "default";
  167. pinctrl-0 = <&bt_enable_l>;
  168. regulator-name = "bt_regulator";
  169. };
  170. wifi_regulator: wifi-regulator {
  171. /*
  172. * On the module itself this is one of these (depending
  173. * on the actual card populated):
  174. * - SDIO_RESET_L_WL_REG_ON
  175. * - PDN (power down when low)
  176. */
  177. compatible = "regulator-fixed";
  178. enable-active-high;
  179. gpio = <&gpio4 28 GPIO_ACTIVE_HIGH>;
  180. pinctrl-names = "default";
  181. pinctrl-0 = <&wifi_enable_h>;
  182. regulator-name = "wifi_regulator";
  183. /* Faux input supply. See bt_regulator description. */
  184. vin-supply = <&bt_regulator>;
  185. };
  186. io-domains {
  187. compatible = "rockchip,rk3288-io-voltage-domain";
  188. rockchip,grf = <&grf>;
  189. audio-supply = <&vcc18_codec>;
  190. bb-supply = <&vcc33_io>;
  191. dvp-supply = <&vcc_18>;
  192. flash0-supply = <&vcc18_flashio>;
  193. gpio1830-supply = <&vcc33_io>;
  194. gpio30-supply = <&vcc33_io>;
  195. lcdc-supply = <&vcc33_lcd>;
  196. sdcard-supply = <&vccio_sd>;
  197. wifi-supply = <&vcc18_wl>;
  198. };
  199. };
  200. &cpu0 {
  201. cpu0-supply = <&vdd_cpu>;
  202. };
  203. &dmc {
  204. logic-supply = <&vdd_logic>;
  205. rockchip,odt-disable-freq = <333000000>;
  206. rockchip,dll-disable-freq = <333000000>;
  207. rockchip,sr-enable-freq = <333000000>;
  208. rockchip,pd-enable-freq = <666000000>;
  209. rockchip,auto-self-refresh-cnt = <0>;
  210. rockchip,auto-power-down-cnt = <64>;
  211. rockchip,ddr-speed-bin = <21>;
  212. rockchip,trcd = <10>;
  213. rockchip,trp = <10>;
  214. operating-points = <
  215. /* KHz uV */
  216. 200000 1050000
  217. 333000 1100000
  218. 533000 1150000
  219. 666000 1200000
  220. >;
  221. };
  222. &efuse {
  223. status = "okay";
  224. };
  225. &emmc {
  226. broken-cd;
  227. bus-width = <8>;
  228. cap-mmc-highspeed;
  229. mmc-hs200-1_8v;
  230. mmc-pwrseq = <&emmc_pwrseq>;
  231. disable-wp;
  232. non-removable;
  233. num-slots = <1>;
  234. pinctrl-names = "default";
  235. pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8 &emmc_pwr>;
  236. status = "okay";
  237. };
  238. &sdio0 {
  239. broken-cd;
  240. bus-width = <4>;
  241. cap-sd-highspeed;
  242. sd-uhs-sdr12;
  243. sd-uhs-sdr25;
  244. sd-uhs-sdr50;
  245. sd-uhs-sdr104;
  246. cap-sdio-irq;
  247. card-external-vcc-supply = <&wifi_regulator>;
  248. clocks = <&cru HCLK_SDIO0>, <&cru SCLK_SDIO0>, <&cru SCLK_SDIO0_DRV>,
  249. <&cru SCLK_SDIO0_SAMPLE>, <&rk808 RK808_CLKOUT1>;
  250. clock-names = "biu", "ciu", "ciu_drv", "ciu_sample", "card_ext_clock";
  251. keep-power-in-suspend;
  252. non-removable;
  253. num-slots = <1>;
  254. pinctrl-names = "default";
  255. pinctrl-0 = <&sdio0_clk &sdio0_cmd &sdio0_bus4>;
  256. status = "okay";
  257. vmmc-supply = <&vcc33_sys>;
  258. vqmmc-supply = <&vcc18_wl>;
  259. };
  260. &sdmmc {
  261. bus-width = <4>;
  262. cap-mmc-highspeed;
  263. cap-sd-highspeed;
  264. sd-uhs-sdr12;
  265. sd-uhs-sdr25;
  266. sd-uhs-sdr50;
  267. sd-uhs-sdr104;
  268. card-detect-delay = <200>;
  269. cd-gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
  270. num-slots = <1>;
  271. status = "okay";
  272. vmmc-supply = <&vcc33_sd>;
  273. vqmmc-supply = <&vccio_sd>;
  274. };
  275. &spi2 {
  276. status = "okay";
  277. u-boot,dm-pre-reloc;
  278. spi_flash: spiflash@0 {
  279. u-boot,dm-pre-reloc;
  280. compatible = "spidev", "spi-flash";
  281. spi-max-frequency = <20000000>; /* Reduce for Dediprog em100 pro */
  282. reg = <0>;
  283. };
  284. };
  285. &i2c0 {
  286. status = "okay";
  287. clock-frequency = <400000>;
  288. i2c-scl-falling-time-ns = <50>; /* 2.5ns measured */
  289. i2c-scl-rising-time-ns = <100>; /* 45ns measured */
  290. u-boot,dm-pre-reloc;
  291. rk808: pmic@1b {
  292. compatible = "rockchip,rk808";
  293. clock-output-names = "xin32k", "wifibt_32kin";
  294. interrupt-parent = <&gpio0>;
  295. interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
  296. pinctrl-names = "default";
  297. pinctrl-0 = <&pmic_int_l>;
  298. reg = <0x1b>;
  299. rockchip,system-power-controller;
  300. wakeup-source;
  301. #clock-cells = <1>;
  302. u-boot,dm-pre-reloc;
  303. vcc1-supply = <&vcc33_sys>;
  304. vcc2-supply = <&vcc33_sys>;
  305. vcc3-supply = <&vcc33_sys>;
  306. vcc4-supply = <&vcc33_sys>;
  307. vcc6-supply = <&vcc_5v>;
  308. vcc7-supply = <&vcc33_sys>;
  309. vcc8-supply = <&vcc33_sys>;
  310. vcc9-supply = <&vcc_5v>;
  311. vcc10-supply = <&vcc33_sys>;
  312. vcc11-supply = <&vcc_5v>;
  313. vcc12-supply = <&vcc_18>;
  314. vddio-supply = <&vcc33_io>;
  315. regulators {
  316. vdd_cpu: DCDC_REG1 {
  317. regulator-always-on;
  318. regulator-boot-on;
  319. regulator-min-microvolt = <750000>;
  320. regulator-max-microvolt = <1450000>;
  321. regulator-name = "vdd_arm";
  322. regulator-ramp-delay = <6001>;
  323. regulator-suspend-mem-disabled;
  324. };
  325. vdd_gpu: DCDC_REG2 {
  326. regulator-always-on;
  327. regulator-boot-on;
  328. regulator-min-microvolt = <800000>;
  329. regulator-max-microvolt = <1250000>;
  330. regulator-name = "vdd_gpu";
  331. regulator-ramp-delay = <6001>;
  332. regulator-suspend-mem-disabled;
  333. };
  334. vcc135_ddr: DCDC_REG3 {
  335. regulator-always-on;
  336. regulator-boot-on;
  337. regulator-name = "vcc135_ddr";
  338. regulator-suspend-mem-enabled;
  339. };
  340. /*
  341. * vcc_18 has several aliases. (vcc18_flashio and
  342. * vcc18_wl). We'll add those aliases here just to
  343. * make it easier to follow the schematic. The signals
  344. * are actually hooked together and only separated for
  345. * power measurement purposes).
  346. */
  347. vcc18_wl: vcc18_flashio: vcc_18: DCDC_REG4 {
  348. regulator-always-on;
  349. regulator-boot-on;
  350. regulator-min-microvolt = <1800000>;
  351. regulator-max-microvolt = <1800000>;
  352. regulator-name = "vcc_18";
  353. regulator-suspend-mem-microvolt = <1800000>;
  354. };
  355. /*
  356. * Note that both vcc33_io and vcc33_pmuio are always
  357. * powered together. To simplify the logic in the dts
  358. * we just refer to vcc33_io every time something is
  359. * powered from vcc33_pmuio. In fact, on later boards
  360. * (such as danger) they're the same net.
  361. */
  362. vcc33_io: LDO_REG1 {
  363. regulator-always-on;
  364. regulator-boot-on;
  365. regulator-min-microvolt = <3300000>;
  366. regulator-max-microvolt = <3300000>;
  367. regulator-name = "vcc33_io";
  368. regulator-suspend-mem-microvolt = <3300000>;
  369. };
  370. vdd_10: LDO_REG3 {
  371. regulator-always-on;
  372. regulator-boot-on;
  373. regulator-min-microvolt = <1000000>;
  374. regulator-max-microvolt = <1000000>;
  375. regulator-name = "vdd_10";
  376. regulator-suspend-mem-microvolt = <1000000>;
  377. };
  378. vccio_sd: LDO_REG4 {
  379. regulator-min-microvolt = <1800000>;
  380. regulator-max-microvolt = <3300000>;
  381. regulator-name = "vccio_sd";
  382. regulator-suspend-mem-disabled;
  383. };
  384. vcc33_sd: LDO_REG5 {
  385. regulator-min-microvolt = <3300000>;
  386. regulator-max-microvolt = <3300000>;
  387. regulator-name = "vcc33_sd";
  388. regulator-suspend-mem-disabled;
  389. };
  390. vcc18_codec: LDO_REG6 {
  391. regulator-always-on;
  392. regulator-boot-on;
  393. regulator-min-microvolt = <1800000>;
  394. regulator-max-microvolt = <1800000>;
  395. regulator-name = "vcc18_codec";
  396. regulator-suspend-mem-disabled;
  397. };
  398. vdd10_lcd_pwren_h: LDO_REG7 {
  399. regulator-always-on;
  400. regulator-boot-on;
  401. regulator-min-microvolt = <2500000>;
  402. regulator-max-microvolt = <2500000>;
  403. regulator-name = "vdd10_lcd_pwren_h";
  404. regulator-suspend-mem-disabled;
  405. };
  406. vcc33_lcd: SWITCH_REG1 {
  407. regulator-always-on;
  408. regulator-boot-on;
  409. regulator-name = "vcc33_lcd";
  410. regulator-suspend-mem-disabled;
  411. };
  412. };
  413. };
  414. };
  415. &i2c1 {
  416. status = "okay";
  417. clock-frequency = <400000>;
  418. i2c-scl-falling-time-ns = <50>; /* 2.5ns measured */
  419. i2c-scl-rising-time-ns = <100>; /* 40ns measured */
  420. tpm: tpm@20 {
  421. compatible = "infineon,slb9645tt";
  422. reg = <0x20>;
  423. powered-while-suspended;
  424. };
  425. };
  426. &i2c2 {
  427. status = "okay";
  428. /* 100kHz since 4.7k resistors don't rise fast enough */
  429. clock-frequency = <100000>;
  430. i2c-scl-falling-time-ns = <50>; /* 10ns measured */
  431. i2c-scl-rising-time-ns = <800>; /* 600ns measured */
  432. max98090: max98090@10 {
  433. compatible = "maxim,max98090";
  434. reg = <0x10>;
  435. interrupt-parent = <&gpio6>;
  436. interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
  437. pinctrl-names = "default";
  438. pinctrl-0 = <&int_codec>;
  439. };
  440. };
  441. &i2c3 {
  442. status = "okay";
  443. clock-frequency = <400000>;
  444. i2c-scl-falling-time-ns = <50>;
  445. i2c-scl-rising-time-ns = <300>;
  446. };
  447. &i2c4 {
  448. status = "okay";
  449. clock-frequency = <400000>;
  450. i2c-scl-falling-time-ns = <50>; /* 11ns measured */
  451. i2c-scl-rising-time-ns = <300>; /* 225ns measured */
  452. headsetcodec: ts3a227e@3b {
  453. compatible = "ti,ts3a227e";
  454. reg = <0x3b>;
  455. interrupt-parent = <&gpio0>;
  456. interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
  457. pinctrl-names = "default";
  458. pinctrl-0 = <&ts3a227e_int_l>;
  459. ti,micbias = <7>; /* MICBIAS = 2.8V */
  460. };
  461. };
  462. &i2c5 {
  463. status = "okay";
  464. clock-frequency = <100000>;
  465. i2c-scl-falling-time-ns = <300>;
  466. i2c-scl-rising-time-ns = <1000>;
  467. };
  468. &i2s {
  469. status = "okay";
  470. clock-names = "i2s_hclk", "i2s_clk", "i2s_clk_out";
  471. clocks = <&cru HCLK_I2S0>, <&cru SCLK_I2S0>, <&cru SCLK_I2S0_OUT>;
  472. };
  473. &wdt {
  474. status = "okay";
  475. };
  476. &pwm0 {
  477. status = "okay";
  478. };
  479. &pwm1 {
  480. status = "okay";
  481. };
  482. &uart0 {
  483. status = "okay";
  484. /* Pins don't include flow control by default; add that in */
  485. pinctrl-names = "default";
  486. pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
  487. /* We need to go faster than 24MHz, so adjust clock parents / rates */
  488. assigned-clocks = <&cru SCLK_UART0>;
  489. assigned-clock-rates = <48000000>;
  490. };
  491. &uart1 {
  492. status = "okay";
  493. };
  494. &uart2 {
  495. status = "okay";
  496. u-boot,dm-pre-reloc;
  497. reg-shift = <2>;
  498. };
  499. &vopb {
  500. status = "okay";
  501. };
  502. &vopb_mmu {
  503. status = "okay";
  504. };
  505. &vopl {
  506. status = "okay";
  507. };
  508. &vopl_mmu {
  509. status = "okay";
  510. };
  511. &edp {
  512. status = "okay";
  513. rockchip,panel = <&panel>;
  514. };
  515. &hdmi {
  516. status = "okay";
  517. };
  518. &hdmi_audio {
  519. status = "okay";
  520. };
  521. &gpu {
  522. status = "okay";
  523. };
  524. &tsadc {
  525. tsadc-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
  526. tsadc-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
  527. status = "okay";
  528. };
  529. &pinctrl {
  530. u-boot,dm-pre-reloc;
  531. pinctrl-names = "default", "sleep";
  532. pinctrl-0 = <
  533. /* Common for sleep and wake, but no owners */
  534. &ddr0_retention
  535. &ddrio_pwroff
  536. &global_pwroff
  537. /* Wake only */
  538. &bt_dev_wake_awake
  539. >;
  540. pinctrl-1 = <
  541. /* Common for sleep and wake, but no owners */
  542. &ddr0_retention
  543. &ddrio_pwroff
  544. &global_pwroff
  545. /* Sleep only */
  546. &bt_dev_wake_sleep
  547. >;
  548. /* Add this for sdmmc pins to SD card */
  549. pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
  550. drive-strength = <8>;
  551. };
  552. pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
  553. bias-pull-up;
  554. drive-strength = <8>;
  555. };
  556. pcfg_output_high: pcfg-output-high {
  557. output-high;
  558. };
  559. pcfg_output_low: pcfg-output-low {
  560. output-low;
  561. };
  562. backlight {
  563. bl_en: bl-en {
  564. rockchip,pins = <7 2 RK_FUNC_GPIO &pcfg_pull_none>;
  565. };
  566. };
  567. buttons {
  568. pwr_key_h: pwr-key-h {
  569. rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_none>;
  570. };
  571. };
  572. codec {
  573. hp_det: hp-det {
  574. rockchip,pins = <6 5 RK_FUNC_GPIO &pcfg_pull_up>;
  575. };
  576. int_codec: int-codec {
  577. rockchip,pins = <6 7 RK_FUNC_GPIO &pcfg_pull_up>;
  578. };
  579. mic_det: mic-det {
  580. rockchip,pins = <6 11 RK_FUNC_GPIO &pcfg_pull_up>;
  581. };
  582. };
  583. emmc {
  584. emmc_reset: emmc-reset {
  585. rockchip,pins = <2 9 RK_FUNC_GPIO &pcfg_pull_none>;
  586. };
  587. /*
  588. * We run eMMC at max speed; bump up drive strength.
  589. * We also have external pulls, so disable the internal ones.
  590. */
  591. emmc_clk: emmc-clk {
  592. rockchip,pins = <3 18 RK_FUNC_2 &pcfg_pull_none_drv_8ma>;
  593. };
  594. emmc_cmd: emmc-cmd {
  595. rockchip,pins = <3 16 RK_FUNC_2 &pcfg_pull_none_drv_8ma>;
  596. };
  597. emmc_bus8: emmc-bus8 {
  598. rockchip,pins = <3 0 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
  599. <3 1 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
  600. <3 2 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
  601. <3 3 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
  602. <3 4 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
  603. <3 5 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
  604. <3 6 RK_FUNC_2 &pcfg_pull_none_drv_8ma>,
  605. <3 7 RK_FUNC_2 &pcfg_pull_none_drv_8ma>;
  606. };
  607. };
  608. headset {
  609. ts3a227e_int_l: ts3a227e-int-l {
  610. rockchip,pins = <0 3 RK_FUNC_GPIO &pcfg_pull_up>;
  611. };
  612. };
  613. pmic {
  614. pmic_int_l: pmic-int-l {
  615. /*
  616. * Causes jerry to hang when probing bus 0
  617. * rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
  618. */
  619. };
  620. };
  621. reboot {
  622. ap_warm_reset_h: ap-warm-reset-h {
  623. rockchip,pins = <RK_GPIO0 13 RK_FUNC_GPIO &pcfg_pull_none>;
  624. };
  625. };
  626. sdio0 {
  627. wifi_enable_h: wifienable-h {
  628. rockchip,pins = <4 28 RK_FUNC_GPIO &pcfg_pull_none>;
  629. };
  630. /* NOTE: mislabelled on schematic; should be bt_enable_h */
  631. bt_enable_l: bt-enable-l {
  632. rockchip,pins = <4 29 RK_FUNC_GPIO &pcfg_pull_none>;
  633. };
  634. /*
  635. * We run sdio0 at max speed; bump up drive strength.
  636. * We also have external pulls, so disable the internal ones.
  637. */
  638. sdio0_bus4: sdio0-bus4 {
  639. rockchip,pins = <4 20 RK_FUNC_1 &pcfg_pull_none_drv_8ma>,
  640. <4 21 RK_FUNC_1 &pcfg_pull_none_drv_8ma>,
  641. <4 22 RK_FUNC_1 &pcfg_pull_none_drv_8ma>,
  642. <4 23 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
  643. };
  644. sdio0_cmd: sdio0-cmd {
  645. rockchip,pins = <4 24 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
  646. };
  647. sdio0_clk: sdio0-clk {
  648. rockchip,pins = <4 25 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
  649. };
  650. /*
  651. * These pins are only present on very new veyron boards; on
  652. * older boards bt_dev_wake is simply always high. Note that
  653. * gpio4_26 is a NC on old veyron boards, so it doesn't hurt
  654. * to map this pin everywhere
  655. */
  656. bt_dev_wake_sleep: bt-dev-wake-sleep {
  657. rockchip,pins = <4 26 RK_FUNC_GPIO &pcfg_output_low>;
  658. };
  659. bt_dev_wake_awake: bt-dev-wake-awake {
  660. rockchip,pins = <4 26 RK_FUNC_GPIO &pcfg_output_high>;
  661. };
  662. };
  663. sdmmc {
  664. /*
  665. * We run sdmmc at max speed; bump up drive strength.
  666. * We also have external pulls, so disable the internal ones.
  667. */
  668. sdmmc_bus4: sdmmc-bus4 {
  669. rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_none_drv_8ma>,
  670. <6 17 RK_FUNC_1 &pcfg_pull_none_drv_8ma>,
  671. <6 18 RK_FUNC_1 &pcfg_pull_none_drv_8ma>,
  672. <6 19 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
  673. };
  674. sdmmc_clk: sdmmc-clk {
  675. rockchip,pins = <6 20 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
  676. };
  677. sdmmc_cmd: sdmmc-cmd {
  678. rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
  679. };
  680. /*
  681. * Builtin CD line is hooked to ground to prevent JTAG at boot
  682. * (and also to get the voltage rail correct). Make we
  683. * configure gpio6_C6 as GPIO so dw_mmc builtin CD doesn't
  684. * think there's a card inserted
  685. */
  686. sdmmc_cd_disabled: sdmmc-cd-disabled {
  687. rockchip,pins = <6 22 RK_FUNC_GPIO &pcfg_pull_none>;
  688. };
  689. /* This is where we actually hook up CD */
  690. sdmmc_cd_gpio: sdmmc-cd-gpio {
  691. rockchip,pins = <7 5 RK_FUNC_GPIO &pcfg_pull_none>;
  692. };
  693. };
  694. tpm {
  695. tpm_int_h: tpm-int-h {
  696. rockchip,pins = <7 4 RK_FUNC_GPIO &pcfg_pull_none>;
  697. };
  698. };
  699. write-protect {
  700. fw_wp_ap: fw-wp-ap {
  701. rockchip,pins = <7 6 RK_FUNC_GPIO &pcfg_pull_none>;
  702. };
  703. };
  704. };
  705. &usbphy {
  706. status = "okay";
  707. };
  708. &usb_host0_ehci {
  709. status = "okay";
  710. needs-reset-on-resume;
  711. };
  712. &usb_host1 {
  713. status = "okay";
  714. };
  715. &usb_otg {
  716. dr_mode = "host";
  717. status = "okay";
  718. assigned-clocks = <&cru SCLK_USBPHY480M_SRC>;
  719. assigned-clock-parents = <&cru SCLK_OTGPHY0>;
  720. };
  721. &sdmmc {
  722. u-boot,dm-pre-reloc;
  723. };
  724. &gpio3 {
  725. u-boot,dm-pre-reloc;
  726. };
  727. &gpio8 {
  728. u-boot,dm-pre-reloc;
  729. };