ste-href-ab8500.dtsi 9.6 KB

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