mt6735.dtsi 80 KB

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