Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
857
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 86.28 KB | None | 0 0
  1. /*
  2. * Copyright (c) 2015 MediaTek Inc.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13.  
  14. #include <generated/autoconf.h>
  15. #include <dt-bindings/clock/mt6735-clk.h>
  16. #include <dt-bindings/interrupt-controller/arm-gic.h>
  17. #include <dt-bindings/interrupt-controller/irq.h>
  18. #include "mt6735-pinfunc.h"
  19. #include <dt-bindings/mmc/mt67xx-msdc.h>
  20. #ifdef CONFIG_MTK_DTBO_FEATURE
  21. /dts-v1/;
  22. #endif
  23.  
  24. / {
  25. model = "MT6735";
  26. compatible = "mediatek,MT6735";
  27. interrupt-parent = <&gic>;
  28. #address-cells = <2>;
  29. #size-cells = <2>;
  30.  
  31. /* chosen */
  32. chosen: chosen {
  33. bootargs = "console=tty0 console=ttyMT0,921600n1 root=/dev/ram \
  34. initrd=0x44000000,0x300000 loglevel=8 androidboot.hardware=mt6735";
  35. };
  36.  
  37. /* Do not put any bus before mtk-msdc, because it should be mtk-msdc.0 for partition device node usage */
  38. /*workaround for .0*/
  39. mtk-msdc.0 {
  40. compatible = "simple-bus";
  41. #address-cells = <1>;
  42. #size-cells = <1>;
  43. ranges = <0 0 0 0xffffffff>;
  44.  
  45. mmc0: msdc0@11230000{
  46. compatible = "mediatek,mt6735-mmc";
  47. reg = <0x11230000 0x10000 /* MSDC0_BASE */
  48. 0x10000e84 0x2>; /* FPGA PWR_GPIO, PWR_GPIO_EO */
  49. interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_LOW>;
  50. status = "disabled";
  51. clocks = <&perisys PERI_MSDC30_0>,
  52. <&topckgen TOP_MUX_MSDC30_0>,
  53. <&topckgen TOP_MSDCPLL_CK>,
  54. <&topckgen TOP_MSDCPLL_D2>,
  55. <&topckgen TOP_MSDCPLL_D4>;
  56. clock-names="MSDC0-CLOCK",
  57. "MSDC0_PLL_SEL",
  58. "MSDC0_PLL_800M",
  59. "MSDC0_PLL_400M",
  60. "MSDC0_PLL_200M";
  61. };
  62.  
  63. mmc1: msdc1@11240000{
  64. compatible = "mediatek,mt6735-mmc";
  65. reg = <0x11240000 0x10000 /* MSDC1_BASE */
  66. 0x10000e84 0x2>; /* FPGA PWR_GPIO, PWR_GPIO_EO */
  67. interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_LOW>;
  68. status = "disabled";
  69. clocks = <&perisys PERI_MSDC30_1>;
  70. clock-names="MSDC1-CLOCK";
  71. };
  72.  
  73. mmc2: msdc2@11250000{
  74. compatible = "mediatek,mt6735-mmc";
  75. reg = <0x11250000 0x10000 /* MSDC2_BASE */
  76. 0x10000e84 0x2>; /* FPGA PWR_GPIO, PWR_GPIO_EO */
  77. interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_LOW>;
  78. status = "disabled";
  79. clocks = <&perisys PERI_MSDC30_2>;
  80. clock-names="MSDC2-CLOCK";
  81. };
  82.  
  83. mmc3: msdc3@11260000{
  84. compatible = "mediatek,mt6735-mmc";
  85. reg = <0x11260000 0x10000 /* MSDC2_BASE */
  86. 0x10000e84 0x2>; /* FPGA PWR_GPIO, PWR_GPIO_EO */
  87. interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_LOW>;
  88. status = "disabled";
  89. clocks = <&perisys PERI_MSDC30_3>;
  90. clock-names="MSDC3-CLOCK";
  91. };
  92.  
  93. /* only used for old way of DCT, can be removed in new platform */
  94. msdc1_ins: default {
  95. compatible = "mediatek, msdc1_ins-eint";
  96. };
  97. };
  98. lcm: lcm {
  99. compatible = "mediatek,lcm";
  100. };
  101.  
  102. /* ATF logger SW IRQ number 281 = 32 + 249 */
  103. atf_logger {
  104. compatible = "mediatek,atf_logger";
  105. interrupts = <GIC_SPI 249 IRQ_TYPE_EDGE_RISING>;
  106. };
  107.  
  108. psci {
  109. compatible = "arm,psci";
  110. method = "smc";
  111. cpu_suspend = <0x84000001>;
  112. cpu_off = <0x84000002>;
  113. cpu_on = <0x84000003>;
  114. affinity_info = <0x84000004>;
  115. };
  116.  
  117. mobicore {
  118. compatible = "trustonic,mobicore";
  119. interrupts = <GIC_SPI 248 IRQ_TYPE_EDGE_RISING>;
  120. };
  121.  
  122. utos {
  123. compatible = "microtrust,utos";
  124. interrupts = <GIC_SPI 252 IRQ_TYPE_EDGE_RISING>,
  125. <GIC_SPI 253 IRQ_TYPE_EDGE_RISING>;
  126. };
  127.  
  128. memory {
  129. device_type = "memory";
  130. reg = <0 0x40000000 0 0x1F000000>;
  131. };
  132.  
  133. cpus: cpus {
  134. #address-cells = <1>;
  135. #size-cells = <0>;
  136.  
  137. cpu0: cpu@000 {
  138. device_type = "cpu";
  139. compatible = "arm,cortex-a53";
  140. reg = <0x000>;
  141. enable-method = "mt-boot";
  142. cpu-idle-states = <&cluster_sleep_0 &cluster_sleep_0 &cpu_sleep_0_0 &cpu_sleep_0_0>;
  143. cpu-release-addr = <0x0 0x40000200>;
  144. clock-frequency = <1300000000>;
  145. };
  146.  
  147. cpu1: cpu@001 {
  148. device_type = "cpu";
  149. compatible = "arm,cortex-a53";
  150. reg = <0x001>;
  151. enable-method = "mt-boot";
  152. cpu-idle-states = <&cluster_sleep_0 &cluster_sleep_0 &cpu_sleep_0_0 &cpu_sleep_0_0>;
  153. cpu-release-addr = <0x0 0x40000200>;
  154. clock-frequency = <1300000000>;
  155. };
  156.  
  157. cpu2: cpu@002 {
  158. device_type = "cpu";
  159. compatible = "arm,cortex-a53";
  160. reg = <0x002>;
  161. enable-method = "mt-boot";
  162. cpu-idle-states = <&cluster_sleep_0 &cluster_sleep_0 &cpu_sleep_0_0 &cpu_sleep_0_0>;
  163. cpu-release-addr = <0x0 0x40000200>;
  164. clock-frequency = <1300000000>;
  165. };
  166.  
  167. cpu3: cpu@003 {
  168. device_type = "cpu";
  169. compatible = "arm,cortex-a53";
  170. reg = <0x003>;
  171. enable-method = "mt-boot";
  172. cpu-idle-states = <&cluster_sleep_0 &cluster_sleep_0 &cpu_sleep_0_0 &cpu_sleep_0_0>;
  173. cpu-release-addr = <0x0 0x40000200>;
  174. clock-frequency = <1300000000>;
  175. };
  176.  
  177. idle-states {
  178. entry-method = "arm,psci";
  179.  
  180. cpu_sleep_0_0: cpu-sleep-0-0 {
  181. compatible = "arm,idle-state";
  182. arm,psci-suspend-param = <0x0010000>;
  183. entry-latency-us = <600>;
  184. exit-latency-us = <600>;
  185. min-residency-us = <1200>;
  186. };
  187.  
  188. cluster_sleep_0: cluster-sleep-0 {
  189. compatible = "arm,idle-state";
  190. arm,psci-suspend-param = <0x1010000>;
  191. entry-latency-us = <800>;
  192. exit-latency-us = <1000>;
  193. min-residency-us = <2000>;
  194. };
  195. };
  196. };
  197.  
  198. reserved_memory: reserved-memory {
  199. #address-cells = <2>;
  200. #size-cells = <2>;
  201. ranges;
  202.  
  203. atf-reserved-memory@43000000 {
  204. compatible = "mediatek,mt6735-atf-reserved-memory",
  205. "mediatek,mt6735m-atf-reserved-memory",
  206. "mediatek,mt6753-atf-reserved-memory";
  207. no-map;
  208. reg = <0 0x43000000 0 0x30000>;
  209. };
  210.  
  211. ram_console-reserved-memory@43f00000{
  212. compatible = "mediatek,ram_console";
  213. reg = <0 0x43f00000 0 0x10000>;
  214. };
  215.  
  216. pstore-reserved-memory@43f10000 {
  217. compatible = "mediatek,pstore";
  218. reg = <0 0x43f10000 0 0xe0000>;
  219. };
  220.  
  221. minirdump-reserved-memory@43ff0000{
  222. compatible = "mediatek,minirdump";
  223. reg = <0 0x43ff0000 0 0x10000>;
  224. };
  225.  
  226. reserve-memory-ccci_md1 {
  227. compatible = "mediatek,reserve-memory-ccci_md1";
  228. no-map;
  229. size = <0 0x3810000>; /* md_size+smem_size */
  230. alignment = <0 0x2000000>;
  231. alloc-ranges = <0 0x40000000 0 0xC0000000>;
  232. };
  233.  
  234. consys-reserve-memory {
  235. compatible = "mediatek,consys-reserve-memory";
  236. no-map;
  237. size = <0 0x100000>;
  238. alignment = <0 0x200000>;
  239. };
  240.  
  241. spm-reserve-memory {
  242. compatible = "mediatek,spm-reserve-memory";
  243. no-map;
  244. size = <0 0x10000>; /* PCM_FIRMWARE_SIZE * DYNA_LOAD_PCM_MAX = 4K * 4 */
  245. alignment = <0 0x10000>;
  246. alloc-ranges = <0 0x40000000 0 0x60000000>;
  247. };
  248. };
  249.  
  250. gic: interrupt-controller@10220000 {
  251. compatible = "mediatek,mt6735-gic";
  252. #interrupt-cells = <3>;
  253. #address-cells = <0>;
  254. interrupt-controller;
  255. reg = <0 0x10221000 0 0x1000>,
  256. <0 0x10222000 0 0x1000>,
  257. <0 0x10200620 0 0x1000>;
  258.  
  259. mediatek,wdt_irq = <160>;
  260.  
  261. gic-cpuif@0 {
  262. compatible = "arm,gic-cpuif";
  263. cpuif-id = <0>;
  264. cpu = <&cpu0>;
  265. };
  266.  
  267. gic-cpuif@1 {
  268. compatible = "arm,gic-cpuif";
  269. cpuif-id = <1>;
  270. cpu = <&cpu1>;
  271. };
  272.  
  273. gic-cpuif@2 {
  274. compatible = "arm,gic-cpuif";
  275. cpuif-id = <2>;
  276. cpu = <&cpu2>;
  277. };
  278.  
  279. gic-cpuif@3 {
  280. compatible = "arm,gic-cpuif";
  281. cpuif-id = <3>;
  282. cpu = <&cpu3>;
  283. };
  284. };
  285.  
  286. clocks {
  287. clk_null: clk_null {
  288. compatible = "fixed-clock";
  289. #clock-cells = <0>;
  290. clock-frequency = <0>;
  291. };
  292.  
  293. clk26m: clk26m {
  294. compatible = "fixed-clock";
  295. #clock-cells = <0>;
  296. clock-frequency = <26000000>;
  297. };
  298.  
  299. clk32k: clk32k {
  300. compatible = "fixed-clock";
  301. #clock-cells = <0>;
  302. clock-frequency = <32000>;
  303. };
  304. };
  305.  
  306. soc: soc {
  307. compatible = "simple-bus";
  308. #address-cells = <1>;
  309. #size-cells = <1>;
  310. ranges = <0 0 0 0xffffffff>;
  311.  
  312.  
  313. topckgen: topckgen@10210000 {
  314. compatible = "mediatek,mt6735-topckgen";
  315. reg = <0x10210000 0x1000>;
  316. #clock-cells = <1>;
  317. };
  318.  
  319.  
  320. chipid@08000000 {
  321. compatible = "mediatek,chipid";
  322. reg = <0x08000000 0x0004>,
  323. <0x08000004 0x0004>,
  324. <0x08000008 0x0004>,
  325. <0x0800000C 0x0004>;
  326. };
  327.  
  328. infrasys: infrasys@10000000 {
  329. compatible = "mediatek,mt6735-infrasys";
  330. reg = <0x10000000 0x1000>;
  331. #clock-cells = <1>;
  332. };
  333.  
  334. scpsys: scpsys@10000000 {
  335. compatible = "mediatek,mt6735-scpsys";
  336. reg = <0x10000000 0x1000>, <0x10006000 0x1000>;
  337. #clock-cells = <1>;
  338. };
  339.  
  340.  
  341. infracfg_ao@10000000 {
  342. compatible = "mediatek,infracfg_ao";
  343. reg = <0x10000000 0x1000>;
  344. };
  345.  
  346. usb2jtag: usb2jtag@10000000 {
  347. compatible = "mediatek,usb2jtag_v1";
  348. reg = <0x10000000 0x1000>, <0x11210000 0x1000>;
  349. };
  350.  
  351. pwrap@10001000 {
  352. compatible = "mediatek,PWRAP";
  353. reg = <0x10001000 0x1000>;
  354. interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>;
  355. };
  356.  
  357. perisys: perisys@10002000 {
  358. compatible = "mediatek,mt6735-perisys";
  359. reg = <0x10002000 0x1000>;
  360. #clock-cells = <1>;
  361. };
  362.  
  363. hacc@10008000 {
  364. compatible = "mediatek,hacc";
  365. reg = <0x10008000 0x1000>;
  366. interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_LOW>;
  367. };
  368.  
  369. pericfg@10002000 {
  370. compatible = "mediatek,pericfg";
  371. reg = <0x10002000 0x1000>;
  372. };
  373.  
  374.  
  375. keypad: keypad@10003000 {
  376. compatible = "mediatek,mt6735-keypad";
  377. reg = <0x10003000 0x1000>;
  378. interrupts = <GIC_SPI 164 IRQ_TYPE_EDGE_FALLING>;
  379. };
  380.  
  381. apxgpt: apxgpt@10004000 {
  382. compatible = "mediatek,mt6735-apxgpt";
  383. reg = <0x10004000 0x1000>;
  384. interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_LOW>;
  385. clock-frequency = <13000000>;
  386. };
  387.  
  388. eintc: eintc@10005000 {
  389. compatible = "mediatek,mt-eic";
  390. reg = <0x10005000 0x1000>;
  391. interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
  392.  
  393. #interrupt-cells = <2>;
  394. interrupt-controller;
  395.  
  396. mediatek,max_eint_num = <213>;
  397. mediatek,mapping_table_entry = <0>;
  398.  
  399. mediatek,debtime_setting_entry = <10>;
  400. mediatek,debtime_setting_array = <0 125>,
  401. <1 250>,
  402. <2 500>,
  403. <3 1000>,
  404. <4 16000>,
  405. <5 32000>,
  406. <6 64000>,
  407. <7 128000>,
  408. <8 256000>,
  409. <9 512000>;
  410. };
  411.  
  412. sleep@10006000 {
  413. compatible = "mediatek,sleep";
  414. reg = <0x10006000 0x1000>;
  415. interrupts = <0 165 0x8>,
  416. <0 166 0x8>,
  417. <0 167 0x8>,
  418. <0 168 0x8>;
  419. };
  420.  
  421. mdcldma:mdcldma@1000A000 {
  422. compatible = "mediatek,mdcldma";
  423. reg = <0x1000A000 0x1000>, /*AP_CLDMA_AO*/
  424. <0x1000B000 0x1000>, /*MD_CLDMA_AO*/
  425. <0x1021A000 0x1000>, /*AP_CLDMA_PDN*/
  426. <0x1021B000 0x1000>, /*MD_CLDMA_PDN*/
  427. <0x1020A000 0x1000>, /*AP_CCIF_BASE*/
  428. <0x1020B000 0x1000>; /*MD_CCIF_BASE*/
  429. interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>, /*IRQ_CLDMA*/
  430. <GIC_SPI 140 IRQ_TYPE_LEVEL_LOW>, /*IRQ_CCIF*/
  431. <GIC_SPI 221 IRQ_TYPE_EDGE_FALLING>; /*IRQ_MDWDT*/
  432. mediatek,md_id = <0>;
  433. mediatek,cldma_capability = <6>;
  434. mediatek,md_smem_size = <0x10000>; /* md share memory size */
  435. clocks = <&scpsys SCP_SYS_MD1>;
  436. clock-names = "scp-sys-md1-main";
  437. };
  438.  
  439. mcucfg@10200000 {
  440. compatible = "mediatek,mcucfg";
  441. reg = <0x10200000 0x200>;
  442. interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
  443. };
  444.  
  445. cpuxgpt: cpuxgpt@10200000 {
  446. compatible = "mediatek,mt6735-cpuxgpt";
  447. reg = <0x10200000 0x1000>;
  448. interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>,
  449. <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>,
  450. <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>,
  451. <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
  452. <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
  453. <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
  454. <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
  455. <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
  456. };
  457.  
  458. lastpc: lastpc@10200000 {
  459. compatible = "mediatek,mt6735-mcucfg";
  460. reg = <0x10200000 0x200>;
  461. interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
  462. };
  463.  
  464. emi@10203000 {
  465. compatible = "mediatek,emi";
  466. reg = <0x10203000 0x1000>;
  467. interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
  468. };
  469.  
  470.  
  471. sys_cirq: sys_cirq@10204000 {
  472. compatible = "mediatek,mt6735-sys_cirq";
  473. reg = <0x10204000 0x1000>;
  474. interrupts = <GIC_SPI 231 IRQ_TYPE_LEVEL_LOW>;
  475. mediatek,cirq_num = <159>;
  476. mediatek,spi_start_offset = <72>;
  477. };
  478.  
  479. m4u@10205000 {
  480. cell-index = <0>;
  481. compatible = "mediatek,m4u";
  482. reg = <0x10205000 0x1000>;
  483. interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_LOW>;
  484. clocks = <&infrasys INFRA_M4U>,
  485. <&mmsys MM_DISP0_SMI_COMMON>,
  486. <&mmsys MM_DISP0_SMI_LARB0>,
  487. <&vdecsys VDEC0_VDEC>,
  488. <&vdecsys VDEC1_LARB>,
  489. <&imgsys IMG_IMAGE_LARB2_SMI>,
  490. <&vencsys VENC_VENC>,
  491. <&vencsys VENC_LARB>,
  492. <&scpsys SCP_SYS_DIS>,
  493. <&scpsys SCP_SYS_VDE>,
  494. <&scpsys SCP_SYS_ISP>,
  495. <&scpsys SCP_SYS_VEN>;
  496. clock-names = "infra_m4u",
  497. "smi_common",
  498. "m4u_disp0_smi_larb0",
  499. "m4u_vdec0_vdec",
  500. "m4u_vdec1_larb",
  501. "m4u_img_image_larb2_smi",
  502. "m4u_venc_venc",
  503. "m4u_venc_larb",
  504. "mtcmos-dis",
  505. "mtcmos-vde",
  506. "mtcmos-isp",
  507. "mtcmos-ven";
  508. };
  509.  
  510. efusec@10206000 {
  511. compatible = "mediatek,efusec";
  512. reg = <0x10206000 0x1000>;
  513. };
  514.  
  515. devapc@10207000 {
  516. compatible = "mediatek,devapc";
  517. reg = <0x10207000 0x1000>;
  518. interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_LOW>;
  519. clocks = <&infrasys INFRA_DEVAPC>;
  520. clock-names = "devapc-main";
  521. };
  522.  
  523. bus_dbg@10208000 {
  524. compatible = "mediatek,bus_dbg-v1";
  525. reg = <0x10208000 0x1000>;
  526. interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_LOW>;
  527. };
  528.  
  529. apmixedsys: apmixedsys@10209000 {
  530. compatible = "mediatek,mt6735-apmixedsys";
  531. reg = <0x10209000 0x1000>;
  532. #clock-cells = <1>;
  533. };
  534.  
  535. apmixed@10209000 {
  536. compatible = "mediatek,apmixed";
  537. reg = <0x10209000 0x1000>;
  538. };
  539.  
  540. fhctl@10209f00 {
  541. compatible = "mediatek,fhctl";
  542. reg = <0x10209f00 0x100>;
  543. };
  544.  
  545. dramc_nao: dramc_nao@1020e000 {
  546. compatible = "mediatek,mt6735-dramc_nao";
  547. reg = <0x1020e000 0x1000>;
  548. };
  549.  
  550.  
  551.  
  552. cksys@10210000 {
  553. compatible = "mediatek,cksys";
  554. reg = <0x10210000 0x1000>;
  555. };
  556.  
  557. syscfg_pctl_a: syscfg_pctl_a@10211000 {
  558. compatible = "mediatek,mt6735-pctl-a-syscfg", "syscon";
  559. reg = <0 10211000 0 1000>;
  560. };
  561.  
  562. pio: pinctrl@10211000 {
  563. compatible = "mediatek,mt6735-pinctrl";
  564. reg = <0 10211000 0 1000>;
  565. mediatek,pctl-regmap = <&syscfg_pctl_a>;
  566. pins-are-numbered;
  567. gpio-controller;
  568. #gpio-cells = <2>;
  569. };
  570.  
  571. gpio_usage_mapping:gpio {
  572. compatible = "mediatek,gpio_usage_mapping";
  573. };
  574.  
  575. gpio: gpio@10211000 {
  576. compatible = "mediatek,gpio";
  577. reg = <0x10211000 0x1000>;
  578. };
  579.  
  580. toprgu: toprgu@10212000 {
  581. compatible = "mediatek,mt6735-rgu";
  582. reg = <0x10212000 0x1000>;
  583. interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_FALLING>;
  584. };
  585.  
  586. ddrphy: ddrphy@10213000 {
  587. compatible = "mediatek,mt6735-ddrphy";
  588. reg = <0x10213000 0x1000>;
  589. };
  590.  
  591. dramc: dramc@10214000 {
  592. compatible = "mediatek,mt6735-dramc";
  593. reg = <0x10214000 0x1000>;
  594. clocks = <&infrasys INFRA_GCE>;
  595. clock-names = "infra-cqdma";
  596. };
  597.  
  598. gcpu@10216000 {
  599. compatible = "mediatek,gcpu";
  600. reg = <0x10216000 0x1000>;
  601. interrupts = <GIC_SPI 150 IRQ_TYPE_LEVEL_LOW>;
  602. };
  603.  
  604. gce@10217000 {
  605. compatible = "mediatek,gce";
  606. reg = <0x10217000 0x1000>;
  607. interrupts = <GIC_SPI 151 IRQ_TYPE_LEVEL_LOW>,
  608. <GIC_SPI 148 IRQ_TYPE_LEVEL_LOW>;
  609. disp_mutex_reg = <0x14014000 0x1000>;
  610. g3d_config_base = <0x13000000 0 0xffff0000>;
  611. mmsys_config_base = <0x14000000 1 0xffff0000>;
  612. disp_dither_base = <0x14010000 2 0xffff0000>;
  613. mm_na_base = <0x14020000 3 0xffff0000>;
  614. imgsys_base = <0x15000000 4 0xffff0000>;
  615. vdec_gcon_base = <0x16000000 5 0xffff0000>;
  616. venc_gcon_base = <0x17000000 6 0xffff0000>;
  617. conn_peri_base = <0x18000000 7 0xffff0000>;
  618. topckgen_base = <0x10000000 8 0xffff0000>;
  619. kp_base = <0x10010000 9 0xffff0000>;
  620. scp_sram_base = <0x10020000 10 0xffff0000>;
  621. infra_na3_base = <0x10030000 11 0xffff0000>;
  622. infra_na4_base = <0x10040000 12 0xffff0000>;
  623. scp_base = <0x10050000 13 0xffff0000>;
  624. mcucfg_base = <0x10200000 14 0xffff0000>;
  625. gcpu_base = <0x10210000 15 0xffff0000>;
  626. usb0_base = <0x11200000 16 0xffff0000>;
  627. usb_sif_base = <0x11210000 17 0xffff0000>;
  628. audio_base = <0x11220000 18 0xffff0000>;
  629. msdc0_base = <0x11230000 19 0xffff0000>;
  630. msdc1_base = <0x11240000 20 0xffff0000>;
  631. msdc2_base = <0x11250000 21 0xffff0000>;
  632. msdc3_base = <0x11260000 22 0xffff0000>;
  633. pwm_sw_base = <0x1100E000 99 0xfffff000>;
  634. mdp_rdma0_sof = <0>;
  635. mdp_rsz0_sof = <1>;
  636. mdp_rsz1_sof = <2>;
  637. dsi0_te_event = <3>;
  638. mdp_wdma_sof = <4>;
  639. mdp_wrot_sof = <5>;
  640. disp_ovl0_sof = <6>;
  641. disp_rdma0_sof = <7>;
  642. disp_rdma1_sof = <8>;
  643. disp_wdma0_sof = <9>;
  644. disp_ccorr_sof = <10>;
  645. disp_color_sof = <11>;
  646. disp_aal_sof = <12>;
  647. disp_gamma_sof = <13>;
  648. disp_dither_sof = <14>;
  649. disp_pwm0_sof = <16>;
  650. mdp_rdma0_frame_done = <17>;
  651. mdp_rsz0_frame_done = <18>;
  652. mdp_rsz1_frame_done = <19>;
  653. mdp_tdshp_frame_done = <20>;
  654. mdp_wdma_frame_done = <21>;
  655. mdp_wrot_write_frame_done = <22>;
  656. mdp_wrot_read_frame_done = <23>;
  657. disp_ovl0_frame_done = <24>;
  658. disp_rdma0_frame_done = <25>;
  659. disp_rdma1_frame_done = <26>;
  660. disp_wdma0_frame_done = <27>;
  661. disp_ccorr_frame_done = <28>;
  662. disp_color_frame_done = <29>;
  663. disp_aal_frame_done = <30>;
  664. disp_gamma_frame_done = <31>;
  665. disp_dither_frame_done = <32>;
  666. disp_dpi0_frame_done = <34>;
  667. stream_done_0 = <35>;
  668. stream_done_1 = <36>;
  669. stream_done_2 = <37>;
  670. stream_done_3 = <38>;
  671. stream_done_4 = <39>;
  672. stream_done_5 = <40>;
  673. stream_done_6 = <41>;
  674. stream_done_7 = <42>;
  675. stream_done_8 = <43>;
  676. stream_done_9 = <44>;
  677. buf_underrun_event_0 = <45>;
  678. buf_underrun_event_1 = <46>;
  679. mdp_tdshp_sof = <47>;
  680. isp_frame_done_p2_2 = <65>;
  681. isp_frame_done_p2_1 = <66>;
  682. isp_frame_done_p2_0 = <67>;
  683. isp_frame_done_p1_1 = <68>;
  684. isp_frame_done_p1_0 = <69>;
  685. camsv_2_pass1_done = <70>;
  686. camsv_1_pass1_done = <71>;
  687. seninf_cam1_2_3_fifo_full = <72>;
  688. seninf_cam0_fifo_full = <73>;
  689. venc_done = <129>;
  690. jpgenc_done = <130>;
  691. jpgdec_done = <131>;
  692. venc_mb_done = <132>;
  693. venc_128byte_cnt_done = <133>;
  694. apxgpt2_count = <0x10004028>;
  695. clocks = <&infrasys INFRA_GCE>;
  696. clock-names = "GCE";
  697. };
  698.  
  699. cqdma@10217c00 {
  700. compatible = "mediatek,cqdma";
  701. reg = <0x10217c00 0xc00>;
  702. interrupts = <GIC_SPI 151 IRQ_TYPE_LEVEL_LOW>;
  703. nr_channel = <1>;
  704. };
  705.  
  706. mcu_biu: mcu_biu@10300000 {
  707. compatible = "mediatek,mt6735-mcu_biu";
  708. reg = <0x10300000 0x8000>;
  709. };
  710.  
  711. cpu_dbgapb: cpu_dbgapb@10810000 {
  712. compatible = "mediatek,hw_dbg";
  713. num = <4>;
  714. reg = <0x10810000 0x1000
  715. 0x10910000 0x1000
  716. 0x10a10000 0x1000
  717. 0x10b10000 0x1000>;
  718. };
  719.  
  720. auxadc: adc_hw@11001000 {
  721. compatible = "mediatek,mt6735-auxadc";
  722. reg = <0x11001000 0x1000>;
  723. interrupts = <GIC_SPI 76 IRQ_TYPE_EDGE_FALLING>;
  724. clocks = <&perisys PERI_AUXADC>;
  725. clock-names = "auxadc-main";
  726. };
  727.  
  728. dbgapb_base@1011a000{
  729. compatible = "mediatek,dbgapb_base";
  730. reg = <0x1011a000 0x100>;/* MD debug register */
  731. };
  732.  
  733. ap_dma:dma@11000000 {
  734. compatible = "mediatek,ap_dma";
  735. reg = <0x11000000 0x1000>;
  736. interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_LOW>;
  737. };
  738.  
  739. btif_tx: btif_tx@11000880 {
  740. compatible = "mediatek,btif_tx";
  741. reg = <0x11000880 0x80>;
  742. interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>;
  743. };
  744.  
  745. btif_rx: btif_rx@11000900 {
  746. compatible = "mediatek,btif_rx";
  747. reg = <0x11000900 0x80>;
  748. interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_LOW>;
  749. };
  750.  
  751. apirtx:irtx@11011000 {
  752. compatible = "mediatek,irtx";
  753. reg = <0x11011000 0x1000>;
  754. interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>;
  755. pwm_ch = <0>;
  756.  
  757. clock-frequency = <26000000>;
  758. clock-div = <1>;
  759. clocks = <&perisys PERI_IRTX>;
  760. clock-names = "clk-irtx-main";
  761.  
  762. pinctrl-names = "irtx_gpio_default",
  763. "irtx_gpio_led_set";
  764.  
  765. pinctrl-0 = <&irtx_gpio_default>;
  766. pinctrl-1 = <&irtx_gpio_led_set>;
  767. status = "okay";
  768. };
  769.  
  770. irtx-pwm {
  771. compatible = "mediatek,irtx-pwm";
  772. pwm_ch = <2>;
  773. pwm_data_invert = <0>;
  774. };
  775.  
  776. irlearning:irlearning-spi {
  777. compatible = "mediatek,irlearning-spi";
  778. spi_clock = <109000000>;
  779. spi_data_invert = <0>;
  780. spi_cs_invert = <1>;
  781. };
  782.  
  783. apuart0: apuart0@11002000 {
  784. cell-index = <0>;
  785. compatible = "mediatek,mt6735-uart";
  786. reg = <0x11002000 0x1000>, /* UART base */
  787. <0x11000380 0x1000>, /* DMA Tx base */
  788. <0x11000400 0x80>; /* DMA Rx base */
  789. interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>, /* UART IRQ */
  790. <GIC_SPI 103 IRQ_TYPE_LEVEL_LOW>, /* DMA Tx IRQ */
  791. <GIC_SPI 104 IRQ_TYPE_LEVEL_LOW>; /* DMA Rx IRQ */
  792.  
  793. clock-frequency = <26000000>;
  794. clock-div = <1>;
  795. clocks = <&perisys PERI_UART0>, <&perisys PERI_APDMA>;
  796. clock-names = "uart0-main", "uart-apdma";
  797.  
  798. pinctrl-names = "uart0_gpio_default",
  799. "uart0_rx_set",
  800. "uart0_rx_clear",
  801. "uart0_tx_set",
  802. "uart0_tx_clear";
  803.  
  804. pinctrl-0 = <&uart0_gpio_def_cfg>;
  805. pinctrl-1 = <&uart0_rx_set_cfg>;
  806. pinctrl-2 = <&uart0_rx_clr_cfg>;
  807. pinctrl-3 = <&uart0_tx_set_cfg>;
  808. pinctrl-4 = <&uart0_tx_clr_cfg>;
  809. status = "okay";
  810. };
  811.  
  812. apuart1: apuart1@11003000 {
  813. cell-index = <1>;
  814. compatible = "mediatek,mt6735-uart";
  815. reg = <0x11003000 0x1000>, /* UART base */
  816. <0x11000480 0x80>, /* DMA Tx base */
  817. <0x11000500 0x80>; /* DMA Rx base */
  818. interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_LOW>, /* UART IRQ */
  819. <GIC_SPI 105 IRQ_TYPE_LEVEL_LOW>, /* DMA Tx IRQ */
  820. <GIC_SPI 106 IRQ_TYPE_LEVEL_LOW>; /* DMA Rx IRQ */
  821.  
  822. clock-frequency = <26000000>;
  823. clock-div = <1>;
  824. clocks = <&perisys PERI_UART1>;
  825. clock-names = "uart1-main";
  826.  
  827. pinctrl-names = "uart1_gpio_default",
  828. "uart1_rx_set",
  829. "uart1_rx_clear",
  830. "uart1_tx_set",
  831. "uart1_tx_clear";
  832.  
  833. pinctrl-0 = <&uart1_gpio_def_cfg>;
  834. pinctrl-1 = <&uart1_rx_set_cfg>;
  835. pinctrl-2 = <&uart1_rx_clr_cfg>;
  836. pinctrl-3 = <&uart1_tx_set_cfg>;
  837. pinctrl-4 = <&uart1_tx_clr_cfg>;
  838. status = "okay";
  839. };
  840.  
  841. apuart2: apuart2@11004000 {
  842. cell-index = <2>;
  843. compatible = "mediatek,mt6735-uart";
  844. reg = <0x11004000 0x1000>, /* UART base */
  845. <0x11000580 0x80>, /* DMA Tx base */
  846. <0x11000600 0x80>; /* DMA Rx base */
  847. interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_LOW>, /* UART IRQ */
  848. <GIC_SPI 107 IRQ_TYPE_LEVEL_LOW>, /* DMA Tx IRQ */
  849. <GIC_SPI 108 IRQ_TYPE_LEVEL_LOW>; /* DMA Rx IRQ */
  850.  
  851. clock-frequency = <26000000>;
  852. clock-div = <1>;
  853. clocks = <&perisys PERI_UART2>;
  854. clock-names = "uart2-main";
  855.  
  856. pinctrl-names = "uart2_gpio_default",
  857. "uart2_rx_set",
  858. "uart2_rx_clear",
  859. "uart2_tx_set",
  860. "uart2_tx_clear";
  861.  
  862. pinctrl-0 = <&uart2_gpio_def_cfg>;
  863. pinctrl-1 = <&uart2_rx_set_cfg>;
  864. pinctrl-2 = <&uart2_rx_clr_cfg>;
  865. pinctrl-3 = <&uart2_tx_set_cfg>;
  866. pinctrl-4 = <&uart2_tx_clr_cfg>;
  867. status = "okay";
  868. };
  869.  
  870. apuart3: apuart3@11005000 {
  871. cell-index = <3>;
  872. compatible = "mediatek,mt6735-uart";
  873. reg = <0x11005000 0x1000>, /* UART base */
  874. <0x11000680 0x80>, /* DMA Tx base */
  875. <0x11000700 0x80>; /* DMA Rx base */
  876. interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_LOW>, /* UART IRQ */
  877. <GIC_SPI 109 IRQ_TYPE_LEVEL_LOW>, /* DMA Tx IRQ */
  878. <GIC_SPI 110 IRQ_TYPE_LEVEL_LOW>; /* DMA Rx IRQ */
  879.  
  880. clock-frequency = <26000000>;
  881. clock-div = <1>;
  882. clocks = <&perisys PERI_UART3>;
  883. clock-names = "uart3-main";
  884.  
  885. pinctrl-names = "uart3_gpio_default",
  886. "uart3_rx_set",
  887. "uart3_rx_clear",
  888. "uart3_tx_set",
  889. "uart3_tx_clear";
  890.  
  891. pinctrl-0 = <&uart3_gpio_def_cfg>;
  892. pinctrl-1 = <&uart3_rx_set_cfg>;
  893. pinctrl-2 = <&uart3_rx_clr_cfg>;
  894. pinctrl-3 = <&uart3_tx_set_cfg>;
  895. pinctrl-4 = <&uart3_tx_clr_cfg>;
  896. status = "okay";
  897. };
  898.  
  899. pwm:pwm@11006000 {
  900. compatible = "mediatek,pwm";
  901. reg = <0x11006000 0x1000>;
  902. interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_LOW>;
  903. clocks = <&perisys PERI_PWM>,
  904. <&perisys PERI_PWM1>,
  905. <&perisys PERI_PWM2>,
  906. <&perisys PERI_PWM3>,
  907. <&perisys PERI_PWM4>,
  908. <&perisys PERI_PWM5>;
  909. clock-names = "PWM-main",
  910. "PWM1-main",
  911. "PWM2-main",
  912. "PWM3-main",
  913. "PWM4-main",
  914. "PWM5-main";
  915. };
  916.  
  917. devapc_ao@10007000 {
  918. compatible = "mediatek,devapc_ao";
  919. reg = <0x10007000 0x1000>;
  920. };
  921.  
  922. i2c0:i2c@11007000 {
  923. compatible = "mediatek,mt6735-i2c";
  924. cell-index = <0>;
  925. reg = <0x11007000 0x1000>;
  926. interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_LOW>,
  927. <GIC_SPI 99 IRQ_TYPE_LEVEL_LOW>;
  928. def_speed = <100>;
  929. clocks = <&perisys PERI_I2C0>, <&perisys PERI_APDMA>;
  930. clock-names = "i2c0-main", "i2c0-dma";
  931. clock-frequency = <13600>;
  932. clock-div = <1>;
  933. };
  934.  
  935. i2c1:i2c@11008000 {
  936. compatible = "mediatek,mt6735-i2c";
  937. cell-index = <1>;
  938. reg = <0x11008000 0x1000>;
  939. interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_LOW>,
  940. <GIC_SPI 100 IRQ_TYPE_LEVEL_LOW>;
  941. def_speed = <100>;
  942. clocks = <&perisys PERI_I2C1>, <&perisys PERI_APDMA>;
  943. clock-names = "i2c1-main", "i2c1-dma";
  944. clock-frequency = <13600>;
  945. clock-div = <1>;
  946. };
  947. spi0:spi@1100a000 {
  948. compatible = "mediatek,mt6735-spi";
  949. cell-index = <0>;
  950. spi-padmacro = <0>;
  951. reg = <0x1100a000 0x1000>;
  952. interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_LOW>;
  953. clocks = <&perisys PERI_SPI0>;
  954. clock-names = "spi-main";
  955. clock-frequency = <109000000>;
  956. clock-div = <1>;
  957. };
  958.  
  959. i2c2:i2c@11009000 {
  960. compatible = "mediatek,mt6735-i2c";
  961. cell-index = <2>;
  962. reg = <0x11009000 0x1000>;
  963. interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_LOW>,
  964. <GIC_SPI 101 IRQ_TYPE_LEVEL_LOW>;
  965. def_speed = <100>;
  966. clocks = <&perisys PERI_I2C2>, <&perisys PERI_APDMA>;
  967. clock-names = "i2c2-main", "i2c2-dma";
  968. clock-frequency = <13600>;
  969. clock-div = <1>;
  970. };
  971.  
  972. therm_ctrl@1100b000 {
  973. compatible = "mediatek,mt6735-therm_ctrl";
  974. reg = <0x1100b000 0x1000>;
  975. interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_LOW>;
  976. clocks = <&perisys PERI_THERM>;
  977. clock-names = "therm-main";
  978. };
  979.  
  980.  
  981. ptp_fsm@1100b000 {
  982. compatible = "mediatek,ptp_fsm_v1";
  983. reg = <0x1100b000 0x1000>;
  984. interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_LOW>;
  985. };
  986.  
  987. btif: btif@1100c000 {
  988. compatible = "mediatek,btif";
  989. reg = <0x1100c000 0x1000>;
  990. interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_LOW>;
  991. clocks = <&perisys PERI_BTIF>,<&perisys PERI_APDMA>;
  992. clock-names = "btifc","apdmac";
  993. };/* End of btif */
  994.  
  995. apuart4: apuart4@1100D000 {
  996. cell-index = <4>;
  997. compatible = "mediatek,mt6735-uart";
  998. reg = <0x1100d000 0x1000>, /* UART base */
  999. <0x11000780 0x80>, /* DMA Tx base */
  1000. <0x11000800 0x80>; /* DMA Rx base */
  1001. interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_LOW>, /* UART IRQ */
  1002. <GIC_SPI 111 IRQ_TYPE_LEVEL_LOW>, /* DMA Tx IRQ */
  1003. <GIC_SPI 112 IRQ_TYPE_LEVEL_LOW>; /* DMA Rx IRQ */
  1004.  
  1005. clock-frequency = <26000000>;
  1006. clock-div = <1>;
  1007. clocks = <&perisys PERI_UART4>;
  1008. clock-names = "uart4-main";
  1009. };
  1010.  
  1011. i2c3:i2c@1100f000 {
  1012. compatible = "mediatek,mt6735-i2c";
  1013. cell-index = <3>;
  1014. reg = <0x1100f000 0x1000>;
  1015. interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_LOW>,
  1016. <GIC_SPI 102 IRQ_TYPE_LEVEL_LOW>;
  1017. def_speed = <100>;
  1018. clocks = <&perisys PERI_I2C3>, <&perisys PERI_APDMA>;
  1019. clock-names = "i2c3-main", "i2c3-dma";
  1020. clock-frequency = <13600>;
  1021. clock-div = <1>;
  1022. };
  1023.  
  1024. i2c4:i2c@11010000 {
  1025. compatible = "mediatek,mt6735-i2c";
  1026. cell-index = <4>;
  1027. reg = <11010000 0x1000>;
  1028. def_speed = <100>;
  1029. clocks = <&perisys PERI_I2C3>, <&perisys PERI_APDMA>;
  1030. clock-names = "i2c4-main", "i2c4-dma";
  1031. clock-frequency = <13600>;
  1032. clock-div = <1>;
  1033. };
  1034.  
  1035. usb0:usb20@11200000 {
  1036. compatible = "mediatek,mt6735-usb20";
  1037. cell-index = <0>;
  1038. reg = <0x11200000 0x10000>,
  1039. <0x11210000 0x10000>;
  1040. interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_LOW>;
  1041. mode = <2>;
  1042. multipoint = <1>;
  1043. num_eps = <16>;
  1044. clocks = <&perisys PERI_USB0>;
  1045. clock-names = "usb0";
  1046. vusb33-supply = <&mt_pmic_vusb33_ldo_reg>;
  1047. iddig_gpio = <0 1>;
  1048. drvvbus_gpio = <83 2>;
  1049. };
  1050.  
  1051. audiosys: audiosys@11220000 {
  1052. compatible = "mediatek,mt6735-audiosys";
  1053. reg = <0x11220000 0x10000>;
  1054. #clock-cells = <1>;
  1055. };
  1056.  
  1057. audio@11220000 {
  1058. compatible = "mediatek,audio";
  1059. reg = <0x11220000 0x10000>;
  1060. interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_LOW>;
  1061. };
  1062.  
  1063.  
  1064. audgpio:mt_soc_dl1_pcm@11220000 {
  1065. compatible = "mediatek,mt-soc-dl1-pcm";
  1066. reg = <0x11220000 0x1000>;
  1067. interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_LOW>;
  1068. clocks = <&audiosys AUDIO_AFE>,
  1069. <&audiosys AUDIO_I2S>,
  1070. <&audiosys AUDIO_DAC>,
  1071. <&audiosys AUDIO_DAC_PREDIS>,
  1072. <&audiosys AUDIO_ADC>,
  1073. <&audiosys AUDIO_22M>,
  1074. <&audiosys AUDIO_24M>,
  1075. <&audiosys AUDIO_APLL_TUNER>,
  1076. <&audiosys AUDIO_APLL2_TUNER>,
  1077. <&audiosys AUDIO_TML>,
  1078. <&infrasys INFRA_AUDIO>,
  1079. <&topckgen TOP_MUX_AUD1>,
  1080. <&topckgen TOP_MUX_AUD2>,
  1081. <&topckgen TOP_AD_APLL1_CK>,
  1082. <&topckgen TOP_WHPLL_AUDIO_CK>,
  1083. <&topckgen TOP_MUX_AUDIO>,
  1084. <&topckgen TOP_MUX_AUDINTBUS>,
  1085. <&topckgen TOP_SYSPLL1_D4>,
  1086. <&apmixedsys APMIXED_APLL1>,
  1087. <&apmixedsys APMIXED_APLL2>,
  1088. <&clk26m>;
  1089. clock-names = "aud_afe_clk",
  1090. "aud_i2s_clk",
  1091. "aud_dac_clk",
  1092. "aud_dac_predis_clk",
  1093. "aud_adc_clk",
  1094. "aud_apll22m_clk",
  1095. "aud_apll24m_clk",
  1096. "aud_apll1_tuner_clk",
  1097. "aud_apll2_tuner_clk",
  1098. "aud_tml_clk",
  1099. "aud_infra_clk",
  1100. "aud_mux1_clk",
  1101. "aud_mux2_clk",
  1102. "top_ad_apll1_clk",
  1103. "top_whpll_audio_clk",
  1104. "top_mux_audio",
  1105. "top_mux_audio_int",
  1106. "top_sys_pll1_d4",
  1107. "apmixed_apll1_clk",
  1108. "apmixed_apll2_clk",
  1109. "top_clk26m_clk";
  1110. audclk-gpio = <143 0>;
  1111. audmiso-gpio = <144 0>;
  1112. audmosi-gpio = <145 0>;
  1113. vowclk-gpio = <148 0>;
  1114. extspkamp-gpio = <117 0>;
  1115. i2s1clk-gpio = <80 0>;
  1116. i2s1dat-gpio = <78 0>;
  1117. i2s1mclk-gpio = <9 0>;
  1118. i2s1ws-gpio = <79 0>;
  1119. };
  1120.  
  1121.  
  1122. mfgsys: mfgsys@13000000 {
  1123. compatible = "mediatek,mt6735-mfgsys";
  1124. reg = <0x13000000 0x1000>;
  1125. #clock-cells = <1>;
  1126. };
  1127.  
  1128. g3d_config@13000000 {
  1129. compatible = "mediatek,g3d_config";
  1130. reg = <0x13000000 0x1000>;
  1131. };
  1132.  
  1133. mali@13040000 {
  1134. compatible = "arm,malit720", "arm,mali-t72x", "arm,malit7xx", "arm,mali-midgard";
  1135. reg = <0x13040000 0x4000>;
  1136. interrupts = <GIC_SPI 212 IRQ_TYPE_LEVEL_LOW>,
  1137. <GIC_SPI 211 IRQ_TYPE_LEVEL_LOW>,
  1138. <GIC_SPI 210 IRQ_TYPE_LEVEL_LOW>;
  1139. interrupt-names = "JOB", "MMU", "GPU";
  1140. clock-frequency = <450000000>;
  1141. clocks = <&mfgsys MFG_BG3D>,
  1142. <&mmsys MM_DISP0_SMI_COMMON>,
  1143. <&scpsys SCP_SYS_MFG>,
  1144. <&scpsys SCP_SYS_DIS>;
  1145. clock-names = "mfg-main", "mfg-smi-common", "mtcmos-mfg", "mtcmos-display";
  1146. };
  1147.  
  1148. mmsys: mmsys@14000000 {
  1149. compatible = "mediatek,mt6735-mmsys";
  1150. reg = <0x14000000 0x1000>;
  1151. #clock-cells = <1>;
  1152. };
  1153.  
  1154. mmsys_config@14000000 {
  1155. compatible = "mediatek,mmsys_config";
  1156. reg = <0x14000000 0x1000>;
  1157. interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_LOW>;
  1158. clocks = <&mmsys MM_DISP0_CAM_MDP>;
  1159. clock-names = "CAM_MDP";
  1160. };
  1161.  
  1162. mdp_rdma@14001000 {
  1163. compatible = "mediatek,mdp_rdma";
  1164. reg = <0x14001000 0x1000>;
  1165. interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_LOW>;
  1166. clocks = <&mmsys MM_DISP0_MDP_RDMA>;
  1167. clock-names = "MDP_RDMA";
  1168. };
  1169.  
  1170. mdp_rsz0@14002000 {
  1171. compatible = "mediatek,mdp_rsz0";
  1172. reg = <0x14002000 0x1000>;
  1173. interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_LOW>;
  1174. clocks = <&mmsys MM_DISP0_MDP_RSZ0>;
  1175. clock-names = "MDP_RSZ0";
  1176. };
  1177.  
  1178. mdp_rsz1@14003000 {
  1179. compatible = "mediatek,mdp_rsz1";
  1180. reg = <0x14003000 0x1000>;
  1181. interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_LOW>;
  1182. clocks = <&mmsys MM_DISP0_MDP_RSZ1>;
  1183. clock-names = "MDP_RSZ1";
  1184. };
  1185.  
  1186. mdp_wdma@14004000 {
  1187. compatible = "mediatek,mdp_wdma";
  1188. reg = <0x14004000 0x1000>;
  1189. interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_LOW>;
  1190. clocks = <&mmsys MM_DISP0_MDP_WDMA>;
  1191. clock-names = "MDP_WDMA";
  1192. };
  1193.  
  1194. mdp_wrot@14005000 {
  1195. compatible = "mediatek,mdp_wrot";
  1196. reg = <0x14005000 0x1000>;
  1197. interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_LOW>;
  1198. clocks = <&mmsys MM_DISP0_MDP_WROT>;
  1199. clock-names = "MDP_WROT";
  1200. };
  1201.  
  1202. mdp_tdshp@14006000 {
  1203. compatible = "mediatek,mdp_tdshp";
  1204. reg = <0x14006000 0x1000>;
  1205. interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_LOW>;
  1206. clocks = <&mmsys MM_DISP0_MDP_TDSHP>;
  1207. clock-names = "MDP_TDSHP";
  1208. };
  1209.  
  1210. dpi@14012000 {
  1211. compatible = "mediatek,mt6735-dpi";
  1212. reg = <0x14012000 0x1000>;
  1213. interrupts = <GIC_SPI 204 IRQ_TYPE_LEVEL_LOW>;
  1214. };
  1215.  
  1216. dispsys: dispsys@14007000 {
  1217. compatible = "mediatek,mt6735-dispsys";
  1218.  
  1219. reg = <0x14007000 0x1000>, /*DISP_OVL0 */
  1220. <0 0>, /*DISP_OVL1 */
  1221. <0x14008000 0x1000>, /*DISP_RDMA0 */
  1222. <0x14009000 0x1000>, /*DISP_RDMA1 */
  1223. <0x1400A000 0x1000>, /*DISP_WDMA0 */
  1224. <0x1400B000 0x1000>, /*DISP_COLOR */
  1225. <0x1400C000 0x1000>, /*DISP_CCORR */
  1226. <0x1400D000 0x1000>, /*DISP_AAL */
  1227. <0x1400E000 0x1000>, /*DISP_GAMMA */
  1228. <0x1400F000 0x1000>, /*DISP_DITHER */
  1229. <0 0>, /*DISP_UFOE */
  1230. <0x1100E000 0x1000>, /*DISP_PWM */
  1231. <0 0>, /*DISP_WDMA1 */
  1232. <0x14014000 0x1000>, /*DISP_MUTEX */
  1233. <0x14011000 0x1000>, /*DISP_DSI0 */
  1234. <0x14012000 0x1000>, /*DISP_DPI0 */
  1235. <0x14000000 0x1000>, /*DISP_CONFIG */
  1236. <0x14015000 0x1000>, /*DISP_SMI_LARB0 */
  1237. <0x14016000 0x1000>, /*DISP_SMI_COMMOM*/
  1238. <0x14017000 0x1000>, /*MIPITX0,real chip would use this:<0x14017000 0x1000>;*/
  1239. <0x10206000 0x1000>, /*DISP_CONFIG2*/
  1240. <0x10210000 0x1000>, /*DISP_CONFIG3*/
  1241. <0x10211A70 0x000C>, /*DISP_DPI_IO_DRIVING1 */
  1242. <0x10211974 0x000C>, /*DISP_DPI_IO_DRIVING2 */
  1243. <0x10211B70 0x000C>, /*DISP_DPI_IO_DRIVING3 */
  1244. <0x10206044 0x000C>, /*DISP_DPI_EFUSE */
  1245. <0x10206514 0x000C>, /*DISP_DPI_EFUSE_PERMISSION */
  1246. <0x10206558 0x000C>, /*DISP_DPI_EFUSE_KEY */
  1247. <0x102100A0 0x1000>, /*DISP_TVDPLL_CFG6 */
  1248. <0x10209270 0x1000>, /*DISP_TVDPLL_CON0 */
  1249. <0x10209274 0x1000>, /*DISP_TVDPLL_CON1 */
  1250. <0 0>, /*DISP_OD */
  1251. <0x10209000 0x1000>; /*DISP_VENCPLL */
  1252.  
  1253. interrupts = <GIC_SPI 193 IRQ_TYPE_LEVEL_LOW>, /*DISP_OVL0 */
  1254. <GIC_SPI 0 IRQ_TYPE_LEVEL_LOW>, /*DISP_OVL1 */
  1255. <GIC_SPI 194 IRQ_TYPE_LEVEL_LOW>, /*DISP_RDMA0 */
  1256. <GIC_SPI 195 IRQ_TYPE_LEVEL_LOW>, /*DISP_RDMA1 */
  1257. <GIC_SPI 196 IRQ_TYPE_LEVEL_LOW>, /*DISP_WDMA0 */
  1258. <GIC_SPI 197 IRQ_TYPE_LEVEL_LOW>, /*DISP_COLOR */
  1259. <GIC_SPI 198 IRQ_TYPE_LEVEL_LOW>, /*DISP_CCORR */
  1260. <GIC_SPI 199 IRQ_TYPE_LEVEL_LOW>, /*DISP_AAL */
  1261. <GIC_SPI 200 IRQ_TYPE_LEVEL_LOW>, /*DISP_GAMMA */
  1262. <GIC_SPI 201 IRQ_TYPE_LEVEL_LOW>, /*DISP_DITHER */
  1263. <GIC_SPI 0 IRQ_TYPE_LEVEL_LOW>, /*DISP_UFOE */
  1264. <GIC_SPI 117 IRQ_TYPE_LEVEL_LOW>, /*DISP_PWM */
  1265. <GIC_SPI 0 IRQ_TYPE_LEVEL_LOW>, /*DISP_WDMA1 */
  1266. <GIC_SPI 186 IRQ_TYPE_LEVEL_LOW>, /*DISP_MUTEX */
  1267. <GIC_SPI 203 IRQ_TYPE_LEVEL_LOW>, /*DISP_DSI0 */
  1268. <GIC_SPI 204 IRQ_TYPE_LEVEL_LOW>, /*DISP_DPI0 */
  1269. <GIC_SPI 205 IRQ_TYPE_LEVEL_LOW>, /*DISP_CONFIG, 0 means no IRQ*/
  1270. <GIC_SPI 176 IRQ_TYPE_LEVEL_LOW>, /*DISP_SMI_LARB0 */
  1271. <GIC_SPI 0 IRQ_TYPE_LEVEL_LOW>, /*DISP_SMI_COMMOM*/
  1272. <GIC_SPI 0 IRQ_TYPE_LEVEL_LOW>, /*MIPITX0 */
  1273. <GIC_SPI 0 IRQ_TYPE_LEVEL_LOW>, /*DISP_CONFIG2*/
  1274. <GIC_SPI 0 IRQ_TYPE_LEVEL_LOW>, /*DISP_CONFIG3*/
  1275. <GIC_SPI 0 IRQ_TYPE_LEVEL_LOW>, /*DISP_DPI_IO_DRIVING */
  1276. <GIC_SPI 0 IRQ_TYPE_LEVEL_LOW>, /*DISP_TVDPLL_CFG6 */
  1277. <GIC_SPI 0 IRQ_TYPE_LEVEL_LOW>, /*DISP_TVDPLL_CON0 */
  1278. <GIC_SPI 0 IRQ_TYPE_LEVEL_LOW>, /*DISP_TVDPLL_CON1 */
  1279. <GIC_SPI 0 IRQ_TYPE_LEVEL_LOW>, /*DISP_OD */
  1280. <GIC_SPI 0 IRQ_TYPE_LEVEL_LOW>; /*DISP_VENCPLL */
  1281.  
  1282. clocks = <&mmsys MM_DISP0_SMI_COMMON>,
  1283. <&mmsys MM_DISP0_SMI_LARB0>,
  1284. <&mmsys MM_DISP0_DISP_OVL0>,
  1285. <&mmsys MM_DISP0_DISP_RDMA0>,
  1286. <&mmsys MM_DISP0_DISP_RDMA1>,
  1287. <&mmsys MM_DISP0_DISP_WDMA0>,
  1288. <&mmsys MM_DISP0_DISP_COLOR>,
  1289. <&mmsys MM_DISP0_DISP_CCORR>,
  1290. <&mmsys MM_DISP0_DISP_AAL>,
  1291. <&mmsys MM_DISP0_DISP_GAMMA>,
  1292. <&mmsys MM_DISP0_DISP_DITHER>,
  1293. <&mmsys MM_DISP1_DSI_ENGINE>,
  1294. <&mmsys MM_DISP1_DSI_DIGITAL>,
  1295. <&mmsys MM_DISP1_DPI_ENGINE>,
  1296. <&mmsys MM_DISP1_DPI_PIXEL>,
  1297. <&perisys PERI_DISP_PWM>,
  1298. <&topckgen TOP_MUX_DPI0>,
  1299. <&apmixedsys APMIXED_TVDPLL>,
  1300. <&topckgen TOP_TVDPLL_CK>,
  1301. <&topckgen TOP_TVDPLL_D2>,
  1302. <&topckgen TOP_TVDPLL_D4>,
  1303. <&topckgen TOP_DPI_CK>,
  1304. <&topckgen TOP_MUX_DISPPWM>,
  1305. <&topckgen TOP_UNIVPLL2_D4>,
  1306. <&topckgen TOP_SYSPLL4_D2_D8>,
  1307. <&topckgen TOP_AD_SYS_26M_CK>,
  1308. <&scpsys SCP_SYS_DIS>;
  1309.  
  1310. clock-names = "DISP0_SMI_COMMON",
  1311. "DISP0_SMI_LARB0",
  1312. "DISP0_DISP_OVL0",
  1313. "DISP0_DISP_RDMA0",
  1314. "DISP0_DISP_RDMA1",
  1315. "DISP0_DISP_WDMA0",
  1316. "DISP0_DISP_COLOR",
  1317. "DISP0_DISP_CCORR",
  1318. "DISP0_DISP_AAL",
  1319. "DISP0_DISP_GAMMA",
  1320. "DISP0_DISP_DITHER",
  1321. "DISP1_DSI_ENGINE",
  1322. "DISP1_DSI_DIGITAL",
  1323. "DISP1_DPI_ENGINE",
  1324. "DISP1_DPI_PIXEL",
  1325. "DISP_PWM",
  1326. "MUX_DPI0",
  1327. "TVDPLL",
  1328. "TVDPLL_CK",
  1329. "TVDPLL_D2",
  1330. "TVDPLL_D4",
  1331. "DPI_CK",
  1332. "MUX_DISPPWM",
  1333. "UNIVPLL2_D4",
  1334. "SYSPLL4_D2_D8",
  1335. "AD_SYS_26M_CK",
  1336. "DISP_MTCMOS_CLK";
  1337. };
  1338.  
  1339. mhl:mhl@0 {
  1340. compatible = "mediatek,extd_dev";
  1341. };
  1342.  
  1343. lcm_mode: lcm_mode {
  1344. compatible = "mediatek,lcm_mode";
  1345. };
  1346.  
  1347. smi_larb0@14015000 {
  1348. compatible = "mediatek,smi_larb0";
  1349. reg = <0x14015000 0x1000>;
  1350. };
  1351.  
  1352. smi_common@14016000 {
  1353. compatible = "mediatek,smi_common";
  1354. reg = <0x14016000 0x1000>, /* SMI_COMMON_EXT */
  1355. <0x14015000 0x1000>, /* LARB 0 */
  1356. <0x16010000 0x1000>, /* LARB 1 */
  1357. <0x15001000 0x1000>, /* LARB 2 */
  1358. <0x17001000 0x1000>; /* LARB 3 */
  1359.  
  1360. clocks = <&mmsys MM_DISP0_SMI_COMMON>,
  1361. <&mmsys MM_DISP0_SMI_LARB0>,
  1362. <&imgsys IMG_IMAGE_LARB2_SMI>,
  1363. <&vdecsys VDEC0_VDEC>,
  1364. <&vdecsys VDEC1_LARB>,
  1365. <&vencsys VENC_LARB>,
  1366. <&vencsys VENC_VENC>,
  1367. <&scpsys SCP_SYS_VEN>,
  1368. <&scpsys SCP_SYS_VDE>,
  1369. <&scpsys SCP_SYS_ISP>,
  1370. <&scpsys SCP_SYS_DIS>;
  1371.  
  1372. clock-names = "smi-common", "smi-larb0", "img-larb2", "vdec0-vdec",
  1373. "vdec1-larb", "venc-larb", "venc-venc", "mtcmos-ven", "mtcmos-vde",
  1374. "mtcmos-isp", "mtcmos-dis";
  1375. };
  1376.  
  1377. met_smi: met_smi@14016000 {
  1378. compatible = "mediatek,met_smi";
  1379. reg = <0x14016000 0x1000>, /* SMI_COMMON_EXT */
  1380. <0x14015000 0x1000>, /* LARB 0 */
  1381. <0x16010000 0x1000>, /* LARB 1 */
  1382. <0x15001000 0x1000>, /* LARB 2 */
  1383. <0x17001000 0x1000>; /* LARB 3 */
  1384.  
  1385. clocks = <&mmsys MM_DISP0_SMI_COMMON>,
  1386. <&mmsys MM_DISP0_SMI_LARB0>,
  1387. <&imgsys IMG_IMAGE_LARB2_SMI>,
  1388. <&vdecsys VDEC0_VDEC>,
  1389. <&vdecsys VDEC1_LARB>,
  1390. <&vencsys VENC_LARB>,
  1391. <&vencsys VENC_VENC>;
  1392.  
  1393. clock-names = "smi-common",
  1394. "smi-larb0",
  1395. "img-larb2",
  1396. "vdec0-vdec",
  1397. "vdec1-larb",
  1398. "venc-larb",
  1399. "venc-venc";
  1400. };
  1401.  
  1402. imgsys: imgsys@15000000 {
  1403. compatible = "mediatek,mt6735-imgsys";
  1404. reg = <0x15000000 0x1000>;
  1405. #clock-cells = <1>;
  1406. };
  1407.  
  1408. ispsys@15000000 {
  1409. compatible = "mediatek,mt6735-ispsys";
  1410. reg = <0x15004000 0x9000>, /*ISP_ADDR */
  1411. <0x1500d000 0x1000>, /*INNER_ISP_ADDR */
  1412. <0x15000000 0x10000>, /*IMGSYS_CONFIG_ADDR */
  1413. <0x10215000 0x3000>, /*MIPI_ANA_ADDR */
  1414. <0x10211000 0x1000>; /*GPIO_ADDR */
  1415.  
  1416. interrupts = <GIC_SPI 183 IRQ_TYPE_LEVEL_LOW>, /* CAM0 */
  1417. <GIC_SPI 184 IRQ_TYPE_LEVEL_LOW>, /* CAM1 */
  1418. <GIC_SPI 185 IRQ_TYPE_LEVEL_LOW>, /* CAM2 */
  1419. <GIC_SPI 206 IRQ_TYPE_LEVEL_LOW>, /* CAMSV0 */
  1420. <GIC_SPI 207 IRQ_TYPE_LEVEL_LOW>; /* CAMSV1 */
  1421.  
  1422. clocks = <&scpsys SCP_SYS_DIS>,
  1423. <&scpsys SCP_SYS_ISP>,
  1424. <&mmsys MM_DISP0_SMI_COMMON>,
  1425. <&imgsys IMG_IMAGE_CAM_SMI>,
  1426. <&imgsys IMG_IMAGE_CAM_CAM>,
  1427. <&imgsys IMG_IMAGE_SEN_TG>,
  1428. <&imgsys IMG_IMAGE_SEN_CAM>,
  1429. <&imgsys IMG_IMAGE_CAM_SV>,
  1430. <&imgsys IMG_IMAGE_LARB2_SMI>;
  1431.  
  1432. clock-names = "CG_SCP_SYS_DIS",
  1433. "CG_SCP_SYS_ISP",
  1434. "CG_DISP0_SMI_COMMON",
  1435. "CG_IMAGE_CAM_SMI",
  1436. "CG_IMAGE_CAM_CAM",
  1437. "CG_IMAGE_SEN_TG",
  1438. "CG_IMAGE_SEN_CAM",
  1439. "CG_IMAGE_CAM_SV",
  1440. "CG_IMAGE_LARB2_SMI";
  1441. };
  1442.  
  1443.  
  1444. smi_larb2@15001000 {
  1445. compatible = "mediatek,smi_larb2";
  1446. reg = <0x15001000 0x1000>;
  1447. interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_LOW>;
  1448. };
  1449.  
  1450. kd_camera_hw1:kd_camera_hw1@15008000 {
  1451. compatible = "mediatek,camera_hw";
  1452. reg = <0x15008000 0x1000>; /* SENINF_ADDR */
  1453. vcama-supply = <&mt_pmic_vcama_ldo_reg>;
  1454. vcamd-supply = <&mt_pmic_vcamd_ldo_reg>;
  1455. vcamaf-supply = <&mt_pmic_vcam_af_ldo_reg>;
  1456. vcamio-supply = <&mt_pmic_vcam_io_ldo_reg>;
  1457. /* Camera Common Clock Framework (CCF) */
  1458. clocks = <&topckgen TOP_MUX_CAMTG>,
  1459. <&topckgen TOP_UNIVPLL_D26>,
  1460. <&topckgen TOP_UNIVPLL2_D2>;
  1461. clock-names = "TOP_CAMTG_SEL","TOP_UNIVPLL_D26","TOP_UNIVPLL2_D2";
  1462. };
  1463.  
  1464. kd_camera_hw2:kd_camera_hw2@15008000 {
  1465. compatible = "mediatek,camera_hw2";
  1466. reg = <0x15008000 0x1000>; /* SENINF_ADDR */
  1467. };
  1468.  
  1469. fdvt@1500b000 {
  1470. compatible = "mediatek,fdvt";
  1471. reg = <0x1500b000 0x1000>;
  1472. interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_LOW>;
  1473. clocks = <&scpsys SCP_SYS_DIS>,
  1474. <&scpsys SCP_SYS_ISP>,
  1475. <&mmsys MM_DISP0_SMI_COMMON>,
  1476. <&imgsys IMG_IMAGE_FD>;
  1477.  
  1478. clock-names = "FD-SCP_SYS_DIS",
  1479. "FD-SCP_SYS_ISP",
  1480. "FD-MM_DISP0_SMI_COMMON",
  1481. "FD-IMG_IMAGE_FD";
  1482. };
  1483.  
  1484. vdecsys: vdecsys@16000000 {
  1485. compatible = "mediatek,mt6735-vdecsys";
  1486. reg = <0x16000000 0x1000>;
  1487. interrupts = <GIC_SPI 179 IRQ_TYPE_LEVEL_LOW>;
  1488. #clock-cells = <1>;
  1489. };
  1490.  
  1491. c2k_sdio@0 {
  1492. compatible = "mediatek,mt6735-c2k_sdio";
  1493. interrupts = <GIC_SPI 230 IRQ_TYPE_LEVEL_LOW>;
  1494. };
  1495.  
  1496. vdec_gcon: vdec_gcon@16000000 {
  1497. compatible = "mediatek,mt6735-vdec_gcon";
  1498. reg = <0x16000000 0x1000>;
  1499. interrupts = <GIC_SPI 179 IRQ_TYPE_LEVEL_LOW>;
  1500. clocks =
  1501. <&mmsys MM_DISP0_SMI_COMMON>,
  1502. <&vdecsys VDEC0_VDEC>,
  1503. <&vdecsys VDEC1_LARB>,
  1504. <&vencsys VENC_VENC>,
  1505. <&vencsys VENC_LARB>,
  1506. <&topckgen TOP_MUX_VDEC>,
  1507. <&topckgen TOP_SYSPLL1_D2>,
  1508. <&topckgen TOP_SYSPLL1_D4>,
  1509. <&scpsys SCP_SYS_VDE>,
  1510. <&scpsys SCP_SYS_VEN>,
  1511. <&scpsys SCP_SYS_DIS>;
  1512. clock-names =
  1513. "MT_CG_DISP0_SMI_COMMON",
  1514. "MT_CG_VDEC0_VDEC",
  1515. "MT_CG_VDEC1_LARB",
  1516. "MT_CG_VENC_VENC",
  1517. "MT_CG_VENC_LARB",
  1518. "MT_CG_TOP_MUX_VDEC",
  1519. "MT_CG_TOP_SYSPLL1_D2",
  1520. "MT_CG_TOP_SYSPLL1_D4",
  1521. "MT_SCP_SYS_VDE",
  1522. "MT_SCP_SYS_VEN",
  1523. "MT_SCP_SYS_DIS";
  1524. };
  1525.  
  1526. smi_larb1@16010000 {
  1527. compatible = "mediatek,smi_larb1";
  1528. reg = <0x16010000 0x1000>;
  1529. interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_LOW>;
  1530. };
  1531.  
  1532. vdec: vdec@16020000 {
  1533. compatible = "mediatek,mt6735-vdec";
  1534. reg = <0x16020000 0x10000>;
  1535. interrupts = <GIC_SPI 179 IRQ_TYPE_LEVEL_LOW>;
  1536. };
  1537.  
  1538. vencsys: vencsys@17000000 {
  1539. compatible = "mediatek,mt6735-vencsys";
  1540. reg = <0x17000000 0x1000>;
  1541. interrupts = <GIC_SPI 180 IRQ_TYPE_LEVEL_LOW>;
  1542. #clock-cells = <1>;
  1543. };
  1544.  
  1545. venc_gcon: venc_gcon@17000000 {
  1546. compatible = "mediatek,mt6735-venc_gcon";
  1547. reg = <0x17000000 0x1000>;
  1548. interrupts = <GIC_SPI 180 IRQ_TYPE_LEVEL_LOW>;
  1549. };
  1550.  
  1551. smi_larb3@17001000 {
  1552. compatible = "mediatek,smi_larb3";
  1553. reg = <0x17001000 0x1000>;
  1554. interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_LOW>;
  1555. };
  1556.  
  1557. venc: venc@17002000 {
  1558. compatible = "mediatek,mt6735-venc";
  1559. reg = <0x17002000 0x1000>;
  1560. interrupts = <GIC_SPI 180 IRQ_TYPE_LEVEL_LOW>;
  1561. };
  1562.  
  1563. jpgenc@17003000 {
  1564. compatible = "mediatek,jpgenc";
  1565. reg = <0x17003000 0x1000>;
  1566. interrupts = <GIC_SPI 181 IRQ_TYPE_LEVEL_LOW>;
  1567. clocks = <&scpsys SCP_SYS_DIS>,
  1568. <&mmsys MM_DISP0_SMI_COMMON>,
  1569. <&scpsys SCP_SYS_VEN>,
  1570. <&vencsys VENC_LARB>,
  1571. <&vencsys VENC_JPGENC>;
  1572.  
  1573. clock-names = "disp-mtcmos",
  1574. "disp-smi",
  1575. "venc-mtcmos",
  1576. "venc-larb",
  1577. "venc-jpgenc";
  1578. };
  1579.  
  1580. jpgdec@17004000 {
  1581. compatible = "mediatek,jpgdec";
  1582. reg = <0x17004000 0x1000>;
  1583. interrupts = <GIC_SPI 209 IRQ_TYPE_LEVEL_LOW>;
  1584. clocks = <&scpsys SCP_SYS_DIS>,
  1585. <&mmsys MM_DISP0_SMI_COMMON>,
  1586. <&scpsys SCP_SYS_VEN>,
  1587. <&vencsys VENC_LARB>,
  1588. <&vencsys VENC_JPGDEC>;
  1589.  
  1590. clock-names = "disp-mtcmos",
  1591. "disp-smi",
  1592. "venc-mtcmos",
  1593. "venc-larb",
  1594. "venc-jpgdec";
  1595. };
  1596.  
  1597. consys:consys@18070000 {
  1598. compatible = "mediatek,mt6735-consys";
  1599. reg = <0x18070000 0x0200>, /*CONN_MCU_CONFIG_BASE */
  1600. <0x10212000 0x0100>, /*AP_RGU_BASE */
  1601. <0x10000000 0x2000>, /*TOPCKGEN_BASE */
  1602. <0x10006000 0x1000>; /*SPM_BASE */
  1603. interrupts = <GIC_SPI 227 IRQ_TYPE_LEVEL_LOW>, /* BGF_EINT */
  1604. <GIC_SPI 225 IRQ_TYPE_LEVEL_LOW>; /* WDT_EINT */
  1605. clocks = <&scpsys SCP_SYS_CONN>,<&infrasys INFRA_CONNMCU_BUS>;
  1606. clock-names = "conn","bus";
  1607. vcn18-supply = <&mt_pmic_vcn18_ldo_reg>;
  1608. vcn28-supply = <&mt_pmic_vcn28_ldo_reg>;
  1609. vcn33_bt-supply = <&mt_pmic_vcn33_bt_ldo_reg>;
  1610. vcn33_wifi-supply = <&mt_pmic_vcn33_wifi_ldo_reg>;
  1611. };
  1612.  
  1613. wifi@180F0000 {
  1614. compatible = "mediatek,wifi";
  1615. reg = <0x180F0000 0x005c>;
  1616. interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_LOW>;
  1617. clocks = <&perisys PERI_APDMA>;
  1618. clock-names = "wifi-dma";
  1619. };
  1620.  
  1621. mdc2k@3a00b01c {
  1622. compatible = "mediatek,mdc2k";
  1623. reg = <0x3a00b01c 0x10>, /*C2K CHIP ID*/
  1624. <0x1021c800 0x300>, /*MD1 PCCIF*/
  1625. <0x1021d800 0x300>; /*MD3 PCCIF*/
  1626. interrupts = <GIC_SPI 229 IRQ_TYPE_EDGE_FALLING>; /*WDT*/
  1627. clocks = <&scpsys SCP_SYS_MD2>;
  1628. clock-names = "scp-sys-md2-main";
  1629. };
  1630.  
  1631. mtkfb:mtkfb@7e000000 {
  1632. compatible = "mediatek,mtkfb";
  1633. reg = <0x7e000000 0x1000000>;
  1634. };
  1635.  
  1636. mt_soc_ul1_pcm{
  1637. compatible = "mediatek,mt_soc_pcm_capture";
  1638. };
  1639.  
  1640. mt_soc_voice_md1{
  1641. compatible = "mediatek,mt_soc_pcm_voice_md1";
  1642. };
  1643.  
  1644. mt_soc_hdmi_pcm{
  1645. compatible = "mediatek,mt_soc_pcm_hdmi";
  1646. };
  1647.  
  1648. mt_soc_uldlloopback_pcm{
  1649. compatible = "mediatek,mt_soc_pcm_uldlloopback";
  1650. };
  1651.  
  1652. mt_soc_i2s0_pcm{
  1653. compatible = "mediatek,mt_soc_pcm_dl1_i2s0";
  1654. };
  1655.  
  1656. mt_soc_mrgrx_pcm{
  1657. compatible = "mediatek,mt_soc_pcm_mrgrx";
  1658. };
  1659.  
  1660. mt_soc_mrgrx_awb_pcm{
  1661. compatible = "mediatek,mt_soc_pcm_mrgrx_awb";
  1662. };
  1663.  
  1664. mt_soc_fm_i2s_pcm{
  1665. compatible = "mediatek,mt_soc_pcm_fm_i2s";
  1666. };
  1667.  
  1668. mt_soc_fm_i2s_awb_pcm{
  1669. compatible = "mediatek,mt_soc_pcm_fm_i2s_awb";
  1670. };
  1671.  
  1672. mt_soc_i2s0dl1_pcm {
  1673. compatible = "mediatek,mt_soc_pcm_dl1_i2s0Dl1";
  1674. };
  1675.  
  1676. mt_soc_deep_buffer_dl_pcm {
  1677. compatible = "mediatek,mt_soc_pcm_deep_buffer_dl";
  1678. };
  1679.  
  1680. mt_soc_dl1_awb_pcm{
  1681. compatible = "mediatek,mt_soc_pcm_dl1_awb";
  1682. };
  1683.  
  1684. mt_soc_voice_md1_bt{
  1685. compatible = "mediatek,mt_soc_pcm_voice_md1_bt";
  1686. };
  1687.  
  1688. mt_soc_voip_bt_out {
  1689. compatible = "mediatek,mt_soc_pcm_dl1_bt";
  1690. };
  1691.  
  1692. mt_soc_voip_bt_in {
  1693. compatible = "mediatek,mt_soc_pcm_bt_dai";
  1694. };
  1695.  
  1696. mt_soc_tdmrx_pcm {
  1697. compatible = "mediatek,mt_soc_tdm_capture";
  1698. };
  1699.  
  1700. mt_soc_fm_mrgtx_pcm {
  1701. compatible = "mediatek,mt_soc_pcm_fmtx";
  1702. };
  1703.  
  1704. mt_soc_ul2_pcm {
  1705. compatible = "mediatek,mt_soc_pcm_capture2";
  1706. };
  1707.  
  1708. mt_soc_i2s0_awb_pcm {
  1709. compatible = "mediatek,mt_soc_pcm_i2s0_awb";
  1710. };
  1711.  
  1712. mt_soc_voice_md2 {
  1713. compatible = "mediatek,mt_soc_pcm_voice_md2";
  1714. };
  1715.  
  1716. mt_soc_routing_pcm {
  1717. compatible = "mediatek,mt_soc_pcm_routing";
  1718. i2s1clk-gpio = <7 6>;
  1719. i2s1dat-gpio = <5 6>;
  1720. i2s1mclk-gpio = <9 6>;
  1721. i2s1ws-gpio = <6 6>;
  1722. };
  1723.  
  1724. mt_soc_voice_md2_bt {
  1725. compatible = "mediatek,mt_soc_pcm_voice_md2_bt";
  1726. };
  1727.  
  1728. mt_soc_hp_impedance_pcm {
  1729. compatible = "mediatek,Mt_soc_pcm_hp_impedance";
  1730. };
  1731.  
  1732. mt_soc_codec_name {
  1733. compatible = "mediatek,mt_soc_codec_63xx";
  1734. };
  1735.  
  1736. mt_soc_dummy_pcm {
  1737. compatible = "mediatek,mt_soc_pcm_dummy";
  1738. };
  1739.  
  1740. mt_soc_codec_dummy_name {
  1741. compatible = "mediatek,mt_soc_codec_dummy";
  1742. };
  1743.  
  1744. mt_soc_routing_dai_name {
  1745. compatible = "mediatek,mt_soc_dai_routing";
  1746. };
  1747.  
  1748. mt_soc_dai_name {
  1749. compatible = "mediatek,mt_soc_dai_stub";
  1750. };
  1751.  
  1752. mt_soc_offload_gdma {
  1753. compatible = "mediatek,mt_soc_pcm_offload_gdma";
  1754. };
  1755.  
  1756. mt_soc_dl2_pcm {
  1757. compatible = "mediatek,mt_soc_pcm_dl2";
  1758. };
  1759.  
  1760. touch: touch {
  1761. compatible = "mediatek,mt6735-touch";
  1762. vtouch-supply = <&mt_pmic_vgp1_ldo_reg>;
  1763. };
  1764.  
  1765. accdet: accdet {
  1766. compatible = "mediatek,mt6735-accdet";
  1767. };
  1768.  
  1769. nfc:nfc {
  1770. compatible = "mediatek,nfc-gpio-v2";
  1771. gpio-ven = <4>;
  1772. gpio-rst = <3>;
  1773. gpio-eint = <1>;
  1774. gpio-irq = <2>;
  1775. };
  1776.  
  1777. gps {
  1778. compatible = "mediatek,gps";
  1779. };
  1780.  
  1781. ssw:simswitch{
  1782. compatible = "mediatek,sim_switch";
  1783. pinctrl-names = "default",
  1784. "hot_plug_mode1",
  1785. "hot_plug_mode2",
  1786. "two_sims_bound_to_md1",
  1787. "sim1_md3_sim2_md1";
  1788. pinctrl-0 = <&ssw_default>;
  1789. pinctrl-1 = <&ssw_hot_plug_mode1>;
  1790. pinctrl-2 = <&ssw_hot_plug_mode2>;
  1791. pinctrl-3 = <&ssw_two_sims_bound_to_md1>;
  1792. pinctrl-4 = <&ssw_sim1_md3_sim2_md1>;
  1793. };
  1794.  
  1795. ccci_off {
  1796. compatible = "mediatek,ccci_off";
  1797. clocks = <&scpsys SCP_SYS_MD1>;
  1798. clock-names = "scp-sys-md1-main";
  1799. };
  1800.  
  1801. pmu {
  1802. compatible = "arm,armv8-pmuv3";
  1803. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_LOW>,
  1804. <GIC_SPI 9 IRQ_TYPE_LEVEL_LOW>,
  1805. <GIC_SPI 10 IRQ_TYPE_LEVEL_LOW>,
  1806. <GIC_SPI 11 IRQ_TYPE_LEVEL_LOW>;
  1807. interrupt-affinity = <&cpu0>,
  1808. <&cpu1>,
  1809. <&cpu2>,
  1810. <&cpu3>;
  1811. };
  1812.  
  1813. timer {
  1814. compatible = "arm,armv8-timer";
  1815. interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, /*Secure Physical Timer Event*/
  1816. <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, /*Non-Secure Physical Timer Event*/
  1817. <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, /*Virtual Timer Event*/
  1818. <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; /*Hypervisor Timer Event*/
  1819. clock-frequency = <13000000>;
  1820. };
  1821.  
  1822. mt_pmic_regulator {
  1823. compatible = "mediatek,mt_pmic";
  1824. /*reg = <0x01>*/
  1825. buck_regulators {
  1826. compatible = "mediatek,mt_pmic_buck_regulators";
  1827. mt_pmic_vpa_buck_reg: buck_vpa {
  1828. regulator-name = "vpa";
  1829. regulator-min-microvolt = <500000>;
  1830. regulator-max-microvolt = <3650000>;
  1831. regulator-ramp-delay = <50000>;
  1832. regulator-enable-ramp-delay = <180>;
  1833. };
  1834. mt_pmic_vproc_buck_reg: buck_vproc {
  1835. regulator-name = "vproc";
  1836. regulator-min-microvolt = <600000>;
  1837. regulator-max-microvolt = <1393750>;
  1838. regulator-ramp-delay = <6250>;
  1839. regulator-enable-ramp-delay = <180>;
  1840. regulator-always-on;
  1841. regulator-boot-on;
  1842. };
  1843. mt_pmic_vcore1_buck_reg: buck_vcore1 {
  1844. regulator-name = "vcore1";
  1845. regulator-min-microvolt = <600000>;
  1846. regulator-max-microvolt = <1393750>;
  1847. regulator-ramp-delay = <6250>;
  1848. regulator-enable-ramp-delay = <180>;
  1849. regulator-always-on;
  1850. regulator-boot-on;
  1851. };
  1852. mt_pmic_vsys22_buck_reg: buck_vsys22 {
  1853. regulator-name = "vsys22";
  1854. regulator-min-microvolt = <1200000>;
  1855. regulator-max-microvolt = <1993750>;
  1856. regulator-ramp-delay = <6250>;
  1857. regulator-enable-ramp-delay = <180>;
  1858. regulator-always-on;
  1859. regulator-boot-on;
  1860. };
  1861. mt_pmic_vlte_buck_reg: buck_vlte {
  1862. regulator-name = "vlte";
  1863. regulator-min-microvolt = <600000>;
  1864. regulator-max-microvolt = <1393750>;
  1865. regulator-ramp-delay = <6250>;
  1866. regulator-enable-ramp-delay = <180>;
  1867. regulator-always-on;
  1868. regulator-boot-on;
  1869. };
  1870. }; /* End of buck_regulators */
  1871. ldo_regulators {
  1872. compatible = "mediatek,mt_pmic_ldo_regulators";
  1873. mt_pmic_vaux18_ldo_reg: ldo_vaux18 {
  1874. regulator-name = "vaux18";
  1875. regulator-min-microvolt = <1800000>;
  1876. regulator-max-microvolt = <1800000>;
  1877. regulator-enable-ramp-delay = <264>;
  1878. regulator-boot-on;
  1879. };
  1880. mt_pmic_vtcxo_0_ldo_reg: ldo_vtcxo_0 {
  1881. regulator-name = "vtcxo_0";
  1882. regulator-min-microvolt = <2800000>;
  1883. regulator-max-microvolt = <2800000>;
  1884. regulator-enable-ramp-delay = <110>;
  1885. regulator-boot-on;
  1886. };
  1887. mt_pmic_vtcxo_1_ldo_reg: ldo_vtcxo_1 {
  1888. regulator-name = "vtcxo_1";
  1889. regulator-min-microvolt = <2800000>;
  1890. regulator-max-microvolt = <2800000>;
  1891. regulator-enable-ramp-delay = <110>;
  1892. };
  1893. mt_pmic_vaud28_ldo_reg: ldo_vaud28 {
  1894. regulator-name = "vaud28";
  1895. regulator-min-microvolt = <2800000>;
  1896. regulator-max-microvolt = <2800000>;
  1897. regulator-enable-ramp-delay = <264>;
  1898. regulator-boot-on;
  1899. };
  1900. mt_pmic_vcn28_ldo_reg: ldo_vcn28 {
  1901. regulator-name = "vcn28";
  1902. regulator-min-microvolt = <2800000>;
  1903. regulator-max-microvolt = <2800000>;
  1904. regulator-enable-ramp-delay = <264>;
  1905. };
  1906. mt_pmic_vcama_ldo_reg: ldo_vcama {
  1907. regulator-name = "vcama";
  1908. regulator-min-microvolt = <1500000>;
  1909. regulator-max-microvolt = <2800000>;
  1910. regulator-enable-ramp-delay = <264>;
  1911. };
  1912. mt_pmic_vcn33_bt_ldo_reg: ldo_vcn33_bt {
  1913. regulator-name = "vcn33_bt";
  1914. regulator-min-microvolt = <3300000>;
  1915. regulator-max-microvolt = <3600000>;
  1916. regulator-enable-ramp-delay = <264>;
  1917. };
  1918. mt_pmic_vcn33_wifi_ldo_reg: ldo_vcn33_wifi {
  1919. regulator-name = "vcn33_wifi";
  1920. regulator-min-microvolt = <3300000>;
  1921. regulator-max-microvolt = <3600000>;
  1922. regulator-enable-ramp-delay = <264>;
  1923. };
  1924. mt_pmic_vusb33_ldo_reg: ldo_vusb33 {
  1925. regulator-name = "vusb33";
  1926. regulator-min-microvolt = <3300000>;
  1927. regulator-max-microvolt = <3300000>;
  1928. regulator-enable-ramp-delay = <264>;
  1929. regulator-boot-on;
  1930. };
  1931. mt_pmic_vefuse_ldo_reg: ldo_vefuse {
  1932. regulator-name = "vefuse";
  1933. regulator-min-microvolt = <1800000>;
  1934. regulator-max-microvolt = <2200000>;
  1935. regulator-enable-ramp-delay = <264>;
  1936. };
  1937. mt_pmic_vsim1_ldo_reg: ldo_vsim1 {
  1938. regulator-name = "vsim1";
  1939. regulator-min-microvolt = <1700000>;
  1940. regulator-max-microvolt = <2100000>;
  1941. regulator-enable-ramp-delay = <264>;
  1942. };
  1943. mt_pmic_vsim2_ldo_reg: ldo_vsim2 {
  1944. regulator-name = "vsim2";
  1945. regulator-min-microvolt = <1700000>;
  1946. regulator-max-microvolt = <2100000>;
  1947. regulator-enable-ramp-delay = <264>;
  1948. };
  1949. mt_pmic_vemc33_ldo_reg: ldo_vemc_3v3 {
  1950. regulator-name = "vemc_3v3";
  1951. regulator-min-microvolt = <1800000>;
  1952. regulator-max-microvolt = <3300000>;
  1953. regulator-enable-ramp-delay = <264>;
  1954. regulator-boot-on;
  1955. };
  1956. mt_pmic_vmch_ldo_reg: ldo_vmch {
  1957. regulator-name = "vmch";
  1958. regulator-min-microvolt = <2900000>;
  1959. regulator-max-microvolt = <3300000>;
  1960. regulator-enable-ramp-delay = <44>;
  1961. };
  1962. mt_pmic_vtref_ldo_reg: ldo_vtref {
  1963. regulator-name = "vtref";
  1964. regulator-min-microvolt = <1800000>;
  1965. regulator-max-microvolt = <1800000>;
  1966. regulator-enable-ramp-delay = <240>;
  1967. };
  1968. mt_pmic_vmc_ldo_reg: ldo_vmc {
  1969. regulator-name = "vmc";
  1970. regulator-min-microvolt = <1800000>;
  1971. regulator-max-microvolt = <3300000>;
  1972. regulator-enable-ramp-delay = <44>;
  1973. };
  1974. mt_pmic_vcam_af_ldo_reg: ldo_vcamaf {
  1975. regulator-name = "vcamaf";
  1976. regulator-min-microvolt = <1200000>;
  1977. regulator-max-microvolt = <3300000>;
  1978. regulator-enable-ramp-delay = <264>;
  1979. };
  1980. mt_pmic_vio28_ldo_reg: ldo_vio28 {
  1981. regulator-name = "vio28";
  1982. regulator-min-microvolt = <2800000>;
  1983. regulator-max-microvolt = <2800000>;
  1984. regulator-enable-ramp-delay = <264>;
  1985. regulator-boot-on;
  1986. };
  1987. mt_pmic_vgp1_ldo_reg: ldo_vgp1 {
  1988. regulator-name = "vgp1";
  1989. regulator-min-microvolt = <1200000>;
  1990. regulator-max-microvolt = <3300000>;
  1991. regulator-enable-ramp-delay = <264>;
  1992. };
  1993. mt_pmic_vibr_ldo_reg: ldo_vibr {
  1994. regulator-name = "vibr";
  1995. regulator-min-microvolt = <1200000>;
  1996. regulator-max-microvolt = <3300000>;
  1997. regulator-enable-ramp-delay = <44>;
  1998. };
  1999. mt_pmic_vcamd_ldo_reg: ldo_vcamd {
  2000. regulator-name = "vcamd";
  2001. regulator-min-microvolt = <900000>;
  2002. regulator-max-microvolt = <1500000>;
  2003. regulator-enable-ramp-delay = <264>;
  2004. };
  2005. mt_pmic_vrf18_0_ldo_reg: ldo_vrf18_0 {
  2006. regulator-name = "vrf18_0";
  2007. regulator-min-microvolt = <1825000>;
  2008. regulator-max-microvolt = <1825000>;
  2009. regulator-enable-ramp-delay = <220>;
  2010. };
  2011. mt_pmic_vrf18_1_ldo_reg: ldo_vrf18_1 {
  2012. regulator-name = "vrf18_1";
  2013. regulator-min-microvolt = <1200000>;
  2014. regulator-max-microvolt = <1825000>;
  2015. regulator-enable-ramp-delay = <220>;
  2016. };
  2017. mt_pmic_vio18_ldo_reg: ldo_vio18 {
  2018. regulator-name = "vio18";
  2019. regulator-min-microvolt = <1800000>;
  2020. regulator-max-microvolt = <1800000>;
  2021. regulator-enable-ramp-delay = <264>;
  2022. regulator-boot-on;
  2023. };
  2024. mt_pmic_vcn18_ldo_reg: ldo_vcn18 {
  2025. regulator-name = "vcn18";
  2026. regulator-min-microvolt = <1800000>;
  2027. regulator-max-microvolt = <1800000>;
  2028. regulator-enable-ramp-delay = <44>;
  2029. };
  2030. mt_pmic_vcam_io_ldo_reg: ldo_vcamio {
  2031. regulator-name = "vcamio";
  2032. regulator-min-microvolt = <1200000>;
  2033. regulator-max-microvolt = <1800000>;
  2034. regulator-enable-ramp-delay = <220>;
  2035. };
  2036. mt_pmic_vsram_ldo_reg: ldo_vsram {
  2037. regulator-name = "vsram";
  2038. regulator-min-microvolt = <700000>;
  2039. regulator-max-microvolt = <1493750>;
  2040. regulator-enable-ramp-delay = <220>;
  2041. regulator-ramp-delay = <6250>;
  2042. regulator-boot-on;
  2043. };
  2044. mt_pmic_vm_ldo_reg: ldo_vm {
  2045. regulator-name = "vm";
  2046. regulator-min-microvolt = <1240000>;
  2047. regulator-max-microvolt = <1540000>;
  2048. regulator-enable-ramp-delay = <264>;
  2049. regulator-boot-on;
  2050. };
  2051. };/* End of ldo_regulators */
  2052. regulators_supply {
  2053. compatible = "mediatek,mt_pmic_regulator_supply";
  2054. vaux18-supply = <&mt_pmic_vaux18_ldo_reg>;
  2055. vtcxo_0-supply = <&mt_pmic_vtcxo_0_ldo_reg>;
  2056. vtcxo_1-supply = <&mt_pmic_vtcxo_1_ldo_reg>;
  2057. vaud28-supply = <&mt_pmic_vaud28_ldo_reg>;
  2058. vefuse-supply = <&mt_pmic_vefuse_ldo_reg>;
  2059. vsim1-supply = <&mt_pmic_vsim1_ldo_reg>;
  2060. vsim2-supply = <&mt_pmic_vsim2_ldo_reg>;
  2061. vemc_3v3-supply = <&mt_pmic_vemc33_ldo_reg>;
  2062. vmch-supply = <&mt_pmic_vmch_ldo_reg>;
  2063. vtref-supply = <&mt_pmic_vtref_ldo_reg>;
  2064. vmc-supply = <&mt_pmic_vmc_ldo_reg>;
  2065. vio28-supply = <&mt_pmic_vio28_ldo_reg>;
  2066. vibr-supply = <&mt_pmic_vibr_ldo_reg>;
  2067. vrf18_0-supply = <&mt_pmic_vrf18_0_ldo_reg>;
  2068. vrf18_1-supply = <&mt_pmic_vrf18_1_ldo_reg>;
  2069. vio18-supply = <&mt_pmic_vio18_ldo_reg>;
  2070. vsram-supply = <&mt_pmic_vsram_ldo_reg>;
  2071. vm-supply = <&mt_pmic_vm_ldo_reg>;
  2072. };/* End of regulators_supply */
  2073. };/* End of mt_pmic_regulator */
  2074.  
  2075. btcvsd@10000000 {
  2076. compatible = "mediatek,audio_bt_cvsd";
  2077. offset = <0x700 0x800 0xfd0 0xfd4 0xfd8>;
  2078. /*INFRA MISC, conn_bt_cvsd_mask, cvsd_mcu_read, write, packet_indicator*/
  2079. reg = <0x10000000 0x1000>, /*AUDIO_INFRA_BASE_PHYSICAL*/
  2080. <0x18000000 0x10000>, /*PKV_PHYSICAL_BASE*/
  2081. <0x18080000 0x8000>; /*SRAM_BANK2*/
  2082. interrupts = <GIC_SPI 228 IRQ_TYPE_LEVEL_LOW>;
  2083. };
  2084.  
  2085. bat_meter: bat_meter{
  2086. compatible = "mediatek,bat_meter";
  2087. /* cust_battery_meter.h */
  2088. /* ADC resistor */
  2089. r_bat_sense = <4 >;
  2090. r_i_sense = <4 >;
  2091. r_charger_1 = <330 >;
  2092. r_charger_2 = <39 >;
  2093. temperature_t0 = <110 >;
  2094. temperature_t1 = <0 >;
  2095. temperature_t2 = <25 >;
  2096. temperature_t3 = <50 >;
  2097. temperature_t = <255 >; /* this should be fixed, never change the value */
  2098. fg_meter_resistance = <0 >;
  2099.  
  2100. /* Qmax for 0mA */
  2101. q_max_pos_50 = <1523 >;
  2102. q_max_pos_25 = <1489 >;
  2103. q_max_pos_0 = <1272 >;
  2104. q_max_neg_10 = <1189 >;
  2105. /* Qmax for 400mA, said high current */
  2106. q_max_pos_50_h_current = <1511 >;
  2107. q_max_pos_25_h_current = <1462 >;
  2108. q_max_pos_0_h_current = <818 >;
  2109. q_max_neg_10_h_current = <149 >;
  2110. /* Discharge percentage, 1: D5, 0: D2 */
  2111. oam_d5 = <1 >;
  2112.  
  2113. change_tracking_point = <1 >;
  2114. /* SW OCV tracking setting */
  2115. cust_tracking_point = <1 >;
  2116. cust_r_sense = <68 >;
  2117. cust_hw_cc = <0 >;
  2118. aging_tuning_value = <103 >;
  2119. cust_r_fg_offset = <0 >;
  2120. ocv_board_compesate = <0 >;
  2121. r_fg_board_base = <1000 >;
  2122. r_fg_board_slope = <1000 >;
  2123. car_tune_value = <86 >;
  2124.  
  2125. /* HW Fuel gague */
  2126. current_detect_r_fg = <10 >; /* Unit: mA */
  2127. minerroroffset = <1000 >;
  2128. fg_vbat_average_size = <18 >;
  2129. r_fg_value = <10 >; /* Unit: mOhm */
  2130.  
  2131. cust_poweron_delta_capacity_tolrance = <30 >;
  2132. cust_poweron_low_capacity_tolrance = <5 >;
  2133. cust_poweron_max_vbat_tolrance = <90 >;
  2134. cust_poweron_delta_vbat_tolrance = <30 >;
  2135. cust_poweron_delta_hw_sw_ocv_capacity_tolrance = <10 >;
  2136.  
  2137. /* Fixed battery temperature */
  2138. fixed_tbat_25 = <0 >;
  2139. /* Dynamic change wake up period of battery thread when suspend */
  2140. vbat_normal_wakeup = <3600 >; /* Unit: mV */
  2141. vbat_low_power_wakeup = <3500 >; /* Unit: mV */
  2142. normal_wakeup_period = <5400 >; /* Unit: second */
  2143. low_power_wakeup_period = <300 >; /* Unit: second */
  2144. close_poweroff_wakeup_period = <30 >; /* Unit: second */
  2145.  
  2146. rbat_pull_up_r = <16900 >;
  2147. rbat_pull_up_volt = <1800 >;
  2148.  
  2149.  
  2150. batt_temperature_table_num = <17 >;
  2151. batt_temperature_table = <
  2152. (-20) 68237
  2153. (-15) 53650
  2154. (-10) 42506
  2155. (-5) 33892
  2156. 0 27219
  2157. 5 22021
  2158. 10 17926
  2159. 15 14674
  2160. 20 12081
  2161. 25 10000 30 8315 35 6948 40 5834 45 4917 50 4161 55 3535 60 3014 >;
  2162. battery_profile_t0_num = <100 >;
  2163. battery_profile_t0 = <0 4098
  2164. 2 4069
  2165. 3 4053
  2166. 5 4040
  2167. 7 4023
  2168. 8 3997
  2169. 10 3961
  2170. 12 3946
  2171. 13 3938
  2172. 15 3932
  2173. 17 3926
  2174. 19 3918
  2175. 20 3910
  2176. 22 3901
  2177. 23 3894
  2178. 25 3885
  2179. 27 3874
  2180. 29 3866
  2181. 30 3856
  2182. 32 3846
  2183. 34 3838
  2184. 35 3830
  2185. 37 3823
  2186. 39 3817
  2187. 40 3814
  2188. 42 3808
  2189. 44 3806
  2190. 45 3803
  2191. 47 3801
  2192. 49 3798
  2193. 50 3795
  2194. 52 3796
  2195. 54 3795
  2196. 55 3792
  2197. 57 3792
  2198. 59 3790
  2199. 60 3789
  2200. 62 3787
  2201. 64 3785
  2202. 65 3783
  2203. 67 3781
  2204. 69 3776
  2205. 70 3772
  2206. 72 3767
  2207. 74 3763
  2208. 76 3758
  2209. 77 3751
  2210. 79 3742
  2211. 81 3734
  2212. 82 3725
  2213. 84 3719
  2214. 86 3715
  2215. 87 3712
  2216. 89 3707
  2217. 91 3702
  2218. 92 3696
  2219. 94 3678
  2220. 96 3647
  2221. 97 3612
  2222. 98 3575
  2223. 98 3537
  2224. 99 3502
  2225. 99 3472
  2226. 100 3443
  2227. 100 3419
  2228. 100 3395
  2229. 100 3373
  2230. 100 3357
  2231. 100 3341
  2232. 100 3328
  2233. 100 3317
  2234. 100 3307
  2235. 100 3300
  2236. 100 3293
  2237. 100 3288
  2238. 100 3283
  2239. 100 3275
  2240. 100 3271
  2241. 100 3267
  2242. 100 3260
  2243. 100 3256
  2244. 100 3251
  2245. 100 3243
  2246. 100 3239
  2247. 100 3233
  2248. 100 3225
  2249. 100 3218
  2250. 100 3214
  2251. 100 3209
  2252. 100 3202
  2253. 100 3196
  2254. 100 3185
  2255. 100 3171
  2256. 100 3157 100 3142 100 3125 100 3114 100 3095 100 3095 100 3270 >;
  2257. battery_profile_t1_num = <100 >;
  2258. battery_profile_t1 = <0 4048
  2259. 2 4008
  2260. 3 3989
  2261. 5 3977
  2262. 6 3966
  2263. 8 3960
  2264. 9 3956
  2265. 11 3951
  2266. 13 3948
  2267. 14 3941
  2268. 16 3935
  2269. 17 3928
  2270. 19 3922
  2271. 20 3914
  2272. 22 3906
  2273. 24 3898
  2274. 25 3892
  2275. 27 3882
  2276. 28 3872
  2277. 30 3860
  2278. 31 3849
  2279. 33 3839
  2280. 35 3831
  2281. 36 3824
  2282. 38 3818
  2283. 39 3815
  2284. 41 3808
  2285. 42 3805
  2286. 44 3803
  2287. 46 3798
  2288. 47 3796
  2289. 49 3793
  2290. 50 3792
  2291. 52 3790
  2292. 53 3790
  2293. 55 3788
  2294. 57 3788
  2295. 58 3787
  2296. 60 3787
  2297. 61 3785
  2298. 63 3785
  2299. 64 3784
  2300. 66 3782
  2301. 67 3779
  2302. 69 3777
  2303. 71 3774
  2304. 72 3769
  2305. 74 3766
  2306. 75 3762
  2307. 77 3756
  2308. 78 3748
  2309. 80 3742
  2310. 82 3734
  2311. 83 3724
  2312. 85 3714
  2313. 86 3708
  2314. 88 3703
  2315. 89 3701
  2316. 91 3699
  2317. 93 3696
  2318. 94 3689
  2319. 96 3662
  2320. 97 3601
  2321. 99 3533
  2322. 99 3475
  2323. 100 3418
  2324. 100 3363
  2325. 100 3315
  2326. 100 3270
  2327. 100 3238
  2328. 100 3208
  2329. 100 3191
  2330. 100 3172
  2331. 100 3159
  2332. 100 3150
  2333. 100 3137
  2334. 100 3137
  2335. 100 3137
  2336. 100 3137
  2337. 100 3137
  2338. 100 3137
  2339. 100 3137
  2340. 100 3137
  2341. 100 3137
  2342. 100 3137
  2343. 100 3137
  2344. 100 3137
  2345. 100 3137
  2346. 100 3137
  2347. 100 3137
  2348. 100 3137
  2349. 100 3137
  2350. 100 3137
  2351. 100 3137 100 3137 100 3137 100 3137 100 3137 100 3137 100 3137 >;
  2352. battery_profile_t2_num = <100 >;
  2353. battery_profile_t2 = <0 4165
  2354. 1 4149
  2355. 3 4136
  2356. 4 4121
  2357. 5 4110
  2358. 7 4098
  2359. 8 4086
  2360. 9 4081
  2361. 11 4077
  2362. 12 4067
  2363. 13 4047
  2364. 15 4025
  2365. 16 4006
  2366. 17 3993
  2367. 19 3983
  2368. 20 3975
  2369. 21 3971
  2370. 23 3968
  2371. 24 3964
  2372. 25 3958
  2373. 27 3949
  2374. 28 3943
  2375. 29 3934
  2376. 31 3928
  2377. 32 3920
  2378. 34 3913
  2379. 35 3906
  2380. 36 3898
  2381. 38 3890
  2382. 39 3878
  2383. 40 3865
  2384. 42 3853
  2385. 43 3843
  2386. 44 3836
  2387. 46 3829
  2388. 47 3824
  2389. 48 3820
  2390. 50 3814
  2391. 51 3812
  2392. 52 3807
  2393. 54 3803
  2394. 55 3801
  2395. 56 3796
  2396. 58 3794
  2397. 59 3791
  2398. 60 3789
  2399. 62 3786
  2400. 63 3784
  2401. 64 3782
  2402. 66 3781
  2403. 67 3779
  2404. 68 3779
  2405. 70 3777
  2406. 71 3775
  2407. 72 3772
  2408. 74 3769
  2409. 75 3765
  2410. 76 3761
  2411. 78 3757
  2412. 79 3752
  2413. 80 3747
  2414. 82 3741
  2415. 83 3733
  2416. 84 3724
  2417. 86 3717
  2418. 87 3706
  2419. 88 3697
  2420. 90 3695
  2421. 91 3694
  2422. 92 3692
  2423. 94 3690
  2424. 95 3684
  2425. 97 3651
  2426. 98 3587
  2427. 99 3498
  2428. 100 3347
  2429. 100 3207
  2430. 100 3164
  2431. 100 3128
  2432. 100 3087
  2433. 100 3063
  2434. 100 3041
  2435. 100 3029
  2436. 100 3026
  2437. 100 3023
  2438. 100 3005
  2439. 100 2998
  2440. 100 2992
  2441. 100 2981
  2442. 100 2973
  2443. 100 2974
  2444. 100 2975
  2445. 100 2960
  2446. 100 2950 100 2949 100 2947 100 2944 100 2939 100 2936 100 2931 >;
  2447. battery_profile_t3_num = <100 >;
  2448. battery_profile_t3 = <0 4181
  2449. 1 4167
  2450. 3 4152
  2451. 4 4139
  2452. 5 4127
  2453. 7 4114
  2454. 8 4103
  2455. 9 4090
  2456. 11 4078
  2457. 12 4067
  2458. 13 4056
  2459. 14 4049
  2460. 16 4036
  2461. 17 4022
  2462. 18 4010
  2463. 20 4001
  2464. 21 3995
  2465. 22 3986
  2466. 24 3977
  2467. 25 3969
  2468. 26 3959
  2469. 28 3952
  2470. 29 3943
  2471. 30 3935
  2472. 31 3929
  2473. 33 3920
  2474. 34 3913
  2475. 35 3906
  2476. 37 3899
  2477. 38 3893
  2478. 39 3887
  2479. 41 3879
  2480. 42 3867
  2481. 43 3851
  2482. 45 3840
  2483. 46 3833
  2484. 47 3827
  2485. 48 3820
  2486. 50 3816
  2487. 51 3812
  2488. 52 3808
  2489. 54 3803
  2490. 55 3800
  2491. 56 3797
  2492. 58 3794
  2493. 59 3791
  2494. 60 3787
  2495. 62 3785
  2496. 63 3782
  2497. 64 3779
  2498. 66 3778
  2499. 67 3776
  2500. 68 3775
  2501. 69 3772
  2502. 71 3767
  2503. 72 3759
  2504. 73 3753
  2505. 75 3751
  2506. 76 3746
  2507. 77 3742
  2508. 79 3737
  2509. 80 3732
  2510. 81 3729
  2511. 83 3724
  2512. 84 3715
  2513. 85 3708
  2514. 86 3699
  2515. 88 3689
  2516. 89 3681
  2517. 90 3680
  2518. 92 3680
  2519. 93 3678
  2520. 94 3676
  2521. 96 3664
  2522. 97 3619
  2523. 98 3553
  2524. 100 3454
  2525. 100 3279
  2526. 100 3141
  2527. 100 3081
  2528. 100 3038
  2529. 100 3012
  2530. 100 2982
  2531. 100 2976
  2532. 100 2956
  2533. 100 2947
  2534. 100 2942
  2535. 100 2936
  2536. 100 2939
  2537. 100 2926
  2538. 100 2925
  2539. 100 2922
  2540. 100 2918
  2541. 100 2910 100 2904 100 2897 100 2891 100 2881 100 2873 100 2876 >;
  2542.  
  2543. r_profile_t0_num = <100 >;
  2544. r_profile_t0 = <865 4098
  2545. 865 4069
  2546. 893 4053
  2547. 915 4040
  2548. 955 4023
  2549. 1023 3997
  2550. 1200 3961
  2551. 1338 3946
  2552. 1375 3938
  2553. 1388 3932
  2554. 1408 3926
  2555. 1420 3918
  2556. 1428 3910
  2557. 1418 3901
  2558. 1428 3894
  2559. 1423 3885
  2560. 1418 3874
  2561. 1425 3866
  2562. 1428 3856
  2563. 1428 3846
  2564. 1425 3838
  2565. 1423 3830
  2566. 1420 3823
  2567. 1415 3817
  2568. 1425 3814
  2569. 1425 3808
  2570. 1450 3806
  2571. 1468 3803
  2572. 1465 3801
  2573. 1483 3798
  2574. 1488 3795
  2575. 1510 3796
  2576. 1515 3795
  2577. 1533 3792
  2578. 1535 3792
  2579. 1548 3790
  2580. 1543 3789
  2581. 1563 3787
  2582. 1588 3785
  2583. 1610 3783
  2584. 1625 3781
  2585. 1640 3776
  2586. 1653 3772
  2587. 1660 3767
  2588. 1680 3763
  2589. 1690 3758
  2590. 1710 3751
  2591. 1733 3742
  2592. 1745 3734
  2593. 1765 3725
  2594. 1788 3719
  2595. 1813 3715
  2596. 1853 3712
  2597. 1905 3707
  2598. 1965 3702
  2599. 2010 3696
  2600. 2080 3678
  2601. 2123 3647
  2602. 2035 3612
  2603. 1943 3575
  2604. 1853 3537
  2605. 1770 3502
  2606. 1685 3472
  2607. 1623 3443
  2608. 1550 3419
  2609. 1493 3395
  2610. 1448 3373
  2611. 1395 3357
  2612. 1368 3341
  2613. 1338 3328
  2614. 1303 3317
  2615. 1298 3307
  2616. 1263 3300
  2617. 1253 3293
  2618. 1260 3288
  2619. 1225 3283
  2620. 1240 3275
  2621. 1198 3271
  2622. 1215 3267
  2623. 1198 3260
  2624. 1200 3256
  2625. 1218 3251
  2626. 1228 3243
  2627. 1138 3239
  2628. 1230 3233
  2629. 1243 3225
  2630. 1155 3218
  2631. 1165 3214
  2632. 1045 3209
  2633. 1170 3202
  2634. 1183 3196
  2635. 1340 3185
  2636. 1368 3171
  2637. 1423 3157 1455 3142 1533 3125 1365 3114 1653 3095 1653 3095 1653 3095 >;
  2638.  
  2639. r_profile_t1_num = <100 >;
  2640. r_profile_t1 = <633 4048
  2641. 633 4008
  2642. 678 3989
  2643. 685 3977
  2644. 700 3966
  2645. 713 3960
  2646. 728 3956
  2647. 748 3951
  2648. 753 3948
  2649. 763 3941
  2650. 763 3935
  2651. 768 3928
  2652. 783 3922
  2653. 775 3914
  2654. 780 3906
  2655. 790 3898
  2656. 790 3892
  2657. 793 3882
  2658. 798 3872
  2659. 778 3860
  2660. 778 3849
  2661. 770 3839
  2662. 778 3831
  2663. 770 3824
  2664. 785 3818
  2665. 795 3815
  2666. 785 3808
  2667. 805 3805
  2668. 810 3803
  2669. 815 3798
  2670. 818 3796
  2671. 835 3793
  2672. 838 3792
  2673. 840 3790
  2674. 865 3790
  2675. 863 3788
  2676. 880 3788
  2677. 893 3787
  2678. 908 3787
  2679. 928 3785
  2680. 933 3785
  2681. 960 3784
  2682. 965 3782
  2683. 990 3779
  2684. 1003 3777
  2685. 1033 3774
  2686. 1045 3769
  2687. 1070 3766
  2688. 1098 3762
  2689. 1113 3756
  2690. 1145 3748
  2691. 1185 3742
  2692. 1208 3734
  2693. 1248 3724
  2694. 1295 3714
  2695. 1333 3708
  2696. 1405 3703
  2697. 1465 3701
  2698. 1560 3699
  2699. 1643 3696
  2700. 1745 3689
  2701. 1815 3662
  2702. 1863 3601
  2703. 1840 3533
  2704. 1688 3475
  2705. 1560 3418
  2706. 1418 3363
  2707. 1313 3315
  2708. 1200 3270
  2709. 1100 3238
  2710. 1060 3208
  2711. 980 3191
  2712. 1000 3172
  2713. 955 3159
  2714. 878 3150
  2715. 960 3137
  2716. 960 3137
  2717. 960 3137
  2718. 960 3137
  2719. 960 3137
  2720. 960 3137
  2721. 960 3137
  2722. 960 3137
  2723. 960 3137
  2724. 960 3137
  2725. 960 3137
  2726. 960 3137
  2727. 960 3137
  2728. 960 3137
  2729. 960 3137
  2730. 960 3137
  2731. 960 3137
  2732. 960 3137
  2733. 960 3137 960 3137 960 3137 960 3137 960 3137 960 3137 960 3137 >;
  2734.  
  2735. r_profile_t2_num = <100 >;
  2736. r_profile_t2 = <250 4165
  2737. 250 4149
  2738. 243 4136
  2739. 240 4121
  2740. 250 4110
  2741. 250 4098
  2742. 248 4086
  2743. 258 4081
  2744. 273 4077
  2745. 278 4067
  2746. 263 4047
  2747. 265 4025
  2748. 263 4006
  2749. 268 3993
  2750. 263 3983
  2751. 268 3975
  2752. 283 3971
  2753. 288 3968
  2754. 290 3964
  2755. 295 3958
  2756. 288 3949
  2757. 295 3943
  2758. 295 3934
  2759. 298 3928
  2760. 298 3920
  2761. 295 3913
  2762. 298 3906
  2763. 298 3898
  2764. 293 3890
  2765. 283 3878
  2766. 270 3865
  2767. 255 3853
  2768. 243 3843
  2769. 240 3836
  2770. 240 3829
  2771. 238 3824
  2772. 238 3820
  2773. 235 3814
  2774. 243 3812
  2775. 245 3807
  2776. 245 3803
  2777. 253 3801
  2778. 243 3796
  2779. 248 3794
  2780. 250 3791
  2781. 255 3789
  2782. 253 3786
  2783. 258 3784
  2784. 258 3782
  2785. 260 3781
  2786. 258 3779
  2787. 265 3779
  2788. 268 3777
  2789. 270 3775
  2790. 265 3772
  2791. 265 3769
  2792. 273 3765
  2793. 273 3761
  2794. 270 3757
  2795. 275 3752
  2796. 278 3747
  2797. 278 3741
  2798. 278 3733
  2799. 275 3724
  2800. 285 3717
  2801. 285 3706
  2802. 273 3697
  2803. 285 3695
  2804. 303 3694
  2805. 318 3692
  2806. 340 3690
  2807. 365 3684
  2808. 368 3651
  2809. 393 3587
  2810. 458 3498
  2811. 575 3347
  2812. 1070 3207
  2813. 933 3164
  2814. 863 3128
  2815. 830 3087
  2816. 710 3063
  2817. 663 3041
  2818. 640 3029
  2819. 570 3026
  2820. 583 3023
  2821. 655 3005
  2822. 575 2998
  2823. 675 2992
  2824. 630 2981
  2825. 665 2973
  2826. 610 2974
  2827. 528 2975
  2828. 673 2960
  2829. 703 2950 590 2949 473 2947 693 2944 725 2939 483 2936 480 2931 >;
  2830.  
  2831. r_profile_t3_num = <100 >;
  2832. r_profile_t3 = <138 4181
  2833. 138 4167
  2834. 138 4152
  2835. 140 4139
  2836. 140 4127
  2837. 143 4114
  2838. 143 4103
  2839. 143 4090
  2840. 140 4078
  2841. 143 4067
  2842. 145 4056
  2843. 155 4049
  2844. 153 4036
  2845. 155 4022
  2846. 155 4010
  2847. 155 4001
  2848. 160 3995
  2849. 163 3986
  2850. 163 3977
  2851. 170 3969
  2852. 163 3959
  2853. 173 3952
  2854. 173 3943
  2855. 175 3935
  2856. 180 3929
  2857. 178 3920
  2858. 178 3913
  2859. 180 3906
  2860. 180 3899
  2861. 190 3893
  2862. 190 3887
  2863. 190 3879
  2864. 180 3867
  2865. 158 3851
  2866. 145 3840
  2867. 143 3833
  2868. 140 3827
  2869. 138 3820
  2870. 138 3816
  2871. 143 3812
  2872. 145 3808
  2873. 145 3803
  2874. 145 3800
  2875. 150 3797
  2876. 153 3794
  2877. 153 3791
  2878. 158 3787
  2879. 155 3785
  2880. 160 3782
  2881. 160 3779
  2882. 160 3778
  2883. 163 3776
  2884. 168 3775
  2885. 163 3772
  2886. 158 3767
  2887. 148 3759
  2888. 145 3753
  2889. 150 3751
  2890. 148 3746
  2891. 150 3742
  2892. 150 3737
  2893. 148 3732
  2894. 155 3729
  2895. 158 3724
  2896. 150 3715
  2897. 155 3708
  2898. 153 3699
  2899. 150 3689
  2900. 143 3681
  2901. 150 3680
  2902. 160 3680
  2903. 168 3678
  2904. 180 3676
  2905. 180 3664
  2906. 170 3619
  2907. 188 3553
  2908. 205 3454
  2909. 300 3279
  2910. 858 3141
  2911. 783 3081
  2912. 653 3038
  2913. 530 3012
  2914. 515 2982
  2915. 458 2976
  2916. 498 2956
  2917. 475 2947
  2918. 440 2942
  2919. 425 2936
  2920. 383 2939
  2921. 415 2926
  2922. 330 2925
  2923. 320 2922
  2924. 325 2918
  2925. 385 2910 340 2904 353 2897 358 2891 365 2881 385 2873 320 2876 >;
  2926. };
  2927.  
  2928. BAT_NOTIFY {
  2929. compatible = "mediatek,bat_notify";
  2930. };
  2931.  
  2932. bat_comm: bat_comm {
  2933. compatible = "mediatek,battery";
  2934. /* cust_charging.h */
  2935. /* stop charging while in talking mode */
  2936. stop_charging_in_takling = <1 >;
  2937. talking_recharge_voltage = <3800 >;
  2938. talking_sync_time = <60 >;
  2939.  
  2940. /* Battery Temperature Protection */
  2941. mtk_temperature_recharge_support = <1 >;
  2942. max_charge_temperature = <50 >;
  2943. max_charge_temperature_minus_x_degree = <47 >;
  2944. min_charge_temperature = <0 >;
  2945. min_charge_temperature_plus_x_degree = <6 >;
  2946. err_charge_temperature = <0xff >;
  2947.  
  2948. /* Linear Charging Threshold */
  2949. v_pre2cc_thres = <3400 >; /* unit: mV */
  2950. v_cc2topoff_thres = <4050 >;
  2951. recharging_voltage = <4110 >;
  2952. charging_full_current = <100 >; /* unit: mA */
  2953.  
  2954. /* Charging Current Setting */
  2955. config_usb_if = <0 >;
  2956. usb_charger_current_suspend = <0 >; /* Unit: 0.01 mA */
  2957. usb_charger_current_unconfigured = <7000 >; /* Unit: 0.01 mA */
  2958. usb_charger_current_configured = <50000 >; /* Unit: 0.01 mA */
  2959. usb_charger_current = <50000 >; /* Unit: 0.01 mA */
  2960. ac_charger_current = <80000 >; /* Unit: 0.01 mA */
  2961. non_std_ac_charger_current = <50000 >; /* Unit: 0.01 mA */
  2962. charging_host_charger_current = <65000 >; /* Unit: 0.01 mA */
  2963. apple_0_5a_charger_current = <50000 >; /* Unit: 0.01 mA */
  2964. apple_1_0a_charger_current = <65000 >; /* Unit: 0.01 mA */
  2965. apple_2_1a_charger_current = <80000 >; /* Unit: 0.01 mA */
  2966.  
  2967. /* charger error check */
  2968. bat_low_temp_protect_enable = <0 >;
  2969. v_charger_enable = <0 >; /* 1:on , 0:off */
  2970. v_charger_max = <6500 >; /* unit: mV */
  2971. v_charger_min = <4400 >;
  2972.  
  2973. /* Tracking TIME */
  2974. onehundred_percent_tracking_time = <10 >; /* Unit: second */
  2975. npercent_tracking_time = <20 >; /* Unit: second */
  2976. sync_to_real_tracking_time = <60 >; /* Unit: second */
  2977. v_0percent_tracking = <3450 >; /* Unit: mV */
  2978.  
  2979. /* High battery support */
  2980. high_battery_voltage_support = <0 >;
  2981. };
  2982. dsi_te: dsi_te {
  2983. compatible = "mediatek, dsi_te_1-eint";
  2984. status = "disabled";
  2985. };
  2986. };
  2987.  
  2988. vcorefs {
  2989. compatible = "mediatek,mt6735-vcorefs";
  2990. clocks = <&topckgen TOP_MUX_AXI>,
  2991. <&topckgen TOP_SYSPLL_D5>,
  2992. <&topckgen TOP_SYSPLL1_D4>;
  2993. clock-names = "mux_axi",
  2994. "syspll_d5",
  2995. "syspll1_d4";
  2996. };
  2997.  
  2998. rf_clock_buffer_ctrl:rf_clock_buffer {
  2999. compatible = "mediatek,rf_clock_buffer";
  3000. mediatek,clkbuf-quantity = <4>;
  3001. mediatek,clkbuf-config = <2 1 1 1>;
  3002. };
  3003.  
  3004. /* sensor part */
  3005. hwmsensor {
  3006. compatible = "mediatek,hwmsensor";
  3007. };
  3008. gsensor {
  3009. compatible = "mediatek,gsensor";
  3010. };
  3011. alsps:als_ps {
  3012. compatible = "mediatek,als_ps";
  3013. };
  3014. m_acc_pl {
  3015. compatible = "mediatek,m_acc_pl";
  3016. };
  3017.  
  3018. m_alsps_pl {
  3019. compatible = "mediatek,m_alsps_pl";
  3020. };
  3021.  
  3022. m_batch_pl {
  3023. compatible = "mediatek,m_batch_pl";
  3024. };
  3025. batchsensor {
  3026. compatible = "mediatek,batchsensor";
  3027. };
  3028. gyro:gyroscope {
  3029. compatible = "mediatek,gyroscope";
  3030. };
  3031. m_gyro_pl {
  3032. compatible = "mediatek,m_gyro_pl";
  3033. };
  3034. barometer {
  3035. compatible = "mediatek,barometer";
  3036. };
  3037. m_baro_pl {
  3038. compatible = "mediatek,m_baro_pl";
  3039. };
  3040. msensor {
  3041. compatible = "mediatek,msensor";
  3042. };
  3043. m_mag_pl {
  3044. compatible = "mediatek,m_mag_pl";
  3045. };
  3046. orientation {
  3047. compatible = "mediatek,orientation";
  3048. };
  3049.  
  3050. als: als {
  3051. compatible = "mediatek, als-eint";
  3052. };
  3053.  
  3054. audio_switch {
  3055. compatible = "mediatek,audio_switch";
  3056. };
  3057.  
  3058. /* sensor end */
  3059.  
  3060. /* dummy nodes for cust_eint */
  3061. gse_1: gse_1 {
  3062. compatible = "mediatek, gse_1-eint";
  3063. status = "disabled";
  3064. };
  3065.  
  3066. ext_buck_oc: ext_buck_oc {
  3067. compatible = "mediatek, ext_buck_oc-eint";
  3068. status = "disabled";
  3069. };
  3070.  
  3071. mt8193ckgen: mt8193ckgen@0 {
  3072. compatible = "mediatek,mt8193-ckgen";
  3073. };
  3074.  
  3075. multibridge {
  3076. compatible = "mediatek,multibridge";
  3077. };
  3078.  
  3079. firmware {
  3080. android {
  3081. compatible = "android,firmware";
  3082. fstab {
  3083. compatible = "android,fstab";
  3084. #ifndef CONFIG_MTK_AB_OTA_UPDATER
  3085. system {
  3086. compatible = "android,system";
  3087. dev = "/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/system";
  3088. type = "ext4";
  3089. mnt_flags = "ro";
  3090. #ifndef CONFIG_MTK_DM_VERITY_OFF
  3091. fsmgr_flags = "wait,verify";
  3092. #else
  3093. fsmgr_flags = "wait";
  3094. #endif
  3095. };
  3096. #endif
  3097. #ifndef CONFIG_MTK_LATE_MOUNT
  3098. vendor {
  3099. compatible = "android,vendor";
  3100. dev = "/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/vendor";
  3101. type = "ext4";
  3102. mnt_flags = "ro";
  3103. #ifndef CONFIG_MTK_AB_OTA_UPDATER
  3104. #ifndef CONFIG_MTK_DM_VERITY_OFF
  3105. fsmgr_flags = "wait,verify";
  3106. #else
  3107. fsmgr_flags = "wait";
  3108. #endif
  3109. #else
  3110. #ifndef CONFIG_MTK_DM_VERITY_OFF
  3111. fsmgr_flags = "wait,slotselect,verify";
  3112. #else
  3113. fsmgr_flags = "wait,slotselect";
  3114. #endif
  3115. #endif
  3116. };
  3117. #endif
  3118. #ifdef CONFIG_TARGET_COPY_OUT_ODM
  3119. odm {
  3120. compatible = "android,odm";
  3121. dev = "/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/odm";
  3122. type = "ext4";
  3123. mnt_flags = "ro";
  3124. #ifndef CONFIG_MTK_AB_OTA_UPDATER
  3125. fsmgr_flags = "wait";
  3126. #else
  3127. fsmgr_flags = "wait,slotselect";
  3128. #endif
  3129. };
  3130. #endif
  3131. };
  3132. };
  3133. };
  3134.  
  3135. odm: odm{
  3136. compatible = "simple-bus";
  3137. /* reserved for overlay by odm */
  3138. };
  3139. };
  3140.  
  3141. &mt8193ckgen {
  3142. pinctrl-names = "default", "bus_switch_gpio", "bus_switch_dpi";
  3143. pinctrl-0 = <&mt8193ckgen_pins_default>;
  3144. pinctrl-1 = <&mt8193ckgen_pins_gpio>;
  3145. pinctrl-2 = <&mt8193ckgen_pins_dpi>;
  3146. bus_switch_pin = <&pio 0 0>;
  3147. status = "okay";
  3148. };
  3149.  
  3150. &pio {
  3151. mt8193ckgen_pins_default: 8193ckgen_default {
  3152. };
  3153.  
  3154. mt8193ckgen_pins_gpio: 8193ckgen_gpio {
  3155. pins_cmd_dat {
  3156. pins = <PINMUX_GPIO0__FUNC_GPIO0>;
  3157. slew-rate = <1>;
  3158. bias-pull-up = <00>;
  3159. output-high;
  3160. };
  3161. };
  3162.  
  3163. mt8193ckgen_pins_dpi: 8193ckgen_dpi {
  3164. pins_cmd_dat {
  3165. pins = <PINMUX_GPIO0__FUNC_DPI_D4>;
  3166. };
  3167. };
  3168. };
  3169.  
  3170. &eintc {
  3171. pmic@206 {
  3172. compatible = "mediatek, pmic-eint";
  3173. interrupt-parent = <&eintc>;
  3174. interrupts = <206 IRQ_TYPE_LEVEL_HIGH>;
  3175. debounce = <206 1000>;
  3176. };
  3177. };
  3178.  
  3179. &pio {
  3180. ssw_default:ssw0default {
  3181. };
  3182.  
  3183. ssw_hot_plug_mode1:ssw@1 {
  3184.  
  3185. pins_cmd0_dat {
  3186. pins = <PINMUX_GPIO8__FUNC_MD_EINT1>;
  3187. };
  3188.  
  3189. pins_cmd1_dat {
  3190. pins = <PINMUX_GPIO9__FUNC_MD_EINT2>;
  3191. };
  3192. };
  3193.  
  3194. ssw_hot_plug_mode2:ssw@2 {
  3195.  
  3196. pins_cmd0_dat {
  3197. pins = <PINMUX_GPIO8__FUNC_C2K_UIM0_HOT_PLUG_IN>;
  3198. };
  3199.  
  3200. pins_cmd1_dat {
  3201. pins = <PINMUX_GPIO9__FUNC_MD_EINT2>;
  3202. };
  3203. };
  3204.  
  3205. ssw_two_sims_bound_to_md1:ssw@3 {
  3206. pins_cmd0_dat {
  3207. pins = <PINMUX_GPIO163__FUNC_MD_SIM1_SCLK>;
  3208. slew-rate = <1>;
  3209. };
  3210.  
  3211. pins_cmd1_dat {
  3212. pins = <PINMUX_GPIO164__FUNC_MD_SIM1_SRST>;
  3213. slew-rate = <1>;
  3214. };
  3215.  
  3216. pins_cmd2_dat {
  3217. pins = <PINMUX_GPIO165__FUNC_MD_SIM1_SDAT>;
  3218. slew-rate = <0>;
  3219. bias-pull-up = <00>;
  3220.  
  3221. };
  3222.  
  3223. pins_cmd3_dat {
  3224. pins = <PINMUX_GPIO160__FUNC_MD_SIM2_SCLK>;
  3225. slew-rate = <1>;
  3226. };
  3227.  
  3228. pins_cmd4_dat {
  3229. pins = <PINMUX_GPIO161__FUNC_MD_SIM2_SRST>;
  3230. slew-rate = <1>;
  3231. };
  3232.  
  3233. pins_cmd5_dat {
  3234. pins = <PINMUX_GPIO162__FUNC_MD_SIM2_SDAT>;
  3235. slew-rate = <0>;
  3236. bias-pull-up = <00>;
  3237. };
  3238. };
  3239.  
  3240. ssw_sim1_md3_sim2_md1:ssw@4 {
  3241. pins_cmd0_dat {
  3242. pins = <PINMUX_GPIO163__FUNC_UIM0_CLK>;
  3243. };
  3244.  
  3245. pins_cmd1_dat {
  3246. pins = <PINMUX_GPIO164__FUNC_UIM0_RST>;
  3247. };
  3248.  
  3249. pins_cmd2_dat {
  3250. pins = <PINMUX_GPIO165__FUNC_UIM0_IO>;
  3251. };
  3252.  
  3253. pins_cmd3_dat {
  3254. pins = <PINMUX_GPIO160__FUNC_MD_SIM2_SCLK>;
  3255. };
  3256.  
  3257. pins_cmd4_dat {
  3258. pins = <PINMUX_GPIO161__FUNC_MD_SIM2_SRST>;
  3259. };
  3260.  
  3261. pins_cmd5_dat {
  3262. pins = <PINMUX_GPIO162__FUNC_MD_SIM2_SDAT>;
  3263. };
  3264. };
  3265. };
  3266.  
  3267. &mdcldma {
  3268. pinctrl-names = "default", "vsram_output_low", "vsram_output_high", "RFIC0_01_mode", "RFIC0_04_mode";
  3269.  
  3270. pinctrl-0 = <&vsram_default>;
  3271. pinctrl-1 = <&vsram_output_low>;
  3272. pinctrl-2 = <&vsram_output_high>;
  3273. pinctrl-3 = <&RFIC0_01_mode>;
  3274. pinctrl-4 = <&RFIC0_04_mode>;
  3275. };
  3276.  
  3277. &pio {
  3278. vsram_default: vsram0default {
  3279. };
  3280.  
  3281. vsram_output_low: vsram@1 {
  3282. pins_cmd_dat {
  3283. pins = <PINMUX_GPIO140__FUNC_GPIO140>;
  3284. slew-rate = <1>;
  3285. output-low;
  3286. };
  3287. };
  3288.  
  3289. vsram_output_high: vsram@2 {
  3290. pins_cmd_dat {
  3291. pins = <PINMUX_GPIO140__FUNC_GPIO140>;
  3292. slew-rate = <1>;
  3293. output-high;
  3294. };
  3295. };
  3296.  
  3297. RFIC0_01_mode: clockbuf@1{
  3298.  
  3299. pins_cmd0_dat {
  3300. pins = <PINMUX_GPIO110__FUNC_RFIC0_BSI_EN>;
  3301. };
  3302.  
  3303. pins_cmd1_dat {
  3304. pins = <PINMUX_GPIO111__FUNC_RFIC0_BSI_CK>;
  3305. };
  3306.  
  3307. pins_cmd2_dat {
  3308. pins = <PINMUX_GPIO112__FUNC_RFIC0_BSI_D2>;
  3309. };
  3310.  
  3311.  
  3312. pins_cmd3_dat {
  3313. pins = <PINMUX_GPIO113__FUNC_RFIC0_BSI_D1>;
  3314. };
  3315.  
  3316. pins_cmd4_dat {
  3317. pins = <PINMUX_GPIO114__FUNC_RFIC0_BSI_D0>;
  3318. };
  3319. };
  3320.  
  3321. RFIC0_04_mode: clockbuf@2{
  3322.  
  3323. pins_cmd0_dat {
  3324. pins = <PINMUX_GPIO110__FUNC_SPM_BSI_EN>;
  3325. };
  3326.  
  3327. pins_cmd1_dat {
  3328. pins = <PINMUX_GPIO111__FUNC_SPM_BSI_CLK>;
  3329. };
  3330.  
  3331. pins_cmd2_dat {
  3332. pins = <PINMUX_GPIO112__FUNC_SPM_BSI_D2>;
  3333. };
  3334.  
  3335. pins_cmd3_dat {
  3336. pins = <PINMUX_GPIO113__FUNC_SPM_BSI_D1>;
  3337. };
  3338.  
  3339. pins_cmd4_dat {
  3340. pins = <PINMUX_GPIO114__FUNC_SPM_BSI_D0>;
  3341. };
  3342.  
  3343. };
  3344. };
  3345.  
  3346. &pio {
  3347. /* UART GPIO Settings - Start */
  3348.  
  3349. /* UART0: rx set, rx clear, tx clear, tx clear*/
  3350. uart0_gpio_def_cfg:uart0gpiodefault {
  3351.  
  3352. };
  3353. uart0_rx_set_cfg:uart0_rx_set@gpio74 {
  3354. pins_cmd_dat {
  3355. pins = <PINMUX_GPIO74__FUNC_URXD0>;
  3356. };
  3357. };
  3358. uart0_rx_clr_cfg:uart0_rx_clear@gpio74 {
  3359. pins_cmd_dat {
  3360. pins = <PINMUX_GPIO74__FUNC_GPIO74>;
  3361. slew-rate = <1>;
  3362. output-high;
  3363. };
  3364. };
  3365. uart0_tx_set_cfg:uart0_tx_set@gpio75 {
  3366. pins_cmd_dat {
  3367. pins = <PINMUX_GPIO75__FUNC_UTXD0>;
  3368. };
  3369. };
  3370. uart0_tx_clr_cfg:uart0_tx_clear@gpio75 {
  3371. pins_cmd_dat {
  3372. pins = <PINMUX_GPIO75__FUNC_GPIO75>;
  3373. slew-rate = <1>;
  3374. output-high;
  3375. };
  3376. };
  3377.  
  3378. /* UART1: rx set, rx clear, tx clear, tx clear*/
  3379. uart1_gpio_def_cfg:uart1gpiodefault {
  3380.  
  3381. };
  3382. uart1_rx_set_cfg:uart1_rx_set@gpio76 {
  3383. pins_cmd_dat {
  3384. pins = <PINMUX_GPIO76__FUNC_URXD1>;
  3385. };
  3386. };
  3387. uart1_rx_clr_cfg:uart1_rx_clear@gpio76 {
  3388. pins_cmd_dat {
  3389. pins = <PINMUX_GPIO76__FUNC_GPIO76>;
  3390. slew-rate = <1>;
  3391. output-high;
  3392. };
  3393. };
  3394. uart1_tx_set_cfg:uart1_tx_set@gpio77 {
  3395. pins_cmd_dat {
  3396. pins = <PINMUX_GPIO77__FUNC_UTXD1>;
  3397. };
  3398. };
  3399. uart1_tx_clr_cfg:uart1_tx_clear@gpio77 {
  3400. pins_cmd_dat {
  3401. pins = <PINMUX_GPIO77__FUNC_GPIO77>;
  3402. slew-rate = <1>;
  3403. output-high;
  3404. };
  3405. };
  3406.  
  3407.  
  3408. /* UART2: rx set, rx clear, tx clear, tx clear*/
  3409. uart2_gpio_def_cfg:uart2gpiodefault {
  3410.  
  3411. };
  3412. uart2_rx_set_cfg:uart2_rx_set@gpio57 {
  3413. pins_cmd_dat {
  3414. pins = <PINMUX_GPIO57__FUNC_URXD2>;
  3415. };
  3416. };
  3417. uart2_rx_clr_cfg:uart2_rx_clear@gpio57 {
  3418. pins_cmd_dat {
  3419. pins = <PINMUX_GPIO57__FUNC_GPIO57>;
  3420. slew-rate = <1>;
  3421. output-high;
  3422. };
  3423. };
  3424. uart2_tx_set_cfg:uart2_tx_set@gpio58 {
  3425. pins_cmd_dat {
  3426. pins = <PINMUX_GPIO58__FUNC_UTXD2>;
  3427. };
  3428. };
  3429. uart2_tx_clr_cfg:uart2_tx_clear@gpio58 {
  3430. pins_cmd_dat {
  3431. pins = <PINMUX_GPIO58__FUNC_GPIO58>;
  3432. slew-rate = <1>;
  3433. output-high;
  3434. };
  3435. };
  3436.  
  3437.  
  3438. /* UART3: rx set, rx clear, tx clear, tx clear*/
  3439. uart3_gpio_def_cfg:uart3gpiodefault {
  3440.  
  3441. };
  3442. uart3_rx_set_cfg:uart3_rx_set@gpio59 {
  3443. pins_cmd_dat {
  3444. pins = <PINMUX_GPIO59__FUNC_URXD3>;
  3445. };
  3446. };
  3447. uart3_rx_clr_cfg:uart3_rx_clear@gpio59 {
  3448. pins_cmd_dat {
  3449. pins = <PINMUX_GPIO59__FUNC_GPIO59>;
  3450. slew-rate = <1>;
  3451. output-high;
  3452. };
  3453. };
  3454. uart3_tx_set_cfg:uart3_tx_set@gpio60 {
  3455. pins_cmd_dat {
  3456. pins = <PINMUX_GPIO60__FUNC_UTXD3>;
  3457. };
  3458. };
  3459. uart3_tx_clr_cfg:uart3_tx_clear@gpio60 {
  3460. pins_cmd_dat {
  3461. pins = <PINMUX_GPIO60__FUNC_GPIO60>;
  3462. slew-rate = <1>;
  3463. output-high;
  3464. };
  3465. };
  3466.  
  3467. /* UART GPIO Settings - End */
  3468. };
  3469.  
  3470. &pio {
  3471. /* IRTX GPIO Settings -Start */
  3472. /* default: GPIO0, output, high */
  3473. irtx_gpio_default:irtx_gpio_led_def@gpio19 {
  3474. pins_cmd_dat {
  3475. pins = <PINMUX_GPIO19__FUNC_GPIO19>;
  3476. slew-rate = <1>;
  3477. bias-disable;
  3478. output-high;
  3479. input-schmitt-enable = <0>;
  3480. };
  3481. };
  3482.  
  3483. irtx_gpio_led_set:irtx_gpio_led_set@gpio19 {
  3484. pins_cmd_dat {
  3485. pins = <PINMUX_GPIO19__FUNC_IRTX_OUT>;
  3486. };
  3487. };
  3488. /* IRTX GPIO Settings -End */
  3489. };
  3490.  
  3491. #include <trusty.dtsi>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement