s5pv210-goni.dts 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  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 Goni board.
  11. */
  12. /dts-v1/;
  13. #include <dt-bindings/gpio/gpio.h>
  14. #include <dt-bindings/interrupt-controller/irq.h>
  15. #include <dt-bindings/input/input.h>
  16. #include "s5pv210.dtsi"
  17. / {
  18. model = "Samsung Goni based on S5PC110";
  19. compatible = "samsung,goni", "samsung,s5pv210";
  20. aliases {
  21. i2c3 = &i2c_pmic;
  22. };
  23. chosen {
  24. bootargs = "console=ttySAC0,115200n8 root=/dev/mmcblk0p5 rw rootwait ignore_loglevel earlyprintk";
  25. };
  26. memory@30000000 {
  27. device_type = "memory";
  28. reg = <0x30000000 0x05000000>,
  29. <0x40000000 0x10000000>,
  30. <0x50000000 0x08000000>;
  31. };
  32. pmic_ap_clk: clock-0 {
  33. /* Workaround for missing clock on PMIC */
  34. compatible = "fixed-clock";
  35. #clock-cells = <0>;
  36. clock-frequency = <32768>;
  37. };
  38. vtf_reg: regulator-0 {
  39. compatible = "regulator-fixed";
  40. regulator-name = "V_TF_2.8V";
  41. regulator-min-microvolt = <2800000>;
  42. regulator-max-microvolt = <2800000>;
  43. gpio = <&mp05 4 GPIO_ACTIVE_HIGH>;
  44. enable-active-high;
  45. };
  46. pda_reg: regulator-1 {
  47. compatible = "regulator-fixed";
  48. regulator-name = "VCC_1.8V_PDA";
  49. regulator-min-microvolt = <1800000>;
  50. regulator-max-microvolt = <1800000>;
  51. };
  52. bat_reg: regulator-2 {
  53. compatible = "regulator-fixed";
  54. regulator-name = "V_BAT";
  55. regulator-min-microvolt = <3700000>;
  56. regulator-max-microvolt = <3700000>;
  57. };
  58. tsp_reg: regulator-3 {
  59. compatible = "regulator-fixed";
  60. regulator-name = "TSP_VDD";
  61. regulator-min-microvolt = <2800000>;
  62. regulator-max-microvolt = <2800000>;
  63. gpio = <&gpj1 3 GPIO_ACTIVE_HIGH>;
  64. enable-active-high;
  65. };
  66. i2c_pmic: i2c-pmic {
  67. compatible = "i2c-gpio";
  68. sda-gpios = <&gpj4 0 GPIO_ACTIVE_HIGH>;
  69. scl-gpios = <&gpj4 3 GPIO_ACTIVE_HIGH>;
  70. i2c-gpio,delay-us = <2>; /* ~100 kHz */
  71. #address-cells = <1>;
  72. #size-cells = <0>;
  73. pmic@66 {
  74. compatible = "national,lp3974";
  75. reg = <0x66>;
  76. max8998,pmic-buck1-default-dvs-idx = <0>;
  77. max8998,pmic-buck1-dvs-gpios = <&gph0 3 GPIO_ACTIVE_HIGH>,
  78. <&gph0 4 GPIO_ACTIVE_HIGH>;
  79. max8998,pmic-buck1-dvs-voltage = <1200000>, <1200000>,
  80. <1200000>, <1200000>;
  81. max8998,pmic-buck2-default-dvs-idx = <0>;
  82. max8998,pmic-buck2-dvs-gpio = <&gph0 5 GPIO_ACTIVE_HIGH>;
  83. max8998,pmic-buck2-dvs-voltage = <1200000>, <1200000>;
  84. regulators {
  85. ldo2_reg: LDO2 {
  86. regulator-name = "VALIVE_1.1V";
  87. regulator-min-microvolt = <1100000>;
  88. regulator-max-microvolt = <1100000>;
  89. regulator-always-on;
  90. };
  91. ldo3_reg: LDO3 {
  92. regulator-name = "VUSB+MIPI_1.1V";
  93. regulator-min-microvolt = <1100000>;
  94. regulator-max-microvolt = <1100000>;
  95. regulator-always-on;
  96. };
  97. ldo4_reg: LDO4 {
  98. regulator-name = "VADC_3.3V";
  99. regulator-min-microvolt = <3300000>;
  100. regulator-max-microvolt = <3300000>;
  101. };
  102. ldo5_reg: LDO5 {
  103. regulator-name = "VTF_2.8V";
  104. regulator-min-microvolt = <2800000>;
  105. regulator-max-microvolt = <2800000>;
  106. };
  107. ldo6_reg: LDO6 {
  108. regulator-name = "VCC_3.3V";
  109. regulator-min-microvolt = <3300000>;
  110. regulator-max-microvolt = <3300000>;
  111. };
  112. ldo7_reg: LDO7 {
  113. regulator-name = "VLCD_1.8V";
  114. regulator-min-microvolt = <1800000>;
  115. regulator-max-microvolt = <1800000>;
  116. regulator-always-on;
  117. };
  118. ldo8_reg: LDO8 {
  119. regulator-name = "VUSB+VDAC_3.3V";
  120. regulator-min-microvolt = <3300000>;
  121. regulator-max-microvolt = <3300000>;
  122. };
  123. ldo9_reg: LDO9 {
  124. regulator-name = "VCC+VCAM_2.8V";
  125. regulator-min-microvolt = <2800000>;
  126. regulator-max-microvolt = <2800000>;
  127. };
  128. ldo10_reg: LDO10 {
  129. regulator-name = "VPLL_1.1V";
  130. regulator-min-microvolt = <1100000>;
  131. regulator-max-microvolt = <1100000>;
  132. regulator-boot-on;
  133. };
  134. ldo11_reg: LDO11 {
  135. regulator-name = "CAM_IO_2.8V";
  136. regulator-min-microvolt = <2800000>;
  137. regulator-max-microvolt = <2800000>;
  138. };
  139. ldo12_reg: LDO12 {
  140. regulator-name = "CAM_ISP_1.2V";
  141. regulator-min-microvolt = <1200000>;
  142. regulator-max-microvolt = <1200000>;
  143. };
  144. ldo13_reg: LDO13 {
  145. regulator-name = "CAM_A_2.8V";
  146. regulator-min-microvolt = <2800000>;
  147. regulator-max-microvolt = <2800000>;
  148. };
  149. ldo14_reg: LDO14 {
  150. regulator-name = "CAM_CIF_1.8V";
  151. regulator-min-microvolt = <1800000>;
  152. regulator-max-microvolt = <1800000>;
  153. };
  154. ldo15_reg: LDO15 {
  155. regulator-name = "CAM_AF_3.3V";
  156. regulator-min-microvolt = <3300000>;
  157. regulator-max-microvolt = <3300000>;
  158. };
  159. ldo16_reg: LDO16 {
  160. regulator-name = "VMIPI_1.8V";
  161. regulator-min-microvolt = <1800000>;
  162. regulator-max-microvolt = <1800000>;
  163. };
  164. ldo17_reg: LDO17 {
  165. regulator-name = "CAM_8M_1.8V";
  166. regulator-min-microvolt = <1800000>;
  167. regulator-max-microvolt = <1800000>;
  168. regulator-always-on;
  169. };
  170. buck1_reg: BUCK1 {
  171. regulator-name = "VARM_1.2V";
  172. regulator-min-microvolt = <1200000>;
  173. regulator-max-microvolt = <1200000>;
  174. };
  175. buck2_reg: BUCK2 {
  176. regulator-name = "VINT_1.2V";
  177. regulator-min-microvolt = <1200000>;
  178. regulator-max-microvolt = <1200000>;
  179. };
  180. buck3_reg: BUCK3 {
  181. regulator-name = "VCC_1.8V";
  182. regulator-min-microvolt = <1800000>;
  183. regulator-max-microvolt = <1800000>;
  184. regulator-always-on;
  185. };
  186. buck4_reg: BUCK4 {
  187. regulator-name = "CAM_CORE_1.2V";
  188. regulator-min-microvolt = <1200000>;
  189. regulator-max-microvolt = <1200000>;
  190. regulator-always-on;
  191. };
  192. ap32khz_reg: EN32KHz-AP {
  193. regulator-name = "32KHz AP";
  194. regulator-always-on;
  195. };
  196. };
  197. };
  198. };
  199. gpio-keys {
  200. compatible = "gpio-keys";
  201. power-key {
  202. gpios = <&gph2 6 1>;
  203. linux,code = <KEY_POWER>;
  204. label = "power";
  205. debounce-interval = <1>;
  206. wakeup-source;
  207. };
  208. };
  209. };
  210. &xusbxti {
  211. clock-frequency = <24000000>;
  212. };
  213. &keypad {
  214. linux,input-no-autorepeat;
  215. wakeup-source;
  216. samsung,keypad-num-rows = <3>;
  217. samsung,keypad-num-columns = <3>;
  218. pinctrl-names = "default";
  219. pinctrl-0 = <&keypad_row0>, <&keypad_row1>, <&keypad_row2>,
  220. <&keypad_col0>, <&keypad_col1>, <&keypad_col2>;
  221. status = "okay";
  222. key-1 {
  223. keypad,row = <0>;
  224. keypad,column = <1>;
  225. linux,code = <KEY_CONNECT>;
  226. };
  227. key-2 {
  228. keypad,row = <0>;
  229. keypad,column = <2>;
  230. linux,code = <KEY_BACK>;
  231. };
  232. key-3 {
  233. keypad,row = <1>;
  234. keypad,column = <1>;
  235. linux,code = <KEY_CAMERA_FOCUS>;
  236. };
  237. key-4 {
  238. keypad,row = <1>;
  239. keypad,column = <2>;
  240. linux,code = <KEY_VOLUMEUP>;
  241. };
  242. key-5 {
  243. keypad,row = <2>;
  244. keypad,column = <1>;
  245. linux,code = <KEY_CAMERA>;
  246. };
  247. key-6 {
  248. keypad,row = <2>;
  249. keypad,column = <2>;
  250. linux,code = <KEY_VOLUMEDOWN>;
  251. };
  252. };
  253. &uart0 {
  254. status = "okay";
  255. };
  256. &uart1 {
  257. status = "okay";
  258. };
  259. &uart2 {
  260. status = "okay";
  261. };
  262. &uart3 {
  263. status = "okay";
  264. };
  265. &rtc {
  266. clocks = <&clocks CLK_RTC>, <&pmic_ap_clk>;
  267. clock-names = "rtc", "rtc_src";
  268. };
  269. &sdhci0 {
  270. bus-width = <4>;
  271. non-removable;
  272. vmmc-supply = <&ldo5_reg>;
  273. pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_cd &sd0_bus1 &sd0_bus4>;
  274. pinctrl-names = "default";
  275. status = "okay";
  276. };
  277. &sdhci2 {
  278. bus-width = <4>;
  279. cd-gpios = <&gph3 4 1>;
  280. vmmc-supply = <&vtf_reg>;
  281. cd-inverted;
  282. pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4>;
  283. pinctrl-names = "default";
  284. status = "okay";
  285. };
  286. &hsotg {
  287. vusb_a-supply = <&ldo3_reg>;
  288. vusb_d-supply = <&ldo8_reg>;
  289. dr_mode = "peripheral";
  290. status = "okay";
  291. };
  292. &usbphy {
  293. status = "okay";
  294. };
  295. &i2c2 {
  296. samsung,i2c-sda-delay = <100>;
  297. samsung,i2c-max-bus-freq = <400000>;
  298. samsung,i2c-slave-addr = <0x10>;
  299. status = "okay";
  300. touchscreen@4a {
  301. compatible = "atmel,maxtouch";
  302. reg = <0x4a>;
  303. interrupt-parent = <&gpj0>;
  304. interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
  305. vdd-supply = <&tsp_reg>;
  306. };
  307. };
  308. &i2c0 {
  309. samsung,i2c-sda-delay = <100>;
  310. samsung,i2c-max-bus-freq = <100000>;
  311. samsung,i2c-slave-addr = <0x10>;
  312. status = "okay";
  313. noon010pc30: sensor@30 {
  314. compatible = "siliconfile,noon010pc30";
  315. reg = <0x30>;
  316. vddio-supply = <&ldo11_reg>;
  317. vdda-supply = <&ldo13_reg>;
  318. vdd_core-supply = <&ldo14_reg>;
  319. clock-frequency = <16000000>;
  320. clocks = <&camera 0>;
  321. clock-names = "mclk";
  322. nreset-gpios = <&gpb 2 GPIO_ACTIVE_HIGH>;
  323. nstby-gpios = <&gpb 0 GPIO_ACTIVE_HIGH>;
  324. port {
  325. noon010pc30_ep: endpoint {
  326. remote-endpoint = <&fimc0_ep>;
  327. bus-width = <8>;
  328. hsync-active = <0>;
  329. vsync-active = <1>;
  330. pclk-sample = <1>;
  331. };
  332. };
  333. };
  334. };
  335. &camera {
  336. pinctrl-0 = <&cam_port_a_io &cam_port_a_clk_active>;
  337. pinctrl-1 = <&cam_port_a_io &cam_port_a_clk_idle>;
  338. pinctrl-names = "default", "idle";
  339. parallel-ports {
  340. #address-cells = <1>;
  341. #size-cells = <0>;
  342. /* camera A input */
  343. port@1 {
  344. reg = <1>;
  345. fimc0_ep: endpoint {
  346. remote-endpoint = <&noon010pc30_ep>;
  347. bus-width = <8>;
  348. hsync-active = <1>;
  349. vsync-active = <1>;
  350. pclk-sample = <0>;
  351. };
  352. };
  353. };
  354. };
  355. &fimd {
  356. pinctrl-0 = <&lcd_clk &lcd_data24>;
  357. pinctrl-names = "default";
  358. status = "okay";
  359. display-timings {
  360. native-mode = <&timing0>;
  361. timing0: timing {
  362. /* 480x800@55Hz */
  363. clock-frequency = <23439570>;
  364. hactive = <480>;
  365. hfront-porch = <16>;
  366. hback-porch = <16>;
  367. hsync-len = <2>;
  368. vactive = <800>;
  369. vback-porch = <2>;
  370. vfront-porch = <28>;
  371. vsync-len = <1>;
  372. hsync-active = <0>;
  373. vsync-active = <0>;
  374. de-active = <0>;
  375. pixelclk-active = <0>;
  376. };
  377. };
  378. };
  379. &onenand {
  380. status = "okay";
  381. };