mt6753.dtsi 52 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056
  1. /*
  2. * Mediatek's MT6753 SoC device tree source
  3. *
  4. * Copyright (c) 2013 MediaTek Co., Ltd.
  5. * http://www.mediatek.com
  6. *
  7. */
  8. #include <dt-bindings/clock/mt6735-clk.h>
  9. #include <dt-bindings/interrupt-controller/arm-gic.h>
  10. #include <dt-bindings/interrupt-controller/irq.h>
  11. #include "mt6735-pinfunc.h"
  12. #include <dt-bindings/mmc/mt67xx-msdc.h>
  13. / {
  14. model = "MT6753";
  15. compatible = "mediatek,MT6735";
  16. interrupt-parent = <&gic>;
  17. #address-cells = <2>;
  18. #size-cells = <2>;
  19. /* chosen */
  20. chosen {
  21. bootargs = "console=tty0 console=ttyMT0,921600n1 root=/dev/ram \
  22. initrd=0x44000000,0x300000 loglevel=8 androidboot.hardware=mt6735";
  23. };
  24. /* Do not put any bus before mtk-msdc, because it should be mtk-msdc.0 for partition device node usage */
  25. /*workaround for .0*/
  26. mtk-msdc.0 {
  27. compatible = "simple-bus";
  28. #address-cells = <1>;
  29. #size-cells = <1>;
  30. ranges = <0 0 0 0xffffffff>;
  31. mmc0: msdc0@11230000{
  32. compatible = "mediatek,mt6753-mmc";
  33. reg = <0x11230000 0x10000 /* MSDC0_BASE */
  34. 0x10000e84 0x2>; /* FPGA PWR_GPIO, PWR_GPIO_EO */
  35. interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_LOW>;
  36. status = "disabled";
  37. };
  38. mmc1: msdc1@11240000{
  39. compatible = "mediatek,mt6753-mmc";
  40. reg = <0x11240000 0x10000 /* MSDC1_BASE */
  41. 0x10000e84 0x2>; /* FPGA PWR_GPIO, PWR_GPIO_EO */
  42. interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_LOW>;
  43. status = "disabled";
  44. };
  45. mmc2: msdc2@11250000{
  46. compatible = "mediatek,mt6735-mmc";
  47. reg = <0x11250000 0x10000 /* MSDC2_BASE */
  48. 0x10000e84 0x2>; /* FPGA PWR_GPIO, PWR_GPIO_EO */
  49. interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_LOW>;
  50. status = "disabled";
  51. };
  52. mmc3: msdc3@11260000{
  53. compatible = "mediatek,mt6735-mmc";
  54. reg = <0x11260000 0x10000 /* MSDC2_BASE */
  55. 0x10000e84 0x2>; /* FPGA PWR_GPIO, PWR_GPIO_EO */
  56. interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_LOW>;
  57. status = "disabled";
  58. };
  59. /* only used for old way of DCT, can be removed in new platform */
  60. msdc1_ins: default {
  61. compatible = "mediatek, msdc1_ins-eint";
  62. };
  63. };
  64. psci {
  65. compatible = "arm,psci";
  66. method = "smc";
  67. cpu_suspend = <0x84000001>;
  68. cpu_off = <0x84000002>;
  69. cpu_on = <0x84000003>;
  70. affinity_info = <0x84000004>;
  71. };
  72. cpus { #address-cells = <1>;
  73. #size-cells = <0>;
  74. cpu0: cpu@000 {
  75. device_type = "cpu";
  76. compatible = "arm,cortex-a53";
  77. reg = <0x000>;
  78. enable-method = "spin-table";
  79. cpu-release-addr = <0x0 0x40000200>;
  80. clock-frequency = <1300000000>;
  81. };
  82. cpu1: cpu@001 {
  83. device_type = "cpu";
  84. compatible = "arm,cortex-a53";
  85. reg = <0x001>;
  86. enable-method = "spin-table";
  87. cpu-release-addr = <0x0 0x40000200>;
  88. clock-frequency = <1300000000>;
  89. };
  90. cpu2: cpu@002 {
  91. device_type = "cpu";
  92. compatible = "arm,cortex-a53";
  93. reg = <0x002>;
  94. enable-method = "spin-table";
  95. cpu-release-addr = <0x0 0x40000200>;
  96. clock-frequency = <1300000000>;
  97. };
  98. cpu3: cpu@003 {
  99. device_type = "cpu";
  100. compatible = "arm,cortex-a53";
  101. reg = <0x003>;
  102. enable-method = "spin-table";
  103. cpu-release-addr = <0x0 0x40000200>;
  104. clock-frequency = <1300000000>;
  105. };
  106. cpu4: cpu@100 {
  107. device_type = "cpu";
  108. compatible = "arm,cortex-a53";
  109. reg = <0x100>;
  110. enable-method = "spin-table";
  111. cpu-release-addr = <0x0 0x40000200>;
  112. clock-frequency = <1300000000>;
  113. };
  114. cpu5: cpu@101 {
  115. device_type = "cpu";
  116. compatible = "arm,cortex-a53";
  117. reg = <0x101>;
  118. enable-method = "spin-table";
  119. cpu-release-addr = <0x0 0x40000200>;
  120. clock-frequency = <1300000000>;
  121. };
  122. cpu6: cpu@102 {
  123. device_type = "cpu";
  124. compatible = "arm,cortex-a53";
  125. reg = <0x102>;
  126. enable-method = "spin-table";
  127. cpu-release-addr = <0x0 0x40000200>;
  128. clock-frequency = <1300000000>;
  129. };
  130. cpu7: cpu@103 {
  131. device_type = "cpu";
  132. compatible = "arm,cortex-a53";
  133. reg = <0x103>;
  134. enable-method = "spin-table";
  135. cpu-release-addr = <0x0 0x40000200>;
  136. clock-frequency = <1300000000>;
  137. };
  138. cpu-map {
  139. cluster0 {
  140. core0 {
  141. cpu = <&cpu0>;
  142. };
  143. core1 {
  144. cpu = <&cpu1>;
  145. };
  146. core2 {
  147. cpu = <&cpu2>;
  148. };
  149. core3 {
  150. cpu = <&cpu3>;
  151. };
  152. };
  153. cluster1 {
  154. core0 {
  155. cpu = <&cpu4>;
  156. };
  157. core1 {
  158. cpu = <&cpu5>;
  159. };
  160. core2 {
  161. cpu = <&cpu6>;
  162. };
  163. core3 {
  164. cpu = <&cpu7>;
  165. };
  166. };
  167. };
  168. };
  169. memory@00000000 {
  170. device_type = "memory";
  171. reg = <0 0x40000000 0 0x40000000>;
  172. };
  173. reserved-memory {
  174. #address-cells = <2>;
  175. #size-cells = <2>;
  176. ranges;
  177. /* reserve 192KB at DRAM start + 48MB */
  178. atf-reserved-memory@43000000 {
  179. compatible = "mediatek,mt6735-atf-reserved-memory",
  180. "mediatek,mt6735m-atf-reserved-memory",
  181. "mediatek,mt6753-atf-reserved-memory";
  182. no-map;
  183. reg = <0 0x43000000 0 0x30000>;
  184. };
  185. reserve-memory-ccci_md1 {
  186. compatible = "mediatek,reserve-memory-ccci_md1";
  187. no-map;
  188. size = <0 0x3810000>; // md_size+smem_size
  189. alignment = <0 0x2000000>;
  190. alloc-ranges = <0 0x40000000 0 0xC0000000>;
  191. };
  192. consys-reserve-memory {
  193. compatible = "mediatek,consys-reserve-memory";
  194. no-map;
  195. size = <0 0x100000>;
  196. alignment = <0 0x200000>;
  197. };
  198. ram_console-reserved-memory@43f00000 {
  199. compatible = "mediatek,ram_console";
  200. reg = <0 0x43f00000 0 0x10000>;
  201. };
  202. minirdump-reserved-memory@43ff0000 {
  203. compatible = "mediatek, minirdump";
  204. reg = <0 0x43ff0000 0 0x10000>;
  205. };
  206. pstore-reserved-memory@43f10000 {
  207. compatible = "mediatek,pstore";
  208. reg = <0 0x43f10000 0 0xe0000>;
  209. };
  210. };
  211. gic: interrupt-controller@10220000 {
  212. compatible = "mediatek,mt6735-gic";
  213. #interrupt-cells = <3>;
  214. #address-cells = <0>;
  215. interrupt-controller;
  216. reg = <0 0x10221000 0 0x1000>,
  217. <0 0x10222000 0 0x1000>,
  218. <0 0x10200620 0 0x1000>;
  219. mediatek,wdt_irq = <160>;
  220. gic-cpuif@0 {
  221. compatible = "arm,gic-cpuif";
  222. cpuif-id = <0>;
  223. cpu = <&cpu0>;
  224. };
  225. gic-cpuif@1 {
  226. compatible = "arm,gic-cpuif";
  227. cpuif-id = <1>;
  228. cpu = <&cpu1>;
  229. };
  230. gic-cpuif@2 {
  231. compatible = "arm,gic-cpuif";
  232. cpuif-id = <2>;
  233. cpu = <&cpu2>;
  234. };
  235. gic-cpuif@3 {
  236. compatible = "arm,gic-cpuif";
  237. cpuif-id = <3>;
  238. cpu = <&cpu3>;
  239. };
  240. };
  241. clocks {
  242. clk_null: clk_null {
  243. compatible = "fixed-clock";
  244. #clock-cells = <0>;
  245. clock-frequency = <0>;
  246. };
  247. clk26m: clk26m {
  248. compatible = "fixed-clock";
  249. #clock-cells = <0>;
  250. clock-frequency = <26000000>;
  251. };
  252. clk32k: clk32k {
  253. compatible = "fixed-clock";
  254. #clock-cells = <0>;
  255. clock-frequency = <32000>;
  256. };
  257. };
  258. soc {
  259. compatible = "simple-bus";
  260. #address-cells = <1>;
  261. #size-cells = <1>;
  262. ranges;
  263. chipid@08000000 {
  264. compatible = "mediatek,chipid";
  265. reg = <0x08000000 0x0004>,
  266. <0x08000004 0x0004>,
  267. <0x08000008 0x0004>,
  268. <0x0800000C 0x0004>;
  269. };
  270. topckgen: topckgen@0x10210000 {
  271. compatible = "mediatek,mt6735-topckgen";
  272. reg = <0x10210000 0x1000>;
  273. #clock-cells = <1>;
  274. };
  275. infrasys: infrasys@0x10000000 {
  276. compatible = "mediatek,mt6735-infrasys";
  277. reg = <0x10000000 0x1000>;
  278. #clock-cells = <1>;
  279. };
  280. perisys: perisys@0x10002000 {
  281. compatible = "mediatek,mt6735-perisys";
  282. reg = <0x10002000 0x1000>;
  283. #clock-cells = <1>;
  284. };
  285. gpio_usage_mapping:gpio {
  286. compatible = "mediatek,gpio_usage_mapping";
  287. };
  288. gpio: gpio@10211000 {
  289. compatible = "mediatek,gpio";
  290. reg = <0x10211000 0x1000>;
  291. };
  292. dramc_nao: dramc_nao@1020e000 {
  293. compatible = "mediatek,mt6735-dramc_nao";
  294. reg = <0x1020e000 0x1000>;
  295. };
  296. ddrphy: ddrphy@10213000 {
  297. compatible = "mediatek,mt6735-ddrphy";
  298. reg = <0x10213000 0x1000>;
  299. };
  300. dramc: dramc@10214000 {
  301. compatible = "mediatek,mt6735-dramc";
  302. reg = <0x10214000 0x1000>;
  303. clocks = <&infrasys INFRA_GCE>;
  304. clock-names = "infra-cqdma";
  305. };
  306. cpuxgpt: cpuxgpt@10200000 {
  307. compatible = "mediatek,mt6735-cpuxgpt";
  308. reg = <0x10200000 0x1000>;
  309. interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>,
  310. <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>,
  311. <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>,
  312. <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
  313. <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
  314. <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
  315. <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
  316. <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
  317. };
  318. apxgpt: apxgpt@10004000 {
  319. compatible = "mediatek,mt6735-apxgpt";
  320. reg = <0x10004000 0x1000>;
  321. interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_LOW>;
  322. clock-frequency = <13000000>;
  323. };
  324. timer {
  325. compatible = "arm,armv8-timer";
  326. interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, /*Secure Physical Timer Event*/
  327. <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, /*Non-Secure Physical Timer Event*/
  328. <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, /*Virtual Timer Event*/
  329. <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; /*Hypervisor Timer Event*/
  330. clock-frequency = <13000000>;
  331. };
  332. mt_pmic_regulator {
  333. compatible = "mediatek,mt_pmic";
  334. /*reg = <0x01>*/
  335. buck_regulators {
  336. compatible = "mediatek,mt_pmic_buck_regulators";
  337. mt_pmic_vpa_buck_reg: buck_vpa {
  338. regulator-name = "vpa";
  339. regulator-min-microvolt = <500000>;
  340. regulator-max-microvolt = <3650000>;
  341. regulator-ramp-delay = <50000>;
  342. regulator-enable-ramp-delay = <180>;
  343. };
  344. mt_pmic_vproc_buck_reg: buck_vproc {
  345. regulator-name = "vproc";
  346. regulator-min-microvolt = <600000>;
  347. regulator-max-microvolt = <1393750>;
  348. regulator-ramp-delay = <6250>;
  349. regulator-enable-ramp-delay = <180>;
  350. regulator-always-on;
  351. regulator-boot-on;
  352. };
  353. mt_pmic_vcore1_buck_reg: buck_vcore1 {
  354. regulator-name = "vcore1";
  355. regulator-min-microvolt = <600000>;
  356. regulator-max-microvolt = <1393750>;
  357. regulator-ramp-delay = <6250>;
  358. regulator-enable-ramp-delay = <180>;
  359. regulator-always-on;
  360. regulator-boot-on;
  361. };
  362. mt_pmic_vsys22_buck_reg: buck_vsys22 {
  363. regulator-name = "vsys22";
  364. regulator-min-microvolt = <1200000>;
  365. regulator-max-microvolt = <1993750>;
  366. regulator-ramp-delay = <6250>;
  367. regulator-enable-ramp-delay = <180>;
  368. regulator-always-on;
  369. regulator-boot-on;
  370. };
  371. mt_pmic_vlte_buck_reg: buck_vlte {
  372. regulator-name = "vlte";
  373. regulator-min-microvolt = <600000>;
  374. regulator-max-microvolt = <1393750>;
  375. regulator-ramp-delay = <6250>;
  376. regulator-enable-ramp-delay = <180>;
  377. regulator-always-on;
  378. regulator-boot-on;
  379. };
  380. }; /* End of buck_regulators */
  381. ldo_regulators {
  382. compatible = "mediatek,mt_pmic_ldo_regulators";
  383. mt_pmic_vaux18_ldo_reg: ldo_vaux18 {
  384. regulator-name = "vaux18";
  385. regulator-min-microvolt = <1800000>;
  386. regulator-max-microvolt = <1800000>;
  387. regulator-enable-ramp-delay = <264>;
  388. regulator-boot-on;
  389. };
  390. mt_pmic_vtcxo_0_ldo_reg: ldo_vtcxo_0 {
  391. regulator-name = "vtcxo_0";
  392. regulator-min-microvolt = <2800000>;
  393. regulator-max-microvolt = <2800000>;
  394. regulator-enable-ramp-delay = <110>;
  395. regulator-boot-on;
  396. };
  397. mt_pmic_vtcxo_1_ldo_reg: ldo_vtcxo_1 {
  398. regulator-name = "vtcxo_1";
  399. regulator-min-microvolt = <2800000>;
  400. regulator-max-microvolt = <2800000>;
  401. regulator-enable-ramp-delay = <110>;
  402. };
  403. mt_pmic_vaud28_ldo_reg: ldo_vaud28 {
  404. regulator-name = "vaud28";
  405. regulator-min-microvolt = <2800000>;
  406. regulator-max-microvolt = <2800000>;
  407. regulator-enable-ramp-delay = <264>;
  408. regulator-boot-on;
  409. };
  410. mt_pmic_vcn28_ldo_reg: ldo_vcn28 {
  411. regulator-name = "vcn28";
  412. regulator-min-microvolt = <2800000>;
  413. regulator-max-microvolt = <2800000>;
  414. regulator-enable-ramp-delay = <264>;
  415. };
  416. mt_pmic_vcama_ldo_reg: ldo_vcama {
  417. regulator-name = "vcama";
  418. regulator-min-microvolt = <1500000>;
  419. regulator-max-microvolt = <2800000>;
  420. regulator-enable-ramp-delay = <264>;
  421. };
  422. mt_pmic_vcn33_bt_ldo_reg: ldo_vcn33_bt {
  423. regulator-name = "vcn33_bt";
  424. regulator-min-microvolt = <3300000>;
  425. regulator-max-microvolt = <3600000>;
  426. regulator-enable-ramp-delay = <264>;
  427. };
  428. mt_pmic_vcn33_wifi_ldo_reg: ldo_vcn33_wifi {
  429. regulator-name = "vcn33_wifi";
  430. regulator-min-microvolt = <3300000>;
  431. regulator-max-microvolt = <3600000>;
  432. regulator-enable-ramp-delay = <264>;
  433. };
  434. mt_pmic_vusb33_ldo_reg: ldo_vusb33 {
  435. regulator-name = "vusb33";
  436. regulator-min-microvolt = <3300000>;
  437. regulator-max-microvolt = <3300000>;
  438. regulator-enable-ramp-delay = <264>;
  439. regulator-boot-on;
  440. };
  441. mt_pmic_vefuse_ldo_reg: ldo_vefuse {
  442. regulator-name = "vefuse";
  443. regulator-min-microvolt = <1800000>;
  444. regulator-max-microvolt = <2200000>;
  445. regulator-enable-ramp-delay = <264>;
  446. };
  447. mt_pmic_vsim1_ldo_reg: ldo_vsim1 {
  448. regulator-name = "vsim1";
  449. regulator-min-microvolt = <1700000>;
  450. regulator-max-microvolt = <2100000>;
  451. regulator-enable-ramp-delay = <264>;
  452. };
  453. mt_pmic_vsim2_ldo_reg: ldo_vsim2 {
  454. regulator-name = "vsim2";
  455. regulator-min-microvolt = <1700000>;
  456. regulator-max-microvolt = <2100000>;
  457. regulator-enable-ramp-delay = <264>;
  458. };
  459. mt_pmic_vemc33_ldo_reg: ldo_vemc_3v3 {
  460. regulator-name = "vemc_3v3";
  461. regulator-min-microvolt = <1800000>;
  462. regulator-max-microvolt = <3300000>;
  463. regulator-enable-ramp-delay = <264>;
  464. regulator-boot-on;
  465. };
  466. mt_pmic_vmch_ldo_reg: ldo_vmch {
  467. regulator-name = "vmch";
  468. regulator-min-microvolt = <2900000>;
  469. regulator-max-microvolt = <3300000>;
  470. regulator-enable-ramp-delay = <44>;
  471. regulator-boot-on;
  472. };
  473. mt_pmic_vtref_ldo_reg: ldo_vtref {
  474. regulator-name = "vtref";
  475. regulator-min-microvolt = <1800000>;
  476. regulator-max-microvolt = <1800000>;
  477. regulator-enable-ramp-delay = <240>;
  478. };
  479. mt_pmic_vmc_ldo_reg: ldo_vmc {
  480. regulator-name = "vmc";
  481. regulator-min-microvolt = <1800000>;
  482. regulator-max-microvolt = <3300000>;
  483. regulator-enable-ramp-delay = <44>;
  484. regulator-boot-on;
  485. };
  486. mt_pmic_vcam_af_ldo_reg: ldo_vcamaf {
  487. regulator-name = "vcamaf";
  488. regulator-min-microvolt = <1200000>;
  489. regulator-max-microvolt = <3300000>;
  490. regulator-enable-ramp-delay = <264>;
  491. };
  492. mt_pmic_vio28_ldo_reg: ldo_vio28 {
  493. regulator-name = "vio28";
  494. regulator-min-microvolt = <2800000>;
  495. regulator-max-microvolt = <2800000>;
  496. regulator-enable-ramp-delay = <264>;
  497. regulator-boot-on;
  498. };
  499. mt_pmic_vgp1_ldo_reg: ldo_vgp1 {
  500. regulator-name = "vgp1";
  501. regulator-min-microvolt = <1200000>;
  502. regulator-max-microvolt = <3300000>;
  503. regulator-enable-ramp-delay = <264>;
  504. };
  505. mt_pmic_vibr_ldo_reg: ldo_vibr {
  506. regulator-name = "vibr";
  507. regulator-min-microvolt = <1200000>;
  508. regulator-max-microvolt = <3300000>;
  509. regulator-enable-ramp-delay = <44>;
  510. };
  511. mt_pmic_vcamd_ldo_reg: ldo_vcamd {
  512. regulator-name = "vcamd";
  513. regulator-min-microvolt = <900000>;
  514. regulator-max-microvolt = <1500000>;
  515. regulator-enable-ramp-delay = <264>;
  516. };
  517. mt_pmic_vrf18_0_ldo_reg: ldo_vrf18_0 {
  518. regulator-name = "vrf18_0";
  519. regulator-min-microvolt = <1825000>;
  520. regulator-max-microvolt = <1825000>;
  521. regulator-enable-ramp-delay = <220>;
  522. };
  523. mt_pmic_vrf18_1_ldo_reg: ldo_vrf18_1 {
  524. regulator-name = "vrf18_1";
  525. regulator-min-microvolt = <1200000>;
  526. regulator-max-microvolt = <1825000>;
  527. regulator-enable-ramp-delay = <220>;
  528. };
  529. mt_pmic_vio18_ldo_reg: ldo_vio18 {
  530. regulator-name = "vio18";
  531. regulator-min-microvolt = <1800000>;
  532. regulator-max-microvolt = <1800000>;
  533. regulator-enable-ramp-delay = <264>;
  534. regulator-boot-on;
  535. };
  536. mt_pmic_vcn18_ldo_reg: ldo_vcn18 {
  537. regulator-name = "vcn18";
  538. regulator-min-microvolt = <1800000>;
  539. regulator-max-microvolt = <1800000>;
  540. regulator-enable-ramp-delay = <44>;
  541. };
  542. mt_pmic_vcam_io_ldo_reg: ldo_vcamio {
  543. regulator-name = "vcamio";
  544. regulator-min-microvolt = <1200000>;
  545. regulator-max-microvolt = <1800000>;
  546. regulator-enable-ramp-delay = <220>;
  547. };
  548. mt_pmic_vsram_ldo_reg: ldo_vsram {
  549. regulator-name = "vsram";
  550. regulator-min-microvolt = <700000>;
  551. regulator-max-microvolt = <1493750>;
  552. regulator-enable-ramp-delay = <220>;
  553. regulator-ramp-delay = <6250>;
  554. regulator-boot-on;
  555. };
  556. mt_pmic_vm_ldo_reg: ldo_vm {
  557. regulator-name = "vm";
  558. regulator-min-microvolt = <1240000>;
  559. regulator-max-microvolt = <1540000>;
  560. regulator-enable-ramp-delay = <264>;
  561. regulator-boot-on;
  562. };
  563. };/* End of ldo_regulators */
  564. regulators_supply {
  565. compatible = "mediatek,mt_pmic_regulator_supply";
  566. vaux18-supply = <&mt_pmic_vaux18_ldo_reg>;
  567. vtcxo_0-supply = <&mt_pmic_vtcxo_0_ldo_reg>;
  568. vtcxo_1-supply = <&mt_pmic_vtcxo_1_ldo_reg>;
  569. vaud28-supply = <&mt_pmic_vaud28_ldo_reg>;
  570. vefuse-supply = <&mt_pmic_vefuse_ldo_reg>;
  571. vsim1-supply = <&mt_pmic_vsim1_ldo_reg>;
  572. vsim2-supply = <&mt_pmic_vsim2_ldo_reg>;
  573. vemc_3v3-supply = <&mt_pmic_vemc33_ldo_reg>;
  574. vmch-supply = <&mt_pmic_vmch_ldo_reg>;
  575. vtref-supply = <&mt_pmic_vtref_ldo_reg>;
  576. vmc-supply = <&mt_pmic_vmc_ldo_reg>;
  577. vio28-supply = <&mt_pmic_vio28_ldo_reg>;
  578. vibr-supply = <&mt_pmic_vibr_ldo_reg>;
  579. vrf18_0-supply = <&mt_pmic_vrf18_0_ldo_reg>;
  580. vrf18_1-supply = <&mt_pmic_vrf18_1_ldo_reg>;
  581. vio18-supply = <&mt_pmic_vio18_ldo_reg>;
  582. vsram-supply = <&mt_pmic_vsram_ldo_reg>;
  583. vm-supply = <&mt_pmic_vm_ldo_reg>;
  584. };/* End of regulators_supply */
  585. };/* End of mt_pmic_regulator */
  586. sys_cirq: sys_cirq@10204000 {
  587. compatible = "mediatek,mt6735-sys_cirq";
  588. reg = <0x10204000 0x1000>;
  589. interrupts = <GIC_SPI 231 IRQ_TYPE_LEVEL_LOW>;
  590. mediatek,cirq_num = <159>;
  591. mediatek,spi_start_offset = <72>;
  592. };
  593. apmixedsys: apmixedsys@0x10209000 {
  594. compatible = "mediatek,mt6735-apmixedsys";
  595. reg = <0x10209000 0x1000>;
  596. #clock-cells = <1>;
  597. };
  598. toprgu: toprgu@10212000 {
  599. compatible = "mediatek,mt6735-rgu";
  600. reg = <0x10212000 0x1000>;
  601. interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_FALLING>;
  602. };
  603. auxadc: adc_hw@11001000 {
  604. compatible = "mediatek,mt6735-auxadc";
  605. reg = <0x11001000 0x1000>;
  606. interrupts = <GIC_SPI 76 IRQ_TYPE_EDGE_FALLING>;
  607. clocks = <&perisys PERI_AUXADC>;
  608. clock-names = "auxadc-main";
  609. };
  610. audiosys: audiosys@0x11220000 {
  611. compatible = "mediatek,mt6735-audiosys";
  612. reg = <0x11220000 0x10000>;
  613. #clock-cells = <1>;
  614. };
  615. mfgsys: mfgsys@0x13000000 {
  616. compatible = "mediatek,mt6735-mfgsys";
  617. reg = <0x13000000 0x1000>;
  618. #clock-cells = <1>;
  619. };
  620. mmsys: mmsys@0x14000000 {
  621. compatible = "mediatek,mt6735-mmsys";
  622. reg = <0x14000000 0x1000>;
  623. #clock-cells = <1>;
  624. };
  625. imgsys: imgsys@0x15000000 {
  626. compatible = "mediatek,mt6735-imgsys";
  627. reg = <0x15000000 0x1000>;
  628. #clock-cells = <1>;
  629. };
  630. vdecsys: vdecsys@0x16000000 {
  631. compatible = "mediatek,mt6735-vdecsys";
  632. reg = <0x16000000 0x1000>;
  633. interrupts = <GIC_SPI 179 IRQ_TYPE_LEVEL_LOW>;
  634. #clock-cells = <1>;
  635. };
  636. vencsys: vencsys@0x17000000 {
  637. compatible = "mediatek,mt6735-vencsys";
  638. reg = <0x17000000 0x1000>;
  639. interrupts = <GIC_SPI 180 IRQ_TYPE_LEVEL_LOW>;
  640. #clock-cells = <1>;
  641. };
  642. scpsys: scpsys@0x10000000 {
  643. compatible = "mediatek,mt6735-scpsys";
  644. reg = <0x10000000 0x1000>, <0x10006000 0x1000>;
  645. #clock-cells = <1>;
  646. };
  647. vdec_gcon: vdec_gcon@16000000 {
  648. compatible = "mediatek,mt6735-vdec_gcon";
  649. reg = <0x16000000 0x1000>;
  650. interrupts = <GIC_SPI 179 IRQ_TYPE_LEVEL_LOW>;
  651. clocks =
  652. <&mmsys MM_DISP0_SMI_COMMON>,
  653. <&vdecsys VDEC0_VDEC>,
  654. <&vdecsys VDEC1_LARB>,
  655. <&vencsys VENC_VENC>,
  656. <&vencsys VENC_LARB>,
  657. <&topckgen TOP_MUX_VDEC>,
  658. <&topckgen TOP_SYSPLL1_D2>,
  659. <&topckgen TOP_SYSPLL1_D4>,
  660. <&scpsys SCP_SYS_VDE>,
  661. <&scpsys SCP_SYS_VEN>,
  662. <&scpsys SCP_SYS_DIS>;
  663. clock-names =
  664. "MT_CG_DISP0_SMI_COMMON",
  665. "MT_CG_VDEC0_VDEC",
  666. "MT_CG_VDEC1_LARB",
  667. "MT_CG_VENC_VENC",
  668. "MT_CG_VENC_LARB",
  669. "MT_CG_TOP_MUX_VDEC",
  670. "MT_CG_TOP_SYSPLL1_D2",
  671. "MT_CG_TOP_SYSPLL1_D4",
  672. "MT_SCP_SYS_VDE",
  673. "MT_SCP_SYS_VEN",
  674. "MT_SCP_SYS_DIS";
  675. };
  676. vdec: vdec@16020000 {
  677. compatible = "mediatek,mt6735-vdec";
  678. reg = <0x16020000 0x10000>;
  679. interrupts = <GIC_SPI 179 IRQ_TYPE_LEVEL_LOW>;
  680. };
  681. venc_gcon: venc_gcon@17000000 {
  682. compatible = "mediatek,mt6735-venc_gcon";
  683. reg = <0x17000000 0x1000>;
  684. interrupts = <GIC_SPI 180 IRQ_TYPE_LEVEL_LOW>;
  685. };
  686. venc: venc@17002000 {
  687. compatible = "mediatek,mt6735-venc";
  688. reg = <0x17002000 0x1000>;
  689. interrupts = <GIC_SPI 180 IRQ_TYPE_LEVEL_LOW>;
  690. };
  691. jpgenc@17003000 {
  692. compatible = "mediatek,jpgenc";
  693. reg = <0x17003000 0x1000>;
  694. interrupts = <GIC_SPI 181 IRQ_TYPE_LEVEL_LOW>;
  695. clocks = <&scpsys SCP_SYS_DIS>,
  696. <&mmsys MM_DISP0_SMI_COMMON>,
  697. <&scpsys SCP_SYS_VEN>,
  698. <&vencsys VENC_LARB>,
  699. <&vencsys VENC_JPGENC>;
  700. clock-names = "disp-mtcmos",
  701. "disp-smi",
  702. "venc-mtcmos",
  703. "venc-larb",
  704. "venc-jpgenc";
  705. };
  706. jpgdec@17004000 {
  707. compatible = "mediatek,jpgdec";
  708. reg = <0x17004000 0x1000>;
  709. interrupts = <GIC_SPI 209 IRQ_TYPE_LEVEL_LOW>;
  710. clocks = <&scpsys SCP_SYS_DIS>,
  711. <&mmsys MM_DISP0_SMI_COMMON>,
  712. <&scpsys SCP_SYS_VEN>,
  713. <&vencsys VENC_LARB>,
  714. <&vencsys VENC_JPGDEC>;
  715. clock-names = "disp-mtcmos",
  716. "disp-smi",
  717. "venc-mtcmos",
  718. "venc-larb",
  719. "venc-jpgdec";
  720. };
  721. keypad: keypad@10003000 {
  722. compatible = "mediatek,mt6735-keypad";
  723. reg = <0x10003000 0x1000>;
  724. interrupts = <GIC_SPI 164 IRQ_TYPE_EDGE_FALLING>;
  725. };
  726. apirtx:irtx@11011000 {
  727. compatible = "mediatek,irtx";
  728. reg = <0x11011000 0x1000>;
  729. interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>;
  730. pwm_ch = <0>;
  731. clock-frequency = <26000000>;
  732. clock-div = <1>;
  733. clocks = <&perisys PERI_IRTX>;
  734. clock-names = "clk-irtx-main";
  735. };
  736. apuart0: apuart0@11002000 {
  737. cell-index = <0>;
  738. compatible = "mediatek,mt6735-uart";
  739. reg = <0x11002000 0x1000>, /* UART base */
  740. <0x11000400 0x1000>, /* DMA Tx base */
  741. <0x11000480 0x80>; /* DMA Rx base */
  742. interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>, /* UART IRQ */
  743. <GIC_SPI 103 IRQ_TYPE_LEVEL_LOW>, /* DMA Tx IRQ */
  744. <GIC_SPI 104 IRQ_TYPE_LEVEL_LOW>; /* DMA Rx IRQ */
  745. clock-frequency = <26000000>;
  746. clock-div = <1>;
  747. clocks = <&perisys PERI_UART0>, <&perisys PERI_APDMA>;
  748. clock-names = "uart0-main", "uart-apdma";
  749. };
  750. apuart1: apuart1@11003000 {
  751. cell-index = <1>;
  752. compatible = "mediatek,mt6735-uart";
  753. reg = <0x11003000 0x1000>, /* UART base */
  754. <0x11000500 0x80>, /* DMA Tx base */
  755. <0x11000580 0x80>; /* DMA Rx base */
  756. interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_LOW>, /* UART IRQ */
  757. <GIC_SPI 105 IRQ_TYPE_LEVEL_LOW>, /* DMA Tx IRQ */
  758. <GIC_SPI 106 IRQ_TYPE_LEVEL_LOW>; /* DMA Rx IRQ */
  759. clock-frequency = <26000000>;
  760. clock-div = <1>;
  761. clocks = <&perisys PERI_UART1>;
  762. clock-names = "uart1-main";
  763. };
  764. apuart2: apuart2@11004000 {
  765. cell-index = <2>;
  766. compatible = "mediatek,mt6735-uart";
  767. reg = <0x11004000 0x1000>, /* UART base */
  768. <0x11000600 0x80>, /* DMA Tx base */
  769. <0x11000680 0x80>; /* DMA Rx base */
  770. interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_LOW>, /* UART IRQ */
  771. <GIC_SPI 107 IRQ_TYPE_LEVEL_LOW>, /* DMA Tx IRQ */
  772. <GIC_SPI 108 IRQ_TYPE_LEVEL_LOW>; /* DMA Rx IRQ */
  773. clock-frequency = <26000000>;
  774. clock-div = <1>;
  775. clocks = <&perisys PERI_UART2>;
  776. clock-names = "uart2-main";
  777. };
  778. apuart3: apuart3@11005000 {
  779. cell-index = <3>;
  780. compatible = "mediatek,mt6735-uart";
  781. reg = <0x11005000 0x1000>, /* UART base */
  782. <0x11000700 0x80>, /* DMA Tx base */
  783. <0x11000780 0x80>; /* DMA Rx base */
  784. interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_LOW>, /* UART IRQ */
  785. <GIC_SPI 109 IRQ_TYPE_LEVEL_LOW>, /* DMA Tx IRQ */
  786. <GIC_SPI 110 IRQ_TYPE_LEVEL_LOW>; /* DMA Rx IRQ */
  787. clock-frequency = <26000000>;
  788. clock-div = <1>;
  789. clocks = <&perisys PERI_UART3>;
  790. clock-names = "uart3-main";
  791. };
  792. apuart4: apuart4@1100d000 {
  793. cell-index = <4>;
  794. compatible = "mediatek,mt6735-uart";
  795. reg = <0x1100d000 0x1000>, /* UART base */
  796. <0x11000800 0x80>, /* DMA Tx base */
  797. <0x11000880 0x80>; /* DMA Rx base */
  798. interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_LOW>, /* UART IRQ */
  799. <GIC_SPI 111 IRQ_TYPE_LEVEL_LOW>, /* DMA Tx IRQ */
  800. <GIC_SPI 112 IRQ_TYPE_LEVEL_LOW>; /* DMA Rx IRQ */
  801. clock-frequency = <26000000>;
  802. clock-div = <1>;
  803. clocks = <&perisys PERI_UART4>;
  804. clock-names = "uart4-main";
  805. };
  806. spi0:spi@1100a000 {
  807. compatible = "mediatek,mt6753-spi";
  808. cell-index = <0>;
  809. spi-padmacro = <0>;
  810. reg = <0x1100a000 0x1000>;
  811. interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_LOW>;
  812. };
  813. btif_tx:btif_tx@11000900 {
  814. compatible = "mediatek,btif_tx";
  815. reg = <0x11000900 0x80>;
  816. interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>;
  817. };
  818. btif_rx:btif_rx@11000980 {
  819. compatible = "mediatek,btif_rx";
  820. reg = <0x11000980 0x80>;
  821. interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_LOW>;
  822. };
  823. btif:btif@1100c000 {
  824. compatible = "mediatek,btif";
  825. reg = <0x1100c000 0x1000>;
  826. interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_LOW>;
  827. };/* End of btif */
  828. btcvsd@10000000 {
  829. compatible = "mediatek,audio_bt_cvsd";
  830. offset = <0x700 0x800 0xfd0 0xfd4 0xfd8>;
  831. /*INFRA MISC, conn_bt_cvsd_mask, cvsd_mcu_read, write, packet_indicator*/
  832. reg = <0x10000000 0x1000>, /*AUDIO_INFRA_BASE_PHYSICAL*/
  833. <0x18000000 0x10000>, /*PKV_PHYSICAL_BASE*/
  834. <0x18080000 0x8000>; /*SRAM_BANK2*/
  835. interrupts = <GIC_SPI 230 IRQ_TYPE_LEVEL_LOW>;
  836. };
  837. consys:consys@18070000 {
  838. compatible = "mediatek,mt6753-consys",
  839. "mediatek,mt6735-consys";
  840. reg = <0x18070000 0x0200>, /*CONN_MCU_CONFIG_BASE */
  841. <0x10212000 0x0100>, /*AP_RGU_BASE */
  842. <0x10000000 0x2000>, /*TOPCKGEN_BASE */
  843. <0x10006000 0x1000>; /*SPM_BASE */
  844. interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_LOW>, /* BGF_EINT */
  845. <GIC_SPI 227 IRQ_TYPE_LEVEL_LOW>; /* WDT_EINT */
  846. };
  847. wifi@180F0000 {
  848. compatible = "mediatek,wifi";
  849. reg = <0x180F0000 0x005c>;
  850. interrupts = <GIC_SPI 228 IRQ_TYPE_LEVEL_LOW>;
  851. };
  852. met_smi: met_smi@14017000 {
  853. compatible = "mediatek,met_smi";
  854. reg = <0x14017000 0x1000>, /* SMI_COMMON_EXT */
  855. <0x14016000 0x1000>, /* LARB 0 */
  856. <0x16010000 0x1000>, /* LARB 1 */
  857. <0x15001000 0x1000>, /* LARB 2 */
  858. <0x17001000 0x1000>; /* LARB 3 */
  859. /*
  860. clocks = <&mmsys MM_DISP0_SMI_COMMON>,
  861. <&mmsys MM_DISP0_SMI_LARB0>,
  862. <&imgsys IMG_IMAGE_LARB2_SMI>,
  863. <&vdecsys VDEC0_VDEC>,
  864. <&vdecsys VDEC1_LARB>,
  865. <&vencsys VENC_LARB>,
  866. <&vencsys VENC_VENC>;
  867. clock-names = "smi-common",
  868. "smi-larb0",
  869. "img-larb2",
  870. "vdec0-vdec",
  871. "vdec1-larb",
  872. "venc-larb",
  873. "venc-venc";
  874. */
  875. };
  876. gce@10217000 {
  877. compatible = "mediatek,gce";
  878. reg = <0x10217000 0x1000>;
  879. interrupts = <GIC_SPI 151 IRQ_TYPE_LEVEL_LOW>,
  880. <GIC_SPI 148 IRQ_TYPE_LEVEL_LOW>;
  881. disp_mutex_reg = <0x14015000 0x1000>;
  882. g3d_config_base = <0x13000000 0 0xffff0000>;
  883. mmsys_config_base = <0x14000000 1 0xffff0000>;
  884. disp_dither_base = <0x14010000 2 0xffff0000>;
  885. mm_na_base = <0x14020000 3 0xffff0000>;
  886. imgsys_base = <0x15000000 4 0xffff0000>;
  887. vdec_gcon_base = <0x16000000 5 0xffff0000>;
  888. venc_gcon_base = <0x17000000 6 0xffff0000>;
  889. conn_peri_base = <0x18000000 7 0xffff0000>;
  890. topckgen_base = <0x10000000 8 0xffff0000>;
  891. kp_base = <0x10010000 9 0xffff0000>;
  892. scp_sram_base = <0x10020000 10 0xffff0000>;
  893. infra_na3_base = <0x10030000 11 0xffff0000>;
  894. infra_na4_base = <0x10040000 12 0xffff0000>;
  895. scp_base = <0x10050000 13 0xffff0000>;
  896. mcucfg_base = <0x10200000 14 0xffff0000>;
  897. gcpu_base = <0x10210000 15 0xffff0000>;
  898. usb0_base = <0x11200000 16 0xffff0000>;
  899. usb_sif_base = <0x11210000 17 0xffff0000>;
  900. audio_base = <0x11220000 18 0xffff0000>;
  901. msdc0_base = <0x11230000 19 0xffff0000>;
  902. msdc1_base = <0x11240000 20 0xffff0000>;
  903. msdc2_base = <0x11250000 21 0xffff0000>;
  904. msdc3_base = <0x11260000 22 0xffff0000>;
  905. pwm_sw_base = <0x1100E000 99 0xfffff000>;
  906. mdp_rdma0_sof = <0>;
  907. mdp_rsz0_sof = <1>;
  908. mdp_rsz1_sof = <2>;
  909. mdp_tdshp_sof = <3>;
  910. mdp_wdma_sof = <4>;
  911. mdp_wrot_sof = <5>;
  912. disp_ovl0_sof = <6>;
  913. disp_ovl1_sof = <7>;
  914. disp_rdma0_sof = <8>;
  915. disp_rdma1_sof = <9>;
  916. disp_wdma0_sof = <10>;
  917. disp_ccorr_sof = <11>;
  918. disp_color_sof = <12>;
  919. disp_aal_sof = <13>;
  920. disp_gamma_sof = <14>;
  921. disp_dither_sof = <15>;
  922. disp_pwm0_sof = <17>;
  923. disp_od_sof = <18>;
  924. mdp_rdma0_frame_done = <19>;
  925. mdp_rsz0_frame_done = <20>;
  926. mdp_rsz1_frame_done = <21>;
  927. mdp_tdshp_frame_done = <22>;
  928. mdp_wdma_frame_done = <23>;
  929. mdp_wrot_write_frame_done = <24>;
  930. mdp_wrot_read_frame_done = <25>;
  931. disp_ovl0_frame_done = <26>;
  932. disp_ovl1_frame_done = <27>;
  933. disp_rdma0_frame_done = <28>;
  934. disp_rdma1_frame_done = <29>;
  935. disp_wdma0_frame_done = <30>;
  936. disp_ccorr_frame_done = <31>;
  937. disp_color_frame_done = <32>;
  938. disp_aal_frame_done = <33>;
  939. disp_gamma_frame_done = <34>;
  940. disp_dither_frame_done = <35>;
  941. disp_od_frame_done = <37>;
  942. disp_dpi0_frame_done = <38>;
  943. disp_dsi0_frame_done = <39>;
  944. stream_done_0 = <40>;
  945. stream_done_1 = <41>;
  946. stream_done_2 = <42>;
  947. stream_done_3 = <43>;
  948. stream_done_4 = <44>;
  949. stream_done_5 = <45>;
  950. stream_done_6 = <46>;
  951. stream_done_7 = <47>;
  952. stream_done_8 = <48>;
  953. stream_done_9 = <49>;
  954. buf_underrun_event_0 = <50>;
  955. buf_underrun_event_1 = <51>;
  956. dsi0_te_event = <52>;
  957. isp_frame_done_p2_2 = <65>;
  958. isp_frame_done_p2_1 = <66>;
  959. isp_frame_done_p2_0 = <67>;
  960. isp_frame_done_p1_1 = <68>;
  961. isp_frame_done_p1_0 = <69>;
  962. camsv_2_pass1_done = <70>;
  963. camsv_1_pass1_done = <71>;
  964. seninf_cam1_2_3_fifo_full = <72>;
  965. seninf_cam0_fifo_full = <73>;
  966. venc_done = <129>;
  967. jpgenc_done = <130>;
  968. jpgdec_done = <131>;
  969. venc_mb_done = <132>;
  970. venc_128byte_cnt_done = <133>;
  971. apxgpt2_count = <0x10004028>;
  972. };
  973. smi_larb0@14016000 {
  974. compatible = "mediatek,smi_larb0";
  975. reg = <0x14016000 0x1000>;
  976. };
  977. smi_larb1@16010000 {
  978. compatible = "mediatek,smi_larb1";
  979. reg = <0x16010000 0x1000>;
  980. interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_LOW>;
  981. };
  982. smi_larb2@15001000 {
  983. compatible = "mediatek,smi_larb2";
  984. reg = <0x15001000 0x1000>;
  985. interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_LOW>;
  986. };
  987. smi_larb3@17001000 {
  988. compatible = "mediatek,smi_larb3";
  989. reg = <0x17001000 0x1000>;
  990. interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_LOW>;
  991. };
  992. smi_common@14017000 {
  993. compatible = "mediatek,smi_common";
  994. reg = <0x14017000 0x1000>, /* SMI_COMMON_EXT */
  995. <0x14016000 0x1000>, /* LARB 0 */
  996. <0x16010000 0x1000>, /* LARB 1 */
  997. <0x15001000 0x1000>, /* LARB 2 */
  998. <0x17001000 0x1000>; /* LARB 3 */
  999. clocks = <&mmsys MM_DISP0_SMI_COMMON>,
  1000. <&mmsys MM_DISP0_SMI_LARB0>,
  1001. <&imgsys IMG_IMAGE_LARB2_SMI>,
  1002. <&vdecsys VDEC0_VDEC>,
  1003. <&vdecsys VDEC1_LARB>,
  1004. <&vencsys VENC_LARB>,
  1005. <&vencsys VENC_VENC>,
  1006. <&scpsys SCP_SYS_VEN>,
  1007. <&scpsys SCP_SYS_VDE>,
  1008. <&scpsys SCP_SYS_ISP>,
  1009. <&scpsys SCP_SYS_DIS>;
  1010. clock-names = "smi-common", "smi-larb0", "img-larb2", "vdec0-vdec", "vdec1-larb", "venc-larb",
  1011. "venc-venc", "mtcmos-ven", "mtcmos-vde", "mtcmos-isp", "mtcmos-dis";
  1012. };
  1013. mmsys_config@14000000 {
  1014. compatible = "mediatek,mmsys_config";
  1015. reg = <0x14000000 0x1000>;
  1016. interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_LOW>;
  1017. };
  1018. ispsys@15000000 {
  1019. compatible = "mediatek,mt6735-ispsys";
  1020. reg = <0x15004000 0x9000>, /*ISP_ADDR */
  1021. <0x1500D000 0x1000>, /*INNER_ISP_ADDR */
  1022. <0x15000000 0x10000>, /*IMGSYS_CONFIG_ADDR */
  1023. <0x10215000 0x3000>, /*MIPI_ANA_ADDR */
  1024. <0x10211000 0x1000>; /*GPIO_ADDR */
  1025. interrupts = <GIC_SPI 183 IRQ_TYPE_LEVEL_LOW>, /* CAM0 */
  1026. <GIC_SPI 184 IRQ_TYPE_LEVEL_LOW>, /* CAM1 */
  1027. <GIC_SPI 185 IRQ_TYPE_LEVEL_LOW>, /* CAM2 */
  1028. <GIC_SPI 206 IRQ_TYPE_LEVEL_LOW>, /* CAMSV0 */
  1029. <GIC_SPI 207 IRQ_TYPE_LEVEL_LOW>; /* CAMSV1 */
  1030. };
  1031. kd_camera_hw1:kd_camera_hw1@15008000 {
  1032. compatible = "mediatek,camera_hw";
  1033. reg = <0x15008000 0x1000>; /* SENINF_ADDR */
  1034. };
  1035. kd_camera_hw2:kd_camera_hw2@15008000 {
  1036. compatible = "mediatek,camera_hw2";
  1037. reg = <0x15008000 0x1000>; /* SENINF_ADDR */
  1038. };
  1039. SENINF_TOP@0x15008000 {
  1040. compatible = "mediatek,SENINF_TOP";
  1041. reg = <0x15008000 0x1000>;
  1042. interrupts = <0 182 0x8>;
  1043. };
  1044. fdvt@1500b000 {
  1045. compatible = "mediatek,fdvt";
  1046. reg = <0x1500b000 0x1000>;
  1047. interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_LOW>;
  1048. clocks = <&scpsys SCP_SYS_DIS>,
  1049. <&scpsys SCP_SYS_ISP>,
  1050. <&mmsys MM_DISP0_SMI_COMMON>,
  1051. <&imgsys IMG_IMAGE_FD>;
  1052. clock-names = "FD-SCP_SYS_DIS",
  1053. "FD-SCP_SYS_ISP",
  1054. "FD-MM_DISP0_SMI_COMMON",
  1055. "FD-IMG_IMAGE_FD";
  1056. };
  1057. mdp_rdma@14001000 {
  1058. compatible = "mediatek,mdp_rdma";
  1059. reg = <0x14001000 0x1000>;
  1060. interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_LOW>;
  1061. };
  1062. mdp_rsz0@14002000 {
  1063. compatible = "mediatek,mdp_rsz0";
  1064. reg = <0x14002000 0x1000>;
  1065. interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_LOW>;
  1066. };
  1067. mdp_rsz1@14003000 {
  1068. compatible = "mediatek,mdp_rsz1";
  1069. reg = <0x14003000 0x1000>;
  1070. interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_LOW>;
  1071. };
  1072. mdp_wdma@14004000 {
  1073. compatible = "mediatek,mdp_wdma";
  1074. reg = <0x14004000 0x1000>;
  1075. interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_LOW>;
  1076. };
  1077. mdp_wrot@14005000 {
  1078. compatible = "mediatek,mdp_wrot";
  1079. reg = <0x14005000 0x1000>;
  1080. interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_LOW>;
  1081. };
  1082. mdp_tdshp@14006000 {
  1083. compatible = "mediatek,mdp_tdshp";
  1084. reg = <0x14006000 0x1000>;
  1085. interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_LOW>;
  1086. };
  1087. hacc:hacc@10008000 {
  1088. compatible = "mediatek,hacc";
  1089. reg = <0x10008000 0x1000>;
  1090. interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_LOW>;
  1091. };
  1092. als: als {
  1093. compatible = "mediatek, als-eint";
  1094. };
  1095. gse_1: gse_1 {
  1096. compatible = "mediatek, gse_1-eint";
  1097. status = "disabled";
  1098. };
  1099. ext_buck_oc: ext_buck_oc {
  1100. compatible = "mediatek, ext_buck_oc-eint";
  1101. status = "disabled";
  1102. };
  1103. };
  1104. vcorefs {
  1105. compatible = "mediatek,mt6735-vcorefs";
  1106. clocks = <&topckgen TOP_MUX_AXI>,
  1107. <&topckgen TOP_SYSPLL_D5>,
  1108. <&topckgen TOP_SYSPLL1_D4>;
  1109. clock-names = "mux_axi",
  1110. "syspll_d5",
  1111. "syspll1_d4";
  1112. };
  1113. bus {
  1114. compatible = "simple-bus";
  1115. #address-cells = <1>;
  1116. #size-cells = <1>;
  1117. ranges = <0 0 0 0xffffffff>;
  1118. MCUCFG@0x10200000 {
  1119. compatible = "mediatek,MCUCFG";
  1120. reg = <0x10200000 0x200>;
  1121. interrupts = <0 71 0x4>;
  1122. };
  1123. mcucfg: mcucfg@10200000 {
  1124. compatible = "mediatek,mt6735-mcucfg";
  1125. reg = <0x10200000 0x200>;
  1126. interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
  1127. };
  1128. INFRACFG_AO@0x10000000 {
  1129. compatible = "mediatek,INFRACFG_AO";
  1130. reg = <0x10000000 0x1000>;
  1131. };
  1132. CKSYS@0x10210000 {
  1133. compatible = "mediatek,CKSYS";
  1134. reg = <0x10210000 0x1000>;
  1135. };
  1136. PERICFG@0x10002000 {
  1137. compatible = "mediatek,PERICFG";
  1138. reg = <0x10002000 0x1000>;
  1139. };
  1140. ap_dma:dma@11000000 {
  1141. compatible = "mediatek,ap_dma";
  1142. reg = <0x11000000 0x1000>;
  1143. interrupts = <0 114 0x8>;
  1144. };
  1145. i2c0:i2c@11007000 {
  1146. compatible = "mediatek,mt6753-i2c";
  1147. cell-index = <0>;
  1148. reg = <0x11007000 0x1000>;
  1149. interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_LOW>,
  1150. <GIC_SPI 98 IRQ_TYPE_LEVEL_LOW>;
  1151. def_speed = <100>;
  1152. };
  1153. i2c1:i2c@11008000 {
  1154. compatible = "mediatek,mt6753-i2c";
  1155. cell-index = <1>;
  1156. reg = <0x11008000 0x1000>;
  1157. interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_LOW>,
  1158. <GIC_SPI 99 IRQ_TYPE_LEVEL_LOW>;
  1159. def_speed = <100>;
  1160. };
  1161. i2c2:i2c@11009000 {
  1162. compatible = "mediatek,mt6753-i2c";
  1163. cell-index = <2>;
  1164. reg = <0x11009000 0x1000>;
  1165. interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_LOW>,
  1166. <GIC_SPI 100 IRQ_TYPE_LEVEL_LOW>;
  1167. def_speed = <100>;
  1168. };
  1169. i2c3:i2c@1100f000 {
  1170. compatible = "mediatek,mt6753-i2c";
  1171. cell-index = <3>;
  1172. reg = <0x1100f000 0x1000>;
  1173. interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_LOW>,
  1174. <GIC_SPI 101 IRQ_TYPE_LEVEL_LOW>;
  1175. def_speed = <100>;
  1176. };
  1177. i2c4:i2c@11012000 {
  1178. compatible = "mediatek,mt6753-i2c";
  1179. cell-index = <4>;
  1180. reg = <0x11012000 0x1000>;
  1181. interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_LOW>,
  1182. <GIC_SPI 102 IRQ_TYPE_LEVEL_LOW>;
  1183. def_speed = <100>;
  1184. };
  1185. eintc: eintc@10005000 {
  1186. compatible = "mediatek,mt-eic";
  1187. reg = <0x10005000 0x1000>;
  1188. interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
  1189. #interrupt-cells = <2>;
  1190. interrupt-controller;
  1191. mediatek,max_eint_num = <213>;
  1192. mediatek,mapping_table_entry = <0>;
  1193. };
  1194. SLEEP@0x10006000 {
  1195. compatible = "mediatek,SLEEP";
  1196. reg = <0x10006000 0x1000>;
  1197. interrupts = <0 165 0x8>,
  1198. <0 166 0x8>,
  1199. <0 167 0x8>,
  1200. <0 168 0x8>;
  1201. };
  1202. BAT_METTER {
  1203. compatible = "mediatek,bat_meter";
  1204. };
  1205. BAT_NOTIFY {
  1206. compatible = "mediatek,bat_notify";
  1207. };
  1208. BATTERY {
  1209. compatible = "mediatek,battery";
  1210. };
  1211. DEVAPC_AO@10007000 {
  1212. compatible = "mediatek,DEVAPC_AO";
  1213. reg = <0x10007000 0x1000>;
  1214. };
  1215. gcpu@10216000 {
  1216. compatible = "mediatek,gcpu";
  1217. reg = <0x10216000 0x1000>;
  1218. interrupts = <GIC_SPI 150 IRQ_TYPE_LEVEL_LOW>;
  1219. };
  1220. cqdma@10217c00 {
  1221. compatible = "mediatek,cqdma";
  1222. reg = <0x10217c00 0xc00>;
  1223. interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_LOW>;
  1224. nr_channel = <1>;
  1225. };
  1226. EMI@0x10203000 {
  1227. compatible = "mediatek,EMI";
  1228. reg = <0x10203000 0x1000>;
  1229. interrupts = <0 136 0x4>;
  1230. };
  1231. m4u@10205000 {
  1232. cell-index = <0>;
  1233. compatible = "mediatek,m4u";
  1234. reg = <0x10205000 0x1000>;
  1235. interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_LOW>;
  1236. clocks = <&infrasys INFRA_M4U>,
  1237. <&mmsys MM_DISP0_SMI_COMMON>,
  1238. <&mmsys MM_DISP0_SMI_LARB0>,
  1239. <&vdecsys VDEC0_VDEC>,
  1240. <&vdecsys VDEC1_LARB>,
  1241. <&imgsys IMG_IMAGE_LARB2_SMI>,
  1242. <&vencsys VENC_VENC>,
  1243. <&vencsys VENC_LARB>;
  1244. clock-names = "infra_m4u",
  1245. "smi_common",
  1246. "m4u_disp0_smi_larb0",
  1247. "m4u_vdec0_vdec",
  1248. "m4u_vdec1_larb",
  1249. "m4u_img_image_larb2_smi",
  1250. "m4u_venc_venc",
  1251. "m4u_venc_larb";
  1252. };
  1253. ccci_off@0 {
  1254. compatible = "mediatek,ccci_off";
  1255. clocks = <&scpsys SCP_SYS_MD1>;
  1256. clock-names = "scp-sys-md1-main";
  1257. };
  1258. mdcldma:mdcldma@1000A000 {
  1259. compatible = "mediatek,mdcldma";
  1260. reg = <0x1000A000 0x1000>, /*AP_CLDMA_AO*/
  1261. <0x1000B000 0x1000>, /*MD_CLDMA_AO*/
  1262. <0x1021A000 0x1000>, /*AP_CLDMA_PDN*/
  1263. <0x1021B000 0x1000>, /*MD_CLDMA_PDN*/
  1264. <0x1020A000 0x1000>, /*AP_CCIF_BASE*/
  1265. <0x1020B000 0x1000>; /*MD_CCIF_BASE*/
  1266. interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>, /*IRQ_CLDMA*/
  1267. <GIC_SPI 140 IRQ_TYPE_LEVEL_LOW>, /*IRQ_CCIF*/
  1268. <GIC_SPI 223 IRQ_TYPE_EDGE_FALLING>; /*IRQ_MDWDT*/
  1269. mediatek,md_id = <0>;
  1270. mediatek,cldma_capability = <2>;
  1271. mediatek,md_smem_size = <0x10000>; /* md share memory size */
  1272. };
  1273. mdc2k@3a00b01c {
  1274. compatible = "mediatek,mdc2k";
  1275. reg = <0x3a00b01c 0x10>, /*C2K CHIP ID*/
  1276. <0x1021c800 0x300>, /*MD1 PCCIF*/
  1277. <0x1021d800 0x300>; /*MD3 PCCIF*/
  1278. interrupts = <GIC_SPI 221 IRQ_TYPE_EDGE_FALLING>; /*WDT*/
  1279. clocks = <&scpsys SCP_SYS_MD2>;
  1280. clock-names = "scp-sys-md2-main";
  1281. };
  1282. c2k_sdio@0 {
  1283. compatible = "mediatek,mt6735-c2k_sdio";
  1284. interrupts = <GIC_SPI 222 IRQ_TYPE_LEVEL_LOW>;
  1285. };
  1286. dbgapb_base@1011A000{
  1287. compatible = "mediatek,dbgapb_base";
  1288. reg = <0x1011A000 0x100>;/* MD debug register */
  1289. };
  1290. ssw:simswitch@0 {
  1291. compatible = "mediatek,sim_switch";
  1292. pinctrl-names = "default",
  1293. "hot_plug_mode1",
  1294. "hot_plug_mode2",
  1295. "two_sims_bound_to_md1",
  1296. "sim1_md3_sim2_md1";
  1297. pinctrl-0 = <&ssw_default>;
  1298. pinctrl-1 = <&ssw_hot_plug_mode1>;
  1299. pinctrl-2 = <&ssw_hot_plug_mode2>;
  1300. pinctrl-3 = <&ssw_two_sims_bound_to_md1>;
  1301. pinctrl-4 = <&ssw_sim1_md3_sim2_md1>;
  1302. };
  1303. EFUSEC@10206000 {
  1304. compatible = "mediatek,EFUSEC";
  1305. reg = <0x10206000 0x1000>;
  1306. };
  1307. DEVAPC@10207000 {
  1308. compatible = "mediatek,DEVAPC";
  1309. reg = <0x10207000 0x1000>;
  1310. interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_LOW>;
  1311. };
  1312. bus_dbg@10208000 {
  1313. compatible = "mediatek,bus_dbg-v1";
  1314. reg = <0x10208000 0x1000>;
  1315. interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_LOW>;
  1316. };
  1317. APMIXED@0x10209000 {
  1318. compatible = "mediatek,APMIXED";
  1319. reg = <0x10209000 0x1000>;
  1320. };
  1321. FHCTL@0x10209F00 {
  1322. compatible = "mediatek,FHCTL";
  1323. reg = <0x10209F00 0x100>;
  1324. };
  1325. THERM_CTRL@0x1100B000 {
  1326. compatible = "mediatek,THERM_CTRL";
  1327. reg = <0x1100B000 0x1000>;
  1328. interrupts = <0 78 0x8>;
  1329. };
  1330. ptp_fsm@1100b000 {
  1331. compatible = "mediatek,ptp_fsm_v1";
  1332. reg = <0x1100b000 0x1000>;
  1333. interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_LOW>;
  1334. };
  1335. dispsys@14007000 {
  1336. compatible = "mediatek,dispsys";
  1337. reg = <0x14007000 0x1000>, /*DISP_OVL0 */
  1338. <0x14008000 0x1000>, /*DISP_OVL1 */
  1339. <0x14009000 0x1000>, /*DISP_RDMA0 */
  1340. <0x1400a000 0x1000>, /*DISP_RDMA1 */
  1341. <0x1400b000 0x1000>, /*DISP_WDMA0 */
  1342. <0x1400c000 0x1000>, /*DISP_COLOR */
  1343. <0x1400d000 0x1000>, /*DISP_CCORR */
  1344. <0x1400e000 0x1000>, /*DISP_AAL */
  1345. <0x1400f000 0x1000>, /*DISP_GAMMA */
  1346. <0x14010000 0x1000>, /*DISP_DITHER */
  1347. <0 0>, /*DISP_UFOE */
  1348. <0x1100e000 0x1000>, /*DISP_PWM */
  1349. <0 0>, /*DISP_WDMA1 */
  1350. <0x14015000 0x1000>, /*DISP_MUTEX */
  1351. <0x14013000 0x1000>, /*DISP_DSI0 */
  1352. <0x14014000 0x1000>, /*DISP_DPI0 */
  1353. <0x14000000 0x1000>, /*DISP_CONFIG */
  1354. <0x14016000 0x1000>, /*DISP_SMI_LARB0 */
  1355. <0x14017000 0x1000>, /*DISP_SMI_COMMOM*/
  1356. <0x14018000 0x1000>, /*MIPITX0,real chip would use this:<0x14017000 0x1000>;*/
  1357. <0x10206000 0x1000>, /*DISP_CONFIG2*/
  1358. <0x10210000 0x1000>, /*DISP_CONFIG3*/
  1359. <0x10211a70 0x000c>, /*DISP_DPI_IO_DRIVING1 */
  1360. <0x10211974 0x000c>, /*DISP_DPI_IO_DRIVING2 */
  1361. <0x10211b70 0x000c>, /*DISP_DPI_IO_DRIVING3 */
  1362. <0x10206044 0x000c>, /*DISP_DPI_EFUSE */
  1363. <0x10206514 0x000c>, /*DISP_DPI_EFUSE_PERMISSION */
  1364. <0x10206558 0x000c>, /*DISP_DPI_EFUSE_KEY */
  1365. <0x102100a0 0x1000>, /*DISP_TVDPLL_CFG6 */
  1366. <0x10209270 0x1000>, /*DISP_TVDPLL_CON0 */
  1367. <0x10209274 0x1000>, /*DISP_TVDPLL_CON1 */
  1368. <0x14012000 0x1000>, /*DISP_OD */
  1369. <0x10209000 0x1000>; /*DISP_VENCPLL */
  1370. interrupts = <0 193 8>, /*DISP_OVL0 */
  1371. <0 211 8>, /*DISP_OVL1 */
  1372. <0 194 8>, /*DISP_RDMA0 */
  1373. <0 195 8>, /*DISP_RDMA1 */
  1374. <0 196 8>, /*DISP_WDMA0 */
  1375. <0 197 8>, /*DISP_COLOR */
  1376. <0 198 8>, /*DISP_CCORR */
  1377. <0 199 8>, /*DISP_AAL */
  1378. <0 200 8>, /*DISP_GAMMA */
  1379. <0 201 8>, /*DISP_DITHER */
  1380. <0 0 8>, /*DISP_UFOE */
  1381. <0 117 8>, /*DISP_PWM */
  1382. <0 0 8>, /*DISP_WDMA1 */
  1383. <0 186 8>, /*DISP_MUTEX */
  1384. <0 203 8>, /*DISP_DSI0 */
  1385. <0 204 8>, /*DISP_DPI0 */
  1386. <0 205 8>, /*DISP_CONFIG, 0 means no IRQ*/
  1387. <0 176 8>, /*DISP_SMI_LARB0 */
  1388. <0 0 8>, /*DISP_SMI_COMMOM*/
  1389. <0 0 8>, /*MIPITX0,real chip would use this:<0x14017000 0x1000>;*/
  1390. <0 0 8>, /*DISP_CONFIG2*/
  1391. <0 0 8>, /*DISP_CONFIG3*/
  1392. <0 0 8>, /*DISP_DPI_IO_DRIVING1 */
  1393. <0 0 8>, /*DISP_DPI_IO_DRIVING2 */
  1394. <0 0 8>, /*DISP_DPI_IO_DRIVING3 */
  1395. <0 0 8>, /*DISP_DPI_EFUSE */
  1396. <0 0 8>, /*DISP_DPI_EFUSE_PERMISSION */
  1397. <0 0 8>, /*DISP_DPI_EFUSE_KEY */
  1398. <0 0 8>, /*DISP_TVDPLL_CFG6 */
  1399. <0 0 8>, /*DISP_TVDPLL_CON0 */
  1400. <0 0 8>, /*DISP_TVDPLL_CON1 */
  1401. <0 210 8>, /*DISP_OD */
  1402. <0 0 8>; /*DISP_VENCPLL */
  1403. };
  1404. lcm_mode: lcm_mode {
  1405. compatible = "mediatek,lcm_mode";
  1406. };
  1407. cpu_dbgapb: cpu_dbgapb {
  1408. compatible = "mediatek,mt6735-dbg_debug";
  1409. num = <8>;
  1410. reg = <0x10810000 0x1000
  1411. 0x10910000 0x1000
  1412. 0x10A10000 0x1000
  1413. 0x10B10000 0x1000
  1414. 0x10C10000 0x1000
  1415. 0x10D10000 0x1000
  1416. 0x10E10000 0x1000
  1417. 0x10F10000 0x1000>;
  1418. };
  1419. syscfg_pctl_a: syscfg_pctl_a {
  1420. compatible = "mediatek,mt6735-pctl-a-syscfg", "syscon";
  1421. reg = <0 10211000 0 1000>;
  1422. };
  1423. pio: pinctrl {
  1424. compatible = "mediatek,mt6735-pinctrl";
  1425. reg = <0 10211000 0 1000>;
  1426. mediatek,pctl-regmap = <&syscfg_pctl_a>;
  1427. pins-are-numbered;
  1428. gpio-controller;
  1429. #gpio-cells = <2>;
  1430. };
  1431. usb0:usb20@11200000 {
  1432. compatible = "mediatek,mt6735-usb20";
  1433. cell-index = <0>;
  1434. reg = <0x11200000 0x10000>,
  1435. <0x11210000 0x10000>;
  1436. interrupts = <0 72 0x8>;
  1437. mode = <2>;
  1438. multipoint = <1>;
  1439. dyn_fifo = <1>;
  1440. soft_con = <1>;
  1441. dma = <1>;
  1442. num_eps = <16>;
  1443. dma_channels = <8>;
  1444. clocks = <&perisys PERI_USB0>;
  1445. clock-names = "usb0";
  1446. VUSB33-supply = <&mt_pmic_vusb33_ldo_reg>;
  1447. iddig_gpio = <0 1>;
  1448. drvvbus_gpio = <83 2>;
  1449. };
  1450. audio@11220000 {
  1451. compatible = "mediatek,audio";
  1452. reg = <0x11220000 0x10000>;
  1453. interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_LOW>;
  1454. };
  1455. mt_soc_dl1_pcm@11220000 {
  1456. compatible = "mediatek,mt-soc-dl1-pcm";
  1457. reg = <0x11220000 0x1000>;
  1458. interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_LOW>;
  1459. audclk-gpio = <143 0>;
  1460. audmiso-gpio = <144 0>;
  1461. audmosi-gpio = <145 0>;
  1462. vowclk-gpio = <148 0>;
  1463. extspkamp-gpio = <117 0>;
  1464. i2s1clk-gpio = <80 0>;
  1465. i2s1dat-gpio = <78 0>;
  1466. i2s1mclk-gpio = <9 0>;
  1467. i2s1ws-gpio = <79 0>;
  1468. };
  1469. mt_soc_ul1_pcm@11220000 {
  1470. compatible = "mediatek,mt_soc_pcm_capture";
  1471. };
  1472. mt_soc_voice_md1@11220000 {
  1473. compatible = "mediatek,mt_soc_pcm_voice_md1";
  1474. };
  1475. mt_soc_hdmi_pcm@11220000 {
  1476. compatible = "mediatek,mt_soc_pcm_hdmi";
  1477. };
  1478. mt_soc_uldlloopback_pcm@11220000 {
  1479. compatible = "mediatek,mt_soc_pcm_uldlloopback";
  1480. };
  1481. mt_soc_i2s0_pcm@11220000 {
  1482. compatible = "mediatek,mt_soc_pcm_dl1_i2s0";
  1483. };
  1484. mt_soc_mrgrx_pcm@11220000 {
  1485. compatible = "mediatek,mt_soc_pcm_mrgrx";
  1486. };
  1487. mt_soc_mrgrx_awb_pcm@11220000 {
  1488. compatible = "mediatek,mt_soc_pcm_mrgrx_awb";
  1489. };
  1490. mt_soc_fm_i2s_pcm@11220000 {
  1491. compatible = "mediatek,mt_soc_pcm_fm_i2s";
  1492. };
  1493. mt_soc_fm_i2s_awb_pcm@11220000 {
  1494. compatible = "mediatek,mt_soc_pcm_fm_i2s_awb";
  1495. };
  1496. mt_soc_i2s0dl1_pcm@11220000 {
  1497. compatible = "mediatek,mt_soc_pcm_dl1_i2s0Dl1";
  1498. };
  1499. mt_soc_dl1_awb_pcm@11220000 {
  1500. compatible = "mediatek,mt_soc_pcm_dl1_awb";
  1501. };
  1502. mt_soc_voice_md1_bt@11220000 {
  1503. compatible = "mediatek,mt_soc_pcm_voice_md1_bt";
  1504. };
  1505. mt_soc_voip_bt_out@11220000 {
  1506. compatible = "mediatek,mt_soc_pcm_dl1_bt";
  1507. };
  1508. mt_soc_voip_bt_in@11220000 {
  1509. compatible = "mediatek,mt_soc_pcm_bt_dai";
  1510. };
  1511. mt_soc_tdmrx_pcm@11220000 {
  1512. compatible = "mediatek,mt_soc_tdm_capture";
  1513. };
  1514. mt_soc_fm_mrgtx_pcm@11220000 {
  1515. compatible = "mediatek,mt_soc_pcm_fmtx";
  1516. };
  1517. mt_soc_ul2_pcm@11220000 {
  1518. compatible = "mediatek,mt_soc_pcm_capture2";
  1519. };
  1520. mt_soc_i2s0_awb_pcm@11220000 {
  1521. compatible = "mediatek,mt_soc_pcm_i2s0_awb";
  1522. };
  1523. mt_soc_voice_md2@11220000 {
  1524. compatible = "mediatek,mt_soc_pcm_voice_md2";
  1525. };
  1526. mt_soc_routing_pcm@11220000 {
  1527. compatible = "mediatek,mt_soc_pcm_routing";
  1528. i2s1clk-gpio = <7 6>;
  1529. i2s1dat-gpio = <5 6>;
  1530. i2s1mclk-gpio = <9 6>;
  1531. i2s1ws-gpio = <6 6>;
  1532. };
  1533. mt_soc_voice_md2_bt@11220000 {
  1534. compatible = "mediatek,mt_soc_pcm_voice_md2_bt";
  1535. };
  1536. mt_soc_hp_impedance_pcm@11220000 {
  1537. compatible = "mediatek,Mt_soc_pcm_hp_impedance";
  1538. };
  1539. mt_soc_codec_name@11220000 {
  1540. compatible = "mediatek,mt_soc_codec_63xx";
  1541. };
  1542. mt_soc_dummy_pcm@11220000 {
  1543. compatible = "mediatek,mt_soc_pcm_dummy";
  1544. };
  1545. mt_soc_codec_dummy_name@11220000 {
  1546. compatible = "mediatek,mt_soc_codec_dummy";
  1547. };
  1548. mt_soc_routing_dai_name@11220000 {
  1549. compatible = "mediatek,mt_soc_dai_routing";
  1550. };
  1551. mt_soc_dai_name@11220000 {
  1552. compatible = "mediatek,mt_soc_dai_stub";
  1553. };
  1554. mt_soc_offload_gdma@11220000 {
  1555. compatible = "mediatek,mt_soc_pcm_offload_gdma";
  1556. };
  1557. mt_soc_dl2_pcm@11220000 {
  1558. compatible = "mediatek,mt_soc_pcm_dl2";
  1559. };
  1560. pwrap {
  1561. compatible = "mediatek,PWRAP";
  1562. reg = <0x10001000 0x1000>;
  1563. interrupts = <0 163 0x4>;
  1564. };
  1565. touch: touch@ {
  1566. compatible = "mediatek,mt6735-touch",
  1567. "mediatek,mt6735m-touch",
  1568. "mediatek,mt6753-touch";
  1569. vtouch-supply = <&mt_pmic_vgp1_ldo_reg>;
  1570. };
  1571. accdet: accdet@ {
  1572. compatible = "mediatek,mt6735-accdet",
  1573. "mediatek,mt6735m-accdet",
  1574. "mediatek,mt6753-accdet";
  1575. };
  1576. G3D_CONFIG@0x13000000 {
  1577. compatible = "mediatek,G3D_CONFIG";
  1578. reg = <0x13000000 0x1000>;
  1579. };
  1580. MALI@0x13040000 {
  1581. compatible = "arm,malit720", "arm,mali-t72x", "arm,malit7xx", "arm,mali-midgard";
  1582. reg = <0x13040000 0x4000>;
  1583. interrupts = <0 214 0x8>, <0 213 0x8>, <0 212 0x8>;
  1584. interrupt-names = "JOB", "MMU", "GPU";
  1585. clock-frequency = <450000000>;
  1586. clocks = <&mfgsys MFG_BG3D>, <&mmsys MM_DISP0_SMI_COMMON>,
  1587. <&scpsys SCP_SYS_MFG>, <&scpsys SCP_SYS_DIS>;
  1588. clock-names = "mfg-main", "mfg-smi-common", "mtcmos-mfg", "mtcmos-display";
  1589. };
  1590. pwm:pwm@11006000 {
  1591. compatible = "mediatek,pwm";
  1592. reg = <0x11006000 0x1000>;
  1593. interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_LOW>;
  1594. };
  1595. };
  1596. /* NFC start */
  1597. nfc:nfc@0 {
  1598. compatible = "mediatek,nfc-gpio-v2";
  1599. gpio-ven = <4>;
  1600. gpio-rst = <3>;
  1601. gpio-eint = <1>;
  1602. gpio-irq = <2>;
  1603. };
  1604. /* NFC end */
  1605. gps {
  1606. compatible = "mediatek,mt3326-gps";
  1607. };
  1608. rf_clock_buffer_ctrl:rf_clock_buffer {
  1609. compatible = "mediatek,rf_clock_buffer";
  1610. mediatek,clkbuf-quantity = <4>;
  1611. mediatek,clkbuf-config = <2 1 1 1>;
  1612. };
  1613. MOBICORE {
  1614. compatible = "trustonic,mobicore";
  1615. interrupts = <GIC_SPI 248 IRQ_TYPE_EDGE_RISING>;
  1616. };
  1617. /* sensor part */
  1618. hwmsensor@0 {
  1619. compatible = "mediatek,hwmsensor";
  1620. };
  1621. gsensor@0 {
  1622. compatible = "mediatek,gsensor";
  1623. };
  1624. alsps:als_ps@0 {
  1625. compatible = "mediatek,als_ps";
  1626. };
  1627. m_acc_pl@0 {
  1628. compatible = "mediatek,m_acc_pl";
  1629. };
  1630. m_alsps_pl@0 {
  1631. compatible = "mediatek,m_alsps_pl";
  1632. };
  1633. m_batch_pl@0 {
  1634. compatible = "mediatek,m_batch_pl";
  1635. };
  1636. batchsensor@0 {
  1637. compatible = "mediatek,batchsensor";
  1638. };
  1639. gyro:gyroscope@0 {
  1640. compatible = "mediatek,gyroscope";
  1641. };
  1642. m_gyro_pl@0 {
  1643. compatible = "mediatek,m_gyro_pl";
  1644. };
  1645. barometer@0 {
  1646. compatible = "mediatek,barometer";
  1647. };
  1648. m_baro_pl@0 {
  1649. compatible = "mediatek,m_baro_pl";
  1650. };
  1651. msensor@0 {
  1652. compatible = "mediatek,msensor";
  1653. };
  1654. m_mag_pl@0 {
  1655. compatible = "mediatek,m_mag_pl";
  1656. };
  1657. orientation@0 {
  1658. compatible = "mediatek,orientation";
  1659. };
  1660. /* sensor end */
  1661. };
  1662. #include "cust.dtsi"
  1663. &eintc {
  1664. pmic@206 {
  1665. compatible = "mediatek, pmic-eint";
  1666. interrupt-parent = <&eintc>;
  1667. interrupts = <206 4>;
  1668. debounce = <206 1000>;
  1669. };
  1670. };
  1671. &pio {
  1672. ssw_default:ssw0default {
  1673. };
  1674. ssw_hot_plug_mode1:ssw@1 {
  1675. pins_cmd0_dat {
  1676. pins = <PINMUX_GPIO8__FUNC_MD_EINT1>;
  1677. };
  1678. pins_cmd1_dat {
  1679. pins = <PINMUX_GPIO9__FUNC_MD_EINT2>;
  1680. };
  1681. };
  1682. ssw_hot_plug_mode2:ssw@2 {
  1683. pins_cmd0_dat {
  1684. pins = <PINMUX_GPIO8__FUNC_C2K_UIM0_HOT_PLUG_IN>;
  1685. };
  1686. pins_cmd1_dat {
  1687. pins = <PINMUX_GPIO9__FUNC_MD_EINT2>;
  1688. };
  1689. };
  1690. ssw_two_sims_bound_to_md1:ssw@3 {
  1691. pins_cmd0_dat {
  1692. pins = <PINMUX_GPIO163__FUNC_MD_SIM1_SCLK>;
  1693. slew-rate = <1>;
  1694. };
  1695. pins_cmd1_dat {
  1696. pins = <PINMUX_GPIO164__FUNC_MD_SIM1_SRST>;
  1697. slew-rate = <1>;
  1698. };
  1699. pins_cmd2_dat {
  1700. pins = <PINMUX_GPIO165__FUNC_MD_SIM1_SDAT>;
  1701. slew-rate = <0>;
  1702. bias-pull-up = <00>;
  1703. };
  1704. pins_cmd3_dat {
  1705. pins = <PINMUX_GPIO160__FUNC_MD_SIM2_SCLK>;
  1706. slew-rate = <1>;
  1707. };
  1708. pins_cmd4_dat {
  1709. pins = <PINMUX_GPIO161__FUNC_MD_SIM2_SRST>;
  1710. slew-rate = <1>;
  1711. };
  1712. pins_cmd5_dat {
  1713. pins = <PINMUX_GPIO162__FUNC_MD_SIM2_SDAT>;
  1714. slew-rate = <0>;
  1715. bias-pull-up = <00>;
  1716. };
  1717. };
  1718. ssw_sim1_md3_sim2_md1:ssw@4 {
  1719. pins_cmd0_dat {
  1720. pins = <PINMUX_GPIO163__FUNC_UIM0_CLK>;
  1721. };
  1722. pins_cmd1_dat {
  1723. pins = <PINMUX_GPIO164__FUNC_UIM0_RST>;
  1724. };
  1725. pins_cmd2_dat {
  1726. pins = <PINMUX_GPIO165__FUNC_UIM0_IO>;
  1727. };
  1728. pins_cmd3_dat {
  1729. pins = <PINMUX_GPIO160__FUNC_MD_SIM2_SCLK>;
  1730. };
  1731. pins_cmd4_dat {
  1732. pins = <PINMUX_GPIO161__FUNC_MD_SIM2_SRST>;
  1733. };
  1734. pins_cmd5_dat {
  1735. pins = <PINMUX_GPIO162__FUNC_MD_SIM2_SDAT>;
  1736. };
  1737. };
  1738. };
  1739. /*SSW end*/
  1740. /*GPIO standardization CLDMA*/
  1741. &mdcldma {
  1742. pinctrl-names = "default", "vsram_output_low", "vsram_output_high", "RFIC0_01_mode", "RFIC0_04_mode";
  1743. pinctrl-0 = <&vsram_default>;
  1744. pinctrl-1 = <&vsram_output_low>;
  1745. pinctrl-2 = <&vsram_output_high>;
  1746. pinctrl-3 = <&RFIC0_01_mode>;
  1747. pinctrl-4 = <&RFIC0_04_mode>;
  1748. };
  1749. &pio {
  1750. vsram_default: vsram0default {
  1751. };
  1752. vsram_output_low: vsram@1 {
  1753. pins_cmd_dat {
  1754. pins = <PINMUX_GPIO140__FUNC_GPIO140>;
  1755. slew-rate = <1>;
  1756. output-low;
  1757. };
  1758. };
  1759. vsram_output_high: vsram@2 {
  1760. pins_cmd_dat {
  1761. pins = <PINMUX_GPIO140__FUNC_GPIO140>;
  1762. slew-rate = <1>;
  1763. output-high;
  1764. };
  1765. };
  1766. RFIC0_01_mode: clockbuf@1{
  1767. pins_cmd0_dat {
  1768. pins = <PINMUX_GPIO110__FUNC_RFIC0_BSI_EN>;
  1769. };
  1770. pins_cmd1_dat {
  1771. pins = <PINMUX_GPIO111__FUNC_RFIC0_BSI_CK>;
  1772. };
  1773. pins_cmd2_dat {
  1774. pins = <PINMUX_GPIO112__FUNC_RFIC0_BSI_D2>;
  1775. };
  1776. pins_cmd3_dat {
  1777. pins = <PINMUX_GPIO113__FUNC_RFIC0_BSI_D1>;
  1778. };
  1779. pins_cmd4_dat {
  1780. pins = <PINMUX_GPIO114__FUNC_RFIC0_BSI_D0>;
  1781. };
  1782. };
  1783. RFIC0_04_mode: clockbuf@2{
  1784. pins_cmd0_dat {
  1785. pins = <PINMUX_GPIO110__FUNC_SPM_BSI_EN>;
  1786. };
  1787. pins_cmd1_dat {
  1788. pins = <PINMUX_GPIO111__FUNC_SPM_BSI_CLK>;
  1789. };
  1790. pins_cmd2_dat {
  1791. pins = <PINMUX_GPIO112__FUNC_SPM_BSI_D2>;
  1792. };
  1793. pins_cmd3_dat {
  1794. pins = <PINMUX_GPIO113__FUNC_SPM_BSI_D1>;
  1795. };
  1796. pins_cmd4_dat {
  1797. pins = <PINMUX_GPIO114__FUNC_SPM_BSI_D0>;
  1798. };
  1799. };
  1800. };
  1801. /*CLDMA end*/
  1802. #include <trusty.dtsi>