mt6735.dtsi 77 KB

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