msm8998-sony-xperia-yoshino.dtsi 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708
  1. // SPDX-License-Identifier: BSD-3-Clause
  2. /*
  3. * Copyright (c) 2021, AngeloGioacchino Del Regno
  4. * <[email protected]>
  5. * Copyright (c) 2021, Konrad Dybcio <[email protected]>
  6. */
  7. #include <dt-bindings/input/input.h>
  8. #include <dt-bindings/leds/common.h>
  9. #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
  10. #include "msm8998.dtsi"
  11. #include "pm8005.dtsi"
  12. #include "pm8998.dtsi"
  13. #include "pmi8998.dtsi"
  14. / {
  15. /* required for bootloader to select correct board */
  16. qcom,msm-id = <0x124 0x20000>, <0x124 0x20001>; /* 8998v2, v2.1 */
  17. qcom,board-id = <8 0>;
  18. clocks {
  19. div1_mclk: divclk1 {
  20. compatible = "gpio-gate-clock";
  21. pinctrl-0 = <&audio_mclk_pin>;
  22. pinctrl-names = "default";
  23. clocks = <&rpmcc RPM_SMD_DIV_CLK1>;
  24. #clock-cells = <0>;
  25. enable-gpios = <&pm8998_gpio 13 GPIO_ACTIVE_HIGH>;
  26. };
  27. };
  28. board_vbat: vbat-regulator {
  29. compatible = "regulator-fixed";
  30. regulator-name = "VBAT";
  31. regulator-min-microvolt = <4000000>;
  32. regulator-max-microvolt = <4000000>;
  33. regulator-always-on;
  34. regulator-boot-on;
  35. };
  36. cam0_vdig_vreg: cam0-vdig {
  37. compatible = "regulator-fixed";
  38. regulator-name = "cam0_vdig";
  39. startup-delay-us = <0>;
  40. enable-active-high;
  41. gpio = <&tlmm 21 GPIO_ACTIVE_HIGH>;
  42. pinctrl-names = "default";
  43. pinctrl-0 = <&cam0_vdig_default>;
  44. };
  45. cam1_vdig_vreg: cam1-vdig {
  46. compatible = "regulator-fixed";
  47. regulator-name = "cam1_vdig";
  48. startup-delay-us = <0>;
  49. enable-active-high;
  50. gpio = <&tlmm 25 GPIO_ACTIVE_HIGH>;
  51. pinctrl-names = "default";
  52. pinctrl-0 = <&cam1_vdig_default>;
  53. vin-supply = <&vreg_s3a_1p35>;
  54. };
  55. cam_vio_vreg: cam-vio-vreg {
  56. compatible = "regulator-fixed";
  57. regulator-name = "cam_vio_vreg";
  58. startup-delay-us = <0>;
  59. enable-active-high;
  60. gpio = <&pmi8998_gpio 1 GPIO_ACTIVE_HIGH>;
  61. pinctrl-names = "default";
  62. pinctrl-0 = <&cam_vio_default>;
  63. vin-supply = <&vreg_lvs1a_1p8>;
  64. };
  65. touch_vddio_vreg: touch-vddio-vreg {
  66. compatible = "regulator-fixed";
  67. regulator-name = "touch_vddio_vreg";
  68. startup-delay-us = <10000>;
  69. gpio = <&tlmm 133 GPIO_ACTIVE_HIGH>;
  70. pinctrl-names = "default";
  71. pinctrl-0 = <&ts_vddio_en>;
  72. };
  73. vph_pwr: vph-pwr-regulator {
  74. compatible = "regulator-fixed";
  75. regulator-name = "vph_pwr";
  76. regulator-always-on;
  77. regulator-boot-on;
  78. };
  79. extcon_usb: extcon-usb {
  80. compatible = "linux,extcon-usb-gpio";
  81. id-gpio = <&tlmm 38 GPIO_ACTIVE_HIGH>;
  82. vbus-gpio = <&tlmm 128 GPIO_ACTIVE_HIGH>;
  83. pinctrl-names = "default";
  84. pinctrl-0 = <&usb_extcon_active &usb_vbus_active>;
  85. };
  86. gpio-keys {
  87. compatible = "gpio-keys";
  88. label = "Side buttons";
  89. pinctrl-names = "default";
  90. pinctrl-0 = <&vol_down_pin_a>, <&cam_focus_pin_a>,
  91. <&cam_snapshot_pin_a>;
  92. button-vol-down {
  93. label = "Volume Down";
  94. gpios = <&pm8998_gpio 5 GPIO_ACTIVE_LOW>;
  95. linux,input-type = <EV_KEY>;
  96. linux,code = <KEY_VOLUMEDOWN>;
  97. gpio-key,wakeup;
  98. debounce-interval = <15>;
  99. };
  100. button-camera-snapshot {
  101. label = "Camera Snapshot";
  102. gpios = <&pm8998_gpio 7 GPIO_ACTIVE_LOW>;
  103. linux,input-type = <EV_KEY>;
  104. linux,code = <KEY_CAMERA>;
  105. debounce-interval = <15>;
  106. };
  107. button-camera-focus {
  108. label = "Camera Focus";
  109. gpios = <&pm8998_gpio 8 GPIO_ACTIVE_LOW>;
  110. linux,input-type = <EV_KEY>;
  111. linux,code = <KEY_CAMERA_FOCUS>;
  112. debounce-interval = <15>;
  113. };
  114. };
  115. gpio-hall-sensor {
  116. compatible = "gpio-keys";
  117. label = "Hall sensors";
  118. pinctrl-names = "default";
  119. pinctrl-0 = <&hall_sensor0_default>;
  120. event-hall-sensor0 {
  121. label = "Cover Hall Sensor";
  122. gpios = <&tlmm 124 GPIO_ACTIVE_LOW>;
  123. linux,input-type = <EV_SW>;
  124. linux,code = <SW_LID>;
  125. gpio-key,wakeup;
  126. debounce-interval = <30>;
  127. };
  128. };
  129. reserved-memory {
  130. #address-cells = <2>;
  131. #size-cells = <2>;
  132. ranges;
  133. hyp_mem: memory@85800000 {
  134. reg = <0x0 0x85800000 0x0 0x3700000>;
  135. no-map;
  136. };
  137. cont_splash_mem: memory@9d400000 {
  138. reg = <0x0 0x9d400000 0x0 0x2400000>;
  139. no-map;
  140. };
  141. zap_shader_region: memory@f6400000 {
  142. compatible = "shared-dma-pool";
  143. reg = <0x0 0xf6400000 0x0 0x2000>;
  144. no-map;
  145. };
  146. adsp_region: memory@fe000000 {
  147. reg = <0x0 0xfe000000 0x0 0x800000>;
  148. no-map;
  149. };
  150. qseecom_region: memory@fe800000 {
  151. reg = <0x0 0xfe800000 0x0 0x1400000>;
  152. no-map;
  153. };
  154. ramoops@ffc00000 {
  155. compatible = "ramoops";
  156. reg = <0x0 0xffc00000 0x0 0x100000>;
  157. record-size = <0x10000>;
  158. console-size = <0x60000>;
  159. ftrace-size = <0x10000>;
  160. pmsg-size = <0x20000>;
  161. ecc-size = <16>;
  162. };
  163. };
  164. vibrator {
  165. compatible = "gpio-vibrator";
  166. enable-gpios = <&pmi8998_gpio 5 GPIO_ACTIVE_HIGH>;
  167. pinctrl-names = "default";
  168. pinctrl-0 = <&vib_default>;
  169. };
  170. };
  171. &blsp1_i2c5 {
  172. status = "okay";
  173. clock-frequency = <355000>;
  174. touchscreen@2c {
  175. compatible = "syna,rmi4-i2c";
  176. reg = <0x2c>;
  177. #address-cells = <1>;
  178. #size-cells = <0>;
  179. interrupts-extended = <&tlmm 125 IRQ_TYPE_EDGE_FALLING>;
  180. pinctrl-names = "default";
  181. pinctrl-0 = <&ts_int_n>;
  182. vdd-supply = <&vreg_l28_3p0>;
  183. vio-supply = <&touch_vddio_vreg>;
  184. syna,reset-delay-ms = <220>;
  185. syna,startup-delay-ms = <1000>;
  186. rmi4-f01@1 {
  187. reg = <0x01>;
  188. syna,nosleep-mode = <1>;
  189. };
  190. rmi4-f11@11 {
  191. reg = <0x11>;
  192. syna,sensor-type = <1>;
  193. };
  194. };
  195. };
  196. &blsp1_i2c5_sleep {
  197. bias-disable;
  198. };
  199. &blsp1_uart3 {
  200. status = "okay";
  201. bluetooth {
  202. compatible = "qcom,wcn3990-bt";
  203. vddio-supply = <&vreg_s4a_1p8>;
  204. vddxo-supply = <&vreg_l7a_1p8>;
  205. vddrf-supply = <&vreg_l17a_1p3>;
  206. vddch0-supply = <&vreg_l25a_3p3>;
  207. max-speed = <3200000>;
  208. clocks = <&rpmcc RPM_SMD_RF_CLK2_PIN>;
  209. };
  210. };
  211. &blsp2_uart1 {
  212. status = "okay";
  213. };
  214. &blsp2_i2c2 {
  215. status = "okay";
  216. proximity@29 {
  217. compatible = "st,vl53l0x";
  218. reg = <0x29>;
  219. interrupt-parent = <&tlmm>;
  220. interrupts = <22 IRQ_TYPE_EDGE_FALLING>;
  221. reset-gpios = <&tlmm 27 GPIO_ACTIVE_LOW>;
  222. vdd-supply = <&cam_vio_vreg>;
  223. pinctrl-names = "default";
  224. pinctrl-0 = <&tof_int &tof_reset>;
  225. };
  226. };
  227. &ibb {
  228. regulator-min-microamp = <800000>;
  229. regulator-max-microamp = <800000>;
  230. regulator-enable-ramp-delay = <200>;
  231. regulator-over-current-protection;
  232. regulator-pull-down;
  233. regulator-ramp-delay = <1>;
  234. regulator-settling-time-up-us = <600>;
  235. regulator-settling-time-down-us = <1000>;
  236. regulator-soft-start;
  237. qcom,discharge-resistor-kohms = <300>;
  238. };
  239. &lab {
  240. regulator-min-microamp = <200000>;
  241. regulator-max-microamp = <200000>;
  242. regulator-enable-ramp-delay = <500>;
  243. regulator-over-current-protection;
  244. regulator-pull-down;
  245. regulator-ramp-delay = <1>;
  246. regulator-settling-time-up-us = <50000>;
  247. regulator-settling-time-down-us = <3000>;
  248. regulator-soft-start;
  249. };
  250. &pm8005_regulators {
  251. /* VDD_GFX supply */
  252. pm8005_s1: s1 {
  253. regulator-min-microvolt = <524000>;
  254. regulator-max-microvolt = <1088000>;
  255. regulator-enable-ramp-delay = <500>;
  256. /* Hack until we rig up the gpu consumer */
  257. regulator-always-on;
  258. };
  259. };
  260. &pm8998_gpio {
  261. vol_down_pin_a: vol-down-active-state {
  262. pins = "gpio5";
  263. function = PMIC_GPIO_FUNC_NORMAL;
  264. bias-pull-up;
  265. input-enable;
  266. qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
  267. };
  268. cam_focus_pin_a: cam-focus-btn-active-state {
  269. pins = "gpio7";
  270. function = PMIC_GPIO_FUNC_NORMAL;
  271. bias-pull-up;
  272. input-enable;
  273. qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
  274. };
  275. cam_snapshot_pin_a: cam-snapshot-btn-active-state {
  276. pins = "gpio8";
  277. function = PMIC_GPIO_FUNC_NORMAL;
  278. bias-pull-up;
  279. input-enable;
  280. qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
  281. };
  282. audio_mclk_pin: audio-mclk-pin-active-state {
  283. pins = "gpio13";
  284. function = "func2";
  285. power-source = <0>;
  286. };
  287. };
  288. &pmi8998_gpio {
  289. cam_vio_default: cam-vio-active-state {
  290. pins = "gpio1";
  291. function = PMIC_GPIO_FUNC_NORMAL;
  292. bias-disable;
  293. drive-push-pull;
  294. output-low;
  295. qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
  296. power-source = <1>;
  297. };
  298. vib_default: vib-en-state {
  299. pins = "gpio5";
  300. function = PMIC_GPIO_FUNC_NORMAL;
  301. bias-disable;
  302. drive-push-pull;
  303. output-low;
  304. qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
  305. power-source = <0>;
  306. };
  307. };
  308. &pm8998_pon {
  309. resin {
  310. compatible = "qcom,pm8941-resin";
  311. interrupts = <GIC_SPI 0x8 1 IRQ_TYPE_EDGE_BOTH>;
  312. debounce = <15625>;
  313. bias-pull-up;
  314. linux,code = <KEY_VOLUMEUP>;
  315. };
  316. };
  317. &qusb2phy {
  318. status = "okay";
  319. vdda-pll-supply = <&vreg_l12a_1p8>;
  320. vdda-phy-dpdm-supply = <&vreg_l24a_3p075>;
  321. };
  322. &rpm_requests {
  323. pm8998-regulators {
  324. compatible = "qcom,rpm-pm8998-regulators";
  325. vdd_s1-supply = <&vph_pwr>;
  326. vdd_s2-supply = <&vph_pwr>;
  327. vdd_s3-supply = <&vph_pwr>;
  328. vdd_s4-supply = <&vph_pwr>;
  329. vdd_s5-supply = <&vph_pwr>;
  330. vdd_s6-supply = <&vph_pwr>;
  331. vdd_s7-supply = <&vph_pwr>;
  332. vdd_s8-supply = <&vph_pwr>;
  333. vdd_s9-supply = <&vph_pwr>;
  334. vdd_s10-supply = <&vph_pwr>;
  335. vdd_s11-supply = <&vph_pwr>;
  336. vdd_s12-supply = <&vph_pwr>;
  337. vdd_s13-supply = <&vph_pwr>;
  338. vdd_l1_l27-supply = <&vreg_s7a_1p025>;
  339. vdd_l2_l8_l17-supply = <&vreg_s3a_1p35>;
  340. vdd_l3_l11-supply = <&vreg_s7a_1p025>;
  341. vdd_l4_l5-supply = <&vreg_s7a_1p025>;
  342. vdd_l6-supply = <&vreg_s5a_2p04>;
  343. vdd_l7_l12_l14_l15-supply = <&vreg_s5a_2p04>;
  344. vdd_l9-supply = <&vreg_bob>;
  345. vdd_l10_l23_l25-supply = <&vreg_bob>;
  346. vdd_l13_l19_l21-supply = <&vreg_bob>;
  347. vdd_l16_l28-supply = <&vreg_bob>;
  348. vdd_l18_l22-supply = <&vreg_bob>;
  349. vdd_l20_l24-supply = <&vreg_bob>;
  350. vdd_l26-supply = <&vreg_s3a_1p35>;
  351. vdd_lvs1_lvs2-supply = <&vreg_s4a_1p8>;
  352. vreg_s3a_1p35: s3 {
  353. regulator-min-microvolt = <1352000>;
  354. regulator-max-microvolt = <1352000>;
  355. };
  356. vreg_s4a_1p8: s4 {
  357. regulator-min-microvolt = <1800000>;
  358. regulator-max-microvolt = <1800000>;
  359. regulator-system-load = <100000>;
  360. regulator-allow-set-load;
  361. };
  362. vreg_s5a_2p04: s5 {
  363. regulator-min-microvolt = <1904000>;
  364. regulator-max-microvolt = <2032000>;
  365. };
  366. vreg_s7a_1p025: s7 {
  367. regulator-min-microvolt = <900000>;
  368. regulator-max-microvolt = <1028000>;
  369. };
  370. vreg_l1a_0p875: l1 {
  371. regulator-min-microvolt = <880000>;
  372. regulator-max-microvolt = <880000>;
  373. regulator-system-load = <73400>;
  374. regulator-allow-set-load;
  375. };
  376. vreg_l2a_1p2: l2 {
  377. regulator-min-microvolt = <1200000>;
  378. regulator-max-microvolt = <1200000>;
  379. regulator-system-load = <12560>;
  380. regulator-allow-set-load;
  381. };
  382. vreg_l3a_1p0: l3 {
  383. regulator-min-microvolt = <1000000>;
  384. regulator-max-microvolt = <1000000>;
  385. };
  386. vreg_l5a_0p8: l5 {
  387. regulator-min-microvolt = <800000>;
  388. regulator-max-microvolt = <800000>;
  389. };
  390. vreg_l6a_1p8: l6 {
  391. regulator-min-microvolt = <1800000>;
  392. regulator-max-microvolt = <1800000>;
  393. };
  394. vreg_l7a_1p8: l7 {
  395. regulator-min-microvolt = <1800000>;
  396. regulator-max-microvolt = <1800000>;
  397. };
  398. vreg_l8a_1p2: l8 {
  399. regulator-min-microvolt = <1200000>;
  400. regulator-max-microvolt = <1200000>;
  401. };
  402. vreg_l9a_1p8: l9 {
  403. regulator-min-microvolt = <1808000>;
  404. regulator-max-microvolt = <2960000>;
  405. };
  406. vreg_l10a_1p8: l10 {
  407. regulator-min-microvolt = <1808000>;
  408. regulator-max-microvolt = <2960000>;
  409. };
  410. vreg_l11a_1p0: l11 {
  411. regulator-min-microvolt = <1000000>;
  412. regulator-max-microvolt = <1000000>;
  413. };
  414. vreg_l12a_1p8: l12 {
  415. regulator-min-microvolt = <1800000>;
  416. regulator-max-microvolt = <1800000>;
  417. };
  418. vreg_l13a_2p95: l13 {
  419. regulator-min-microvolt = <1808000>;
  420. regulator-max-microvolt = <2960000>;
  421. regulator-allow-set-load;
  422. };
  423. vreg_l14a_1p85: l14 {
  424. regulator-min-microvolt = <1848000>;
  425. regulator-max-microvolt = <1856000>;
  426. regulator-system-load = <32000>;
  427. regulator-allow-set-load;
  428. };
  429. vreg_l15a_1p8: l15 {
  430. regulator-min-microvolt = <1800000>;
  431. regulator-max-microvolt = <1800000>;
  432. };
  433. vreg_l16a_2p7: l16 {
  434. regulator-min-microvolt = <2704000>;
  435. regulator-max-microvolt = <2704000>;
  436. };
  437. vreg_l17a_1p3: l17 {
  438. regulator-min-microvolt = <1304000>;
  439. regulator-max-microvolt = <1304000>;
  440. };
  441. vreg_l18a_2p85: l18 {};
  442. vreg_l19a_2p7: l19 {
  443. regulator-min-microvolt = <2696000>;
  444. regulator-max-microvolt = <2704000>;
  445. };
  446. vreg_l20a_2p95: l20 {
  447. regulator-min-microvolt = <2960000>;
  448. regulator-max-microvolt = <2960000>;
  449. regulator-system-load = <10000>;
  450. regulator-allow-set-load;
  451. };
  452. vreg_l21a_2p95: l21 {
  453. regulator-min-microvolt = <2960000>;
  454. regulator-max-microvolt = <2960000>;
  455. regulator-system-load = <800000>;
  456. regulator-allow-set-load;
  457. };
  458. vreg_l22a_2p85: l22 { };
  459. vreg_l23a_3p3: l23 {
  460. regulator-min-microvolt = <3312000>;
  461. regulator-max-microvolt = <3312000>;
  462. };
  463. vreg_l24a_3p075: l24 {
  464. regulator-min-microvolt = <3088000>;
  465. regulator-max-microvolt = <3088000>;
  466. };
  467. vreg_l25a_3p3: l25 {
  468. regulator-min-microvolt = <3104000>;
  469. regulator-max-microvolt = <3312000>;
  470. };
  471. vreg_l26a_1p2: l26 {
  472. regulator-min-microvolt = <1200000>;
  473. regulator-max-microvolt = <1200000>;
  474. regulator-allow-set-load;
  475. };
  476. vreg_l28_3p0: l28 {
  477. regulator-min-microvolt = <3000000>;
  478. regulator-max-microvolt = <3000000>;
  479. };
  480. vreg_lvs1a_1p8: lvs1 { };
  481. vreg_lvs2a_1p8: lvs2 { };
  482. };
  483. pmi8998-regulators {
  484. compatible = "qcom,rpm-pmi8998-regulators";
  485. vdd_bob-supply = <&vph_pwr>;
  486. vreg_bob: bob {
  487. regulator-min-microvolt = <3312000>;
  488. regulator-max-microvolt = <3600000>;
  489. };
  490. };
  491. };
  492. &sdhc2 {
  493. status = "okay";
  494. cd-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>;
  495. vmmc-supply = <&vreg_l21a_2p95>;
  496. vqmmc-supply = <&vreg_l13a_2p95>;
  497. pinctrl-names = "default", "sleep";
  498. pinctrl-0 = <&sdc2_on &sdc2_cd>;
  499. pinctrl-1 = <&sdc2_off &sdc2_cd>;
  500. };
  501. &tlmm {
  502. gpio-reserved-ranges = <0 4>, <81 4>;
  503. mdp_vsync_n: mdp-vsync-n {
  504. pins = "gpio10";
  505. function = "mdp_vsync_a";
  506. drive-strength = <2>;
  507. bias-pull-down;
  508. };
  509. nfc_ven: nfc-ven {
  510. pins = "gpio12";
  511. function = "gpio";
  512. bias-disable;
  513. drive-strength = <2>;
  514. output-low;
  515. };
  516. msm_mclk0_default: msm-mclk0-active {
  517. pins = "gpio13";
  518. function = "cam_mclk";
  519. drive-strength = <2>;
  520. bias-disable;
  521. };
  522. msm_mclk1_default: msm-mclk1-active {
  523. pins = "gpio14";
  524. function = "cam_mclk";
  525. drive-strength = <2>;
  526. bias-disable;
  527. };
  528. cci0_default: cci0-default {
  529. pins = "gpio18", "gpio19";
  530. function = "cci_i2c";
  531. bias-disable;
  532. drive-strength = <2>;
  533. };
  534. cci1_default: cci1-default {
  535. pins = "gpio19", "gpio20";
  536. function = "cci_i2c";
  537. bias-disable;
  538. drive-strength = <2>;
  539. };
  540. cam0_vdig_default: cam0-vdig-default {
  541. pins = "gpio21";
  542. function = "gpio";
  543. bias-disable;
  544. drive-strength = <2>;
  545. };
  546. tof_int: tof-int {
  547. pins = "gpio22";
  548. function = "gpio";
  549. bias-pull-up;
  550. drive-strength = <2>;
  551. input-enable;
  552. };
  553. cam1_vdig_default: cam1-vdig-default {
  554. pins = "gpio25";
  555. function = "gpio";
  556. bias-disable;
  557. drive-strength = <2>;
  558. };
  559. usb_extcon_active: usb-extcon-active {
  560. pins = "gpio38";
  561. function = "gpio";
  562. bias-disable;
  563. drive-strength = <16>;
  564. };
  565. tof_reset: tof-reset {
  566. pins = "gpio27";
  567. function = "gpio";
  568. bias-disable;
  569. drive-strength = <2>;
  570. };
  571. hall_sensor0_default: acc-cover-open {
  572. pins = "gpio124";
  573. function = "gpio";
  574. bias-disable;
  575. drive-strength = <2>;
  576. input-enable;
  577. };
  578. ts_int_n: ts-int-n {
  579. pins = "gpio125";
  580. function = "gpio";
  581. drive-strength = <8>;
  582. bias-pull-up;
  583. };
  584. usb_vbus_active: usb-vbus-active {
  585. pins = "gpio128";
  586. function = "gpio";
  587. bias-disable;
  588. drive-strength = <2>;
  589. output-low;
  590. };
  591. ts_vddio_en: ts-vddio-en-default {
  592. pins = "gpio133";
  593. function = "gpio";
  594. bias-disable;
  595. drive-strength = <2>;
  596. output-low;
  597. };
  598. };
  599. /*
  600. * WARNING:
  601. * Disable UFS until card quirks are in to avoid unrecoverable hard-brick
  602. * that would happen as soon as the UFS card gets probed as, without the
  603. * required quirks, the bootloader will be erased right after card probe.
  604. */
  605. &ufshc {
  606. status = "disabled";
  607. };
  608. &ufsphy {
  609. status = "disabled";
  610. };
  611. &usb3 {
  612. status = "okay";
  613. };
  614. &usb3_dwc3 {
  615. /* Force to peripheral until we have Type-C hooked up */
  616. dr_mode = "peripheral";
  617. extcon = <&extcon_usb>;
  618. };
  619. &usb3phy {
  620. status = "okay";
  621. vdda-phy-supply = <&vreg_l1a_0p875>;
  622. vdda-pll-supply = <&vreg_l2a_1p2>;
  623. };