ste-ux500-samsung-golden.dts 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /dts-v1/;
  3. #include "ste-db8500.dtsi"
  4. #include "ste-ab8505.dtsi"
  5. #include "ste-dbx5x0-pinctrl.dtsi"
  6. #include <dt-bindings/gpio/gpio.h>
  7. #include <dt-bindings/leds/common.h>
  8. #include <dt-bindings/input/input.h>
  9. #include <dt-bindings/interrupt-controller/irq.h>
  10. /*
  11. * Note: This device tree cannot be booted directly with the Samsung bootloader.
  12. * You need an intermediate, device-tree compatible bootloader
  13. * that locks the L2 cache. Otherwise the kernel will crash after decompression.
  14. *
  15. * There is a port of (mainline) U-Boot, see
  16. * https://wiki.postmarketos.org/wiki/ST-Ericsson_NovaThor_U8500#U-Boot
  17. */
  18. / {
  19. model = "Samsung Galaxy S III mini (GT-I8190)";
  20. compatible = "samsung,golden", "st-ericsson,u8500";
  21. chosen {
  22. stdout-path = &serial2;
  23. };
  24. battery: battery {
  25. compatible = "samsung,eb-l1m7flu";
  26. };
  27. thermal-zones {
  28. battery-thermal {
  29. /* This zone will be polled by the battery temperature code */
  30. polling-delay = <0>;
  31. polling-delay-passive = <0>;
  32. thermal-sensors = <&bat_therm>;
  33. trips {
  34. battery-crit-hi {
  35. temperature = <70000>;
  36. hysteresis = <2000>;
  37. type = "critical";
  38. };
  39. };
  40. };
  41. };
  42. bat_therm: thermistor {
  43. compatible = "samsung,1404-001221";
  44. io-channels = <&gpadc 0x02>; /* BatTemp */
  45. pullup-uv = <1800000>;
  46. pullup-ohm = <230000>;
  47. pulldown-ohm = <0>;
  48. #thermal-sensor-cells = <0>;
  49. };
  50. i2c-gpio-0 {
  51. compatible = "i2c-gpio";
  52. sda-gpios = <&gpio2 14 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
  53. scl-gpios = <&gpio2 13 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
  54. pinctrl-names = "default";
  55. pinctrl-0 = <&i2c_gpio_0_default>;
  56. #address-cells = <1>;
  57. #size-cells = <0>;
  58. touchkey@20 {
  59. compatible = "coreriver,tc360-touchkey";
  60. reg = <0x20>;
  61. vdd-supply = <&ab8500_ldo_aux4_reg>;
  62. vcc-supply = <&ab8500_ldo_aux6_reg>;
  63. interrupt-parent = <&gpio2>;
  64. interrupts = <15 IRQ_TYPE_EDGE_FALLING>;
  65. pinctrl-names = "default";
  66. pinctrl-0 = <&touchkey_default>;
  67. linux,keycodes = <KEY_MENU KEY_BACK>;
  68. };
  69. };
  70. i2c-gpio-1 {
  71. compatible = "i2c-gpio";
  72. sda-gpios = <&gpio4 24 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
  73. scl-gpios = <&gpio4 23 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
  74. pinctrl-names = "default";
  75. pinctrl-0 = <&i2c_gpio_1_default>;
  76. #address-cells = <1>;
  77. #size-cells = <0>;
  78. magnetometer@c {
  79. compatible = "alps,hscdtd008a";
  80. reg = <0x0c>;
  81. avdd-supply = <&ab8500_ldo_aux1_reg>;
  82. dvdd-supply = <&ab8500_ldo_aux8_reg>;
  83. };
  84. };
  85. soc {
  86. /* External Micro SD card slot */
  87. mmc@80126000 {
  88. status = "okay";
  89. arm,primecell-periphid = <0x10480180>;
  90. max-frequency = <100000000>;
  91. bus-width = <4>;
  92. non-removable;
  93. /*
  94. * Unfortunately, there is no way to enable the UHS
  95. * modes due to a limitation of the SD level translator:
  96. * It will either translate to 2.9V or disconnect the
  97. * DATA lines, so switching to 1.8V signal voltage fails.
  98. */
  99. cap-sd-highspeed;
  100. cap-mmc-highspeed;
  101. st,sig-pin-fbclk;
  102. full-pwr-cycle;
  103. vmmc-supply = <&ab8500_ldo_aux3_reg>;
  104. vqmmc-supply = <&sd_level_translator>;
  105. pinctrl-names = "default", "sleep";
  106. pinctrl-0 = <&mc0_a_2_default>;
  107. pinctrl-1 = <&mc0_a_2_sleep>;
  108. };
  109. /* WLAN SDIO */
  110. mmc@80118000 {
  111. status = "okay";
  112. arm,primecell-periphid = <0x10480180>;
  113. max-frequency = <50000000>;
  114. bus-width = <4>;
  115. non-removable;
  116. cap-sd-highspeed;
  117. vmmc-supply = <&wl_reg_on>;
  118. pinctrl-names = "default", "sleep";
  119. pinctrl-0 = <&mc1_a_2_default>;
  120. pinctrl-1 = <&mc1_a_2_sleep>;
  121. #address-cells = <1>;
  122. #size-cells = <0>;
  123. wifi@1 {
  124. compatible = "brcm,bcm4334-fmac", "brcm,bcm4329-fmac";
  125. reg = <1>;
  126. /* GPIO216 (WLAN_HOST_WAKE) */
  127. interrupt-parent = <&gpio6>;
  128. interrupts = <24 IRQ_TYPE_EDGE_FALLING>;
  129. interrupt-names = "host-wake";
  130. pinctrl-names = "default";
  131. pinctrl-0 = <&wlan_default>;
  132. };
  133. };
  134. /* eMMC */
  135. mmc@80005000 {
  136. status = "okay";
  137. arm,primecell-periphid = <0x10480180>;
  138. max-frequency = <100000000>;
  139. bus-width = <8>;
  140. non-removable;
  141. cap-mmc-highspeed;
  142. mmc-ddr-1_8v;
  143. no-sdio;
  144. no-sd;
  145. vmmc-supply = <&vmem_3v3>;
  146. pinctrl-names = "default", "sleep";
  147. pinctrl-0 = <&mc2_a_1_default>;
  148. pinctrl-1 = <&mc2_a_1_sleep>;
  149. };
  150. /* BT UART */
  151. uart@80120000 {
  152. status = "okay";
  153. pinctrl-names = "default", "sleep";
  154. pinctrl-0 = <&u0_a_1_default>;
  155. pinctrl-1 = <&u0_a_1_sleep>;
  156. bluetooth {
  157. /* BCM4334B0 actually */
  158. compatible = "brcm,bcm4330-bt";
  159. /* GPIO222 (BT_VREG_ON) */
  160. shutdown-gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>;
  161. /* GPIO199 (BT_WAKE) */
  162. device-wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
  163. /* GPIO97 (BT_HOST_WAKE) */
  164. host-wakeup-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
  165. pinctrl-names = "default";
  166. pinctrl-0 = <&bluetooth_default>;
  167. };
  168. };
  169. /* GPF UART */
  170. uart@80121000 {
  171. status = "okay";
  172. pinctrl-names = "default", "sleep";
  173. pinctrl-0 = <&u1rxtx_a_1_default &u1ctsrts_a_1_default>;
  174. pinctrl-1 = <&u1rxtx_a_1_sleep &u1ctsrts_a_1_sleep>;
  175. };
  176. /* Debugging console UART */
  177. uart@80007000 {
  178. status = "okay";
  179. pinctrl-names = "default", "sleep";
  180. pinctrl-0 = <&u2rxtx_c_1_default>;
  181. pinctrl-1 = <&u2rxtx_c_1_sleep>;
  182. };
  183. i2c@80004000 {
  184. status = "okay";
  185. pinctrl-names = "default", "sleep";
  186. pinctrl-0 = <&i2c0_a_1_default>;
  187. pinctrl-1 = <&i2c0_a_1_sleep>;
  188. proximity@44 {
  189. compatible = "sharp,gp2ap002s00f";
  190. reg = <0x44>;
  191. /* GPIO146 (PS_INT) */
  192. interrupt-parent = <&gpio4>;
  193. interrupts = <18 IRQ_TYPE_EDGE_FALLING>;
  194. vdd-supply = <&ab8500_ldo_aux1_reg>;
  195. vio-supply = <&ab8500_ldo_aux8_reg>;
  196. pinctrl-names = "default";
  197. pinctrl-0 = <&proximity_default>;
  198. sharp,proximity-far-hysteresis = <0x40>;
  199. sharp,proximity-close-hysteresis = <0x0f>;
  200. };
  201. };
  202. i2c@80128000 {
  203. status = "okay";
  204. pinctrl-names = "default", "sleep";
  205. pinctrl-0 = <&i2c2_b_2_default>;
  206. pinctrl-1 = <&i2c2_b_2_sleep>;
  207. imu@68 {
  208. compatible = "invensense,mpu6050";
  209. reg = <0x68>;
  210. /* GPIO206 (ACC_INT) */
  211. interrupt-parent = <&gpio6>;
  212. interrupts = <14 IRQ_TYPE_EDGE_RISING>;
  213. mount-matrix = "0", "1", "0",
  214. "-1", "0", "0",
  215. "0", "0", "1";
  216. vdd-supply = <&ab8500_ldo_aux1_reg>;
  217. vddio-supply = <&ab8500_ldo_aux8_reg>;
  218. pinctrl-names = "default";
  219. pinctrl-0 = <&imu_default>;
  220. };
  221. };
  222. i2c@80110000 {
  223. status = "okay";
  224. pinctrl-names = "default", "sleep";
  225. pinctrl-0 = <&i2c3_c_2_default>;
  226. pinctrl-1 = <&i2c3_c_2_sleep>;
  227. touchscreen@4a {
  228. compatible = "atmel,maxtouch";
  229. reg = <0x4a>;
  230. /* GPIO218 (TSP_INT_1V8) */
  231. interrupt-parent = <&gpio6>;
  232. interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
  233. /* VDDA is "analog supply", 2.57-3.47 V */
  234. vdda-supply = <&ab8500_ldo_aux2_reg>;
  235. /* VDD is "digital supply" 1.71-3.47V */
  236. vdd-supply = <&ab8500_ldo_aux5_reg>;
  237. pinctrl-names = "default";
  238. pinctrl-0 = <&tsp_default>;
  239. };
  240. };
  241. prcmu@80157000 {
  242. ab8505 {
  243. phy {
  244. pinctrl-names = "default", "sleep";
  245. pinctrl-0 = <&usb_a_1_default>;
  246. pinctrl-1 = <&usb_a_1_sleep>;
  247. };
  248. ab8500_fg {
  249. line-impedance-micro-ohms = <36000>;
  250. };
  251. regulator {
  252. ab8500_ldo_aux1 {
  253. regulator-name = "sensor_3v";
  254. regulator-min-microvolt = <3000000>;
  255. regulator-max-microvolt = <3000000>;
  256. };
  257. ab8500_ldo_aux2 {
  258. regulator-name = "vreg_tsp_a3v3";
  259. regulator-min-microvolt = <3300000>;
  260. regulator-max-microvolt = <3300000>;
  261. };
  262. ab8500_ldo_aux3 {
  263. regulator-name = "vdd_tf_2v91";
  264. };
  265. ab8500_ldo_aux4 {
  266. regulator-name = "key_led_3.3v";
  267. regulator-min-microvolt = <3300000>;
  268. regulator-max-microvolt = <3300000>;
  269. };
  270. ab8500_ldo_aux5 {
  271. regulator-name = "vreg_tsp_1v8";
  272. regulator-min-microvolt = <1800000>;
  273. regulator-max-microvolt = <1800000>;
  274. };
  275. ab8500_ldo_aux6 {
  276. regulator-name = "touch_key_2.2v";
  277. regulator-min-microvolt = <2200000>;
  278. regulator-max-microvolt = <2200000>;
  279. };
  280. ab8500_ldo_aux8 {
  281. regulator-name = "sensor_1v8";
  282. };
  283. };
  284. };
  285. };
  286. mcde@a0350000 {
  287. status = "okay";
  288. pinctrl-names = "default";
  289. pinctrl-0 = <&dsi_default_mode>;
  290. dsi@a0351000 {
  291. panel@0 {
  292. compatible = "samsung,s6e63m0";
  293. reg = <0>;
  294. max-brightness = <15>;
  295. vdd3-supply = <&panel_reg_3v0>;
  296. vci-supply = <&panel_reg_1v8>;
  297. reset-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
  298. /* ESD (electrostatic discharge) detection interrupt */
  299. interrupt-parent = <&gpio2>;
  300. interrupts = <18 IRQ_TYPE_EDGE_RISING>;
  301. interrupt-names = "esd";
  302. pinctrl-names = "default";
  303. pinctrl-0 = <&display_default_mode>;
  304. };
  305. };
  306. };
  307. };
  308. gpio-keys {
  309. compatible = "gpio-keys";
  310. pinctrl-names = "default";
  311. pinctrl-0 = <&gpio_keys_default>;
  312. label = "GPIO Buttons";
  313. volume-up {
  314. label = "Volume Up";
  315. /* GPIO67 (VOL_UP) */
  316. gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
  317. linux,code = <KEY_VOLUMEUP>;
  318. };
  319. volume-down {
  320. label = "Volume Down";
  321. /* GPIO92 (VOL_DOWN) */
  322. gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
  323. linux,code = <KEY_VOLUMEDOWN>;
  324. };
  325. home {
  326. label = "Home";
  327. /* GPIO91 (HOME_KEY) */
  328. gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
  329. linux,code = <KEY_HOMEPAGE>;
  330. };
  331. };
  332. /* Richtek RT8515GQW Flash LED Driver IC */
  333. flash {
  334. compatible = "richtek,rt8515";
  335. /* GPIO 140 */
  336. enf-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>;
  337. /* GPIO 141 */
  338. ent-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>;
  339. /*
  340. * RFS is 16 kOhm and RTS is 100 kOhm giving
  341. * the flash max current 343mA and torch max
  342. * current 55 mA.
  343. */
  344. richtek,rfs-ohms = <16000>;
  345. richtek,rts-ohms = <100000>;
  346. pinctrl-names = "default";
  347. pinctrl-0 = <&gpio_flash_default_mode>;
  348. led {
  349. function = LED_FUNCTION_FLASH;
  350. color = <LED_COLOR_ID_WHITE>;
  351. flash-max-timeout-us = <250000>;
  352. flash-max-microamp = <343750>;
  353. led-max-microamp = <55000>;
  354. };
  355. };
  356. vibrator {
  357. compatible = "gpio-vibrator";
  358. /* GPIO195 (MOT_EN) */
  359. enable-gpios = <&gpio6 3 GPIO_ACTIVE_HIGH>;
  360. pinctrl-names = "default";
  361. pinctrl-0 = <&vibrator_default>;
  362. };
  363. /* External LDO for eMMC */
  364. vmem_3v3: regulator-vmem {
  365. compatible = "regulator-fixed";
  366. regulator-name = "vmem_3v3";
  367. regulator-min-microvolt = <3300000>;
  368. regulator-max-microvolt = <3300000>;
  369. regulator-boot-on;
  370. startup-delay-us = <200>;
  371. /* GPIO223 (MEM_LDO_EN) */
  372. gpio = <&gpio6 31 GPIO_ACTIVE_HIGH>;
  373. enable-active-high;
  374. pinctrl-names = "default";
  375. pinctrl-0 = <&mem_ldo_default>;
  376. };
  377. /* TI TXS0206-29 level translator for 2.9 V */
  378. sd_level_translator: regulator-sd-level-translator {
  379. compatible = "regulator-fixed";
  380. regulator-name = "sd-level-translator";
  381. regulator-min-microvolt = <2900000>;
  382. regulator-max-microvolt = <2900000>;
  383. startup-delay-us = <200>;
  384. /* GPIO87 (TXS0206-29_EN) */
  385. gpios = <&gpio2 23 GPIO_ACTIVE_HIGH>;
  386. enable-active-high;
  387. pinctrl-names = "default";
  388. pinctrl-0 = <&sd_level_translator_default>;
  389. };
  390. /*
  391. * WL_REG_ON takes WLAN out of reset and enables the internal regulators.
  392. * The voltage specified here is only used to determine the OCR mask,
  393. * the BCM chip is actually connected directly to VBAT.
  394. */
  395. wl_reg_on: regulator-wl-reg-on {
  396. compatible = "regulator-fixed";
  397. regulator-name = "wl-reg-on";
  398. regulator-min-microvolt = <3000000>;
  399. regulator-max-microvolt = <3000000>;
  400. startup-delay-us = <100000>;
  401. /* GPIO215 (WLAN_EN) */
  402. gpio = <&gpio6 23 GPIO_ACTIVE_HIGH>;
  403. enable-active-high;
  404. pinctrl-names = "default";
  405. pinctrl-0 = <&wlan_en_default>;
  406. };
  407. /* MIC5366 GPIO-controlled regulator */
  408. panel_reg_1v8: regulator-panel-1v8 {
  409. compatible = "regulator-fixed";
  410. regulator-name = "panel-fixed-supply";
  411. regulator-min-microvolt = <1800000>;
  412. regulator-max-microvolt = <1800000>;
  413. /* GPIO219 */
  414. gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>;
  415. startup-delay-us = <200>;
  416. enable-active-high;
  417. pinctrl-names = "default";
  418. pinctrl-0 = <&panel_reg_default_mode>;
  419. };
  420. /* MIC5366 GPIO-controlled regulator */
  421. panel_reg_3v0: regulator-panel-3v0 {
  422. compatible = "regulator-fixed";
  423. regulator-name = "panel-fixed-supply";
  424. regulator-min-microvolt = <3000000>;
  425. regulator-max-microvolt = <3000000>;
  426. /* GPIO219 */
  427. gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>;
  428. startup-delay-us = <200>;
  429. enable-active-high;
  430. pinctrl-names = "default";
  431. pinctrl-0 = <&panel_reg_default_mode>;
  432. };
  433. };
  434. &pinctrl {
  435. gpio-keys {
  436. gpio_keys_default: gpio_keys_default {
  437. golden_cfg1 {
  438. pins = "GPIO67", /* VOL_UP */
  439. "GPIO91", /* HOME_KEY */
  440. "GPIO92"; /* VOL_DOWN */
  441. ste,config = <&gpio_in_pu>;
  442. };
  443. };
  444. };
  445. i2c-gpio-0 {
  446. i2c_gpio_0_default: i2c_gpio_0 {
  447. golden_cfg1 {
  448. pins = "GPIO77", /* TOUCHKEY_SCL */
  449. "GPIO78"; /* TOUCHKEY_SDA */
  450. ste,config = <&gpio_in_nopull>;
  451. };
  452. };
  453. };
  454. flash {
  455. gpio_flash_default_mode: flash_default {
  456. golden_cfg1 {
  457. pins = "GPIO140_B11", "GPIO141_C12";
  458. ste,config = <&gpio_out_lo>;
  459. };
  460. };
  461. };
  462. i2c-gpio-1 {
  463. i2c_gpio_1_default: i2c_gpio_1 {
  464. golden_cfg1 {
  465. pins = "GPIO151", /* COMP_SCL */
  466. "GPIO152"; /* COMP_SDA */
  467. ste,config = <&gpio_in_nopull>;
  468. };
  469. };
  470. };
  471. touchkey {
  472. touchkey_default: touchkey_default {
  473. golden_cfg1 {
  474. pins = "GPIO79"; /* TOUCHKEY_INT */
  475. ste,config = <&gpio_in_nopull>;
  476. };
  477. };
  478. };
  479. sdi0 {
  480. sd_level_translator_default: sd_level_translator_default {
  481. golden_cfg1 {
  482. pins = "GPIO87_B3"; /* TXS0206-29_EN */
  483. ste,config = <&gpio_out_lo>;
  484. };
  485. };
  486. };
  487. sdi2 {
  488. mem_ldo_default: mem_ldo_default {
  489. golden_cfg1 {
  490. pins = "GPIO223_AH9"; /* MEM_LDO_EN */
  491. ste,config = <&gpio_out_hi>;
  492. };
  493. };
  494. };
  495. mcde {
  496. dsi_default_mode: dsi_default {
  497. default_mux1 {
  498. /* Mux in VSI0 used for DSI TE */
  499. function = "lcd";
  500. groups =
  501. "lcdvsi0_a_1"; /* VSI0 for LCD */
  502. };
  503. default_cfg1 {
  504. pins =
  505. "GPIO68_E1"; /* VSI0 */
  506. ste,config = <&in_nopull>;
  507. };
  508. };
  509. };
  510. display {
  511. display_default_mode: display_default {
  512. golden_cfg1 {
  513. pins = "GPIO139_C9"; /* MIPI_DSI0_RESET_N */
  514. ste,config = <&gpio_out_lo>;
  515. };
  516. golden_cfg2 {
  517. pins = "GPIO82_C1"; /* LDI_ESD_DET */
  518. ste,config = <&gpio_in_pu>;
  519. };
  520. };
  521. panel_reg_default_mode: panel_reg_default {
  522. golden_cfg1 {
  523. pins = "GPIO219_AG10"; /* LCD_PWR_EN */
  524. ste,config = <&gpio_out_lo>;
  525. };
  526. };
  527. };
  528. proximity {
  529. proximity_default: proximity_default {
  530. golden_cfg1 {
  531. pins = "GPIO146_D13"; /* PS_INT */
  532. ste,config = <&gpio_in_nopull>;
  533. };
  534. };
  535. };
  536. imu {
  537. imu_default: imu_default {
  538. golden_cfg1 {
  539. pins = "GPIO206_AG24"; /* ACC_INT */
  540. ste,config = <&gpio_in_pd>;
  541. };
  542. };
  543. };
  544. tsp {
  545. tsp_default: tsp_default {
  546. golden_cfg1 {
  547. pins = "GPIO218_AH11"; /* TSP_INT_1V8 */
  548. ste,config = <&gpio_in_nopull>;
  549. };
  550. };
  551. };
  552. wlan {
  553. wlan_default: wlan_default {
  554. golden_cfg1 {
  555. pins = "GPIO216_AG12"; /* WLAN_HOST_WAKE */
  556. ste,config = <&gpio_in_pd>;
  557. };
  558. };
  559. wlan_en_default: wlan_en_default {
  560. golden_cfg1 {
  561. pins = "GPIO215_AH13"; /* WLAN_EN */
  562. ste,config = <&gpio_out_lo>;
  563. };
  564. };
  565. };
  566. bluetooth {
  567. bluetooth_default: bluetooth_default {
  568. golden_cfg1 {
  569. pins = "GPIO199_AH23", /* BT_WAKE */
  570. "GPIO222_AJ9"; /* BT_VREG_ON */
  571. ste,config = <&gpio_out_lo>;
  572. };
  573. golden_cfg2 {
  574. pins = "GPIO97_D9"; /* BT_HOST_WAKE */
  575. ste,config = <&gpio_in_nopull>;
  576. };
  577. };
  578. };
  579. vibrator {
  580. vibrator_default: vibrator_default {
  581. golden_cfg1 {
  582. pins = "GPIO195_AG28"; /* MOT_EN */
  583. ste,config = <&gpio_out_lo>;
  584. };
  585. };
  586. };
  587. };
  588. &ab8505_gpio {
  589. /* Hog a few default settings */
  590. pinctrl-names = "default";
  591. pinctrl-0 = <&gpio_default>;
  592. gpio {
  593. gpio_default: gpio_default {
  594. golden_mux {
  595. /* Change unused pins to GPIO mode */
  596. function = "gpio";
  597. groups = "gpio3_a_1", /* default: SysClkReq4 */
  598. "gpio14_a_1"; /* default: PWMOut1 */
  599. };
  600. golden_cfg1 {
  601. pins = "GPIO11_B17", "GPIO13_D17", "GPIO50_L4";
  602. bias-disable;
  603. };
  604. };
  605. };
  606. };