exynos5250-arndale.dts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Samsung's Exynos5250 based Arndale board device tree source
  4. *
  5. * Copyright (c) 2013 Samsung Electronics Co., Ltd.
  6. * http://www.samsung.com
  7. */
  8. /dts-v1/;
  9. #include <dt-bindings/gpio/gpio.h>
  10. #include <dt-bindings/interrupt-controller/irq.h>
  11. #include <dt-bindings/input/input.h>
  12. #include <dt-bindings/clock/samsung,s2mps11.h>
  13. #include <dt-bindings/sound/samsung-i2s.h>
  14. #include "exynos5250.dtsi"
  15. / {
  16. model = "Insignal Arndale evaluation board based on Exynos5250";
  17. compatible = "insignal,arndale", "samsung,exynos5250", "samsung,exynos5";
  18. memory@40000000 {
  19. device_type = "memory";
  20. reg = <0x40000000 0x80000000>;
  21. };
  22. chosen {
  23. stdout-path = "serial2:115200n8";
  24. };
  25. gpio-keys {
  26. compatible = "gpio-keys";
  27. key-menu {
  28. label = "SW-TACT2";
  29. gpios = <&gpx1 4 GPIO_ACTIVE_LOW>;
  30. linux,code = <KEY_MENU>;
  31. wakeup-source;
  32. };
  33. key-home {
  34. label = "SW-TACT3";
  35. gpios = <&gpx1 5 GPIO_ACTIVE_LOW>;
  36. linux,code = <KEY_HOME>;
  37. wakeup-source;
  38. };
  39. key-up {
  40. label = "SW-TACT4";
  41. gpios = <&gpx1 6 GPIO_ACTIVE_LOW>;
  42. linux,code = <KEY_UP>;
  43. wakeup-source;
  44. };
  45. key-down {
  46. label = "SW-TACT5";
  47. gpios = <&gpx1 7 GPIO_ACTIVE_LOW>;
  48. linux,code = <KEY_DOWN>;
  49. wakeup-source;
  50. };
  51. key-back {
  52. label = "SW-TACT6";
  53. gpios = <&gpx2 0 GPIO_ACTIVE_LOW>;
  54. linux,code = <KEY_BACK>;
  55. wakeup-source;
  56. };
  57. key-wakeup {
  58. label = "SW-TACT7";
  59. gpios = <&gpx2 1 GPIO_ACTIVE_LOW>;
  60. linux,code = <KEY_WAKEUP>;
  61. wakeup-source;
  62. };
  63. };
  64. panel: panel {
  65. compatible = "boe,hv070wsa-100";
  66. power-supply = <&vcc_3v3_reg>;
  67. enable-gpios = <&gpd1 3 GPIO_ACTIVE_HIGH>;
  68. port {
  69. panel_ep: endpoint {
  70. remote-endpoint = <&bridge_out_ep>;
  71. };
  72. };
  73. };
  74. main_dc_reg: regulator-0 {
  75. compatible = "regulator-fixed";
  76. regulator-name = "MAIN_DC";
  77. regulator-always-on;
  78. };
  79. mmc_reg: regulator-1 {
  80. compatible = "regulator-fixed";
  81. regulator-name = "VDD_MMC";
  82. regulator-min-microvolt = <2800000>;
  83. regulator-max-microvolt = <2800000>;
  84. regulator-always-on;
  85. };
  86. reg_hdmi_en: regulator-2 {
  87. compatible = "regulator-fixed";
  88. regulator-name = "hdmi-en";
  89. regulator-always-on;
  90. };
  91. vcc_1v2_reg: regulator-3 {
  92. compatible = "regulator-fixed";
  93. regulator-name = "VCC_1V2";
  94. regulator-min-microvolt = <1200000>;
  95. regulator-max-microvolt = <1200000>;
  96. regulator-always-on;
  97. };
  98. vcc_1v8_reg: regulator-4 {
  99. compatible = "regulator-fixed";
  100. regulator-name = "VCC_1V8";
  101. regulator-min-microvolt = <1800000>;
  102. regulator-max-microvolt = <1800000>;
  103. regulator-always-on;
  104. };
  105. vcc_3v3_reg: regulator-5 {
  106. compatible = "regulator-fixed";
  107. regulator-name = "VCC_3V3";
  108. regulator-min-microvolt = <3300000>;
  109. regulator-max-microvolt = <3300000>;
  110. regulator-always-on;
  111. };
  112. sound {
  113. compatible = "samsung,arndale-wm1811";
  114. samsung,audio-cpu = <&i2s0>;
  115. samsung,audio-codec = <&wm1811>;
  116. };
  117. fixed-rate-clocks {
  118. xxti {
  119. compatible = "samsung,clock-xxti";
  120. clock-frequency = <24000000>;
  121. };
  122. };
  123. // SMSC USB3503 connected in hardware only mode as a PHY
  124. usb_hub: usb-hub {
  125. compatible = "smsc,usb3503a";
  126. reset-gpios = <&gpx3 5 GPIO_ACTIVE_LOW>;
  127. connect-gpios = <&gpd1 7 GPIO_ACTIVE_HIGH>;
  128. };
  129. };
  130. &clock {
  131. assigned-clocks = <&clock CLK_FOUT_EPLL>;
  132. assigned-clock-rates = <49152000>;
  133. };
  134. &clock_audss {
  135. assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>;
  136. assigned-clock-parents = <&clock CLK_FOUT_EPLL>;
  137. };
  138. &cpu0 {
  139. cpu0-supply = <&buck2_reg>;
  140. };
  141. &dsi_0 {
  142. vddcore-supply = <&ldo8_reg>;
  143. vddio-supply = <&ldo10_reg>;
  144. samsung,pll-clock-frequency = <24000000>;
  145. samsung,burst-clock-frequency = <320000000>;
  146. samsung,esc-clock-frequency = <10000000>;
  147. status = "okay";
  148. bridge@0 {
  149. reg = <0>;
  150. compatible = "toshiba,tc358764";
  151. vddc-supply = <&vcc_1v2_reg>;
  152. vddio-supply = <&vcc_1v8_reg>;
  153. vddlvds-supply = <&vcc_3v3_reg>;
  154. reset-gpios = <&gpd1 6 GPIO_ACTIVE_LOW>;
  155. #address-cells = <1>;
  156. #size-cells = <0>;
  157. port@1 {
  158. reg = <1>;
  159. bridge_out_ep: endpoint {
  160. remote-endpoint = <&panel_ep>;
  161. };
  162. };
  163. };
  164. };
  165. &fimd {
  166. status = "okay";
  167. };
  168. &hdmi {
  169. pinctrl-names = "default";
  170. pinctrl-0 = <&hdmi_hpd>;
  171. status = "okay";
  172. ddc = <&i2c_ddc>;
  173. hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
  174. vdd_osc-supply = <&ldo10_reg>;
  175. vdd_pll-supply = <&ldo8_reg>;
  176. vdd-supply = <&ldo8_reg>;
  177. };
  178. &i2c_0 {
  179. status = "okay";
  180. samsung,i2c-sda-delay = <100>;
  181. samsung,i2c-max-bus-freq = <20000>;
  182. samsung,i2c-slave-addr = <0x66>;
  183. pmic@66 {
  184. compatible = "samsung,s5m8767-pmic";
  185. reg = <0x66>;
  186. interrupt-parent = <&gpx3>;
  187. interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
  188. pinctrl-names = "default";
  189. pinctrl-0 = <&s5m8767_irq>;
  190. wakeup-source;
  191. vinb1-supply = <&main_dc_reg>;
  192. vinb2-supply = <&main_dc_reg>;
  193. vinb3-supply = <&main_dc_reg>;
  194. vinb4-supply = <&main_dc_reg>;
  195. vinb5-supply = <&main_dc_reg>;
  196. vinb6-supply = <&main_dc_reg>;
  197. vinb7-supply = <&main_dc_reg>;
  198. vinb8-supply = <&main_dc_reg>;
  199. vinb9-supply = <&main_dc_reg>;
  200. vinl1-supply = <&buck7_reg>;
  201. vinl2-supply = <&buck7_reg>;
  202. vinl3-supply = <&buck7_reg>;
  203. vinl4-supply = <&main_dc_reg>;
  204. vinl5-supply = <&main_dc_reg>;
  205. vinl6-supply = <&main_dc_reg>;
  206. vinl7-supply = <&main_dc_reg>;
  207. vinl8-supply = <&buck8_reg>;
  208. vinl9-supply = <&buck8_reg>;
  209. s5m8767,pmic-buck-dvs-gpios = <&gpd1 0 GPIO_ACTIVE_HIGH>,
  210. <&gpd1 1 GPIO_ACTIVE_HIGH>,
  211. <&gpd1 2 GPIO_ACTIVE_HIGH>;
  212. s5m8767,pmic-buck-ds-gpios = <&gpx2 3 GPIO_ACTIVE_HIGH>,
  213. <&gpx2 4 GPIO_ACTIVE_HIGH>,
  214. <&gpx2 5 GPIO_ACTIVE_HIGH>;
  215. s5m8767_osc: clocks {
  216. compatible = "samsung,s5m8767-clk";
  217. #clock-cells = <1>;
  218. clock-output-names = "s5m8767_ap", "unused1", "unused2";
  219. };
  220. regulators {
  221. ldo1_reg: LDO1 {
  222. regulator-name = "VDD_ALIVE_1.0V";
  223. regulator-min-microvolt = <1100000>;
  224. regulator-max-microvolt = <1100000>;
  225. regulator-always-on;
  226. regulator-boot-on;
  227. op_mode = <1>;
  228. };
  229. ldo2_reg: LDO2 {
  230. regulator-name = "VDD_28IO_DP_1.35V";
  231. regulator-min-microvolt = <1200000>;
  232. regulator-max-microvolt = <1200000>;
  233. regulator-always-on;
  234. regulator-boot-on;
  235. op_mode = <1>;
  236. };
  237. ldo3_reg: LDO3 {
  238. regulator-name = "VDD_COMMON1_1.8V";
  239. regulator-min-microvolt = <1800000>;
  240. regulator-max-microvolt = <1800000>;
  241. regulator-always-on;
  242. regulator-boot-on;
  243. op_mode = <1>;
  244. };
  245. ldo4_reg: LDO4 {
  246. regulator-name = "VDD_IOPERI_1.8V";
  247. regulator-min-microvolt = <1800000>;
  248. regulator-max-microvolt = <1800000>;
  249. regulator-always-on;
  250. op_mode = <1>;
  251. };
  252. ldo5_reg: LDO5 {
  253. regulator-name = "VDD_EXT_1.8V";
  254. regulator-min-microvolt = <1800000>;
  255. regulator-max-microvolt = <1800000>;
  256. regulator-always-on;
  257. regulator-boot-on;
  258. op_mode = <1>;
  259. };
  260. ldo6_reg: LDO6 {
  261. regulator-name = "VDD_MPLL_1.1V";
  262. regulator-min-microvolt = <1100000>;
  263. regulator-max-microvolt = <1100000>;
  264. regulator-always-on;
  265. regulator-boot-on;
  266. op_mode = <1>;
  267. };
  268. ldo7_reg: LDO7 {
  269. regulator-name = "VDD_XPLL_1.1V";
  270. regulator-min-microvolt = <1100000>;
  271. regulator-max-microvolt = <1100000>;
  272. regulator-always-on;
  273. regulator-boot-on;
  274. op_mode = <1>;
  275. };
  276. ldo8_reg: LDO8 {
  277. regulator-name = "VDD_COMMON2_1.0V";
  278. regulator-min-microvolt = <1000000>;
  279. regulator-max-microvolt = <1000000>;
  280. regulator-always-on;
  281. regulator-boot-on;
  282. op_mode = <1>;
  283. };
  284. ldo9_reg: LDO9 {
  285. regulator-name = "VDD_33ON_3.0V";
  286. regulator-min-microvolt = <3000000>;
  287. regulator-max-microvolt = <3000000>;
  288. op_mode = <1>;
  289. };
  290. ldo10_reg: LDO10 {
  291. regulator-name = "VDD_COMMON3_1.8V";
  292. regulator-min-microvolt = <1800000>;
  293. regulator-max-microvolt = <1800000>;
  294. regulator-always-on;
  295. regulator-boot-on;
  296. op_mode = <1>;
  297. };
  298. ldo11_reg: LDO11 {
  299. regulator-name = "VDD_ABB2_1.8V";
  300. regulator-min-microvolt = <1800000>;
  301. regulator-max-microvolt = <1800000>;
  302. regulator-always-on;
  303. regulator-boot-on;
  304. op_mode = <1>;
  305. };
  306. ldo12_reg: LDO12 {
  307. regulator-name = "VDD_USB_3.0V";
  308. regulator-min-microvolt = <3000000>;
  309. regulator-max-microvolt = <3000000>;
  310. regulator-always-on;
  311. regulator-boot-on;
  312. op_mode = <1>;
  313. };
  314. ldo13_reg: LDO13 {
  315. regulator-name = "VDDQ_C2C_W_1.8V";
  316. regulator-min-microvolt = <1800000>;
  317. regulator-max-microvolt = <1800000>;
  318. regulator-always-on;
  319. regulator-boot-on;
  320. op_mode = <1>;
  321. };
  322. ldo14_reg: LDO14 {
  323. regulator-name = "VDD18_ABB0_3_1.8V";
  324. regulator-min-microvolt = <1800000>;
  325. regulator-max-microvolt = <1800000>;
  326. regulator-always-on;
  327. regulator-boot-on;
  328. op_mode = <1>;
  329. };
  330. ldo15_reg: LDO15 {
  331. regulator-name = "VDD10_COMMON4_1.0V";
  332. regulator-min-microvolt = <1000000>;
  333. regulator-max-microvolt = <1000000>;
  334. regulator-always-on;
  335. regulator-boot-on;
  336. op_mode = <1>;
  337. };
  338. ldo16_reg: LDO16 {
  339. regulator-name = "VDD18_HSIC_1.8V";
  340. regulator-min-microvolt = <1800000>;
  341. regulator-max-microvolt = <1800000>;
  342. regulator-always-on;
  343. regulator-boot-on;
  344. op_mode = <1>;
  345. };
  346. ldo17_reg: LDO17 {
  347. regulator-name = "VDDQ_MMC2_3_2.8V";
  348. regulator-min-microvolt = <2800000>;
  349. regulator-max-microvolt = <2800000>;
  350. regulator-always-on;
  351. regulator-boot-on;
  352. op_mode = <1>;
  353. };
  354. ldo18_reg: LDO18 {
  355. regulator-name = "VDD_33ON_2.8V";
  356. regulator-min-microvolt = <2800000>;
  357. regulator-max-microvolt = <2800000>;
  358. op_mode = <1>;
  359. };
  360. ldo22_reg: LDO22 {
  361. regulator-name = "EXT_33_OFF";
  362. regulator-min-microvolt = <3300000>;
  363. regulator-max-microvolt = <3300000>;
  364. op_mode = <1>;
  365. };
  366. ldo23_reg: LDO23 {
  367. regulator-name = "EXT_28_OFF";
  368. regulator-min-microvolt = <2800000>;
  369. regulator-max-microvolt = <2800000>;
  370. op_mode = <1>;
  371. };
  372. ldo25_reg: LDO25 {
  373. regulator-name = "PVDD_LDO25";
  374. regulator-min-microvolt = <1200000>;
  375. regulator-max-microvolt = <1200000>;
  376. op_mode = <1>;
  377. };
  378. ldo26_reg: LDO26 {
  379. regulator-name = "EXT_18_OFF";
  380. regulator-min-microvolt = <1800000>;
  381. regulator-max-microvolt = <1800000>;
  382. op_mode = <1>;
  383. };
  384. buck1_reg: BUCK1 {
  385. regulator-name = "VDD_MIF";
  386. regulator-min-microvolt = <950000>;
  387. regulator-max-microvolt = <1200000>;
  388. regulator-always-on;
  389. regulator-boot-on;
  390. op_mode = <1>;
  391. };
  392. buck2_reg: BUCK2 {
  393. regulator-name = "VDD_ARM";
  394. regulator-min-microvolt = <912500>;
  395. regulator-max-microvolt = <1300000>;
  396. regulator-always-on;
  397. regulator-boot-on;
  398. op_mode = <1>;
  399. };
  400. buck3_reg: BUCK3 {
  401. regulator-name = "VDD_INT";
  402. regulator-min-microvolt = <900000>;
  403. regulator-max-microvolt = <1200000>;
  404. regulator-always-on;
  405. regulator-boot-on;
  406. op_mode = <1>;
  407. };
  408. buck4_reg: BUCK4 {
  409. regulator-name = "VDD_G3D";
  410. regulator-min-microvolt = <850000>;
  411. regulator-max-microvolt = <1300000>;
  412. regulator-always-on;
  413. regulator-boot-on;
  414. op_mode = <1>;
  415. };
  416. buck5_reg: BUCK5 {
  417. regulator-name = "VDD_MEM_1.35V";
  418. regulator-min-microvolt = <750000>;
  419. regulator-max-microvolt = <1355000>;
  420. regulator-always-on;
  421. regulator-boot-on;
  422. op_mode = <1>;
  423. };
  424. buck7_reg: BUCK7 {
  425. regulator-name = "PVDD_BUCK7";
  426. regulator-always-on;
  427. op_mode = <1>;
  428. };
  429. buck8_reg: BUCK8 {
  430. regulator-name = "PVDD_BUCK8";
  431. regulator-always-on;
  432. op_mode = <1>;
  433. };
  434. buck9_reg: BUCK9 {
  435. regulator-name = "VDD_33_OFF_EXT1";
  436. regulator-min-microvolt = <750000>;
  437. regulator-max-microvolt = <3000000>;
  438. op_mode = <1>;
  439. };
  440. };
  441. };
  442. };
  443. &i2c_3 {
  444. status = "okay";
  445. wm1811: audio-codec@1a {
  446. compatible = "wlf,wm1811";
  447. reg = <0x1a>;
  448. clocks = <&i2s0 CLK_I2S_CDCLK>;
  449. clock-names = "MCLK1";
  450. AVDD2-supply = <&main_dc_reg>;
  451. CPVDD-supply = <&main_dc_reg>;
  452. DBVDD1-supply = <&main_dc_reg>;
  453. DBVDD2-supply = <&main_dc_reg>;
  454. DBVDD3-supply = <&main_dc_reg>;
  455. LDO1VDD-supply = <&main_dc_reg>;
  456. SPKVDD1-supply = <&main_dc_reg>;
  457. SPKVDD2-supply = <&main_dc_reg>;
  458. wlf,ldo1ena = <&gpb0 0 GPIO_ACTIVE_HIGH>;
  459. wlf,ldo2ena = <&gpb0 1 GPIO_ACTIVE_HIGH>;
  460. };
  461. };
  462. &i2c_8 {
  463. status = "okay";
  464. /* used by HDMI PHY */
  465. samsung,i2c-sda-delay = <100>;
  466. samsung,i2c-max-bus-freq = <66000>;
  467. };
  468. &i2c_9 {
  469. status = "okay";
  470. samsung,i2c-sda-delay = <100>;
  471. samsung,i2c-max-bus-freq = <40000>;
  472. };
  473. &i2s0 {
  474. assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>;
  475. assigned-clock-parents = <&clock_audss EXYNOS_I2S_BUS>;
  476. status = "okay";
  477. };
  478. &i2s0_bus {
  479. samsung,pin-drv = <EXYNOS4_PIN_DRV_LV2>;
  480. };
  481. &mali {
  482. mali-supply = <&buck4_reg>;
  483. status = "okay";
  484. };
  485. &mixer {
  486. status = "okay";
  487. };
  488. &mmc_0 {
  489. status = "okay";
  490. broken-cd;
  491. card-detect-delay = <200>;
  492. samsung,dw-mshc-ciu-div = <3>;
  493. samsung,dw-mshc-sdr-timing = <2 3>;
  494. samsung,dw-mshc-ddr-timing = <1 2>;
  495. vmmc-supply = <&mmc_reg>;
  496. pinctrl-names = "default";
  497. pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4 &sd0_bus8>;
  498. bus-width = <8>;
  499. cap-mmc-highspeed;
  500. };
  501. &mmc_2 {
  502. status = "okay";
  503. card-detect-delay = <200>;
  504. samsung,dw-mshc-ciu-div = <3>;
  505. samsung,dw-mshc-sdr-timing = <2 3>;
  506. samsung,dw-mshc-ddr-timing = <1 2>;
  507. vmmc-supply = <&mmc_reg>;
  508. pinctrl-names = "default";
  509. pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
  510. bus-width = <4>;
  511. disable-wp;
  512. cap-sd-highspeed;
  513. };
  514. &pinctrl_0 {
  515. s5m8767_irq: s5m8767-irq-pins {
  516. samsung,pins = "gpx3-2";
  517. samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
  518. };
  519. };
  520. &rtc {
  521. clocks = <&clock CLK_RTC>, <&s5m8767_osc S2MPS11_CLK_AP>;
  522. clock-names = "rtc", "rtc_src";
  523. status = "okay";
  524. };
  525. &sata {
  526. status = "okay";
  527. };
  528. &sata_phy {
  529. status = "okay";
  530. samsung,exynos-sataphy-i2c-phandle = <&sata_phy_i2c>;
  531. };
  532. &sata_phy_i2c {
  533. status = "okay";
  534. };
  535. &soc {
  536. /*
  537. * For unknown reasons HDMI-DDC does not work with Exynos I2C
  538. * controllers. Lets use software I2C over GPIO pins as a workaround.
  539. */
  540. i2c_ddc: i2c-10 {
  541. pinctrl-names = "default";
  542. pinctrl-0 = <&i2c2_gpio_bus>;
  543. status = "okay";
  544. compatible = "i2c-gpio";
  545. sda-gpios = <&gpa0 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  546. scl-gpios = <&gpa0 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  547. i2c-gpio,delay-us = <2>;
  548. #address-cells = <1>;
  549. #size-cells = <0>;
  550. };
  551. };
  552. &usbdrd {
  553. vdd10-supply = <&ldo15_reg>;
  554. vdd33-supply = <&ldo12_reg>;
  555. };