s5pv210-aquila.dts 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Samsung's S5PV210 SoC device tree source
  4. *
  5. * Copyright (c) 2013-2014 Samsung Electronics, Co. Ltd.
  6. *
  7. * Mateusz Krawczuk <[email protected]>
  8. * Tomasz Figa <[email protected]>
  9. *
  10. * Board device tree source for Samsung Aquila board.
  11. */
  12. /dts-v1/;
  13. #include <dt-bindings/gpio/gpio.h>
  14. #include <dt-bindings/input/input.h>
  15. #include "s5pv210.dtsi"
  16. / {
  17. model = "Samsung Aquila based on S5PC110";
  18. compatible = "samsung,aquila", "samsung,s5pv210";
  19. aliases {
  20. i2c3 = &i2c_pmic;
  21. };
  22. chosen {
  23. bootargs = "console=ttySAC2,115200n8 root=/dev/mmcblk1p5 rw rootwait ignore_loglevel earlyprintk";
  24. };
  25. memory@30000000 {
  26. device_type = "memory";
  27. reg = <0x30000000 0x05000000>, <0x40000000 0x18000000>;
  28. };
  29. pmic_ap_clk: clock-0 {
  30. /* Workaround for missing clock on PMIC */
  31. compatible = "fixed-clock";
  32. #clock-cells = <0>;
  33. clock-frequency = <32768>;
  34. };
  35. vtf_reg: regulator-0 {
  36. compatible = "regulator-fixed";
  37. regulator-name = "V_TF_2.8V";
  38. regulator-min-microvolt = <2800000>;
  39. regulator-max-microvolt = <2800000>;
  40. gpio = <&mp05 4 GPIO_ACTIVE_HIGH>;
  41. enable-active-high;
  42. };
  43. pda_reg: regulator-1 {
  44. compatible = "regulator-fixed";
  45. regulator-name = "VCC_1.8V_PDA";
  46. regulator-min-microvolt = <1800000>;
  47. regulator-max-microvolt = <1800000>;
  48. };
  49. bat_reg: regulator-2 {
  50. compatible = "regulator-fixed";
  51. regulator-name = "V_BAT";
  52. regulator-min-microvolt = <3700000>;
  53. regulator-max-microvolt = <3700000>;
  54. };
  55. i2c_pmic: i2c-pmic {
  56. compatible = "i2c-gpio";
  57. sda-gpios = <&gpj4 0 GPIO_ACTIVE_HIGH>;
  58. scl-gpios = <&gpj4 3 GPIO_ACTIVE_HIGH>;
  59. i2c-gpio,delay-us = <2>; /* ~100 kHz */
  60. #address-cells = <1>;
  61. #size-cells = <0>;
  62. pmic@66 {
  63. compatible = "national,lp3974";
  64. reg = <0x66>;
  65. max8998,pmic-buck1-default-dvs-idx = <0>;
  66. max8998,pmic-buck1-dvs-gpios = <&gph0 3 GPIO_ACTIVE_HIGH>,
  67. <&gph0 4 GPIO_ACTIVE_HIGH>;
  68. max8998,pmic-buck1-dvs-voltage = <1200000>, <1200000>,
  69. <1200000>, <1200000>;
  70. max8998,pmic-buck2-default-dvs-idx = <0>;
  71. max8998,pmic-buck2-dvs-gpio = <&gph0 5 GPIO_ACTIVE_HIGH>;
  72. max8998,pmic-buck2-dvs-voltage = <1200000>, <1200000>;
  73. regulators {
  74. ldo2_reg: LDO2 {
  75. regulator-name = "VALIVE_1.1V";
  76. regulator-min-microvolt = <1100000>;
  77. regulator-max-microvolt = <1100000>;
  78. regulator-always-on;
  79. };
  80. ldo3_reg: LDO3 {
  81. regulator-name = "VUSB+MIPI_1.1V";
  82. regulator-min-microvolt = <1100000>;
  83. regulator-max-microvolt = <1100000>;
  84. regulator-always-on;
  85. };
  86. ldo4_reg: LDO4 {
  87. regulator-name = "VADC_3.3V";
  88. regulator-min-microvolt = <3300000>;
  89. regulator-max-microvolt = <3300000>;
  90. };
  91. ldo5_reg: LDO5 {
  92. regulator-name = "VTF_2.8V";
  93. regulator-min-microvolt = <2800000>;
  94. regulator-max-microvolt = <2800000>;
  95. regulator-always-on;
  96. };
  97. ldo6_reg: LDO6 {
  98. regulator-name = "VCC_3.3V";
  99. regulator-min-microvolt = <3300000>;
  100. regulator-max-microvolt = <3300000>;
  101. regulator-always-on;
  102. };
  103. ldo7_reg: LDO7 {
  104. regulator-name = "VCC_3.0V";
  105. regulator-min-microvolt = <3000000>;
  106. regulator-max-microvolt = <3000000>;
  107. regulator-always-on;
  108. regulator-boot-on;
  109. };
  110. ldo8_reg: LDO8 {
  111. regulator-name = "VUSB+VDAC_3.3V";
  112. regulator-min-microvolt = <3300000>;
  113. regulator-max-microvolt = <3300000>;
  114. regulator-always-on;
  115. };
  116. ldo9_reg: LDO9 {
  117. regulator-name = "VCC+VCAM_2.8V";
  118. regulator-min-microvolt = <2800000>;
  119. regulator-max-microvolt = <2800000>;
  120. regulator-always-on;
  121. };
  122. ldo10_reg: LDO10 {
  123. regulator-name = "VPLL_1.1V";
  124. regulator-min-microvolt = <1100000>;
  125. regulator-max-microvolt = <1100000>;
  126. regulator-always-on;
  127. regulator-boot-on;
  128. };
  129. ldo11_reg: LDO11 {
  130. regulator-name = "CAM_IO_2.8V";
  131. regulator-min-microvolt = <2800000>;
  132. regulator-max-microvolt = <2800000>;
  133. regulator-always-on;
  134. };
  135. ldo12_reg: LDO12 {
  136. regulator-name = "CAM_ISP_1.2V";
  137. regulator-min-microvolt = <1200000>;
  138. regulator-max-microvolt = <1200000>;
  139. regulator-always-on;
  140. };
  141. ldo13_reg: LDO13 {
  142. regulator-name = "CAM_A_2.8V";
  143. regulator-min-microvolt = <2800000>;
  144. regulator-max-microvolt = <2800000>;
  145. regulator-always-on;
  146. };
  147. ldo14_reg: LDO14 {
  148. regulator-name = "CAM_CIF_1.8V";
  149. regulator-min-microvolt = <1800000>;
  150. regulator-max-microvolt = <1800000>;
  151. regulator-always-on;
  152. };
  153. ldo15_reg: LDO15 {
  154. regulator-name = "CAM_AF_3.3V";
  155. regulator-min-microvolt = <3300000>;
  156. regulator-max-microvolt = <3300000>;
  157. regulator-always-on;
  158. };
  159. ldo16_reg: LDO16 {
  160. regulator-name = "VMIPI_1.8V";
  161. regulator-min-microvolt = <1800000>;
  162. regulator-max-microvolt = <1800000>;
  163. regulator-always-on;
  164. };
  165. ldo17_reg: LDO17 {
  166. regulator-name = "CAM_8M_1.8V";
  167. regulator-min-microvolt = <1800000>;
  168. regulator-max-microvolt = <1800000>;
  169. regulator-always-on;
  170. };
  171. buck1_reg: BUCK1 {
  172. regulator-name = "VARM_1.2V";
  173. regulator-min-microvolt = <1200000>;
  174. regulator-max-microvolt = <1200000>;
  175. regulator-always-on;
  176. };
  177. buck2_reg: BUCK2 {
  178. regulator-name = "VINT_1.2V";
  179. regulator-min-microvolt = <1200000>;
  180. regulator-max-microvolt = <1200000>;
  181. regulator-always-on;
  182. };
  183. buck3_reg: BUCK3 {
  184. regulator-name = "VCC_1.8V";
  185. regulator-min-microvolt = <1800000>;
  186. regulator-max-microvolt = <1800000>;
  187. regulator-always-on;
  188. };
  189. buck4_reg: BUCK4 {
  190. regulator-name = "CAM_CORE_1.2V";
  191. regulator-min-microvolt = <1200000>;
  192. regulator-max-microvolt = <1200000>;
  193. regulator-always-on;
  194. };
  195. ap32khz_reg: EN32KHz-AP {
  196. regulator-name = "32KHz AP";
  197. regulator-always-on;
  198. };
  199. vichg_reg: ENVICHG {
  200. regulator-name = "VICHG";
  201. };
  202. safeout1_reg: ESAFEOUT1 {
  203. regulator-name = "SAFEOUT1";
  204. regulator-always-on;
  205. };
  206. safeout2_reg: ESAFEOUT2 {
  207. regulator-name = "SAFEOUT2";
  208. regulator-boot-on;
  209. };
  210. };
  211. };
  212. };
  213. gpio-keys {
  214. compatible = "gpio-keys";
  215. power-key {
  216. gpios = <&gph2 6 1>;
  217. linux,code = <KEY_POWER>;
  218. label = "power";
  219. debounce-interval = <1>;
  220. wakeup-source;
  221. };
  222. };
  223. };
  224. &xusbxti {
  225. clock-frequency = <24000000>;
  226. };
  227. &keypad {
  228. linux,input-no-autorepeat;
  229. wakeup-source;
  230. samsung,keypad-num-rows = <3>;
  231. samsung,keypad-num-columns = <3>;
  232. pinctrl-names = "default";
  233. pinctrl-0 = <&keypad_row0>, <&keypad_row1>, <&keypad_row2>,
  234. <&keypad_col0>, <&keypad_col1>, <&keypad_col2>;
  235. status = "okay";
  236. key-1 {
  237. keypad,row = <0>;
  238. keypad,column = <1>;
  239. linux,code = <KEY_CONNECT>;
  240. };
  241. key-2 {
  242. keypad,row = <0>;
  243. keypad,column = <2>;
  244. linux,code = <KEY_BACK>;
  245. };
  246. key-3 {
  247. keypad,row = <1>;
  248. keypad,column = <1>;
  249. linux,code = <KEY_CAMERA_FOCUS>;
  250. };
  251. key-4 {
  252. keypad,row = <1>;
  253. keypad,column = <2>;
  254. linux,code = <KEY_VOLUMEUP>;
  255. };
  256. key-5 {
  257. keypad,row = <2>;
  258. keypad,column = <1>;
  259. linux,code = <KEY_CAMERA>;
  260. };
  261. key-6 {
  262. keypad,row = <2>;
  263. keypad,column = <2>;
  264. linux,code = <KEY_VOLUMEDOWN>;
  265. };
  266. };
  267. &uart0 {
  268. status = "okay";
  269. };
  270. &uart1 {
  271. status = "okay";
  272. };
  273. &uart2 {
  274. status = "okay";
  275. };
  276. &uart3 {
  277. status = "okay";
  278. };
  279. &rtc {
  280. clocks = <&clocks CLK_RTC>, <&pmic_ap_clk>;
  281. clock-names = "rtc", "rtc_src";
  282. };
  283. &sdhci0 {
  284. bus-width = <4>;
  285. non-removable;
  286. status = "okay";
  287. vmmc-supply = <&ldo5_reg>;
  288. pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4>;
  289. pinctrl-names = "default";
  290. };
  291. &sdhci2 {
  292. bus-width = <4>;
  293. cd-gpios = <&gph3 4 1>;
  294. vmmc-supply = <&vtf_reg>;
  295. cd-inverted;
  296. pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4 &t_flash_detect>;
  297. pinctrl-names = "default";
  298. status = "okay";
  299. };
  300. &onenand {
  301. status = "okay";
  302. };
  303. &hsotg {
  304. vusb_a-supply = <&ldo3_reg>;
  305. vusb_d-supply = <&ldo8_reg>;
  306. dr_mode = "peripheral";
  307. status = "okay";
  308. };
  309. &usbphy {
  310. status = "okay";
  311. };
  312. &fimd {
  313. pinctrl-0 = <&lcd_clk &lcd_data24 &pwm1_out>;
  314. pinctrl-names = "default";
  315. status = "okay";
  316. display-timings {
  317. native-mode = <&timing0>;
  318. timing0: timing {
  319. clock-frequency = <0>;
  320. hactive = <800>;
  321. vactive = <480>;
  322. hfront-porch = <16>;
  323. hback-porch = <16>;
  324. hsync-len = <2>;
  325. vback-porch = <3>;
  326. vfront-porch = <28>;
  327. vsync-len = <1>;
  328. };
  329. };
  330. };
  331. &pinctrl0 {
  332. t_flash_detect: t-flash-detect-pins {
  333. samsung,pins = "gph3-4";
  334. samsung,pin-function = <S5PV210_PIN_FUNC_INPUT>;
  335. samsung,pin-pud = <S5PV210_PIN_PULL_NONE>;
  336. };
  337. };