ste-href-family-pinctrl.dtsi 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745
  1. /*
  2. * Copyright 2013 Linaro Ltd.
  3. *
  4. * The code contained herein is licensed under the GNU General Public
  5. * License. You may obtain a copy of the GNU General Public License
  6. * Version 2 or later at the following locations:
  7. *
  8. * http://www.opensource.org/licenses/gpl-license.html
  9. * http://www.gnu.org/copyleft/gpl.html
  10. */
  11. #include "ste-nomadik-pinctrl.dtsi"
  12. / {
  13. soc {
  14. pinctrl {
  15. /* Settings for all UART default and sleep states */
  16. uart0 {
  17. uart0_default_mode: uart0_default {
  18. default_mux {
  19. ste,function = "u0";
  20. ste,pins = "u0_a_1";
  21. };
  22. default_cfg1 {
  23. ste,pins = "GPIO0_AJ5", "GPIO2_AH4"; /* CTS+RXD */
  24. ste,config = <&in_pu>;
  25. };
  26. default_cfg2 {
  27. ste,pins = "GPIO1_AJ3", "GPIO3_AH3"; /* RTS+TXD */
  28. ste,config = <&out_hi>;
  29. };
  30. };
  31. uart0_sleep_mode: uart0_sleep {
  32. sleep_cfg1 {
  33. ste,pins = "GPIO0_AJ5", "GPIO2_AH4"; /* CTS+RXD */
  34. ste,config = <&slpm_in_wkup_pdis>;
  35. };
  36. sleep_cfg2 {
  37. ste,pins = "GPIO1_AJ3"; /* RTS */
  38. ste,config = <&slpm_out_hi_wkup_pdis>;
  39. };
  40. sleep_cfg3 {
  41. ste,pins = "GPIO3_AH3"; /* TXD */
  42. ste,config = <&slpm_out_wkup_pdis>;
  43. };
  44. };
  45. };
  46. uart1 {
  47. uart1_default_mode: uart1_default {
  48. default_mux {
  49. ste,function = "u1";
  50. ste,pins = "u1rxtx_a_1";
  51. };
  52. default_cfg1 {
  53. ste,pins = "GPIO4_AH6"; /* RXD */
  54. ste,config = <&in_pu>;
  55. };
  56. default_cfg2 {
  57. ste,pins = "GPIO5_AG6"; /* TXD */
  58. ste,config = <&out_hi>;
  59. };
  60. };
  61. uart1_sleep_mode: uart1_sleep {
  62. sleep_cfg1 {
  63. ste,pins = "GPIO4_AH6"; /* RXD */
  64. ste,config = <&slpm_in_wkup_pdis>;
  65. };
  66. sleep_cfg2 {
  67. ste,pins = "GPIO5_AG6"; /* TXD */
  68. ste,config = <&slpm_out_wkup_pdis>;
  69. };
  70. };
  71. };
  72. uart2 {
  73. uart2_default_mode: uart2_default {
  74. default_mux {
  75. ste,function = "u2";
  76. ste,pins = "u2rxtx_c_1";
  77. };
  78. default_cfg1 {
  79. ste,pins = "GPIO29_W2"; /* RXD */
  80. ste,config = <&in_pu>;
  81. };
  82. default_cfg2 {
  83. ste,pins = "GPIO30_W3"; /* TXD */
  84. ste,config = <&out_hi>;
  85. };
  86. };
  87. uart2_sleep_mode: uart2_sleep {
  88. sleep_cfg1 {
  89. ste,pins = "GPIO29_W2"; /* RXD */
  90. ste,config = <&in_wkup_pdis>;
  91. };
  92. sleep_cfg2 {
  93. ste,pins = "GPIO30_W3"; /* TXD */
  94. ste,config = <&out_wkup_pdis>;
  95. };
  96. };
  97. };
  98. /* Settings for all I2C default and sleep states */
  99. i2c0 {
  100. i2c0_default_mode: i2c_default {
  101. default_mux {
  102. ste,function = "i2c0";
  103. ste,pins = "i2c0_a_1";
  104. };
  105. default_cfg1 {
  106. ste,pins = "GPIO147_C15", "GPIO148_B16"; /* SDA/SCL */
  107. ste,config = <&in_pu>;
  108. };
  109. };
  110. i2c0_sleep_mode: i2c_sleep {
  111. sleep_cfg1 {
  112. ste,pins = "GPIO147_C15", "GPIO148_B16"; /* SDA/SCL */
  113. ste,config = <&slpm_in_wkup_pdis>;
  114. };
  115. };
  116. };
  117. i2c1 {
  118. i2c1_default_mode: i2c_default {
  119. default_mux {
  120. ste,function = "i2c1";
  121. ste,pins = "i2c1_b_2";
  122. };
  123. default_cfg1 {
  124. ste,pins = "GPIO16_AD3", "GPIO17_AD4"; /* SDA/SCL */
  125. ste,config = <&in_pu>;
  126. };
  127. };
  128. i2c1_sleep_mode: i2c_sleep {
  129. sleep_cfg1 {
  130. ste,pins = "GPIO16_AD3", "GPIO17_AD4"; /* SDA/SCL */
  131. ste,config = <&slpm_in_wkup_pdis>;
  132. };
  133. };
  134. };
  135. i2c2 {
  136. i2c2_default_mode: i2c_default {
  137. default_mux {
  138. ste,function = "i2c2";
  139. ste,pins = "i2c2_b_2";
  140. };
  141. default_cfg1 {
  142. ste,pins = "GPIO10_AF5", "GPIO11_AG4"; /* SDA/SCL */
  143. ste,config = <&in_pu>;
  144. };
  145. };
  146. i2c2_sleep_mode: i2c_sleep {
  147. sleep_cfg1 {
  148. ste,pins = "GPIO10_AF5", "GPIO11_AG4"; /* SDA/SCL */
  149. ste,config = <&slpm_in_wkup_pdis>;
  150. };
  151. };
  152. };
  153. i2c3 {
  154. i2c3_default_mode: i2c_default {
  155. default_mux {
  156. ste,function = "i2c3";
  157. ste,pins = "i2c3_c_2";
  158. };
  159. default_cfg1 {
  160. ste,pins = "GPIO229_AG7", "GPIO230_AF7"; /* SDA/SCL */
  161. ste,config = <&in_pu>;
  162. };
  163. };
  164. i2c3_sleep_mode: i2c_sleep {
  165. sleep_cfg1 {
  166. ste,pins = "GPIO229_AG7", "GPIO230_AF7"; /* SDA/SCL */
  167. ste,config = <&slpm_in_wkup_pdis>;
  168. };
  169. };
  170. };
  171. /*
  172. * Activating I2C4 will conflict with UART1 about the same pins so do not
  173. * enable I2C4 and UART1 at the same time.
  174. */
  175. i2c4 {
  176. i2c4_default_mode: i2c_default {
  177. default_mux {
  178. ste,function = "i2c4";
  179. ste,pins = "i2c4_b_1";
  180. };
  181. default_cfg1 {
  182. ste,pins = "GPIO4_AH6", "GPIO5_AG6"; /* SDA/SCL */
  183. ste,config = <&in_pu>;
  184. };
  185. };
  186. i2c4_sleep_mode: i2c_sleep {
  187. sleep_cfg1 {
  188. ste,pins = "GPIO4_AH6", "GPIO5_AG6"; /* SDA/SCL */
  189. ste,config = <&slpm_in_wkup_pdis>;
  190. };
  191. };
  192. };
  193. /* Settings for all SPI default and sleep states */
  194. spi2 {
  195. spi2_default_mode: spi_default {
  196. default_mux {
  197. ste,function = "spi2";
  198. ste,pins = "spi2_oc1_2";
  199. };
  200. default_cfg1 {
  201. ste,pins = "GPIO216_AG12"; /* FRM */
  202. ste,config = <&gpio_out_hi>;
  203. };
  204. default_cfg2 {
  205. ste,pins = "GPIO218_AH11"; /* RXD */
  206. ste,config = <&in_pd>;
  207. };
  208. default_cfg3 {
  209. ste,pins =
  210. "GPIO215_AH13", /* TXD */
  211. "GPIO217_AH12"; /* CLK */
  212. ste,config = <&out_lo>;
  213. };
  214. };
  215. spi2_idle_mode: spi_idle {
  216. /*
  217. * The idle mode is basically sleep mode sans wakeups. Also
  218. * note that we have muxes the pins off the function here
  219. * as we do not state any muxing.
  220. */
  221. idle_cfg1 {
  222. ste,pins = "GPIO218_AH11"; /* RXD */
  223. ste,config = <&slpm_in_pdis>;
  224. };
  225. idle_cfg2 {
  226. ste,pins = "GPIO215_AH13"; /* TXD */
  227. ste,config = <&slpm_out_lo_pdis>;
  228. };
  229. idle_cfg3 {
  230. ste,pins = "GPIO217_AH12"; /* CLK */
  231. ste,config = <&slpm_pdis>;
  232. };
  233. };
  234. spi2_sleep_mode: spi_sleep {
  235. sleep_cfg1 {
  236. ste,pins =
  237. "GPIO216_AG12", /* FRM */
  238. "GPIO218_AH11"; /* RXD */
  239. ste,config = <&slpm_in_wkup_pdis>;
  240. };
  241. sleep_cfg2 {
  242. ste,pins = "GPIO215_AH13"; /* TXD */
  243. ste,config = <&slpm_out_lo_wkup_pdis>;
  244. };
  245. sleep_cfg3 {
  246. ste,pins = "GPIO217_AH12"; /* CLK */
  247. ste,config = <&slpm_wkup_pdis>;
  248. };
  249. };
  250. };
  251. /* Settings for all MMC/SD/SDIO default and sleep states */
  252. sdi0 {
  253. /* This is the external SD card slot, 4 bits wide */
  254. sdi0_default_mode: sdi0_default {
  255. default_mux {
  256. ste,function = "mc0";
  257. ste,pins = "mc0_a_1";
  258. };
  259. default_cfg1 {
  260. ste,pins =
  261. "GPIO18_AC2", /* CMDDIR */
  262. "GPIO19_AC1", /* DAT0DIR */
  263. "GPIO20_AB4"; /* DAT2DIR */
  264. ste,config = <&out_hi>;
  265. };
  266. default_cfg2 {
  267. ste,pins = "GPIO22_AA3"; /* FBCLK */
  268. ste,config = <&in_nopull>;
  269. };
  270. default_cfg3 {
  271. ste,pins = "GPIO23_AA4"; /* CLK */
  272. ste,config = <&out_lo>;
  273. };
  274. default_cfg4 {
  275. ste,pins =
  276. "GPIO24_AB2", /* CMD */
  277. "GPIO25_Y4", /* DAT0 */
  278. "GPIO26_Y2", /* DAT1 */
  279. "GPIO27_AA2", /* DAT2 */
  280. "GPIO28_AA1"; /* DAT3 */
  281. ste,config = <&in_pu>;
  282. };
  283. };
  284. sdi0_sleep_mode: sdi0_sleep {
  285. sleep_cfg1 {
  286. ste,pins =
  287. "GPIO18_AC2", /* CMDDIR */
  288. "GPIO19_AC1", /* DAT0DIR */
  289. "GPIO20_AB4"; /* DAT2DIR */
  290. ste,config = <&slpm_out_hi_wkup_pdis>;
  291. };
  292. sleep_cfg2 {
  293. ste,pins =
  294. "GPIO22_AA3", /* FBCLK */
  295. "GPIO24_AB2", /* CMD */
  296. "GPIO25_Y4", /* DAT0 */
  297. "GPIO26_Y2", /* DAT1 */
  298. "GPIO27_AA2", /* DAT2 */
  299. "GPIO28_AA1"; /* DAT3 */
  300. ste,config = <&slpm_in_wkup_pdis>;
  301. };
  302. sleep_cfg3 {
  303. ste,pins = "GPIO23_AA4"; /* CLK */
  304. ste,config = <&slpm_out_lo_wkup_pdis>;
  305. };
  306. };
  307. };
  308. sdi1 {
  309. /* This is the WLAN SDIO 4 bits wide */
  310. sdi1_default_mode: sdi1_default {
  311. default_mux {
  312. ste,function = "mc1";
  313. ste,pins = "mc1_a_1";
  314. };
  315. default_cfg1 {
  316. ste,pins = "GPIO208_AH16"; /* CLK */
  317. ste,config = <&out_lo>;
  318. };
  319. default_cfg2 {
  320. ste,pins = "GPIO209_AG15"; /* FBCLK */
  321. ste,config = <&in_nopull>;
  322. };
  323. default_cfg3 {
  324. ste,pins =
  325. "GPIO210_AJ15", /* CMD */
  326. "GPIO211_AG14", /* DAT0 */
  327. "GPIO212_AF13", /* DAT1 */
  328. "GPIO213_AG13", /* DAT2 */
  329. "GPIO214_AH15"; /* DAT3 */
  330. ste,config = <&in_pu>;
  331. };
  332. };
  333. sdi1_sleep_mode: sdi1_sleep {
  334. sleep_cfg1 {
  335. ste,pins = "GPIO208_AH16"; /* CLK */
  336. ste,config = <&slpm_out_lo_wkup_pdis>;
  337. };
  338. sleep_cfg2 {
  339. ste,pins =
  340. "GPIO209_AG15", /* FBCLK */
  341. "GPIO210_AJ15", /* CMD */
  342. "GPIO211_AG14", /* DAT0 */
  343. "GPIO212_AF13", /* DAT1 */
  344. "GPIO213_AG13", /* DAT2 */
  345. "GPIO214_AH15"; /* DAT3 */
  346. ste,config = <&slpm_in_wkup_pdis>;
  347. };
  348. };
  349. };
  350. sdi2 {
  351. /* This is the eMMC 8 bits wide, usually PoP eMMC */
  352. sdi2_default_mode: sdi2_default {
  353. default_mux {
  354. ste,function = "mc2";
  355. ste,pins = "mc2_a_1";
  356. };
  357. default_cfg1 {
  358. ste,pins = "GPIO128_A5"; /* CLK */
  359. ste,config = <&out_lo>;
  360. };
  361. default_cfg2 {
  362. ste,pins = "GPIO130_C8"; /* FBCLK */
  363. ste,config = <&in_nopull>;
  364. };
  365. default_cfg3 {
  366. ste,pins =
  367. "GPIO129_B4", /* CMD */
  368. "GPIO131_A12", /* DAT0 */
  369. "GPIO132_C10", /* DAT1 */
  370. "GPIO133_B10", /* DAT2 */
  371. "GPIO134_B9", /* DAT3 */
  372. "GPIO135_A9", /* DAT4 */
  373. "GPIO136_C7", /* DAT5 */
  374. "GPIO137_A7", /* DAT6 */
  375. "GPIO138_C5"; /* DAT7 */
  376. ste,config = <&in_pu>;
  377. };
  378. };
  379. sdi2_sleep_mode: sdi2_sleep {
  380. sleep_cfg1 {
  381. ste,pins = "GPIO128_A5"; /* CLK */
  382. ste,config = <&out_lo_wkup_pdis>;
  383. };
  384. sleep_cfg2 {
  385. ste,pins =
  386. "GPIO130_C8", /* FBCLK */
  387. "GPIO129_B4"; /* CMD */
  388. ste,config = <&in_wkup_pdis_en>;
  389. };
  390. sleep_cfg3 {
  391. ste,pins =
  392. "GPIO131_A12", /* DAT0 */
  393. "GPIO132_C10", /* DAT1 */
  394. "GPIO133_B10", /* DAT2 */
  395. "GPIO134_B9", /* DAT3 */
  396. "GPIO135_A9", /* DAT4 */
  397. "GPIO136_C7", /* DAT5 */
  398. "GPIO137_A7", /* DAT6 */
  399. "GPIO138_C5"; /* DAT7 */
  400. ste,config = <&in_wkup_pdis>;
  401. };
  402. };
  403. };
  404. sdi4 {
  405. /* This is the eMMC 8 bits wide, usually PCB-mounted eMMC */
  406. sdi4_default_mode: sdi4_default {
  407. default_mux {
  408. ste,function = "mc4";
  409. ste,pins = "mc4_a_1";
  410. };
  411. default_cfg1 {
  412. ste,pins = "GPIO203_AE23"; /* CLK */
  413. ste,config = <&out_lo>;
  414. };
  415. default_cfg2 {
  416. ste,pins = "GPIO202_AF25"; /* FBCLK */
  417. ste,config = <&in_nopull>;
  418. };
  419. default_cfg3 {
  420. ste,pins =
  421. "GPIO201_AF24", /* CMD */
  422. "GPIO200_AH26", /* DAT0 */
  423. "GPIO199_AH23", /* DAT1 */
  424. "GPIO198_AG25", /* DAT2 */
  425. "GPIO197_AH24", /* DAT3 */
  426. "GPIO207_AJ23", /* DAT4 */
  427. "GPIO206_AG24", /* DAT5 */
  428. "GPIO205_AG23", /* DAT6 */
  429. "GPIO204_AF23"; /* DAT7 */
  430. ste,config = <&in_pu>;
  431. };
  432. };
  433. sdi4_sleep_mode: sdi4_sleep {
  434. sleep_cfg1 {
  435. ste,pins = "GPIO203_AE23"; /* CLK */
  436. ste,config = <&out_lo_wkup_pdis>;
  437. };
  438. sleep_cfg2 {
  439. ste,pins =
  440. "GPIO202_AF25", /* FBCLK */
  441. "GPIO201_AF24", /* CMD */
  442. "GPIO200_AH26", /* DAT0 */
  443. "GPIO199_AH23", /* DAT1 */
  444. "GPIO198_AG25", /* DAT2 */
  445. "GPIO197_AH24", /* DAT3 */
  446. "GPIO207_AJ23", /* DAT4 */
  447. "GPIO206_AG24", /* DAT5 */
  448. "GPIO205_AG23", /* DAT6 */
  449. "GPIO204_AF23"; /* DAT7 */
  450. ste,config = <&slpm_in_wkup_pdis>;
  451. };
  452. };
  453. };
  454. /*
  455. * Multi-rate serial ports (MSPs) - MSP3 output is internal and
  456. * cannot be muxed onto any pins.
  457. */
  458. msp0 {
  459. msp0_default_mode: msp0_default {
  460. default_msp0_mux {
  461. ste,function = "msp0";
  462. ste,pins = "msp0txrx_a_1", "msp0tfstck_a_1";
  463. };
  464. default_msp0_cfg {
  465. ste,pins =
  466. "GPIO12_AC4", /* TXD */
  467. "GPIO15_AC3", /* RXD */
  468. "GPIO13_AF3", /* TFS */
  469. "GPIO14_AE3"; /* TCK */
  470. ste,config = <&in_nopull>;
  471. };
  472. };
  473. };
  474. msp1 {
  475. msp1_default_mode: msp1_default {
  476. default_mux {
  477. ste,function = "msp1";
  478. ste,pins = "msp1txrx_a_1", "msp1_a_1";
  479. };
  480. default_cfg1 {
  481. ste,pins = "GPIO33_AF2";
  482. ste,config = <&out_lo>;
  483. };
  484. default_cfg2 {
  485. ste,pins =
  486. "GPIO34_AE1",
  487. "GPIO35_AE2",
  488. "GPIO36_AG2";
  489. ste,config = <&in_nopull>;
  490. };
  491. };
  492. };
  493. msp2 {
  494. msp2_default_mode: msp2_default {
  495. /* MSP2 usually used for HDMI audio */
  496. default_mux {
  497. ste,function = "msp2";
  498. ste,pins = "msp2_a_1";
  499. };
  500. default_cfg1 {
  501. ste,pins =
  502. "GPIO193_AH27", /* TXD */
  503. "GPIO194_AF27", /* TCK */
  504. "GPIO195_AG28"; /* TFS */
  505. ste,config = <&in_pd>;
  506. };
  507. default_cfg2 {
  508. ste,pins = "GPIO196_AG26"; /* RXD */
  509. ste,config = <&out_lo>;
  510. };
  511. };
  512. };
  513. musb {
  514. musb_default_mode: musb_default {
  515. default_mux {
  516. ste,function = "usb";
  517. ste,pins = "usb_a_1";
  518. };
  519. default_cfg1 {
  520. ste,pins =
  521. "GPIO256_AF28", /* NXT */
  522. "GPIO258_AD29", /* XCLK */
  523. "GPIO259_AC29", /* DIR */
  524. "GPIO260_AD28", /* DAT7 */
  525. "GPIO261_AD26", /* DAT6 */
  526. "GPIO262_AE26", /* DAT5 */
  527. "GPIO263_AG29", /* DAT4 */
  528. "GPIO264_AE27", /* DAT3 */
  529. "GPIO265_AD27", /* DAT2 */
  530. "GPIO266_AC28", /* DAT1 */
  531. "GPIO267_AC27"; /* DAT0 */
  532. ste,config = <&in_nopull>;
  533. };
  534. default_cfg2 {
  535. ste,pins = "GPIO257_AE29"; /* STP */
  536. ste,config = <&out_hi>;
  537. };
  538. };
  539. musb_sleep_mode: musb_sleep {
  540. sleep_cfg1 {
  541. ste,pins =
  542. "GPIO256_AF28", /* NXT */
  543. "GPIO258_AD29", /* XCLK */
  544. "GPIO259_AC29"; /* DIR */
  545. ste,config = <&slpm_wkup_pdis_en>;
  546. };
  547. sleep_cfg2 {
  548. ste,pins = "GPIO257_AE29"; /* STP */
  549. ste,config = <&slpm_out_hi_wkup_pdis>;
  550. };
  551. sleep_cfg3 {
  552. ste,pins =
  553. "GPIO260_AD28", /* DAT7 */
  554. "GPIO261_AD26", /* DAT6 */
  555. "GPIO262_AE26", /* DAT5 */
  556. "GPIO263_AG29", /* DAT4 */
  557. "GPIO264_AE27", /* DAT3 */
  558. "GPIO265_AD27", /* DAT2 */
  559. "GPIO266_AC28", /* DAT1 */
  560. "GPIO267_AC27"; /* DAT0 */
  561. ste,config = <&slpm_in_wkup_pdis_en>;
  562. };
  563. };
  564. };
  565. mcde {
  566. lcd_default_mode: lcd_default {
  567. default_mux {
  568. /* Mux in VSI0 and all the data lines */
  569. ste,function = "lcd";
  570. ste,pins =
  571. "lcdvsi0_a_1", /* VSI0 for LCD */
  572. "lcd_d0_d7_a_1", /* Data lines */
  573. "lcd_d8_d11_a_1", /* TV-out */
  574. "lcdaclk_b_1", /* Clock line for TV-out */
  575. "lcdvsi1_a_1"; /* VSI1 for HDMI */
  576. };
  577. default_cfg1 {
  578. ste,pins =
  579. "GPIO68_E1", /* VSI0 */
  580. "GPIO69_E2"; /* VSI1 */
  581. ste,config = <&in_pu>;
  582. };
  583. };
  584. lcd_sleep_mode: lcd_sleep {
  585. sleep_cfg1 {
  586. ste,pins = "GPIO69_E2"; /* VSI1 */
  587. ste,config = <&slpm_in_wkup_pdis>;
  588. };
  589. };
  590. };
  591. ske {
  592. /* SKE keys on position 2 in an 8x8 matrix */
  593. ske_kpa2_default_mode: ske_kpa2_default {
  594. default_mux {
  595. ste,function = "kp";
  596. ste,pins = "kp_a_2";
  597. };
  598. default_cfg1 {
  599. ste,pins =
  600. "GPIO153_B17", /* I7 */
  601. "GPIO154_C16", /* I6 */
  602. "GPIO155_C19", /* I5 */
  603. "GPIO156_C17", /* I4 */
  604. "GPIO161_D21", /* I3 */
  605. "GPIO162_D20", /* I2 */
  606. "GPIO163_C20", /* I1 */
  607. "GPIO164_B21"; /* I0 */
  608. ste,config = <&in_pd>;
  609. };
  610. default_cfg2 {
  611. ste,pins =
  612. "GPIO157_A18", /* O7 */
  613. "GPIO158_C18", /* O6 */
  614. "GPIO159_B19", /* O5 */
  615. "GPIO160_B20", /* O4 */
  616. "GPIO165_C21", /* O3 */
  617. "GPIO166_A22", /* O2 */
  618. "GPIO167_B24", /* O1 */
  619. "GPIO168_C22"; /* O0 */
  620. ste,config = <&out_lo>;
  621. };
  622. };
  623. ske_kpa2_sleep_mode: ske_kpa2_sleep {
  624. sleep_cfg1 {
  625. ste,pins =
  626. "GPIO153_B17", /* I7 */
  627. "GPIO154_C16", /* I6 */
  628. "GPIO155_C19", /* I5 */
  629. "GPIO156_C17", /* I4 */
  630. "GPIO161_D21", /* I3 */
  631. "GPIO162_D20", /* I2 */
  632. "GPIO163_C20", /* I1 */
  633. "GPIO164_B21"; /* I0 */
  634. ste,config = <&slpm_in_pu_wkup_pdis_en>;
  635. };
  636. sleep_cfg2 {
  637. ste,pins =
  638. "GPIO157_A18", /* O7 */
  639. "GPIO158_C18", /* O6 */
  640. "GPIO159_B19", /* O5 */
  641. "GPIO160_B20", /* O4 */
  642. "GPIO165_C21", /* O3 */
  643. "GPIO166_A22", /* O2 */
  644. "GPIO167_B24", /* O1 */
  645. "GPIO168_C22"; /* O0 */
  646. ste,config = <&slpm_out_lo_pdis>;
  647. };
  648. };
  649. /*
  650. * SKE keys on position 1 and "other C1" combi giving
  651. * six rows of six keys.
  652. */
  653. ske_kpaoc1_default_mode: ske_kpaoc1_default {
  654. default_mux {
  655. ste,function = "kp";
  656. ste,pins = "kp_a_1", "kp_oc1_1";
  657. };
  658. default_cfg1 {
  659. ste,pins =
  660. "GPIO91_B6", /* KP_O0 */
  661. "GPIO90_A3", /* KP_O1 */
  662. "GPIO87_B3", /* KP_O2 */
  663. "GPIO86_C6", /* KP_O3 */
  664. "GPIO96_D8", /* KP_O6 */
  665. "GPIO94_D7"; /* KP_O7 */
  666. ste,config = <&out_lo>;
  667. };
  668. default_cfg2 {
  669. ste,pins =
  670. "GPIO93_B7", /* KP_I0 */
  671. "GPIO92_D6", /* KP_I1 */
  672. "GPIO89_E6", /* KP_I2 */
  673. "GPIO88_C4", /* KP_I3 */
  674. "GPIO97_D9", /* KP_I6 */
  675. "GPIO95_E8"; /* KP_I7 */
  676. ste,config = <&in_pu>;
  677. };
  678. };
  679. };
  680. wlan {
  681. wlan_default_mode: wlan_default {
  682. /*
  683. * Activate this mode with the WLAN chip.
  684. * These are plain GPIO pins used by WLAN
  685. */
  686. default_cfg1 {
  687. ste,pins =
  688. "GPIO226_AF8", /* WLAN_PMU_EN */
  689. "GPIO85_D5"; /* WLAN_ENA */
  690. ste,config = <&gpio_out_lo>;
  691. };
  692. default_cfg2 {
  693. ste,pins = "GPIO4_AH6"; /* WLAN_IRQ on UART1 */
  694. ste,config = <&gpio_in_pu>;
  695. };
  696. };
  697. };
  698. };
  699. };
  700. };