ste-ux500-samsung-gavini.dts 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Devicetree for the Samsung Galaxy Beam GT-I8530 also known as Gavini.
  4. */
  5. /dts-v1/;
  6. #include "ste-db8500.dtsi"
  7. #include "ste-ab8500.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 Galaxy Beam (GT-I8530)";
  15. compatible = "samsung,gavini", "st-ericsson,u8500";
  16. chosen {
  17. stdout-path = &serial2;
  18. };
  19. battery: battery {
  20. compatible = "samsung,eb585157lu";
  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. /* GPIO193 EN */
  49. gpios = <&gpio6 1 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 for eMMC LDO VMEM_3V3 controlled by GPIO6 */
  60. ldo_3v3_reg: regulator-gpio-ldo-3v3 {
  61. compatible = "regulator-fixed";
  62. /* Supplied in turn by VBAT */
  63. regulator-name = "VMEM_3V3";
  64. regulator-min-microvolt = <3300000>;
  65. regulator-max-microvolt = <3300000>;
  66. gpio = <&gpio0 6 GPIO_ACTIVE_HIGH>;
  67. startup-delay-us = <5000>; // FIXME
  68. enable-active-high;
  69. pinctrl-names = "default";
  70. pinctrl-0 = <&emmc_ldo_en_default_mode>;
  71. };
  72. /*
  73. * External Ricoh "TSP" regulator for the touchscreen.
  74. * One GPIO line controls two voltages of 3.3V and 1.8V
  75. * this line is known as "TSP_LDO_ON1" in the schematics.
  76. */
  77. ldo_tsp_3v3_reg: regulator-gpio-tsp-ldo-3v3 {
  78. compatible = "regulator-fixed";
  79. /* Supplied in turn by VBAT */
  80. regulator-name = "LDO_TSP_A3V3";
  81. regulator-min-microvolt = <3300000>;
  82. regulator-max-microvolt = <3300000>;
  83. /* GPIO94 controls this regulator */
  84. gpio = <&gpio2 30 GPIO_ACTIVE_HIGH>;
  85. /* 70 ms power-on delay */
  86. startup-delay-us = <70000>;
  87. enable-active-high;
  88. pinctrl-names = "default";
  89. pinctrl-0 = <&tsp_ldo_en_default_mode>;
  90. };
  91. ldo_tsp_1v8_reg: regulator-gpio-tsp-ldo-1v8 {
  92. compatible = "regulator-fixed";
  93. /* Supplied in turn by VBAT */
  94. regulator-name = "VREG_TSP_1V8";
  95. regulator-min-microvolt = <1800000>;
  96. regulator-max-microvolt = <1800000>;
  97. /* GPIO94 controls this regulator */
  98. gpio = <&gpio2 30 GPIO_ACTIVE_HIGH>;
  99. /* 70 ms power-on delay */
  100. startup-delay-us = <70000>;
  101. enable-active-high;
  102. pinctrl-names = "default";
  103. pinctrl-0 = <&tsp_ldo_en_default_mode>;
  104. };
  105. /*
  106. * External Ricoh RP152L010B-TR LCD LDO regulator for the display.
  107. * LCD_PWR_EN controls both a 3.0V and 1.8V output.
  108. */
  109. lcd_3v0_reg: regulator-gpio-lcd-3v0 {
  110. compatible = "regulator-fixed";
  111. /* Supplied in turn by VBAT */
  112. regulator-name = "VREG_LCD_3V0";
  113. regulator-min-microvolt = <3000000>;
  114. regulator-max-microvolt = <3000000>;
  115. /* GPIO219 controls this regulator */
  116. gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>;
  117. enable-active-high;
  118. pinctrl-names = "default";
  119. pinctrl-0 = <&lcd_pwr_en_default_mode>;
  120. };
  121. lcd_1v8_reg: regulator-gpio-lcd-1v8 {
  122. compatible = "regulator-fixed";
  123. /* Supplied in turn by VBAT */
  124. regulator-name = "VREG_LCD_1V8";
  125. regulator-min-microvolt = <1800000>;
  126. regulator-max-microvolt = <1800000>;
  127. /* GPIO219 controls this regulator too */
  128. gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>;
  129. enable-active-high;
  130. pinctrl-names = "default";
  131. pinctrl-0 = <&lcd_pwr_en_default_mode>;
  132. };
  133. /*
  134. * This regulator is a GPIO line that drives the Broadcom WLAN
  135. * line WL_REG_ON high and enables the internal regulators
  136. * inside the chip. Unfortunatley it is erroneously named
  137. * WLAN_RST_N on the schematic but it is not a reset line.
  138. *
  139. * The voltage specified here is only used to determine the OCR mask,
  140. * the for the SDIO connector, the chip is actually connected
  141. * directly to VBAT.
  142. */
  143. wl_reg: regulator-gpio-wlan {
  144. compatible = "regulator-fixed";
  145. regulator-name = "WL_REG_ON";
  146. regulator-min-microvolt = <3000000>;
  147. regulator-max-microvolt = <3000000>;
  148. startup-delay-us = <100000>;
  149. /* GPIO215 (WLAN_RST_N to WL_REG_ON) */
  150. gpio = <&gpio6 23 GPIO_ACTIVE_HIGH>;
  151. enable-active-high;
  152. pinctrl-names = "default";
  153. pinctrl-0 = <&wlan_ldo_en_default>;
  154. };
  155. gpio-keys {
  156. compatible = "gpio-keys";
  157. pinctrl-names = "default";
  158. pinctrl-0 = <&gpio_keys_default_mode>;
  159. button-projector {
  160. linux,code = <KEY_SWITCHVIDEOMODE>;
  161. label = "Projector";
  162. /* GPIO32 "Projector On HotKey" */
  163. gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
  164. };
  165. button-home {
  166. linux,code = <KEY_HOME>;
  167. label = "HOME";
  168. /* GPIO91 */
  169. gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
  170. };
  171. button-volup {
  172. linux,code = <KEY_VOLUMEUP>;
  173. label = "VOL+";
  174. /* GPIO67 */
  175. gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
  176. };
  177. button-voldown {
  178. linux,code = <KEY_VOLUMEDOWN>;
  179. label = "VOL-";
  180. /* GPIO92 */
  181. gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
  182. };
  183. };
  184. /* Richtek RT8515GQW Flash LED Driver IC */
  185. flash {
  186. compatible = "richtek,rt8515";
  187. /* GPIO 140 */
  188. enf-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>;
  189. /* GPIO 141 */
  190. ent-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>;
  191. /*
  192. * RFS is 16 kOhm and RTS is 100 kOhm giving
  193. * the flash max current 343mA and torch max
  194. * current 55 mA.
  195. */
  196. richtek,rfs-ohms = <16000>;
  197. richtek,rts-ohms = <100000>;
  198. pinctrl-names = "default";
  199. pinctrl-0 = <&gpio_flash_default_mode>;
  200. led {
  201. function = LED_FUNCTION_FLASH;
  202. color = <LED_COLOR_ID_WHITE>;
  203. flash-max-timeout-us = <250000>;
  204. flash-max-microamp = <343750>;
  205. led-max-microamp = <55000>;
  206. };
  207. };
  208. gpio-leds {
  209. compatible = "gpio-leds";
  210. pinctrl-names = "default";
  211. pinctrl-0 = <&gpio_leds_default_mode>;
  212. used-led {
  213. label = "touchkeys";
  214. /* GPIO68 */
  215. gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>;
  216. default-state = "on";
  217. };
  218. };
  219. ktd259: backlight {
  220. compatible = "kinetic,ktd259";
  221. /* GPIO20 */
  222. enable-gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
  223. /* Default to 13/32 brightness */
  224. default-brightness = <13>;
  225. pinctrl-names = "default";
  226. pinctrl-0 = <&ktd259_backlight_default_mode>;
  227. };
  228. /* Bit-banged I2C on GPIO143 and GPIO144 also called "SUBPMU I2C" */
  229. i2c-gpio-0 {
  230. compatible = "i2c-gpio";
  231. sda-gpios = <&gpio4 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
  232. scl-gpios = <&gpio4 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
  233. pinctrl-names = "default";
  234. pinctrl-0 = <&i2c_gpio_0_default>;
  235. #address-cells = <1>;
  236. #size-cells = <0>;
  237. /* Yamaha YAS530 magnetometer */
  238. magnetometer@2e {
  239. compatible = "yamaha,yas530";
  240. reg = <0x2e>;
  241. /* VDD 3V */
  242. vdd-supply = <&ab8500_ldo_aux1_reg>;
  243. /* IOVDD 1.8V */
  244. iovdd-supply = <&ab8500_ldo_aux2_reg>;
  245. /* GPIO204 COMPASS_RST_N */
  246. reset-gpios = <&gpio6 12 GPIO_ACTIVE_LOW>;
  247. pinctrl-names = "default";
  248. pinctrl-0 = <&yas530_default>;
  249. };
  250. /* TODO: this should also be used by the NCP6914 Camera power management unit */
  251. };
  252. /*
  253. * TODO: See if we can use the PL023 for this instead.
  254. */
  255. spi-gpio-0 {
  256. compatible = "spi-gpio";
  257. /* Clock on GPIO220, pin SCL */
  258. sck-gpios = <&gpio6 28 GPIO_ACTIVE_HIGH>;
  259. /* MOSI on GPIO224, pin SDI "slave data in" */
  260. mosi-gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
  261. /* MISO on GPIO225, pin SDO "slave data out" */
  262. miso-gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
  263. /* Chip select on GPIO223 */
  264. cs-gpios = <&gpio6 31 GPIO_ACTIVE_LOW>;
  265. num-chipselects = <1>;
  266. pinctrl-names = "default";
  267. pinctrl-0 = <&spi_gpio_0_default>;
  268. #address-cells = <1>;
  269. #size-cells = <0>;
  270. panel@0 {
  271. compatible = "samsung,lms397kf04";
  272. /* 300 ns at read cycle -> 3 MHz max speed */
  273. //spi-max-frequency = <3000000>;
  274. spi-max-frequency = <1200000>;
  275. /* TYPE 3: inverse clock polarity and phase */
  276. spi-cpha;
  277. spi-cpol;
  278. reg = <0>;
  279. vci-supply = <&lcd_3v0_reg>;
  280. vccio-supply = <&lcd_1v8_reg>;
  281. /* Reset on GPIO139 */
  282. reset-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
  283. pinctrl-names = "default";
  284. pinctrl-0 = <&panel_default_mode>;
  285. backlight = <&ktd259>;
  286. port {
  287. panel_in: endpoint {
  288. remote-endpoint = <&display_out>;
  289. };
  290. };
  291. };
  292. };
  293. /* Bit-banged I2C on GPIO201 and GPIO202 also called "MOT_I2C" */
  294. i2c-gpio-2 {
  295. compatible = "i2c-gpio";
  296. sda-gpios = <&gpio6 10 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
  297. scl-gpios = <&gpio6 9 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
  298. pinctrl-names = "default";
  299. pinctrl-0 = <&i2c_gpio_2_default>;
  300. #address-cells = <1>;
  301. #size-cells = <0>;
  302. /* TODO: add the Immersion ISA1200 I2C device here */
  303. };
  304. /* Bit-banged I2C on GPIO196 and GPIO197 also called "MPR_I2C" */
  305. i2c-gpio-3 {
  306. compatible = "i2c-gpio";
  307. sda-gpios = <&gpio6 5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
  308. scl-gpios = <&gpio6 4 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
  309. pinctrl-names = "default";
  310. pinctrl-0 = <&i2c_gpio_3_default>;
  311. #address-cells = <1>;
  312. #size-cells = <0>;
  313. /* TODO: add the DPP2601 projector I2C device 0x1b here */
  314. };
  315. soc {
  316. /* External Micro SD slot */
  317. mmc@80126000 {
  318. arm,primecell-periphid = <0x10480180>;
  319. max-frequency = <50000000>;
  320. bus-width = <4>;
  321. cap-sd-highspeed;
  322. cap-mmc-highspeed;
  323. st,sig-pin-fbclk;
  324. full-pwr-cycle;
  325. /* MMC is powered by AUX3 1.2V .. 2.91V */
  326. vmmc-supply = <&ab8500_ldo_aux3_reg>;
  327. /* 2.9 V level translator */
  328. vqmmc-supply = <&sd_level_translator>;
  329. pinctrl-names = "default", "sleep";
  330. pinctrl-0 = <&mc0_a_2_default>;
  331. pinctrl-1 = <&mc0_a_2_sleep>;
  332. /* "flash detect" actually card detect */
  333. cd-gpios = <&gpio6 25 GPIO_ACTIVE_LOW>;
  334. status = "okay";
  335. };
  336. /* WLAN SDIO channel */
  337. mmc@80118000 {
  338. arm,primecell-periphid = <0x10480180>;
  339. max-frequency = <50000000>;
  340. bus-width = <4>;
  341. non-removable;
  342. cap-sd-highspeed;
  343. pinctrl-names = "default", "sleep";
  344. pinctrl-0 = <&mc1_a_2_default>;
  345. pinctrl-1 = <&mc1_a_2_sleep>;
  346. /*
  347. * GPIO-controlled voltage enablement: this drives
  348. * the WL_REG_ON line high when we use this device.
  349. * Represented as regulator to fill OCR mask.
  350. */
  351. vmmc-supply = <&wl_reg>;
  352. #address-cells = <1>;
  353. #size-cells = <0>;
  354. status = "okay";
  355. wifi@1 {
  356. compatible = "brcm,bcm4330-fmac", "brcm,bcm4329-fmac";
  357. reg = <1>;
  358. /* GPIO216 WL_HOST_WAKE */
  359. interrupt-parent = <&gpio6>;
  360. interrupts = <24 IRQ_TYPE_EDGE_FALLING>;
  361. interrupt-names = "host-wake";
  362. pinctrl-names = "default";
  363. pinctrl-0 = <&wlan_default_mode>;
  364. };
  365. };
  366. /* eMMC */
  367. mmc@80005000 {
  368. arm,primecell-periphid = <0x10480180>;
  369. max-frequency = <50000000>;
  370. bus-width = <8>;
  371. non-removable;
  372. cap-mmc-highspeed;
  373. mmc-ddr-1_8v;
  374. no-sdio;
  375. no-sd;
  376. vmmc-supply = <&ldo_3v3_reg>;
  377. pinctrl-names = "default", "sleep";
  378. pinctrl-0 = <&mc2_a_1_default>;
  379. pinctrl-1 = <&mc2_a_1_sleep>;
  380. status = "okay";
  381. };
  382. /* GBF (Bluetooth) UART */
  383. uart@80120000 {
  384. pinctrl-names = "default", "sleep";
  385. pinctrl-0 = <&u0_a_1_default>;
  386. pinctrl-1 = <&u0_a_1_sleep>;
  387. status = "okay";
  388. bluetooth {
  389. compatible = "brcm,bcm4330-bt";
  390. /* GPIO222 rail BT_VREG_EN to BT_REG_ON */
  391. shutdown-gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>;
  392. /* BT_WAKE on GPIO199 */
  393. device-wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
  394. /* BT_HOST_WAKE on GPIO97 */
  395. host-wakeup-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
  396. /* BT_RST_N on GPIO209 */
  397. reset-gpios = <&gpio6 17 GPIO_ACTIVE_LOW>;
  398. pinctrl-names = "default";
  399. pinctrl-0 = <&bluetooth_default_mode>;
  400. };
  401. };
  402. /* GPS UART */
  403. uart@80121000 {
  404. status = "okay";
  405. pinctrl-names = "default", "sleep";
  406. /* CTS/RTS is not used, CTS is repurposed as GPIO */
  407. pinctrl-0 = <&u1rxtx_a_1_default>;
  408. pinctrl-1 = <&u1rxtx_a_1_sleep>;
  409. /* FIXME: add a device for the GPS here */
  410. };
  411. /* Debugging console UART connected to TSU6111RSVR (FSA880) */
  412. uart@80007000 {
  413. status = "okay";
  414. pinctrl-names = "default", "sleep";
  415. pinctrl-0 = <&u2rxtx_c_1_default>;
  416. pinctrl-1 = <&u2rxtx_c_1_sleep>;
  417. };
  418. prcmu@80157000 {
  419. ab8500 {
  420. phy {
  421. pinctrl-names = "default", "sleep";
  422. pinctrl-0 = <&usb_a_1_default>;
  423. pinctrl-1 = <&usb_a_1_sleep>;
  424. };
  425. ab8500_fg {
  426. line-impedance-micro-ohms = <43000>;
  427. };
  428. regulator {
  429. ab8500_ldo_aux1 {
  430. /* Used for VDD for sensors */
  431. regulator-name = "V-SENSORS-VDD";
  432. regulator-min-microvolt = <3000000>;
  433. regulator-max-microvolt = <3000000>;
  434. };
  435. ab8500_ldo_aux2 {
  436. /* Used for VIO for sensors */
  437. regulator-name = "V-SENSORS-VIO";
  438. regulator-min-microvolt = <1800000>;
  439. regulator-max-microvolt = <1800000>;
  440. };
  441. ab8500_ldo_aux3 {
  442. /* Used for voltage for external MMC/SD card */
  443. regulator-name = "V-MMC-SD";
  444. regulator-min-microvolt = <1200000>;
  445. regulator-max-microvolt = <2910000>;
  446. };
  447. };
  448. };
  449. };
  450. /* I2C0 */
  451. i2c@80004000 {
  452. status = "okay";
  453. pinctrl-names = "default", "sleep";
  454. pinctrl-0 = <&i2c0_a_1_default>;
  455. pinctrl-1 = <&i2c0_a_1_sleep>;
  456. /* FIXME: fix the proximity sensor bindings and driver */
  457. proximity@39 {
  458. /* Gavini has the GP2A030S00F proximity sensor */
  459. compatible = "sharp,gp2a030s00f";
  460. clock-frequency = <400000>;
  461. reg = <0x39>;
  462. /* FIXME: GPIO146 provides power on, IR LED? */
  463. };
  464. gyroscope@68 {
  465. compatible = "invensense,mpu3050";
  466. reg = <0x68>;
  467. /* GPIO226 interrupt */
  468. interrupt-parent = <&gpio7>;
  469. interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
  470. mount-matrix = "0", "1", "0",
  471. "1", "0", "0",
  472. "0", "0", "1";
  473. vlogic-supply = <&ab8500_ldo_aux2_reg>; // 1.8V
  474. vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V
  475. pinctrl-names = "default";
  476. pinctrl-0 = <&mpu3050_default>;
  477. /*
  478. * The MPU-3050 acts as a hub for the
  479. * accelerometer.
  480. */
  481. i2c-gate {
  482. #address-cells = <1>;
  483. #size-cells = <0>;
  484. /* Bosch BMA222E accelerometer */
  485. accelerometer@18 {
  486. compatible = "bosch,bma222e";
  487. reg = <0x18>;
  488. mount-matrix = "0", "-1", "0",
  489. "1", "0", "0",
  490. "0", "0", "1";
  491. vddio-supply = <&ab8500_ldo_aux2_reg>; // 1.8V
  492. vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V
  493. };
  494. };
  495. };
  496. };
  497. /* I2C2 "AGC I2C" */
  498. i2c@80128000 {
  499. status = "okay";
  500. pinctrl-names = "default", "sleep";
  501. pinctrl-0 = <&i2c2_b_1_default>;
  502. pinctrl-1 = <&i2c2_b_1_sleep>;
  503. /* Texas Instruments TSU6111 micro USB switch */
  504. usb-switch@25 {
  505. compatible = "ti,tsu6111";
  506. reg = <0x25>;
  507. /* Interrupt JACK_INT_N on GPIO95 */
  508. interrupt-parent = <&gpio2>;
  509. interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
  510. pinctrl-names = "default";
  511. pinctrl-0 = <&tsu6111_default>;
  512. };
  513. };
  514. /* I2C3 */
  515. i2c@80110000 {
  516. status = "okay";
  517. pinctrl-names = "default", "sleep";
  518. pinctrl-0 = <&i2c3_c_2_default>;
  519. pinctrl-1 = <&i2c3_c_2_sleep>;
  520. /* Melfas MMS136 touchscreen */
  521. touchscreen@48 {
  522. compatible = "melfas,mms136";
  523. reg = <0x48>;
  524. /* GPIO218 (TSP_INT_1V8) */
  525. interrupt-parent = <&gpio6>;
  526. interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
  527. /* AVDD is "analog supply", 2.57-3.47 V */
  528. avdd-supply = <&ldo_tsp_3v3_reg>;
  529. /* VDD is "digital supply" 1.71-3.47V */
  530. vdd-supply = <&ldo_tsp_1v8_reg>;
  531. pinctrl-names = "default";
  532. pinctrl-0 = <&tsp_default>;
  533. touchscreen-size-x = <480>;
  534. touchscreen-size-y = <800>;
  535. };
  536. };
  537. mcde@a0350000 {
  538. status = "okay";
  539. pinctrl-names = "default";
  540. pinctrl-0 = <&dpi_default_mode>;
  541. port {
  542. display_out: endpoint {
  543. remote-endpoint = <&panel_in>;
  544. };
  545. };
  546. };
  547. };
  548. };
  549. &pinctrl {
  550. /*
  551. * This extends the MC0_A_2 default config to include
  552. * the card detect GPIO217 line.
  553. */
  554. sdi0 {
  555. mc0_a_2_default {
  556. default_cfg4 {
  557. pins = "GPIO217_AH12"; /* card detect */
  558. ste,config = <&gpio_in_nopull>;
  559. };
  560. };
  561. };
  562. mcde {
  563. dpi_default_mode: dpi_default {
  564. default_mux1 {
  565. /* Mux in all the data lines */
  566. function = "lcd";
  567. groups =
  568. /* Data lines D0-D7 GPIO70..GPIO77 */
  569. "lcd_d0_d7_a_1",
  570. /* Data lines D8-D11 GPIO78..GPIO81 */
  571. "lcd_d8_d11_a_1",
  572. /* Data lines D12-D15 GPIO82..GPIO85 */
  573. "lcd_d12_d15_a_1",
  574. /* Data lines D16-D23 GPIO161..GPIO168 */
  575. "lcd_d16_d23_b_1";
  576. };
  577. default_mux2 {
  578. function = "lcda";
  579. /* Clock line on GPIO150, DE, VSO, HSO on GPIO169..GPIO171 */
  580. groups = "lcdaclk_b_1", "lcda_b_1";
  581. };
  582. /* Input, no pull-up is the default state for pins used for an alt function */
  583. default_cfg1 {
  584. pins = "GPIO150_C14", "GPIO169_D22", "GPIO170_C23", "GPIO171_D23";
  585. ste,config = <&in_nopull>;
  586. };
  587. };
  588. };
  589. /* GPIO for panel reset control */
  590. panel {
  591. panel_default_mode: panel_default {
  592. gavini_cfg1 {
  593. /* Reset line */
  594. pins = "GPIO139_C9";
  595. ste,config = <&gpio_out_lo>;
  596. };
  597. };
  598. };
  599. /* GPIO that enables the LDO regulator for the eMMC */
  600. emmc-ldo {
  601. emmc_ldo_en_default_mode: emmc_ldo_default {
  602. /* LDO enable on GPIO6 */
  603. gavini_cfg1 {
  604. pins = "GPIO6_AF6";
  605. ste,config = <&gpio_out_hi>;
  606. };
  607. };
  608. };
  609. /* GPIO that enables the LDO regulator for the touchscreen */
  610. tsp-ldo {
  611. tsp_ldo_en_default_mode: tsp_ldo_default {
  612. /* LDO enable on GPIO94 */
  613. gavini_cfg1 {
  614. pins = "GPIO94_D7";
  615. ste,config = <&gpio_out_hi>;
  616. };
  617. };
  618. };
  619. /* Reset line for the Yamaha YAS530 magnetometer */
  620. yas530 {
  621. yas530_default: yas530_janice {
  622. janice_cfg1 {
  623. pins = "GPIO204_AF23";
  624. ste,config = <&gpio_out_hi>;
  625. };
  626. };
  627. };
  628. /* Flash and torch */
  629. flash {
  630. gpio_flash_default_mode: flash_default {
  631. janice_cfg1 {
  632. pins = "GPIO140_B11", "GPIO141_C12";
  633. ste,config = <&gpio_out_lo>;
  634. };
  635. };
  636. };
  637. /* GPIO that enables the LDO regulator for the key LED */
  638. gpio-leds {
  639. gpio_leds_default_mode: gpio_leds_default {
  640. /* EN_LED_LDO on GPIO68 */
  641. gavini_cfg1 {
  642. pins = "GPIO68_E1";
  643. ste,config = <&gpio_out_hi>;
  644. };
  645. };
  646. };
  647. backlight {
  648. ktd259_backlight_default_mode: backlight_default {
  649. skomer_cfg1 {
  650. pins = "GPIO20_AB4"; /* LCD_BL_EN */
  651. ste,config = <&gpio_out_lo>;
  652. };
  653. };
  654. };
  655. /* GPIO that enables the LDO regulator for the touchkeys */
  656. touchkey-ldo {
  657. tsp_ldo_on2_default_mode: tsp_ldo_on2_default {
  658. /* TSP_LDO_ON2 on GPIO89 */
  659. gavini_cfg1 {
  660. pins = "GPIO89_E6";
  661. ste,config = <&gpio_out_lo>;
  662. };
  663. };
  664. };
  665. touchkey {
  666. touchkey_default_mode: touchkey_default {
  667. gavini_cfg1 {
  668. /* Interrupt */
  669. pins = "GPIO198_AG25";
  670. ste,config = <&gpio_in_nopull>;
  671. };
  672. gavini_cfg2 {
  673. /* Reset, actually completely unused (not routed) */
  674. pins = "GPIO205_AG23";
  675. ste,config = <&gpio_in_pd>;
  676. };
  677. };
  678. };
  679. /* GPIO that enables the LDO regulator for the LCD display */
  680. lcd-ldo {
  681. lcd_pwr_en_default_mode: lcd_pwr_en_default {
  682. /* LCD_PWR_EN on GPIO219 */
  683. gavini_cfg1 {
  684. pins = "GPIO219_AG10";
  685. ste,config = <&gpio_out_hi>;
  686. };
  687. };
  688. };
  689. /* GPIO that enables the WLAN internal LDO regulators */
  690. wlan-ldo {
  691. wlan_ldo_en_default: wlan_ldo_default {
  692. /* GPIO215 named WLAN_RST_N */
  693. gavini_cfg1 {
  694. pins = "GPIO215_AH13";
  695. ste,config = <&gpio_out_lo>;
  696. };
  697. };
  698. };
  699. /* GPIO that enables the 2.9V SD card level translator */
  700. sd-level-translator {
  701. sd_level_translator_default: sd_level_translator_default {
  702. /* level shifter on GPIO193 */
  703. skomer_cfg1 {
  704. pins = "GPIO193_AH27";
  705. ste,config = <&gpio_out_hi>;
  706. };
  707. };
  708. };
  709. /* GPIO keys */
  710. gpio-keys {
  711. gpio_keys_default_mode: gpio_keys_default {
  712. skomer_cfg1 {
  713. pins = "GPIO32_V2", /* Projector On HotKey */
  714. "GPIO67_G2", /* VOL UP */
  715. "GPIO91_B6", /* HOME */
  716. "GPIO92_D6"; /* VOL DOWN */
  717. ste,config = <&gpio_in_pu>;
  718. };
  719. };
  720. };
  721. /* Interrupt line for the Atmel MXT228 touchscreen */
  722. tsp {
  723. tsp_default: tsp_default {
  724. gavini_cfg1 {
  725. pins = "GPIO218_AH11"; /* TSP_INT_1V8 */
  726. ste,config = <&gpio_in_nopull>;
  727. };
  728. };
  729. };
  730. /* Interrupt line for Invensense MPU3050 gyroscope */
  731. mpu3050 {
  732. mpu3050_default: mpu3050 {
  733. gavini_cfg1 {
  734. /* GPIO226 used for IRQ */
  735. pins = "GPIO226_AF8";
  736. ste,config = <&gpio_in_nopull>;
  737. };
  738. };
  739. };
  740. /* GPIO-based I2C bus for magnetometer and NCP6914 */
  741. i2c-gpio-0 {
  742. i2c_gpio_0_default: i2c_gpio_0 {
  743. gavini_cfg1 {
  744. pins = "GPIO143_D12", "GPIO144_B13";
  745. ste,config = <&gpio_in_nopull>;
  746. };
  747. };
  748. };
  749. /* GPIO-based I2C bus for the Immersion ISA1200 */
  750. i2c-gpio-2 {
  751. i2c_gpio_2_default: i2c_gpio_2 {
  752. gavini_cfg1 {
  753. pins = "GPIO201_AF24", "GPIO202_AF25";
  754. ste,config = <&gpio_in_nopull>;
  755. };
  756. };
  757. };
  758. /* GPIO-based I2C bus for the TI DPP2601 */
  759. i2c-gpio-3 {
  760. i2c_gpio_3_default: i2c_gpio_3 {
  761. gavini_cfg1 {
  762. pins = "GPIO196_AG26", "GPIO197_AH24";
  763. ste,config = <&gpio_in_nopull>;
  764. };
  765. };
  766. };
  767. /* GPIO-based SPI bus for the display */
  768. spi-gpio-0 {
  769. spi_gpio_0_default: spi_gpio_0_d {
  770. gavini_cfg1 {
  771. pins = "GPIO220_AH10", "GPIO223_AH9", "GPIO224_AG9";
  772. ste,config = <&gpio_out_hi>;
  773. };
  774. gavini_cfg2 {
  775. pins = "GPIO225_AG8";
  776. ste,config = <&gpio_in_nopull>;
  777. };
  778. };
  779. spi_gpio_0_sleep: spi_gpio_0_s {
  780. gavini_cfg1 {
  781. pins = "GPIO220_AH10", "GPIO223_AH9",
  782. "GPIO224_AG9", "GPIO225_AG8";
  783. ste,config = <&gpio_out_hi>;
  784. };
  785. gavini_cfg2 {
  786. pins = "GPIO225_AG8";
  787. ste,config = <&gpio_out_lo>;
  788. };
  789. };
  790. };
  791. wlan {
  792. wlan_default_mode: wlan_default {
  793. /* GPIO216 for WL_HOST_WAKE */
  794. gavini_cfg2 {
  795. pins = "GPIO216_AG12";
  796. ste,config = <&gpio_in_pd>;
  797. };
  798. };
  799. };
  800. bluetooth {
  801. bluetooth_default_mode: bluetooth_default {
  802. /* GPIO199 BT_WAKE and GPIO222 BT_VREG_ON */
  803. gavini_cfg1 {
  804. pins = "GPIO199_AH23", "GPIO222_AJ9";
  805. ste,config = <&gpio_out_lo>;
  806. };
  807. /* GPIO97 BT_HOST_WAKE */
  808. gavini_cfg2 {
  809. pins = "GPIO97_D9";
  810. ste,config = <&gpio_in_nopull>;
  811. };
  812. /* GPIO209 BT_RST_N */
  813. gavini_cfg3 {
  814. pins = "GPIO209_AG15";
  815. ste,config = <&gpio_out_hi>;
  816. };
  817. };
  818. };
  819. /* Interrupt line for TI TSU6111 Micro USB switch */
  820. tsu6111 {
  821. tsu6111_default: tsu6111 {
  822. gavini_cfg1 {
  823. /* GPIO95 used for IRQ */
  824. pins = "GPIO95_E8";
  825. ste,config = <&gpio_in_nopull>;
  826. };
  827. };
  828. };
  829. };