s5pv210-galaxys.dts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  1. // SPDX-License-Identifier: GPL-2.0
  2. /dts-v1/;
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. #include "s5pv210-aries.dtsi"
  6. / {
  7. model = "Samsung Galaxy S1 (GT-I9000) based on S5PV210";
  8. compatible = "samsung,galaxys", "samsung,aries", "samsung,s5pv210";
  9. chassis-type = "handset";
  10. chosen {
  11. stdout-path = &uart2;
  12. };
  13. nand_pwrseq: nand-pwrseq {
  14. compatible = "mmc-pwrseq-simple";
  15. reset-gpios = <&gpj2 7 GPIO_ACTIVE_LOW>;
  16. pinctrl-names = "default";
  17. pinctrl-0 = <&massmemory_en>;
  18. };
  19. gpio-keys {
  20. compatible = "gpio-keys";
  21. key-power {
  22. label = "power";
  23. gpios = <&gph2 6 GPIO_ACTIVE_LOW>;
  24. linux,code = <KEY_POWER>;
  25. wakeup-source;
  26. };
  27. key-vol-down {
  28. label = "volume_down";
  29. gpios = <&gph3 1 GPIO_ACTIVE_LOW>;
  30. linux,code = <KEY_VOLUMEDOWN>;
  31. };
  32. key-vol-up {
  33. label = "volume_up";
  34. gpios = <&gph3 2 GPIO_ACTIVE_LOW>;
  35. linux,code = <KEY_VOLUMEUP>;
  36. };
  37. key-home {
  38. label = "home";
  39. gpios = <&gph3 5 GPIO_ACTIVE_LOW>;
  40. linux,code = <KEY_HOME>;
  41. wakeup-source;
  42. };
  43. };
  44. i2c_fmradio: i2c-gpio-8 {
  45. compatible = "i2c-gpio";
  46. sda-gpios = <&gpd1 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  47. scl-gpios = <&gpd1 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  48. i2c-gpio,delay-us = <2>;
  49. #address-cells = <1>;
  50. #size-cells = <0>;
  51. pinctrl-names = "default";
  52. pinctrl-0 = <&fm_i2c_pins>;
  53. fmradio@10 {
  54. compatible = "silabs,si470x";
  55. reg = <0x10>;
  56. interrupt-parent = <&gpj2>;
  57. interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
  58. reset-gpios = <&gpj2 5 GPIO_ACTIVE_HIGH>;
  59. pinctrl-names = "default";
  60. pinctrl-0 = <&fm_irq &fm_rst>;
  61. };
  62. };
  63. micbias_reg: regulator-fixed-3 {
  64. compatible = "regulator-fixed";
  65. regulator-name = "MICBIAS";
  66. gpio = <&gpj4 2 GPIO_ACTIVE_HIGH>;
  67. enable-active-high;
  68. pinctrl-names = "default";
  69. pinctrl-0 = <&micbias_reg_ena>;
  70. };
  71. sound {
  72. compatible = "samsung,aries-wm8994";
  73. model = "Aries";
  74. extcon = <&fsa9480>;
  75. main-micbias-supply = <&micbias_reg>;
  76. headset-micbias-supply = <&micbias_reg>;
  77. earpath-sel-gpios = <&gpj2 6 GPIO_ACTIVE_HIGH>;
  78. io-channels = <&adc 3>;
  79. io-channel-names = "headset-detect";
  80. headset-detect-gpios = <&gph0 6 GPIO_ACTIVE_LOW>;
  81. headset-key-gpios = <&gph3 6 GPIO_ACTIVE_HIGH>;
  82. samsung,audio-routing =
  83. "HP", "HPOUT1L",
  84. "HP", "HPOUT1R",
  85. "SPK", "SPKOUTLN",
  86. "SPK", "SPKOUTLP",
  87. "RCV", "HPOUT2N",
  88. "RCV", "HPOUT2P",
  89. "LINE", "LINEOUT2N",
  90. "LINE", "LINEOUT2P",
  91. "IN1LP", "Main Mic",
  92. "IN1LN", "Main Mic",
  93. "IN1RP", "Headset Mic",
  94. "IN1RN", "Headset Mic",
  95. "IN2LN", "FM In",
  96. "IN2RN", "FM In",
  97. "Modem Out", "Modem TX",
  98. "Modem RX", "Modem In",
  99. "Bluetooth SPK", "TX",
  100. "RX", "Bluetooth Mic";
  101. pinctrl-names = "default";
  102. pinctrl-0 = <&headset_det &earpath_sel>;
  103. cpu {
  104. sound-dai = <&i2s0>, <&bt_codec>;
  105. };
  106. codec {
  107. sound-dai = <&wm8994>;
  108. };
  109. };
  110. };
  111. &aliases {
  112. i2c8 = &i2c_fmradio;
  113. };
  114. &pinctrl0 {
  115. pinctrl-names = "default";
  116. pinctrl-0 = <&sleep_cfg>;
  117. fm_i2c_pins: fm-i2c-pins {
  118. samsung,pins = "gpd1-2", "gpd1-3";
  119. samsung,pin-pud = <S5PV210_PIN_PULL_NONE>;
  120. samsung,pin-drv = <S5PV210_PIN_DRV_LV1>;
  121. };
  122. headset_det: headset-det-pins {
  123. samsung,pins = "gph0-6", "gph3-6";
  124. samsung,pin-function = <S5PV210_PIN_FUNC_F>;
  125. samsung,pin-pud = <S5PV210_PIN_PULL_NONE>;
  126. };
  127. fm_irq: fm-irq-pins {
  128. samsung,pins = "gpj2-4";
  129. samsung,pin-function = <S5PV210_PIN_FUNC_INPUT>;
  130. samsung,pin-pud = <S5PV210_PIN_PULL_UP>;
  131. samsung,pin-drv = <S5PV210_PIN_DRV_LV1>;
  132. };
  133. fm_rst: fm-rst-pins {
  134. samsung,pins = "gpj2-5";
  135. samsung,pin-function = <S5PV210_PIN_FUNC_OUTPUT>;
  136. samsung,pin-pud = <S5PV210_PIN_PULL_NONE>;
  137. samsung,pin-drv = <S5PV210_PIN_DRV_LV1>;
  138. };
  139. earpath_sel: earpath-sel-pins {
  140. samsung,pins = "gpj2-6";
  141. samsung,pin-pud = <S5PV210_PIN_PULL_NONE>;
  142. samsung,pin-drv = <S5PV210_PIN_DRV_LV1>;
  143. };
  144. massmemory_en: massmemory-en-pins {
  145. samsung,pins = "gpj2-7";
  146. samsung,pin-function = <S5PV210_PIN_FUNC_OUTPUT>;
  147. samsung,pin-pud = <S5PV210_PIN_PULL_NONE>;
  148. samsung,pin-drv = <S5PV210_PIN_DRV_LV1>;
  149. };
  150. micbias_reg_ena: micbias-reg-ena-pins {
  151. samsung,pins = "gpj4-2";
  152. samsung,pin-pud = <S5PV210_PIN_PULL_NONE>;
  153. samsung,pin-drv = <S5PV210_PIN_DRV_LV1>;
  154. };
  155. /* Based on CyanogenMod 3.0.101 kernel */
  156. sleep_cfg: sleep-state {
  157. PIN_SLP(gpa0-0, PREV, NONE);
  158. PIN_SLP(gpa0-1, PREV, NONE);
  159. PIN_SLP(gpa0-2, PREV, NONE);
  160. PIN_SLP(gpa0-3, OUT1, NONE);
  161. PIN_SLP(gpa0-4, INPUT, DOWN);
  162. PIN_SLP(gpa0-5, OUT0, NONE);
  163. PIN_SLP(gpa0-6, INPUT, DOWN);
  164. PIN_SLP(gpa0-7, OUT1, NONE);
  165. PIN_SLP(gpa1-0, INPUT, DOWN);
  166. PIN_SLP(gpa1-1, OUT0, NONE);
  167. PIN_SLP(gpa1-2, INPUT, NONE);
  168. PIN_SLP(gpa1-3, OUT0, NONE);
  169. PIN_SLP(gpb-0, OUT0, NONE);
  170. PIN_SLP(gpb-1, OUT1, NONE);
  171. PIN_SLP(gpb-2, OUT0, NONE);
  172. PIN_SLP(gpb-3, PREV, NONE);
  173. PIN_SLP(gpb-4, INPUT, NONE);
  174. PIN_SLP(gpb-5, PREV, NONE);
  175. PIN_SLP(gpb-6, INPUT, DOWN);
  176. PIN_SLP(gpb-7, OUT0, NONE);
  177. PIN_SLP(gpc0-0, OUT0, NONE);
  178. PIN_SLP(gpc0-1, INPUT, DOWN);
  179. PIN_SLP(gpc0-2, OUT0, NONE);
  180. PIN_SLP(gpc0-3, INPUT, NONE);
  181. PIN_SLP(gpc0-4, OUT0, NONE);
  182. PIN_SLP(gpc1-0, INPUT, DOWN);
  183. PIN_SLP(gpc1-1, INPUT, DOWN);
  184. PIN_SLP(gpc1-2, INPUT, DOWN);
  185. PIN_SLP(gpc1-3, INPUT, DOWN);
  186. PIN_SLP(gpc1-4, INPUT, DOWN);
  187. PIN_SLP(gpd0-0, INPUT, DOWN);
  188. PIN_SLP(gpd0-1, OUT0, NONE);
  189. PIN_SLP(gpd0-2, INPUT, DOWN);
  190. PIN_SLP(gpd0-3, INPUT, DOWN);
  191. PIN_SLP(gpd1-0, INPUT, NONE);
  192. PIN_SLP(gpd1-1, INPUT, NONE);
  193. PIN_SLP(gpd1-2, INPUT, NONE);
  194. PIN_SLP(gpd1-3, INPUT, NONE);
  195. PIN_SLP(gpd1-4, INPUT, DOWN);
  196. PIN_SLP(gpd1-5, INPUT, DOWN);
  197. PIN_SLP(gpe0-0, INPUT, DOWN);
  198. PIN_SLP(gpe0-1, INPUT, DOWN);
  199. PIN_SLP(gpe0-2, INPUT, DOWN);
  200. PIN_SLP(gpe0-3, INPUT, DOWN);
  201. PIN_SLP(gpe0-4, INPUT, DOWN);
  202. PIN_SLP(gpe0-5, INPUT, DOWN);
  203. PIN_SLP(gpe0-6, INPUT, DOWN);
  204. PIN_SLP(gpe0-7, INPUT, DOWN);
  205. PIN_SLP(gpe1-0, INPUT, DOWN);
  206. PIN_SLP(gpe1-1, INPUT, DOWN);
  207. PIN_SLP(gpe1-2, INPUT, DOWN);
  208. PIN_SLP(gpe1-3, OUT0, NONE);
  209. PIN_SLP(gpe1-4, INPUT, DOWN);
  210. PIN_SLP(gpf0-0, OUT0, NONE);
  211. PIN_SLP(gpf0-1, OUT0, NONE);
  212. PIN_SLP(gpf0-2, OUT0, NONE);
  213. PIN_SLP(gpf0-3, OUT0, NONE);
  214. PIN_SLP(gpf0-4, OUT0, NONE);
  215. PIN_SLP(gpf0-5, OUT0, NONE);
  216. PIN_SLP(gpf0-6, OUT0, NONE);
  217. PIN_SLP(gpf0-7, OUT0, NONE);
  218. PIN_SLP(gpf1-0, OUT0, NONE);
  219. PIN_SLP(gpf1-1, OUT0, NONE);
  220. PIN_SLP(gpf1-2, OUT0, NONE);
  221. PIN_SLP(gpf1-3, OUT0, NONE);
  222. PIN_SLP(gpf1-4, OUT0, NONE);
  223. PIN_SLP(gpf1-5, OUT0, NONE);
  224. PIN_SLP(gpf1-6, OUT0, NONE);
  225. PIN_SLP(gpf1-7, OUT0, NONE);
  226. PIN_SLP(gpf2-0, OUT0, NONE);
  227. PIN_SLP(gpf2-1, OUT0, NONE);
  228. PIN_SLP(gpf2-2, OUT0, NONE);
  229. PIN_SLP(gpf2-3, OUT0, NONE);
  230. PIN_SLP(gpf2-4, OUT0, NONE);
  231. PIN_SLP(gpf2-5, OUT0, NONE);
  232. PIN_SLP(gpf2-6, OUT0, NONE);
  233. PIN_SLP(gpf2-7, OUT0, NONE);
  234. PIN_SLP(gpf3-0, OUT0, NONE);
  235. PIN_SLP(gpf3-1, OUT0, NONE);
  236. PIN_SLP(gpf3-2, OUT0, NONE);
  237. PIN_SLP(gpf3-3, OUT0, NONE);
  238. PIN_SLP(gpf3-4, PREV, NONE);
  239. PIN_SLP(gpf3-5, INPUT, DOWN);
  240. PIN_SLP(gpg0-0, OUT0, NONE);
  241. PIN_SLP(gpg0-1, INPUT, NONE);
  242. PIN_SLP(gpg0-2, INPUT, NONE);
  243. PIN_SLP(gpg0-3, INPUT, NONE);
  244. PIN_SLP(gpg0-4, INPUT, NONE);
  245. PIN_SLP(gpg0-5, INPUT, NONE);
  246. PIN_SLP(gpg0-6, INPUT, NONE);
  247. PIN_SLP(gpg1-0, OUT0, NONE);
  248. PIN_SLP(gpg1-1, OUT1, NONE);
  249. PIN_SLP(gpg1-2, PREV, NONE);
  250. PIN_SLP(gpg1-3, OUT1, NONE);
  251. PIN_SLP(gpg1-4, OUT1, NONE);
  252. PIN_SLP(gpg1-5, OUT1, NONE);
  253. PIN_SLP(gpg1-6, OUT1, NONE);
  254. PIN_SLP(gpg2-0, OUT0, NONE);
  255. PIN_SLP(gpg2-1, OUT0, NONE);
  256. PIN_SLP(gpg2-2, INPUT, NONE);
  257. PIN_SLP(gpg2-3, OUT0, NONE);
  258. PIN_SLP(gpg2-4, OUT0, NONE);
  259. PIN_SLP(gpg2-5, OUT0, NONE);
  260. PIN_SLP(gpg2-6, OUT0, NONE);
  261. PIN_SLP(gpg3-0, OUT1, NONE);
  262. PIN_SLP(gpg3-1, OUT0, NONE);
  263. PIN_SLP(gpg3-2, INPUT, NONE);
  264. PIN_SLP(gpg3-3, INPUT, DOWN);
  265. PIN_SLP(gpg3-4, OUT0, NONE);
  266. PIN_SLP(gpg3-5, OUT0, NONE);
  267. PIN_SLP(gpg3-6, INPUT, DOWN);
  268. PIN_SLP(gpi-0, PREV, NONE);
  269. PIN_SLP(gpi-1, INPUT, DOWN);
  270. PIN_SLP(gpi-2, PREV, NONE);
  271. PIN_SLP(gpi-3, PREV, NONE);
  272. PIN_SLP(gpi-4, PREV, NONE);
  273. PIN_SLP(gpi-5, INPUT, DOWN);
  274. PIN_SLP(gpi-6, INPUT, DOWN);
  275. PIN_SLP(gpj0-0, INPUT, NONE);
  276. PIN_SLP(gpj0-1, INPUT, NONE);
  277. PIN_SLP(gpj0-2, INPUT, NONE);
  278. PIN_SLP(gpj0-3, INPUT, NONE);
  279. PIN_SLP(gpj0-4, INPUT, NONE);
  280. PIN_SLP(gpj0-5, INPUT, DOWN);
  281. PIN_SLP(gpj0-6, OUT0, NONE);
  282. PIN_SLP(gpj0-7, INPUT, NONE);
  283. PIN_SLP(gpj1-0, INPUT, DOWN);
  284. PIN_SLP(gpj1-1, OUT0, NONE);
  285. PIN_SLP(gpj1-2, INPUT, DOWN);
  286. PIN_SLP(gpj1-3, PREV, NONE);
  287. PIN_SLP(gpj1-4, PREV, NONE);
  288. PIN_SLP(gpj1-5, OUT0, NONE);
  289. PIN_SLP(gpj2-0, INPUT, DOWN);
  290. PIN_SLP(gpj2-1, INPUT, DOWN);
  291. PIN_SLP(gpj2-2, OUT0, NONE);
  292. PIN_SLP(gpj2-3, INPUT, DOWN);
  293. PIN_SLP(gpj2-4, INPUT, UP);
  294. PIN_SLP(gpj2-5, PREV, NONE);
  295. PIN_SLP(gpj2-6, PREV, NONE);
  296. PIN_SLP(gpj2-7, OUT1, NONE);
  297. PIN_SLP(gpj3-0, INPUT, NONE);
  298. PIN_SLP(gpj3-1, INPUT, NONE);
  299. PIN_SLP(gpj3-2, OUT0, NONE);
  300. PIN_SLP(gpj3-3, INPUT, DOWN);
  301. PIN_SLP(gpj3-4, INPUT, NONE);
  302. PIN_SLP(gpj3-5, INPUT, NONE);
  303. PIN_SLP(gpj3-6, INPUT, NONE);
  304. PIN_SLP(gpj3-7, INPUT, NONE);
  305. PIN_SLP(gpj4-0, INPUT, NONE);
  306. PIN_SLP(gpj4-1, INPUT, DOWN);
  307. PIN_SLP(gpj4-2, PREV, NONE);
  308. PIN_SLP(gpj4-3, INPUT, NONE);
  309. PIN_SLP(gpj4-4, INPUT, DOWN);
  310. PIN_SLP(mp01-0, INPUT, DOWN);
  311. PIN_SLP(mp01-1, OUT0, NONE);
  312. PIN_SLP(mp01-2, INPUT, DOWN);
  313. PIN_SLP(mp01-3, INPUT, DOWN);
  314. PIN_SLP(mp01-4, OUT1, NONE);
  315. PIN_SLP(mp01-5, INPUT, DOWN);
  316. PIN_SLP(mp01-6, INPUT, DOWN);
  317. PIN_SLP(mp01-7, INPUT, DOWN);
  318. PIN_SLP(mp02-0, INPUT, DOWN);
  319. PIN_SLP(mp02-1, INPUT, DOWN);
  320. PIN_SLP(mp02-2, INPUT, NONE);
  321. PIN_SLP(mp02-3, INPUT, DOWN);
  322. PIN_SLP(mp03-0, INPUT, DOWN);
  323. PIN_SLP(mp03-1, INPUT, DOWN);
  324. PIN_SLP(mp03-2, OUT1, NONE);
  325. PIN_SLP(mp03-3, OUT0, NONE);
  326. PIN_SLP(mp03-4, INPUT, NONE);
  327. PIN_SLP(mp03-5, OUT1, NONE);
  328. PIN_SLP(mp03-6, INPUT, DOWN);
  329. PIN_SLP(mp03-7, INPUT, DOWN);
  330. PIN_SLP(mp04-0, INPUT, DOWN);
  331. PIN_SLP(mp04-1, OUT0, NONE);
  332. PIN_SLP(mp04-2, INPUT, DOWN);
  333. PIN_SLP(mp04-3, OUT0, NONE);
  334. PIN_SLP(mp04-4, INPUT, DOWN);
  335. PIN_SLP(mp04-5, INPUT, DOWN);
  336. PIN_SLP(mp04-6, OUT0, NONE);
  337. PIN_SLP(mp04-7, INPUT, DOWN);
  338. PIN_SLP(mp05-0, INPUT, NONE);
  339. PIN_SLP(mp05-1, INPUT, NONE);
  340. PIN_SLP(mp05-2, INPUT, NONE);
  341. PIN_SLP(mp05-3, INPUT, NONE);
  342. PIN_SLP(mp05-4, INPUT, DOWN);
  343. PIN_SLP(mp05-5, OUT0, NONE);
  344. PIN_SLP(mp05-6, INPUT, DOWN);
  345. PIN_SLP(mp05-7, PREV, NONE);
  346. PIN_SLP(mp06-0, INPUT, DOWN);
  347. PIN_SLP(mp06-1, INPUT, DOWN);
  348. PIN_SLP(mp06-2, INPUT, DOWN);
  349. PIN_SLP(mp06-3, INPUT, DOWN);
  350. PIN_SLP(mp06-4, INPUT, DOWN);
  351. PIN_SLP(mp06-5, INPUT, DOWN);
  352. PIN_SLP(mp06-6, INPUT, DOWN);
  353. PIN_SLP(mp06-7, INPUT, DOWN);
  354. PIN_SLP(mp07-0, INPUT, DOWN);
  355. PIN_SLP(mp07-1, INPUT, DOWN);
  356. PIN_SLP(mp07-2, INPUT, DOWN);
  357. PIN_SLP(mp07-3, INPUT, DOWN);
  358. PIN_SLP(mp07-4, INPUT, DOWN);
  359. PIN_SLP(mp07-5, INPUT, DOWN);
  360. PIN_SLP(mp07-6, INPUT, DOWN);
  361. PIN_SLP(mp07-7, INPUT, DOWN);
  362. };
  363. };
  364. &sdhci0 {
  365. bus-width = <4>;
  366. non-removable;
  367. mmc-pwrseq = <&nand_pwrseq>;
  368. pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4>;
  369. pinctrl-names = "default";
  370. status = "okay";
  371. assigned-clocks = <&clocks MOUT_MMC0>, <&clocks SCLK_MMC0>;
  372. assigned-clock-rates = <0>, <52000000>;
  373. assigned-clock-parents = <&clocks MOUT_MPLL>;
  374. };