ste-href-ab8500.dtsi 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * Copyright 2014 Linaro Ltd.
  4. */
  5. #include "ste-ab8500.dtsi"
  6. / {
  7. soc {
  8. prcmu@80157000 {
  9. ab8500 {
  10. gpio {
  11. /* Hog a few default settings */
  12. pinctrl-names = "default";
  13. pinctrl-0 = <&gpio2_default_mode>,
  14. <&gpio4_default_mode>,
  15. <&gpio10_default_mode>,
  16. <&gpio11_default_mode>,
  17. <&gpio12_default_mode>,
  18. <&gpio13_default_mode>,
  19. <&gpio16_default_mode>,
  20. <&gpio24_default_mode>,
  21. <&gpio25_default_mode>,
  22. <&gpio36_default_mode>,
  23. <&gpio37_default_mode>,
  24. <&gpio38_default_mode>,
  25. <&gpio39_default_mode>,
  26. <&gpio42_default_mode>,
  27. <&gpio26_default_mode>,
  28. <&gpio35_default_mode>,
  29. <&ycbcr_default_mode>,
  30. <&pwm_default_mode>,
  31. <&adi1_default_mode>,
  32. <&usbuicc_default_mode>,
  33. <&dmic_default_mode>,
  34. <&extcpena_default_mode>,
  35. <&modsclsda_default_mode>;
  36. /*
  37. * Pins 2, 4, 10, 11, 12, 13, 16, 24, 25, 36, 37, 38, 39 and 42
  38. * are muxed in as GPIO, and configured as INPUT PULL DOWN
  39. */
  40. gpio2 {
  41. gpio2_default_mode: gpio2_default {
  42. default_mux {
  43. function = "gpio";
  44. groups = "gpio2_a_1";
  45. };
  46. default_cfg {
  47. pins = "GPIO2_T9";
  48. input-enable;
  49. bias-pull-down;
  50. };
  51. };
  52. };
  53. gpio4 {
  54. gpio4_default_mode: gpio4_default {
  55. default_mux {
  56. function = "gpio";
  57. groups = "gpio4_a_1";
  58. };
  59. default_cfg {
  60. pins = "GPIO4_W2";
  61. input-enable;
  62. bias-pull-down;
  63. };
  64. };
  65. };
  66. gpio10 {
  67. gpio10_default_mode: gpio10_default {
  68. default_mux {
  69. function = "gpio";
  70. groups = "gpio10_d_1";
  71. };
  72. default_cfg {
  73. pins = "GPIO10_U17";
  74. input-enable;
  75. bias-pull-down;
  76. };
  77. };
  78. };
  79. gpio11 {
  80. gpio11_default_mode: gpio11_default {
  81. default_mux {
  82. function = "gpio";
  83. groups = "gpio11_d_1";
  84. };
  85. default_cfg {
  86. pins = "GPIO11_AA18";
  87. input-enable;
  88. bias-pull-down;
  89. };
  90. };
  91. };
  92. gpio12 {
  93. gpio12_default_mode: gpio12_default {
  94. default_mux {
  95. function = "gpio";
  96. groups = "gpio12_d_1";
  97. };
  98. default_cfg {
  99. pins = "GPIO12_U16";
  100. input-enable;
  101. bias-pull-down;
  102. };
  103. };
  104. };
  105. gpio13 {
  106. gpio13_default_mode: gpio13_default {
  107. default_mux {
  108. function = "gpio";
  109. groups = "gpio13_d_1";
  110. };
  111. default_cfg {
  112. pins = "GPIO13_W17";
  113. input-enable;
  114. bias-pull-down;
  115. };
  116. };
  117. };
  118. gpio16 {
  119. gpio16_default_mode: gpio16_default {
  120. default_mux {
  121. function = "gpio";
  122. groups = "gpio16_a_1";
  123. };
  124. default_cfg {
  125. pins = "GPIO16_F15";
  126. input-enable;
  127. bias-pull-down;
  128. };
  129. };
  130. };
  131. gpio24 {
  132. gpio24_default_mode: gpio24_default {
  133. default_mux {
  134. function = "gpio";
  135. groups = "gpio24_a_1";
  136. };
  137. default_cfg {
  138. pins = "GPIO24_T14";
  139. input-enable;
  140. bias-pull-down;
  141. };
  142. };
  143. };
  144. gpio25 {
  145. gpio25_default_mode: gpio25_default {
  146. default_mux {
  147. function = "gpio";
  148. groups = "gpio25_a_1";
  149. };
  150. default_cfg {
  151. pins = "GPIO25_R16";
  152. input-enable;
  153. bias-pull-down;
  154. };
  155. };
  156. };
  157. gpio36 {
  158. gpio36_default_mode: gpio36_default {
  159. default_mux {
  160. function = "gpio";
  161. groups = "gpio36_a_1";
  162. };
  163. default_cfg {
  164. pins = "GPIO36_A17";
  165. input-enable;
  166. bias-pull-down;
  167. };
  168. };
  169. };
  170. gpio37 {
  171. gpio37_default_mode: gpio37_default {
  172. default_mux {
  173. function = "gpio";
  174. groups = "gpio37_a_1";
  175. };
  176. default_cfg {
  177. pins = "GPIO37_E15";
  178. input-enable;
  179. bias-pull-down;
  180. };
  181. };
  182. };
  183. gpio38 {
  184. gpio38_default_mode: gpio38_default {
  185. default_mux {
  186. function = "gpio";
  187. groups = "gpio38_a_1";
  188. };
  189. default_cfg {
  190. pins = "GPIO38_C17";
  191. input-enable;
  192. bias-pull-down;
  193. };
  194. };
  195. };
  196. gpio39 {
  197. gpio39_default_mode: gpio39_default {
  198. default_mux {
  199. function = "gpio";
  200. groups = "gpio39_a_1";
  201. };
  202. default_cfg {
  203. pins = "GPIO39_E16";
  204. input-enable;
  205. bias-pull-down;
  206. };
  207. };
  208. };
  209. gpio42 {
  210. gpio42_default_mode: gpio42_default {
  211. default_mux {
  212. function = "gpio";
  213. groups = "gpio42_a_1";
  214. };
  215. default_cfg {
  216. pins = "GPIO42_U2";
  217. input-enable;
  218. bias-pull-down;
  219. };
  220. };
  221. };
  222. /*
  223. * Pins 26 and 35 muxed in as GPIO, and configured as OUTPUT LOW
  224. */
  225. gpio26 {
  226. gpio26_default_mode: gpio26_default {
  227. default_mux {
  228. function = "gpio";
  229. groups = "gpio26_d_1";
  230. };
  231. default_cfg {
  232. pins = "GPIO26_M16";
  233. output-low;
  234. };
  235. };
  236. };
  237. gpio35 {
  238. gpio35_default_mode: gpio35_default {
  239. default_mux {
  240. function = "gpio";
  241. groups = "gpio35_d_1";
  242. };
  243. default_cfg {
  244. pins = "GPIO35_W15";
  245. output-low;
  246. };
  247. };
  248. };
  249. /*
  250. * This sets up the YCBCR connector pins, i.e. analog video out.
  251. * Set as input with no bias.
  252. */
  253. ycbcr {
  254. ycbcr_default_mode: ycbcr_default {
  255. default_mux {
  256. function = "ycbcr";
  257. groups = "ycbcr0123_d_1";
  258. };
  259. default_cfg {
  260. pins = "GPIO6_Y18",
  261. "GPIO7_AA20",
  262. "GPIO8_W18",
  263. "GPIO9_AA19";
  264. input-enable;
  265. bias-disable;
  266. };
  267. };
  268. };
  269. /* This sets up the PWM pins 14 and 15 */
  270. pwm {
  271. pwm_default_mode: pwm_default {
  272. default_mux {
  273. function = "pwmout";
  274. groups = "pwmout1_d_1", "pwmout2_d_1";
  275. };
  276. default_cfg {
  277. pins = "GPIO14_F14",
  278. "GPIO15_B17";
  279. input-enable;
  280. bias-pull-down;
  281. };
  282. };
  283. };
  284. /* This sets up audio interface 1 */
  285. adi1 {
  286. adi1_default_mode: adi1_default {
  287. default_mux {
  288. function = "adi1";
  289. groups = "adi1_d_1";
  290. };
  291. default_cfg {
  292. pins = "GPIO17_P5",
  293. "GPIO18_R5",
  294. "GPIO19_U5",
  295. "GPIO20_T5";
  296. input-enable;
  297. bias-pull-down;
  298. };
  299. };
  300. };
  301. /* This sets up the USB UICC pins */
  302. usbuicc {
  303. usbuicc_default_mode: usbuicc_default {
  304. default_mux {
  305. function = "usbuicc";
  306. groups = "usbuicc_d_1";
  307. };
  308. default_cfg {
  309. pins = "GPIO21_H19",
  310. "GPIO22_G20",
  311. "GPIO23_G19";
  312. input-enable;
  313. bias-pull-down;
  314. };
  315. };
  316. };
  317. /* This sets up the microphone pins */
  318. dmic {
  319. dmic_default_mode: dmic_default {
  320. default_mux {
  321. function = "dmic";
  322. groups = "dmic12_d_1",
  323. "dmic34_d_1",
  324. "dmic56_d_1";
  325. };
  326. default_cfg {
  327. pins = "GPIO27_J6",
  328. "GPIO28_K6",
  329. "GPIO29_G6",
  330. "GPIO30_H6",
  331. "GPIO31_F5",
  332. "GPIO32_G5";
  333. input-enable;
  334. bias-pull-down;
  335. };
  336. };
  337. };
  338. extcpena {
  339. extcpena_default_mode: extcpena_default {
  340. default_mux {
  341. function = "extcpena";
  342. groups = "extcpena_d_1";
  343. };
  344. default_cfg {
  345. pins = "GPIO34_R17";
  346. input-enable;
  347. bias-pull-down;
  348. };
  349. };
  350. };
  351. /* Modem I2C setup (SCL and SDA pins) */
  352. modsclsda {
  353. modsclsda_default_mode: modsclsda_default {
  354. default_mux {
  355. function = "modsclsda";
  356. groups = "modsclsda_d_1";
  357. };
  358. default_cfg {
  359. pins = "GPIO40_T19",
  360. "GPIO41_U19";
  361. input-enable;
  362. bias-pull-down;
  363. };
  364. };
  365. };
  366. /*
  367. * Clock output pins associated with regulators.
  368. */
  369. sysclkreq2 {
  370. sysclkreq2_default_mode: sysclkreq2_default {
  371. default_mux {
  372. function = "sysclkreq";
  373. groups = "sysclkreq2_d_1";
  374. };
  375. default_cfg {
  376. pins = "GPIO1_T10";
  377. input-enable;
  378. bias-disable;
  379. };
  380. };
  381. sysclkreq2_sleep_mode: sysclkreq2_sleep {
  382. default_mux {
  383. function = "gpio";
  384. groups = "gpio1_a_1";
  385. };
  386. default_cfg {
  387. pins = "GPIO1_T10";
  388. input-enable;
  389. bias-pull-down;
  390. };
  391. };
  392. };
  393. sysclkreq4 {
  394. sysclkreq4_default_mode: sysclkreq4_default {
  395. default_mux {
  396. function = "sysclkreq";
  397. groups = "sysclkreq4_d_1";
  398. };
  399. default_cfg {
  400. pins = "GPIO3_U9";
  401. input-enable;
  402. bias-disable;
  403. };
  404. };
  405. sysclkreq4_sleep_mode: sysclkreq4_sleep {
  406. default_mux {
  407. function = "gpio";
  408. groups = "gpio3_a_1";
  409. };
  410. default_cfg {
  411. pins = "GPIO3_U9";
  412. input-enable;
  413. bias-pull-down;
  414. };
  415. };
  416. };
  417. };
  418. };
  419. };
  420. };
  421. };