exynos4210-i9100.dts 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Samsung's Exynos4210 based Galaxy S2 (GT-I9100 version) device tree
  4. *
  5. * Copyright (c) 2012 Samsung Electronics Co., Ltd.
  6. * http://www.samsung.com
  7. * Copyright (c) 2020 Stenkin Evgeniy <[email protected]>
  8. * Copyright (c) 2020 Paul Cercueil <[email protected]>
  9. */
  10. /dts-v1/;
  11. #include "exynos4210.dtsi"
  12. #include "exynos4412-ppmu-common.dtsi"
  13. #include <dt-bindings/gpio/gpio.h>
  14. #include <dt-bindings/input/linux-event-codes.h>
  15. / {
  16. model = "Samsung Galaxy S2 (GT-I9100)";
  17. compatible = "samsung,i9100", "samsung,exynos4210", "samsung,exynos4";
  18. chassis-type = "handset";
  19. memory@40000000 {
  20. device_type = "memory";
  21. reg = <0x40000000 0x40000000>;
  22. };
  23. chosen {
  24. stdout-path = "serial2:115200n8";
  25. };
  26. vemmc_reg: regulator-0 {
  27. compatible = "regulator-fixed";
  28. regulator-name = "VMEM_VDD_2.8V";
  29. regulator-min-microvolt = <2800000>;
  30. regulator-max-microvolt = <2800000>;
  31. gpio = <&gpk0 2 GPIO_ACTIVE_HIGH>;
  32. enable-active-high;
  33. };
  34. tsp_reg: regulator-1 {
  35. compatible = "regulator-fixed";
  36. regulator-name = "TSP_FIXED_VOLTAGES";
  37. regulator-min-microvolt = <3300000>;
  38. regulator-max-microvolt = <3300000>;
  39. gpio = <&gpl0 3 GPIO_ACTIVE_HIGH>;
  40. startup-delay-us = <70000>;
  41. enable-active-high;
  42. regulator-boot-on;
  43. regulator-always-on;
  44. };
  45. cam_af_28v_reg: regulator-2 {
  46. compatible = "regulator-fixed";
  47. regulator-name = "8M_AF_2.8V_EN";
  48. regulator-min-microvolt = <2800000>;
  49. regulator-max-microvolt = <2800000>;
  50. gpio = <&gpk1 1 GPIO_ACTIVE_HIGH>;
  51. enable-active-high;
  52. };
  53. cam_io_en_reg: regulator-3 {
  54. compatible = "regulator-fixed";
  55. regulator-name = "CAM_IO_EN";
  56. regulator-min-microvolt = <2800000>;
  57. regulator-max-microvolt = <2800000>;
  58. gpio = <&gpe2 1 GPIO_ACTIVE_HIGH>;
  59. enable-active-high;
  60. };
  61. cam_io_12v_reg: regulator-4 {
  62. compatible = "regulator-fixed";
  63. regulator-name = "8M_1.2V_EN";
  64. regulator-min-microvolt = <1200000>;
  65. regulator-max-microvolt = <1200000>;
  66. gpio = <&gpe2 5 GPIO_ACTIVE_HIGH>;
  67. enable-active-high;
  68. };
  69. vt_core_15v_reg: regulator-5 {
  70. compatible = "regulator-fixed";
  71. regulator-name = "VT_CORE_1.5V";
  72. regulator-min-microvolt = <1500000>;
  73. regulator-max-microvolt = <1500000>;
  74. gpio = <&gpe2 2 GPIO_ACTIVE_HIGH>;
  75. enable-active-high;
  76. };
  77. gpio-keys {
  78. compatible = "gpio-keys";
  79. key-vol-down {
  80. gpios = <&gpx2 1 GPIO_ACTIVE_LOW>;
  81. linux,code = <KEY_VOLUMEDOWN>;
  82. label = "volume down";
  83. debounce-interval = <10>;
  84. };
  85. key-vol-up {
  86. gpios = <&gpx2 0 GPIO_ACTIVE_LOW>;
  87. linux,code = <KEY_VOLUMEUP>;
  88. label = "volume up";
  89. debounce-interval = <10>;
  90. };
  91. key-power {
  92. gpios = <&gpx2 7 GPIO_ACTIVE_LOW>;
  93. linux,code = <KEY_POWER>;
  94. label = "power";
  95. debounce-interval = <10>;
  96. wakeup-source;
  97. };
  98. key-ok {
  99. gpios = <&gpx3 5 GPIO_ACTIVE_LOW>;
  100. linux,code = <KEY_OK>;
  101. label = "ok";
  102. debounce-interval = <10>;
  103. };
  104. };
  105. wlan_pwrseq: sdhci3-pwrseq {
  106. compatible = "mmc-pwrseq-simple";
  107. reset-gpios = <&gpl1 2 GPIO_ACTIVE_LOW>;
  108. };
  109. i2c_max17042_fuel: i2c-gpio-0 {
  110. compatible = "i2c-gpio";
  111. #address-cells = <1>;
  112. #size-cells = <0>;
  113. sda-gpios = <&gpy4 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  114. scl-gpios = <&gpy4 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  115. i2c-gpio,delay-us = <5>;
  116. battery@36 {
  117. compatible = "maxim,max17042";
  118. interrupt-parent = <&gpx2>;
  119. interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
  120. pinctrl-0 = <&max17042_fuel_irq>;
  121. pinctrl-names = "default";
  122. reg = <0x36>;
  123. maxim,over-heat-temp = <700>;
  124. maxim,over-volt = <4500>;
  125. };
  126. };
  127. i2c_s5k5baf: i2c-gpio-1 {
  128. compatible = "i2c-gpio";
  129. #address-cells = <1>;
  130. #size-cells = <0>;
  131. sda-gpios = <&gpc1 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  132. scl-gpios = <&gpc1 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  133. i2c-gpio,delay-us = <2>;
  134. image-sensor@2d {
  135. compatible = "samsung,s5k5baf";
  136. reg = <0x2d>;
  137. vdda-supply = <&cam_io_en_reg>;
  138. vddreg-supply = <&vt_core_15v_reg>;
  139. vddio-supply = <&vtcam_reg>;
  140. clocks = <&camera 0>;
  141. clock-names = "mclk";
  142. stbyn-gpios = <&gpl2 0 GPIO_ACTIVE_LOW>;
  143. rstn-gpios = <&gpl2 1 GPIO_ACTIVE_LOW>;
  144. clock-frequency = <24000000>;
  145. port {
  146. s5k5bafx_ep: endpoint {
  147. remote-endpoint = <&csis1_ep>;
  148. data-lanes = <1>;
  149. };
  150. };
  151. };
  152. };
  153. spi-3 {
  154. compatible = "spi-gpio";
  155. #address-cells = <1>;
  156. #size-cells = <0>;
  157. num-chipselects = <1>;
  158. cs-gpios = <&gpy4 3 GPIO_ACTIVE_LOW>;
  159. sck-gpios = <&gpy3 1 GPIO_ACTIVE_HIGH>;
  160. mosi-gpios = <&gpy3 3 GPIO_ACTIVE_HIGH>;
  161. lcd@0 {
  162. compatible = "samsung,ld9040";
  163. reg = <0>;
  164. spi-max-frequency = <1200000>;
  165. vdd3-supply = <&vmipi_reg>;
  166. vci-supply = <&vcclcd_reg>;
  167. reset-gpios = <&gpy4 5 GPIO_ACTIVE_HIGH>;
  168. power-on-delay = <10>;
  169. reset-delay = <10>;
  170. panel-width-mm = <56>;
  171. panel-height-mm = <93>;
  172. display-timings {
  173. timing {
  174. clock-frequency = <23492370>;
  175. hactive = <480>;
  176. vactive = <800>;
  177. hback-porch = <16>;
  178. hfront-porch = <16>;
  179. vback-porch = <2>;
  180. vfront-porch = <28>;
  181. hsync-len = <2>;
  182. vsync-len = <1>;
  183. hsync-active = <0>;
  184. vsync-active = <0>;
  185. de-active = <0>;
  186. pixelclk-active = <0>;
  187. };
  188. };
  189. port {
  190. lcd_ep: endpoint {
  191. remote-endpoint = <&fimd_dpi_ep>;
  192. };
  193. };
  194. };
  195. };
  196. fixed-rate-clocks {
  197. xxti {
  198. compatible = "samsung,clock-xxti";
  199. clock-frequency = <0>;
  200. };
  201. xusbxti {
  202. compatible = "samsung,clock-xusbxti";
  203. clock-frequency = <24000000>;
  204. };
  205. pmic_ap_clk: pmic-ap-clk {
  206. /* Workaround for missing clock on max8997 PMIC */
  207. compatible = "fixed-clock";
  208. #clock-cells = <0>;
  209. clock-frequency = <32768>;
  210. };
  211. };
  212. };
  213. &camera {
  214. pinctrl-0 = <&cam_port_a_clk_active>;
  215. pinctrl-names = "default";
  216. status = "okay";
  217. assigned-clocks = <&clock CLK_MOUT_CAM0>, <&clock CLK_MOUT_CAM1>;
  218. assigned-clock-parents = <&clock CLK_XUSBXTI>, <&clock CLK_XUSBXTI>;
  219. };
  220. &csis_1 {
  221. status = "okay";
  222. vddcore-supply = <&vusb_reg>;
  223. vddio-supply = <&vmipi_reg>;
  224. clock-frequency = <160000000>;
  225. #address-cells = <1>;
  226. #size-cells = <0>;
  227. port@4 {
  228. reg = <4>;
  229. csis1_ep: endpoint {
  230. remote-endpoint = <&s5k5bafx_ep>;
  231. data-lanes = <1>;
  232. samsung,csis-hs-settle = <6>;
  233. };
  234. };
  235. };
  236. &cpu0 {
  237. cpu0-supply = <&varm_breg>;
  238. };
  239. &cpu_thermal {
  240. cooling-maps {
  241. map0 {
  242. /* Corresponds to 800MHz */
  243. cooling-device = <&cpu0 2 2>;
  244. };
  245. map1 {
  246. /* Corresponds to 200MHz */
  247. cooling-device = <&cpu0 4 4>;
  248. };
  249. };
  250. };
  251. &ehci {
  252. status = "okay";
  253. phys = <&exynos_usbphy 1>;
  254. phy-names = "host";
  255. };
  256. &exynos_usbphy {
  257. status = "okay";
  258. vbus-supply = <&safe1_sreg>;
  259. };
  260. &fimc_0 {
  261. status = "okay";
  262. assigned-clocks = <&clock CLK_MOUT_FIMC0>, <&clock CLK_SCLK_FIMC0>;
  263. assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
  264. assigned-clock-rates = <0>, <160000000>;
  265. };
  266. &fimc_1 {
  267. /* Back camera not implemented */
  268. status = "disabled";
  269. assigned-clocks = <&clock CLK_MOUT_FIMC1>, <&clock CLK_SCLK_FIMC1>;
  270. assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
  271. assigned-clock-rates = <0>, <160000000>;
  272. };
  273. &fimc_2 {
  274. status = "okay";
  275. assigned-clocks = <&clock CLK_MOUT_FIMC2>, <&clock CLK_SCLK_FIMC2>;
  276. assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
  277. assigned-clock-rates = <0>, <160000000>;
  278. };
  279. &fimc_3 {
  280. /* Back camera not implemented */
  281. status = "disabled";
  282. assigned-clocks = <&clock CLK_MOUT_FIMC3>, <&clock CLK_SCLK_FIMC3>;
  283. assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
  284. assigned-clock-rates = <0>, <160000000>;
  285. };
  286. &fimd {
  287. status = "okay";
  288. #address-cells = <1>;
  289. #size-cells = <0>;
  290. samsung,invert-vden;
  291. samsung,invert-vclk;
  292. pinctrl-0 = <&lcd_clk>, <&lcd_data24>;
  293. pinctrl-names = "default";
  294. port@3 {
  295. reg = <3>;
  296. fimd_dpi_ep: endpoint {
  297. remote-endpoint = <&lcd_ep>;
  298. };
  299. };
  300. };
  301. &gpu {
  302. status = "okay";
  303. mali-supply = <&vg3d_breg>;
  304. };
  305. &hsotg {
  306. status = "okay";
  307. dr_mode = "otg";
  308. vusb_d-supply = <&vusb_reg>;
  309. vusb_a-supply = <&vusbdac_reg>;
  310. };
  311. &i2c_3 {
  312. status = "okay";
  313. samsung,i2c-sda-delay = <100>;
  314. samsung,i2c-slave-addr = <0x10>;
  315. samsung,i2c-max-bus-freq = <100000>;
  316. pinctrl-0 = <&i2c3_bus>;
  317. pinctrl-names = "default";
  318. touchscreen@4a {
  319. compatible = "atmel,maxtouch";
  320. reg = <0x4a>;
  321. interrupt-parent = <&gpx0>;
  322. interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
  323. };
  324. };
  325. &i2c_5 {
  326. status = "okay";
  327. samsung,i2c-sda-delay = <100>;
  328. samsung,i2c-slave-addr = <0x10>;
  329. samsung,i2c-max-bus-freq = <100000>;
  330. pinctrl-0 = <&i2c5_bus>;
  331. pinctrl-names = "default";
  332. pmic@66 {
  333. compatible = "maxim,max8997-pmic";
  334. reg = <0x66>;
  335. interrupts-extended = <&gpx0 7 IRQ_TYPE_NONE>,
  336. <&gpx2 3 IRQ_TYPE_EDGE_FALLING>;
  337. max8997,pmic-buck1-uses-gpio-dvs;
  338. max8997,pmic-buck2-uses-gpio-dvs;
  339. max8997,pmic-buck5-uses-gpio-dvs;
  340. max8997,pmic-ignore-gpiodvs-side-effect;
  341. max8997,pmic-buck125-default-dvs-idx = <0>;
  342. max8997,pmic-buck125-dvs-gpios = <&gpx0 5 GPIO_ACTIVE_HIGH>,
  343. <&gpx0 6 GPIO_ACTIVE_HIGH>,
  344. <&gpl0 0 GPIO_ACTIVE_HIGH>;
  345. max8997,pmic-buck1-dvs-voltage = <1350000>, <1300000>,
  346. <1250000>, <1200000>,
  347. <1150000>, <1100000>,
  348. <1000000>, <950000>;
  349. max8997,pmic-buck2-dvs-voltage = <1100000>, <1000000>,
  350. <950000>, <900000>,
  351. <1100000>, <1000000>,
  352. <950000>, <900000>;
  353. max8997,pmic-buck5-dvs-voltage = <1200000>, <1200000>,
  354. <1200000>, <1200000>,
  355. <1200000>, <1200000>,
  356. <1200000>, <1200000>;
  357. pinctrl-0 = <&max8997_irq>, <&otg_gp>, <&usb_sel>;
  358. pinctrl-names = "default";
  359. charger-supply = <&charger_reg>;
  360. regulators {
  361. vadc_reg: LDO1 {
  362. regulator-name = "VADC_3.3V_C210";
  363. regulator-min-microvolt = <3300000>;
  364. regulator-max-microvolt = <3300000>;
  365. regulator-always-on;
  366. };
  367. valive_reg: LDO2 {
  368. regulator-name = "VALIVE_1.1V_C210";
  369. regulator-min-microvolt = <1100000>;
  370. regulator-max-microvolt = <1100000>;
  371. regulator-always-on;
  372. };
  373. vusb_reg: LDO3 {
  374. regulator-name = "VUSB_1.1V_C210";
  375. regulator-min-microvolt = <1100000>;
  376. regulator-max-microvolt = <1100000>;
  377. };
  378. vmipi_reg: LDO4 {
  379. regulator-name = "VMIPI_1.8V";
  380. regulator-min-microvolt = <1800000>;
  381. regulator-max-microvolt = <1800000>;
  382. regulator-always-on;
  383. };
  384. vhsic_reg: LDO5 {
  385. regulator-name = "VHSIC_1.2V";
  386. regulator-min-microvolt = <1200000>;
  387. regulator-max-microvolt = <1200000>;
  388. regulator-always-on;
  389. };
  390. vpda_reg: LDO6 {
  391. regulator-name = "VCC_1.8V_PDA";
  392. regulator-min-microvolt = <1800000>;
  393. regulator-max-microvolt = <1800000>;
  394. regulator-always-on;
  395. };
  396. vcam_reg: LDO7 {
  397. regulator-name = "CAM_ISP_1.8V";
  398. regulator-min-microvolt = <1800000>;
  399. regulator-max-microvolt = <1800000>;
  400. };
  401. vusbdac_reg: LDO8 {
  402. regulator-name = "VUSB+VDAC_3.3V_C210";
  403. regulator-min-microvolt = <3300000>;
  404. regulator-max-microvolt = <3300000>;
  405. };
  406. vccpda_reg: LDO9 {
  407. regulator-name = "VCC_2.8V_PDA";
  408. regulator-min-microvolt = <2800000>;
  409. regulator-max-microvolt = <2800000>;
  410. regulator-always-on;
  411. };
  412. vtouch_reg: LDO11 {
  413. regulator-name = "TOUCH_2.8V";
  414. regulator-min-microvolt = <2800000>;
  415. regulator-max-microvolt = <2800000>;
  416. regulator-always-on;
  417. };
  418. vpll_reg: LDO10 {
  419. regulator-name = "VPLL_1.1V";
  420. regulator-min-microvolt = <1100000>;
  421. regulator-max-microvolt = <1100000>;
  422. regulator-always-on;
  423. };
  424. vtcam_reg: LDO12 {
  425. regulator-name = "VT_CAM_1.8V";
  426. regulator-min-microvolt = <1800000>;
  427. regulator-max-microvolt = <1800000>;
  428. };
  429. vcclcd_reg: LDO13 {
  430. regulator-name = "VCC_3.0V_LCD";
  431. regulator-min-microvolt = <3000000>;
  432. regulator-max-microvolt = <3000000>;
  433. };
  434. vmotor_reg: LDO14 {
  435. regulator-name = "VCC_2.8V_MOTOR";
  436. regulator-min-microvolt = <2800000>;
  437. regulator-max-microvolt = <2800000>;
  438. };
  439. vled_reg: LDO15 {
  440. regulator-name = "LED_A_2.8V";
  441. regulator-min-microvolt = <2800000>;
  442. regulator-max-microvolt = <2800000>;
  443. };
  444. camsensor_reg: LDO16 {
  445. regulator-name = "CAM_SENSOR_IO_1.8V";
  446. regulator-min-microvolt = <1800000>;
  447. regulator-max-microvolt = <1800000>;
  448. };
  449. vtf_reg: LDO17 {
  450. regulator-name = "VTF_2.8V";
  451. regulator-min-microvolt = <2800000>;
  452. regulator-max-microvolt = <2800000>;
  453. };
  454. vtouchled_reg: LDO18 {
  455. regulator-name = "TOUCH_LED_3.3V";
  456. regulator-min-microvolt = <2500000>;
  457. regulator-max-microvolt = <3300000>;
  458. };
  459. vddq_reg: LDO21 {
  460. regulator-name = "VDDQ_M1M2_1.2V";
  461. regulator-min-microvolt = <1200000>;
  462. regulator-max-microvolt = <1200000>;
  463. regulator-always-on;
  464. };
  465. varm_breg: BUCK1 {
  466. regulator-name = "VARM_1.2V_C210";
  467. regulator-min-microvolt = <65000>;
  468. regulator-max-microvolt = <2225000>;
  469. regulator-always-on;
  470. };
  471. vint_breg: BUCK2 {
  472. regulator-name = "VINT_1.1V_C210";
  473. regulator-min-microvolt = <65000>;
  474. regulator-max-microvolt = <2225000>;
  475. regulator-always-on;
  476. };
  477. vg3d_breg: BUCK3 {
  478. regulator-name = "G3D_1.1V";
  479. regulator-min-microvolt = <900000>;
  480. regulator-max-microvolt = <1200000>;
  481. regulator-microvolt-offset = <50000>;
  482. regulator-always-on;
  483. };
  484. camisp_breg: BUCK4 {
  485. regulator-name = "CAM_ISP_CORE_1.2V";
  486. regulator-min-microvolt = <1200000>;
  487. regulator-max-microvolt = <1200000>;
  488. };
  489. vmem_breg: BUCK5 {
  490. regulator-name = "VMEM_1.2V";
  491. regulator-min-microvolt = <1200000>;
  492. regulator-max-microvolt = <1200000>;
  493. regulator-always-on;
  494. };
  495. vccsub_breg: BUCK7 {
  496. regulator-name = "VCC_SUB_2.0V";
  497. regulator-min-microvolt = <2000000>;
  498. regulator-max-microvolt = <2000000>;
  499. regulator-always-on;
  500. };
  501. safe1_sreg: ESAFEOUT1 {
  502. regulator-name = "SAFEOUT1";
  503. };
  504. safe2_sreg: ESAFEOUT2 {
  505. regulator-name = "SAFEOUT2";
  506. regulator-boot-on;
  507. };
  508. EN32KHZ_AP {
  509. regulator-name = "EN32KHZ_AP";
  510. regulator-always-on;
  511. };
  512. EN32KHZ_CP {
  513. regulator-name = "EN32KHZ_CP";
  514. regulator-always-on;
  515. };
  516. charger_reg: CHARGER {
  517. regulator-name = "CHARGER";
  518. regulator-min-microamp = <200000>;
  519. regulator-max-microamp = <950000>;
  520. };
  521. chargercv_reg: CHARGER_CV {
  522. regulator-name = "CHARGER_CV";
  523. regulator-min-microvolt = <4200000>;
  524. regulator-max-microvolt = <4200000>;
  525. regulator-always-on;
  526. };
  527. CHARGER_TOPOFF {
  528. regulator-name = "CHARGER_TOPOFF";
  529. regulator-min-microamp = <200000>;
  530. regulator-max-microamp = <200000>;
  531. regulator-always-on;
  532. };
  533. };
  534. };
  535. };
  536. &i2c_7 {
  537. status = "okay";
  538. samsung,i2c-sda-delay = <100>;
  539. samsung,i2c-slave-addr = <0x10>;
  540. samsung,i2c-max-bus-freq = <400000>;
  541. pinctrl-0 = <&i2c7_bus>;
  542. pinctrl-names = "default";
  543. magnetometer@c {
  544. compatible = "asahi-kasei,ak8975";
  545. reg = <0x0c>;
  546. gpios = <&gpx2 2 GPIO_ACTIVE_HIGH>;
  547. };
  548. };
  549. &pinctrl_0 {
  550. pinctrl-names = "default";
  551. pinctrl-0 = <&sleep0>;
  552. sleep0: sleep-state {
  553. gpa0-0-pin {
  554. samsung,pins = "gpa0-0";
  555. samsung,pin-con-pdn = <EXYNOS_PIN_PDN_INPUT>;
  556. samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_NONE>;
  557. };
  558. gpa0-1-pin {
  559. samsung,pins = "gpa0-1";
  560. samsung,pin-con-pdn = <EXYNOS_PIN_PDN_OUT0>;
  561. samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_NONE>;
  562. };
  563. gpa0-2-pin {
  564. samsung,pins = "gpa0-2";
  565. samsung,pin-con-pdn = <EXYNOS_PIN_PDN_INPUT>;
  566. samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_NONE>;
  567. };
  568. gpa0-3-pin {
  569. samsung,pins = "gpa0-3";
  570. samsung,pin-con-pdn = <EXYNOS_PIN_PDN_OUT1>;
  571. samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_NONE>;
  572. };
  573. };
  574. };
  575. &pinctrl_1 {
  576. mhl_int: mhl-int-pins {
  577. samsung,pins = "gpf3-5";
  578. samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
  579. };
  580. i2c_mhl_bus: i2c-mhl-bus-pins {
  581. samsung,pins = "gpf0-4", "gpf0-6";
  582. samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
  583. samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
  584. samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
  585. };
  586. usb_sel: usb-sel-pins {
  587. samsung,pins = "gpl0-6";
  588. samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
  589. samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
  590. samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
  591. samsung,pin-val = <0>;
  592. };
  593. bt_en: bt-en-pins {
  594. samsung,pins = "gpl0-4";
  595. samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
  596. samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
  597. samsung,pin-drv = <EXYNOS4_PIN_DRV_LV4>;
  598. samsung,pin-val = <0>;
  599. };
  600. bt_res: bt-res-pins {
  601. samsung,pins = "gpl1-0";
  602. samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
  603. samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
  604. samsung,pin-drv = <EXYNOS4_PIN_DRV_LV4>;
  605. samsung,pin-val = <0>;
  606. };
  607. otg_gp: otg-gp-pins {
  608. samsung,pins = "gpx3-3";
  609. samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
  610. samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
  611. samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
  612. samsung,pin-val = <0>;
  613. };
  614. mag_mhl_gpio: mag-mhl-pins {
  615. samsung,pins = "gpd0-2";
  616. samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
  617. samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
  618. };
  619. max8997_irq: max8997-irq-pins {
  620. samsung,pins = "gpx0-7";
  621. samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
  622. };
  623. max17042_fuel_irq: max17042-fuel-irq-pins {
  624. samsung,pins = "gpx2-3";
  625. samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
  626. };
  627. tsp224_irq: tsp224-irq-pins {
  628. samsung,pins = "gpx0-4";
  629. samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
  630. };
  631. };
  632. &rtc {
  633. status = "okay";
  634. clocks = <&clock CLK_RTC>, <&pmic_ap_clk>;
  635. clock-names = "rtc", "rtc_src";
  636. };
  637. &sdhci_0 {
  638. status = "okay";
  639. bus-width = <8>;
  640. non-removable;
  641. vmmc-supply = <&vemmc_reg>;
  642. pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_bus8>;
  643. pinctrl-names = "default";
  644. };
  645. &sdhci_2 {
  646. status = "okay";
  647. bus-width = <4>;
  648. cd-gpios = <&gpx3 4 GPIO_ACTIVE_LOW>;
  649. vmmc-supply = <&vtf_reg>;
  650. pinctrl-0 = <&sd2_clk>, <&sd2_cmd>, <&sd2_bus4>;
  651. pinctrl-names = "default";
  652. };
  653. &sdhci_3 {
  654. status = "okay";
  655. #address-cells = <1>;
  656. #size-cells = <0>;
  657. non-removable;
  658. bus-width = <4>;
  659. mmc-pwrseq = <&wlan_pwrseq>;
  660. vmmc-supply = <&vtf_reg>;
  661. pinctrl-names = "default";
  662. pinctrl-0 = <&sd3_clk>, <&sd3_cmd>, <&sd3_bus4>;
  663. brcmf: wifi@1 {
  664. compatible = "brcm,bcm4330-fmac", "brcm,bcm4329-fmac";
  665. reg = <1>;
  666. interrupt-parent = <&gpx2>;
  667. interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;
  668. interrupt-names = "host-wake";
  669. };
  670. };
  671. &serial_0 {
  672. status = "okay";
  673. pinctrl-names = "default";
  674. pinctrl-0 = <&bt_en>, <&bt_res>, <&uart0_data>, <&uart0_fctl>;
  675. bluetooth {
  676. compatible = "brcm,bcm4330-bt";
  677. shutdown-gpios = <&gpl0 4 GPIO_ACTIVE_HIGH>;
  678. reset-gpios = <&gpl1 0 GPIO_ACTIVE_LOW>;
  679. device-wakeup-gpios = <&gpx3 1 GPIO_ACTIVE_HIGH>;
  680. interrupt-parent = <&gpx2>;
  681. interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
  682. interrupt-names = "host-wakeup";
  683. };
  684. };
  685. &serial_1 {
  686. status = "okay";
  687. };
  688. &serial_2 {
  689. status = "okay";
  690. };
  691. &serial_3 {
  692. status = "okay";
  693. };
  694. &tmu {
  695. status = "okay";
  696. };