ste-ux500-samsung-skomer.dts 17 KB

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