exynos4412-trats2.dts 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  1. /*
  2. * Samsung's Exynos4412 based Trats 2 board device tree source
  3. *
  4. * Copyright (c) 2013 Samsung Electronics Co., Ltd.
  5. * http://www.samsung.com
  6. *
  7. * Device tree source file for Samsung's Trats 2 board which is based on
  8. * Samsung's Exynos4412 SoC.
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License version 2 as
  12. * published by the Free Software Foundation.
  13. */
  14. /dts-v1/;
  15. #include "exynos4412.dtsi"
  16. / {
  17. model = "Samsung Trats 2 based on Exynos4412";
  18. compatible = "samsung,trats2", "samsung,exynos4412";
  19. aliases {
  20. i2c8 = &i2c_ak8975;
  21. };
  22. memory {
  23. reg = <0x40000000 0x40000000>;
  24. };
  25. chosen {
  26. bootargs = "console=ttySAC2,115200N8 root=/dev/mmcblk0p5 rootwait earlyprintk panic=5";
  27. };
  28. firmware@0204F000 {
  29. compatible = "samsung,secure-firmware";
  30. reg = <0x0204F000 0x1000>;
  31. };
  32. fixed-rate-clocks {
  33. xxti {
  34. compatible = "samsung,clock-xxti", "fixed-clock";
  35. clock-frequency = <0>;
  36. };
  37. xusbxti {
  38. compatible = "samsung,clock-xusbxti", "fixed-clock";
  39. clock-frequency = <24000000>;
  40. };
  41. };
  42. regulators {
  43. compatible = "simple-bus";
  44. #address-cells = <1>;
  45. #size-cells = <0>;
  46. vemmc_reg: regulator-0 {
  47. compatible = "regulator-fixed";
  48. regulator-name = "VMEM_VDD_2.8V";
  49. regulator-min-microvolt = <2800000>;
  50. regulator-max-microvolt = <2800000>;
  51. gpio = <&gpk0 2 0>;
  52. enable-active-high;
  53. };
  54. cam_io_reg: voltage-regulator-1 {
  55. compatible = "regulator-fixed";
  56. regulator-name = "CAM_SENSOR_A";
  57. regulator-min-microvolt = <2800000>;
  58. regulator-max-microvolt = <2800000>;
  59. gpio = <&gpm0 2 0>;
  60. enable-active-high;
  61. };
  62. /* More to come */
  63. };
  64. gpio-keys {
  65. compatible = "gpio-keys";
  66. key-down {
  67. interrupt-parent = <&gpj1>;
  68. interrupts = <2 0>;
  69. gpios = <&gpj1 2 1>;
  70. linux,code = <114>;
  71. label = "volume down";
  72. debounce-interval = <10>;
  73. };
  74. key-up {
  75. interrupt-parent = <&gpj1>;
  76. interrupts = <1 0>;
  77. gpios = <&gpj1 1 1>;
  78. linux,code = <115>;
  79. label = "volume up";
  80. debounce-interval = <10>;
  81. };
  82. key-power {
  83. interrupt-parent = <&gpx2>;
  84. interrupts = <7 0>;
  85. gpios = <&gpx2 7 1>;
  86. linux,code = <116>;
  87. label = "power";
  88. debounce-interval = <10>;
  89. gpio-key,wakeup;
  90. };
  91. };
  92. i2c@13890000 {
  93. samsung,i2c-sda-delay = <100>;
  94. samsung,i2c-slave-addr = <0x10>;
  95. samsung,i2c-max-bus-freq = <400000>;
  96. pinctrl-0 = <&i2c3_bus>;
  97. pinctrl-names = "default";
  98. status = "okay";
  99. mms114-touchscreen@48 {
  100. compatible = "melfas,mms114";
  101. reg = <0x48>;
  102. interrupt-parent = <&gpm2>;
  103. interrupts = <3 2>;
  104. x-size = <720>;
  105. y-size = <1280>;
  106. avdd-supply = <&ldo23_reg>;
  107. vdd-supply = <&ldo24_reg>;
  108. };
  109. };
  110. i2c@138D0000 {
  111. samsung,i2c-sda-delay = <100>;
  112. samsung,i2c-slave-addr = <0x10>;
  113. samsung,i2c-max-bus-freq = <100000>;
  114. pinctrl-0 = <&i2c7_bus>;
  115. pinctrl-names = "default";
  116. status = "okay";
  117. max77686_pmic@09 {
  118. compatible = "maxim,max77686";
  119. interrupt-parent = <&gpx0>;
  120. interrupts = <7 0>;
  121. reg = <0x09>;
  122. voltage-regulators {
  123. ldo1_reg: ldo1 {
  124. regulator-compatible = "LDO1";
  125. regulator-name = "VALIVE_1.0V_AP";
  126. regulator-min-microvolt = <1000000>;
  127. regulator-max-microvolt = <1000000>;
  128. regulator-always-on;
  129. regulator-mem-on;
  130. };
  131. ldo2_reg: ldo2 {
  132. regulator-compatible = "LDO2";
  133. regulator-name = "VM1M2_1.2V_AP";
  134. regulator-min-microvolt = <1200000>;
  135. regulator-max-microvolt = <1200000>;
  136. regulator-always-on;
  137. regulator-mem-on;
  138. };
  139. ldo3_reg: ldo3 {
  140. regulator-compatible = "LDO3";
  141. regulator-name = "VCC_1.8V_AP";
  142. regulator-min-microvolt = <1800000>;
  143. regulator-max-microvolt = <1800000>;
  144. regulator-always-on;
  145. regulator-mem-on;
  146. };
  147. ldo4_reg: ldo4 {
  148. regulator-compatible = "LDO4";
  149. regulator-name = "VCC_2.8V_AP";
  150. regulator-min-microvolt = <2800000>;
  151. regulator-max-microvolt = <2800000>;
  152. regulator-always-on;
  153. regulator-mem-on;
  154. };
  155. ldo5_reg: ldo5 {
  156. regulator-compatible = "LDO5";
  157. regulator-name = "VCC_1.8V_IO";
  158. regulator-min-microvolt = <1800000>;
  159. regulator-max-microvolt = <1800000>;
  160. regulator-always-on;
  161. regulator-mem-on;
  162. };
  163. ldo6_reg: ldo6 {
  164. regulator-compatible = "LDO6";
  165. regulator-name = "VMPLL_1.0V_AP";
  166. regulator-min-microvolt = <1000000>;
  167. regulator-max-microvolt = <1000000>;
  168. regulator-always-on;
  169. regulator-mem-on;
  170. };
  171. ldo7_reg: ldo7 {
  172. regulator-compatible = "LDO7";
  173. regulator-name = "VPLL_1.0V_AP";
  174. regulator-min-microvolt = <1000000>;
  175. regulator-max-microvolt = <1000000>;
  176. regulator-always-on;
  177. regulator-mem-on;
  178. };
  179. ldo8_reg: ldo8 {
  180. regulator-compatible = "LDO8";
  181. regulator-name = "VMIPI_1.0V";
  182. regulator-min-microvolt = <1000000>;
  183. regulator-max-microvolt = <1000000>;
  184. regulator-mem-off;
  185. };
  186. ldo9_reg: ldo9 {
  187. regulator-compatible = "LDO9";
  188. regulator-name = "CAM_ISP_MIPI_1.2V";
  189. regulator-min-microvolt = <1200000>;
  190. regulator-max-microvolt = <1200000>;
  191. regulator-mem-idle;
  192. };
  193. ldo10_reg: ldo10 {
  194. regulator-compatible = "LDO10";
  195. regulator-name = "VMIPI_1.8V";
  196. regulator-min-microvolt = <1800000>;
  197. regulator-max-microvolt = <1800000>;
  198. regulator-mem-off;
  199. };
  200. ldo11_reg: ldo11 {
  201. regulator-compatible = "LDO11";
  202. regulator-name = "VABB1_1.95V";
  203. regulator-min-microvolt = <1950000>;
  204. regulator-max-microvolt = <1950000>;
  205. regulator-always-on;
  206. regulator-mem-off;
  207. };
  208. ldo12_reg: ldo12 {
  209. regulator-compatible = "LDO12";
  210. regulator-name = "VUOTG_3.0V";
  211. regulator-min-microvolt = <3000000>;
  212. regulator-max-microvolt = <3000000>;
  213. regulator-mem-off;
  214. };
  215. ldo13_reg: ldo13 {
  216. regulator-compatible = "LDO13";
  217. regulator-name = "NFC_AVDD_1.8V";
  218. regulator-min-microvolt = <1800000>;
  219. regulator-max-microvolt = <1800000>;
  220. regulator-mem-idle;
  221. };
  222. ldo14_reg: ldo14 {
  223. regulator-compatible = "LDO14";
  224. regulator-name = "VABB2_1.95V";
  225. regulator-min-microvolt = <1950000>;
  226. regulator-max-microvolt = <1950000>;
  227. regulator-always-on;
  228. regulator-mem-off;
  229. };
  230. ldo15_reg: ldo15 {
  231. regulator-compatible = "LDO15";
  232. regulator-name = "VHSIC_1.0V";
  233. regulator-min-microvolt = <1000000>;
  234. regulator-max-microvolt = <1000000>;
  235. regulator-mem-off;
  236. };
  237. ldo16_reg: ldo16 {
  238. regulator-compatible = "LDO16";
  239. regulator-name = "VHSIC_1.8V";
  240. regulator-min-microvolt = <1800000>;
  241. regulator-max-microvolt = <1800000>;
  242. regulator-mem-off;
  243. };
  244. ldo17_reg: ldo17 {
  245. regulator-compatible = "LDO17";
  246. regulator-name = "CAM_SENSOR_CORE_1.2V";
  247. regulator-min-microvolt = <1200000>;
  248. regulator-max-microvolt = <1200000>;
  249. regulator-mem-idle;
  250. };
  251. ldo18_reg: ldo18 {
  252. regulator-compatible = "LDO18";
  253. regulator-name = "CAM_ISP_SEN_IO_1.8V";
  254. regulator-min-microvolt = <1800000>;
  255. regulator-max-microvolt = <1800000>;
  256. regulator-mem-idle;
  257. };
  258. ldo19_reg: ldo19 {
  259. regulator-compatible = "LDO19";
  260. regulator-name = "VT_CAM_1.8V";
  261. regulator-min-microvolt = <1800000>;
  262. regulator-max-microvolt = <1800000>;
  263. regulator-mem-idle;
  264. };
  265. ldo20_reg: ldo20 {
  266. regulator-compatible = "LDO20";
  267. regulator-name = "VDDQ_PRE_1.8V";
  268. regulator-min-microvolt = <1800000>;
  269. regulator-max-microvolt = <1800000>;
  270. regulator-mem-idle;
  271. };
  272. ldo21_reg: ldo21 {
  273. regulator-compatible = "LDO21";
  274. regulator-name = "VTF_2.8V";
  275. regulator-min-microvolt = <2800000>;
  276. regulator-max-microvolt = <2800000>;
  277. regulator-mem-idle;
  278. };
  279. ldo22_reg: ldo22 {
  280. regulator-compatible = "LDO22";
  281. regulator-name = "VMEM_VDD_2.8V";
  282. regulator-min-microvolt = <2800000>;
  283. regulator-max-microvolt = <2800000>;
  284. regulator-always-on;
  285. regulator-mem-off;
  286. };
  287. ldo23_reg: ldo23 {
  288. regulator-compatible = "LDO23";
  289. regulator-name = "TSP_AVDD_3.3V";
  290. regulator-min-microvolt = <3300000>;
  291. regulator-max-microvolt = <3300000>;
  292. regulator-mem-idle;
  293. };
  294. ldo24_reg: ldo24 {
  295. regulator-compatible = "LDO24";
  296. regulator-name = "TSP_VDD_1.8V";
  297. regulator-min-microvolt = <1800000>;
  298. regulator-max-microvolt = <1800000>;
  299. regulator-mem-idle;
  300. };
  301. ldo25_reg: ldo25 {
  302. regulator-compatible = "LDO25";
  303. regulator-name = "LCD_VCC_3.3V";
  304. regulator-min-microvolt = <2800000>;
  305. regulator-max-microvolt = <2800000>;
  306. regulator-mem-idle;
  307. };
  308. ldo26_reg: ldo26 {
  309. regulator-compatible = "LDO26";
  310. regulator-name = "MOTOR_VCC_3.0V";
  311. regulator-min-microvolt = <3000000>;
  312. regulator-max-microvolt = <3000000>;
  313. regulator-mem-idle;
  314. };
  315. buck1_reg: buck1 {
  316. regulator-compatible = "BUCK1";
  317. regulator-name = "vdd_mif";
  318. regulator-min-microvolt = <850000>;
  319. regulator-max-microvolt = <1100000>;
  320. regulator-always-on;
  321. regulator-boot-on;
  322. regulator-mem-off;
  323. };
  324. buck2_reg: buck2 {
  325. regulator-compatible = "BUCK2";
  326. regulator-name = "vdd_arm";
  327. regulator-min-microvolt = <850000>;
  328. regulator-max-microvolt = <1500000>;
  329. regulator-always-on;
  330. regulator-boot-on;
  331. regulator-mem-off;
  332. };
  333. buck3_reg: buck3 {
  334. regulator-compatible = "BUCK3";
  335. regulator-name = "vdd_int";
  336. regulator-min-microvolt = <850000>;
  337. regulator-max-microvolt = <1150000>;
  338. regulator-always-on;
  339. regulator-boot-on;
  340. regulator-mem-off;
  341. };
  342. buck4_reg: buck4 {
  343. regulator-compatible = "BUCK4";
  344. regulator-name = "vdd_g3d";
  345. regulator-min-microvolt = <850000>;
  346. regulator-max-microvolt = <1150000>;
  347. regulator-boot-on;
  348. regulator-mem-off;
  349. };
  350. buck5_reg: buck5 {
  351. regulator-compatible = "BUCK5";
  352. regulator-name = "VMEM_1.2V_AP";
  353. regulator-min-microvolt = <1200000>;
  354. regulator-max-microvolt = <1200000>;
  355. regulator-always-on;
  356. };
  357. buck6_reg: buck6 {
  358. regulator-compatible = "BUCK6";
  359. regulator-name = "VCC_SUB_1.35V";
  360. regulator-min-microvolt = <1350000>;
  361. regulator-max-microvolt = <1350000>;
  362. regulator-always-on;
  363. };
  364. buck7_reg: buck7 {
  365. regulator-compatible = "BUCK7";
  366. regulator-name = "VCC_SUB_2.0V";
  367. regulator-min-microvolt = <2000000>;
  368. regulator-max-microvolt = <2000000>;
  369. regulator-always-on;
  370. };
  371. buck8_reg: buck8 {
  372. regulator-compatible = "BUCK8";
  373. regulator-name = "VMEM_VDDF_3.0V";
  374. regulator-min-microvolt = <2850000>;
  375. regulator-max-microvolt = <2850000>;
  376. regulator-always-on;
  377. regulator-mem-off;
  378. };
  379. buck9_reg: buck9 {
  380. regulator-compatible = "BUCK9";
  381. regulator-name = "CAM_ISP_CORE_1.2V";
  382. regulator-min-microvolt = <1000000>;
  383. regulator-max-microvolt = <1200000>;
  384. regulator-mem-off;
  385. };
  386. };
  387. };
  388. };
  389. sdhci@12510000 {
  390. bus-width = <8>;
  391. non-removable;
  392. pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus8>;
  393. pinctrl-names = "default";
  394. vmmc-supply = <&vemmc_reg>;
  395. status = "okay";
  396. };
  397. serial@13800000 {
  398. status = "okay";
  399. };
  400. serial@13810000 {
  401. status = "okay";
  402. };
  403. serial@13820000 {
  404. status = "okay";
  405. };
  406. serial@13830000 {
  407. status = "okay";
  408. };
  409. i2c_ak8975: i2c-gpio-0 {
  410. compatible = "i2c-gpio";
  411. gpios = <&gpy2 4 0>, <&gpy2 5 0>;
  412. i2c-gpio,delay-us = <2>;
  413. #address-cells = <1>;
  414. #size-cells = <0>;
  415. status = "okay";
  416. ak8975@0c {
  417. compatible = "ak,ak8975";
  418. reg = <0x0c>;
  419. gpios = <&gpj0 7 0>;
  420. };
  421. };
  422. spi_1: spi@13930000 {
  423. pinctrl-names = "default";
  424. pinctrl-0 = <&spi1_bus>;
  425. status = "okay";
  426. s5c73m3_spi: s5c73m3 {
  427. compatible = "samsung,s5c73m3";
  428. spi-max-frequency = <50000000>;
  429. reg = <0>;
  430. controller-data {
  431. cs-gpio = <&gpb 5 0>;
  432. samsung,spi-feedback-delay = <2>;
  433. };
  434. };
  435. };
  436. camera {
  437. pinctrl-0 = <&cam_port_b_clk_active>;
  438. pinctrl-names = "default";
  439. status = "okay";
  440. fimc_0: fimc@11800000 {
  441. status = "okay";
  442. };
  443. fimc_1: fimc@11810000 {
  444. status = "okay";
  445. };
  446. fimc_2: fimc@11820000 {
  447. status = "okay";
  448. };
  449. fimc_3: fimc@11830000 {
  450. status = "okay";
  451. };
  452. csis_1: csis@11890000 {
  453. vddcore-supply = <&ldo8_reg>;
  454. vddio-supply = <&ldo10_reg>;
  455. clock-frequency = <160000000>;
  456. status = "okay";
  457. /* Camera D (4) MIPI CSI-2 (CSIS1) */
  458. port@4 {
  459. reg = <4>;
  460. csis1_ep: endpoint {
  461. remote-endpoint = <&is_s5k6a3_ep>;
  462. data-lanes = <1>;
  463. samsung,csis-hs-settle = <18>;
  464. samsung,csis-wclk;
  465. };
  466. };
  467. };
  468. fimc_lite_0: fimc-lite@12390000 {
  469. status = "okay";
  470. };
  471. fimc_lite_1: fimc-lite@123A0000 {
  472. status = "okay";
  473. };
  474. fimc-is@12000000 {
  475. pinctrl-0 = <&fimc_is_uart>;
  476. pinctrl-names = "default";
  477. status = "okay";
  478. i2c1_isp: i2c-isp@12140000 {
  479. pinctrl-0 = <&fimc_is_i2c1>;
  480. pinctrl-names = "default";
  481. s5k6a3@10 {
  482. compatible = "samsung,s5k6a3";
  483. reg = <0x10>;
  484. svdda-supply = <&cam_io_reg>;
  485. svddio-supply = <&ldo19_reg>;
  486. clock-frequency = <24000000>;
  487. /* CAM_B_CLKOUT */
  488. clocks = <&clock_cam 1>;
  489. clock-names = "mclk";
  490. samsung,camclk-out = <1>;
  491. gpios = <&gpm1 6 0>;
  492. port {
  493. is_s5k6a3_ep: endpoint {
  494. remote-endpoint = <&csis1_ep>;
  495. data-lanes = <1>;
  496. };
  497. };
  498. };
  499. };
  500. };
  501. };
  502. };