Advertisement
amousa1990

Untitled

Nov 1st, 2022
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 52.93 KB | None | 0 0
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Samsung's Exynos4412 based Trats 2 board device tree source
  4. *
  5. * Copyright (c) 2013 Samsung Electronics Co., Ltd.
  6. * http://www.samsung.com
  7. *
  8. * Device tree source file for Samsung's Trats 2 board which is based on
  9. * Samsung's Exynos4412 SoC.
  10. */
  11.  
  12. /dts-v1/;
  13. #include "exynos4412.dtsi"
  14. #include "exynos4412-ppmu-common.dtsi"
  15. #include <dt-bindings/gpio/gpio.h>
  16. #include <dt-bindings/input/input.h>
  17. #include <dt-bindings/interrupt-controller/irq.h>
  18. #include <dt-bindings/clock/maxim,max77686.h>
  19. #include <dt-bindings/pinctrl/samsung.h>
  20.  
  21. / {
  22. compatible = "samsung,kona", "samsung,exynos4412", "samsung,exynos4";
  23.  
  24. aliases {
  25. i2c11 = &i2c_max77693;
  26. i2c12 = &i2c_max77693_fuel;
  27. };
  28.  
  29. chosen {
  30. stdout-path = &serial_2;
  31. };
  32.  
  33. firmware@204f000 {
  34. compatible = "samsung,secure-firmware";
  35. reg = <0x0204F000 0x1000>;
  36. };
  37.  
  38. fixed-rate-clocks {
  39. xxti {
  40. compatible = "samsung,clock-xxti";
  41. clock-frequency = <0>;
  42. };
  43.  
  44. xusbxti {
  45. compatible = "samsung,clock-xusbxti";
  46. clock-frequency = <24000000>;
  47. };
  48. };
  49.  
  50.  
  51. cam_io_reg: voltage-regulator-1 {
  52. compatible = "regulator-fixed";
  53. regulator-name = "CAM_SENSOR_A";
  54. regulator-min-microvolt = <2800000>;
  55. regulator-max-microvolt = <2800000>;
  56. enable-active-high;
  57. status = "disabled";
  58. };
  59.  
  60. cam_af_reg: voltage-regulator-2 {
  61. compatible = "regulator-fixed";
  62. regulator-name = "CAM_AF";
  63. regulator-min-microvolt = <2800000>;
  64. regulator-max-microvolt = <2800000>;
  65. enable-active-high;
  66. status = "disabled";
  67. };
  68.  
  69. vsil12: voltage-regulator-3 {
  70. compatible = "regulator-fixed";
  71. regulator-name = "VSIL_1.2V";
  72. regulator-min-microvolt = <1200000>;
  73. regulator-max-microvolt = <1200000>;
  74. gpio = <&gpl0 4 GPIO_ACTIVE_HIGH>;
  75. enable-active-high;
  76. vin-supply = <&buck7_reg>;
  77. };
  78.  
  79. vcc33mhl: voltage-regulator-4 {
  80. compatible = "regulator-fixed";
  81. regulator-name = "VCC_3.3_MHL";
  82. regulator-min-microvolt = <3300000>;
  83. regulator-max-microvolt = <3300000>;
  84. gpio = <&gpl0 4 GPIO_ACTIVE_HIGH>;
  85. enable-active-high;
  86. };
  87.  
  88. vcc18mhl: voltage-regulator-5 {
  89. compatible = "regulator-fixed";
  90. regulator-name = "VCC_1.8_MHL";
  91. regulator-min-microvolt = <1800000>;
  92. regulator-max-microvolt = <1800000>;
  93. gpio = <&gpl0 4 GPIO_ACTIVE_HIGH>;
  94. enable-active-high;
  95. };
  96.  
  97. touchkey_reg: voltage-regulator-6 {
  98. compatible = "regulator-fixed";
  99. regulator-name = "LED_VDD_3.3V";
  100. regulator-min-microvolt = <3300000>;
  101. regulator-max-microvolt = <3300000>;
  102. enable-active-high;
  103. status = "disabled";
  104. };
  105.  
  106. vbatt_reg: voltage-regulator-7 {
  107. compatible = "regulator-fixed";
  108. regulator-name = "VBATT";
  109. regulator-min-microvolt = <5000000>;
  110. regulator-max-microvolt = <5000000>;
  111. regulator-always-on;
  112. };
  113.  
  114. mic_bias_reg: voltage-regulator-8 {
  115. compatible = "regulator-fixed";
  116. regulator-name = "MICBIAS_LDO_2.8V";
  117. regulator-min-microvolt = <2800000>;
  118. regulator-max-microvolt = <2800000>;
  119. gpio = <&gpf1 7 GPIO_ACTIVE_HIGH>;
  120. enable-active-high;
  121. };
  122.  
  123. submic_bias_reg: voltage-regulator-9 {
  124. compatible = "regulator-fixed";
  125. regulator-name = "SUB_MICBIAS_LDO_2.8V";
  126. regulator-min-microvolt = <2800000>;
  127. regulator-max-microvolt = <2800000>;
  128. };
  129.  
  130.  
  131. gpio-keys {
  132. compatible = "gpio-keys";
  133. pinctrl-names = "default";
  134. pinctrl-0 = <&gpio_keys>;
  135.  
  136. key-down {
  137. gpios = <&gpx3 3 GPIO_ACTIVE_LOW>;
  138. linux,code = <114>;
  139. label = "volume down";
  140. debounce-interval = <10>;
  141. };
  142.  
  143. key-up {
  144. gpios = <&gpx2 2 GPIO_ACTIVE_LOW>;
  145. linux,code = <115>;
  146. label = "volume up";
  147. debounce-interval = <10>;
  148. };
  149.  
  150. key-power {
  151. gpios = <&gpx2 7 GPIO_ACTIVE_LOW>;
  152. linux,code = <116>;
  153. label = "power";
  154. debounce-interval = <10>;
  155. wakeup-source;
  156. };
  157.  
  158. key-ok {
  159. gpios = <&gpx1 2 GPIO_ACTIVE_LOW>;
  160. linux,code = <139>;
  161. label = "ok";
  162. debounce-interval = <10>;
  163. wakeup-source;
  164. };
  165. };
  166.  
  167. i2c_max77693: i2c-gpio-1 {
  168. compatible = "i2c-gpio";
  169. sda-gpios = <&gpm2 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  170. scl-gpios = <&gpm2 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  171. i2c-gpio,delay-us = <2>;
  172. #address-cells = <1>;
  173. #size-cells = <0>;
  174. status = "okay";
  175.  
  176. max77693@66 {
  177. compatible = "maxim,max77693";
  178. interrupt-parent = <&gpx1>;
  179. interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
  180. pinctrl-names = "default";
  181. pinctrl-0 = <&max77693_irq>;
  182. reg = <0x66>;
  183.  
  184. regulators {
  185. esafeout1_reg: ESAFEOUT1 {
  186. regulator-name = "ESAFEOUT1";
  187. regulator-boot-on;
  188. regulator-state-mem {
  189. regulator-off-in-suspend;
  190. };
  191. };
  192. esafeout2_reg: ESAFEOUT2 {
  193. regulator-name = "ESAFEOUT2";
  194. regulator-boot-on;
  195. regulator-state-mem {
  196. regulator-off-in-suspend;
  197. };
  198. };
  199. charger_reg: CHARGER {
  200. regulator-name = "CHARGER";
  201. regulator-boot-on;
  202. regulator-min-microamp = <60000>;
  203. regulator-max-microamp = <2580000>;
  204. };
  205. };
  206.  
  207. max77693_haptic {
  208. compatible = "maxim,max77693-haptic";
  209. haptic-supply = <&ldo26_reg>;
  210. pwms = <&pwm 0 38022 0>;
  211. };
  212.  
  213. charger {
  214. compatible = "maxim,max77693-charger";
  215.  
  216. maxim,constant-microvolt = <4350000>;
  217. maxim,min-system-microvolt = <3600000>;
  218. maxim,thermal-regulation-celsius = <100>;
  219. maxim,battery-overcurrent-microamp = <3500000>;
  220. maxim,charge-input-threshold-microvolt = <4300000>;
  221. };
  222.  
  223. max77693_muic {
  224. compatible = "maxim,max77693-muic";
  225. };
  226. };
  227. };
  228.  
  229. i2c_max77693_fuel: i2c-gpio-3 {
  230. compatible = "i2c-gpio";
  231. sda-gpios = <&gpy0 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  232. scl-gpios = <&gpy0 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  233. i2c-gpio,delay-us = <2>;
  234. #address-cells = <1>;
  235. #size-cells = <0>;
  236. status = "okay";
  237.  
  238. max77693-fuel-gauge@36 {
  239. compatible = "maxim,max17047";
  240. interrupt-parent = <&gpx2>;
  241. interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
  242. pinctrl-names = "default";
  243. pinctrl-0 = <&max77693_fuel_irq>;
  244. reg = <0x36>;
  245.  
  246. maxim,over-heat-temp = <700>;
  247. maxim,over-volt = <4500>;
  248. };
  249. };
  250.  
  251. i2c-gpio-4 {
  252. compatible = "i2c-gpio";
  253. sda-gpios = <&gpl0 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  254. scl-gpios = <&gpl0 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  255. i2c-gpio,delay-us = <2>;
  256. #address-cells = <1>;
  257. #size-cells = <0>;
  258. };
  259.  
  260. i2c-mhl {
  261. compatible = "i2c-gpio";
  262. sda-gpios = <&gpf0 4 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  263. scl-gpios = <&gpf0 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  264. i2c-gpio,delay-us = <100>;
  265. #address-cells = <1>;
  266. #size-cells = <0>;
  267.  
  268. pinctrl-0 = <&i2c_mhl_bus>;
  269. pinctrl-names = "default";
  270. status = "okay";
  271.  
  272. sii9234: hdmi-bridge@39 {
  273. compatible = "sil,sii9234";
  274. avcc33-supply = <&vcc33mhl>;
  275. iovcc18-supply = <&vcc18mhl>;
  276. avcc12-supply = <&vsil12>;
  277. cvcc12-supply = <&vsil12>;
  278. reset-gpios = <&gpf3 4 GPIO_ACTIVE_LOW>;
  279. interrupt-parent = <&gpf3>;
  280. interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;
  281. reg = <0x39>;
  282.  
  283. port {
  284. mhl_to_hdmi: endpoint {
  285. remote-endpoint = <&hdmi_to_mhl>;
  286. };
  287. };
  288. };
  289. };
  290.  
  291. wlan_pwrseq: sdhci3-pwrseq {
  292. compatible = "mmc-pwrseq-simple";
  293. reset-gpios = <&gpm3 5 GPIO_ACTIVE_LOW>;
  294. clocks = <&max77686 MAX77686_CLK_PMIC>;
  295. clock-names = "ext_clock";
  296. };
  297.  
  298. sound: sound {
  299. compatible = "samsung,kona-audio";
  300. model = "Kona";
  301. mic-bias-supply = <&mic_bias_reg>;
  302. submic-bias-supply = <&submic_bias_reg>;
  303. // lineout-sel-gpios = <&gpj1 2 GPIO_ACTIVE_HIGH>;
  304.  
  305. cpu {
  306. sound-dai = <&i2s0 0>;
  307. };
  308.  
  309. codec {
  310. sound-dai = <&wm1811>;
  311. };
  312. };
  313.  
  314. thermistor-ap {
  315. compatible = "murata,ncp15wb473";
  316. pullup-uv = <1800000>; /* VCC_1.8V_AP */
  317. pullup-ohm = <100000>; /* 100K */
  318. pulldown-ohm = <100000>; /* 100K */
  319. io-channels = <&adc 1>; /* AP temperature */
  320. };
  321.  
  322. thermistor-battery {
  323. compatible = "murata,ncp15wb473";
  324. pullup-uv = <1800000>; /* VCC_1.8V_AP */
  325. pullup-ohm = <100000>; /* 100K */
  326. pulldown-ohm = <100000>; /* 100K */
  327. io-channels = <&adc 2>; /* Battery temperature */
  328. };
  329. };
  330.  
  331. &adc {
  332. vdd-supply = <&ldo3_reg>;
  333. status = "okay";
  334. };
  335.  
  336. &bus_dmc {
  337. devfreq-events = <&ppmu_dmc0_3>, <&ppmu_dmc1_3>;
  338. vdd-supply = <&buck1_reg>;
  339. status = "okay";
  340. };
  341.  
  342. &bus_acp {
  343. devfreq = <&bus_dmc>;
  344. status = "okay";
  345. };
  346.  
  347. &bus_c2c {
  348. devfreq = <&bus_dmc>;
  349. status = "okay";
  350. };
  351.  
  352. &bus_leftbus {
  353. devfreq-events = <&ppmu_leftbus_3>, <&ppmu_rightbus_3>;
  354. vdd-supply = <&buck3_reg>;
  355. status = "okay";
  356. };
  357.  
  358. &bus_rightbus {
  359. devfreq = <&bus_leftbus>;
  360. status = "okay";
  361. };
  362.  
  363. &bus_display {
  364. devfreq = <&bus_leftbus>;
  365. status = "okay";
  366. };
  367.  
  368. &bus_fsys {
  369. devfreq = <&bus_leftbus>;
  370. status = "okay";
  371. };
  372.  
  373. &bus_peri {
  374. devfreq = <&bus_leftbus>;
  375. status = "okay";
  376. };
  377.  
  378. &bus_mfc {
  379. devfreq = <&bus_leftbus>;
  380. status = "okay";
  381. };
  382.  
  383. &camera {
  384. pinctrl-0 = <&cam_port_a_clk_active &cam_port_b_clk_active>;
  385. pinctrl-names = "default";
  386. status = "okay";
  387. assigned-clocks = <&clock CLK_MOUT_CAM0>,
  388. <&clock CLK_MOUT_CAM1>;
  389. assigned-clock-parents = <&clock CLK_XUSBXTI>,
  390. <&clock CLK_XUSBXTI>;
  391. };
  392.  
  393. &cpu0 {
  394. cpu0-supply = <&buck2_reg>;
  395. };
  396.  
  397. &cpu_thermal {
  398. cooling-maps {
  399. map0 {
  400. /* Corresponds to 800MHz at freq_table */
  401. cooling-device = <&cpu0 7 7>, <&cpu1 7 7>,
  402. <&cpu2 7 7>, <&cpu3 7 7>;
  403. };
  404. map1 {
  405. /* Corresponds to 200MHz at freq_table */
  406. cooling-device = <&cpu0 13 13>, <&cpu1 13 13>,
  407. <&cpu2 13 13>, <&cpu3 13 13>;
  408. };
  409. };
  410. };
  411.  
  412. &csis_0 {
  413. status = "okay";
  414. vddcore-supply = <&ldo8_reg>;
  415. vddio-supply = <&ldo10_reg>;
  416. assigned-clocks = <&clock CLK_MOUT_CSIS0>,
  417. <&clock CLK_SCLK_CSIS0>;
  418. assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
  419. assigned-clock-rates = <0>, <176000000>;
  420.  
  421. /* Camera C (3) MIPI CSI-2 (CSIS0) */
  422. port@3 {
  423. reg = <3>;
  424. csis0_ep: endpoint {
  425. remote-endpoint = <&s5c73m3_ep>;
  426. data-lanes = <1 2 3 4>;
  427. samsung,csis-hs-settle = <12>;
  428. };
  429. };
  430. };
  431.  
  432. &csis_1 {
  433. status = "okay";
  434. vddcore-supply = <&ldo8_reg>;
  435. vddio-supply = <&ldo10_reg>;
  436. assigned-clocks = <&clock CLK_MOUT_CSIS1>,
  437. <&clock CLK_SCLK_CSIS1>;
  438. assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
  439. assigned-clock-rates = <0>, <176000000>;
  440.  
  441. /* Camera D (4) MIPI CSI-2 (CSIS1) */
  442. port@4 {
  443. reg = <4>;
  444. csis1_ep: endpoint {
  445. remote-endpoint = <&is_s5k6a3_ep>;
  446. data-lanes = <1>;
  447. samsung,csis-hs-settle = <18>;
  448. samsung,csis-wclk;
  449. };
  450. };
  451. };
  452.  
  453. &dsi_0 {
  454. vddcore-supply = <&ldo8_reg>;
  455. vddio-supply = <&ldo10_reg>;
  456. samsung,burst-clock-frequency = <500000000>;
  457. samsung,esc-clock-frequency = <20000000>;
  458. samsung,pll-clock-frequency = <24000000>;
  459. };
  460.  
  461. &exynos_usbphy {
  462. vbus-supply = <&esafeout1_reg>;
  463. status = "okay";
  464. };
  465.  
  466. &fimc_0 {
  467. status = "okay";
  468. assigned-clocks = <&clock CLK_MOUT_FIMC0>,
  469. <&clock CLK_SCLK_FIMC0>;
  470. assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
  471. assigned-clock-rates = <0>, <176000000>;
  472. };
  473.  
  474. &fimc_1 {
  475. status = "okay";
  476. assigned-clocks = <&clock CLK_MOUT_FIMC1>,
  477. <&clock CLK_SCLK_FIMC1>;
  478. assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
  479. assigned-clock-rates = <0>, <176000000>;
  480. };
  481.  
  482. &fimc_2 {
  483. status = "okay";
  484. assigned-clocks = <&clock CLK_MOUT_FIMC2>,
  485. <&clock CLK_SCLK_FIMC2>;
  486. assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
  487. assigned-clock-rates = <0>, <176000000>;
  488. };
  489.  
  490. &fimc_3 {
  491. status = "okay";
  492. assigned-clocks = <&clock CLK_MOUT_FIMC3>,
  493. <&clock CLK_SCLK_FIMC3>;
  494. assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
  495. assigned-clock-rates = <0>, <176000000>;
  496. };
  497.  
  498. &fimc_is {
  499. pinctrl-0 = <&fimc_is_uart>;
  500. pinctrl-names = "default";
  501. status = "okay";
  502.  
  503. };
  504.  
  505. &fimc_lite_0 {
  506. status = "okay";
  507. };
  508.  
  509. &fimc_lite_1 {
  510. status = "okay";
  511. };
  512.  
  513. &fimd {
  514. status = "okay";
  515. };
  516.  
  517. &gpu {
  518. mali-supply = <&buck4_reg>;
  519. status = "okay";
  520. };
  521.  
  522. &hdmi {
  523. hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
  524. pinctrl-names = "default";
  525. pinctrl-0 = <&hdmi_hpd>;
  526. vdd-supply = <&ldo3_reg>;
  527. vdd_osc-supply = <&ldo4_reg>;
  528. vdd_pll-supply = <&ldo3_reg>;
  529. ddc = <&i2c_5>;
  530. status = "okay";
  531.  
  532. ports {
  533. #address-cells = <1>;
  534. #size-cells = <0>;
  535.  
  536. port@1 {
  537. reg = <1>;
  538. hdmi_to_mhl: endpoint {
  539. remote-endpoint = <&mhl_to_hdmi>;
  540. };
  541. };
  542. };
  543. };
  544.  
  545. &hsotg {
  546. vusb_d-supply = <&ldo15_reg>;
  547. vusb_a-supply = <&ldo12_reg>;
  548. dr_mode = "otg";
  549. disable-over-current;
  550. status = "okay";
  551. };
  552.  
  553. &ehci {
  554. status = "okay";
  555. phys = <&exynos_usbphy 1>;
  556. phy-names = "host";
  557. };
  558.  
  559. &i2c_0 {
  560. samsung,i2c-sda-delay = <100>;
  561. samsung,i2c-slave-addr = <0x10>;
  562. samsung,i2c-max-bus-freq = <400000>;
  563. pinctrl-0 = <&i2c0_bus>;
  564. pinctrl-names = "default";
  565. status = "okay";
  566.  
  567. s5c73m3: s5c73m3@3c {
  568. compatible = "samsung,s5c73m3";
  569. reg = <0x3c>;
  570. xshutdown-gpios = <&gpf1 3 GPIO_ACTIVE_LOW>; /* ISP_RESET */
  571. vdd-int-supply = <&buck9_reg>;
  572. vddio-cis-supply = <&ldo9_reg>;
  573. vddio-host-supply = <&ldo18_reg>;
  574. vdd-af-supply = <&cam_af_reg>;
  575. vdd-reg-supply = <&cam_io_reg>;
  576. clock-frequency = <24000000>;
  577. /* CAM_A_CLKOUT */
  578. clocks = <&camera 0>;
  579. clock-names = "cis_extclk";
  580. status = "disabled";
  581. port {
  582. s5c73m3_ep: endpoint {
  583. remote-endpoint = <&csis0_ep>;
  584. data-lanes = <1 2 3 4>;
  585. };
  586. };
  587. };
  588. };
  589.  
  590. &i2c1_isp {
  591. pinctrl-0 = <&fimc_is_i2c1>;
  592. pinctrl-names = "default";
  593.  
  594. s5k6a3@10 {
  595. compatible = "samsung,s5k6a3";
  596. reg = <0x10>;
  597. svdda-supply = <&cam_io_reg>;
  598. svddio-supply = <&ldo19_reg>;
  599. afvdd-supply = <&ldo19_reg>;
  600. clock-frequency = <24000000>;
  601. /* CAM_B_CLKOUT */
  602. clocks = <&camera 1>;
  603. clock-names = "extclk";
  604. samsung,camclk-out = <1>;
  605. gpios = <&gpm1 6 GPIO_ACTIVE_HIGH>;
  606.  
  607. port {
  608. is_s5k6a3_ep: endpoint {
  609. remote-endpoint = <&csis1_ep>;
  610. data-lanes = <1>;
  611. };
  612. };
  613. };
  614. };
  615.  
  616. &i2c_3 {
  617. samsung,i2c-sda-delay = <100>;
  618. samsung,i2c-slave-addr = <0x10>;
  619. samsung,i2c-max-bus-freq = <400000>;
  620. pinctrl-0 = <&i2c3_bus>;
  621. pinctrl-names = "default";
  622. status = "okay";
  623. };
  624.  
  625. &i2c_4 {
  626. samsung,i2c-sda-delay = <100>;
  627. samsung,i2c-slave-addr = <0x10>;
  628. samsung,i2c-max-bus-freq = <100000>;
  629. pinctrl-0 = <&i2c4_bus>;
  630. pinctrl-names = "default";
  631. status = "okay";
  632.  
  633. wm1811: audio-codec@1a {
  634. compatible = "wlf,wm1811";
  635. reg = <0x1a>;
  636. clocks = <&pmu_system_controller 0>,
  637. <&max77686 MAX77686_CLK_PMIC>;
  638. clock-names = "MCLK1", "MCLK2";
  639. interrupt-controller;
  640. #interrupt-cells = <2>;
  641. interrupt-parent = <&gpx3>;
  642. interrupts = <6 IRQ_TYPE_LEVEL_HIGH>;
  643.  
  644. gpio-controller;
  645. #gpio-cells = <2>;
  646. #sound-dai-cells = <0>;
  647.  
  648. wlf,gpio-cfg = <0x3 0x0 0x0 0x0 0x0 0x0
  649. 0x0 0x8000 0x0 0x0 0x0>;
  650. wlf,micbias-cfg = <0x2f 0x2f>;
  651.  
  652. wlf,lineout1-feedback;
  653. wlf,lineout1-se;
  654. wlf,lineout2-se;
  655. wlf,ldoena-always-driven;
  656.  
  657. AVDD2-supply = <&vbatt_reg>;
  658. DBVDD1-supply = <&ldo3_reg>;
  659. DBVDD2-supply = <&vbatt_reg>;
  660. DBVDD3-supply = <&vbatt_reg>;
  661. DCVDD-supply = <&ldo3_reg>;
  662. CPVDD-supply = <&vbatt_reg>;
  663. SPKVDD1-supply = <&vbatt_reg>;
  664. SPKVDD2-supply = <&vbatt_reg>;
  665. wlf,ldo1ena = <&gpm4 4 0>;
  666. wlf,ldo2ena = <&gpm4 4 0>;
  667. };
  668. };
  669.  
  670. &i2c_5 {
  671. status = "okay";
  672. };
  673.  
  674. &i2c_7 {
  675. samsung,i2c-sda-delay = <100>;
  676. samsung,i2c-slave-addr = <0x10>;
  677. samsung,i2c-max-bus-freq = <100000>;
  678. pinctrl-0 = <&i2c7_bus>;
  679. pinctrl-names = "default";
  680. status = "okay";
  681.  
  682. max77686: max77686_pmic@9 {
  683. compatible = "maxim,max77686";
  684. interrupt-parent = <&gpx0>;
  685. interrupts = <7 IRQ_TYPE_NONE>;
  686. pinctrl-0 = <&max77686_irq>;
  687. pinctrl-names = "default";
  688. reg = <0x09>;
  689. #clock-cells = <1>;
  690.  
  691. voltage-regulators {
  692. ldo1_reg: LDO1 {
  693. regulator-name = "VALIVE_1.0V_AP";
  694. regulator-min-microvolt = <1000000>;
  695. regulator-max-microvolt = <1000000>;
  696. regulator-always-on;
  697. };
  698.  
  699. ldo2_reg: LDO2 {
  700. regulator-name = "VM1M2_1.2V_AP";
  701. regulator-min-microvolt = <1200000>;
  702. regulator-max-microvolt = <1200000>;
  703. regulator-always-on;
  704. regulator-state-mem {
  705. regulator-on-in-suspend;
  706. };
  707. };
  708.  
  709. ldo3_reg: LDO3 {
  710. regulator-name = "VCC_1.8V_AP";
  711. regulator-min-microvolt = <1800000>;
  712. regulator-max-microvolt = <1800000>;
  713. regulator-always-on;
  714. };
  715.  
  716. ldo4_reg: LDO4 {
  717. regulator-name = "VCC_2.8V_AP";
  718. regulator-min-microvolt = <2800000>;
  719. regulator-max-microvolt = <2800000>;
  720. regulator-always-on;
  721. };
  722.  
  723. ldo5_reg: LDO5 {
  724. regulator-name = "VCC_1.8V_IO";
  725. regulator-min-microvolt = <1800000>;
  726. regulator-max-microvolt = <1800000>;
  727. regulator-always-on;
  728. };
  729.  
  730. ldo6_reg: LDO6 {
  731. regulator-name = "VMPLL_1.0V_AP";
  732. regulator-min-microvolt = <1000000>;
  733. regulator-max-microvolt = <1000000>;
  734. regulator-always-on;
  735. regulator-state-mem {
  736. regulator-on-in-suspend;
  737. };
  738. };
  739.  
  740. ldo7_reg: LDO7 {
  741. regulator-name = "VPLL_1.0V_AP";
  742. regulator-min-microvolt = <1000000>;
  743. regulator-max-microvolt = <1000000>;
  744. regulator-always-on;
  745. regulator-state-mem {
  746. regulator-on-in-suspend;
  747. };
  748. };
  749.  
  750. ldo8_reg: LDO8 {
  751. regulator-name = "VMIPI_1.0V";
  752. regulator-min-microvolt = <1000000>;
  753. regulator-max-microvolt = <1000000>;
  754. regulator-state-mem {
  755. regulator-off-in-suspend;
  756. };
  757. };
  758.  
  759. ldo9_reg: LDO9 {
  760. regulator-name = "CAM_ISP_MIPI_1.2V";
  761. regulator-min-microvolt = <1200000>;
  762. regulator-max-microvolt = <1200000>;
  763. };
  764.  
  765. ldo10_reg: LDO10 {
  766. regulator-name = "VMIPI_1.8V";
  767. regulator-min-microvolt = <1800000>;
  768. regulator-max-microvolt = <1800000>;
  769. regulator-state-mem {
  770. regulator-off-in-suspend;
  771. };
  772. };
  773.  
  774. ldo11_reg: LDO11 {
  775. regulator-name = "VABB1_1.95V";
  776. regulator-min-microvolt = <1950000>;
  777. regulator-max-microvolt = <1950000>;
  778. regulator-always-on;
  779. regulator-state-mem {
  780. regulator-off-in-suspend;
  781. };
  782. };
  783.  
  784. ldo12_reg: LDO12 {
  785. regulator-name = "VUOTG_3.0V";
  786. regulator-min-microvolt = <3000000>;
  787. regulator-max-microvolt = <3000000>;
  788. regulator-state-mem {
  789. regulator-off-in-suspend;
  790. };
  791. };
  792.  
  793. ldo13_reg: LDO13 {
  794. regulator-name = "NFC_AVDD_1.8V";
  795. regulator-min-microvolt = <1800000>;
  796. regulator-max-microvolt = <1800000>;
  797. };
  798.  
  799. ldo14_reg: LDO14 {
  800. regulator-name = "VABB2_1.95V";
  801. regulator-min-microvolt = <1950000>;
  802. regulator-max-microvolt = <1950000>;
  803. regulator-always-on;
  804. regulator-state-mem {
  805. regulator-off-in-suspend;
  806. };
  807. };
  808.  
  809. ldo15_reg: LDO15 {
  810. regulator-name = "VHSIC_1.0V";
  811. regulator-min-microvolt = <1000000>;
  812. regulator-max-microvolt = <1000000>;
  813. regulator-state-mem {
  814. regulator-on-in-suspend;
  815. };
  816. };
  817.  
  818. ldo16_reg: LDO16 {
  819. regulator-name = "VHSIC_1.8V";
  820. regulator-min-microvolt = <1800000>;
  821. regulator-max-microvolt = <1800000>;
  822. regulator-state-mem {
  823. regulator-on-in-suspend;
  824. };
  825. };
  826.  
  827. ldo17_reg: LDO17 {
  828. regulator-name = "CAM_SENSOR_CORE_1.2V";
  829. regulator-min-microvolt = <1200000>;
  830. regulator-max-microvolt = <1200000>;
  831. };
  832.  
  833. ldo18_reg: LDO18 {
  834. regulator-name = "CAM_ISP_SEN_IO_1.8V";
  835. regulator-min-microvolt = <1800000>;
  836. regulator-max-microvolt = <1800000>;
  837. };
  838.  
  839. ldo19_reg: LDO19 {
  840. regulator-name = "VT_CAM_1.8V";
  841. regulator-min-microvolt = <1800000>;
  842. regulator-max-microvolt = <1800000>;
  843. };
  844.  
  845. ldo20_reg: LDO20 {
  846. regulator-name = "VDDQ_PRE_1.8V";
  847. regulator-min-microvolt = <1800000>;
  848. regulator-max-microvolt = <1800000>;
  849. };
  850.  
  851. ldo21_reg: LDO21 {
  852. regulator-name = "VTF_2.8V";
  853. regulator-min-microvolt = <2800000>;
  854. regulator-max-microvolt = <2800000>;
  855. maxim,ena-gpios = <&gpy2 0 GPIO_ACTIVE_HIGH>;
  856. };
  857.  
  858. ldo22_reg: LDO22 {
  859. regulator-name = "VMEM_VDD_2.8V";
  860. regulator-min-microvolt = <2800000>;
  861. regulator-max-microvolt = <2800000>;
  862. maxim,ena-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>;
  863. };
  864.  
  865. ldo23_reg: LDO23 {
  866. regulator-name = "TSP_AVDD_3.3V";
  867. regulator-min-microvolt = <3300000>;
  868. regulator-max-microvolt = <3300000>;
  869. };
  870.  
  871. ldo24_reg: LDO24 {
  872. regulator-name = "TSP_VDD_1.8V";
  873. regulator-min-microvolt = <1800000>;
  874. regulator-max-microvolt = <1800000>;
  875. };
  876.  
  877. ldo25_reg: LDO25 {
  878. regulator-name = "LDO25";
  879. };
  880.  
  881. ldo26_reg: LDO26 {
  882. regulator-name = "MOTOR_VCC_3.0V";
  883. regulator-min-microvolt = <3000000>;
  884. regulator-max-microvolt = <3000000>;
  885. };
  886.  
  887. buck1_reg: BUCK1 {
  888. regulator-name = "VDD_MIF";
  889. regulator-min-microvolt = <850000>;
  890. regulator-max-microvolt = <1100000>;
  891. regulator-always-on;
  892. regulator-boot-on;
  893. regulator-state-mem {
  894. regulator-off-in-suspend;
  895. };
  896. };
  897.  
  898. buck2_reg: BUCK2 {
  899. regulator-name = "VDD_ARM";
  900. regulator-min-microvolt = <850000>;
  901. regulator-max-microvolt = <1500000>;
  902. regulator-always-on;
  903. regulator-boot-on;
  904. regulator-state-mem {
  905. regulator-on-in-suspend;
  906. };
  907. };
  908.  
  909. buck3_reg: BUCK3 {
  910. regulator-name = "VDD_INT";
  911. regulator-min-microvolt = <850000>;
  912. regulator-max-microvolt = <1150000>;
  913. regulator-always-on;
  914. regulator-boot-on;
  915. regulator-state-mem {
  916. regulator-off-in-suspend;
  917. };
  918. };
  919.  
  920. buck4_reg: BUCK4 {
  921. regulator-name = "VDD_G3D";
  922. regulator-min-microvolt = <850000>;
  923. regulator-max-microvolt = <1150000>;
  924. regulator-boot-on;
  925. regulator-state-mem {
  926. regulator-off-in-suspend;
  927. };
  928. };
  929.  
  930. buck5_reg: BUCK5 {
  931. regulator-name = "VMEM_1.2V_AP";
  932. regulator-min-microvolt = <1200000>;
  933. regulator-max-microvolt = <1200000>;
  934. regulator-always-on;
  935. };
  936.  
  937. buck6_reg: BUCK6 {
  938. regulator-name = "VCC_SUB_1.35V";
  939. regulator-min-microvolt = <1350000>;
  940. regulator-max-microvolt = <1350000>;
  941. regulator-always-on;
  942. };
  943.  
  944. buck7_reg: BUCK7 {
  945. regulator-name = "VCC_SUB_2.0V";
  946. regulator-min-microvolt = <2000000>;
  947. regulator-max-microvolt = <2000000>;
  948. regulator-always-on;
  949. };
  950.  
  951. buck8_reg: BUCK8 {
  952. regulator-name = "VMEM_VDDF_3.0V";
  953. regulator-min-microvolt = <2850000>;
  954. regulator-max-microvolt = <2850000>;
  955. maxim,ena-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>;
  956. };
  957.  
  958. buck9_reg: BUCK9 {
  959. regulator-name = "CAM_ISP_CORE_1.2V";
  960. regulator-min-microvolt = <1000000>;
  961. regulator-max-microvolt = <1200000>;
  962. };
  963. };
  964. };
  965. };
  966.  
  967. &i2c_8 {
  968. status = "okay";
  969. };
  970.  
  971. &i2s0 {
  972. pinctrl-0 = <&i2s0_bus>;
  973. pinctrl-names = "default";
  974. status = "okay";
  975. };
  976.  
  977. &mixer {
  978. status = "okay";
  979. };
  980.  
  981. &mshc_0 {
  982. broken-cd;
  983. non-removable;
  984. card-detect-delay = <200>;
  985. vmmc-supply = <&ldo22_reg>;
  986. clock-frequency = <400000000>;
  987. samsung,dw-mshc-ciu-div = <0>;
  988. samsung,dw-mshc-sdr-timing = <2 3>;
  989. samsung,dw-mshc-ddr-timing = <1 2>;
  990. pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>;
  991. pinctrl-names = "default";
  992. status = "okay";
  993. bus-width = <8>;
  994. cap-mmc-highspeed;
  995. };
  996.  
  997. &pmu_system_controller {
  998. assigned-clocks = <&pmu_system_controller 0>;
  999. assigned-clock-parents = <&clock CLK_XUSBXTI>;
  1000.  
  1001. /* S-Boot 4.0 */
  1002. #define S5P_INFORM2 0xF008
  1003. #define S5P_INFORM3 0x080C
  1004. #define BOOT_MODE_PREFIX 0x12345670
  1005. #define BOOT_NORMAL (BOOT_MODE_PREFIX | 0)
  1006. #define BOOT_DOWNLOAD (BOOT_MODE_PREFIX | 1)
  1007. #define BOOT_RECOVERY (BOOT_MODE_PREFIX | 4)
  1008.  
  1009. no-lpm-mode {
  1010. compatible = "syscon-reboot";
  1011. offset = <S5P_INFORM2>;
  1012. value = <0x12345678>;
  1013. };
  1014.  
  1015. reboot-mode {
  1016. compatible = "syscon-reboot-mode";
  1017. offset = <S5P_INFORM3>;
  1018. mode-normal = <BOOT_NORMAL>;
  1019. mode-recovery = <BOOT_RECOVERY>;
  1020. mode-bootloader = <BOOT_DOWNLOAD>;
  1021. mode-download = <BOOT_DOWNLOAD>;
  1022. };
  1023. };
  1024.  
  1025. &pinctrl_0 {
  1026. pinctrl-names = "default";
  1027. pinctrl-0 = <&sleep0>;
  1028.  
  1029. mhl_int: mhl-int {
  1030. samsung,pins = "gpf3-5";
  1031. samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
  1032. };
  1033.  
  1034. i2c_mhl_bus: i2c-mhl-bus {
  1035. samsung,pins = "gpf0-4", "gpf0-6";
  1036. samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
  1037. samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
  1038. samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
  1039. };
  1040.  
  1041.  
  1042. sleep0: sleep-states {
  1043. PIN_SLP(gpa0-0, INPUT, NONE);
  1044. PIN_SLP(gpa0-1, OUT0, NONE);
  1045. PIN_SLP(gpa0-2, INPUT, NONE);
  1046. PIN_SLP(gpa0-3, INPUT, UP);
  1047. PIN_SLP(gpa0-4, INPUT, NONE);
  1048. PIN_SLP(gpa0-5, INPUT, DOWN);
  1049. PIN_SLP(gpa0-6, INPUT, DOWN);
  1050. PIN_SLP(gpa0-7, INPUT, UP);
  1051.  
  1052. PIN_SLP(gpa1-0, INPUT, DOWN);
  1053. PIN_SLP(gpa1-1, INPUT, DOWN);
  1054. PIN_SLP(gpa1-2, INPUT, DOWN);
  1055. PIN_SLP(gpa1-3, INPUT, DOWN);
  1056. PIN_SLP(gpa1-4, INPUT, DOWN);
  1057. PIN_SLP(gpa1-5, INPUT, DOWN);
  1058.  
  1059. PIN_SLP(gpb-0, INPUT, NONE);
  1060. PIN_SLP(gpb-1, INPUT, NONE);
  1061. PIN_SLP(gpb-2, INPUT, NONE);
  1062. PIN_SLP(gpb-3, INPUT, NONE);
  1063. PIN_SLP(gpb-4, INPUT, DOWN);
  1064. PIN_SLP(gpb-5, INPUT, UP);
  1065. PIN_SLP(gpb-6, INPUT, DOWN);
  1066. PIN_SLP(gpb-7, INPUT, DOWN);
  1067.  
  1068. PIN_SLP(gpc0-0, INPUT, DOWN);
  1069. PIN_SLP(gpc0-1, INPUT, DOWN);
  1070. PIN_SLP(gpc0-2, INPUT, DOWN);
  1071. PIN_SLP(gpc0-3, INPUT, DOWN);
  1072. PIN_SLP(gpc0-4, INPUT, DOWN);
  1073.  
  1074. PIN_SLP(gpc1-0, INPUT, NONE);
  1075. PIN_SLP(gpc1-1, PREV, NONE);
  1076. PIN_SLP(gpc1-2, INPUT, NONE);
  1077. PIN_SLP(gpc1-3, INPUT, NONE);
  1078. PIN_SLP(gpc1-4, INPUT, NONE);
  1079.  
  1080. PIN_SLP(gpd0-0, INPUT, DOWN);
  1081. PIN_SLP(gpd0-1, INPUT, DOWN);
  1082. PIN_SLP(gpd0-2, INPUT, NONE);
  1083. PIN_SLP(gpd0-3, INPUT, NONE);
  1084.  
  1085. PIN_SLP(gpd1-0, INPUT, DOWN);
  1086. PIN_SLP(gpd1-1, INPUT, DOWN);
  1087. PIN_SLP(gpd1-2, INPUT, NONE);
  1088. PIN_SLP(gpd1-3, INPUT, NONE);
  1089.  
  1090. PIN_SLP(gpf0-0, INPUT, NONE);
  1091. PIN_SLP(gpf0-1, INPUT, NONE);
  1092. PIN_SLP(gpf0-2, INPUT, DOWN);
  1093. PIN_SLP(gpf0-3, INPUT, DOWN);
  1094. PIN_SLP(gpf0-4, INPUT, NONE);
  1095. PIN_SLP(gpf0-5, INPUT, DOWN);
  1096. PIN_SLP(gpf0-6, INPUT, NONE);
  1097. PIN_SLP(gpf0-7, INPUT, DOWN);
  1098.  
  1099. PIN_SLP(gpf1-0, INPUT, DOWN);
  1100. PIN_SLP(gpf1-1, INPUT, DOWN);
  1101. PIN_SLP(gpf1-2, INPUT, DOWN);
  1102. PIN_SLP(gpf1-3, INPUT, DOWN);
  1103. PIN_SLP(gpf1-4, INPUT, NONE);
  1104. PIN_SLP(gpf1-5, INPUT, NONE);
  1105. PIN_SLP(gpf1-6, INPUT, DOWN);
  1106. PIN_SLP(gpf1-7, PREV, NONE);
  1107.  
  1108. PIN_SLP(gpf2-0, PREV, NONE);
  1109. PIN_SLP(gpf2-1, INPUT, DOWN);
  1110. PIN_SLP(gpf2-2, INPUT, DOWN);
  1111. PIN_SLP(gpf2-3, INPUT, DOWN);
  1112. PIN_SLP(gpf2-4, INPUT, DOWN);
  1113. PIN_SLP(gpf2-5, INPUT, DOWN);
  1114. PIN_SLP(gpf2-6, INPUT, NONE);
  1115. PIN_SLP(gpf2-7, INPUT, NONE);
  1116.  
  1117. PIN_SLP(gpf3-0, INPUT, NONE);
  1118. PIN_SLP(gpf3-1, PREV, NONE);
  1119. PIN_SLP(gpf3-2, PREV, NONE);
  1120. PIN_SLP(gpf3-3, PREV, NONE);
  1121. PIN_SLP(gpf3-4, OUT1, NONE);
  1122. PIN_SLP(gpf3-5, INPUT, DOWN);
  1123.  
  1124. PIN_SLP(gpj0-0, PREV, NONE);
  1125. PIN_SLP(gpj0-1, PREV, NONE);
  1126. PIN_SLP(gpj0-2, PREV, NONE);
  1127. PIN_SLP(gpj0-3, INPUT, DOWN);
  1128. PIN_SLP(gpj0-4, PREV, NONE);
  1129. PIN_SLP(gpj0-5, PREV, NONE);
  1130. PIN_SLP(gpj0-6, INPUT, DOWN);
  1131. PIN_SLP(gpj0-7, INPUT, DOWN);
  1132.  
  1133. PIN_SLP(gpj1-0, INPUT, DOWN);
  1134. PIN_SLP(gpj1-1, PREV, NONE);
  1135. PIN_SLP(gpj1-2, PREV, NONE);
  1136. PIN_SLP(gpj1-3, INPUT, DOWN);
  1137. PIN_SLP(gpj1-4, INPUT, DOWN);
  1138. };
  1139. };
  1140.  
  1141. &pinctrl_1 {
  1142. pinctrl-names = "default";
  1143. pinctrl-0 = <&sleep1>;
  1144.  
  1145. gpio_keys: gpio-keys {
  1146. samsung,pins = "gpx0-1", "gpx2-2", "gpx2-7", "gpx3-3";
  1147. samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
  1148. };
  1149.  
  1150. max77686_irq: max77686-irq {
  1151. samsung,pins = "gpx0-7";
  1152. samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
  1153. samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
  1154. samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
  1155. };
  1156.  
  1157. s7301_irq: s7301-irq {
  1158. samsung,pins = "gpm2-3";
  1159. samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
  1160. samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
  1161. };
  1162.  
  1163. s7301_led_off: s7301-led-off {
  1164. samsung,pins = "gpm0-5";
  1165. samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
  1166. samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
  1167. samsung,pin-val = <0>;
  1168. };
  1169.  
  1170. s7301_led_on: s7301-led-on {
  1171. samsung,pins = "gpm0-5";
  1172. samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
  1173. samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
  1174. samsung,pin-val = <1>;
  1175. };
  1176.  
  1177. max77693_irq: max77693-irq {
  1178. samsung,pins = "gpx1-4";
  1179. samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
  1180. };
  1181.  
  1182. max77693_fuel_irq: max77693-fuel-irq {
  1183. samsung,pins = "gpx2-3";
  1184. samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
  1185. };
  1186.  
  1187. otg_en: otg-en {
  1188. samsung,pins = "gpx3-5";
  1189. samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
  1190. };
  1191.  
  1192. sdhci2_cd: sdhci2-cd-irq {
  1193. samsung,pins = "gpx3-4";
  1194. samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
  1195. };
  1196.  
  1197. hdmi_hpd: hdmi-hpd {
  1198. samsung,pins = "gpx3-7";
  1199. samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
  1200. };
  1201.  
  1202. sleep1: sleep-states {
  1203. PIN_SLP(gpk0-0, PREV, NONE);
  1204. PIN_SLP(gpk0-1, PREV, NONE);
  1205. PIN_SLP(gpk0-2, OUT0, NONE);
  1206. PIN_SLP(gpk0-3, PREV, NONE);
  1207. PIN_SLP(gpk0-4, PREV, NONE);
  1208. PIN_SLP(gpk0-5, PREV, NONE);
  1209. PIN_SLP(gpk0-6, PREV, NONE);
  1210.  
  1211. PIN_SLP(gpk1-0, INPUT, DOWN);
  1212. PIN_SLP(gpk1-1, INPUT, DOWN);
  1213. PIN_SLP(gpk1-2, INPUT, DOWN);
  1214. PIN_SLP(gpk1-3, PREV, NONE);
  1215. PIN_SLP(gpk1-4, PREV, NONE);
  1216. PIN_SLP(gpk1-5, PREV, NONE);
  1217. PIN_SLP(gpk1-6, PREV, NONE);
  1218.  
  1219. PIN_SLP(gpk2-0, INPUT, DOWN);
  1220. PIN_SLP(gpk2-1, INPUT, DOWN);
  1221. PIN_SLP(gpk2-2, INPUT, DOWN);
  1222. PIN_SLP(gpk2-3, INPUT, DOWN);
  1223. PIN_SLP(gpk2-4, INPUT, DOWN);
  1224. PIN_SLP(gpk2-5, INPUT, DOWN);
  1225. PIN_SLP(gpk2-6, INPUT, DOWN);
  1226.  
  1227. PIN_SLP(gpk3-0, OUT0, NONE);
  1228. PIN_SLP(gpk3-1, INPUT, NONE);
  1229. PIN_SLP(gpk3-2, INPUT, DOWN);
  1230. PIN_SLP(gpk3-3, INPUT, NONE);
  1231. PIN_SLP(gpk3-4, INPUT, NONE);
  1232. PIN_SLP(gpk3-5, INPUT, NONE);
  1233. PIN_SLP(gpk3-6, INPUT, NONE);
  1234.  
  1235. PIN_SLP(gpl0-0, INPUT, DOWN);
  1236. PIN_SLP(gpl0-1, INPUT, DOWN);
  1237. PIN_SLP(gpl0-2, INPUT, DOWN);
  1238. PIN_SLP(gpl0-3, INPUT, DOWN);
  1239. PIN_SLP(gpl0-4, PREV, NONE);
  1240. PIN_SLP(gpl0-6, PREV, NONE);
  1241.  
  1242. PIN_SLP(gpl1-0, INPUT, DOWN);
  1243. PIN_SLP(gpl1-1, INPUT, DOWN);
  1244. PIN_SLP(gpl2-0, INPUT, DOWN);
  1245. PIN_SLP(gpl2-1, INPUT, DOWN);
  1246. PIN_SLP(gpl2-2, INPUT, DOWN);
  1247. PIN_SLP(gpl2-3, INPUT, DOWN);
  1248. PIN_SLP(gpl2-4, INPUT, DOWN);
  1249. PIN_SLP(gpl2-5, INPUT, DOWN);
  1250. PIN_SLP(gpl2-6, PREV, NONE);
  1251. PIN_SLP(gpl2-7, INPUT, DOWN);
  1252.  
  1253. PIN_SLP(gpm0-0, INPUT, DOWN);
  1254. PIN_SLP(gpm0-1, INPUT, DOWN);
  1255. PIN_SLP(gpm0-2, INPUT, DOWN);
  1256. PIN_SLP(gpm0-3, INPUT, DOWN);
  1257. PIN_SLP(gpm0-4, INPUT, DOWN);
  1258. PIN_SLP(gpm0-5, INPUT, DOWN);
  1259. PIN_SLP(gpm0-6, INPUT, DOWN);
  1260. PIN_SLP(gpm0-7, INPUT, DOWN);
  1261.  
  1262. PIN_SLP(gpm1-0, INPUT, DOWN);
  1263. PIN_SLP(gpm1-1, INPUT, DOWN);
  1264. PIN_SLP(gpm1-2, INPUT, NONE);
  1265. PIN_SLP(gpm1-3, INPUT, NONE);
  1266. PIN_SLP(gpm1-4, INPUT, NONE);
  1267. PIN_SLP(gpm1-5, INPUT, NONE);
  1268. PIN_SLP(gpm1-6, INPUT, DOWN);
  1269.  
  1270. PIN_SLP(gpm2-0, INPUT, NONE);
  1271. PIN_SLP(gpm2-1, INPUT, NONE);
  1272. PIN_SLP(gpm2-2, INPUT, DOWN);
  1273. PIN_SLP(gpm2-3, INPUT, DOWN);
  1274. PIN_SLP(gpm2-4, INPUT, DOWN);
  1275.  
  1276. PIN_SLP(gpm3-0, PREV, NONE);
  1277. PIN_SLP(gpm3-1, PREV, NONE);
  1278. PIN_SLP(gpm3-2, PREV, NONE);
  1279. PIN_SLP(gpm3-3, OUT1, NONE);
  1280. PIN_SLP(gpm3-4, INPUT, DOWN);
  1281. PIN_SLP(gpm3-5, INPUT, DOWN);
  1282. PIN_SLP(gpm3-6, INPUT, DOWN);
  1283. PIN_SLP(gpm3-7, INPUT, DOWN);
  1284.  
  1285. PIN_SLP(gpm4-0, INPUT, DOWN);
  1286. PIN_SLP(gpm4-1, INPUT, DOWN);
  1287. PIN_SLP(gpm4-2, INPUT, DOWN);
  1288. PIN_SLP(gpm4-3, INPUT, DOWN);
  1289. PIN_SLP(gpm4-4, INPUT, DOWN);
  1290. PIN_SLP(gpm4-5, INPUT, DOWN);
  1291. PIN_SLP(gpm4-6, INPUT, DOWN);
  1292. PIN_SLP(gpm4-7, INPUT, DOWN);
  1293.  
  1294. PIN_SLP(gpy0-0, INPUT, DOWN);
  1295. PIN_SLP(gpy0-1, INPUT, DOWN);
  1296. PIN_SLP(gpy0-2, INPUT, DOWN);
  1297. PIN_SLP(gpy0-3, INPUT, DOWN);
  1298. PIN_SLP(gpy0-4, INPUT, DOWN);
  1299. PIN_SLP(gpy0-5, INPUT, DOWN);
  1300.  
  1301. PIN_SLP(gpy1-0, INPUT, DOWN);
  1302. PIN_SLP(gpy1-1, INPUT, DOWN);
  1303. PIN_SLP(gpy1-2, INPUT, DOWN);
  1304. PIN_SLP(gpy1-3, INPUT, DOWN);
  1305.  
  1306. PIN_SLP(gpy2-0, PREV, NONE);
  1307. PIN_SLP(gpy2-1, INPUT, DOWN);
  1308. PIN_SLP(gpy2-2, INPUT, NONE);
  1309. PIN_SLP(gpy2-3, INPUT, NONE);
  1310. PIN_SLP(gpy2-4, INPUT, NONE);
  1311. PIN_SLP(gpy2-5, INPUT, NONE);
  1312.  
  1313. PIN_SLP(gpy3-0, INPUT, DOWN);
  1314. PIN_SLP(gpy3-1, INPUT, DOWN);
  1315. PIN_SLP(gpy3-2, INPUT, DOWN);
  1316. PIN_SLP(gpy3-3, INPUT, DOWN);
  1317. PIN_SLP(gpy3-4, INPUT, DOWN);
  1318. PIN_SLP(gpy3-5, INPUT, DOWN);
  1319. PIN_SLP(gpy3-6, INPUT, DOWN);
  1320. PIN_SLP(gpy3-7, INPUT, DOWN);
  1321.  
  1322. PIN_SLP(gpy4-0, INPUT, DOWN);
  1323. PIN_SLP(gpy4-1, INPUT, DOWN);
  1324. PIN_SLP(gpy4-2, INPUT, DOWN);
  1325. PIN_SLP(gpy4-3, INPUT, DOWN);
  1326. PIN_SLP(gpy4-4, INPUT, DOWN);
  1327. PIN_SLP(gpy4-5, INPUT, DOWN);
  1328. PIN_SLP(gpy4-6, INPUT, DOWN);
  1329. PIN_SLP(gpy4-7, INPUT, DOWN);
  1330.  
  1331. PIN_SLP(gpy5-0, INPUT, DOWN);
  1332. PIN_SLP(gpy5-1, INPUT, DOWN);
  1333. PIN_SLP(gpy5-2, INPUT, DOWN);
  1334. PIN_SLP(gpy5-3, INPUT, DOWN);
  1335. PIN_SLP(gpy5-4, INPUT, DOWN);
  1336. PIN_SLP(gpy5-5, INPUT, DOWN);
  1337. PIN_SLP(gpy5-6, INPUT, DOWN);
  1338. PIN_SLP(gpy5-7, INPUT, DOWN);
  1339.  
  1340. PIN_SLP(gpy6-0, INPUT, DOWN);
  1341. PIN_SLP(gpy6-1, INPUT, DOWN);
  1342. PIN_SLP(gpy6-2, INPUT, DOWN);
  1343. PIN_SLP(gpy6-3, INPUT, DOWN);
  1344. PIN_SLP(gpy6-4, INPUT, DOWN);
  1345. PIN_SLP(gpy6-5, INPUT, DOWN);
  1346. PIN_SLP(gpy6-6, INPUT, DOWN);
  1347. PIN_SLP(gpy6-7, INPUT, DOWN);
  1348. };
  1349. };
  1350.  
  1351. &pinctrl_2 {
  1352. pinctrl-names = "default";
  1353. pinctrl-0 = <&sleep2>;
  1354.  
  1355. sleep2: sleep-states {
  1356. PIN_SLP(gpz-0, INPUT, DOWN);
  1357. PIN_SLP(gpz-1, INPUT, DOWN);
  1358. PIN_SLP(gpz-2, INPUT, DOWN);
  1359. PIN_SLP(gpz-3, INPUT, DOWN);
  1360. PIN_SLP(gpz-4, INPUT, DOWN);
  1361. PIN_SLP(gpz-5, INPUT, DOWN);
  1362. PIN_SLP(gpz-6, INPUT, DOWN);
  1363. };
  1364. };
  1365.  
  1366. &pinctrl_3 {
  1367. pinctrl-names = "default";
  1368. pinctrl-0 = <&sleep3>;
  1369.  
  1370. sleep3: sleep-states {
  1371. PIN_SLP(gpv0-0, INPUT, DOWN);
  1372. PIN_SLP(gpv0-1, INPUT, DOWN);
  1373. PIN_SLP(gpv0-2, INPUT, DOWN);
  1374. PIN_SLP(gpv0-3, INPUT, DOWN);
  1375. PIN_SLP(gpv0-4, INPUT, DOWN);
  1376. PIN_SLP(gpv0-5, INPUT, DOWN);
  1377. PIN_SLP(gpv0-6, INPUT, DOWN);
  1378. PIN_SLP(gpv0-7, INPUT, DOWN);
  1379.  
  1380. PIN_SLP(gpv1-0, INPUT, DOWN);
  1381. PIN_SLP(gpv1-1, INPUT, DOWN);
  1382. PIN_SLP(gpv1-2, INPUT, DOWN);
  1383. PIN_SLP(gpv1-3, INPUT, DOWN);
  1384. PIN_SLP(gpv1-4, INPUT, DOWN);
  1385. PIN_SLP(gpv1-5, INPUT, DOWN);
  1386. PIN_SLP(gpv1-6, INPUT, DOWN);
  1387. PIN_SLP(gpv1-7, INPUT, DOWN);
  1388.  
  1389. PIN_SLP(gpv2-0, INPUT, DOWN);
  1390. PIN_SLP(gpv2-1, INPUT, DOWN);
  1391. PIN_SLP(gpv2-2, INPUT, DOWN);
  1392. PIN_SLP(gpv2-3, INPUT, DOWN);
  1393. PIN_SLP(gpv2-4, INPUT, DOWN);
  1394. PIN_SLP(gpv2-5, INPUT, DOWN);
  1395. PIN_SLP(gpv2-6, INPUT, DOWN);
  1396. PIN_SLP(gpv2-7, INPUT, DOWN);
  1397.  
  1398. PIN_SLP(gpv3-0, INPUT, DOWN);
  1399. PIN_SLP(gpv3-1, INPUT, DOWN);
  1400. PIN_SLP(gpv3-2, INPUT, DOWN);
  1401. PIN_SLP(gpv3-3, INPUT, DOWN);
  1402. PIN_SLP(gpv3-4, INPUT, DOWN);
  1403. PIN_SLP(gpv3-5, INPUT, DOWN);
  1404. PIN_SLP(gpv3-6, INPUT, DOWN);
  1405. PIN_SLP(gpv3-7, INPUT, DOWN);
  1406.  
  1407. PIN_SLP(gpv4-0, INPUT, DOWN);
  1408. };
  1409. };
  1410.  
  1411. &pwm {
  1412. pinctrl-0 = <&pwm0_out>;
  1413. pinctrl-1 = <&pwm1_out>;
  1414. pinctrl-names = "default";
  1415. samsung,pwm-outputs = <0>, <1>;
  1416. status = "okay";
  1417. };
  1418.  
  1419. &rtc {
  1420. status = "okay";
  1421. clocks = <&clock CLK_RTC>, <&max77686 MAX77686_CLK_AP>;
  1422. clock-names = "rtc", "rtc_src";
  1423. };
  1424.  
  1425. &sdhci_2 {
  1426. bus-width = <4>;
  1427. cd-gpios = <&gpx3 4 GPIO_ACTIVE_LOW>;
  1428. pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4 &sdhci2_cd>;
  1429. pinctrl-names = "default";
  1430. vmmc-supply = <&ldo21_reg>;
  1431. status = "okay";
  1432. };
  1433.  
  1434. &sdhci_3 {
  1435. #address-cells = <1>;
  1436. #size-cells = <0>;
  1437. non-removable;
  1438. bus-width = <4>;
  1439.  
  1440. mmc-pwrseq = <&wlan_pwrseq>;
  1441. pinctrl-names = "default";
  1442. pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_bus4>;
  1443. status = "okay";
  1444.  
  1445. brcmf: wifi@1 {
  1446. reg = <1>;
  1447. compatible = "brcm,bcm4329-fmac";
  1448. interrupt-parent = <&gpx2>;
  1449. interrupts = <5 IRQ_TYPE_NONE>;
  1450. interrupt-names = "host-wake";
  1451. };
  1452. };
  1453.  
  1454. &serial_0 {
  1455. status = "okay";
  1456. };
  1457.  
  1458. &serial_1 {
  1459. status = "okay";
  1460. };
  1461.  
  1462. &serial_2 {
  1463. status = "okay";
  1464. };
  1465.  
  1466. &serial_3 {
  1467. status = "okay";
  1468. };
  1469.  
  1470. &spi_1 {
  1471. pinctrl-names = "default";
  1472. pinctrl-0 = <&spi1_bus>;
  1473. cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
  1474. status = "okay";
  1475.  
  1476. s5c73m3_spi: s5c73m3@0 {
  1477. compatible = "samsung,s5c73m3";
  1478. spi-max-frequency = <50000000>;
  1479. reg = <0>;
  1480. controller-data {
  1481. samsung,spi-feedback-delay = <2>;
  1482. };
  1483. };
  1484. };
  1485.  
  1486. &tmu {
  1487. vtmu-supply = <&ldo10_reg>;
  1488. status = "okay";
  1489. };
  1490.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement