s5pv210-goni.dts 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449
  1. /*
  2. * Samsung's S5PV210 SoC device tree source
  3. *
  4. * Copyright (c) 2013-2014 Samsung Electronics, Co. Ltd.
  5. *
  6. * Mateusz Krawczuk <m.krawczuk@partner.samsung.com>
  7. * Tomasz Figa <t.figa@samsung.com>
  8. *
  9. * Board device tree source for Samsung Goni board.
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License version 2 as
  13. * published by the Free Software Foundation.
  14. */
  15. /dts-v1/;
  16. #include <dt-bindings/input/input.h>
  17. #include "s5pv210.dtsi"
  18. / {
  19. model = "Samsung Goni based on S5PC110";
  20. compatible = "samsung,goni", "samsung,s5pv210";
  21. aliases {
  22. i2c3 = &i2c_pmic;
  23. };
  24. chosen {
  25. bootargs = "console=ttySAC0,115200n8 root=/dev/mmcblk0p5 rw rootwait ignore_loglevel earlyprintk";
  26. };
  27. memory {
  28. device_type = "memory";
  29. reg = <0x30000000 0x05000000
  30. 0x40000000 0x10000000
  31. 0x50000000 0x08000000>;
  32. };
  33. regulators {
  34. compatible = "simple-bus";
  35. #address-cells = <1>;
  36. #size-cells = <0>;
  37. vtf_reg: fixed-regulator@0 {
  38. compatible = "regulator-fixed";
  39. regulator-name = "V_TF_2.8V";
  40. regulator-min-microvolt = <2800000>;
  41. regulator-max-microvolt = <2800000>;
  42. reg = <0>;
  43. gpios = <&mp05 4 0>;
  44. enable-active-high;
  45. };
  46. pda_reg: fixed-regulator@1 {
  47. compatible = "regulator-fixed";
  48. regulator-name = "VCC_1.8V_PDA";
  49. regulator-min-microvolt = <1800000>;
  50. regulator-max-microvolt = <1800000>;
  51. reg = <1>;
  52. };
  53. bat_reg: fixed-regulator@2 {
  54. compatible = "regulator-fixed";
  55. regulator-name = "V_BAT";
  56. regulator-min-microvolt = <3700000>;
  57. regulator-max-microvolt = <3700000>;
  58. reg = <2>;
  59. };
  60. tsp_reg: fixed-regulator@3 {
  61. compatible = "regulator-fixed";
  62. regulator-name = "TSP_VDD";
  63. regulator-min-microvolt = <2800000>;
  64. regulator-max-microvolt = <2800000>;
  65. reg = <3>;
  66. gpios = <&gpj1 3 0>;
  67. enable-active-high;
  68. };
  69. };
  70. i2c_pmic: i2c-pmic {
  71. compatible = "i2c-gpio";
  72. gpios = <&gpj4 0 0>, /* sda */
  73. <&gpj4 3 0>; /* scl */
  74. i2c-gpio,delay-us = <2>; /* ~100 kHz */
  75. #address-cells = <1>;
  76. #size-cells = <0>;
  77. pmic@66 {
  78. compatible = "national,lp3974";
  79. reg = <0x66>;
  80. max8998,pmic-buck1-default-dvs-idx = <0>;
  81. max8998,pmic-buck1-dvs-gpios = <&gph0 3 0>,
  82. <&gph0 4 0>;
  83. max8998,pmic-buck1-dvs-voltage = <1200000>, <1200000>,
  84. <1200000>, <1200000>;
  85. max8998,pmic-buck2-default-dvs-idx = <0>;
  86. max8998,pmic-buck2-dvs-gpio = <&gph0 5 0>;
  87. max8998,pmic-buck2-dvs-voltage = <1200000>, <1200000>;
  88. regulators {
  89. ldo2_reg: LDO2 {
  90. regulator-name = "VALIVE_1.1V";
  91. regulator-min-microvolt = <1100000>;
  92. regulator-max-microvolt = <1100000>;
  93. regulator-always-on;
  94. };
  95. ldo3_reg: LDO3 {
  96. regulator-name = "VUSB+MIPI_1.1V";
  97. regulator-min-microvolt = <1100000>;
  98. regulator-max-microvolt = <1100000>;
  99. regulator-always-on;
  100. };
  101. ldo4_reg: LDO4 {
  102. regulator-name = "VADC_3.3V";
  103. regulator-min-microvolt = <3300000>;
  104. regulator-max-microvolt = <3300000>;
  105. };
  106. ldo5_reg: LDO5 {
  107. regulator-name = "VTF_2.8V";
  108. regulator-min-microvolt = <2800000>;
  109. regulator-max-microvolt = <2800000>;
  110. };
  111. ldo6_reg: LDO6 {
  112. regulator-name = "VCC_3.3V";
  113. regulator-min-microvolt = <3300000>;
  114. regulator-max-microvolt = <3300000>;
  115. };
  116. ldo7_reg: LDO7 {
  117. regulator-name = "VLCD_1.8V";
  118. regulator-min-microvolt = <1800000>;
  119. regulator-max-microvolt = <1800000>;
  120. regulator-always-on;
  121. };
  122. ldo8_reg: LDO8 {
  123. regulator-name = "VUSB+VDAC_3.3V";
  124. regulator-min-microvolt = <3300000>;
  125. regulator-max-microvolt = <3300000>;
  126. };
  127. ldo9_reg: LDO9 {
  128. regulator-name = "VCC+VCAM_2.8V";
  129. regulator-min-microvolt = <2800000>;
  130. regulator-max-microvolt = <2800000>;
  131. };
  132. ldo10_reg: LDO10 {
  133. regulator-name = "VPLL_1.1V";
  134. regulator-min-microvolt = <1100000>;
  135. regulator-max-microvolt = <1100000>;
  136. regulator-boot-on;
  137. };
  138. ldo11_reg: LDO11 {
  139. regulator-name = "CAM_IO_2.8V";
  140. regulator-min-microvolt = <2800000>;
  141. regulator-max-microvolt = <2800000>;
  142. };
  143. ldo12_reg: LDO12 {
  144. regulator-name = "CAM_ISP_1.2V";
  145. regulator-min-microvolt = <1200000>;
  146. regulator-max-microvolt = <1200000>;
  147. };
  148. ldo13_reg: LDO13 {
  149. regulator-name = "CAM_A_2.8V";
  150. regulator-min-microvolt = <2800000>;
  151. regulator-max-microvolt = <2800000>;
  152. };
  153. ldo14_reg: LDO14 {
  154. regulator-name = "CAM_CIF_1.8V";
  155. regulator-min-microvolt = <1800000>;
  156. regulator-max-microvolt = <1800000>;
  157. };
  158. ldo15_reg: LDO15 {
  159. regulator-name = "CAM_AF_3.3V";
  160. regulator-min-microvolt = <3300000>;
  161. regulator-max-microvolt = <3300000>;
  162. };
  163. ldo16_reg: LDO16 {
  164. regulator-name = "VMIPI_1.8V";
  165. regulator-min-microvolt = <1800000>;
  166. regulator-max-microvolt = <1800000>;
  167. };
  168. ldo17_reg: LDO17 {
  169. regulator-name = "CAM_8M_1.8V";
  170. regulator-min-microvolt = <1800000>;
  171. regulator-max-microvolt = <1800000>;
  172. regulator-always-on;
  173. };
  174. buck1_reg: BUCK1 {
  175. regulator-name = "VARM_1.2V";
  176. regulator-min-microvolt = <1200000>;
  177. regulator-max-microvolt = <1200000>;
  178. };
  179. buck2_reg: BUCK2 {
  180. regulator-name = "VINT_1.2V";
  181. regulator-min-microvolt = <1200000>;
  182. regulator-max-microvolt = <1200000>;
  183. };
  184. buck3_reg: BUCK3 {
  185. regulator-name = "VCC_1.8V";
  186. regulator-min-microvolt = <1800000>;
  187. regulator-max-microvolt = <1800000>;
  188. regulator-always-on;
  189. };
  190. buck4_reg: BUCK4 {
  191. regulator-name = "CAM_CORE_1.2V";
  192. regulator-min-microvolt = <1200000>;
  193. regulator-max-microvolt = <1200000>;
  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. gpio-key,wakeup;
  207. };
  208. };
  209. };
  210. &xusbxti {
  211. clock-frequency = <24000000>;
  212. };
  213. &keypad {
  214. linux,input-no-autorepeat;
  215. linux,input-wakeup;
  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. &sdhci0 {
  266. bus-width = <4>;
  267. non-removable;
  268. vmmc-supply = <&ldo5_reg>;
  269. pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_cd &sd0_bus1 &sd0_bus4>;
  270. pinctrl-names = "default";
  271. status = "okay";
  272. };
  273. &sdhci2 {
  274. bus-width = <4>;
  275. cd-gpios = <&gph3 4 1>;
  276. vmmc-supply = <&vtf_reg>;
  277. cd-inverted;
  278. pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4>;
  279. pinctrl-names = "default";
  280. status = "okay";
  281. };
  282. &hsotg {
  283. vusb_a-supply = <&ldo3_reg>;
  284. vusb_d-supply = <&ldo8_reg>;
  285. status = "okay";
  286. };
  287. &usbphy {
  288. status = "okay";
  289. };
  290. &i2c2 {
  291. samsung,i2c-sda-delay = <100>;
  292. samsung,i2c-max-bus-freq = <400000>;
  293. samsung,i2c-slave-addr = <0x10>;
  294. status = "okay";
  295. tsp@4a {
  296. compatible = "atmel,maxtouch";
  297. reg = <0x4a>;
  298. interrupt-parent = <&gpj0>;
  299. interrupts = <5 2>;
  300. atmel,x-line = <17>;
  301. atmel,y-line = <11>;
  302. atmel,x-size = <800>;
  303. atmel,y-size = <480>;
  304. atmel,burst-length = <0x21>;
  305. atmel,threshold = <0x28>;
  306. atmel,orientation = <1>;
  307. vdd-supply = <&tsp_reg>;
  308. };
  309. };
  310. &i2c0 {
  311. samsung,i2c-sda-delay = <100>;
  312. samsung,i2c-max-bus-freq = <100000>;
  313. samsung,i2c-slave-addr = <0x10>;
  314. status = "okay";
  315. noon010pc30: sensor@30 {
  316. compatible = "siliconfile,noon010pc30";
  317. reg = <0x30>;
  318. vddio-supply = <&ldo11_reg>;
  319. vdda-supply = <&ldo13_reg>;
  320. vdd_core-supply = <&ldo14_reg>;
  321. clock-frequency = <16000000>;
  322. clocks = <&clock_cam 0>;
  323. clock-names = "mclk";
  324. nreset-gpios = <&gpb 2 0>;
  325. nstby-gpios = <&gpb 0 0>;
  326. port {
  327. noon010pc30_ep: endpoint {
  328. remote-endpoint = <&fimc0_ep>;
  329. bus-width = <8>;
  330. hsync-active = <0>;
  331. vsync-active = <1>;
  332. pclk-sample = <1>;
  333. };
  334. };
  335. };
  336. };
  337. &camera {
  338. pinctrl-0 = <&cam_port_a_io &cam_port_a_clk_active>;
  339. pinctrl-1 = <&cam_port_a_io &cam_port_a_clk_idle>;
  340. pinctrl-names = "default", "idle";
  341. parallel-ports {
  342. #address-cells = <1>;
  343. #size-cells = <0>;
  344. /* camera A input */
  345. port@1 {
  346. reg = <1>;
  347. fimc0_ep: endpoint {
  348. remote-endpoint = <&noon010pc30_ep>;
  349. bus-width = <8>;
  350. hsync-active = <1>;
  351. vsync-active = <1>;
  352. pclk-sample = <0>;
  353. };
  354. };
  355. };
  356. };
  357. &fimd {
  358. pinctrl-0 = <&lcd_clk &lcd_data24>;
  359. pinctrl-names = "default";
  360. status = "okay";
  361. display-timings {
  362. native-mode = <&timing0>;
  363. timing0: timing {
  364. /* 480x800@55Hz */
  365. clock-frequency = <23439570>;
  366. hactive = <480>;
  367. hfront-porch = <16>;
  368. hback-porch = <16>;
  369. hsync-len = <2>;
  370. vactive = <800>;
  371. vback-porch = <2>;
  372. vfront-porch = <28>;
  373. vsync-len = <1>;
  374. hsync-active = <0>;
  375. vsync-active = <0>;
  376. de-active = <0>;
  377. pixelclk-active = <0>;
  378. };
  379. };
  380. };
  381. &onenand {
  382. status = "okay";
  383. };