ste-ux500-samsung-kyle.dts 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Devicetree for the Samsung Galaxy Amp SGH-I407 also known as Kyle.
  4. *
  5. * The code also refers to "Kyle AT&T" reflecting that this mobile phone
  6. * was customized for the AT&T subsidiary Aio Wireless (All In One) and
  7. * offered by the company in 2013.
  8. */
  9. /dts-v1/;
  10. #include "ste-db8500.dtsi"
  11. #include "ste-ab8505.dtsi"
  12. #include "ste-dbx5x0-pinctrl.dtsi"
  13. #include <dt-bindings/gpio/gpio.h>
  14. #include <dt-bindings/leds/common.h>
  15. #include <dt-bindings/input/input.h>
  16. #include <dt-bindings/interrupt-controller/irq.h>
  17. / {
  18. model = "Samsung Galaxy Amp (SGH-I407)";
  19. compatible = "samsung,kyle", "st-ericsson,u8500";
  20. chosen {
  21. stdout-path = &serial2;
  22. };
  23. battery: battery {
  24. compatible = "samsung,eb425161la";
  25. };
  26. thermal-zones {
  27. battery-thermal {
  28. /* This zone will be polled by the battery temperature code */
  29. polling-delay = <0>;
  30. polling-delay-passive = <0>;
  31. thermal-sensors = <&bat_therm>;
  32. trips {
  33. battery-crit-hi {
  34. temperature = <70000>;
  35. hysteresis = <2000>;
  36. type = "critical";
  37. };
  38. };
  39. };
  40. };
  41. bat_therm: thermistor {
  42. compatible = "samsung,1404-001221";
  43. io-channels = <&gpadc 0x02>; /* BatTemp */
  44. pullup-uv = <1800000>;
  45. pullup-ohm = <230000>;
  46. pulldown-ohm = <0>;
  47. #thermal-sensor-cells = <0>;
  48. };
  49. /* TI TXS0206 level translator for 2.9 V */
  50. sd_level_translator: regulator-gpio {
  51. compatible = "regulator-fixed";
  52. /* GPIO87 EN */
  53. gpios = <&gpio2 23 GPIO_ACTIVE_HIGH>;
  54. enable-active-high;
  55. regulator-name = "sd-level-translator";
  56. regulator-min-microvolt = <2900000>;
  57. regulator-max-microvolt = <2900000>;
  58. regulator-type = "voltage";
  59. startup-delay-us = <200>;
  60. pinctrl-names = "default";
  61. pinctrl-0 = <&sd_level_translator_default>;
  62. };
  63. /* External LDO MIC5366-3.3YMT for eMMC */
  64. ldo_3v3_reg: regulator-gpio-ldo-3v3 {
  65. compatible = "regulator-fixed";
  66. regulator-name = "en-3v3-fixed-supply";
  67. regulator-min-microvolt = <3300000>;
  68. regulator-max-microvolt = <3300000>;
  69. gpio = <&gpio6 31 GPIO_ACTIVE_HIGH>;
  70. startup-delay-us = <5000>;
  71. enable-active-high;
  72. pinctrl-names = "default";
  73. pinctrl-0 = <&emmc_ldo_en_default_mode>;
  74. };
  75. /*
  76. * External Ricoh RP152L010B-TR LCD LDO regulator for the display.
  77. * LCD_PWR_EN controls both a 3.0V and 1.8V output.
  78. */
  79. lcd_3v0_reg: regulator-gpio-lcd-3v0 {
  80. compatible = "regulator-fixed";
  81. /* Supplied in turn by VBAT */
  82. regulator-name = "VREG_LCD_3V0";
  83. regulator-min-microvolt = <3000000>;
  84. regulator-max-microvolt = <3000000>;
  85. /* GPIO219 controls this regulator */
  86. gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>;
  87. enable-active-high;
  88. pinctrl-names = "default";
  89. pinctrl-0 = <&lcd_pwr_en_default_mode>;
  90. };
  91. lcd_1v8_reg: regulator-gpio-lcd-1v8 {
  92. compatible = "regulator-fixed";
  93. /* Supplied in turn by VBAT */
  94. regulator-name = "VREG_LCD_1V8";
  95. regulator-min-microvolt = <1800000>;
  96. regulator-max-microvolt = <1800000>;
  97. /* GPIO219 controls this regulator too */
  98. gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>;
  99. enable-active-high;
  100. pinctrl-names = "default";
  101. pinctrl-0 = <&lcd_pwr_en_default_mode>;
  102. };
  103. wlan_en: regulator-gpio-wlan-en {
  104. compatible = "regulator-fixed";
  105. regulator-name = "wl-reg-on";
  106. regulator-min-microvolt = <3000000>;
  107. regulator-max-microvolt = <3000000>;
  108. startup-delay-us = <200000>;
  109. /* GPIO215 WLAN_EN */
  110. gpio = <&gpio6 23 GPIO_ACTIVE_HIGH>;
  111. enable-active-high;
  112. pinctrl-names = "default";
  113. pinctrl-0 = <&wlan_en_default_mode>;
  114. };
  115. vibrator {
  116. compatible = "gpio-vibrator";
  117. enable-gpios = <&gpio6 3 GPIO_ACTIVE_HIGH>;
  118. pinctrl-names = "default";
  119. pinctrl-0 = <&vibrator_default>;
  120. };
  121. gpio-keys {
  122. compatible = "gpio-keys";
  123. pinctrl-names = "default";
  124. pinctrl-0 = <&gpio_keys_default_mode>;
  125. button-home {
  126. linux,code = <KEY_HOME>;
  127. label = "HOME";
  128. /* GPIO91 */
  129. gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
  130. };
  131. button-volup {
  132. linux,code = <KEY_VOLUMEUP>;
  133. label = "VOL+";
  134. /* GPIO67 */
  135. gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
  136. };
  137. button-voldown {
  138. linux,code = <KEY_VOLUMEDOWN>;
  139. label = "VOL-";
  140. /* GPIO92 */
  141. gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
  142. };
  143. };
  144. ktd253: backlight {
  145. compatible = "kinetic,ktd253";
  146. /* GPIO 69 */
  147. enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
  148. /* Default to 13/32 brightness */
  149. default-brightness = <13>;
  150. pinctrl-names = "default";
  151. pinctrl-0 = <&gpio_backlight_default_mode>;
  152. };
  153. /* Richtek RT8515GQW Flash LED Driver IC */
  154. flash {
  155. compatible = "richtek,rt8515";
  156. /* GPIO 140 */
  157. enf-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>;
  158. /* GPIO 141 */
  159. ent-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>;
  160. /*
  161. * RFS is 16 kOhm and RTS is 100 kOhm giving
  162. * the flash max current 343mA and torch max
  163. * current 55 mA.
  164. */
  165. richtek,rfs-ohms = <16000>;
  166. richtek,rts-ohms = <100000>;
  167. pinctrl-names = "default";
  168. pinctrl-0 = <&gpio_flash_default_mode>;
  169. led {
  170. function = LED_FUNCTION_FLASH;
  171. color = <LED_COLOR_ID_WHITE>;
  172. flash-max-timeout-us = <250000>;
  173. flash-max-microamp = <343750>;
  174. led-max-microamp = <55000>;
  175. };
  176. };
  177. i2c-gpio-0 {
  178. compatible = "i2c-gpio";
  179. sda-gpios = <&gpio4 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
  180. scl-gpios = <&gpio4 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
  181. pinctrl-names = "default";
  182. pinctrl-0 = <&i2c_gpio_0_default>;
  183. #address-cells = <1>;
  184. #size-cells = <0>;
  185. /* TODO: this should be used by the NCP6914 Camera power management unit */
  186. };
  187. i2c-gpio-1 {
  188. compatible = "i2c-gpio";
  189. sda-gpios = <&gpio4 24 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
  190. scl-gpios = <&gpio4 23 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
  191. pinctrl-names = "default";
  192. pinctrl-0 = <&i2c_gpio_1_default>;
  193. #address-cells = <1>;
  194. #size-cells = <0>;
  195. magnetometer@c {
  196. compatible = "alps,hscdtd008a";
  197. reg = <0x0c>;
  198. avdd-supply = <&ab8500_ldo_aux1_reg>;
  199. dvdd-supply = <&ab8500_ldo_aux6_reg>;
  200. };
  201. };
  202. soc {
  203. // External Micro SD slot
  204. mmc@80126000 {
  205. arm,primecell-periphid = <0x10480180>;
  206. max-frequency = <100000000>;
  207. bus-width = <4>;
  208. cap-sd-highspeed;
  209. cap-mmc-highspeed;
  210. st,sig-pin-fbclk;
  211. full-pwr-cycle;
  212. vmmc-supply = <&ab8500_ldo_aux3_reg>;
  213. vqmmc-supply = <&sd_level_translator>;
  214. pinctrl-names = "default", "sleep";
  215. pinctrl-0 = <&mc0_a_1_default>;
  216. pinctrl-1 = <&mc0_a_1_sleep>;
  217. cd-gpios = <&gpio6 25 GPIO_ACTIVE_LOW>; // GPIO217
  218. status = "okay";
  219. };
  220. // WLAN SDIO channel
  221. mmc@80118000 {
  222. arm,primecell-periphid = <0x10480180>;
  223. max-frequency = <50000000>;
  224. bus-width = <4>;
  225. non-removable;
  226. cap-sd-highspeed;
  227. vmmc-supply = <&wlan_en>;
  228. pinctrl-names = "default", "sleep";
  229. pinctrl-0 = <&mc1_a_2_default>;
  230. pinctrl-1 = <&mc1_a_2_sleep>;
  231. status = "okay";
  232. #address-cells = <1>;
  233. #size-cells = <0>;
  234. wifi@1 {
  235. compatible = "brcm,bcm4334-fmac", "brcm,bcm4329-fmac";
  236. reg = <1>;
  237. /* GPIO216 WL_HOST_WAKE */
  238. interrupt-parent = <&gpio6>;
  239. interrupts = <24 IRQ_TYPE_EDGE_FALLING>;
  240. interrupt-names = "host-wake";
  241. pinctrl-names = "default";
  242. pinctrl-0 = <&wlan_default_mode>;
  243. };
  244. };
  245. /*
  246. * eMMC seems to be mostly Samsung KLM4G1YE4C "4YMD1R"
  247. */
  248. mmc@80005000 {
  249. arm,primecell-periphid = <0x10480180>;
  250. max-frequency = <100000000>;
  251. bus-width = <8>;
  252. non-removable;
  253. cap-mmc-highspeed;
  254. mmc-ddr-1_8v;
  255. no-sdio;
  256. no-sd;
  257. /* From datasheet page 26 figure 9: 300 ms set-up time for 4GB */
  258. post-power-on-delay-ms = <300>;
  259. vmmc-supply = <&ldo_3v3_reg>;
  260. pinctrl-names = "default", "sleep";
  261. pinctrl-0 = <&mc2_a_1_default>;
  262. pinctrl-1 = <&mc2_a_1_sleep>;
  263. status = "okay";
  264. };
  265. /* GBF (Bluetooth) UART */
  266. uart@80120000 {
  267. pinctrl-names = "default", "sleep";
  268. pinctrl-0 = <&u0_a_1_default>;
  269. pinctrl-1 = <&u0_a_1_sleep>;
  270. status = "okay";
  271. bluetooth {
  272. /* BCM4334B0 actually */
  273. compatible = "brcm,bcm4330-bt";
  274. shutdown-gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>;
  275. device-wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
  276. host-wakeup-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
  277. pinctrl-names = "default";
  278. pinctrl-0 = <&bluetooth_default_mode>;
  279. };
  280. };
  281. /* GPF UART */
  282. uart@80121000 {
  283. status = "okay";
  284. pinctrl-names = "default", "sleep";
  285. pinctrl-0 = <&u1rxtx_a_1_default &u1ctsrts_a_1_default>;
  286. pinctrl-1 = <&u1rxtx_a_1_sleep &u1ctsrts_a_1_sleep>;
  287. };
  288. /* Debugging console UART connected to AB8505 USB */
  289. uart@80007000 {
  290. status = "okay";
  291. pinctrl-names = "default", "sleep";
  292. pinctrl-0 = <&u2rxtx_c_1_default>;
  293. pinctrl-1 = <&u2rxtx_c_1_sleep>;
  294. };
  295. prcmu@80157000 {
  296. ab8505 {
  297. phy {
  298. pinctrl-names = "default", "sleep";
  299. pinctrl-0 = <&usb_a_1_default>;
  300. pinctrl-1 = <&usb_a_1_sleep>;
  301. };
  302. ab8500_fg {
  303. line-impedance-micro-ohms = <36000>;
  304. };
  305. regulator {
  306. ab8500_ldo_aux1 {
  307. /* Used for VDD for sensors */
  308. regulator-name = "AUX1";
  309. regulator-min-microvolt = <3000000>;
  310. regulator-max-microvolt = <3300000>;
  311. };
  312. ab8500_ldo_aux2 {
  313. /* Supplies the MMS touchscreen only with 3.3V */
  314. regulator-name = "AUX2";
  315. regulator-min-microvolt = <3300000>;
  316. regulator-max-microvolt = <3300000>;
  317. };
  318. ab8500_ldo_aux3 {
  319. /* Used for voltage for external MMC/SD card */
  320. regulator-name = "AUX3";
  321. regulator-min-microvolt = <1100000>;
  322. regulator-max-microvolt = <3300000>;
  323. };
  324. ab8500_ldo_aux4 {
  325. regulator-name = "AUX4";
  326. /* Hammer to 3.3V for the touchscreen */
  327. regulator-min-microvolt = <3300000>;
  328. regulator-max-microvolt = <3300000>;
  329. };
  330. ab8500_ldo_aux5 {
  331. regulator-name = "AUX5";
  332. /* 1.8V for the touchscreen */
  333. regulator-min-microvolt = <1800000>;
  334. regulator-max-microvolt = <1800000>;
  335. };
  336. ab8500_ldo_aux6 {
  337. regulator-name = "AUX6";
  338. /* Used by sensors for 1.8 V in R0.1+ */
  339. regulator-min-microvolt = <1800000>;
  340. regulator-max-microvolt = <1800000>;
  341. };
  342. ab8500_ldo_aux8 {
  343. /* Unused */
  344. regulator-name = "AUX8";
  345. };
  346. };
  347. };
  348. };
  349. /* I2C0 */
  350. i2c@80004000 {
  351. status = "okay";
  352. pinctrl-names = "default", "sleep";
  353. pinctrl-0 = <&i2c0_a_1_default>;
  354. pinctrl-1 = <&i2c0_a_1_sleep>;
  355. proximity@44 {
  356. compatible = "sharp,gp2ap002s00f";
  357. clock-frequency = <400000>;
  358. reg = <0x44>;
  359. interrupt-parent = <&gpio4>;
  360. interrupts = <18 IRQ_TYPE_EDGE_FALLING>;
  361. vdd-supply = <&ab8500_ldo_aux1_reg>;
  362. vio-supply = <&ab8500_ldo_aux6_reg>;
  363. pinctrl-names = "default";
  364. pinctrl-0 = <&gp2ap002_kyle_default>;
  365. sharp,proximity-far-hysteresis = /bits/ 8 <0x2f>;
  366. sharp,proximity-close-hysteresis = /bits/ 8 <0x0f>;
  367. };
  368. };
  369. /* I2C2 */
  370. i2c@80128000 {
  371. status = "okay";
  372. pinctrl-names = "default", "sleep";
  373. pinctrl-0 = <&i2c2_b_2_default>;
  374. pinctrl-1 = <&i2c2_b_2_sleep>;
  375. accel@18 {
  376. compatible = "bosch,bma254";
  377. clock-frequency = <400000>;
  378. reg = <0x18>;
  379. mount-matrix = "-1", "0", "0",
  380. "0", "-1", "0",
  381. "0", "0", "-1";
  382. vdd-supply = <&ab8500_ldo_aux1_reg>;
  383. vddio-supply = <&ab8500_ldo_aux6_reg>;
  384. };
  385. };
  386. /* I2C3 */
  387. i2c@80110000 {
  388. status = "okay";
  389. pinctrl-names = "default", "sleep";
  390. pinctrl-0 = <&i2c3_c_2_default>;
  391. pinctrl-1 = <&i2c3_c_2_sleep>;
  392. /* Melfas MMS134S touchscreen */
  393. touchscreen@48 {
  394. compatible = "melfas,mms134s";
  395. reg = <0x48>;
  396. /* GPIO218 for IRQ */
  397. interrupt-parent = <&gpio6>;
  398. interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
  399. /* AVDD is "analog supply", 2.57-3.47 V */
  400. avdd-supply = <&ab8500_ldo_aux2_reg>;
  401. /* VDD is "digital supply" 1.71-3.47V */
  402. vdd-supply = <&ab8500_ldo_aux5_reg>;
  403. touchscreen-size-x = <480>;
  404. touchscreen-size-y = <800>;
  405. pinctrl-names = "default";
  406. pinctrl-0 = <&mms134s_kyle_default>;
  407. };
  408. };
  409. mcde@a0350000 {
  410. status = "okay";
  411. pinctrl-names = "default";
  412. pinctrl-0 = <&dsi_default_mode>;
  413. dsi@a0351000 {
  414. panel {
  415. /*
  416. * NT35510-based Hydis HVA40WV1
  417. * Apparently some Kyle models can have a NT35512 fitted
  418. * here instead. In that case the boot loader needs to
  419. * modify this compatible.
  420. */
  421. compatible = "hydis,hva40wv1", "novatek,nt35510";
  422. reg = <0>;
  423. /* v_lcd_3v0 2.3-4.8V */
  424. vdd-supply = <&lcd_3v0_reg>;
  425. /* v_lcd_1v8 1.65-3.3V */
  426. vddi-supply = <&lcd_1v8_reg>;
  427. /* GPIO 139 */
  428. reset-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
  429. pinctrl-names = "default";
  430. pinctrl-0 = <&display_default_mode>;
  431. backlight = <&ktd253>;
  432. };
  433. };
  434. };
  435. };
  436. };
  437. &pinctrl {
  438. /*
  439. * This extends the MC0_A_1 default config to include
  440. * the card detect GPIO217 line.
  441. */
  442. sdi0 {
  443. mc0_a_1_default {
  444. default_cfg1 {
  445. /* GPIO18, 19 & 20 unused so pull down */
  446. ste,config = <&gpio_in_pd>;
  447. };
  448. default_cfg4 {
  449. pins = "GPIO217_AH12"; /* card detect */
  450. ste,config = <&gpio_in_pd>;
  451. };
  452. };
  453. };
  454. mcde {
  455. dsi_default_mode: dsi_default {
  456. default_mux1 {
  457. /* Mux in VSI0 used for DSI TE */
  458. function = "lcd";
  459. groups = "lcdvsi0_a_1"; /* VSI0 for LCD */
  460. };
  461. default_cfg1 {
  462. pins = "GPIO68_E1"; /* VSI0 */
  463. ste,config = <&in_nopull>;
  464. };
  465. };
  466. };
  467. /* Two GPIO lines used by the display */
  468. display {
  469. display_default_mode: display_default {
  470. kyle_cfg1 {
  471. /*
  472. * OLED DETECT or check_pba, this appears to be high
  473. * on "PBA" which I guess is "prototype board A".
  474. */
  475. pins = "GPIO93_B7";
  476. ste,config = <&gpio_in_nopull>;
  477. };
  478. kyle_cfg2 {
  479. pins = "GPIO139_C9";
  480. /*
  481. * MIPI_DSI0_RESET_N resets the display, leave high
  482. * (de-asserted) so we only assert reset explicitly
  483. * from the display driver.
  484. */
  485. ste,config = <&gpio_out_hi>;
  486. };
  487. };
  488. };
  489. /* GPIO that enables the LDO regulator for the LCD display */
  490. lcd-ldo {
  491. lcd_pwr_en_default_mode: lcd_pwr_en_default {
  492. /* LCD_PWR_EN on GPIO219 */
  493. kyle_cfg1 {
  494. pins = "GPIO219_AG10";
  495. ste,config = <&gpio_out_hi>;
  496. };
  497. };
  498. };
  499. backlight {
  500. gpio_backlight_default_mode: backlight_default {
  501. kyle_cfg1 {
  502. pins = "GPIO69_E2"; /* LCD_BL_CTRL */
  503. ste,config = <&gpio_out_lo>;
  504. };
  505. };
  506. };
  507. flash {
  508. gpio_flash_default_mode: flash_default {
  509. kyle_cfg1 {
  510. pins = "GPIO140_B11", "GPIO141_C12";
  511. ste,config = <&gpio_out_lo>;
  512. };
  513. };
  514. };
  515. /* GPIO that enables the 2.9V SD card level translator */
  516. sd-level-translator {
  517. sd_level_translator_default: sd_level_translator_default {
  518. /* level shifter on GPIO87 */
  519. kyle_cfg1 {
  520. pins = "GPIO87_B3";
  521. ste,config = <&gpio_out_hi>;
  522. };
  523. };
  524. };
  525. /* GPIO that enables the LDO regulator for the eMMC */
  526. emmc-ldo {
  527. emmc_ldo_en_default_mode: emmc_ldo_default {
  528. /* LDO enable on GPIO223 */
  529. kyle_cfg1 {
  530. pins = "GPIO223_AH9";
  531. ste,config = <&gpio_out_hi>;
  532. };
  533. };
  534. };
  535. /* GPIO keys */
  536. gpio-keys {
  537. gpio_keys_default_mode: gpio_keys_default {
  538. kyle_cfg1 {
  539. pins = "GPIO67_G2", /* VOL UP */
  540. "GPIO91_B6", /* HOME */
  541. "GPIO92_D6"; /* VOL DOWN */
  542. ste,config = <&gpio_in_pu>;
  543. };
  544. };
  545. };
  546. /* Interrupt line for light/proximity sensor GP2AP002 */
  547. gp2ap002 {
  548. gp2ap002_kyle_default: gp2ap002_kyle {
  549. kyle_cfg1 {
  550. pins = "GPIO146_D13";
  551. ste,config = <&gpio_in_nopull>;
  552. };
  553. };
  554. };
  555. /* GPIO-based I2C bus for NCP6914 */
  556. i2c-gpio-0 {
  557. i2c_gpio_0_default: i2c_gpio_0 {
  558. kyle_cfg1 {
  559. pins = "GPIO143_D12", "GPIO144_B13";
  560. ste,config = <&gpio_in_nopull>;
  561. };
  562. };
  563. };
  564. /* GPIO-based I2C bus for ALPS HSCD compass */
  565. i2c-gpio-1 {
  566. i2c_gpio_1_default: i2c_gpio_1 {
  567. kyle_cfg1 {
  568. pins = "GPIO151_B17", "GPIO152_D16";
  569. ste,config = <&gpio_in_nopull>;
  570. };
  571. };
  572. };
  573. wlan {
  574. wlan_default_mode: wlan_default {
  575. kyle_cfg1 {
  576. pins = "GPIO216_AG12";
  577. ste,config = <&gpio_in_pd>;
  578. };
  579. };
  580. wlan_en_default_mode: wlan_en_default {
  581. kyle_cfg2 {
  582. pins = "GPIO215_AH13";
  583. ste,config = <&gpio_out_lo>;
  584. };
  585. };
  586. };
  587. bluetooth {
  588. bluetooth_default_mode: bluetooth_default {
  589. kyle_cfg1 {
  590. pins = "GPIO199_AH23", "GPIO222_AJ9";
  591. ste,config = <&gpio_out_lo>;
  592. };
  593. kyle_cfg2 {
  594. pins = "GPIO97_D9";
  595. ste,config = <&gpio_in_nopull>;
  596. };
  597. };
  598. };
  599. vibrator {
  600. vibrator_default: vibrator_default {
  601. kyle_cfg1 {
  602. pins = "GPIO195_AG28"; /* MOT_EN */
  603. ste,config = <&gpio_out_lo>;
  604. };
  605. };
  606. };
  607. /* Interrupt line for the Melfas MMS134S touchscreen */
  608. touchscreen {
  609. mms134s_kyle_default: mms134s_kyle {
  610. kyle_cfg1 {
  611. pins = "GPIO218_AH11";
  612. ste,config = <&gpio_in_nopull>;
  613. };
  614. };
  615. };
  616. };
  617. &ab8505_gpio {
  618. /* Hog a few default settings */
  619. pinctrl-names = "default";
  620. pinctrl-0 = <&gpio_default>;
  621. gpio {
  622. gpio_default: gpio_default {
  623. kyle_mux {
  624. /* Change unused pins to GPIO mode */
  625. function = "gpio";
  626. groups = "gpio3_a_1", /* default: SysClkReq4 */
  627. "gpio14_a_1"; /* default: PWMOut1 */
  628. };
  629. kyle_cfg1 {
  630. pins = "GPIO11_B17", "GPIO13_D17", "GPIO50_L4";
  631. bias-disable;
  632. };
  633. };
  634. };
  635. };