302-dts-support-layercape.patch 271 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429
  1. From 1806d342beb334c8cb0a438315ad5529262b2791 Mon Sep 17 00:00:00 2001
  2. From: Yangbo Lu <[email protected]>
  3. Date: Wed, 17 Jan 2018 14:52:50 +0800
  4. Subject: [PATCH 04/30] dts: support layercape
  5. This is an integrated patch for layerscape dts support.
  6. Signed-off-by: Amrita Kumari <[email protected]>
  7. Signed-off-by: Alison Wang <[email protected]>
  8. Signed-off-by: Li Yang <[email protected]>
  9. Signed-off-by: Ashish Kumar <[email protected]>
  10. Signed-off-by: Zhao Qiang <[email protected]>
  11. Signed-off-by: Rajesh Bhagat <[email protected]>
  12. Signed-off-by: Zhang Ying-22455 <[email protected]>
  13. Signed-off-by: Madalin Bucur <[email protected]>
  14. Signed-off-by: Minghuan Lian <[email protected]>
  15. Signed-off-by: Suresh Gupta <[email protected]>
  16. Signed-off-by: Chenhui Zhao <[email protected]>
  17. Signed-off-by: Priyanka Jain <[email protected]>
  18. Signed-off-by: Hou Zhiqiang <[email protected]>
  19. Signed-off-by: Changming Huang <[email protected]>
  20. Signed-off-by: Bharat Bhushan <[email protected]>
  21. Signed-off-by: Meng Yi <[email protected]>
  22. Signed-off-by: Shaohui Xie <[email protected]>
  23. Signed-off-by: Marc Zyngier <[email protected]>
  24. Signed-off-by: Prabhakar Kushwaha <[email protected]>
  25. Signed-off-by: Ran Wang <[email protected]>
  26. Signed-off-by: Yangbo Lu <[email protected]>
  27. ---
  28. arch/arm/boot/dts/alpine.dtsi | 2 +-
  29. arch/arm/boot/dts/axm55xx.dtsi | 2 +-
  30. arch/arm/boot/dts/ecx-2000.dts | 2 +-
  31. arch/arm/boot/dts/imx6ul.dtsi | 4 +-
  32. arch/arm/boot/dts/keystone.dtsi | 4 +-
  33. arch/arm/boot/dts/ls1021a-qds.dts | 21 +
  34. arch/arm/boot/dts/ls1021a-twr.dts | 25 +
  35. arch/arm/boot/dts/ls1021a.dtsi | 197 +++--
  36. arch/arm/boot/dts/mt6580.dtsi | 2 +-
  37. arch/arm/boot/dts/mt6589.dtsi | 2 +-
  38. arch/arm/boot/dts/mt8127.dtsi | 2 +-
  39. arch/arm/boot/dts/mt8135.dtsi | 2 +-
  40. arch/arm/boot/dts/rk3288.dtsi | 2 +-
  41. arch/arm/boot/dts/sun6i-a31.dtsi | 2 +-
  42. arch/arm/boot/dts/sun7i-a20.dtsi | 4 +-
  43. arch/arm/boot/dts/sun8i-a23-a33.dtsi | 2 +-
  44. arch/arm/boot/dts/sun9i-a80.dtsi | 2 +-
  45. arch/arm64/boot/dts/freescale/Makefile | 17 +
  46. .../boot/dts/freescale/fsl-ls1012a-2g5rdb.dts | 123 +++
  47. arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts | 177 ++++
  48. arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts | 202 +++++
  49. arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts | 138 ++++
  50. arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 602 ++++++++++++++
  51. arch/arm64/boot/dts/freescale/fsl-ls1043-post.dtsi | 45 +
  52. .../boot/dts/freescale/fsl-ls1043a-qds-sdk.dts | 69 ++
  53. arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts | 171 +++-
  54. .../boot/dts/freescale/fsl-ls1043a-rdb-sdk.dts | 69 ++
  55. .../boot/dts/freescale/fsl-ls1043a-rdb-usdpaa.dts | 117 +++
  56. arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts | 113 ++-
  57. arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 308 ++++++-
  58. arch/arm64/boot/dts/freescale/fsl-ls1046-post.dtsi | 48 ++
  59. .../boot/dts/freescale/fsl-ls1046a-qds-sdk.dts | 110 +++
  60. arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts | 363 ++++++++
  61. .../boot/dts/freescale/fsl-ls1046a-rdb-sdk.dts | 83 ++
  62. .../boot/dts/freescale/fsl-ls1046a-rdb-usdpaa.dts | 110 +++
  63. arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts | 218 +++++
  64. arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 800 ++++++++++++++++++
  65. arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts | 173 ++++
  66. arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts | 236 ++++++
  67. arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 825 ++++++++++++++++++
  68. arch/arm64/boot/dts/freescale/fsl-ls2080a-qds.dts | 191 ++---
  69. arch/arm64/boot/dts/freescale/fsl-ls2080a-rdb.dts | 169 ++--
  70. arch/arm64/boot/dts/freescale/fsl-ls2080a-simu.dts | 9 +-
  71. arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi | 763 +++--------------
  72. arch/arm64/boot/dts/freescale/fsl-ls2081a-rdb.dts | 161 ++++
  73. arch/arm64/boot/dts/freescale/fsl-ls2088a-qds.dts | 162 ++++
  74. arch/arm64/boot/dts/freescale/fsl-ls2088a-rdb.dts | 140 ++++
  75. arch/arm64/boot/dts/freescale/fsl-ls2088a.dtsi | 195 +++++
  76. arch/arm64/boot/dts/freescale/fsl-ls208xa-qds.dtsi | 198 +++++
  77. arch/arm64/boot/dts/freescale/fsl-ls208xa-rdb.dtsi | 161 ++++
  78. arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 919 +++++++++++++++++++++
  79. .../boot/dts/freescale/qoriq-bman1-portals.dtsi | 81 ++
  80. arch/arm64/boot/dts/freescale/qoriq-dpaa-eth.dtsi | 73 ++
  81. .../boot/dts/freescale/qoriq-fman3-0-10g-0.dtsi | 43 +
  82. .../boot/dts/freescale/qoriq-fman3-0-10g-1.dtsi | 43 +
  83. .../boot/dts/freescale/qoriq-fman3-0-1g-0.dtsi | 42 +
  84. .../boot/dts/freescale/qoriq-fman3-0-1g-1.dtsi | 42 +
  85. .../boot/dts/freescale/qoriq-fman3-0-1g-2.dtsi | 42 +
  86. .../boot/dts/freescale/qoriq-fman3-0-1g-3.dtsi | 42 +
  87. .../boot/dts/freescale/qoriq-fman3-0-1g-4.dtsi | 42 +
  88. .../boot/dts/freescale/qoriq-fman3-0-1g-5.dtsi | 42 +
  89. .../boot/dts/freescale/qoriq-fman3-0-6oh.dtsi | 47 ++
  90. arch/arm64/boot/dts/freescale/qoriq-fman3-0.dtsi | 130 +++
  91. .../boot/dts/freescale/qoriq-qman1-portals.dtsi | 104 +++
  92. arch/powerpc/boot/dts/fsl/qoriq-bman1-portals.dtsi | 10 +
  93. arch/powerpc/boot/dts/fsl/qoriq-fman3-0-10g-0.dtsi | 4 +-
  94. arch/powerpc/boot/dts/fsl/qoriq-fman3-0-10g-1.dtsi | 4 +-
  95. 67 files changed, 8231 insertions(+), 1022 deletions(-)
  96. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1012a-2g5rdb.dts
  97. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts
  98. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts
  99. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts
  100. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
  101. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1043-post.dtsi
  102. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1043a-qds-sdk.dts
  103. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb-sdk.dts
  104. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb-usdpaa.dts
  105. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1046-post.dtsi
  106. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1046a-qds-sdk.dts
  107. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts
  108. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-sdk.dts
  109. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-usdpaa.dts
  110. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts
  111. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi
  112. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts
  113. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts
  114. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
  115. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls2081a-rdb.dts
  116. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls2088a-qds.dts
  117. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls2088a-rdb.dts
  118. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls2088a.dtsi
  119. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls208xa-qds.dtsi
  120. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls208xa-rdb.dtsi
  121. create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi
  122. create mode 100644 arch/arm64/boot/dts/freescale/qoriq-bman1-portals.dtsi
  123. create mode 100644 arch/arm64/boot/dts/freescale/qoriq-dpaa-eth.dtsi
  124. create mode 100644 arch/arm64/boot/dts/freescale/qoriq-fman3-0-10g-0.dtsi
  125. create mode 100644 arch/arm64/boot/dts/freescale/qoriq-fman3-0-10g-1.dtsi
  126. create mode 100644 arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-0.dtsi
  127. create mode 100644 arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-1.dtsi
  128. create mode 100644 arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-2.dtsi
  129. create mode 100644 arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-3.dtsi
  130. create mode 100644 arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-4.dtsi
  131. create mode 100644 arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-5.dtsi
  132. create mode 100644 arch/arm64/boot/dts/freescale/qoriq-fman3-0-6oh.dtsi
  133. create mode 100644 arch/arm64/boot/dts/freescale/qoriq-fman3-0.dtsi
  134. create mode 100644 arch/arm64/boot/dts/freescale/qoriq-qman1-portals.dtsi
  135. --- a/arch/arm/boot/dts/alpine.dtsi
  136. +++ b/arch/arm/boot/dts/alpine.dtsi
  137. @@ -93,7 +93,7 @@
  138. interrupt-controller;
  139. reg = <0x0 0xfb001000 0x0 0x1000>,
  140. <0x0 0xfb002000 0x0 0x2000>,
  141. - <0x0 0xfb004000 0x0 0x1000>,
  142. + <0x0 0xfb004000 0x0 0x2000>,
  143. <0x0 0xfb006000 0x0 0x2000>;
  144. interrupts =
  145. <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  146. --- a/arch/arm/boot/dts/axm55xx.dtsi
  147. +++ b/arch/arm/boot/dts/axm55xx.dtsi
  148. @@ -62,7 +62,7 @@
  149. #address-cells = <0>;
  150. interrupt-controller;
  151. reg = <0x20 0x01001000 0 0x1000>,
  152. - <0x20 0x01002000 0 0x1000>,
  153. + <0x20 0x01002000 0 0x2000>,
  154. <0x20 0x01004000 0 0x2000>,
  155. <0x20 0x01006000 0 0x2000>;
  156. interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) |
  157. --- a/arch/arm/boot/dts/ecx-2000.dts
  158. +++ b/arch/arm/boot/dts/ecx-2000.dts
  159. @@ -99,7 +99,7 @@
  160. interrupt-controller;
  161. interrupts = <1 9 0xf04>;
  162. reg = <0xfff11000 0x1000>,
  163. - <0xfff12000 0x1000>,
  164. + <0xfff12000 0x2000>,
  165. <0xfff14000 0x2000>,
  166. <0xfff16000 0x2000>;
  167. };
  168. --- a/arch/arm/boot/dts/imx6ul.dtsi
  169. +++ b/arch/arm/boot/dts/imx6ul.dtsi
  170. @@ -89,11 +89,11 @@
  171. };
  172. intc: interrupt-controller@00a01000 {
  173. - compatible = "arm,cortex-a7-gic";
  174. + compatible = "arm,gic-400", "arm,cortex-a7-gic";
  175. #interrupt-cells = <3>;
  176. interrupt-controller;
  177. reg = <0x00a01000 0x1000>,
  178. - <0x00a02000 0x1000>,
  179. + <0x00a02000 0x2000>,
  180. <0x00a04000 0x2000>,
  181. <0x00a06000 0x2000>;
  182. };
  183. --- a/arch/arm/boot/dts/keystone.dtsi
  184. +++ b/arch/arm/boot/dts/keystone.dtsi
  185. @@ -30,12 +30,12 @@
  186. };
  187. gic: interrupt-controller {
  188. - compatible = "arm,cortex-a15-gic";
  189. + compatible = "arm,gic-400", "arm,cortex-a15-gic";
  190. #interrupt-cells = <3>;
  191. interrupt-controller;
  192. reg = <0x0 0x02561000 0x0 0x1000>,
  193. <0x0 0x02562000 0x0 0x2000>,
  194. - <0x0 0x02564000 0x0 0x1000>,
  195. + <0x0 0x02564000 0x0 0x2000>,
  196. <0x0 0x02566000 0x0 0x2000>;
  197. interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) |
  198. IRQ_TYPE_LEVEL_HIGH)>;
  199. --- a/arch/arm/boot/dts/ls1021a-qds.dts
  200. +++ b/arch/arm/boot/dts/ls1021a-qds.dts
  201. @@ -124,6 +124,19 @@
  202. };
  203. };
  204. +&qspi {
  205. + num-cs = <2>;
  206. + status = "okay";
  207. +
  208. + qflash0: s25fl128s@0 {
  209. + compatible = "spansion,m25p80";
  210. + #address-cells = <1>;
  211. + #size-cells = <1>;
  212. + spi-max-frequency = <20000000>;
  213. + reg = <0>;
  214. + };
  215. +};
  216. +
  217. &enet0 {
  218. tbi-handle = <&tbi0>;
  219. phy-handle = <&sgmii_phy1c>;
  220. @@ -331,3 +344,11 @@
  221. &uart1 {
  222. status = "okay";
  223. };
  224. +
  225. +&can0 {
  226. + status = "okay";
  227. +};
  228. +
  229. +&can1 {
  230. + status = "okay";
  231. +};
  232. --- a/arch/arm/boot/dts/ls1021a-twr.dts
  233. +++ b/arch/arm/boot/dts/ls1021a-twr.dts
  234. @@ -142,6 +142,19 @@
  235. };
  236. };
  237. +&qspi {
  238. + num-cs = <2>;
  239. + status = "okay";
  240. +
  241. + qflash0: n25q128a13@0 {
  242. + compatible = "n25q128a13", "jedec,spi-nor";
  243. + #address-cells = <1>;
  244. + #size-cells = <1>;
  245. + spi-max-frequency = <20000000>;
  246. + reg = <0>;
  247. + };
  248. +};
  249. +
  250. &enet0 {
  251. tbi-handle = <&tbi1>;
  252. phy-handle = <&sgmii_phy2>;
  253. @@ -228,6 +241,10 @@
  254. };
  255. };
  256. +&esdhc {
  257. + status = "okay";
  258. +};
  259. +
  260. &sai1 {
  261. status = "okay";
  262. };
  263. @@ -243,3 +260,11 @@
  264. &uart1 {
  265. status = "okay";
  266. };
  267. +
  268. +&can0 {
  269. + status = "okay";
  270. +};
  271. +
  272. +&can1 {
  273. + status = "okay";
  274. +};
  275. --- a/arch/arm/boot/dts/ls1021a.dtsi
  276. +++ b/arch/arm/boot/dts/ls1021a.dtsi
  277. @@ -74,17 +74,24 @@
  278. compatible = "arm,cortex-a7";
  279. device_type = "cpu";
  280. reg = <0xf00>;
  281. - clocks = <&cluster1_clk>;
  282. + clocks = <&clockgen 1 0>;
  283. };
  284. cpu@f01 {
  285. compatible = "arm,cortex-a7";
  286. device_type = "cpu";
  287. reg = <0xf01>;
  288. - clocks = <&cluster1_clk>;
  289. + clocks = <&clockgen 1 0>;
  290. };
  291. };
  292. + sysclk: sysclk {
  293. + compatible = "fixed-clock";
  294. + #clock-cells = <0>;
  295. + clock-frequency = <100000000>;
  296. + clock-output-names = "sysclk";
  297. + };
  298. +
  299. timer {
  300. compatible = "arm,armv7-timer";
  301. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
  302. @@ -108,11 +115,11 @@
  303. ranges;
  304. gic: interrupt-controller@1400000 {
  305. - compatible = "arm,cortex-a7-gic";
  306. + compatible = "arm,gic-400", "arm,cortex-a7-gic";
  307. #interrupt-cells = <3>;
  308. interrupt-controller;
  309. reg = <0x0 0x1401000 0x0 0x1000>,
  310. - <0x0 0x1402000 0x0 0x1000>,
  311. + <0x0 0x1402000 0x0 0x2000>,
  312. <0x0 0x1404000 0x0 0x2000>,
  313. <0x0 0x1406000 0x0 0x2000>;
  314. interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>;
  315. @@ -120,14 +127,14 @@
  316. };
  317. msi1: msi-controller@1570e00 {
  318. - compatible = "fsl,1s1021a-msi";
  319. + compatible = "fsl,ls1021a-msi";
  320. reg = <0x0 0x1570e00 0x0 0x8>;
  321. msi-controller;
  322. interrupts = <GIC_SPI 179 IRQ_TYPE_LEVEL_HIGH>;
  323. };
  324. msi2: msi-controller@1570e08 {
  325. - compatible = "fsl,1s1021a-msi";
  326. + compatible = "fsl,ls1021a-msi";
  327. reg = <0x0 0x1570e08 0x0 0x8>;
  328. msi-controller;
  329. interrupts = <GIC_SPI 180 IRQ_TYPE_LEVEL_HIGH>;
  330. @@ -137,16 +144,17 @@
  331. compatible = "fsl,ifc", "simple-bus";
  332. reg = <0x0 0x1530000 0x0 0x10000>;
  333. interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
  334. + big-endian;
  335. };
  336. dcfg: dcfg@1ee0000 {
  337. compatible = "fsl,ls1021a-dcfg", "syscon";
  338. - reg = <0x0 0x1ee0000 0x0 0x10000>;
  339. + reg = <0x0 0x1ee0000 0x0 0x1000>;
  340. big-endian;
  341. };
  342. esdhc: esdhc@1560000 {
  343. - compatible = "fsl,esdhc";
  344. + compatible = "fsl,ls1021a-esdhc","fsl,esdhc";
  345. reg = <0x0 0x1560000 0x0 0x10000>;
  346. interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
  347. clock-frequency = <0>;
  348. @@ -163,7 +171,7 @@
  349. <0x0 0x20220520 0x0 0x4>;
  350. reg-names = "ahci", "sata-ecc";
  351. interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
  352. - clocks = <&platform_clk 1>;
  353. + clocks = <&clockgen 4 1>;
  354. dma-coherent;
  355. status = "disabled";
  356. };
  357. @@ -214,41 +222,10 @@
  358. };
  359. clockgen: clocking@1ee1000 {
  360. - #address-cells = <1>;
  361. - #size-cells = <1>;
  362. - ranges = <0x0 0x0 0x1ee1000 0x10000>;
  363. -
  364. - sysclk: sysclk {
  365. - compatible = "fixed-clock";
  366. - #clock-cells = <0>;
  367. - clock-output-names = "sysclk";
  368. - };
  369. -
  370. - cga_pll1: pll@800 {
  371. - compatible = "fsl,qoriq-core-pll-2.0";
  372. - #clock-cells = <1>;
  373. - reg = <0x800 0x10>;
  374. - clocks = <&sysclk>;
  375. - clock-output-names = "cga-pll1", "cga-pll1-div2",
  376. - "cga-pll1-div4";
  377. - };
  378. -
  379. - platform_clk: pll@c00 {
  380. - compatible = "fsl,qoriq-core-pll-2.0";
  381. - #clock-cells = <1>;
  382. - reg = <0xc00 0x10>;
  383. - clocks = <&sysclk>;
  384. - clock-output-names = "platform-clk", "platform-clk-div2";
  385. - };
  386. -
  387. - cluster1_clk: clk0c0@0 {
  388. - compatible = "fsl,qoriq-core-mux-2.0";
  389. - #clock-cells = <0>;
  390. - reg = <0x0 0x10>;
  391. - clock-names = "pll1cga", "pll1cga-div2", "pll1cga-div4";
  392. - clocks = <&cga_pll1 0>, <&cga_pll1 1>, <&cga_pll1 2>;
  393. - clock-output-names = "cluster1-clk";
  394. - };
  395. + compatible = "fsl,ls1021a-clockgen";
  396. + reg = <0x0 0x1ee1000 0x0 0x1000>;
  397. + #clock-cells = <2>;
  398. + clocks = <&sysclk>;
  399. };
  400. dspi0: dspi@2100000 {
  401. @@ -258,7 +235,7 @@
  402. reg = <0x0 0x2100000 0x0 0x10000>;
  403. interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
  404. clock-names = "dspi";
  405. - clocks = <&platform_clk 1>;
  406. + clocks = <&clockgen 4 1>;
  407. spi-num-chipselects = <6>;
  408. big-endian;
  409. status = "disabled";
  410. @@ -271,12 +248,27 @@
  411. reg = <0x0 0x2110000 0x0 0x10000>;
  412. interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
  413. clock-names = "dspi";
  414. - clocks = <&platform_clk 1>;
  415. + clocks = <&clockgen 4 1>;
  416. spi-num-chipselects = <6>;
  417. big-endian;
  418. status = "disabled";
  419. };
  420. + qspi: quadspi@1550000 {
  421. + compatible = "fsl,ls1021a-qspi";
  422. + #address-cells = <1>;
  423. + #size-cells = <0>;
  424. + reg = <0x0 0x1550000 0x0 0x10000>,
  425. + <0x0 0x40000000 0x0 0x4000000>;
  426. + reg-names = "QuadSPI", "QuadSPI-memory";
  427. + interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>;
  428. + clock-names = "qspi_en", "qspi";
  429. + clocks = <&clockgen 4 1>, <&clockgen 4 1>;
  430. + big-endian;
  431. + amba-base = <0x40000000>;
  432. + status = "disabled";
  433. + };
  434. +
  435. i2c0: i2c@2180000 {
  436. compatible = "fsl,vf610-i2c";
  437. #address-cells = <1>;
  438. @@ -284,7 +276,7 @@
  439. reg = <0x0 0x2180000 0x0 0x10000>;
  440. interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
  441. clock-names = "i2c";
  442. - clocks = <&platform_clk 1>;
  443. + clocks = <&clockgen 4 1>;
  444. status = "disabled";
  445. };
  446. @@ -295,7 +287,7 @@
  447. reg = <0x0 0x2190000 0x0 0x10000>;
  448. interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
  449. clock-names = "i2c";
  450. - clocks = <&platform_clk 1>;
  451. + clocks = <&clockgen 4 1>;
  452. status = "disabled";
  453. };
  454. @@ -306,7 +298,7 @@
  455. reg = <0x0 0x21a0000 0x0 0x10000>;
  456. interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
  457. clock-names = "i2c";
  458. - clocks = <&platform_clk 1>;
  459. + clocks = <&clockgen 4 1>;
  460. status = "disabled";
  461. };
  462. @@ -399,7 +391,7 @@
  463. compatible = "fsl,ls1021a-lpuart";
  464. reg = <0x0 0x2960000 0x0 0x1000>;
  465. interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
  466. - clocks = <&platform_clk 1>;
  467. + clocks = <&clockgen 4 1>;
  468. clock-names = "ipg";
  469. status = "disabled";
  470. };
  471. @@ -408,7 +400,7 @@
  472. compatible = "fsl,ls1021a-lpuart";
  473. reg = <0x0 0x2970000 0x0 0x1000>;
  474. interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
  475. - clocks = <&platform_clk 1>;
  476. + clocks = <&clockgen 4 1>;
  477. clock-names = "ipg";
  478. status = "disabled";
  479. };
  480. @@ -417,7 +409,7 @@
  481. compatible = "fsl,ls1021a-lpuart";
  482. reg = <0x0 0x2980000 0x0 0x1000>;
  483. interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
  484. - clocks = <&platform_clk 1>;
  485. + clocks = <&clockgen 4 1>;
  486. clock-names = "ipg";
  487. status = "disabled";
  488. };
  489. @@ -426,7 +418,7 @@
  490. compatible = "fsl,ls1021a-lpuart";
  491. reg = <0x0 0x2990000 0x0 0x1000>;
  492. interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
  493. - clocks = <&platform_clk 1>;
  494. + clocks = <&clockgen 4 1>;
  495. clock-names = "ipg";
  496. status = "disabled";
  497. };
  498. @@ -435,16 +427,26 @@
  499. compatible = "fsl,ls1021a-lpuart";
  500. reg = <0x0 0x29a0000 0x0 0x1000>;
  501. interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
  502. - clocks = <&platform_clk 1>;
  503. + clocks = <&clockgen 4 1>;
  504. clock-names = "ipg";
  505. status = "disabled";
  506. };
  507. + ftm0: ftm0@29d0000 {
  508. + compatible = "fsl,ls1021a-ftm";
  509. + reg = <0x0 0x29d0000 0x0 0x10000>,
  510. + <0x0 0x1ee2140 0x0 0x4>;
  511. + reg-names = "ftm", "FlexTimer1";
  512. + interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
  513. + big-endian;
  514. + status = "okay";
  515. + };
  516. +
  517. wdog0: watchdog@2ad0000 {
  518. compatible = "fsl,imx21-wdt";
  519. reg = <0x0 0x2ad0000 0x0 0x10000>;
  520. interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
  521. - clocks = <&platform_clk 1>;
  522. + clocks = <&clockgen 4 1>;
  523. clock-names = "wdog-en";
  524. big-endian;
  525. };
  526. @@ -454,8 +456,8 @@
  527. compatible = "fsl,vf610-sai";
  528. reg = <0x0 0x2b50000 0x0 0x10000>;
  529. interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH>;
  530. - clocks = <&platform_clk 1>, <&platform_clk 1>,
  531. - <&platform_clk 1>, <&platform_clk 1>;
  532. + clocks = <&clockgen 4 1>, <&clockgen 4 1>,
  533. + <&clockgen 4 1>, <&clockgen 4 1>;
  534. clock-names = "bus", "mclk1", "mclk2", "mclk3";
  535. dma-names = "tx", "rx";
  536. dmas = <&edma0 1 47>,
  537. @@ -468,8 +470,8 @@
  538. compatible = "fsl,vf610-sai";
  539. reg = <0x0 0x2b60000 0x0 0x10000>;
  540. interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
  541. - clocks = <&platform_clk 1>, <&platform_clk 1>,
  542. - <&platform_clk 1>, <&platform_clk 1>;
  543. + clocks = <&clockgen 4 1>, <&clockgen 4 1>,
  544. + <&clockgen 4 1>, <&clockgen 4 1>;
  545. clock-names = "bus", "mclk1", "mclk2", "mclk3";
  546. dma-names = "tx", "rx";
  547. dmas = <&edma0 1 45>,
  548. @@ -489,16 +491,31 @@
  549. dma-channels = <32>;
  550. big-endian;
  551. clock-names = "dmamux0", "dmamux1";
  552. - clocks = <&platform_clk 1>,
  553. - <&platform_clk 1>;
  554. + clocks = <&clockgen 4 1>,
  555. + <&clockgen 4 1>;
  556. + };
  557. +
  558. + qdma: qdma@8390000 {
  559. + compatible = "fsl,ls1021a-qdma";
  560. + reg = <0x0 0x8398000 0x0 0x1000>, /* Controller regs */
  561. + <0x0 0x8399000 0x0 0x1000>, /* Status regs */
  562. + <0x0 0x839a000 0x0 0x2000>; /* Block regs */
  563. + interrupts = <GIC_SPI 185 IRQ_TYPE_LEVEL_HIGH>,
  564. + <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
  565. + interrupt-names = "qdma-error", "qdma-queue";
  566. + channels = <8>;
  567. + queues = <2>;
  568. + status-sizes = <64>;
  569. + queue-sizes = <64 64>;
  570. + big-endian;
  571. };
  572. dcu: dcu@2ce0000 {
  573. compatible = "fsl,ls1021a-dcu";
  574. reg = <0x0 0x2ce0000 0x0 0x10000>;
  575. interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>;
  576. - clocks = <&platform_clk 0>,
  577. - <&platform_clk 0>;
  578. + clocks = <&clockgen 4 0>,
  579. + <&clockgen 4 0>;
  580. clock-names = "dcu", "pix";
  581. big-endian;
  582. status = "disabled";
  583. @@ -626,6 +643,8 @@
  584. interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
  585. dr_mode = "host";
  586. snps,quirk-frame-length-adjustment = <0x20>;
  587. + configure-gfladj;
  588. + dma-coherent;
  589. snps,dis_rxdet_inp3_quirk;
  590. };
  591. @@ -634,7 +653,9 @@
  592. reg = <0x00 0x03400000 0x0 0x00010000 /* controller registers */
  593. 0x40 0x00000000 0x0 0x00002000>; /* configuration space */
  594. reg-names = "regs", "config";
  595. - interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */
  596. + interrupts = <GIC_SPI 181 IRQ_TYPE_LEVEL_HIGH>,
  597. + <GIC_SPI 183 IRQ_TYPE_LEVEL_HIGH>; /* aer interrupt */
  598. + interrupt-names = "pme", "aer";
  599. fsl,pcie-scfg = <&scfg 0>;
  600. #address-cells = <3>;
  601. #size-cells = <2>;
  602. @@ -643,7 +664,7 @@
  603. bus-range = <0x0 0xff>;
  604. ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000 /* downstream I/O */
  605. 0x82000000 0x0 0x40000000 0x40 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
  606. - msi-parent = <&msi1>;
  607. + msi-parent = <&msi1>, <&msi2>;
  608. #interrupt-cells = <1>;
  609. interrupt-map-mask = <0 0 0 7>;
  610. interrupt-map = <0000 0 0 1 &gic GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>,
  611. @@ -657,7 +678,9 @@
  612. reg = <0x00 0x03500000 0x0 0x00010000 /* controller registers */
  613. 0x48 0x00000000 0x0 0x00002000>; /* configuration space */
  614. reg-names = "regs", "config";
  615. - interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>;
  616. + interrupts = <GIC_SPI 182 IRQ_TYPE_LEVEL_HIGH>,
  617. + <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>; /* aer interrupt */
  618. + interrupt-names = "pme", "aer";
  619. fsl,pcie-scfg = <&scfg 1>;
  620. #address-cells = <3>;
  621. #size-cells = <2>;
  622. @@ -666,7 +689,7 @@
  623. bus-range = <0x0 0xff>;
  624. ranges = <0x81000000 0x0 0x00000000 0x48 0x00010000 0x0 0x00010000 /* downstream I/O */
  625. 0x82000000 0x0 0x40000000 0x48 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
  626. - msi-parent = <&msi2>;
  627. + msi-parent = <&msi1>, <&msi2>;
  628. #interrupt-cells = <1>;
  629. interrupt-map-mask = <0 0 0 7>;
  630. interrupt-map = <0000 0 0 1 &gic GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>,
  631. @@ -674,5 +697,45 @@
  632. <0000 0 0 3 &gic GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>,
  633. <0000 0 0 4 &gic GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>;
  634. };
  635. +
  636. + can0: can@2a70000 {
  637. + compatible = "fsl,ls1021ar2-flexcan";
  638. + reg = <0x0 0x2a70000 0x0 0x1000>;
  639. + interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
  640. + clocks = <&clockgen 4 1>, <&clockgen 4 1>;
  641. + clock-names = "ipg", "per";
  642. + big-endian;
  643. + status = "disabled";
  644. + };
  645. +
  646. + can1: can@2a80000 {
  647. + compatible = "fsl,ls1021ar2-flexcan";
  648. + reg = <0x0 0x2a80000 0x0 0x1000>;
  649. + interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>;
  650. + clocks = <&clockgen 4 1>, <&clockgen 4 1>;
  651. + clock-names = "ipg", "per";
  652. + big-endian;
  653. + status = "disabled";
  654. + };
  655. +
  656. + can2: can@2a90000 {
  657. + compatible = "fsl,ls1021ar2-flexcan";
  658. + reg = <0x0 0x2a90000 0x0 0x1000>;
  659. + interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>;
  660. + clocks = <&clockgen 4 1>, <&clockgen 4 1>;
  661. + clock-names = "ipg", "per";
  662. + big-endian;
  663. + status = "disabled";
  664. + };
  665. +
  666. + can3: can@2aa0000 {
  667. + compatible = "fsl,ls1021ar2-flexcan";
  668. + reg = <0x0 0x2aa0000 0x0 0x1000>;
  669. + interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>;
  670. + clocks = <&clockgen 4 1>, <&clockgen 4 1>;
  671. + clock-names = "ipg", "per";
  672. + big-endian;
  673. + status = "disabled";
  674. + };
  675. };
  676. };
  677. --- a/arch/arm/boot/dts/mt6580.dtsi
  678. +++ b/arch/arm/boot/dts/mt6580.dtsi
  679. @@ -91,7 +91,7 @@
  680. #interrupt-cells = <3>;
  681. interrupt-parent = <&gic>;
  682. reg = <0x10211000 0x1000>,
  683. - <0x10212000 0x1000>,
  684. + <0x10212000 0x2000>,
  685. <0x10214000 0x2000>,
  686. <0x10216000 0x2000>;
  687. };
  688. --- a/arch/arm/boot/dts/mt6589.dtsi
  689. +++ b/arch/arm/boot/dts/mt6589.dtsi
  690. @@ -102,7 +102,7 @@
  691. #interrupt-cells = <3>;
  692. interrupt-parent = <&gic>;
  693. reg = <0x10211000 0x1000>,
  694. - <0x10212000 0x1000>,
  695. + <0x10212000 0x2000>,
  696. <0x10214000 0x2000>,
  697. <0x10216000 0x2000>;
  698. };
  699. --- a/arch/arm/boot/dts/mt8127.dtsi
  700. +++ b/arch/arm/boot/dts/mt8127.dtsi
  701. @@ -129,7 +129,7 @@
  702. #interrupt-cells = <3>;
  703. interrupt-parent = <&gic>;
  704. reg = <0 0x10211000 0 0x1000>,
  705. - <0 0x10212000 0 0x1000>,
  706. + <0 0x10212000 0 0x2000>,
  707. <0 0x10214000 0 0x2000>,
  708. <0 0x10216000 0 0x2000>;
  709. };
  710. --- a/arch/arm/boot/dts/mt8135.dtsi
  711. +++ b/arch/arm/boot/dts/mt8135.dtsi
  712. @@ -221,7 +221,7 @@
  713. #interrupt-cells = <3>;
  714. interrupt-parent = <&gic>;
  715. reg = <0 0x10211000 0 0x1000>,
  716. - <0 0x10212000 0 0x1000>,
  717. + <0 0x10212000 0 0x2000>,
  718. <0 0x10214000 0 0x2000>,
  719. <0 0x10216000 0 0x2000>;
  720. };
  721. --- a/arch/arm/boot/dts/rk3288.dtsi
  722. +++ b/arch/arm/boot/dts/rk3288.dtsi
  723. @@ -1109,7 +1109,7 @@
  724. #address-cells = <0>;
  725. reg = <0xffc01000 0x1000>,
  726. - <0xffc02000 0x1000>,
  727. + <0xffc02000 0x2000>,
  728. <0xffc04000 0x2000>,
  729. <0xffc06000 0x2000>;
  730. interrupts = <GIC_PPI 9 0xf04>;
  731. --- a/arch/arm/boot/dts/sun6i-a31.dtsi
  732. +++ b/arch/arm/boot/dts/sun6i-a31.dtsi
  733. @@ -791,7 +791,7 @@
  734. gic: interrupt-controller@01c81000 {
  735. compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
  736. reg = <0x01c81000 0x1000>,
  737. - <0x01c82000 0x1000>,
  738. + <0x01c82000 0x2000>,
  739. <0x01c84000 0x2000>,
  740. <0x01c86000 0x2000>;
  741. interrupt-controller;
  742. --- a/arch/arm/boot/dts/sun7i-a20.dtsi
  743. +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
  744. @@ -1685,9 +1685,9 @@
  745. };
  746. gic: interrupt-controller@01c81000 {
  747. - compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
  748. + compatible = "arm,gic-400", "arm,cortex-a7-gic", "arm,cortex-a15-gic";
  749. reg = <0x01c81000 0x1000>,
  750. - <0x01c82000 0x1000>,
  751. + <0x01c82000 0x2000>,
  752. <0x01c84000 0x2000>,
  753. <0x01c86000 0x2000>;
  754. interrupt-controller;
  755. --- a/arch/arm/boot/dts/sun8i-a23-a33.dtsi
  756. +++ b/arch/arm/boot/dts/sun8i-a23-a33.dtsi
  757. @@ -488,7 +488,7 @@
  758. gic: interrupt-controller@01c81000 {
  759. compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
  760. reg = <0x01c81000 0x1000>,
  761. - <0x01c82000 0x1000>,
  762. + <0x01c82000 0x2000>,
  763. <0x01c84000 0x2000>,
  764. <0x01c86000 0x2000>;
  765. interrupt-controller;
  766. --- a/arch/arm/boot/dts/sun9i-a80.dtsi
  767. +++ b/arch/arm/boot/dts/sun9i-a80.dtsi
  768. @@ -613,7 +613,7 @@
  769. gic: interrupt-controller@01c41000 {
  770. compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
  771. reg = <0x01c41000 0x1000>,
  772. - <0x01c42000 0x1000>,
  773. + <0x01c42000 0x2000>,
  774. <0x01c44000 0x2000>,
  775. <0x01c46000 0x2000>;
  776. interrupt-controller;
  777. --- a/arch/arm64/boot/dts/freescale/Makefile
  778. +++ b/arch/arm64/boot/dts/freescale/Makefile
  779. @@ -1,8 +1,25 @@
  780. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1012a-frdm.dtb
  781. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1012a-qds.dtb
  782. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1012a-rdb.dtb
  783. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1012a-2g5rdb.dtb
  784. dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-qds.dtb
  785. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-qds-sdk.dtb
  786. dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-rdb.dtb
  787. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-rdb-sdk.dtb
  788. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-rdb-usdpaa.dtb
  789. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-qds.dtb
  790. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-qds-sdk.dtb
  791. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-rdb.dtb
  792. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-rdb-sdk.dtb
  793. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-rdb-usdpaa.dtb
  794. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1088a-qds.dtb
  795. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1088a-rdb.dtb
  796. dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-qds.dtb
  797. dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-rdb.dtb
  798. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2081a-rdb.dtb
  799. dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-simu.dtb
  800. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2088a-qds.dtb
  801. +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2088a-rdb.dtb
  802. always := $(dtb-y)
  803. subdir-y := $(dts-dirs)
  804. --- /dev/null
  805. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a-2g5rdb.dts
  806. @@ -0,0 +1,123 @@
  807. +/*
  808. + * Device Tree file for NXP LS1012A 2G5RDB Board.
  809. + *
  810. + * Copyright 2017 NXP
  811. + *
  812. + * Bhaskar Upadhaya <[email protected]>
  813. + *
  814. + * This file is dual-licensed: you can use it either under the terms
  815. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  816. + * licensing only applies to this file, and not this project as a
  817. + * whole.
  818. + *
  819. + * a) This library is free software; you can redistribute it and/or
  820. + * modify it under the terms of the GNU General Public License as
  821. + * published by the Free Software Foundation; either version 2 of the
  822. + * License, or (at your option) any later version.
  823. + *
  824. + * This library is distributed in the hope that it will be useful,
  825. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  826. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  827. + * GNU General Public License for more details.
  828. + *
  829. + * Or, alternatively,
  830. + *
  831. + * b) Permission is hereby granted, free of charge, to any person
  832. + * obtaining a copy of this software and associated documentation
  833. + * files (the "Software"), to deal in the Software without
  834. + * restriction, including without limitation the rights to use,
  835. + * copy, modify, merge, publish, distribute, sublicense, and/or
  836. + * sell copies of the Software, and to permit persons to whom the
  837. + * Software is furnished to do so, subject to the following
  838. + * conditions:
  839. + *
  840. + * The above copyright notice and this permission notice shall be
  841. + * included in all copies or substantial portions of the Software.
  842. + *
  843. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  844. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  845. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  846. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  847. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  848. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  849. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  850. + * OTHER DEALINGS IN THE SOFTWARE.
  851. + */
  852. +/dts-v1/;
  853. +
  854. +#include "fsl-ls1012a.dtsi"
  855. +
  856. +/ {
  857. + model = "LS1012A 2G5RDB Board";
  858. + compatible = "fsl,ls1012a-rdb", "fsl,ls1012a";
  859. +
  860. + aliases {
  861. + ethernet0 = &pfe_mac0;
  862. + ethernet1 = &pfe_mac1;
  863. + };
  864. +};
  865. +
  866. +&duart0 {
  867. + status = "okay";
  868. +};
  869. +
  870. +&i2c0 {
  871. + status = "okay";
  872. +};
  873. +
  874. +&qspi {
  875. + num-cs = <2>;
  876. + bus-num = <0>;
  877. + status = "okay";
  878. +
  879. + qflash0: s25fs512s@0 {
  880. + compatible = "spansion,m25p80";
  881. + #address-cells = <1>;
  882. + #size-cells = <1>;
  883. + spi-max-frequency = <20000000>;
  884. + m25p,fast-read;
  885. + reg = <0>;
  886. + };
  887. +};
  888. +
  889. +&sata {
  890. + status = "okay";
  891. +};
  892. +
  893. +&pfe {
  894. + status = "okay";
  895. + #address-cells = <1>;
  896. + #size-cells = <0>;
  897. +
  898. + ethernet@0 {
  899. + compatible = "fsl,pfe-gemac-port";
  900. + #address-cells = <1>;
  901. + #size-cells = <0>;
  902. + reg = <0x0>; /* GEM_ID */
  903. + fsl,gemac-bus-id = <0x0>; /* BUS_ID */
  904. + fsl,gemac-phy-id = <0x1>; /* PHY_ID */
  905. + fsl,mdio-mux-val = <0x0>;
  906. + phy-mode = "sgmii-2500";
  907. + fsl,pfe-phy-if-flags = <0x0>;
  908. +
  909. + mdio@0 {
  910. + reg = <0x1>; /* enabled/disabled */
  911. + };
  912. + };
  913. +
  914. + ethernet@1 {
  915. + compatible = "fsl,pfe-gemac-port";
  916. + #address-cells = <1>;
  917. + #size-cells = <0>;
  918. + reg = <0x1>; /* GEM_ID */
  919. + fsl,gemac-bus-id = < 0x0>; /* BUS_ID */
  920. + fsl,gemac-phy-id = < 0x2>; /* PHY_ID */
  921. + fsl,mdio-mux-val = <0x0>;
  922. + phy-mode = "sgmii-2500";
  923. + fsl,pfe-phy-if-flags = <0x0>;
  924. +
  925. + mdio@0 {
  926. + reg = <0x0>; /* enabled/disabled */
  927. + };
  928. + };
  929. +};
  930. --- /dev/null
  931. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts
  932. @@ -0,0 +1,177 @@
  933. +/*
  934. + * Device Tree file for Freescale LS1012A Freedom Board.
  935. + *
  936. + * Copyright 2016 Freescale Semiconductor, Inc.
  937. + *
  938. + * This file is dual-licensed: you can use it either under the terms
  939. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  940. + * licensing only applies to this file, and not this project as a
  941. + * whole.
  942. + *
  943. + * a) This library is free software; you can redistribute it and/or
  944. + * modify it under the terms of the GNU General Public License as
  945. + * published by the Free Software Foundation; either version 2 of the
  946. + * License, or (at your option) any later version.
  947. + *
  948. + * This library is distributed in the hope that it will be useful,
  949. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  950. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  951. + * GNU General Public License for more details.
  952. + *
  953. + * Or, alternatively,
  954. + *
  955. + * b) Permission is hereby granted, free of charge, to any person
  956. + * obtaining a copy of this software and associated documentation
  957. + * files (the "Software"), to deal in the Software without
  958. + * restriction, including without limitation the rights to use,
  959. + * copy, modify, merge, publish, distribute, sublicense, and/or
  960. + * sell copies of the Software, and to permit persons to whom the
  961. + * Software is furnished to do so, subject to the following
  962. + * conditions:
  963. + *
  964. + * The above copyright notice and this permission notice shall be
  965. + * included in all copies or substantial portions of the Software.
  966. + *
  967. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  968. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  969. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  970. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  971. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  972. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  973. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  974. + * OTHER DEALINGS IN THE SOFTWARE.
  975. + */
  976. +/dts-v1/;
  977. +
  978. +#include "fsl-ls1012a.dtsi"
  979. +
  980. +/ {
  981. + model = "LS1012A Freedom Board";
  982. + compatible = "fsl,ls1012a-frdm", "fsl,ls1012a";
  983. +
  984. + aliases {
  985. + ethernet0 = &pfe_mac0;
  986. + ethernet1 = &pfe_mac1;
  987. + };
  988. +
  989. + sys_mclk: clock-mclk {
  990. + compatible = "fixed-clock";
  991. + #clock-cells = <0>;
  992. + clock-frequency = <25000000>;
  993. + };
  994. +
  995. + reg_1p8v: regulator-1p8v {
  996. + compatible = "regulator-fixed";
  997. + regulator-name = "1P8V";
  998. + regulator-min-microvolt = <1800000>;
  999. + regulator-max-microvolt = <1800000>;
  1000. + regulator-always-on;
  1001. + };
  1002. +
  1003. + sound {
  1004. + compatible = "simple-audio-card";
  1005. + simple-audio-card,format = "i2s";
  1006. + simple-audio-card,widgets =
  1007. + "Microphone", "Microphone Jack",
  1008. + "Headphone", "Headphone Jack",
  1009. + "Speaker", "Speaker Ext",
  1010. + "Line", "Line In Jack";
  1011. + simple-audio-card,routing =
  1012. + "MIC_IN", "Microphone Jack",
  1013. + "Microphone Jack", "Mic Bias",
  1014. + "LINE_IN", "Line In Jack",
  1015. + "Headphone Jack", "HP_OUT",
  1016. + "Speaker Ext", "LINE_OUT";
  1017. +
  1018. + simple-audio-card,cpu {
  1019. + sound-dai = <&sai2>;
  1020. + frame-master;
  1021. + bitclock-master;
  1022. + };
  1023. +
  1024. + simple-audio-card,codec {
  1025. + sound-dai = <&codec>;
  1026. + frame-master;
  1027. + bitclock-master;
  1028. + system-clock-frequency = <25000000>;
  1029. + };
  1030. + };
  1031. +};
  1032. +
  1033. +&duart0 {
  1034. + status = "okay";
  1035. +};
  1036. +
  1037. +&i2c0 {
  1038. + status = "okay";
  1039. +
  1040. + codec: sgtl5000@a {
  1041. + #sound-dai-cells = <0>;
  1042. + compatible = "fsl,sgtl5000";
  1043. + reg = <0xa>;
  1044. + VDDA-supply = <&reg_1p8v>;
  1045. + VDDIO-supply = <&reg_1p8v>;
  1046. + clocks = <&sys_mclk>;
  1047. + };
  1048. +};
  1049. +
  1050. +&qspi {
  1051. + num-cs = <1>;
  1052. + bus-num = <0>;
  1053. + status = "okay";
  1054. +
  1055. + qflash0: s25fs512s@0 {
  1056. + compatible = "spansion,m25p80";
  1057. + #address-cells = <1>;
  1058. + #size-cells = <1>;
  1059. + m25p,fast-read;
  1060. + spi-max-frequency = <20000000>;
  1061. + reg = <0>;
  1062. + };
  1063. +};
  1064. +
  1065. +&pfe {
  1066. + status = "okay";
  1067. + #address-cells = <1>;
  1068. + #size-cells = <0>;
  1069. +
  1070. + ethernet@0 {
  1071. + compatible = "fsl,pfe-gemac-port";
  1072. + #address-cells = <1>;
  1073. + #size-cells = <0>;
  1074. + reg = <0x0>; /* GEM_ID */
  1075. + fsl,gemac-bus-id = <0x0>; /* BUS_ID */
  1076. + fsl,gemac-phy-id = <0x2>; /* PHY_ID */
  1077. + fsl,mdio-mux-val = <0x0>;
  1078. + phy-mode = "sgmii";
  1079. + fsl,pfe-phy-if-flags = <0x0>;
  1080. +
  1081. + mdio@0 {
  1082. + reg = <0x1>; /* enabled/disabled */
  1083. + };
  1084. + };
  1085. +
  1086. + ethernet@1 {
  1087. + compatible = "fsl,pfe-gemac-port";
  1088. + #address-cells = <1>;
  1089. + #size-cells = <0>;
  1090. + reg = <0x1>; /* GEM_ID */
  1091. + fsl,gemac-bus-id = <0x1>; /* BUS_ID */
  1092. + fsl,gemac-phy-id = <0x1>; /* PHY_ID */
  1093. + fsl,mdio-mux-val = <0x0>;
  1094. + phy-mode = "sgmii";
  1095. + fsl,pfe-phy-if-flags = <0x0>;
  1096. +
  1097. + mdio@0 {
  1098. + reg = <0x0>; /* enabled/disabled */
  1099. + };
  1100. + };
  1101. +};
  1102. +
  1103. +&sai2 {
  1104. + status = "okay";
  1105. +};
  1106. +
  1107. +&sata {
  1108. + status = "okay";
  1109. +};
  1110. --- /dev/null
  1111. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts
  1112. @@ -0,0 +1,202 @@
  1113. +/*
  1114. + * Device Tree file for Freescale LS1012A QDS Board.
  1115. + *
  1116. + * Copyright 2016 Freescale Semiconductor, Inc.
  1117. + *
  1118. + * This file is dual-licensed: you can use it either under the terms
  1119. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  1120. + * licensing only applies to this file, and not this project as a
  1121. + * whole.
  1122. + *
  1123. + * a) This library is free software; you can redistribute it and/or
  1124. + * modify it under the terms of the GNU General Public License as
  1125. + * published by the Free Software Foundation; either version 2 of the
  1126. + * License, or (at your option) any later version.
  1127. + *
  1128. + * This library is distributed in the hope that it will be useful,
  1129. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  1130. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  1131. + * GNU General Public License for more details.
  1132. + *
  1133. + * Or, alternatively,
  1134. + *
  1135. + * b) Permission is hereby granted, free of charge, to any person
  1136. + * obtaining a copy of this software and associated documentation
  1137. + * files (the "Software"), to deal in the Software without
  1138. + * restriction, including without limitation the rights to use,
  1139. + * copy, modify, merge, publish, distribute, sublicense, and/or
  1140. + * sell copies of the Software, and to permit persons to whom the
  1141. + * Software is furnished to do so, subject to the following
  1142. + * conditions:
  1143. + *
  1144. + * The above copyright notice and this permission notice shall be
  1145. + * included in all copies or substantial portions of the Software.
  1146. + *
  1147. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  1148. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  1149. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  1150. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  1151. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  1152. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  1153. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  1154. + * OTHER DEALINGS IN THE SOFTWARE.
  1155. + */
  1156. +/dts-v1/;
  1157. +
  1158. +#include "fsl-ls1012a.dtsi"
  1159. +
  1160. +/ {
  1161. + model = "LS1012A QDS Board";
  1162. + compatible = "fsl,ls1012a-qds", "fsl,ls1012a";
  1163. +
  1164. + aliases {
  1165. + ethernet0 = &pfe_mac0;
  1166. + ethernet1 = &pfe_mac1;
  1167. + };
  1168. +
  1169. + sys_mclk: clock-mclk {
  1170. + compatible = "fixed-clock";
  1171. + #clock-cells = <0>;
  1172. + clock-frequency = <24576000>;
  1173. + };
  1174. +
  1175. + reg_3p3v: regulator-3p3v {
  1176. + compatible = "regulator-fixed";
  1177. + regulator-name = "3P3V";
  1178. + regulator-min-microvolt = <3300000>;
  1179. + regulator-max-microvolt = <3300000>;
  1180. + regulator-always-on;
  1181. + };
  1182. +
  1183. + sound {
  1184. + compatible = "simple-audio-card";
  1185. + simple-audio-card,format = "i2s";
  1186. + simple-audio-card,widgets =
  1187. + "Microphone", "Microphone Jack",
  1188. + "Headphone", "Headphone Jack",
  1189. + "Speaker", "Speaker Ext",
  1190. + "Line", "Line In Jack";
  1191. + simple-audio-card,routing =
  1192. + "MIC_IN", "Microphone Jack",
  1193. + "Microphone Jack", "Mic Bias",
  1194. + "LINE_IN", "Line In Jack",
  1195. + "Headphone Jack", "HP_OUT",
  1196. + "Speaker Ext", "LINE_OUT";
  1197. +
  1198. + simple-audio-card,cpu {
  1199. + sound-dai = <&sai2>;
  1200. + frame-master;
  1201. + bitclock-master;
  1202. + };
  1203. +
  1204. + simple-audio-card,codec {
  1205. + sound-dai = <&codec>;
  1206. + frame-master;
  1207. + bitclock-master;
  1208. + system-clock-frequency = <24576000>;
  1209. + };
  1210. + };
  1211. +};
  1212. +
  1213. +&pcie {
  1214. + status = "okay";
  1215. +};
  1216. +
  1217. +&duart0 {
  1218. + status = "okay";
  1219. +};
  1220. +
  1221. +&i2c0 {
  1222. + status = "okay";
  1223. +
  1224. + pca9547@77 {
  1225. + compatible = "nxp,pca9547";
  1226. + reg = <0x77>;
  1227. + #address-cells = <1>;
  1228. + #size-cells = <0>;
  1229. +
  1230. + i2c@4 {
  1231. + #address-cells = <1>;
  1232. + #size-cells = <0>;
  1233. + reg = <0x4>;
  1234. +
  1235. + codec: sgtl5000@a {
  1236. + #sound-dai-cells = <0>;
  1237. + compatible = "fsl,sgtl5000";
  1238. + reg = <0xa>;
  1239. + VDDA-supply = <&reg_3p3v>;
  1240. + VDDIO-supply = <&reg_3p3v>;
  1241. + clocks = <&sys_mclk>;
  1242. + };
  1243. + };
  1244. + };
  1245. +};
  1246. +
  1247. +&qspi {
  1248. + num-cs = <2>;
  1249. + bus-num = <0>;
  1250. + status = "okay";
  1251. +
  1252. + qflash0: s25fs512s@0 {
  1253. + compatible = "spansion,m25p80";
  1254. + #address-cells = <1>;
  1255. + #size-cells = <1>;
  1256. + spi-max-frequency = <20000000>;
  1257. + m25p,fast-read;
  1258. + reg = <0>;
  1259. + };
  1260. +};
  1261. +
  1262. +&pfe {
  1263. + status = "okay";
  1264. + #address-cells = <1>;
  1265. + #size-cells = <0>;
  1266. +
  1267. + ethernet@0 {
  1268. + compatible = "fsl,pfe-gemac-port";
  1269. + #address-cells = <1>;
  1270. + #size-cells = <0>;
  1271. + reg = <0x0>; /* GEM_ID */
  1272. + fsl,gemac-bus-id = <0x0>; /* BUS_ID */
  1273. + fsl,gemac-phy-id = <0x1>; /* PHY_ID */
  1274. + fsl,mdio-mux-val = <0x2>;
  1275. + phy-mode = "sgmii-2500";
  1276. + fsl,pfe-phy-if-flags = <0x0>;
  1277. +
  1278. + mdio@0 {
  1279. + reg = <0x1>; /* enabled/disabled */
  1280. + };
  1281. + };
  1282. +
  1283. + ethernet@1 {
  1284. + compatible = "fsl,pfe-gemac-port";
  1285. + #address-cells = <1>;
  1286. + #size-cells = <0>;
  1287. + reg = <0x1>; /* GEM_ID */
  1288. + fsl,gemac-bus-id = <0x1>; /* BUS_ID */
  1289. + fsl,gemac-phy-id = <0x2>; /* PHY_ID */
  1290. + fsl,mdio-mux-val = <0x3>;
  1291. + phy-mode = "sgmii-2500";
  1292. + fsl,pfe-phy-if-flags = <0x0>;
  1293. +
  1294. + mdio@0 {
  1295. + reg = <0x0>; /* enabled/disabled */
  1296. + };
  1297. + };
  1298. +};
  1299. +
  1300. +&sai2 {
  1301. + status = "okay";
  1302. +};
  1303. +
  1304. +&sata {
  1305. + status = "okay";
  1306. +};
  1307. +
  1308. +&esdhc0 {
  1309. + status = "okay";
  1310. +};
  1311. +
  1312. +&esdhc1 {
  1313. + status = "okay";
  1314. +};
  1315. --- /dev/null
  1316. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts
  1317. @@ -0,0 +1,138 @@
  1318. +/*
  1319. + * Device Tree file for Freescale LS1012A RDB Board.
  1320. + *
  1321. + * Copyright 2016 Freescale Semiconductor, Inc.
  1322. + *
  1323. + * This file is dual-licensed: you can use it either under the terms
  1324. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  1325. + * licensing only applies to this file, and not this project as a
  1326. + * whole.
  1327. + *
  1328. + * a) This library is free software; you can redistribute it and/or
  1329. + * modify it under the terms of the GNU General Public License as
  1330. + * published by the Free Software Foundation; either version 2 of the
  1331. + * License, or (at your option) any later version.
  1332. + *
  1333. + * This library is distributed in the hope that it will be useful,
  1334. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  1335. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  1336. + * GNU General Public License for more details.
  1337. + *
  1338. + * Or, alternatively,
  1339. + *
  1340. + * b) Permission is hereby granted, free of charge, to any person
  1341. + * obtaining a copy of this software and associated documentation
  1342. + * files (the "Software"), to deal in the Software without
  1343. + * restriction, including without limitation the rights to use,
  1344. + * copy, modify, merge, publish, distribute, sublicense, and/or
  1345. + * sell copies of the Software, and to permit persons to whom the
  1346. + * Software is furnished to do so, subject to the following
  1347. + * conditions:
  1348. + *
  1349. + * The above copyright notice and this permission notice shall be
  1350. + * included in all copies or substantial portions of the Software.
  1351. + *
  1352. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  1353. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  1354. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  1355. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  1356. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  1357. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  1358. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  1359. + * OTHER DEALINGS IN THE SOFTWARE.
  1360. + */
  1361. +/dts-v1/;
  1362. +
  1363. +#include "fsl-ls1012a.dtsi"
  1364. +
  1365. +/ {
  1366. + model = "LS1012A RDB Board";
  1367. + compatible = "fsl,ls1012a-rdb", "fsl,ls1012a";
  1368. +
  1369. + aliases {
  1370. + ethernet0 = &pfe_mac0;
  1371. + ethernet1 = &pfe_mac1;
  1372. + };
  1373. +};
  1374. +
  1375. +&pcie {
  1376. + status = "okay";
  1377. +};
  1378. +
  1379. +&duart0 {
  1380. + status = "okay";
  1381. +};
  1382. +
  1383. +&i2c0 {
  1384. + status = "okay";
  1385. +};
  1386. +
  1387. +&qspi {
  1388. + num-cs = <2>;
  1389. + bus-num = <0>;
  1390. + status = "okay";
  1391. +
  1392. + qflash0: s25fs512s@0 {
  1393. + compatible = "spansion,m25p80";
  1394. + #address-cells = <1>;
  1395. + #size-cells = <1>;
  1396. + spi-max-frequency = <20000000>;
  1397. + m25p,fast-read;
  1398. + reg = <0>;
  1399. + };
  1400. +};
  1401. +
  1402. +&sata {
  1403. + status = "okay";
  1404. +};
  1405. +
  1406. +&esdhc0 {
  1407. + sd-uhs-sdr104;
  1408. + sd-uhs-sdr50;
  1409. + sd-uhs-sdr25;
  1410. + sd-uhs-sdr12;
  1411. + status = "okay";
  1412. +};
  1413. +
  1414. +&esdhc1 {
  1415. + mmc-hs200-1_8v;
  1416. + status = "okay";
  1417. +};
  1418. +
  1419. +&pfe {
  1420. + status = "okay";
  1421. + #address-cells = <1>;
  1422. + #size-cells = <0>;
  1423. +
  1424. + ethernet@0 {
  1425. + compatible = "fsl,pfe-gemac-port";
  1426. + #address-cells = <1>;
  1427. + #size-cells = <0>;
  1428. + reg = <0x0>; /* GEM_ID */
  1429. + fsl,gemac-bus-id = <0x0>; /* BUS_ID */
  1430. + fsl,gemac-phy-id = <0x2>; /* PHY_ID */
  1431. + fsl,mdio-mux-val = <0x0>;
  1432. + phy-mode = "sgmii";
  1433. + fsl,pfe-phy-if-flags = <0x0>;
  1434. +
  1435. + mdio@0 {
  1436. + reg = <0x1>; /* enabled/disabled */
  1437. + };
  1438. + };
  1439. +
  1440. + ethernet@1 {
  1441. + compatible = "fsl,pfe-gemac-port";
  1442. + #address-cells = <1>;
  1443. + #size-cells = <0>;
  1444. + reg = <0x1>; /* GEM_ID */
  1445. + fsl,gemac-bus-id = < 0x1 >; /* BUS_ID */
  1446. + fsl,gemac-phy-id = < 0x1 >; /* PHY_ID */
  1447. + fsl,mdio-mux-val = <0x0>;
  1448. + phy-mode = "rgmii-txid";
  1449. + fsl,pfe-phy-if-flags = <0x0>;
  1450. +
  1451. + mdio@0 {
  1452. + reg = <0x0>; /* enabled/disabled */
  1453. + };
  1454. + };
  1455. +};
  1456. --- /dev/null
  1457. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
  1458. @@ -0,0 +1,602 @@
  1459. +/*
  1460. + * Device Tree Include file for Freescale Layerscape-1012A family SoC.
  1461. + *
  1462. + * Copyright 2016 Freescale Semiconductor, Inc.
  1463. + *
  1464. + * This file is dual-licensed: you can use it either under the terms
  1465. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  1466. + * licensing only applies to this file, and not this project as a
  1467. + * whole.
  1468. + *
  1469. + * a) This library is free software; you can redistribute it and/or
  1470. + * modify it under the terms of the GNU General Public License as
  1471. + * published by the Free Software Foundation; either version 2 of the
  1472. + * License, or (at your option) any later version.
  1473. + *
  1474. + * This library is distributed in the hope that it will be useful,
  1475. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  1476. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  1477. + * GNU General Public License for more details.
  1478. + *
  1479. + * Or, alternatively,
  1480. + *
  1481. + * b) Permission is hereby granted, free of charge, to any person
  1482. + * obtaining a copy of this software and associated documentation
  1483. + * files (the "Software"), to deal in the Software without
  1484. + * restriction, including without limitation the rights to use,
  1485. + * copy, modify, merge, publish, distribute, sublicense, and/or
  1486. + * sell copies of the Software, and to permit persons to whom the
  1487. + * Software is furnished to do so, subject to the following
  1488. + * conditions:
  1489. + *
  1490. + * The above copyright notice and this permission notice shall be
  1491. + * included in all copies or substantial portions of the Software.
  1492. + *
  1493. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  1494. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  1495. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  1496. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  1497. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  1498. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  1499. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  1500. + * OTHER DEALINGS IN THE SOFTWARE.
  1501. + */
  1502. +
  1503. +#include <dt-bindings/interrupt-controller/arm-gic.h>
  1504. +#include <dt-bindings/thermal/thermal.h>
  1505. +
  1506. +/ {
  1507. + compatible = "fsl,ls1012a";
  1508. + interrupt-parent = <&gic>;
  1509. + #address-cells = <2>;
  1510. + #size-cells = <2>;
  1511. +
  1512. + aliases {
  1513. + crypto = &crypto;
  1514. + rtic_a = &rtic_a;
  1515. + rtic_b = &rtic_b;
  1516. + rtic_c = &rtic_c;
  1517. + rtic_d = &rtic_d;
  1518. + sec_mon = &sec_mon;
  1519. + };
  1520. +
  1521. + cpus {
  1522. + #address-cells = <1>;
  1523. + #size-cells = <0>;
  1524. +
  1525. + cpu0: cpu@0 {
  1526. + device_type = "cpu";
  1527. + compatible = "arm,cortex-a53";
  1528. + reg = <0x0>;
  1529. + clocks = <&clockgen 1 0>;
  1530. + #cooling-cells = <2>;
  1531. + cpu-idle-states = <&CPU_PH20>;
  1532. + };
  1533. + };
  1534. +
  1535. + idle-states {
  1536. + /*
  1537. + * PSCI node is not added default, U-boot will add missing
  1538. + * parts if it determines to use PSCI.
  1539. + */
  1540. + entry-method = "arm,psci";
  1541. +
  1542. + CPU_PH20: cpu-ph20 {
  1543. + compatible = "arm,idle-state";
  1544. + idle-state-name = "PH20";
  1545. + arm,psci-suspend-param = <0x0>;
  1546. + entry-latency-us = <1000>;
  1547. + exit-latency-us = <1000>;
  1548. + min-residency-us = <3000>;
  1549. + };
  1550. + };
  1551. +
  1552. + sysclk: sysclk {
  1553. + compatible = "fixed-clock";
  1554. + #clock-cells = <0>;
  1555. + clock-frequency = <125000000>;
  1556. + clock-output-names = "sysclk";
  1557. + };
  1558. +
  1559. + coreclk: coreclk {
  1560. + compatible = "fixed-clock";
  1561. + #clock-cells = <0>;
  1562. + clock-frequency = <100000000>;
  1563. + clock-output-names = "coreclk";
  1564. + };
  1565. +
  1566. + timer {
  1567. + compatible = "arm,armv8-timer";
  1568. + interrupts = <1 13 IRQ_TYPE_LEVEL_LOW>,/* Physical Secure PPI */
  1569. + <1 14 IRQ_TYPE_LEVEL_LOW>,/* Physical Non-Secure PPI */
  1570. + <1 11 IRQ_TYPE_LEVEL_LOW>,/* Virtual PPI */
  1571. + <1 10 IRQ_TYPE_LEVEL_LOW>;/* Hypervisor PPI */
  1572. + };
  1573. +
  1574. + pmu {
  1575. + compatible = "arm,armv8-pmuv3";
  1576. + interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
  1577. + };
  1578. +
  1579. + gic: interrupt-controller@1400000 {
  1580. + compatible = "arm,gic-400";
  1581. + #interrupt-cells = <3>;
  1582. + interrupt-controller;
  1583. + reg = <0x0 0x1401000 0 0x1000>, /* GICD */
  1584. + <0x0 0x1402000 0 0x2000>, /* GICC */
  1585. + <0x0 0x1404000 0 0x2000>, /* GICH */
  1586. + <0x0 0x1406000 0 0x2000>; /* GICV */
  1587. + interrupts = <1 9 IRQ_TYPE_LEVEL_LOW>;
  1588. + };
  1589. +
  1590. + reboot {
  1591. + compatible = "syscon-reboot";
  1592. + regmap = <&dcfg>;
  1593. + offset = <0xb0>;
  1594. + mask = <0x02>;
  1595. + };
  1596. +
  1597. + soc {
  1598. + compatible = "simple-bus";
  1599. + #address-cells = <2>;
  1600. + #size-cells = <2>;
  1601. + ranges;
  1602. +
  1603. + scfg: scfg@1570000 {
  1604. + compatible = "fsl,ls1012a-scfg", "syscon";
  1605. + reg = <0x0 0x1570000 0x0 0x10000>;
  1606. + big-endian;
  1607. + };
  1608. +
  1609. + crypto: crypto@1700000 {
  1610. + compatible = "fsl,sec-v5.4", "fsl,sec-v5.0",
  1611. + "fsl,sec-v4.0";
  1612. + fsl,sec-era = <8>;
  1613. + #address-cells = <1>;
  1614. + #size-cells = <1>;
  1615. + ranges = <0x0 0x00 0x1700000 0x100000>;
  1616. + reg = <0x00 0x1700000 0x0 0x100000>;
  1617. + interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
  1618. +
  1619. + sec_jr0: jr@10000 {
  1620. + compatible = "fsl,sec-v5.4-job-ring",
  1621. + "fsl,sec-v5.0-job-ring",
  1622. + "fsl,sec-v4.0-job-ring";
  1623. + reg = <0x10000 0x10000>;
  1624. + interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
  1625. + };
  1626. +
  1627. + sec_jr1: jr@20000 {
  1628. + compatible = "fsl,sec-v5.4-job-ring",
  1629. + "fsl,sec-v5.0-job-ring",
  1630. + "fsl,sec-v4.0-job-ring";
  1631. + reg = <0x20000 0x10000>;
  1632. + interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
  1633. + };
  1634. +
  1635. + sec_jr2: jr@30000 {
  1636. + compatible = "fsl,sec-v5.4-job-ring",
  1637. + "fsl,sec-v5.0-job-ring",
  1638. + "fsl,sec-v4.0-job-ring";
  1639. + reg = <0x30000 0x10000>;
  1640. + interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
  1641. + };
  1642. +
  1643. + sec_jr3: jr@40000 {
  1644. + compatible = "fsl,sec-v5.4-job-ring",
  1645. + "fsl,sec-v5.0-job-ring",
  1646. + "fsl,sec-v4.0-job-ring";
  1647. + reg = <0x40000 0x10000>;
  1648. + interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
  1649. + };
  1650. +
  1651. + caam-dma {
  1652. + compatible = "fsl,sec-v5.4-dma",
  1653. + "fsl,sec-v5.0-dma",
  1654. + "fsl,sec-v4.0-dma";
  1655. + };
  1656. +
  1657. + rtic@60000 {
  1658. + compatible = "fsl,sec-v5.4-rtic",
  1659. + "fsl,sec-v5.0-rtic",
  1660. + "fsl,sec-v4.0-rtic";
  1661. + #address-cells = <1>;
  1662. + #size-cells = <1>;
  1663. + reg = <0x60000 0x100 0x60e00 0x18>;
  1664. + ranges = <0x0 0x60100 0x500>;
  1665. +
  1666. + rtic_a: rtic-a@0 {
  1667. + compatible = "fsl,sec-v5.4-rtic-memory",
  1668. + "fsl,sec-v5.0-rtic-memory",
  1669. + "fsl,sec-v4.0-rtic-memory";
  1670. + reg = <0x00 0x20 0x100 0x100>;
  1671. + };
  1672. +
  1673. + rtic_b: rtic-b@20 {
  1674. + compatible = "fsl,sec-v5.4-rtic-memory",
  1675. + "fsl,sec-v5.0-rtic-memory",
  1676. + "fsl,sec-v4.0-rtic-memory";
  1677. + reg = <0x20 0x20 0x200 0x100>;
  1678. + };
  1679. +
  1680. + rtic_c: rtic-c@40 {
  1681. + compatible = "fsl,sec-v5.4-rtic-memory",
  1682. + "fsl,sec-v5.0-rtic-memory",
  1683. + "fsl,sec-v4.0-rtic-memory";
  1684. + reg = <0x40 0x20 0x300 0x100>;
  1685. + };
  1686. +
  1687. + rtic_d: rtic-d@60 {
  1688. + compatible = "fsl,sec-v5.4-rtic-memory",
  1689. + "fsl,sec-v5.0-rtic-memory",
  1690. + "fsl,sec-v4.0-rtic-memory";
  1691. + reg = <0x60 0x20 0x400 0x100>;
  1692. + };
  1693. + };
  1694. + };
  1695. +
  1696. + sec_mon: sec_mon@1e90000 {
  1697. + compatible = "fsl,sec-v5.4-mon", "fsl,sec-v5.0-mon",
  1698. + "fsl,sec-v4.0-mon";
  1699. + reg = <0x0 0x1e90000 0x0 0x10000>;
  1700. + interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>,
  1701. + <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
  1702. + };
  1703. +
  1704. + dcfg: dcfg@1ee0000 {
  1705. + compatible = "fsl,ls1012a-dcfg",
  1706. + "syscon";
  1707. + reg = <0x0 0x1ee0000 0x0 0x10000>;
  1708. + big-endian;
  1709. + };
  1710. +
  1711. + clockgen: clocking@1ee1000 {
  1712. + compatible = "fsl,ls1012a-clockgen";
  1713. + reg = <0x0 0x1ee1000 0x0 0x1000>;
  1714. + #clock-cells = <2>;
  1715. + clocks = <&sysclk &coreclk>;
  1716. + clock-names = "sysclk", "coreclk";
  1717. + };
  1718. +
  1719. + tmu: tmu@1f00000 {
  1720. + compatible = "fsl,qoriq-tmu";
  1721. + reg = <0x0 0x1f00000 0x0 0x10000>;
  1722. + interrupts = <0 33 0x4>;
  1723. + fsl,tmu-range = <0xb0000 0x9002a 0x6004c 0x30062>;
  1724. + fsl,tmu-calibration = <0x00000000 0x00000026
  1725. + 0x00000001 0x0000002d
  1726. + 0x00000002 0x00000032
  1727. + 0x00000003 0x00000039
  1728. + 0x00000004 0x0000003f
  1729. + 0x00000005 0x00000046
  1730. + 0x00000006 0x0000004d
  1731. + 0x00000007 0x00000054
  1732. + 0x00000008 0x0000005a
  1733. + 0x00000009 0x00000061
  1734. + 0x0000000a 0x0000006a
  1735. + 0x0000000b 0x00000071
  1736. +
  1737. + 0x00010000 0x00000025
  1738. + 0x00010001 0x0000002c
  1739. + 0x00010002 0x00000035
  1740. + 0x00010003 0x0000003d
  1741. + 0x00010004 0x00000045
  1742. + 0x00010005 0x0000004e
  1743. + 0x00010006 0x00000057
  1744. + 0x00010007 0x00000061
  1745. + 0x00010008 0x0000006b
  1746. + 0x00010009 0x00000076
  1747. +
  1748. + 0x00020000 0x00000029
  1749. + 0x00020001 0x00000033
  1750. + 0x00020002 0x0000003d
  1751. + 0x00020003 0x00000049
  1752. + 0x00020004 0x00000056
  1753. + 0x00020005 0x00000061
  1754. + 0x00020006 0x0000006d
  1755. +
  1756. + 0x00030000 0x00000021
  1757. + 0x00030001 0x0000002a
  1758. + 0x00030002 0x0000003c
  1759. + 0x00030003 0x0000004e>;
  1760. + big-endian;
  1761. + #thermal-sensor-cells = <1>;
  1762. + };
  1763. +
  1764. + thermal-zones {
  1765. + cpu_thermal: cpu-thermal {
  1766. + polling-delay-passive = <1000>;
  1767. + polling-delay = <5000>;
  1768. + thermal-sensors = <&tmu 0>;
  1769. +
  1770. + trips {
  1771. + cpu_alert: cpu-alert {
  1772. + temperature = <85000>;
  1773. + hysteresis = <2000>;
  1774. + type = "passive";
  1775. + };
  1776. +
  1777. + cpu_crit: cpu-crit {
  1778. + temperature = <95000>;
  1779. + hysteresis = <2000>;
  1780. + type = "critical";
  1781. + };
  1782. + };
  1783. +
  1784. + cooling-maps {
  1785. + map0 {
  1786. + trip = <&cpu_alert>;
  1787. + cooling-device =
  1788. + <&cpu0 THERMAL_NO_LIMIT
  1789. + THERMAL_NO_LIMIT>;
  1790. + };
  1791. + };
  1792. + };
  1793. + };
  1794. +
  1795. + esdhc0: esdhc@1560000 {
  1796. + compatible = "fsl,ls1012a-esdhc", "fsl,esdhc";
  1797. + reg = <0x0 0x1560000 0x0 0x10000>;
  1798. + interrupts = <0 62 0x4>;
  1799. + clocks = <&clockgen 4 0>;
  1800. + voltage-ranges = <1800 1800 3300 3300>;
  1801. + sdhci,auto-cmd12;
  1802. + big-endian;
  1803. + bus-width = <4>;
  1804. + status = "disabled";
  1805. + };
  1806. +
  1807. + esdhc1: esdhc@1580000 {
  1808. + compatible = "fsl,ls1012a-esdhc", "fsl,esdhc";
  1809. + reg = <0x0 0x1580000 0x0 0x10000>;
  1810. + interrupts = <0 65 0x4>;
  1811. + clocks = <&clockgen 4 0>;
  1812. + voltage-ranges = <1800 1800 3300 3300>;
  1813. + sdhci,auto-cmd12;
  1814. + big-endian;
  1815. + broken-cd;
  1816. + bus-width = <4>;
  1817. + status = "disabled";
  1818. + };
  1819. +
  1820. + rcpm: rcpm@1ee2000 {
  1821. + compatible = "fsl,ls1012a-rcpm", "fsl,qoriq-rcpm-2.1";
  1822. + reg = <0x0 0x1ee2000 0x0 0x1000>;
  1823. + fsl,#rcpm-wakeup-cells = <1>;
  1824. + };
  1825. +
  1826. + ftm0: ftm0@29d0000 {
  1827. + compatible = "fsl,ls1012a-ftm";
  1828. + reg = <0x0 0x29d0000 0x0 0x10000>,
  1829. + <0x0 0x1ee2140 0x0 0x4>;
  1830. + reg-names = "ftm", "FlexTimer1";
  1831. + interrupts = <0 86 0x4>;
  1832. + big-endian;
  1833. + };
  1834. +
  1835. + i2c0: i2c@2180000 {
  1836. + compatible = "fsl,vf610-i2c";
  1837. + #address-cells = <1>;
  1838. + #size-cells = <0>;
  1839. + reg = <0x0 0x2180000 0x0 0x10000>;
  1840. + interrupts = <0 56 IRQ_TYPE_LEVEL_HIGH>;
  1841. + clocks = <&clockgen 4 3>;
  1842. + status = "disabled";
  1843. + };
  1844. +
  1845. + i2c1: i2c@2190000 {
  1846. + compatible = "fsl,vf610-i2c";
  1847. + #address-cells = <1>;
  1848. + #size-cells = <0>;
  1849. + reg = <0x0 0x2190000 0x0 0x10000>;
  1850. + interrupts = <0 57 IRQ_TYPE_LEVEL_HIGH>;
  1851. + clocks = <&clockgen 4 3>;
  1852. + status = "disabled";
  1853. + };
  1854. +
  1855. + duart0: serial@21c0500 {
  1856. + compatible = "fsl,ns16550", "ns16550a";
  1857. + reg = <0x00 0x21c0500 0x0 0x100>;
  1858. + interrupts = <0 54 IRQ_TYPE_LEVEL_HIGH>;
  1859. + clocks = <&clockgen 4 0>;
  1860. + status = "disabled";
  1861. + };
  1862. +
  1863. + duart1: serial@21c0600 {
  1864. + compatible = "fsl,ns16550", "ns16550a";
  1865. + reg = <0x00 0x21c0600 0x0 0x100>;
  1866. + interrupts = <0 54 IRQ_TYPE_LEVEL_HIGH>;
  1867. + clocks = <&clockgen 4 0>;
  1868. + status = "disabled";
  1869. + };
  1870. +
  1871. + gpio0: gpio@2300000 {
  1872. + compatible = "fsl,qoriq-gpio";
  1873. + reg = <0x0 0x2300000 0x0 0x10000>;
  1874. + interrupts = <0 66 IRQ_TYPE_LEVEL_HIGH>;
  1875. + gpio-controller;
  1876. + #gpio-cells = <2>;
  1877. + interrupt-controller;
  1878. + #interrupt-cells = <2>;
  1879. + };
  1880. +
  1881. + gpio1: gpio@2310000 {
  1882. + compatible = "fsl,qoriq-gpio";
  1883. + reg = <0x0 0x2310000 0x0 0x10000>;
  1884. + interrupts = <0 67 IRQ_TYPE_LEVEL_HIGH>;
  1885. + gpio-controller;
  1886. + #gpio-cells = <2>;
  1887. + interrupt-controller;
  1888. + #interrupt-cells = <2>;
  1889. + };
  1890. +
  1891. + qspi: quadspi@1550000 {
  1892. + compatible = "fsl,ls1012a-qspi", "fsl,ls1021a-qspi";
  1893. + #address-cells = <1>;
  1894. + #size-cells = <0>;
  1895. + reg = <0x0 0x1550000 0x0 0x10000>,
  1896. + <0x0 0x40000000 0x0 0x10000000>;
  1897. + reg-names = "QuadSPI", "QuadSPI-memory";
  1898. + interrupts = <0 99 IRQ_TYPE_LEVEL_HIGH>;
  1899. + clock-names = "qspi_en", "qspi";
  1900. + clocks = <&clockgen 4 0>, <&clockgen 4 0>;
  1901. + big-endian;
  1902. + fsl,qspi-has-second-chip;
  1903. + status = "disabled";
  1904. + };
  1905. +
  1906. + wdog0: wdog@2ad0000 {
  1907. + compatible = "fsl,ls1012a-wdt",
  1908. + "fsl,imx21-wdt";
  1909. + reg = <0x0 0x2ad0000 0x0 0x10000>;
  1910. + interrupts = <0 83 IRQ_TYPE_LEVEL_HIGH>;
  1911. + clocks = <&clockgen 4 0>;
  1912. + big-endian;
  1913. + };
  1914. +
  1915. + sai1: sai@2b50000 {
  1916. + #sound-dai-cells = <0>;
  1917. + compatible = "fsl,vf610-sai";
  1918. + reg = <0x0 0x2b50000 0x0 0x10000>;
  1919. + interrupts = <0 148 IRQ_TYPE_LEVEL_HIGH>;
  1920. + clocks = <&clockgen 4 3>, <&clockgen 4 3>,
  1921. + <&clockgen 4 3>, <&clockgen 4 3>;
  1922. + clock-names = "bus", "mclk1", "mclk2", "mclk3";
  1923. + dma-names = "tx", "rx";
  1924. + dmas = <&edma0 1 47>,
  1925. + <&edma0 1 46>;
  1926. + status = "disabled";
  1927. + };
  1928. +
  1929. + sai2: sai@2b60000 {
  1930. + #sound-dai-cells = <0>;
  1931. + compatible = "fsl,vf610-sai";
  1932. + reg = <0x0 0x2b60000 0x0 0x10000>;
  1933. + interrupts = <0 149 IRQ_TYPE_LEVEL_HIGH>;
  1934. + clocks = <&clockgen 4 3>, <&clockgen 4 3>,
  1935. + <&clockgen 4 3>, <&clockgen 4 3>;
  1936. + clock-names = "bus", "mclk1", "mclk2", "mclk3";
  1937. + dma-names = "tx", "rx";
  1938. + dmas = <&edma0 1 45>,
  1939. + <&edma0 1 44>;
  1940. + status = "disabled";
  1941. + };
  1942. +
  1943. + edma0: edma@2c00000 {
  1944. + #dma-cells = <2>;
  1945. + compatible = "fsl,vf610-edma";
  1946. + reg = <0x0 0x2c00000 0x0 0x10000>,
  1947. + <0x0 0x2c10000 0x0 0x10000>,
  1948. + <0x0 0x2c20000 0x0 0x10000>;
  1949. + interrupts = <0 103 IRQ_TYPE_LEVEL_HIGH>,
  1950. + <0 103 IRQ_TYPE_LEVEL_HIGH>;
  1951. + interrupt-names = "edma-tx", "edma-err";
  1952. + dma-channels = <32>;
  1953. + big-endian;
  1954. + clock-names = "dmamux0", "dmamux1";
  1955. + clocks = <&clockgen 4 3>,
  1956. + <&clockgen 4 3>;
  1957. + };
  1958. +
  1959. + usb0: usb3@2f00000 {
  1960. + compatible = "snps,dwc3";
  1961. + reg = <0x0 0x2f00000 0x0 0x10000>;
  1962. + interrupts = <0 60 0x4>;
  1963. + dr_mode = "host";
  1964. + snps,quirk-frame-length-adjustment = <0x20>;
  1965. + snps,dis_rxdet_inp3_quirk;
  1966. + };
  1967. +
  1968. + usb1: usb2@8600000 {
  1969. + compatible = "fsl-usb2-dr-v2.5", "fsl-usb2-dr";
  1970. + reg = <0x0 0x8600000 0x0 0x1000>;
  1971. + interrupts = <0 139 0x4>;
  1972. + dr_mode = "host";
  1973. + phy_type = "ulpi";
  1974. + };
  1975. +
  1976. + sata: sata@3200000 {
  1977. + compatible = "fsl,ls1012a-ahci", "fsl,ls1043a-ahci";
  1978. + reg = <0x0 0x3200000 0x0 0x10000>,
  1979. + <0x0 0x20140520 0x0 0x4>;
  1980. + reg-names = "ahci", "sata-ecc";
  1981. + interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>;
  1982. + clocks = <&clockgen 4 0>;
  1983. + dma-coherent;
  1984. + status = "disabled";
  1985. + };
  1986. +
  1987. + msi: msi-controller1@1572000 {
  1988. + compatible = "fsl,ls1012a-msi";
  1989. + reg = <0x0 0x1572000 0x0 0x8>;
  1990. + msi-controller;
  1991. + interrupts = <0 126 IRQ_TYPE_LEVEL_HIGH>;
  1992. + };
  1993. +
  1994. + pcie: pcie@3400000 {
  1995. + compatible = "fsl,ls1012a-pcie", "snps,dw-pcie";
  1996. + reg = <0x00 0x03400000 0x0 0x00100000 /* controller registers */
  1997. + 0x40 0x00000000 0x0 0x00002000>; /* configuration space */
  1998. + reg-names = "regs", "config";
  1999. + interrupts = <0 118 0x4>, /* AER interrupt */
  2000. + <0 117 0x4>; /* PME interrupt */
  2001. + interrupt-names = "aer", "pme";
  2002. + #address-cells = <3>;
  2003. + #size-cells = <2>;
  2004. + device_type = "pci";
  2005. + num-lanes = <4>;
  2006. + bus-range = <0x0 0xff>;
  2007. + ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000 /* downstream I/O */
  2008. + 0x82000000 0x0 0x40000000 0x40 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
  2009. + msi-parent = <&msi>;
  2010. + #interrupt-cells = <1>;
  2011. + interrupt-map-mask = <0 0 0 7>;
  2012. + interrupt-map = <0000 0 0 1 &gic 0 110 IRQ_TYPE_LEVEL_HIGH>,
  2013. + <0000 0 0 2 &gic 0 111 IRQ_TYPE_LEVEL_HIGH>,
  2014. + <0000 0 0 3 &gic 0 112 IRQ_TYPE_LEVEL_HIGH>,
  2015. + <0000 0 0 4 &gic 0 113 IRQ_TYPE_LEVEL_HIGH>;
  2016. + status = "disabled";
  2017. + };
  2018. + };
  2019. +
  2020. + reserved-memory {
  2021. + #address-cells = <2>;
  2022. + #size-cells = <2>;
  2023. + ranges;
  2024. +
  2025. + pfe_reserved: packetbuffer@83400000 {
  2026. + reg = <0 0x83400000 0 0xc00000>;
  2027. + };
  2028. + };
  2029. +
  2030. + pfe: pfe@04000000 {
  2031. + compatible = "fsl,pfe";
  2032. + reg = <0x0 0x04000000 0x0 0xc00000>, /* AXI 16M */
  2033. + <0x0 0x83400000 0x0 0xc00000>; /* PFE DDR 12M */
  2034. + reg-names = "pfe", "pfe-ddr";
  2035. + fsl,pfe-num-interfaces = <0x2>;
  2036. + interrupts = <0 172 0x4>, /* HIF interrupt */
  2037. + <0 173 0x4>, /*HIF_NOCPY interrupt */
  2038. + <0 174 0x4>; /* WoL interrupt */
  2039. + interrupt-names = "pfe_hif", "pfe_hif_nocpy", "pfe_wol";
  2040. + memory-region = <&pfe_reserved>;
  2041. + fsl,pfe-scfg = <&scfg 0>;
  2042. + fsl,rcpm-wakeup = <&rcpm 0xf0000020>;
  2043. + clocks = <&clockgen 4 0>;
  2044. + clock-names = "pfe";
  2045. +
  2046. + status = "okay";
  2047. + pfe_mac0: ethernet@0 {
  2048. + };
  2049. +
  2050. + pfe_mac1: ethernet@1 {
  2051. + };
  2052. + };
  2053. +
  2054. + firmware {
  2055. + optee {
  2056. + compatible = "linaro,optee-tz";
  2057. + method = "smc";
  2058. + };
  2059. + };
  2060. +};
  2061. --- /dev/null
  2062. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043-post.dtsi
  2063. @@ -0,0 +1,45 @@
  2064. +/*
  2065. + * QorIQ FMan v3 device tree nodes for ls1043
  2066. + *
  2067. + * Copyright 2015-2016 Freescale Semiconductor Inc.
  2068. + *
  2069. + * SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
  2070. + */
  2071. +
  2072. +&soc {
  2073. +
  2074. +/* include used FMan blocks */
  2075. +#include "qoriq-fman3-0.dtsi"
  2076. +#include "qoriq-fman3-0-1g-0.dtsi"
  2077. +#include "qoriq-fman3-0-1g-1.dtsi"
  2078. +#include "qoriq-fman3-0-1g-2.dtsi"
  2079. +#include "qoriq-fman3-0-1g-3.dtsi"
  2080. +#include "qoriq-fman3-0-1g-4.dtsi"
  2081. +#include "qoriq-fman3-0-1g-5.dtsi"
  2082. +#include "qoriq-fman3-0-10g-0.dtsi"
  2083. +
  2084. +};
  2085. +
  2086. +&fman0 {
  2087. + /* these aliases provide the FMan ports mapping */
  2088. + enet0: ethernet@e0000 {
  2089. + };
  2090. +
  2091. + enet1: ethernet@e2000 {
  2092. + };
  2093. +
  2094. + enet2: ethernet@e4000 {
  2095. + };
  2096. +
  2097. + enet3: ethernet@e6000 {
  2098. + };
  2099. +
  2100. + enet4: ethernet@e8000 {
  2101. + };
  2102. +
  2103. + enet5: ethernet@ea000 {
  2104. + };
  2105. +
  2106. + enet6: ethernet@f0000 {
  2107. + };
  2108. +};
  2109. --- /dev/null
  2110. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-qds-sdk.dts
  2111. @@ -0,0 +1,69 @@
  2112. +/*
  2113. + * Device Tree Include file for Freescale Layerscape-1043A family SoC.
  2114. + *
  2115. + * Copyright 2014-2015 Freescale Semiconductor, Inc.
  2116. + *
  2117. + * Mingkai Hu <[email protected]>
  2118. + *
  2119. + * This file is dual-licensed: you can use it either under the terms
  2120. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  2121. + * licensing only applies to this file, and not this project as a
  2122. + * whole.
  2123. + *
  2124. + * a) This library is free software; you can redistribute it and/or
  2125. + * modify it under the terms of the GNU General Public License as
  2126. + * published by the Free Software Foundation; either version 2 of the
  2127. + * License, or (at your option) any later version.
  2128. + *
  2129. + * This library is distributed in the hope that it will be useful,
  2130. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  2131. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  2132. + * GNU General Public License for more details.
  2133. + *
  2134. + * Or, alternatively,
  2135. + *
  2136. + * b) Permission is hereby granted, free of charge, to any person
  2137. + * obtaining a copy of this software and associated documentation
  2138. + * files (the "Software"), to deal in the Software without
  2139. + * restriction, including without limitation the rights to use,
  2140. + * copy, modify, merge, publish, distribute, sublicense, and/or
  2141. + * sell copies of the Software, and to permit persons to whom the
  2142. + * Software is furnished to do so, subject to the following
  2143. + * conditions:
  2144. + *
  2145. + * The above copyright notice and this permission notice shall be
  2146. + * included in all copies or substantial portions of the Software.
  2147. + *
  2148. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  2149. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  2150. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  2151. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  2152. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  2153. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  2154. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  2155. + * OTHER DEALINGS IN THE SOFTWARE.
  2156. + */
  2157. +
  2158. +#include "fsl-ls1043a-qds.dts"
  2159. +
  2160. +&bman_fbpr {
  2161. + compatible = "fsl,bman-fbpr";
  2162. + alloc-ranges = <0 0 0x10000 0>;
  2163. +};
  2164. +&qman_fqd {
  2165. + compatible = "fsl,qman-fqd";
  2166. + alloc-ranges = <0 0 0x10000 0>;
  2167. +};
  2168. +&qman_pfdr {
  2169. + compatible = "fsl,qman-pfdr";
  2170. + alloc-ranges = <0 0 0x10000 0>;
  2171. +};
  2172. +
  2173. +&soc {
  2174. +#include "qoriq-dpaa-eth.dtsi"
  2175. +#include "qoriq-fman3-0-6oh.dtsi"
  2176. +};
  2177. +
  2178. +&fman0 {
  2179. + compatible = "fsl,fman", "simple-bus";
  2180. +};
  2181. --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts
  2182. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts
  2183. @@ -1,7 +1,7 @@
  2184. /*
  2185. * Device Tree Include file for Freescale Layerscape-1043A family SoC.
  2186. *
  2187. - * Copyright 2014-2015, Freescale Semiconductor
  2188. + * Copyright 2014-2015 Freescale Semiconductor, Inc.
  2189. *
  2190. * Mingkai Hu <[email protected]>
  2191. *
  2192. @@ -45,7 +45,7 @@
  2193. */
  2194. /dts-v1/;
  2195. -/include/ "fsl-ls1043a.dtsi"
  2196. +#include "fsl-ls1043a.dtsi"
  2197. / {
  2198. model = "LS1043A QDS Board";
  2199. @@ -60,6 +60,22 @@
  2200. serial1 = &duart1;
  2201. serial2 = &duart2;
  2202. serial3 = &duart3;
  2203. + sgmii_riser_s1_p1 = &sgmii_phy_s1_p1;
  2204. + sgmii_riser_s2_p1 = &sgmii_phy_s2_p1;
  2205. + sgmii_riser_s3_p1 = &sgmii_phy_s3_p1;
  2206. + sgmii_riser_s4_p1 = &sgmii_phy_s4_p1;
  2207. + qsgmii_s1_p1 = &qsgmii_phy_s1_p1;
  2208. + qsgmii_s1_p2 = &qsgmii_phy_s1_p2;
  2209. + qsgmii_s1_p3 = &qsgmii_phy_s1_p3;
  2210. + qsgmii_s1_p4 = &qsgmii_phy_s1_p4;
  2211. + qsgmii_s2_p1 = &qsgmii_phy_s2_p1;
  2212. + qsgmii_s2_p2 = &qsgmii_phy_s2_p2;
  2213. + qsgmii_s2_p3 = &qsgmii_phy_s2_p3;
  2214. + qsgmii_s2_p4 = &qsgmii_phy_s2_p4;
  2215. + emi1_slot1 = &ls1043mdio_s1;
  2216. + emi1_slot2 = &ls1043mdio_s2;
  2217. + emi1_slot3 = &ls1043mdio_s3;
  2218. + emi1_slot4 = &ls1043mdio_s4;
  2219. };
  2220. chosen {
  2221. @@ -97,8 +113,11 @@
  2222. };
  2223. fpga: board-control@2,0 {
  2224. - compatible = "fsl,ls1043aqds-fpga", "fsl,fpga-qixis";
  2225. + #address-cells = <1>;
  2226. + #size-cells = <1>;
  2227. + compatible = "fsl,ls1043aqds-fpga", "fsl,fpga-qixis", "simple-bus";
  2228. reg = <0x2 0x0 0x0000100>;
  2229. + ranges = <0 2 0 0x100>;
  2230. };
  2231. };
  2232. @@ -181,3 +200,149 @@
  2233. reg = <0>;
  2234. };
  2235. };
  2236. +
  2237. +#include "fsl-ls1043-post.dtsi"
  2238. +
  2239. +&fman0 {
  2240. + ethernet@e0000 {
  2241. + phy-handle = <&qsgmii_phy_s2_p1>;
  2242. + phy-connection-type = "sgmii";
  2243. + };
  2244. +
  2245. + ethernet@e2000 {
  2246. + phy-handle = <&qsgmii_phy_s2_p2>;
  2247. + phy-connection-type = "sgmii";
  2248. + };
  2249. +
  2250. + ethernet@e4000 {
  2251. + phy-handle = <&rgmii_phy1>;
  2252. + phy-connection-type = "rgmii";
  2253. + };
  2254. +
  2255. + ethernet@e6000 {
  2256. + phy-handle = <&rgmii_phy2>;
  2257. + phy-connection-type = "rgmii";
  2258. + };
  2259. +
  2260. + ethernet@e8000 {
  2261. + phy-handle = <&qsgmii_phy_s2_p3>;
  2262. + phy-connection-type = "sgmii";
  2263. + };
  2264. +
  2265. + ethernet@ea000 {
  2266. + phy-handle = <&qsgmii_phy_s2_p4>;
  2267. + phy-connection-type = "sgmii";
  2268. + };
  2269. +
  2270. + ethernet@f0000 { /* DTSEC9/10GEC1 */
  2271. + fixed-link = <1 1 10000 0 0>;
  2272. + phy-connection-type = "xgmii";
  2273. + };
  2274. +};
  2275. +
  2276. +&fpga {
  2277. + mdio-mux-emi1 {
  2278. + compatible = "mdio-mux-mmioreg", "mdio-mux";
  2279. + mdio-parent-bus = <&mdio0>;
  2280. + #address-cells = <1>;
  2281. + #size-cells = <0>;
  2282. + reg = <0x54 1>; /* BRDCFG4 */
  2283. + mux-mask = <0xe0>; /* EMI1 */
  2284. +
  2285. + /* On-board RGMII1 PHY */
  2286. + ls1043mdio0: mdio@0 {
  2287. + reg = <0>;
  2288. + #address-cells = <1>;
  2289. + #size-cells = <0>;
  2290. +
  2291. + rgmii_phy1: ethernet-phy@1 { /* MAC3 */
  2292. + reg = <0x1>;
  2293. + };
  2294. + };
  2295. +
  2296. + /* On-board RGMII2 PHY */
  2297. + ls1043mdio1: mdio@1 {
  2298. + reg = <0x20>;
  2299. + #address-cells = <1>;
  2300. + #size-cells = <0>;
  2301. +
  2302. + rgmii_phy2: ethernet-phy@2 { /* MAC4 */
  2303. + reg = <0x2>;
  2304. + };
  2305. + };
  2306. +
  2307. + /* Slot 1 */
  2308. + ls1043mdio_s1: mdio@2 {
  2309. + reg = <0x40>;
  2310. + #address-cells = <1>;
  2311. + #size-cells = <0>;
  2312. + status = "disabled";
  2313. +
  2314. + qsgmii_phy_s1_p1: ethernet-phy@4 {
  2315. + reg = <0x4>;
  2316. + };
  2317. + qsgmii_phy_s1_p2: ethernet-phy@5 {
  2318. + reg = <0x5>;
  2319. + };
  2320. + qsgmii_phy_s1_p3: ethernet-phy@6 {
  2321. + reg = <0x6>;
  2322. + };
  2323. + qsgmii_phy_s1_p4: ethernet-phy@7 {
  2324. + reg = <0x7>;
  2325. + };
  2326. +
  2327. + sgmii_phy_s1_p1: ethernet-phy@1c {
  2328. + reg = <0x1c>;
  2329. + };
  2330. + };
  2331. +
  2332. + /* Slot 2 */
  2333. + ls1043mdio_s2: mdio@3 {
  2334. + reg = <0x60>;
  2335. + #address-cells = <1>;
  2336. + #size-cells = <0>;
  2337. + status = "disabled";
  2338. +
  2339. + qsgmii_phy_s2_p1: ethernet-phy@8 {
  2340. + reg = <0x8>;
  2341. + };
  2342. + qsgmii_phy_s2_p2: ethernet-phy@9 {
  2343. + reg = <0x9>;
  2344. + };
  2345. + qsgmii_phy_s2_p3: ethernet-phy@a {
  2346. + reg = <0xa>;
  2347. + };
  2348. + qsgmii_phy_s2_p4: ethernet-phy@b {
  2349. + reg = <0xb>;
  2350. + };
  2351. +
  2352. + sgmii_phy_s2_p1: ethernet-phy@1c {
  2353. + reg = <0x1c>;
  2354. + };
  2355. + };
  2356. +
  2357. + /* Slot 3 */
  2358. + ls1043mdio_s3: mdio@4 {
  2359. + reg = <0x80>;
  2360. + #address-cells = <1>;
  2361. + #size-cells = <0>;
  2362. + status = "disabled";
  2363. +
  2364. + sgmii_phy_s3_p1: ethernet-phy@1c {
  2365. + reg = <0x1c>;
  2366. + };
  2367. + };
  2368. +
  2369. + /* Slot 4 */
  2370. + ls1043mdio_s4: mdio@5 {
  2371. + reg = <0xa0>;
  2372. + #address-cells = <1>;
  2373. + #size-cells = <0>;
  2374. + status = "disabled";
  2375. +
  2376. + sgmii_phy_s4_p1: ethernet-phy@1c {
  2377. + reg = <0x1c>;
  2378. + };
  2379. + };
  2380. + };
  2381. +};
  2382. --- /dev/null
  2383. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb-sdk.dts
  2384. @@ -0,0 +1,69 @@
  2385. +/*
  2386. + * Device Tree Include file for Freescale Layerscape-1043A family SoC.
  2387. + *
  2388. + * Copyright 2014-2015 Freescale Semiconductor, Inc.
  2389. + *
  2390. + * Mingkai Hu <[email protected]>
  2391. + *
  2392. + * This file is dual-licensed: you can use it either under the terms
  2393. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  2394. + * licensing only applies to this file, and not this project as a
  2395. + * whole.
  2396. + *
  2397. + * a) This library is free software; you can redistribute it and/or
  2398. + * modify it under the terms of the GNU General Public License as
  2399. + * published by the Free Software Foundation; either version 2 of the
  2400. + * License, or (at your option) any later version.
  2401. + *
  2402. + * This library is distributed in the hope that it will be useful,
  2403. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  2404. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  2405. + * GNU General Public License for more details.
  2406. + *
  2407. + * Or, alternatively,
  2408. + *
  2409. + * b) Permission is hereby granted, free of charge, to any person
  2410. + * obtaining a copy of this software and associated documentation
  2411. + * files (the "Software"), to deal in the Software without
  2412. + * restriction, including without limitation the rights to use,
  2413. + * copy, modify, merge, publish, distribute, sublicense, and/or
  2414. + * sell copies of the Software, and to permit persons to whom the
  2415. + * Software is furnished to do so, subject to the following
  2416. + * conditions:
  2417. + *
  2418. + * The above copyright notice and this permission notice shall be
  2419. + * included in all copies or substantial portions of the Software.
  2420. + *
  2421. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  2422. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  2423. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  2424. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  2425. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  2426. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  2427. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  2428. + * OTHER DEALINGS IN THE SOFTWARE.
  2429. + */
  2430. +
  2431. +#include "fsl-ls1043a-rdb.dts"
  2432. +
  2433. +&bman_fbpr {
  2434. + compatible = "fsl,bman-fbpr";
  2435. + alloc-ranges = <0 0 0x10000 0>;
  2436. +};
  2437. +&qman_fqd {
  2438. + compatible = "fsl,qman-fqd";
  2439. + alloc-ranges = <0 0 0x10000 0>;
  2440. +};
  2441. +&qman_pfdr {
  2442. + compatible = "fsl,qman-pfdr";
  2443. + alloc-ranges = <0 0 0x10000 0>;
  2444. +};
  2445. +
  2446. +&soc {
  2447. +#include "qoriq-dpaa-eth.dtsi"
  2448. +#include "qoriq-fman3-0-6oh.dtsi"
  2449. +};
  2450. +
  2451. +&fman0 {
  2452. + compatible = "fsl,fman", "simple-bus";
  2453. +};
  2454. --- /dev/null
  2455. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb-usdpaa.dts
  2456. @@ -0,0 +1,117 @@
  2457. +/*
  2458. + * Device Tree Include file for Freescale Layerscape-1043A family SoC.
  2459. + *
  2460. + * Copyright 2014-2015 Freescale Semiconductor, Inc.
  2461. + *
  2462. + * This file is licensed under the terms of the GNU General Public
  2463. + * License version 2. This program is licensed "as is" without any
  2464. + * warranty of any kind, whether express or implied.
  2465. + */
  2466. +
  2467. +#include "fsl-ls1043a-rdb-sdk.dts"
  2468. +
  2469. +&soc {
  2470. + bp7: buffer-pool@7 {
  2471. + compatible = "fsl,p4080-bpool", "fsl,bpool";
  2472. + fsl,bpid = <7>;
  2473. + fsl,bpool-ethernet-cfg = <0 0 0 192 0 0xdeadbeef>;
  2474. + fsl,bpool-thresholds = <0x400 0xc00 0x0 0x0>;
  2475. + };
  2476. +
  2477. + bp8: buffer-pool@8 {
  2478. + compatible = "fsl,p4080-bpool", "fsl,bpool";
  2479. + fsl,bpid = <8>;
  2480. + fsl,bpool-ethernet-cfg = <0 0 0 576 0 0xabbaf00d>;
  2481. + fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
  2482. + };
  2483. +
  2484. + bp9: buffer-pool@9 {
  2485. + compatible = "fsl,p4080-bpool", "fsl,bpool";
  2486. + fsl,bpid = <9>;
  2487. + fsl,bpool-ethernet-cfg = <0 0 0 2048 0 0xfeedabba>;
  2488. + fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
  2489. + };
  2490. +
  2491. + fsl,dpaa {
  2492. + compatible = "fsl,ls1043a", "fsl,dpaa", "simple-bus";
  2493. +
  2494. + ethernet@0 {
  2495. + compatible = "fsl,dpa-ethernet-init";
  2496. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  2497. + fsl,qman-frame-queues-rx = <0x50 1 0x51 1>;
  2498. + fsl,qman-frame-queues-tx = <0x70 1 0x71 1>;
  2499. + };
  2500. +
  2501. + ethernet@1 {
  2502. + compatible = "fsl,dpa-ethernet-init";
  2503. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  2504. + fsl,qman-frame-queues-rx = <0x52 1 0x53 1>;
  2505. + fsl,qman-frame-queues-tx = <0x72 1 0x73 1>;
  2506. + };
  2507. +
  2508. + ethernet@2 {
  2509. + compatible = "fsl,dpa-ethernet-init";
  2510. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  2511. + fsl,qman-frame-queues-rx = <0x54 1 0x55 1>;
  2512. + fsl,qman-frame-queues-tx = <0x74 1 0x75 1>;
  2513. + };
  2514. +
  2515. + ethernet@3 {
  2516. + compatible = "fsl,dpa-ethernet-init";
  2517. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  2518. + fsl,qman-frame-queues-rx = <0x56 1 0x57 1>;
  2519. + fsl,qman-frame-queues-tx = <0x76 1 0x77 1>;
  2520. + };
  2521. +
  2522. + ethernet@4 {
  2523. + compatible = "fsl,dpa-ethernet-init";
  2524. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  2525. + fsl,qman-frame-queues-rx = <0x58 1 0x59 1>;
  2526. + fsl,qman-frame-queues-tx = <0x78 1 0x79 1>;
  2527. + };
  2528. +
  2529. + ethernet@5 {
  2530. + compatible = "fsl,dpa-ethernet-init";
  2531. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  2532. + fsl,qman-frame-queues-rx = <0x60 1 0x61 1>;
  2533. + fsl,qman-frame-queues-tx = <0x80 1 0x81 1>;
  2534. + };
  2535. +
  2536. + ethernet@8 {
  2537. + compatible = "fsl,dpa-ethernet-init";
  2538. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  2539. + fsl,qman-frame-queues-rx = <0x5c 1 0x5d 1>;
  2540. + fsl,qman-frame-queues-tx = <0x7c 1 0x7d 1>;
  2541. +
  2542. + };
  2543. + dpa-fman0-oh@2 {
  2544. + compatible = "fsl,dpa-oh";
  2545. + /* Define frame queues for the OH port*/
  2546. + /* <OH Rx error, OH Rx default> */
  2547. + fsl,qman-frame-queues-oh = <0x5a 1 0x5b 1>;
  2548. + fsl,fman-oh-port = <&fman0_oh2>;
  2549. + };
  2550. + };
  2551. +};
  2552. +/ {
  2553. + reserved-memory {
  2554. + #address-cells = <2>;
  2555. + #size-cells = <2>;
  2556. + ranges;
  2557. +
  2558. + usdpaa_mem: usdpaa_mem {
  2559. + compatible = "fsl,usdpaa-mem";
  2560. + alloc-ranges = <0 0 0x10000 0>;
  2561. + size = <0 0x10000000>;
  2562. + alignment = <0 0x10000000>;
  2563. + };
  2564. + };
  2565. +};
  2566. +
  2567. +&fman0 {
  2568. + fman0_oh2: port@83000 {
  2569. + cell-index = <1>;
  2570. + compatible = "fsl,fman-port-oh";
  2571. + reg = <0x83000 0x1000>;
  2572. + };
  2573. +};
  2574. --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts
  2575. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts
  2576. @@ -1,7 +1,7 @@
  2577. /*
  2578. * Device Tree Include file for Freescale Layerscape-1043A family SoC.
  2579. *
  2580. - * Copyright 2014-2015, Freescale Semiconductor
  2581. + * Copyright 2014-2015 Freescale Semiconductor, Inc.
  2582. *
  2583. * Mingkai Hu <[email protected]>
  2584. *
  2585. @@ -45,7 +45,7 @@
  2586. */
  2587. /dts-v1/;
  2588. -/include/ "fsl-ls1043a.dtsi"
  2589. +#include "fsl-ls1043a.dtsi"
  2590. / {
  2591. model = "LS1043A RDB Board";
  2592. @@ -86,6 +86,10 @@
  2593. compatible = "pericom,pt7c4338";
  2594. reg = <0x68>;
  2595. };
  2596. + rtc@51 {
  2597. + compatible = "nxp,pcf85263";
  2598. + reg = <0x51>;
  2599. + };
  2600. };
  2601. &ifc {
  2602. @@ -130,6 +134,38 @@
  2603. reg = <0>;
  2604. spi-max-frequency = <1000000>; /* input clock */
  2605. };
  2606. +
  2607. + slic@2 {
  2608. + compatible = "maxim,ds26522";
  2609. + reg = <2>;
  2610. + spi-max-frequency = <2000000>;
  2611. + fsl,spi-cs-sck-delay = <100>;
  2612. + fsl,spi-sck-cs-delay = <50>;
  2613. + };
  2614. +
  2615. + slic@3 {
  2616. + compatible = "maxim,ds26522";
  2617. + reg = <3>;
  2618. + spi-max-frequency = <2000000>;
  2619. + fsl,spi-cs-sck-delay = <100>;
  2620. + fsl,spi-sck-cs-delay = <50>;
  2621. + };
  2622. +};
  2623. +
  2624. +&uqe {
  2625. + ucc_hdlc: ucc@2000 {
  2626. + compatible = "fsl,ucc-hdlc";
  2627. + rx-clock-name = "clk8";
  2628. + tx-clock-name = "clk9";
  2629. + fsl,rx-sync-clock = "rsync_pin";
  2630. + fsl,tx-sync-clock = "tsync_pin";
  2631. + fsl,tx-timeslot-mask = <0xfffffffe>;
  2632. + fsl,rx-timeslot-mask = <0xfffffffe>;
  2633. + fsl,tdm-framer-type = "e1";
  2634. + fsl,tdm-id = <0>;
  2635. + fsl,siram-entry-id = <0>;
  2636. + fsl,tdm-interface;
  2637. + };
  2638. };
  2639. &duart0 {
  2640. @@ -139,3 +175,76 @@
  2641. &duart1 {
  2642. status = "okay";
  2643. };
  2644. +
  2645. +#include "fsl-ls1043-post.dtsi"
  2646. +
  2647. +&fman0 {
  2648. + ethernet@e0000 {
  2649. + phy-handle = <&qsgmii_phy1>;
  2650. + phy-connection-type = "qsgmii";
  2651. + };
  2652. +
  2653. + ethernet@e2000 {
  2654. + phy-handle = <&qsgmii_phy2>;
  2655. + phy-connection-type = "qsgmii";
  2656. + };
  2657. +
  2658. + ethernet@e4000 {
  2659. + phy-handle = <&rgmii_phy1>;
  2660. + phy-connection-type = "rgmii-txid";
  2661. + };
  2662. +
  2663. + ethernet@e6000 {
  2664. + phy-handle = <&rgmii_phy2>;
  2665. + phy-connection-type = "rgmii-txid";
  2666. + };
  2667. +
  2668. + ethernet@e8000 {
  2669. + phy-handle = <&qsgmii_phy3>;
  2670. + phy-connection-type = "qsgmii";
  2671. + };
  2672. +
  2673. + ethernet@ea000 {
  2674. + phy-handle = <&qsgmii_phy4>;
  2675. + phy-connection-type = "qsgmii";
  2676. + };
  2677. +
  2678. + ethernet@f0000 { /* 10GEC1 */
  2679. + phy-handle = <&aqr105_phy>;
  2680. + phy-connection-type = "xgmii";
  2681. + };
  2682. +
  2683. + mdio@fc000 {
  2684. + rgmii_phy1: ethernet-phy@1 {
  2685. + reg = <0x1>;
  2686. + };
  2687. +
  2688. + rgmii_phy2: ethernet-phy@2 {
  2689. + reg = <0x2>;
  2690. + };
  2691. +
  2692. + qsgmii_phy1: ethernet-phy@4 {
  2693. + reg = <0x4>;
  2694. + };
  2695. +
  2696. + qsgmii_phy2: ethernet-phy@5 {
  2697. + reg = <0x5>;
  2698. + };
  2699. +
  2700. + qsgmii_phy3: ethernet-phy@6 {
  2701. + reg = <0x6>;
  2702. + };
  2703. +
  2704. + qsgmii_phy4: ethernet-phy@7 {
  2705. + reg = <0x7>;
  2706. + };
  2707. + };
  2708. +
  2709. + mdio@fd000 {
  2710. + aqr105_phy: ethernet-phy@1 {
  2711. + compatible = "ethernet-phy-ieee802.3-c45";
  2712. + interrupts = <0 132 4>;
  2713. + reg = <0x1>;
  2714. + };
  2715. + };
  2716. +};
  2717. --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
  2718. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
  2719. @@ -1,7 +1,7 @@
  2720. /*
  2721. * Device Tree Include file for Freescale Layerscape-1043A family SoC.
  2722. *
  2723. - * Copyright 2014-2015, Freescale Semiconductor
  2724. + * Copyright 2014-2015 Freescale Semiconductor, Inc.
  2725. *
  2726. * Mingkai Hu <[email protected]>
  2727. *
  2728. @@ -44,12 +44,25 @@
  2729. * OTHER DEALINGS IN THE SOFTWARE.
  2730. */
  2731. +#include <dt-bindings/thermal/thermal.h>
  2732. +
  2733. / {
  2734. compatible = "fsl,ls1043a";
  2735. interrupt-parent = <&gic>;
  2736. #address-cells = <2>;
  2737. #size-cells = <2>;
  2738. + aliases {
  2739. + fman0 = &fman0;
  2740. + ethernet0 = &enet0;
  2741. + ethernet1 = &enet1;
  2742. + ethernet2 = &enet2;
  2743. + ethernet3 = &enet3;
  2744. + ethernet4 = &enet4;
  2745. + ethernet5 = &enet5;
  2746. + ethernet6 = &enet6;
  2747. + };
  2748. +
  2749. cpus {
  2750. #address-cells = <1>;
  2751. #size-cells = <0>;
  2752. @@ -66,6 +79,8 @@
  2753. reg = <0x0>;
  2754. clocks = <&clockgen 1 0>;
  2755. next-level-cache = <&l2>;
  2756. + #cooling-cells = <2>;
  2757. + cpu-idle-states = <&CPU_PH20>;
  2758. };
  2759. cpu1: cpu@1 {
  2760. @@ -74,6 +89,7 @@
  2761. reg = <0x1>;
  2762. clocks = <&clockgen 1 0>;
  2763. next-level-cache = <&l2>;
  2764. + cpu-idle-states = <&CPU_PH20>;
  2765. };
  2766. cpu2: cpu@2 {
  2767. @@ -82,6 +98,7 @@
  2768. reg = <0x2>;
  2769. clocks = <&clockgen 1 0>;
  2770. next-level-cache = <&l2>;
  2771. + cpu-idle-states = <&CPU_PH20>;
  2772. };
  2773. cpu3: cpu@3 {
  2774. @@ -90,6 +107,7 @@
  2775. reg = <0x3>;
  2776. clocks = <&clockgen 1 0>;
  2777. next-level-cache = <&l2>;
  2778. + cpu-idle-states = <&CPU_PH20>;
  2779. };
  2780. l2: l2-cache {
  2781. @@ -97,12 +115,56 @@
  2782. };
  2783. };
  2784. + idle-states {
  2785. + /*
  2786. + * PSCI node is not added default, U-boot will add missing
  2787. + * parts if it determines to use PSCI.
  2788. + */
  2789. + entry-method = "arm,psci";
  2790. +
  2791. + CPU_PH20: cpu-ph20 {
  2792. + compatible = "arm,idle-state";
  2793. + idle-state-name = "PH20";
  2794. + arm,psci-suspend-param = <0x0>;
  2795. + entry-latency-us = <1000>;
  2796. + exit-latency-us = <1000>;
  2797. + min-residency-us = <3000>;
  2798. + };
  2799. + };
  2800. +
  2801. memory@80000000 {
  2802. device_type = "memory";
  2803. reg = <0x0 0x80000000 0 0x80000000>;
  2804. /* DRAM space 1, size: 2GiB DRAM */
  2805. };
  2806. + reserved-memory {
  2807. + #address-cells = <2>;
  2808. + #size-cells = <2>;
  2809. + ranges;
  2810. +
  2811. + bman_fbpr: bman-fbpr {
  2812. + compatible = "shared-dma-pool";
  2813. + size = <0 0x1000000>;
  2814. + alignment = <0 0x1000000>;
  2815. + no-map;
  2816. + };
  2817. +
  2818. + qman_fqd: qman-fqd {
  2819. + compatible = "shared-dma-pool";
  2820. + size = <0 0x400000>;
  2821. + alignment = <0 0x400000>;
  2822. + no-map;
  2823. + };
  2824. +
  2825. + qman_pfdr: qman-pfdr {
  2826. + compatible = "shared-dma-pool";
  2827. + size = <0 0x2000000>;
  2828. + alignment = <0 0x2000000>;
  2829. + no-map;
  2830. + };
  2831. + };
  2832. +
  2833. sysclk: sysclk {
  2834. compatible = "fixed-clock";
  2835. #clock-cells = <0>;
  2836. @@ -149,7 +211,7 @@
  2837. interrupts = <1 9 0xf08>;
  2838. };
  2839. - soc {
  2840. + soc: soc {
  2841. compatible = "simple-bus";
  2842. #address-cells = <2>;
  2843. #size-cells = <2>;
  2844. @@ -213,13 +275,14 @@
  2845. dcfg: dcfg@1ee0000 {
  2846. compatible = "fsl,ls1043a-dcfg", "syscon";
  2847. - reg = <0x0 0x1ee0000 0x0 0x10000>;
  2848. + reg = <0x0 0x1ee0000 0x0 0x1000>;
  2849. big-endian;
  2850. };
  2851. ifc: ifc@1530000 {
  2852. compatible = "fsl,ifc", "simple-bus";
  2853. reg = <0x0 0x1530000 0x0 0x10000>;
  2854. + big-endian;
  2855. interrupts = <0 43 0x4>;
  2856. };
  2857. @@ -255,6 +318,103 @@
  2858. big-endian;
  2859. };
  2860. + tmu: tmu@1f00000 {
  2861. + compatible = "fsl,qoriq-tmu";
  2862. + reg = <0x0 0x1f00000 0x0 0x10000>;
  2863. + interrupts = <0 33 0x4>;
  2864. + fsl,tmu-range = <0xb0000 0x9002a 0x6004c 0x30062>;
  2865. + fsl,tmu-calibration = <0x00000000 0x00000026
  2866. + 0x00000001 0x0000002d
  2867. + 0x00000002 0x00000032
  2868. + 0x00000003 0x00000039
  2869. + 0x00000004 0x0000003f
  2870. + 0x00000005 0x00000046
  2871. + 0x00000006 0x0000004d
  2872. + 0x00000007 0x00000054
  2873. + 0x00000008 0x0000005a
  2874. + 0x00000009 0x00000061
  2875. + 0x0000000a 0x0000006a
  2876. + 0x0000000b 0x00000071
  2877. +
  2878. + 0x00010000 0x00000025
  2879. + 0x00010001 0x0000002c
  2880. + 0x00010002 0x00000035
  2881. + 0x00010003 0x0000003d
  2882. + 0x00010004 0x00000045
  2883. + 0x00010005 0x0000004e
  2884. + 0x00010006 0x00000057
  2885. + 0x00010007 0x00000061
  2886. + 0x00010008 0x0000006b
  2887. + 0x00010009 0x00000076
  2888. +
  2889. + 0x00020000 0x00000029
  2890. + 0x00020001 0x00000033
  2891. + 0x00020002 0x0000003d
  2892. + 0x00020003 0x00000049
  2893. + 0x00020004 0x00000056
  2894. + 0x00020005 0x00000061
  2895. + 0x00020006 0x0000006d
  2896. +
  2897. + 0x00030000 0x00000021
  2898. + 0x00030001 0x0000002a
  2899. + 0x00030002 0x0000003c
  2900. + 0x00030003 0x0000004e>;
  2901. + #thermal-sensor-cells = <1>;
  2902. + };
  2903. +
  2904. + thermal-zones {
  2905. + cpu_thermal: cpu-thermal {
  2906. + polling-delay-passive = <1000>;
  2907. + polling-delay = <5000>;
  2908. +
  2909. + thermal-sensors = <&tmu 3>;
  2910. +
  2911. + trips {
  2912. + cpu_alert: cpu-alert {
  2913. + temperature = <85000>;
  2914. + hysteresis = <2000>;
  2915. + type = "passive";
  2916. + };
  2917. + cpu_crit: cpu-crit {
  2918. + temperature = <95000>;
  2919. + hysteresis = <2000>;
  2920. + type = "critical";
  2921. + };
  2922. + };
  2923. +
  2924. + cooling-maps {
  2925. + map0 {
  2926. + trip = <&cpu_alert>;
  2927. + cooling-device =
  2928. + <&cpu0 THERMAL_NO_LIMIT
  2929. + THERMAL_NO_LIMIT>;
  2930. + };
  2931. + };
  2932. + };
  2933. + };
  2934. +
  2935. + qman: qman@1880000 {
  2936. + compatible = "fsl,qman";
  2937. + reg = <0x00 0x1880000 0x0 0x10000>;
  2938. + interrupts = <0 45 0x4>;
  2939. + memory-region = <&qman_fqd &qman_pfdr>;
  2940. + };
  2941. +
  2942. + bman: bman@1890000 {
  2943. + compatible = "fsl,bman";
  2944. + reg = <0x00 0x1890000 0x0 0x10000>;
  2945. + interrupts = <0 45 0x4>;
  2946. + memory-region = <&bman_fbpr>;
  2947. + };
  2948. +
  2949. + bportals: bman-portals@508000000 {
  2950. + ranges = <0x0 0x5 0x08000000 0x8000000>;
  2951. + };
  2952. +
  2953. + qportals: qman-portals@500000000 {
  2954. + ranges = <0x0 0x5 0x00000000 0x8000000>;
  2955. + };
  2956. +
  2957. dspi0: dspi@2100000 {
  2958. compatible = "fsl,ls1043a-dspi", "fsl,ls1021a-v1.0-dspi";
  2959. #address-cells = <1>;
  2960. @@ -396,6 +556,72 @@
  2961. #interrupt-cells = <2>;
  2962. };
  2963. + uqe: uqe@2400000 {
  2964. + #address-cells = <1>;
  2965. + #size-cells = <1>;
  2966. + device_type = "qe";
  2967. + compatible = "fsl,qe", "simple-bus";
  2968. + ranges = <0x0 0x0 0x2400000 0x40000>;
  2969. + reg = <0x0 0x2400000 0x0 0x480>;
  2970. + brg-frequency = <100000000>;
  2971. + bus-frequency = <200000000>;
  2972. +
  2973. + fsl,qe-num-riscs = <1>;
  2974. + fsl,qe-num-snums = <28>;
  2975. +
  2976. + qeic: qeic@80 {
  2977. + compatible = "fsl,qe-ic";
  2978. + reg = <0x80 0x80>;
  2979. + #address-cells = <0>;
  2980. + interrupt-controller;
  2981. + #interrupt-cells = <1>;
  2982. + interrupts = <0 77 0x04 0 77 0x04>;
  2983. + };
  2984. +
  2985. + si1: si@700 {
  2986. + #address-cells = <1>;
  2987. + #size-cells = <0>;
  2988. + compatible = "fsl,ls1043-qe-si",
  2989. + "fsl,t1040-qe-si";
  2990. + reg = <0x700 0x80>;
  2991. + };
  2992. +
  2993. + siram1: siram@1000 {
  2994. + #address-cells = <1>;
  2995. + #size-cells = <1>;
  2996. + compatible = "fsl,ls1043-qe-siram",
  2997. + "fsl,t1040-qe-siram";
  2998. + reg = <0x1000 0x800>;
  2999. + };
  3000. +
  3001. + ucc@2000 {
  3002. + cell-index = <1>;
  3003. + reg = <0x2000 0x200>;
  3004. + interrupts = <32>;
  3005. + interrupt-parent = <&qeic>;
  3006. + };
  3007. +
  3008. + ucc@2200 {
  3009. + cell-index = <3>;
  3010. + reg = <0x2200 0x200>;
  3011. + interrupts = <34>;
  3012. + interrupt-parent = <&qeic>;
  3013. + };
  3014. +
  3015. + muram@10000 {
  3016. + #address-cells = <1>;
  3017. + #size-cells = <1>;
  3018. + compatible = "fsl,qe-muram", "fsl,cpm-muram";
  3019. + ranges = <0x0 0x10000 0x6000>;
  3020. +
  3021. + data-only@0 {
  3022. + compatible = "fsl,qe-muram-data",
  3023. + "fsl,cpm-muram-data";
  3024. + reg = <0x0 0x6000>;
  3025. + };
  3026. + };
  3027. + };
  3028. +
  3029. lpuart0: serial@2950000 {
  3030. compatible = "fsl,ls1021a-lpuart";
  3031. reg = <0x0 0x2950000 0x0 0x1000>;
  3032. @@ -450,6 +676,16 @@
  3033. status = "disabled";
  3034. };
  3035. + ftm0: ftm0@29d0000 {
  3036. + compatible = "fsl,ls1043a-ftm";
  3037. + reg = <0x0 0x29d0000 0x0 0x10000>,
  3038. + <0x0 0x1ee2140 0x0 0x4>;
  3039. + reg-names = "ftm", "FlexTimer1";
  3040. + interrupts = <0 86 0x4>;
  3041. + big-endian;
  3042. + status = "okay";
  3043. + };
  3044. +
  3045. wdog0: wdog@2ad0000 {
  3046. compatible = "fsl,ls1043a-wdt", "fsl,imx21-wdt";
  3047. reg = <0x0 0x2ad0000 0x0 0x10000>;
  3048. @@ -482,6 +718,8 @@
  3049. dr_mode = "host";
  3050. snps,quirk-frame-length-adjustment = <0x20>;
  3051. snps,dis_rxdet_inp3_quirk;
  3052. + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
  3053. + snps,dma-snooping;
  3054. };
  3055. usb1: usb3@3000000 {
  3056. @@ -491,6 +729,9 @@
  3057. dr_mode = "host";
  3058. snps,quirk-frame-length-adjustment = <0x20>;
  3059. snps,dis_rxdet_inp3_quirk;
  3060. + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
  3061. + snps,dma-snooping;
  3062. + configure-gfladj;
  3063. };
  3064. usb2: usb3@3100000 {
  3065. @@ -500,32 +741,52 @@
  3066. dr_mode = "host";
  3067. snps,quirk-frame-length-adjustment = <0x20>;
  3068. snps,dis_rxdet_inp3_quirk;
  3069. + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
  3070. + snps,dma-snooping;
  3071. + configure-gfladj;
  3072. };
  3073. sata: sata@3200000 {
  3074. compatible = "fsl,ls1043a-ahci";
  3075. - reg = <0x0 0x3200000 0x0 0x10000>;
  3076. + reg = <0x0 0x3200000 0x0 0x10000>,
  3077. + <0x0 0x20140520 0x0 0x4>;
  3078. + reg-names = "ahci", "sata-ecc";
  3079. interrupts = <0 69 0x4>;
  3080. clocks = <&clockgen 4 0>;
  3081. dma-coherent;
  3082. };
  3083. + qdma: qdma@8380000 {
  3084. + compatible = "fsl,ls1021a-qdma", "fsl,ls1043a-qdma";
  3085. + reg = <0x0 0x8380000 0x0 0x1000>, /* Controller regs */
  3086. + <0x0 0x8390000 0x0 0x10000>, /* Status regs */
  3087. + <0x0 0x83a0000 0x0 0x40000>; /* Block regs */
  3088. + interrupts = <0 152 0x4>,
  3089. + <0 39 0x4>;
  3090. + interrupt-names = "qdma-error", "qdma-queue";
  3091. + channels = <8>;
  3092. + queues = <2>;
  3093. + status-sizes = <64>;
  3094. + queue-sizes = <64 64>;
  3095. + big-endian;
  3096. + };
  3097. +
  3098. msi1: msi-controller1@1571000 {
  3099. - compatible = "fsl,1s1043a-msi";
  3100. + compatible = "fsl,ls1043a-msi";
  3101. reg = <0x0 0x1571000 0x0 0x8>;
  3102. msi-controller;
  3103. interrupts = <0 116 0x4>;
  3104. };
  3105. msi2: msi-controller2@1572000 {
  3106. - compatible = "fsl,1s1043a-msi";
  3107. + compatible = "fsl,ls1043a-msi";
  3108. reg = <0x0 0x1572000 0x0 0x8>;
  3109. msi-controller;
  3110. interrupts = <0 126 0x4>;
  3111. };
  3112. msi3: msi-controller3@1573000 {
  3113. - compatible = "fsl,1s1043a-msi";
  3114. + compatible = "fsl,ls1043a-msi";
  3115. reg = <0x0 0x1573000 0x0 0x8>;
  3116. msi-controller;
  3117. interrupts = <0 160 0x4>;
  3118. @@ -536,9 +797,9 @@
  3119. reg = <0x00 0x03400000 0x0 0x00100000 /* controller registers */
  3120. 0x40 0x00000000 0x0 0x00002000>; /* configuration space */
  3121. reg-names = "regs", "config";
  3122. - interrupts = <0 118 0x4>, /* controller interrupt */
  3123. - <0 117 0x4>; /* PME interrupt */
  3124. - interrupt-names = "intr", "pme";
  3125. + interrupts = <0 117 0x4>, /* PME interrupt */
  3126. + <0 118 0x4>; /* aer interrupt */
  3127. + interrupt-names = "pme", "aer";
  3128. #address-cells = <3>;
  3129. #size-cells = <2>;
  3130. device_type = "pci";
  3131. @@ -547,7 +808,7 @@
  3132. bus-range = <0x0 0xff>;
  3133. ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000 /* downstream I/O */
  3134. 0x82000000 0x0 0x40000000 0x40 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
  3135. - msi-parent = <&msi1>;
  3136. + msi-parent = <&msi1>, <&msi2>, <&msi3>;
  3137. #interrupt-cells = <1>;
  3138. interrupt-map-mask = <0 0 0 7>;
  3139. interrupt-map = <0000 0 0 1 &gic 0 110 0x4>,
  3140. @@ -561,9 +822,9 @@
  3141. reg = <0x00 0x03500000 0x0 0x00100000 /* controller registers */
  3142. 0x48 0x00000000 0x0 0x00002000>; /* configuration space */
  3143. reg-names = "regs", "config";
  3144. - interrupts = <0 128 0x4>,
  3145. - <0 127 0x4>;
  3146. - interrupt-names = "intr", "pme";
  3147. + interrupts = <0 127 0x4>,
  3148. + <0 128 0x4>;
  3149. + interrupt-names = "pme", "aer";
  3150. #address-cells = <3>;
  3151. #size-cells = <2>;
  3152. device_type = "pci";
  3153. @@ -572,7 +833,7 @@
  3154. bus-range = <0x0 0xff>;
  3155. ranges = <0x81000000 0x0 0x00000000 0x48 0x00010000 0x0 0x00010000 /* downstream I/O */
  3156. 0x82000000 0x0 0x40000000 0x48 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
  3157. - msi-parent = <&msi2>;
  3158. + msi-parent = <&msi1>, <&msi2>, <&msi3>;
  3159. #interrupt-cells = <1>;
  3160. interrupt-map-mask = <0 0 0 7>;
  3161. interrupt-map = <0000 0 0 1 &gic 0 120 0x4>,
  3162. @@ -586,9 +847,9 @@
  3163. reg = <0x00 0x03600000 0x0 0x00100000 /* controller registers */
  3164. 0x50 0x00000000 0x0 0x00002000>; /* configuration space */
  3165. reg-names = "regs", "config";
  3166. - interrupts = <0 162 0x4>,
  3167. - <0 161 0x4>;
  3168. - interrupt-names = "intr", "pme";
  3169. + interrupts = <0 161 0x4>,
  3170. + <0 162 0x4>;
  3171. + interrupt-names = "pme", "aer";
  3172. #address-cells = <3>;
  3173. #size-cells = <2>;
  3174. device_type = "pci";
  3175. @@ -597,7 +858,7 @@
  3176. bus-range = <0x0 0xff>;
  3177. ranges = <0x81000000 0x0 0x00000000 0x50 0x00010000 0x0 0x00010000 /* downstream I/O */
  3178. 0x82000000 0x0 0x40000000 0x50 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
  3179. - msi-parent = <&msi3>;
  3180. + msi-parent = <&msi1>, <&msi2>, <&msi3>;
  3181. #interrupt-cells = <1>;
  3182. interrupt-map-mask = <0 0 0 7>;
  3183. interrupt-map = <0000 0 0 1 &gic 0 154 0x4>,
  3184. @@ -607,4 +868,13 @@
  3185. };
  3186. };
  3187. + firmware {
  3188. + optee {
  3189. + compatible = "linaro,optee-tz";
  3190. + method = "smc";
  3191. + };
  3192. + };
  3193. };
  3194. +
  3195. +#include "qoriq-qman1-portals.dtsi"
  3196. +#include "qoriq-bman1-portals.dtsi"
  3197. --- /dev/null
  3198. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046-post.dtsi
  3199. @@ -0,0 +1,48 @@
  3200. +/*
  3201. + * QorIQ FMan v3 device tree nodes for ls1046
  3202. + *
  3203. + * Copyright 2015-2016 Freescale Semiconductor Inc.
  3204. + *
  3205. + * SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
  3206. + */
  3207. +
  3208. +&soc {
  3209. +
  3210. +/* include used FMan blocks */
  3211. +#include "qoriq-fman3-0.dtsi"
  3212. +#include "qoriq-fman3-0-1g-0.dtsi"
  3213. +#include "qoriq-fman3-0-1g-1.dtsi"
  3214. +#include "qoriq-fman3-0-1g-2.dtsi"
  3215. +#include "qoriq-fman3-0-1g-3.dtsi"
  3216. +#include "qoriq-fman3-0-1g-4.dtsi"
  3217. +#include "qoriq-fman3-0-1g-5.dtsi"
  3218. +#include "qoriq-fman3-0-10g-0.dtsi"
  3219. +#include "qoriq-fman3-0-10g-1.dtsi"
  3220. +};
  3221. +
  3222. +&fman0 {
  3223. + /* these aliases provide the FMan ports mapping */
  3224. + enet0: ethernet@e0000 {
  3225. + };
  3226. +
  3227. + enet1: ethernet@e2000 {
  3228. + };
  3229. +
  3230. + enet2: ethernet@e4000 {
  3231. + };
  3232. +
  3233. + enet3: ethernet@e6000 {
  3234. + };
  3235. +
  3236. + enet4: ethernet@e8000 {
  3237. + };
  3238. +
  3239. + enet5: ethernet@ea000 {
  3240. + };
  3241. +
  3242. + enet6: ethernet@f0000 {
  3243. + };
  3244. +
  3245. + enet7: ethernet@f2000 {
  3246. + };
  3247. +};
  3248. --- /dev/null
  3249. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-qds-sdk.dts
  3250. @@ -0,0 +1,110 @@
  3251. +/*
  3252. + * Device Tree Include file for Freescale Layerscape-1046A family SoC.
  3253. + *
  3254. + * Copyright 2014-2015 Freescale Semiconductor, Inc.
  3255. + *
  3256. + * Mingkai Hu <[email protected]>
  3257. + *
  3258. + * This file is dual-licensed: you can use it either under the terms
  3259. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  3260. + * licensing only applies to this file, and not this project as a
  3261. + * whole.
  3262. + *
  3263. + * a) This library is free software; you can redistribute it and/or
  3264. + * modify it under the terms of the GNU General Public License as
  3265. + * published by the Free Software Foundation; either version 2 of the
  3266. + * License, or (at your option) any later version.
  3267. + *
  3268. + * This library is distributed in the hope that it will be useful,
  3269. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  3270. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  3271. + * GNU General Public License for more details.
  3272. + *
  3273. + * Or, alternatively,
  3274. + *
  3275. + * b) Permission is hereby granted, free of charge, to any person
  3276. + * obtaining a copy of this software and associated documentation
  3277. + * files (the "Software"), to deal in the Software without
  3278. + * restriction, including without limitation the rights to use,
  3279. + * copy, modify, merge, publish, distribute, sublicense, and/or
  3280. + * sell copies of the Software, and to permit persons to whom the
  3281. + * Software is furnished to do so, subject to the following
  3282. + * conditions:
  3283. + *
  3284. + * The above copyright notice and this permission notice shall be
  3285. + * included in all copies or substantial portions of the Software.
  3286. + *
  3287. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  3288. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  3289. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  3290. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  3291. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  3292. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  3293. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  3294. + * OTHER DEALINGS IN THE SOFTWARE.
  3295. + */
  3296. +
  3297. +#include "fsl-ls1046a-qds.dts"
  3298. +
  3299. +&bman_fbpr {
  3300. + compatible = "fsl,bman-fbpr";
  3301. + alloc-ranges = <0 0 0x10000 0>;
  3302. +};
  3303. +&qman_fqd {
  3304. + compatible = "fsl,qman-fqd";
  3305. + alloc-ranges = <0 0 0x10000 0>;
  3306. +};
  3307. +&qman_pfdr {
  3308. + compatible = "fsl,qman-pfdr";
  3309. + alloc-ranges = <0 0 0x10000 0>;
  3310. +};
  3311. +
  3312. +&soc {
  3313. +#include "qoriq-dpaa-eth.dtsi"
  3314. +#include "qoriq-fman3-0-6oh.dtsi"
  3315. +};
  3316. +
  3317. +&fsldpaa {
  3318. + ethernet@9 {
  3319. + compatible = "fsl,dpa-ethernet";
  3320. + fsl,fman-mac = <&enet7>;
  3321. + dma-coherent;
  3322. + };
  3323. +};
  3324. +
  3325. +&fman0 {
  3326. + compatible = "fsl,fman", "simple-bus";
  3327. +};
  3328. +
  3329. +&dspi {
  3330. + bus-num = <0>;
  3331. + status = "okay";
  3332. +
  3333. + flash@0 {
  3334. + #address-cells = <1>;
  3335. + #size-cells = <1>;
  3336. + compatible = "n25q128a11", "jedec,spi-nor";
  3337. + reg = <0>;
  3338. + spi-max-frequency = <10000000>;
  3339. + };
  3340. +
  3341. + flash@1 {
  3342. + #address-cells = <1>;
  3343. + #size-cells = <1>;
  3344. + compatible = "sst25wf040b", "jedec,spi-nor";
  3345. + spi-cpol;
  3346. + spi-cpha;
  3347. + reg = <1>;
  3348. + spi-max-frequency = <10000000>;
  3349. + };
  3350. +
  3351. + flash@2 {
  3352. + #address-cells = <1>;
  3353. + #size-cells = <1>;
  3354. + compatible = "en25s64", "jedec,spi-nor";
  3355. + spi-cpol;
  3356. + spi-cpha;
  3357. + reg = <2>;
  3358. + spi-max-frequency = <10000000>;
  3359. + };
  3360. +};
  3361. --- /dev/null
  3362. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts
  3363. @@ -0,0 +1,363 @@
  3364. +/*
  3365. + * Device Tree Include file for Freescale Layerscape-1046A family SoC.
  3366. + *
  3367. + * Copyright 2016 Freescale Semiconductor, Inc.
  3368. + *
  3369. + * Shaohui Xie <[email protected]>
  3370. + *
  3371. + * This file is dual-licensed: you can use it either under the terms
  3372. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  3373. + * licensing only applies to this file, and not this project as a
  3374. + * whole.
  3375. + *
  3376. + * a) This library is free software; you can redistribute it and/or
  3377. + * modify it under the terms of the GNU General Public License as
  3378. + * published by the Free Software Foundation; either version 2 of the
  3379. + * License, or (at your option) any later version.
  3380. + *
  3381. + * This library is distributed in the hope that it will be useful,
  3382. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  3383. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  3384. + * GNU General Public License for more details.
  3385. + *
  3386. + * Or, alternatively,
  3387. + *
  3388. + * b) Permission is hereby granted, free of charge, to any person
  3389. + * obtaining a copy of this software and associated documentation
  3390. + * files (the "Software"), to deal in the Software without
  3391. + * restriction, including without limitation the rights to use,
  3392. + * copy, modify, merge, publish, distribute, sublicense, and/or
  3393. + * sell copies of the Software, and to permit persons to whom the
  3394. + * Software is furnished to do so, subject to the following
  3395. + * conditions:
  3396. + *
  3397. + * The above copyright notice and this permission notice shall be
  3398. + * included in all copies or substantial portions of the Software.
  3399. + *
  3400. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  3401. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  3402. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  3403. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  3404. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  3405. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  3406. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  3407. + * OTHER DEALINGS IN THE SOFTWARE.
  3408. + */
  3409. +
  3410. +/dts-v1/;
  3411. +
  3412. +#include "fsl-ls1046a.dtsi"
  3413. +
  3414. +/ {
  3415. + model = "LS1046A QDS Board";
  3416. + compatible = "fsl,ls1046a-qds", "fsl,ls1046a";
  3417. +
  3418. + aliases {
  3419. + gpio0 = &gpio0;
  3420. + gpio1 = &gpio1;
  3421. + gpio2 = &gpio2;
  3422. + gpio3 = &gpio3;
  3423. + serial0 = &duart0;
  3424. + serial1 = &duart1;
  3425. + serial2 = &duart2;
  3426. + serial3 = &duart3;
  3427. +
  3428. + emi1_slot1 = &ls1046mdio_s1;
  3429. + emi1_slot2 = &ls1046mdio_s2;
  3430. + emi1_slot4 = &ls1046mdio_s4;
  3431. +
  3432. + sgmii_s1_p1 = &sgmii_phy_s1_p1;
  3433. + sgmii_s1_p2 = &sgmii_phy_s1_p2;
  3434. + sgmii_s1_p3 = &sgmii_phy_s1_p3;
  3435. + sgmii_s1_p4 = &sgmii_phy_s1_p4;
  3436. + sgmii_s4_p1 = &sgmii_phy_s4_p1;
  3437. + qsgmii_s2_p1 = &qsgmii_phy_s2_p1;
  3438. + qsgmii_s2_p2 = &qsgmii_phy_s2_p2;
  3439. + qsgmii_s2_p3 = &qsgmii_phy_s2_p3;
  3440. + qsgmii_s2_p4 = &qsgmii_phy_s2_p4;
  3441. + };
  3442. +
  3443. + chosen {
  3444. + stdout-path = "serial0:115200n8";
  3445. + };
  3446. +};
  3447. +
  3448. +&dspi {
  3449. + bus-num = <0>;
  3450. + status = "okay";
  3451. +
  3452. + flash@0 {
  3453. + #address-cells = <1>;
  3454. + #size-cells = <1>;
  3455. + compatible = "n25q128a11", "jedec,spi-nor";
  3456. + reg = <0>;
  3457. + spi-max-frequency = <10000000>;
  3458. + };
  3459. +
  3460. + flash@1 {
  3461. + #address-cells = <1>;
  3462. + #size-cells = <1>;
  3463. + compatible = "sst25wf040b", "jedec,spi-nor";
  3464. + spi-cpol;
  3465. + spi-cpha;
  3466. + reg = <1>;
  3467. + spi-max-frequency = <10000000>;
  3468. + };
  3469. +
  3470. + flash@2 {
  3471. + #address-cells = <1>;
  3472. + #size-cells = <1>;
  3473. + compatible = "en25s64", "jedec,spi-nor";
  3474. + spi-cpol;
  3475. + spi-cpha;
  3476. + reg = <2>;
  3477. + spi-max-frequency = <10000000>;
  3478. + };
  3479. +};
  3480. +
  3481. +&duart0 {
  3482. + status = "okay";
  3483. +};
  3484. +
  3485. +&duart1 {
  3486. + status = "okay";
  3487. +};
  3488. +
  3489. +&i2c0 {
  3490. + status = "okay";
  3491. +
  3492. + pca9547@77 {
  3493. + compatible = "nxp,pca9547";
  3494. + reg = <0x77>;
  3495. + #address-cells = <1>;
  3496. + #size-cells = <0>;
  3497. +
  3498. + i2c@2 {
  3499. + #address-cells = <1>;
  3500. + #size-cells = <0>;
  3501. + reg = <0x2>;
  3502. +
  3503. + ina220@40 {
  3504. + compatible = "ti,ina220";
  3505. + reg = <0x40>;
  3506. + shunt-resistor = <1000>;
  3507. + };
  3508. +
  3509. + ina220@41 {
  3510. + compatible = "ti,ina220";
  3511. + reg = <0x41>;
  3512. + shunt-resistor = <1000>;
  3513. + };
  3514. + };
  3515. +
  3516. + i2c@3 {
  3517. + #address-cells = <1>;
  3518. + #size-cells = <0>;
  3519. + reg = <0x3>;
  3520. +
  3521. + rtc@51 {
  3522. + compatible = "nxp,pcf2129";
  3523. + reg = <0x51>;
  3524. + /* IRQ10_B */
  3525. + interrupts = <0 150 0x4>;
  3526. + };
  3527. +
  3528. + eeprom@56 {
  3529. + compatible = "atmel,24c512";
  3530. + reg = <0x56>;
  3531. + };
  3532. +
  3533. + eeprom@57 {
  3534. + compatible = "atmel,24c512";
  3535. + reg = <0x57>;
  3536. + };
  3537. +
  3538. + temp-sensor@4c {
  3539. + compatible = "adi,adt7461a";
  3540. + reg = <0x4c>;
  3541. + };
  3542. + };
  3543. + };
  3544. +};
  3545. +
  3546. +&ifc {
  3547. + #address-cells = <2>;
  3548. + #size-cells = <1>;
  3549. + /* NOR, NAND Flashes and FPGA on board */
  3550. + ranges = <0x0 0x0 0x0 0x60000000 0x08000000
  3551. + 0x1 0x0 0x0 0x7e800000 0x00010000
  3552. + 0x2 0x0 0x0 0x7fb00000 0x00000100>;
  3553. + status = "okay";
  3554. +
  3555. + nor@0,0 {
  3556. + compatible = "cfi-flash";
  3557. + reg = <0x0 0x0 0x8000000>;
  3558. + bank-width = <2>;
  3559. + device-width = <1>;
  3560. + };
  3561. +
  3562. + nand@1,0 {
  3563. + compatible = "fsl,ifc-nand";
  3564. + reg = <0x1 0x0 0x10000>;
  3565. + };
  3566. +
  3567. + fpga: board-control@2,0 {
  3568. + compatible = "fsl,ls1046aqds-fpga", "fsl,fpga-qixis", "simple-bus";
  3569. + reg = <0x2 0x0 0x0000100>;
  3570. + ranges = <0 2 0 0x100>;
  3571. + };
  3572. +};
  3573. +
  3574. +&lpuart0 {
  3575. + status = "okay";
  3576. +};
  3577. +
  3578. +&qspi {
  3579. + num-cs = <2>;
  3580. + bus-num = <0>;
  3581. + status = "okay";
  3582. +
  3583. + qflash0: s25fl128s@0 {
  3584. + compatible = "spansion,m25p80";
  3585. + #address-cells = <1>;
  3586. + #size-cells = <1>;
  3587. + spi-max-frequency = <20000000>;
  3588. + reg = <0>;
  3589. + };
  3590. +};
  3591. +
  3592. +#include "fsl-ls1046-post.dtsi"
  3593. +
  3594. +&fman0 {
  3595. + ethernet@e0000 {
  3596. + phy-handle = <&qsgmii_phy_s2_p1>;
  3597. + phy-connection-type = "sgmii";
  3598. + };
  3599. +
  3600. + ethernet@e2000 {
  3601. + phy-handle = <&sgmii_phy_s4_p1>;
  3602. + phy-connection-type = "sgmii";
  3603. + };
  3604. +
  3605. + ethernet@e4000 {
  3606. + phy-handle = <&rgmii_phy1>;
  3607. + phy-connection-type = "rgmii";
  3608. + };
  3609. +
  3610. + ethernet@e6000 {
  3611. + phy-handle = <&rgmii_phy2>;
  3612. + phy-connection-type = "rgmii";
  3613. + };
  3614. +
  3615. + ethernet@e8000 {
  3616. + phy-handle = <&sgmii_phy_s1_p3>;
  3617. + phy-connection-type = "sgmii";
  3618. + };
  3619. +
  3620. + ethernet@ea000 {
  3621. + phy-handle = <&sgmii_phy_s1_p4>;
  3622. + phy-connection-type = "sgmii";
  3623. + };
  3624. +
  3625. + ethernet@f0000 { /* DTSEC9/10GEC1 */
  3626. + phy-handle = <&sgmii_phy_s1_p1>;
  3627. + phy-connection-type = "xgmii";
  3628. + };
  3629. +
  3630. + ethernet@f2000 { /* DTSEC10/10GEC2 */
  3631. + phy-handle = <&sgmii_phy_s1_p2>;
  3632. + phy-connection-type = "xgmii";
  3633. + };
  3634. +};
  3635. +
  3636. +&fpga {
  3637. + #address-cells = <1>;
  3638. + #size-cells = <1>;
  3639. + mdio-mux-emi1 {
  3640. + compatible = "mdio-mux-mmioreg", "mdio-mux";
  3641. + mdio-parent-bus = <&mdio0>;
  3642. + #address-cells = <1>;
  3643. + #size-cells = <0>;
  3644. + reg = <0x54 1>; /* BRDCFG4 */
  3645. + mux-mask = <0xe0>; /* EMI1 */
  3646. +
  3647. + /* On-board RGMII1 PHY */
  3648. + ls1046mdio0: mdio@0 {
  3649. + reg = <0>;
  3650. + #address-cells = <1>;
  3651. + #size-cells = <0>;
  3652. +
  3653. + rgmii_phy1: ethernet-phy@1 { /* MAC3 */
  3654. + reg = <0x1>;
  3655. + };
  3656. + };
  3657. +
  3658. + /* On-board RGMII2 PHY */
  3659. + ls1046mdio1: mdio@1 {
  3660. + reg = <0x20>;
  3661. + #address-cells = <1>;
  3662. + #size-cells = <0>;
  3663. +
  3664. + rgmii_phy2: ethernet-phy@2 { /* MAC4 */
  3665. + reg = <0x2>;
  3666. + };
  3667. + };
  3668. +
  3669. + /* Slot 1 */
  3670. + ls1046mdio_s1: mdio@2 {
  3671. + reg = <0x40>;
  3672. + #address-cells = <1>;
  3673. + #size-cells = <0>;
  3674. + status = "disabled";
  3675. +
  3676. + sgmii_phy_s1_p1: ethernet-phy@1c {
  3677. + reg = <0x1c>;
  3678. + };
  3679. +
  3680. + sgmii_phy_s1_p2: ethernet-phy@1d {
  3681. + reg = <0x1d>;
  3682. + };
  3683. +
  3684. + sgmii_phy_s1_p3: ethernet-phy@1e {
  3685. + reg = <0x1e>;
  3686. + };
  3687. +
  3688. + sgmii_phy_s1_p4: ethernet-phy@1f {
  3689. + reg = <0x1f>;
  3690. + };
  3691. + };
  3692. +
  3693. + /* Slot 2 */
  3694. + ls1046mdio_s2: mdio@3 {
  3695. + reg = <0x60>;
  3696. + #address-cells = <1>;
  3697. + #size-cells = <0>;
  3698. + status = "disabled";
  3699. +
  3700. + qsgmii_phy_s2_p1: ethernet-phy@8 {
  3701. + reg = <0x8>;
  3702. + };
  3703. + qsgmii_phy_s2_p2: ethernet-phy@9 {
  3704. + reg = <0x9>;
  3705. + };
  3706. + qsgmii_phy_s2_p3: ethernet-phy@a {
  3707. + reg = <0xa>;
  3708. + };
  3709. + qsgmii_phy_s2_p4: ethernet-phy@b {
  3710. + reg = <0xb>;
  3711. + };
  3712. + };
  3713. +
  3714. + /* Slot 4 */
  3715. + ls1046mdio_s4: mdio@5 {
  3716. + reg = <0x80>;
  3717. + #address-cells = <1>;
  3718. + #size-cells = <0>;
  3719. + status = "disabled";
  3720. +
  3721. + sgmii_phy_s4_p1: ethernet-phy@1c {
  3722. + reg = <0x1c>;
  3723. + };
  3724. + };
  3725. + };
  3726. +};
  3727. --- /dev/null
  3728. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-sdk.dts
  3729. @@ -0,0 +1,83 @@
  3730. +/*
  3731. + * Device Tree Include file for Freescale Layerscape-1046A family SoC.
  3732. + *
  3733. + * Copyright 2014-2015 Freescale Semiconductor, Inc.
  3734. + *
  3735. + * Mingkai Hu <[email protected]>
  3736. + *
  3737. + * This file is dual-licensed: you can use it either under the terms
  3738. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  3739. + * licensing only applies to this file, and not this project as a
  3740. + * whole.
  3741. + *
  3742. + * a) This library is free software; you can redistribute it and/or
  3743. + * modify it under the terms of the GNU General Public License as
  3744. + * published by the Free Software Foundation; either version 2 of the
  3745. + * License, or (at your option) any later version.
  3746. + *
  3747. + * This library is distributed in the hope that it will be useful,
  3748. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  3749. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  3750. + * GNU General Public License for more details.
  3751. + *
  3752. + * Or, alternatively,
  3753. + *
  3754. + * b) Permission is hereby granted, free of charge, to any person
  3755. + * obtaining a copy of this software and associated documentation
  3756. + * files (the "Software"), to deal in the Software without
  3757. + * restriction, including without limitation the rights to use,
  3758. + * copy, modify, merge, publish, distribute, sublicense, and/or
  3759. + * sell copies of the Software, and to permit persons to whom the
  3760. + * Software is furnished to do so, subject to the following
  3761. + * conditions:
  3762. + *
  3763. + * The above copyright notice and this permission notice shall be
  3764. + * included in all copies or substantial portions of the Software.
  3765. + *
  3766. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  3767. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  3768. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  3769. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  3770. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  3771. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  3772. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  3773. + * OTHER DEALINGS IN THE SOFTWARE.
  3774. + */
  3775. +
  3776. +#include "fsl-ls1046a-rdb.dts"
  3777. +
  3778. +&bman_fbpr {
  3779. + compatible = "fsl,bman-fbpr";
  3780. + alloc-ranges = <0 0 0x10000 0>;
  3781. +};
  3782. +&qman_fqd {
  3783. + compatible = "fsl,qman-fqd";
  3784. + alloc-ranges = <0 0 0x10000 0>;
  3785. +};
  3786. +&qman_pfdr {
  3787. + compatible = "fsl,qman-pfdr";
  3788. + alloc-ranges = <0 0 0x10000 0>;
  3789. +};
  3790. +
  3791. +&soc {
  3792. +#include "qoriq-dpaa-eth.dtsi"
  3793. +#include "qoriq-fman3-0-6oh.dtsi"
  3794. +};
  3795. +
  3796. +&fsldpaa {
  3797. + ethernet@0 {
  3798. + status = "disabled";
  3799. + };
  3800. + ethernet@1 {
  3801. + status = "disabled";
  3802. + };
  3803. + ethernet@9 {
  3804. + compatible = "fsl,dpa-ethernet";
  3805. + fsl,fman-mac = <&enet7>;
  3806. + dma-coherent;
  3807. + };
  3808. +};
  3809. +
  3810. +&fman0 {
  3811. + compatible = "fsl,fman", "simple-bus";
  3812. +};
  3813. --- /dev/null
  3814. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-usdpaa.dts
  3815. @@ -0,0 +1,110 @@
  3816. +/*
  3817. + * Device Tree Include file for Freescale Layerscape-1046A family SoC.
  3818. + *
  3819. + * Copyright 2016 Freescale Semiconductor, Inc.
  3820. + *
  3821. + * This file is licensed under the terms of the GNU General Public
  3822. + * License version 2. This program is licensed "as is" without any
  3823. + * warranty of any kind, whether express or implied.
  3824. + */
  3825. +
  3826. +#include "fsl-ls1046a-rdb-sdk.dts"
  3827. +
  3828. +&soc {
  3829. + bp7: buffer-pool@7 {
  3830. + compatible = "fsl,ls1046a-bpool", "fsl,bpool";
  3831. + fsl,bpid = <7>;
  3832. + fsl,bpool-ethernet-cfg = <0 0 0 192 0 0xdeadbeef>;
  3833. + fsl,bpool-thresholds = <0x400 0xc00 0x0 0x0>;
  3834. + };
  3835. +
  3836. + bp8: buffer-pool@8 {
  3837. + compatible = "fsl,ls1046a-bpool", "fsl,bpool";
  3838. + fsl,bpid = <8>;
  3839. + fsl,bpool-ethernet-cfg = <0 0 0 576 0 0xabbaf00d>;
  3840. + fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
  3841. + };
  3842. +
  3843. + bp9: buffer-pool@9 {
  3844. + compatible = "fsl,ls1046a-bpool", "fsl,bpool";
  3845. + fsl,bpid = <9>;
  3846. + fsl,bpool-ethernet-cfg = <0 0 0 2048 0 0xfeedabba>;
  3847. + fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
  3848. + };
  3849. +
  3850. + fsl,dpaa {
  3851. + compatible = "fsl,ls1046a", "fsl,dpaa", "simple-bus";
  3852. +
  3853. + ethernet@2 {
  3854. + compatible = "fsl,dpa-ethernet-init";
  3855. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  3856. + fsl,qman-frame-queues-rx = <0x54 1 0x55 1>;
  3857. + fsl,qman-frame-queues-tx = <0x74 1 0x75 1>;
  3858. + };
  3859. +
  3860. + ethernet@3 {
  3861. + compatible = "fsl,dpa-ethernet-init";
  3862. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  3863. + fsl,qman-frame-queues-rx = <0x56 1 0x57 1>;
  3864. + fsl,qman-frame-queues-tx = <0x76 1 0x77 1>;
  3865. + };
  3866. +
  3867. + ethernet@4 {
  3868. + compatible = "fsl,dpa-ethernet-init";
  3869. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  3870. + fsl,qman-frame-queues-rx = <0x58 1 0x59 1>;
  3871. + fsl,qman-frame-queues-tx = <0x78 1 0x79 1>;
  3872. + };
  3873. +
  3874. + ethernet@5 {
  3875. + compatible = "fsl,dpa-ethernet-init";
  3876. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  3877. + fsl,qman-frame-queues-rx = <0x5a 1 0x5b 1>;
  3878. + fsl,qman-frame-queues-tx = <0x7a 1 0x7b 1>;
  3879. + };
  3880. +
  3881. + ethernet@8 {
  3882. + compatible = "fsl,dpa-ethernet-init";
  3883. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  3884. + fsl,qman-frame-queues-rx = <0x5c 1 0x5d 1>;
  3885. + fsl,qman-frame-queues-tx = <0x7c 1 0x7d 1>;
  3886. + };
  3887. +
  3888. + ethernet@9 {
  3889. + compatible = "fsl,dpa-ethernet-init";
  3890. + fsl,bman-buffer-pools = <&bp7 &bp8 &bp9>;
  3891. + fsl,qman-frame-queues-rx = <0x5e 1 0x5f 1>;
  3892. + fsl,qman-frame-queues-tx = <0x7e 1 0x7f 1>;
  3893. + };
  3894. +
  3895. + dpa-fman0-oh@2 {
  3896. + compatible = "fsl,dpa-oh";
  3897. + /* Define frame queues for the OH port*/
  3898. + /* <OH Rx error, OH Rx default> */
  3899. + fsl,qman-frame-queues-oh = <0x60 1 0x61 1>;
  3900. + fsl,fman-oh-port = <&fman0_oh2>;
  3901. + };
  3902. + };
  3903. +};
  3904. +/ {
  3905. + reserved-memory {
  3906. + #address-cells = <2>;
  3907. + #size-cells = <2>;
  3908. + ranges;
  3909. +
  3910. + usdpaa_mem: usdpaa_mem {
  3911. + compatible = "fsl,usdpaa-mem";
  3912. + alloc-ranges = <0 0 0x10000 0>;
  3913. + size = <0 0x10000000>;
  3914. + alignment = <0 0x10000000>;
  3915. + };
  3916. + };
  3917. +};
  3918. +
  3919. +&fman0 {
  3920. + fman0_oh2: port@83000 {
  3921. + cell-index = <1>;
  3922. + compatible = "fsl,fman-port-oh";
  3923. + reg = <0x83000 0x1000>;
  3924. + };
  3925. +};
  3926. --- /dev/null
  3927. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts
  3928. @@ -0,0 +1,218 @@
  3929. +/*
  3930. + * Device Tree Include file for Freescale Layerscape-1046A family SoC.
  3931. + *
  3932. + * Copyright 2016 Freescale Semiconductor, Inc.
  3933. + *
  3934. + * Mingkai Hu <[email protected]>
  3935. + *
  3936. + * This file is dual-licensed: you can use it either under the terms
  3937. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  3938. + * licensing only applies to this file, and not this project as a
  3939. + * whole.
  3940. + *
  3941. + * a) This library is free software; you can redistribute it and/or
  3942. + * modify it under the terms of the GNU General Public License as
  3943. + * published by the Free Software Foundation; either version 2 of the
  3944. + * License, or (at your option) any later version.
  3945. + *
  3946. + * This library is distributed in the hope that it will be useful,
  3947. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  3948. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  3949. + * GNU General Public License for more details.
  3950. + *
  3951. + * Or, alternatively,
  3952. + *
  3953. + * b) Permission is hereby granted, free of charge, to any person
  3954. + * obtaining a copy of this software and associated documentation
  3955. + * files (the "Software"), to deal in the Software without
  3956. + * restriction, including without limitation the rights to use,
  3957. + * copy, modify, merge, publish, distribute, sublicense, and/or
  3958. + * sell copies of the Software, and to permit persons to whom the
  3959. + * Software is furnished to do so, subject to the following
  3960. + * conditions:
  3961. + *
  3962. + * The above copyright notice and this permission notice shall be
  3963. + * included in all copies or substantial portions of the Software.
  3964. + *
  3965. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  3966. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  3967. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  3968. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  3969. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  3970. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  3971. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  3972. + * OTHER DEALINGS IN THE SOFTWARE.
  3973. + */
  3974. +
  3975. +/dts-v1/;
  3976. +
  3977. +#include "fsl-ls1046a.dtsi"
  3978. +
  3979. +/ {
  3980. + model = "LS1046A RDB Board";
  3981. + compatible = "fsl,ls1046a-rdb", "fsl,ls1046a";
  3982. +
  3983. + aliases {
  3984. + serial0 = &duart0;
  3985. + serial1 = &duart1;
  3986. + serial2 = &duart2;
  3987. + serial3 = &duart3;
  3988. + };
  3989. +
  3990. + chosen {
  3991. + stdout-path = "serial0:115200n8";
  3992. + };
  3993. +};
  3994. +
  3995. +&esdhc {
  3996. + mmc-hs200-1_8v;
  3997. + sd-uhs-sdr104;
  3998. + sd-uhs-sdr50;
  3999. + sd-uhs-sdr25;
  4000. + sd-uhs-sdr12;
  4001. +};
  4002. +
  4003. +&duart0 {
  4004. + status = "okay";
  4005. +};
  4006. +
  4007. +&duart1 {
  4008. + status = "okay";
  4009. +};
  4010. +
  4011. +&i2c0 {
  4012. + status = "okay";
  4013. +
  4014. + ina220@40 {
  4015. + compatible = "ti,ina220";
  4016. + reg = <0x40>;
  4017. + shunt-resistor = <1000>;
  4018. + };
  4019. +
  4020. + temp-sensor@4c {
  4021. + compatible = "adi,adt7461";
  4022. + reg = <0x4c>;
  4023. + };
  4024. +
  4025. + eeprom@56 {
  4026. + compatible = "atmel,24c512";
  4027. + reg = <0x52>;
  4028. + };
  4029. +
  4030. + eeprom@57 {
  4031. + compatible = "atmel,24c512";
  4032. + reg = <0x53>;
  4033. + };
  4034. +};
  4035. +
  4036. +&i2c3 {
  4037. + status = "okay";
  4038. +
  4039. + rtc@51 {
  4040. + compatible = "nxp,pcf2129";
  4041. + reg = <0x51>;
  4042. + };
  4043. +};
  4044. +
  4045. +&ifc {
  4046. + #address-cells = <2>;
  4047. + #size-cells = <1>;
  4048. + /* NAND Flashe and CPLD on board */
  4049. + ranges = <0x0 0x0 0x0 0x7e800000 0x00010000
  4050. + 0x2 0x0 0x0 0x7fb00000 0x00000100>;
  4051. + status = "okay";
  4052. +
  4053. + nand@0,0 {
  4054. + compatible = "fsl,ifc-nand";
  4055. + #address-cells = <1>;
  4056. + #size-cells = <1>;
  4057. + reg = <0x0 0x0 0x10000>;
  4058. + };
  4059. +
  4060. + cpld: board-control@2,0 {
  4061. + compatible = "fsl,ls1046ardb-cpld";
  4062. + reg = <0x2 0x0 0x0000100>;
  4063. + };
  4064. +};
  4065. +
  4066. +&qspi {
  4067. + num-cs = <2>;
  4068. + bus-num = <0>;
  4069. + status = "okay";
  4070. +
  4071. + qflash0: s25fs512s@0 {
  4072. + compatible = "spansion,m25p80";
  4073. + #address-cells = <1>;
  4074. + #size-cells = <1>;
  4075. + spi-max-frequency = <20000000>;
  4076. + reg = <0>;
  4077. + };
  4078. +
  4079. + qflash1: s25fs512s@1 {
  4080. + compatible = "spansion,m25p80";
  4081. + #address-cells = <1>;
  4082. + #size-cells = <1>;
  4083. + spi-max-frequency = <20000000>;
  4084. + reg = <1>;
  4085. + };
  4086. +};
  4087. +
  4088. +#include "fsl-ls1046-post.dtsi"
  4089. +
  4090. +&fman0 {
  4091. + ethernet@e4000 {
  4092. + phy-handle = <&rgmii_phy1>;
  4093. + phy-connection-type = "rgmii";
  4094. + };
  4095. +
  4096. + ethernet@e6000 {
  4097. + phy-handle = <&rgmii_phy2>;
  4098. + phy-connection-type = "rgmii";
  4099. + };
  4100. +
  4101. + ethernet@e8000 {
  4102. + phy-handle = <&sgmii_phy1>;
  4103. + phy-connection-type = "sgmii";
  4104. + };
  4105. +
  4106. + ethernet@ea000 {
  4107. + phy-handle = <&sgmii_phy2>;
  4108. + phy-connection-type = "sgmii";
  4109. + };
  4110. +
  4111. + ethernet@f0000 { /* 10GEC1 */
  4112. + phy-handle = <&aqr106_phy>;
  4113. + phy-connection-type = "xgmii";
  4114. + };
  4115. +
  4116. + ethernet@f2000 { /* 10GEC2 */
  4117. + fixed-link = <0 1 1000 0 0>;
  4118. + phy-connection-type = "xgmii";
  4119. + };
  4120. +
  4121. + mdio@fc000 {
  4122. + rgmii_phy1: ethernet-phy@1 {
  4123. + reg = <0x1>;
  4124. + };
  4125. +
  4126. + rgmii_phy2: ethernet-phy@2 {
  4127. + reg = <0x2>;
  4128. + };
  4129. +
  4130. + sgmii_phy1: ethernet-phy@3 {
  4131. + reg = <0x3>;
  4132. + };
  4133. +
  4134. + sgmii_phy2: ethernet-phy@4 {
  4135. + reg = <0x4>;
  4136. + };
  4137. + };
  4138. +
  4139. + mdio@fd000 {
  4140. + aqr106_phy: ethernet-phy@0 {
  4141. + compatible = "ethernet-phy-ieee802.3-c45";
  4142. + interrupts = <0 131 4>;
  4143. + reg = <0x0>;
  4144. + };
  4145. + };
  4146. +};
  4147. --- /dev/null
  4148. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi
  4149. @@ -0,0 +1,800 @@
  4150. +/*
  4151. + * Device Tree Include file for Freescale Layerscape-1046A family SoC.
  4152. + *
  4153. + * Copyright 2016 Freescale Semiconductor, Inc.
  4154. + *
  4155. + * Mingkai Hu <[email protected]>
  4156. + *
  4157. + * This file is dual-licensed: you can use it either under the terms
  4158. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  4159. + * licensing only applies to this file, and not this project as a
  4160. + * whole.
  4161. + *
  4162. + * a) This library is free software; you can redistribute it and/or
  4163. + * modify it under the terms of the GNU General Public License as
  4164. + * published by the Free Software Foundation; either version 2 of the
  4165. + * License, or (at your option) any later version.
  4166. + *
  4167. + * This library is distributed in the hope that it will be useful,
  4168. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  4169. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  4170. + * GNU General Public License for more details.
  4171. + *
  4172. + * Or, alternatively,
  4173. + *
  4174. + * b) Permission is hereby granted, free of charge, to any person
  4175. + * obtaining a copy of this software and associated documentation
  4176. + * files (the "Software"), to deal in the Software without
  4177. + * restriction, including without limitation the rights to use,
  4178. + * copy, modify, merge, publish, distribute, sublicense, and/or
  4179. + * sell copies of the Software, and to permit persons to whom the
  4180. + * Software is furnished to do so, subject to the following
  4181. + * conditions:
  4182. + *
  4183. + * The above copyright notice and this permission notice shall be
  4184. + * included in all copies or substantial portions of the Software.
  4185. + *
  4186. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  4187. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  4188. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  4189. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  4190. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  4191. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  4192. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  4193. + * OTHER DEALINGS IN THE SOFTWARE.
  4194. + */
  4195. +
  4196. +#include <dt-bindings/interrupt-controller/arm-gic.h>
  4197. +#include <dt-bindings/thermal/thermal.h>
  4198. +
  4199. +/ {
  4200. + compatible = "fsl,ls1046a";
  4201. + interrupt-parent = <&gic>;
  4202. + #address-cells = <2>;
  4203. + #size-cells = <2>;
  4204. +
  4205. + aliases {
  4206. + crypto = &crypto;
  4207. + fman0 = &fman0;
  4208. + ethernet0 = &enet0;
  4209. + ethernet1 = &enet1;
  4210. + ethernet2 = &enet2;
  4211. + ethernet3 = &enet3;
  4212. + ethernet4 = &enet4;
  4213. + ethernet5 = &enet5;
  4214. + ethernet6 = &enet6;
  4215. + ethernet7 = &enet7;
  4216. + };
  4217. +
  4218. + cpus {
  4219. + #address-cells = <1>;
  4220. + #size-cells = <0>;
  4221. +
  4222. + cpu0: cpu@0 {
  4223. + device_type = "cpu";
  4224. + compatible = "arm,cortex-a72";
  4225. + reg = <0x0>;
  4226. + clocks = <&clockgen 1 0>;
  4227. + next-level-cache = <&l2>;
  4228. + cpu-idle-states = <&CPU_PH20>;
  4229. + #cooling-cells = <2>;
  4230. + };
  4231. +
  4232. + cpu1: cpu@1 {
  4233. + device_type = "cpu";
  4234. + compatible = "arm,cortex-a72";
  4235. + reg = <0x1>;
  4236. + clocks = <&clockgen 1 0>;
  4237. + next-level-cache = <&l2>;
  4238. + cpu-idle-states = <&CPU_PH20>;
  4239. + };
  4240. +
  4241. + cpu2: cpu@2 {
  4242. + device_type = "cpu";
  4243. + compatible = "arm,cortex-a72";
  4244. + reg = <0x2>;
  4245. + clocks = <&clockgen 1 0>;
  4246. + next-level-cache = <&l2>;
  4247. + cpu-idle-states = <&CPU_PH20>;
  4248. + };
  4249. +
  4250. + cpu3: cpu@3 {
  4251. + device_type = "cpu";
  4252. + compatible = "arm,cortex-a72";
  4253. + reg = <0x3>;
  4254. + clocks = <&clockgen 1 0>;
  4255. + next-level-cache = <&l2>;
  4256. + cpu-idle-states = <&CPU_PH20>;
  4257. + };
  4258. +
  4259. + l2: l2-cache {
  4260. + compatible = "cache";
  4261. + };
  4262. + };
  4263. +
  4264. + idle-states {
  4265. + /*
  4266. + * PSCI node is not added default, U-boot will add missing
  4267. + * parts if it determines to use PSCI.
  4268. + */
  4269. + entry-method = "arm,psci";
  4270. +
  4271. + CPU_PH20: cpu-ph20 {
  4272. + compatible = "arm,idle-state";
  4273. + idle-state-name = "PH20";
  4274. + arm,psci-suspend-param = <0x0>;
  4275. + entry-latency-us = <1000>;
  4276. + exit-latency-us = <1000>;
  4277. + min-residency-us = <3000>;
  4278. + };
  4279. + };
  4280. +
  4281. + memory@80000000 {
  4282. + device_type = "memory";
  4283. + };
  4284. +
  4285. + sysclk: sysclk {
  4286. + compatible = "fixed-clock";
  4287. + #clock-cells = <0>;
  4288. + clock-frequency = <100000000>;
  4289. + clock-output-names = "sysclk";
  4290. + };
  4291. +
  4292. + reboot {
  4293. + compatible ="syscon-reboot";
  4294. + regmap = <&dcfg>;
  4295. + offset = <0xb0>;
  4296. + mask = <0x02>;
  4297. + };
  4298. +
  4299. + timer {
  4300. + compatible = "arm,armv8-timer";
  4301. + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_RAW(0xf) |
  4302. + IRQ_TYPE_LEVEL_LOW)>,
  4303. + <GIC_PPI 14 (GIC_CPU_MASK_RAW(0xf) |
  4304. + IRQ_TYPE_LEVEL_LOW)>,
  4305. + <GIC_PPI 11 (GIC_CPU_MASK_RAW(0xf) |
  4306. + IRQ_TYPE_LEVEL_LOW)>,
  4307. + <GIC_PPI 10 (GIC_CPU_MASK_RAW(0xf) |
  4308. + IRQ_TYPE_LEVEL_LOW)>;
  4309. + };
  4310. +
  4311. + pmu {
  4312. + compatible = "arm,cortex-a72-pmu";
  4313. + interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>,
  4314. + <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>,
  4315. + <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>,
  4316. + <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
  4317. + interrupt-affinity = <&cpu0>,
  4318. + <&cpu1>,
  4319. + <&cpu2>,
  4320. + <&cpu3>;
  4321. + };
  4322. +
  4323. + gic: interrupt-controller@1400000 {
  4324. + compatible = "arm,gic-400";
  4325. + #interrupt-cells = <3>;
  4326. + interrupt-controller;
  4327. + reg = <0x0 0x1410000 0 0x10000>, /* GICD */
  4328. + <0x0 0x1420000 0 0x20000>, /* GICC */
  4329. + <0x0 0x1440000 0 0x20000>, /* GICH */
  4330. + <0x0 0x1460000 0 0x20000>; /* GICV */
  4331. + interrupts = <GIC_PPI 9 (GIC_CPU_MASK_RAW(0xf) |
  4332. + IRQ_TYPE_LEVEL_LOW)>;
  4333. + };
  4334. +
  4335. + soc: soc {
  4336. + compatible = "simple-bus";
  4337. + #address-cells = <2>;
  4338. + #size-cells = <2>;
  4339. + ranges;
  4340. +
  4341. + ddr: memory-controller@1080000 {
  4342. + compatible = "fsl,qoriq-memory-controller";
  4343. + reg = <0x0 0x1080000 0x0 0x1000>;
  4344. + interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>;
  4345. + big-endian;
  4346. + };
  4347. +
  4348. + ifc: ifc@1530000 {
  4349. + compatible = "fsl,ifc", "simple-bus";
  4350. + reg = <0x0 0x1530000 0x0 0x10000>;
  4351. + big-endian;
  4352. + interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
  4353. + };
  4354. +
  4355. + qspi: quadspi@1550000 {
  4356. + compatible = "fsl,ls1021a-qspi";
  4357. + #address-cells = <1>;
  4358. + #size-cells = <0>;
  4359. + reg = <0x0 0x1550000 0x0 0x10000>,
  4360. + <0x0 0x40000000 0x0 0x10000000>;
  4361. + reg-names = "QuadSPI", "QuadSPI-memory";
  4362. + interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
  4363. + clock-names = "qspi_en", "qspi";
  4364. + clocks = <&clockgen 4 1>, <&clockgen 4 1>;
  4365. + big-endian;
  4366. + fsl,qspi-has-second-chip;
  4367. + status = "disabled";
  4368. + };
  4369. +
  4370. + esdhc: esdhc@1560000 {
  4371. + compatible = "fsl,ls1046a-esdhc", "fsl,esdhc";
  4372. + reg = <0x0 0x1560000 0x0 0x10000>;
  4373. + interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
  4374. + clocks = <&clockgen 2 1>;
  4375. + voltage-ranges = <1800 1800 3300 3300>;
  4376. + sdhci,auto-cmd12;
  4377. + big-endian;
  4378. + bus-width = <4>;
  4379. + };
  4380. +
  4381. + scfg: scfg@1570000 {
  4382. + compatible = "fsl,ls1046a-scfg", "syscon";
  4383. + reg = <0x0 0x1570000 0x0 0x10000>;
  4384. + big-endian;
  4385. + };
  4386. +
  4387. + crypto: crypto@1700000 {
  4388. + compatible = "fsl,sec-v5.4", "fsl,sec-v5.0",
  4389. + "fsl,sec-v4.0";
  4390. + fsl,sec-era = <8>;
  4391. + #address-cells = <1>;
  4392. + #size-cells = <1>;
  4393. + ranges = <0x0 0x00 0x1700000 0x100000>;
  4394. + reg = <0x00 0x1700000 0x0 0x100000>;
  4395. + interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
  4396. +
  4397. + sec_jr0: jr@10000 {
  4398. + compatible = "fsl,sec-v5.4-job-ring",
  4399. + "fsl,sec-v5.0-job-ring",
  4400. + "fsl,sec-v4.0-job-ring";
  4401. + reg = <0x10000 0x10000>;
  4402. + interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
  4403. + };
  4404. +
  4405. + sec_jr1: jr@20000 {
  4406. + compatible = "fsl,sec-v5.4-job-ring",
  4407. + "fsl,sec-v5.0-job-ring",
  4408. + "fsl,sec-v4.0-job-ring";
  4409. + reg = <0x20000 0x10000>;
  4410. + interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
  4411. + };
  4412. +
  4413. + sec_jr2: jr@30000 {
  4414. + compatible = "fsl,sec-v5.4-job-ring",
  4415. + "fsl,sec-v5.0-job-ring",
  4416. + "fsl,sec-v4.0-job-ring";
  4417. + reg = <0x30000 0x10000>;
  4418. + interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
  4419. + };
  4420. +
  4421. + sec_jr3: jr@40000 {
  4422. + compatible = "fsl,sec-v5.4-job-ring",
  4423. + "fsl,sec-v5.0-job-ring",
  4424. + "fsl,sec-v4.0-job-ring";
  4425. + reg = <0x40000 0x10000>;
  4426. + interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
  4427. + };
  4428. + };
  4429. +
  4430. + qman: qman@1880000 {
  4431. + compatible = "fsl,qman";
  4432. + reg = <0x00 0x1880000 0x0 0x10000>;
  4433. + interrupts = <0 45 0x4>;
  4434. + memory-region = <&qman_fqd &qman_pfdr>;
  4435. +
  4436. + };
  4437. +
  4438. + bman: bman@1890000 {
  4439. + compatible = "fsl,bman";
  4440. + reg = <0x00 0x1890000 0x0 0x10000>;
  4441. + interrupts = <0 45 0x4>;
  4442. + memory-region = <&bman_fbpr>;
  4443. +
  4444. + };
  4445. +
  4446. + qportals: qman-portals@500000000 {
  4447. + ranges = <0x0 0x5 0x00000000 0x8000000>;
  4448. + };
  4449. +
  4450. + bportals: bman-portals@508000000 {
  4451. + ranges = <0x0 0x5 0x08000000 0x8000000>;
  4452. + };
  4453. +
  4454. + dcfg: dcfg@1ee0000 {
  4455. + compatible = "fsl,ls1046a-dcfg", "syscon";
  4456. + reg = <0x0 0x1ee0000 0x0 0x1000>;
  4457. + big-endian;
  4458. + };
  4459. +
  4460. + clockgen: clocking@1ee1000 {
  4461. + compatible = "fsl,ls1046a-clockgen";
  4462. + reg = <0x0 0x1ee1000 0x0 0x1000>;
  4463. + #clock-cells = <2>;
  4464. + clocks = <&sysclk>;
  4465. + };
  4466. +
  4467. + tmu: tmu@1f00000 {
  4468. + compatible = "fsl,qoriq-tmu";
  4469. + reg = <0x0 0x1f00000 0x0 0x10000>;
  4470. + interrupts = <0 33 0x4>;
  4471. + fsl,tmu-range = <0xb0000 0x9002a 0x6004c 0x30062>;
  4472. + fsl,tmu-calibration =
  4473. + /* Calibration data group 1 */
  4474. + <0x00000000 0x00000026
  4475. + 0x00000001 0x0000002d
  4476. + 0x00000002 0x00000032
  4477. + 0x00000003 0x00000039
  4478. + 0x00000004 0x0000003f
  4479. + 0x00000005 0x00000046
  4480. + 0x00000006 0x0000004d
  4481. + 0x00000007 0x00000054
  4482. + 0x00000008 0x0000005a
  4483. + 0x00000009 0x00000061
  4484. + 0x0000000a 0x0000006a
  4485. + 0x0000000b 0x00000071
  4486. + /* Calibration data group 2 */
  4487. + 0x00010000 0x00000025
  4488. + 0x00010001 0x0000002c
  4489. + 0x00010002 0x00000035
  4490. + 0x00010003 0x0000003d
  4491. + 0x00010004 0x00000045
  4492. + 0x00010005 0x0000004e
  4493. + 0x00010006 0x00000057
  4494. + 0x00010007 0x00000061
  4495. + 0x00010008 0x0000006b
  4496. + 0x00010009 0x00000076
  4497. + /* Calibration data group 3 */
  4498. + 0x00020000 0x00000029
  4499. + 0x00020001 0x00000033
  4500. + 0x00020002 0x0000003d
  4501. + 0x00020003 0x00000049
  4502. + 0x00020004 0x00000056
  4503. + 0x00020005 0x00000061
  4504. + 0x00020006 0x0000006d
  4505. + /* Calibration data group 4 */
  4506. + 0x00030000 0x00000021
  4507. + 0x00030001 0x0000002a
  4508. + 0x00030002 0x0000003c
  4509. + 0x00030003 0x0000004e>;
  4510. + big-endian;
  4511. + #thermal-sensor-cells = <1>;
  4512. + };
  4513. +
  4514. + thermal-zones {
  4515. + cpu_thermal: cpu-thermal {
  4516. + polling-delay-passive = <1000>;
  4517. + polling-delay = <5000>;
  4518. + thermal-sensors = <&tmu 3>;
  4519. +
  4520. + trips {
  4521. + cpu_alert: cpu-alert {
  4522. + temperature = <85000>;
  4523. + hysteresis = <2000>;
  4524. + type = "passive";
  4525. + };
  4526. +
  4527. + cpu_crit: cpu-crit {
  4528. + temperature = <95000>;
  4529. + hysteresis = <2000>;
  4530. + type = "critical";
  4531. + };
  4532. + };
  4533. +
  4534. + cooling-maps {
  4535. + map0 {
  4536. + trip = <&cpu_alert>;
  4537. + cooling-device =
  4538. + <&cpu0 THERMAL_NO_LIMIT
  4539. + THERMAL_NO_LIMIT>;
  4540. + };
  4541. + };
  4542. + };
  4543. + };
  4544. +
  4545. + dspi: dspi@2100000 {
  4546. + compatible = "fsl,ls1021a-v1.0-dspi";
  4547. + #address-cells = <1>;
  4548. + #size-cells = <0>;
  4549. + reg = <0x0 0x2100000 0x0 0x10000>;
  4550. + interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
  4551. + clock-names = "dspi";
  4552. + clocks = <&clockgen 4 1>;
  4553. + spi-num-chipselects = <5>;
  4554. + big-endian;
  4555. + status = "disabled";
  4556. + };
  4557. +
  4558. + i2c0: i2c@2180000 {
  4559. + compatible = "fsl,vf610-i2c";
  4560. + #address-cells = <1>;
  4561. + #size-cells = <0>;
  4562. + reg = <0x0 0x2180000 0x0 0x10000>;
  4563. + interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
  4564. + clocks = <&clockgen 4 1>;
  4565. + dmas = <&edma0 1 39>,
  4566. + <&edma0 1 38>;
  4567. + dma-names = "tx", "rx";
  4568. + status = "disabled";
  4569. + };
  4570. +
  4571. + i2c1: i2c@2190000 {
  4572. + compatible = "fsl,vf610-i2c";
  4573. + #address-cells = <1>;
  4574. + #size-cells = <0>;
  4575. + reg = <0x0 0x2190000 0x0 0x10000>;
  4576. + interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
  4577. + clocks = <&clockgen 4 1>;
  4578. + status = "disabled";
  4579. + };
  4580. +
  4581. + i2c2: i2c@21a0000 {
  4582. + compatible = "fsl,vf610-i2c";
  4583. + #address-cells = <1>;
  4584. + #size-cells = <0>;
  4585. + reg = <0x0 0x21a0000 0x0 0x10000>;
  4586. + interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
  4587. + clocks = <&clockgen 4 1>;
  4588. + status = "disabled";
  4589. + };
  4590. +
  4591. + i2c3: i2c@21b0000 {
  4592. + compatible = "fsl,vf610-i2c";
  4593. + #address-cells = <1>;
  4594. + #size-cells = <0>;
  4595. + reg = <0x0 0x21b0000 0x0 0x10000>;
  4596. + interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
  4597. + clocks = <&clockgen 4 1>;
  4598. + status = "disabled";
  4599. + };
  4600. +
  4601. + duart0: serial@21c0500 {
  4602. + compatible = "fsl,ns16550", "ns16550a";
  4603. + reg = <0x00 0x21c0500 0x0 0x100>;
  4604. + interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
  4605. + clocks = <&clockgen 4 1>;
  4606. + };
  4607. +
  4608. + duart1: serial@21c0600 {
  4609. + compatible = "fsl,ns16550", "ns16550a";
  4610. + reg = <0x00 0x21c0600 0x0 0x100>;
  4611. + interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
  4612. + clocks = <&clockgen 4 1>;
  4613. + };
  4614. +
  4615. + duart2: serial@21d0500 {
  4616. + compatible = "fsl,ns16550", "ns16550a";
  4617. + reg = <0x0 0x21d0500 0x0 0x100>;
  4618. + interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
  4619. + clocks = <&clockgen 4 1>;
  4620. + };
  4621. +
  4622. + duart3: serial@21d0600 {
  4623. + compatible = "fsl,ns16550", "ns16550a";
  4624. + reg = <0x0 0x21d0600 0x0 0x100>;
  4625. + interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
  4626. + clocks = <&clockgen 4 1>;
  4627. + };
  4628. +
  4629. + gpio0: gpio@2300000 {
  4630. + compatible = "fsl,qoriq-gpio";
  4631. + reg = <0x0 0x2300000 0x0 0x10000>;
  4632. + interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
  4633. + gpio-controller;
  4634. + #gpio-cells = <2>;
  4635. + interrupt-controller;
  4636. + #interrupt-cells = <2>;
  4637. + };
  4638. +
  4639. + gpio1: gpio@2310000 {
  4640. + compatible = "fsl,qoriq-gpio";
  4641. + reg = <0x0 0x2310000 0x0 0x10000>;
  4642. + interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
  4643. + gpio-controller;
  4644. + #gpio-cells = <2>;
  4645. + interrupt-controller;
  4646. + #interrupt-cells = <2>;
  4647. + };
  4648. +
  4649. + gpio2: gpio@2320000 {
  4650. + compatible = "fsl,qoriq-gpio";
  4651. + reg = <0x0 0x2320000 0x0 0x10000>;
  4652. + interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
  4653. + gpio-controller;
  4654. + #gpio-cells = <2>;
  4655. + interrupt-controller;
  4656. + #interrupt-cells = <2>;
  4657. + };
  4658. +
  4659. + gpio3: gpio@2330000 {
  4660. + compatible = "fsl,qoriq-gpio";
  4661. + reg = <0x0 0x2330000 0x0 0x10000>;
  4662. + interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>;
  4663. + gpio-controller;
  4664. + #gpio-cells = <2>;
  4665. + interrupt-controller;
  4666. + #interrupt-cells = <2>;
  4667. + };
  4668. +
  4669. + lpuart0: serial@2950000 {
  4670. + compatible = "fsl,ls1021a-lpuart";
  4671. + reg = <0x0 0x2950000 0x0 0x1000>;
  4672. + interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
  4673. + clocks = <&clockgen 4 0>;
  4674. + clock-names = "ipg";
  4675. + status = "disabled";
  4676. + };
  4677. +
  4678. + lpuart1: serial@2960000 {
  4679. + compatible = "fsl,ls1021a-lpuart";
  4680. + reg = <0x0 0x2960000 0x0 0x1000>;
  4681. + interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
  4682. + clocks = <&clockgen 4 1>;
  4683. + clock-names = "ipg";
  4684. + status = "disabled";
  4685. + };
  4686. +
  4687. + lpuart2: serial@2970000 {
  4688. + compatible = "fsl,ls1021a-lpuart";
  4689. + reg = <0x0 0x2970000 0x0 0x1000>;
  4690. + interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
  4691. + clocks = <&clockgen 4 1>;
  4692. + clock-names = "ipg";
  4693. + status = "disabled";
  4694. + };
  4695. +
  4696. + lpuart3: serial@2980000 {
  4697. + compatible = "fsl,ls1021a-lpuart";
  4698. + reg = <0x0 0x2980000 0x0 0x1000>;
  4699. + interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
  4700. + clocks = <&clockgen 4 1>;
  4701. + clock-names = "ipg";
  4702. + status = "disabled";
  4703. + };
  4704. +
  4705. + lpuart4: serial@2990000 {
  4706. + compatible = "fsl,ls1021a-lpuart";
  4707. + reg = <0x0 0x2990000 0x0 0x1000>;
  4708. + interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
  4709. + clocks = <&clockgen 4 1>;
  4710. + clock-names = "ipg";
  4711. + status = "disabled";
  4712. + };
  4713. +
  4714. + lpuart5: serial@29a0000 {
  4715. + compatible = "fsl,ls1021a-lpuart";
  4716. + reg = <0x0 0x29a0000 0x0 0x1000>;
  4717. + interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
  4718. + clocks = <&clockgen 4 1>;
  4719. + clock-names = "ipg";
  4720. + status = "disabled";
  4721. + };
  4722. +
  4723. + ftm0: ftm0@29d0000 {
  4724. + compatible = "fsl,ls1046a-ftm";
  4725. + reg = <0x0 0x29d0000 0x0 0x10000>,
  4726. + <0x0 0x1ee2140 0x0 0x4>;
  4727. + reg-names = "ftm", "FlexTimer1";
  4728. + interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
  4729. + big-endian;
  4730. + };
  4731. +
  4732. + wdog0: watchdog@2ad0000 {
  4733. + compatible = "fsl,imx21-wdt";
  4734. + reg = <0x0 0x2ad0000 0x0 0x10000>;
  4735. + interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
  4736. + clocks = <&clockgen 4 1>;
  4737. + big-endian;
  4738. + };
  4739. +
  4740. + edma0: edma@2c00000 {
  4741. + #dma-cells = <2>;
  4742. + compatible = "fsl,vf610-edma";
  4743. + reg = <0x0 0x2c00000 0x0 0x10000>,
  4744. + <0x0 0x2c10000 0x0 0x10000>,
  4745. + <0x0 0x2c20000 0x0 0x10000>;
  4746. + interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
  4747. + <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
  4748. + interrupt-names = "edma-tx", "edma-err";
  4749. + dma-channels = <32>;
  4750. + big-endian;
  4751. + clock-names = "dmamux0", "dmamux1";
  4752. + clocks = <&clockgen 4 1>,
  4753. + <&clockgen 4 1>;
  4754. + };
  4755. +
  4756. + usb0: usb@2f00000 {
  4757. + compatible = "snps,dwc3";
  4758. + reg = <0x0 0x2f00000 0x0 0x10000>;
  4759. + interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
  4760. + dr_mode = "host";
  4761. + snps,quirk-frame-length-adjustment = <0x20>;
  4762. + snps,dis_rxdet_inp3_quirk;
  4763. + };
  4764. +
  4765. + usb1: usb@3000000 {
  4766. + compatible = "snps,dwc3";
  4767. + reg = <0x0 0x3000000 0x0 0x10000>;
  4768. + interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
  4769. + dr_mode = "host";
  4770. + snps,quirk-frame-length-adjustment = <0x20>;
  4771. + snps,dis_rxdet_inp3_quirk;
  4772. + };
  4773. +
  4774. + usb2: usb@3100000 {
  4775. + compatible = "snps,dwc3";
  4776. + reg = <0x0 0x3100000 0x0 0x10000>;
  4777. + interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
  4778. + dr_mode = "host";
  4779. + snps,quirk-frame-length-adjustment = <0x20>;
  4780. + snps,dis_rxdet_inp3_quirk;
  4781. + };
  4782. +
  4783. + sata: sata@3200000 {
  4784. + compatible = "fsl,ls1046a-ahci";
  4785. + reg = <0x0 0x3200000 0x0 0x10000>,
  4786. + <0x0 0x20140520 0x0 0x4>;
  4787. + reg-names = "ahci", "sata-ecc";
  4788. + interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
  4789. + clocks = <&clockgen 4 1>;
  4790. + dma-coherent;
  4791. + };
  4792. +
  4793. + qdma: qdma@8380000 {
  4794. + compatible = "fsl,ls1046a-qdma", "fsl,ls1021a-qdma";
  4795. + reg = <0x0 0x8380000 0x0 0x1000>, /* Controller regs */
  4796. + <0x0 0x8390000 0x0 0x10000>, /* Status regs */
  4797. + <0x0 0x83a0000 0x0 0x40000>; /* Block regs */
  4798. + interrupts = <0 153 0x4>,
  4799. + <0 39 0x4>;
  4800. + interrupt-names = "qdma-error", "qdma-queue";
  4801. + channels = <8>;
  4802. + queues = <2>;
  4803. + status-sizes = <64>;
  4804. + queue-sizes = <64 64>;
  4805. + big-endian;
  4806. + };
  4807. +
  4808. + msi1: msi-controller@1580000 {
  4809. + compatible = "fsl,ls1046a-msi";
  4810. + msi-controller;
  4811. + reg = <0x0 0x1580000 0x0 0x10000>;
  4812. + interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
  4813. + <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>,
  4814. + <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>,
  4815. + <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>;
  4816. + };
  4817. +
  4818. + msi2: msi-controller@1590000 {
  4819. + compatible = "fsl,ls1046a-msi";
  4820. + msi-controller;
  4821. + reg = <0x0 0x1590000 0x0 0x10000>;
  4822. + interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>,
  4823. + <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
  4824. + <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
  4825. + <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
  4826. + };
  4827. +
  4828. + msi3: msi-controller@15a0000 {
  4829. + compatible = "fsl,ls1046a-msi";
  4830. + msi-controller;
  4831. + reg = <0x0 0x15a0000 0x0 0x10000>;
  4832. + interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
  4833. + <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>,
  4834. + <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>,
  4835. + <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>;
  4836. + };
  4837. +
  4838. + pcie@3400000 {
  4839. + compatible = "fsl,ls1046a-pcie", "snps,dw-pcie";
  4840. + reg = <0x00 0x03400000 0x0 0x00100000 /* controller registers */
  4841. + 0x40 0x00000000 0x0 0x00002000>; /* configuration space */
  4842. + reg-names = "regs", "config";
  4843. + interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, /* PME interrupt */
  4844. + <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>; /* aer interrupt */
  4845. + interrupt-names = "pme", "aer";
  4846. + #address-cells = <3>;
  4847. + #size-cells = <2>;
  4848. + device_type = "pci";
  4849. + dma-coherent;
  4850. + num-lanes = <4>;
  4851. + bus-range = <0x0 0xff>;
  4852. + ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000 /* downstream I/O */
  4853. + 0x82000000 0x0 0x40000000 0x40 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
  4854. + msi-parent = <&msi1>, <&msi2>, <&msi3>;
  4855. + #interrupt-cells = <1>;
  4856. + interrupt-map-mask = <0 0 0 7>;
  4857. + interrupt-map = <0000 0 0 1 &gic GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>,
  4858. + <0000 0 0 2 &gic GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>,
  4859. + <0000 0 0 3 &gic GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>,
  4860. + <0000 0 0 4 &gic GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
  4861. + };
  4862. +
  4863. + pcie@3500000 {
  4864. + compatible = "fsl,ls1046a-pcie", "snps,dw-pcie";
  4865. + reg = <0x00 0x03500000 0x0 0x00100000 /* controller registers */
  4866. + 0x48 0x00000000 0x0 0x00002000>; /* configuration space */
  4867. + reg-names = "regs", "config";
  4868. + interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>,
  4869. + <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>;
  4870. + interrupt-names = "pme", "aer";
  4871. + #address-cells = <3>;
  4872. + #size-cells = <2>;
  4873. + device_type = "pci";
  4874. + dma-coherent;
  4875. + num-lanes = <2>;
  4876. + bus-range = <0x0 0xff>;
  4877. + ranges = <0x81000000 0x0 0x00000000 0x48 0x00010000 0x0 0x00010000 /* downstream I/O */
  4878. + 0x82000000 0x0 0x40000000 0x48 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
  4879. + msi-parent = <&msi1>, <&msi2>, <&msi3>;
  4880. + #interrupt-cells = <1>;
  4881. + interrupt-map-mask = <0 0 0 7>;
  4882. + interrupt-map = <0000 0 0 1 &gic GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
  4883. + <0000 0 0 2 &gic GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
  4884. + <0000 0 0 3 &gic GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
  4885. + <0000 0 0 4 &gic GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
  4886. + };
  4887. +
  4888. + pcie@3600000 {
  4889. + compatible = "fsl,ls1046a-pcie", "snps,dw-pcie";
  4890. + reg = <0x00 0x03600000 0x0 0x00100000 /* controller registers */
  4891. + 0x50 0x00000000 0x0 0x00002000>; /* configuration space */
  4892. + reg-names = "regs", "config";
  4893. + interrupts = <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
  4894. + <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
  4895. + interrupt-names = "pme", "aer";
  4896. + #address-cells = <3>;
  4897. + #size-cells = <2>;
  4898. + device_type = "pci";
  4899. + dma-coherent;
  4900. + num-lanes = <2>;
  4901. + bus-range = <0x0 0xff>;
  4902. + ranges = <0x81000000 0x0 0x00000000 0x50 0x00010000 0x0 0x00010000 /* downstream I/O */
  4903. + 0x82000000 0x0 0x40000000 0x50 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
  4904. + msi-parent = <&msi1>, <&msi2>, <&msi3>;
  4905. + #interrupt-cells = <1>;
  4906. + interrupt-map-mask = <0 0 0 7>;
  4907. + interrupt-map = <0000 0 0 1 &gic GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>,
  4908. + <0000 0 0 2 &gic GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>,
  4909. + <0000 0 0 3 &gic GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>,
  4910. + <0000 0 0 4 &gic GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
  4911. + };
  4912. +
  4913. + };
  4914. +
  4915. + reserved-memory {
  4916. + #address-cells = <2>;
  4917. + #size-cells = <2>;
  4918. + ranges;
  4919. +
  4920. + bman_fbpr: bman-fbpr {
  4921. + compatible = "shared-dma-pool";
  4922. + size = <0 0x1000000>;
  4923. + alignment = <0 0x1000000>;
  4924. + no-map;
  4925. + };
  4926. + qman_fqd: qman-fqd {
  4927. + compatible = "shared-dma-pool";
  4928. + size = <0 0x800000>;
  4929. + alignment = <0 0x800000>;
  4930. + no-map;
  4931. + };
  4932. + qman_pfdr: qman-pfdr {
  4933. + compatible = "shared-dma-pool";
  4934. + size = <0 0x2000000>;
  4935. + alignment = <0 0x2000000>;
  4936. + no-map;
  4937. + };
  4938. + };
  4939. +
  4940. + firmware {
  4941. + optee {
  4942. + compatible = "linaro,optee-tz";
  4943. + method = "smc";
  4944. + };
  4945. + };
  4946. +};
  4947. +
  4948. +#include "qoriq-qman1-portals.dtsi"
  4949. +#include "qoriq-bman1-portals.dtsi"
  4950. --- /dev/null
  4951. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts
  4952. @@ -0,0 +1,173 @@
  4953. +/*
  4954. + * Device Tree file for NXP LS1088A QDS Board.
  4955. + *
  4956. + * Copyright 2017 NXP
  4957. + *
  4958. + * Harninder Rai <[email protected]>
  4959. + *
  4960. + * This file is dual-licensed: you can use it either under the terms
  4961. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  4962. + * licensing only applies to this file, and not this project as a
  4963. + * whole.
  4964. + *
  4965. + * a) This library is free software; you can redistribute it and/or
  4966. + * modify it under the terms of the GNU General Public License as
  4967. + * published by the Free Software Foundation; either version 2 of the
  4968. + * License, or (at your option) any later version.
  4969. + *
  4970. + * This library is distributed in the hope that it will be useful,
  4971. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  4972. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  4973. + * GNU General Public License for more details.
  4974. + *
  4975. + * Or, alternatively,
  4976. + *
  4977. + * b) Permission is hereby granted, free of charge, to any person
  4978. + * obtaining a copy of this software and associated documentation
  4979. + * files (the "Software"), to deal in the Software without
  4980. + * restriction, including without limitation the rights to use,
  4981. + * copy, modify, merge, publish, distribute, sublicense, and/or
  4982. + * sell copies of the Software, and to permit persons to whom the
  4983. + * Software is furnished to do so, subject to the following
  4984. + * conditions:
  4985. + *
  4986. + * The above copyright notice and this permission notice shall be
  4987. + * included in all copies or substantial portions of the Software.
  4988. + *
  4989. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  4990. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  4991. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  4992. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  4993. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  4994. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  4995. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  4996. + * OTHER DEALINGS IN THE SOFTWARE.
  4997. + */
  4998. +
  4999. +/dts-v1/;
  5000. +
  5001. +#include "fsl-ls1088a.dtsi"
  5002. +
  5003. +/ {
  5004. + model = "LS1088A QDS Board";
  5005. + compatible = "fsl,ls1088a-qds", "fsl,ls1088a";
  5006. +};
  5007. +
  5008. +&i2c0 {
  5009. + status = "okay";
  5010. +
  5011. + i2c-switch@77 {
  5012. + compatible = "nxp,pca9547";
  5013. + reg = <0x77>;
  5014. + #address-cells = <1>;
  5015. + #size-cells = <0>;
  5016. +
  5017. + i2c@2 {
  5018. + #address-cells = <1>;
  5019. + #size-cells = <0>;
  5020. + reg = <0x2>;
  5021. +
  5022. + ina220@40 {
  5023. + compatible = "ti,ina220";
  5024. + reg = <0x40>;
  5025. + shunt-resistor = <1000>;
  5026. + };
  5027. +
  5028. + ina220@41 {
  5029. + compatible = "ti,ina220";
  5030. + reg = <0x41>;
  5031. + shunt-resistor = <1000>;
  5032. + };
  5033. + };
  5034. +
  5035. + i2c@3 {
  5036. + #address-cells = <1>;
  5037. + #size-cells = <0>;
  5038. + reg = <0x3>;
  5039. +
  5040. + temp-sensor@4c {
  5041. + compatible = "adi,adt7461a";
  5042. + reg = <0x4c>;
  5043. + };
  5044. +
  5045. + rtc@51 {
  5046. + compatible = "nxp,pcf2129";
  5047. + reg = <0x51>;
  5048. + /* IRQ10_B */
  5049. + interrupts = <0 150 IRQ_TYPE_LEVEL_HIGH>;
  5050. + };
  5051. +
  5052. + eeprom@56 {
  5053. + compatible = "atmel,24c512";
  5054. + reg = <0x56>;
  5055. + };
  5056. +
  5057. + eeprom@57 {
  5058. + compatible = "atmel,24c512";
  5059. + reg = <0x57>;
  5060. + };
  5061. + };
  5062. + };
  5063. +};
  5064. +
  5065. +&qspi {
  5066. + status = "okay";
  5067. + qflash0: s25fs512s@0 {
  5068. + compatible = "spansion,m25p80";
  5069. + #address-cells = <1>;
  5070. + #size-cells = <1>;
  5071. + spi-max-frequency = <20000000>;
  5072. + m25p,fast-read;
  5073. + reg = <0>;
  5074. + };
  5075. +
  5076. + qflash1: s25fs512s@1 {
  5077. + compatible = "spansion,m25p80";
  5078. + #address-cells = <1>;
  5079. + #size-cells = <1>;
  5080. + spi-max-frequency = <20000000>;
  5081. + m25p,fast-read;
  5082. + reg = <1>;
  5083. + };
  5084. +};
  5085. +
  5086. +&ifc {
  5087. + status = "okay";
  5088. +
  5089. + ranges = <0 0 0x5 0x80000000 0x08000000
  5090. + 2 0 0x5 0x30000000 0x00010000
  5091. + 3 0 0x5 0x20000000 0x00010000>;
  5092. +
  5093. + nor@0,0 {
  5094. + compatible = "cfi-flash";
  5095. + reg = <0x0 0x0 0x8000000>;
  5096. + bank-width = <2>;
  5097. + device-width = <1>;
  5098. + };
  5099. +
  5100. + nand@2,0 {
  5101. + compatible = "fsl,ifc-nand";
  5102. + reg = <0x2 0x0 0x10000>;
  5103. + };
  5104. +
  5105. + fpga: board-control@3,0 {
  5106. + compatible = "fsl,ls1088aqds-fpga", "fsl,fpga-qixis";
  5107. + reg = <0x3 0x0 0x0000100>;
  5108. + };
  5109. +};
  5110. +
  5111. +&duart0 {
  5112. + status = "okay";
  5113. +};
  5114. +
  5115. +&duart1 {
  5116. + status = "okay";
  5117. +};
  5118. +
  5119. +&esdhc {
  5120. + status = "okay";
  5121. +};
  5122. +
  5123. +&sata {
  5124. + status = "okay";
  5125. +};
  5126. --- /dev/null
  5127. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts
  5128. @@ -0,0 +1,236 @@
  5129. +/*
  5130. + * Device Tree file for NXP LS1088A RDB Board.
  5131. + *
  5132. + * Copyright 2017 NXP
  5133. + *
  5134. + * Harninder Rai <[email protected]>
  5135. + *
  5136. + * This file is dual-licensed: you can use it either under the terms
  5137. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  5138. + * licensing only applies to this file, and not this project as a
  5139. + * whole.
  5140. + *
  5141. + * a) This library is free software; you can redistribute it and/or
  5142. + * modify it under the terms of the GNU General Public License as
  5143. + * published by the Free Software Foundation; either version 2 of the
  5144. + * License, or (at your option) any later version.
  5145. + *
  5146. + * This library is distributed in the hope that it will be useful,
  5147. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  5148. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5149. + * GNU General Public License for more details.
  5150. + *
  5151. + * Or, alternatively,
  5152. + *
  5153. + * b) Permission is hereby granted, free of charge, to any person
  5154. + * obtaining a copy of this software and associated documentation
  5155. + * files (the "Software"), to deal in the Software without
  5156. + * restriction, including without limitation the rights to use,
  5157. + * copy, modify, merge, publish, distribute, sublicense, and/or
  5158. + * sell copies of the Software, and to permit persons to whom the
  5159. + * Software is furnished to do so, subject to the following
  5160. + * conditions:
  5161. + *
  5162. + * The above copyright notice and this permission notice shall be
  5163. + * included in all copies or substantial portions of the Software.
  5164. + *
  5165. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  5166. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  5167. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  5168. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  5169. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  5170. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  5171. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  5172. + * OTHER DEALINGS IN THE SOFTWARE.
  5173. + */
  5174. +
  5175. +/dts-v1/;
  5176. +
  5177. +#include "fsl-ls1088a.dtsi"
  5178. +
  5179. +/ {
  5180. + model = "L1088A RDB Board";
  5181. + compatible = "fsl,ls1088a-rdb", "fsl,ls1088a";
  5182. +};
  5183. +
  5184. +&i2c0 {
  5185. + status = "okay";
  5186. +
  5187. + i2c-switch@77 {
  5188. + compatible = "nxp,pca9547";
  5189. + reg = <0x77>;
  5190. + #address-cells = <1>;
  5191. + #size-cells = <0>;
  5192. +
  5193. + i2c@2 {
  5194. + #address-cells = <1>;
  5195. + #size-cells = <0>;
  5196. + reg = <0x2>;
  5197. +
  5198. + ina220@40 {
  5199. + compatible = "ti,ina220";
  5200. + reg = <0x40>;
  5201. + shunt-resistor = <1000>;
  5202. + };
  5203. + };
  5204. +
  5205. + i2c@3 {
  5206. + #address-cells = <1>;
  5207. + #size-cells = <0>;
  5208. + reg = <0x3>;
  5209. +
  5210. + temp-sensor@4c {
  5211. + compatible = "adi,adt7461a";
  5212. + reg = <0x4c>;
  5213. + };
  5214. +
  5215. + rtc@51 {
  5216. + compatible = "nxp,pcf2129";
  5217. + reg = <0x51>;
  5218. + /* IRQ10_B */
  5219. + interrupts = <0 150 IRQ_TYPE_LEVEL_HIGH>;
  5220. + };
  5221. + };
  5222. + };
  5223. +};
  5224. +
  5225. +&qspi {
  5226. + status = "okay";
  5227. + qflash0: s25fs512s@0 {
  5228. + compatible = "spansion,m25p80";
  5229. + #address-cells = <1>;
  5230. + #size-cells = <1>;
  5231. + m25p,fast-read;
  5232. + spi-max-frequency = <20000000>;
  5233. + reg = <0>;
  5234. + };
  5235. +
  5236. + qflash1: s25fs512s@1 {
  5237. + compatible = "spansion,m25p80";
  5238. + #address-cells = <1>;
  5239. + #size-cells = <1>;
  5240. + m25p,fast-read;
  5241. + spi-max-frequency = <20000000>;
  5242. + reg = <1>;
  5243. + };
  5244. +};
  5245. +
  5246. +&ifc {
  5247. + status = "okay";
  5248. +
  5249. + ranges = <0 0 0x5 0x30000000 0x00010000
  5250. + 2 0 0x5 0x20000000 0x00010000>;
  5251. +
  5252. + nand@0,0 {
  5253. + compatible = "fsl,ifc-nand";
  5254. + reg = <0x0 0x0 0x10000>;
  5255. + };
  5256. +
  5257. + fpga: board-control@2,0 {
  5258. + compatible = "fsl,ls1088ardb-fpga", "fsl,fpga-qixis";
  5259. + reg = <0x2 0x0 0x0000100>;
  5260. + };
  5261. +};
  5262. +
  5263. +&duart0 {
  5264. + status = "okay";
  5265. +};
  5266. +
  5267. +&duart1 {
  5268. + status = "okay";
  5269. +};
  5270. +
  5271. +&usb0 {
  5272. + status = "okay";
  5273. +};
  5274. +
  5275. +&usb1 {
  5276. + status = "okay";
  5277. +};
  5278. +
  5279. +&esdhc {
  5280. + status = "okay";
  5281. +};
  5282. +
  5283. +&sata {
  5284. + status = "okay";
  5285. +};
  5286. +
  5287. +&emdio1 {
  5288. + /* Freescale F104 PHY1 */
  5289. + mdio1_phy1: emdio1_phy@1 {
  5290. + reg = <0x1c>;
  5291. + phy-connection-type = "qsgmii";
  5292. + };
  5293. + mdio1_phy2: emdio1_phy@2 {
  5294. + reg = <0x1d>;
  5295. + phy-connection-type = "qsgmii";
  5296. + };
  5297. + mdio1_phy3: emdio1_phy@3 {
  5298. + reg = <0x1e>;
  5299. + phy-connection-type = "qsgmii";
  5300. + };
  5301. + mdio1_phy4: emdio1_phy@4 {
  5302. + reg = <0x1f>;
  5303. + phy-connection-type = "qsgmii";
  5304. + };
  5305. + /* F104 PHY2 */
  5306. + mdio1_phy5: emdio1_phy@5 {
  5307. + reg = <0x0c>;
  5308. + phy-connection-type = "qsgmii";
  5309. + };
  5310. + mdio1_phy6: emdio1_phy@6 {
  5311. + reg = <0x0d>;
  5312. + phy-connection-type = "qsgmii";
  5313. + };
  5314. + mdio1_phy7: emdio1_phy@7 {
  5315. + reg = <0x0e>;
  5316. + phy-connection-type = "qsgmii";
  5317. + };
  5318. + mdio1_phy8: emdio1_phy@8 {
  5319. + reg = <0x0f>;
  5320. + phy-connection-type = "qsgmii";
  5321. + };
  5322. +};
  5323. +
  5324. +&emdio2 {
  5325. + /* Aquantia AQR105 10G PHY */
  5326. + mdio2_phy1: emdio2_phy@1 {
  5327. + compatible = "ethernet-phy-ieee802.3-c45";
  5328. + interrupts = <0 2 0x4>;
  5329. + reg = <0x0>;
  5330. + phy-connection-type = "xfi";
  5331. + };
  5332. +};
  5333. +
  5334. +/* DPMAC connections to external PHYs
  5335. + * based on LS1088A RM RevC - $24.1.2 SerDes Options
  5336. + */
  5337. +/* DPMAC1 is 10G SFP+, fixed link */
  5338. +&dpmac2 {
  5339. + phy-handle = <&mdio2_phy1>;
  5340. +};
  5341. +&dpmac3 {
  5342. + phy-handle = <&mdio1_phy5>;
  5343. +};
  5344. +&dpmac4 {
  5345. + phy-handle = <&mdio1_phy6>;
  5346. +};
  5347. +&dpmac5 {
  5348. + phy-handle = <&mdio1_phy7>;
  5349. +};
  5350. +&dpmac6 {
  5351. + phy-handle = <&mdio1_phy8>;
  5352. +};
  5353. +&dpmac7 {
  5354. + phy-handle = <&mdio1_phy1>;
  5355. +};
  5356. +&dpmac8 {
  5357. + phy-handle = <&mdio1_phy2>;
  5358. +};
  5359. +&dpmac9 {
  5360. + phy-handle = <&mdio1_phy3>;
  5361. +};
  5362. +&dpmac10 {
  5363. + phy-handle = <&mdio1_phy4>;
  5364. +};
  5365. --- /dev/null
  5366. +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
  5367. @@ -0,0 +1,825 @@
  5368. +/*
  5369. + * Device Tree Include file for NXP Layerscape-1088A family SoC.
  5370. + *
  5371. + * Copyright 2017 NXP
  5372. + *
  5373. + * Harninder Rai <[email protected]>
  5374. + *
  5375. + * This file is dual-licensed: you can use it either under the terms
  5376. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  5377. + * licensing only applies to this file, and not this project as a
  5378. + * whole.
  5379. + *
  5380. + * a) This library is free software; you can redistribute it and/or
  5381. + * modify it under the terms of the GNU General Public License as
  5382. + * published by the Free Software Foundation; either version 2 of the
  5383. + * License, or (at your option) any later version.
  5384. + *
  5385. + * This library is distributed in the hope that it will be useful,
  5386. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  5387. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5388. + * GNU General Public License for more details.
  5389. + *
  5390. + * Or, alternatively,
  5391. + *
  5392. + * b) Permission is hereby granted, free of charge, to any person
  5393. + * obtaining a copy of this software and associated documentation
  5394. + * files (the "Software"), to deal in the Software without
  5395. + * restriction, including without limitation the rights to use,
  5396. + * copy, modify, merge, publish, distribute, sublicense, and/or
  5397. + * sell copies of the Software, and to permit persons to whom the
  5398. + * Software is furnished to do so, subject to the following
  5399. + * conditions:
  5400. + *
  5401. + * The above copyright notice and this permission notice shall be
  5402. + * included in all copies or substantial portions of the Software.
  5403. + *
  5404. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  5405. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  5406. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  5407. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  5408. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  5409. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  5410. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  5411. + * OTHER DEALINGS IN THE SOFTWARE.
  5412. + */
  5413. +#include <dt-bindings/interrupt-controller/arm-gic.h>
  5414. +#include <dt-bindings/thermal/thermal.h>
  5415. +
  5416. +/ {
  5417. + compatible = "fsl,ls1088a";
  5418. + interrupt-parent = <&gic>;
  5419. + #address-cells = <2>;
  5420. + #size-cells = <2>;
  5421. +
  5422. + aliases {
  5423. + crypto = &crypto;
  5424. + };
  5425. +
  5426. + cpus {
  5427. + #address-cells = <1>;
  5428. + #size-cells = <0>;
  5429. +
  5430. + /* We have 2 clusters having 4 Cortex-A53 cores each */
  5431. + cpu0: cpu@0 {
  5432. + device_type = "cpu";
  5433. + compatible = "arm,cortex-a53";
  5434. + reg = <0x0>;
  5435. + clocks = <&clockgen 1 0>;
  5436. + #cooling-cells = <2>;
  5437. + cpu-idle-states = <&CPU_PH20>;
  5438. + };
  5439. +
  5440. + cpu1: cpu@1 {
  5441. + device_type = "cpu";
  5442. + compatible = "arm,cortex-a53";
  5443. + reg = <0x1>;
  5444. + clocks = <&clockgen 1 0>;
  5445. + cpu-idle-states = <&CPU_PH20>;
  5446. + };
  5447. +
  5448. + cpu2: cpu@2 {
  5449. + device_type = "cpu";
  5450. + compatible = "arm,cortex-a53";
  5451. + reg = <0x2>;
  5452. + clocks = <&clockgen 1 0>;
  5453. + cpu-idle-states = <&CPU_PH20>;
  5454. + };
  5455. +
  5456. + cpu3: cpu@3 {
  5457. + device_type = "cpu";
  5458. + compatible = "arm,cortex-a53";
  5459. + reg = <0x3>;
  5460. + clocks = <&clockgen 1 0>;
  5461. + cpu-idle-states = <&CPU_PH20>;
  5462. + };
  5463. +
  5464. + cpu4: cpu@100 {
  5465. + device_type = "cpu";
  5466. + compatible = "arm,cortex-a53";
  5467. + reg = <0x100>;
  5468. + clocks = <&clockgen 1 1>;
  5469. + #cooling-cells = <2>;
  5470. + cpu-idle-states = <&CPU_PH20>;
  5471. + };
  5472. +
  5473. + cpu5: cpu@101 {
  5474. + device_type = "cpu";
  5475. + compatible = "arm,cortex-a53";
  5476. + reg = <0x101>;
  5477. + clocks = <&clockgen 1 1>;
  5478. + cpu-idle-states = <&CPU_PH20>;
  5479. + };
  5480. +
  5481. + cpu6: cpu@102 {
  5482. + device_type = "cpu";
  5483. + compatible = "arm,cortex-a53";
  5484. + reg = <0x102>;
  5485. + clocks = <&clockgen 1 1>;
  5486. + cpu-idle-states = <&CPU_PH20>;
  5487. + };
  5488. +
  5489. + cpu7: cpu@103 {
  5490. + device_type = "cpu";
  5491. + compatible = "arm,cortex-a53";
  5492. + reg = <0x103>;
  5493. + clocks = <&clockgen 1 1>;
  5494. + cpu-idle-states = <&CPU_PH20>;
  5495. + };
  5496. + };
  5497. +
  5498. + idle-states {
  5499. + /*
  5500. + * PSCI node is not added default, U-boot will add missing
  5501. + * parts if it determines to use PSCI.
  5502. + */
  5503. + entry-method = "arm,psci";
  5504. +
  5505. + CPU_PH20: cpu-ph20 {
  5506. + compatible = "arm,idle-state";
  5507. + idle-state-name = "PH20";
  5508. + arm,psci-suspend-param = <0x0>;
  5509. + entry-latency-us = <1000>;
  5510. + exit-latency-us = <1000>;
  5511. + min-residency-us = <3000>;
  5512. + };
  5513. + };
  5514. +
  5515. + gic: interrupt-controller@6000000 {
  5516. + compatible = "arm,gic-v3";
  5517. + #interrupt-cells = <3>;
  5518. + #address-cells = <2>;
  5519. + #size-cells = <2>;
  5520. + ranges;
  5521. + interrupt-controller;
  5522. + reg = <0x0 0x06000000 0 0x10000>, /* GIC Dist */
  5523. + <0x0 0x06100000 0 0x100000>, /* GICR(RD_base+SGI_base)*/
  5524. + <0x0 0x0c0c0000 0 0x2000>, /* GICC */
  5525. + <0x0 0x0c0d0000 0 0x1000>, /* GICH */
  5526. + <0x0 0x0c0e0000 0 0x20000>; /* GICV */
  5527. + interrupts = <1 9 IRQ_TYPE_LEVEL_HIGH>;
  5528. +
  5529. + its: gic-its@6020000 {
  5530. + compatible = "arm,gic-v3-its";
  5531. + msi-controller;
  5532. + reg = <0x0 0x6020000 0 0x20000>;
  5533. + };
  5534. + };
  5535. +
  5536. + timer {
  5537. + compatible = "arm,armv8-timer";
  5538. + interrupts = <1 13 IRQ_TYPE_LEVEL_LOW>,/* Physical Secure PPI */
  5539. + <1 14 IRQ_TYPE_LEVEL_LOW>,/* Physical Non-Secure PPI */
  5540. + <1 11 IRQ_TYPE_LEVEL_LOW>,/* Virtual PPI */
  5541. + <1 10 IRQ_TYPE_LEVEL_LOW>;/* Hypervisor PPI */
  5542. + };
  5543. +
  5544. + fsl_mc: fsl-mc@80c000000 {
  5545. + compatible = "fsl,qoriq-mc";
  5546. + reg = <0x00000008 0x0c000000 0 0x40>, /* MC portal base */
  5547. + <0x00000000 0x08340000 0 0x40000>; /* MC control reg */
  5548. + msi-parent = <&its>;
  5549. + iommu-map = <0 &smmu 0 0>; /* This is fixed-up by u-boot */
  5550. + #address-cells = <3>;
  5551. + #size-cells = <1>;
  5552. +
  5553. + /*
  5554. + * Region type 0x0 - MC portals
  5555. + * Region type 0x1 - QBMAN portals
  5556. + */
  5557. + ranges = <0x0 0x0 0x0 0x8 0x0c000000 0x4000000
  5558. + 0x1 0x0 0x0 0x8 0x18000000 0x8000000>;
  5559. +
  5560. + dpmacs {
  5561. + #address-cells = <1>;
  5562. + #size-cells = <0>;
  5563. +
  5564. + dpmac1: dpmac@1 {
  5565. + compatible = "fsl,qoriq-mc-dpmac";
  5566. + reg = <1>;
  5567. + };
  5568. + dpmac2: dpmac@2 {
  5569. + compatible = "fsl,qoriq-mc-dpmac";
  5570. + reg = <2>;
  5571. + };
  5572. + dpmac3: dpmac@3 {
  5573. + compatible = "fsl,qoriq-mc-dpmac";
  5574. + reg = <3>;
  5575. + };
  5576. + dpmac4: dpmac@4 {
  5577. + compatible = "fsl,qoriq-mc-dpmac";
  5578. + reg = <4>;
  5579. + };
  5580. + dpmac5: dpmac@5 {
  5581. + compatible = "fsl,qoriq-mc-dpmac";
  5582. + reg = <5>;
  5583. + };
  5584. + dpmac6: dpmac@6 {
  5585. + compatible = "fsl,qoriq-mc-dpmac";
  5586. + reg = <6>;
  5587. + };
  5588. + dpmac7: dpmac@7 {
  5589. + compatible = "fsl,qoriq-mc-dpmac";
  5590. + reg = <7>;
  5591. + };
  5592. + dpmac8: dpmac@8 {
  5593. + compatible = "fsl,qoriq-mc-dpmac";
  5594. + reg = <8>;
  5595. + };
  5596. + dpmac9: dpmac@9 {
  5597. + compatible = "fsl,qoriq-mc-dpmac";
  5598. + reg = <9>;
  5599. + };
  5600. + dpmac10: dpmac@10 {
  5601. + compatible = "fsl,qoriq-mc-dpmac";
  5602. + reg = <0xa>;
  5603. + };
  5604. + };
  5605. +
  5606. + };
  5607. +
  5608. + sysclk: sysclk {
  5609. + compatible = "fixed-clock";
  5610. + #clock-cells = <0>;
  5611. + clock-frequency = <100000000>;
  5612. + clock-output-names = "sysclk";
  5613. + };
  5614. +
  5615. + dcfg: dcfg@1e00000 {
  5616. + compatible = "fsl,ls1088a-dcfg", "syscon";
  5617. + reg = <0x0 0x1e00000 0x0 0x10000>;
  5618. + little-endian;
  5619. + };
  5620. +
  5621. + rstcr: syscon@1e60000 {
  5622. + compatible = "fsl,ls1088a-rstcr", "syscon";
  5623. + reg = <0x0 0x1e60000 0x0 0x4>;
  5624. + };
  5625. +
  5626. + reboot {
  5627. + compatible = "syscon-reboot";
  5628. + regmap = <&rstcr>;
  5629. + offset = <0x0>;
  5630. + mask = <0x02>;
  5631. + };
  5632. +
  5633. +
  5634. + soc {
  5635. + compatible = "simple-bus";
  5636. + #address-cells = <2>;
  5637. + #size-cells = <2>;
  5638. + ranges;
  5639. +
  5640. + clockgen: clocking@1300000 {
  5641. + compatible = "fsl,ls1088a-clockgen";
  5642. + reg = <0 0x1300000 0 0xa0000>;
  5643. + #clock-cells = <2>;
  5644. + clocks = <&sysclk>;
  5645. + };
  5646. +
  5647. + tmu: tmu@1f80000 {
  5648. + compatible = "fsl,qoriq-tmu";
  5649. + reg = <0x0 0x1f80000 0x0 0x10000>;
  5650. + interrupts = <0 23 0x4>;
  5651. + fsl,tmu-range = <0xb0000 0x9002a 0x6004c 0x30062>;
  5652. + fsl,tmu-calibration =
  5653. + /* Calibration data group 1 */
  5654. + <0x00000000 0x00000026
  5655. + 0x00000001 0x0000002d
  5656. + 0x00000002 0x00000032
  5657. + 0x00000003 0x00000039
  5658. + 0x00000004 0x0000003f
  5659. + 0x00000005 0x00000046
  5660. + 0x00000006 0x0000004d
  5661. + 0x00000007 0x00000054
  5662. + 0x00000008 0x0000005a
  5663. + 0x00000009 0x00000061
  5664. + 0x0000000a 0x0000006a
  5665. + 0x0000000b 0x00000071
  5666. + /* Calibration data group 2 */
  5667. + 0x00010000 0x00000025
  5668. + 0x00010001 0x0000002c
  5669. + 0x00010002 0x00000035
  5670. + 0x00010003 0x0000003d
  5671. + 0x00010004 0x00000045
  5672. + 0x00010005 0x0000004e
  5673. + 0x00010006 0x00000057
  5674. + 0x00010007 0x00000061
  5675. + 0x00010008 0x0000006b
  5676. + 0x00010009 0x00000076
  5677. + /* Calibration data group 3 */
  5678. + 0x00020000 0x00000029
  5679. + 0x00020001 0x00000033
  5680. + 0x00020002 0x0000003d
  5681. + 0x00020003 0x00000049
  5682. + 0x00020004 0x00000056
  5683. + 0x00020005 0x00000061
  5684. + 0x00020006 0x0000006d
  5685. + /* Calibration data group 4 */
  5686. + 0x00030000 0x00000021
  5687. + 0x00030001 0x0000002a
  5688. + 0x00030002 0x0000003c
  5689. + 0x00030003 0x0000004e>;
  5690. + little-endian;
  5691. + #thermal-sensor-cells = <1>;
  5692. + };
  5693. +
  5694. + thermal-zones {
  5695. + cpu_thermal: cpu-thermal {
  5696. + polling-delay-passive = <1000>;
  5697. + polling-delay = <5000>;
  5698. + thermal-sensors = <&tmu 0>;
  5699. +
  5700. + trips {
  5701. + cpu_alert: cpu-alert {
  5702. + temperature = <85000>;
  5703. + hysteresis = <2000>;
  5704. + type = "passive";
  5705. + };
  5706. +
  5707. + cpu_crit: cpu-crit {
  5708. + temperature = <95000>;
  5709. + hysteresis = <2000>;
  5710. + type = "critical";
  5711. + };
  5712. + };
  5713. +
  5714. + cooling-maps {
  5715. + map0 {
  5716. + trip = <&cpu_alert>;
  5717. + cooling-device =
  5718. + <&cpu0 THERMAL_NO_LIMIT
  5719. + THERMAL_NO_LIMIT>;
  5720. + };
  5721. + map1 {
  5722. + trip = <&cpu_alert>;
  5723. + cooling-device =
  5724. + <&cpu4 THERMAL_NO_LIMIT
  5725. + THERMAL_NO_LIMIT>;
  5726. + };
  5727. + };
  5728. + };
  5729. + };
  5730. +
  5731. + duart0: serial@21c0500 {
  5732. + compatible = "fsl,ns16550", "ns16550a";
  5733. + reg = <0x0 0x21c0500 0x0 0x100>;
  5734. + clocks = <&clockgen 4 3>;
  5735. + interrupts = <0 32 IRQ_TYPE_LEVEL_HIGH>;
  5736. + status = "disabled";
  5737. + };
  5738. +
  5739. + duart1: serial@21c0600 {
  5740. + compatible = "fsl,ns16550", "ns16550a";
  5741. + reg = <0x0 0x21c0600 0x0 0x100>;
  5742. + clocks = <&clockgen 4 3>;
  5743. + interrupts = <0 32 IRQ_TYPE_LEVEL_HIGH>;
  5744. + status = "disabled";
  5745. + };
  5746. +
  5747. + cluster1_core0_watchdog: wdt@c000000 {
  5748. + compatible = "arm,sp805-wdt", "arm,primecell";
  5749. + reg = <0x0 0xc000000 0x0 0x1000>;
  5750. + clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  5751. + clock-names = "apb_pclk", "wdog_clk";
  5752. + };
  5753. +
  5754. + cluster1_core1_watchdog: wdt@c010000 {
  5755. + compatible = "arm,sp805-wdt", "arm,primecell";
  5756. + reg = <0x0 0xc010000 0x0 0x1000>;
  5757. + clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  5758. + clock-names = "apb_pclk", "wdog_clk";
  5759. + };
  5760. +
  5761. + cluster1_core2_watchdog: wdt@c020000 {
  5762. + compatible = "arm,sp805-wdt", "arm,primecell";
  5763. + reg = <0x0 0xc020000 0x0 0x1000>;
  5764. + clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  5765. + clock-names = "apb_pclk", "wdog_clk";
  5766. + };
  5767. +
  5768. + cluster1_core3_watchdog: wdt@c030000 {
  5769. + compatible = "arm,sp805-wdt", "arm,primecell";
  5770. + reg = <0x0 0xc030000 0x0 0x1000>;
  5771. + clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  5772. + clock-names = "apb_pclk", "wdog_clk";
  5773. + };
  5774. +
  5775. + cluster2_core0_watchdog: wdt@c100000 {
  5776. + compatible = "arm,sp805-wdt", "arm,primecell";
  5777. + reg = <0x0 0xc100000 0x0 0x1000>;
  5778. + clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  5779. + clock-names = "apb_pclk", "wdog_clk";
  5780. + };
  5781. +
  5782. + cluster2_core1_watchdog: wdt@c110000 {
  5783. + compatible = "arm,sp805-wdt", "arm,primecell";
  5784. + reg = <0x0 0xc110000 0x0 0x1000>;
  5785. + clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  5786. + clock-names = "apb_pclk", "wdog_clk";
  5787. + };
  5788. +
  5789. + cluster2_core2_watchdog: wdt@c120000 {
  5790. + compatible = "arm,sp805-wdt", "arm,primecell";
  5791. + reg = <0x0 0xc120000 0x0 0x1000>;
  5792. + clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  5793. + clock-names = "apb_pclk", "wdog_clk";
  5794. + };
  5795. +
  5796. + cluster2_core3_watchdog: wdt@c130000 {
  5797. + compatible = "arm,sp805-wdt", "arm,primecell";
  5798. + reg = <0x0 0xc130000 0x0 0x1000>;
  5799. + clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  5800. + clock-names = "apb_pclk", "wdog_clk";
  5801. + };
  5802. +
  5803. + gpio0: gpio@2300000 {
  5804. + compatible = "fsl,qoriq-gpio";
  5805. + reg = <0x0 0x2300000 0x0 0x10000>;
  5806. + interrupts = <0 36 IRQ_TYPE_LEVEL_HIGH>;
  5807. + gpio-controller;
  5808. + #gpio-cells = <2>;
  5809. + interrupt-controller;
  5810. + #interrupt-cells = <2>;
  5811. + };
  5812. +
  5813. + gpio1: gpio@2310000 {
  5814. + compatible = "fsl,qoriq-gpio";
  5815. + reg = <0x0 0x2310000 0x0 0x10000>;
  5816. + interrupts = <0 36 IRQ_TYPE_LEVEL_HIGH>;
  5817. + gpio-controller;
  5818. + #gpio-cells = <2>;
  5819. + interrupt-controller;
  5820. + #interrupt-cells = <2>;
  5821. + };
  5822. +
  5823. + gpio2: gpio@2320000 {
  5824. + compatible = "fsl,qoriq-gpio";
  5825. + reg = <0x0 0x2320000 0x0 0x10000>;
  5826. + interrupts = <0 37 IRQ_TYPE_LEVEL_HIGH>;
  5827. + gpio-controller;
  5828. + #gpio-cells = <2>;
  5829. + interrupt-controller;
  5830. + #interrupt-cells = <2>;
  5831. + };
  5832. +
  5833. + gpio3: gpio@2330000 {
  5834. + compatible = "fsl,qoriq-gpio";
  5835. + reg = <0x0 0x2330000 0x0 0x10000>;
  5836. + interrupts = <0 37 IRQ_TYPE_LEVEL_HIGH>;
  5837. + gpio-controller;
  5838. + #gpio-cells = <2>;
  5839. + interrupt-controller;
  5840. + #interrupt-cells = <2>;
  5841. + };
  5842. +
  5843. + /* TODO: WRIOP (CCSR?) */
  5844. + emdio1: mdio@0x8B96000 { /* WRIOP0: 0x8B8_0000,
  5845. + * E-MDIO1: 0x1_6000
  5846. + */
  5847. + compatible = "fsl,fman-memac-mdio";
  5848. + reg = <0x0 0x8B96000 0x0 0x1000>;
  5849. + device_type = "mdio";
  5850. + little-endian; /* force the driver in LE mode */
  5851. +
  5852. + /* Not necessary on the QDS, but needed on the RDB */
  5853. + #address-cells = <1>;
  5854. + #size-cells = <0>;
  5855. + };
  5856. +
  5857. + emdio2: mdio@0x8B97000 { /* WRIOP0: 0x8B8_0000,
  5858. + * E-MDIO2: 0x1_7000
  5859. + */
  5860. + compatible = "fsl,fman-memac-mdio";
  5861. + reg = <0x0 0x8B97000 0x0 0x1000>;
  5862. + device_type = "mdio";
  5863. + little-endian; /* force the driver in LE mode */
  5864. +
  5865. + #address-cells = <1>;
  5866. + #size-cells = <0>;
  5867. + };
  5868. +
  5869. + ifc: ifc@2240000 {
  5870. + compatible = "fsl,ifc", "simple-bus";
  5871. + reg = <0x0 0x2240000 0x0 0x20000>;
  5872. + interrupts = <0 21 IRQ_TYPE_LEVEL_HIGH>;
  5873. + little-endian;
  5874. + #address-cells = <2>;
  5875. + #size-cells = <1>;
  5876. +
  5877. + };
  5878. +
  5879. + ftm0: ftm0@2800000 {
  5880. + compatible = "fsl,ls1088a-ftm";
  5881. + reg = <0x0 0x2800000 0x0 0x10000>,
  5882. + <0x0 0x1e34050 0x0 0x4>;
  5883. + interrupts = <0 44 4>;
  5884. + reg-names = "ftm", "FlexTimer1";
  5885. + };
  5886. +
  5887. + i2c0: i2c@2000000 {
  5888. + compatible = "fsl,vf610-i2c";
  5889. + #address-cells = <1>;
  5890. + #size-cells = <0>;
  5891. + reg = <0x0 0x2000000 0x0 0x10000>;
  5892. + interrupts = <0 34 IRQ_TYPE_LEVEL_HIGH>;
  5893. + clocks = <&clockgen 4 7>;
  5894. + status = "disabled";
  5895. + };
  5896. +
  5897. + i2c1: i2c@2010000 {
  5898. + compatible = "fsl,vf610-i2c";
  5899. + #address-cells = <1>;
  5900. + #size-cells = <0>;
  5901. + reg = <0x0 0x2010000 0x0 0x10000>;
  5902. + interrupts = <0 34 IRQ_TYPE_LEVEL_HIGH>;
  5903. + clocks = <&clockgen 4 7>;
  5904. + status = "disabled";
  5905. + };
  5906. +
  5907. + i2c2: i2c@2020000 {
  5908. + compatible = "fsl,vf610-i2c";
  5909. + #address-cells = <1>;
  5910. + #size-cells = <0>;
  5911. + reg = <0x0 0x2020000 0x0 0x10000>;
  5912. + interrupts = <0 35 IRQ_TYPE_LEVEL_HIGH>;
  5913. + clocks = <&clockgen 4 7>;
  5914. + status = "disabled";
  5915. + };
  5916. +
  5917. + i2c3: i2c@2030000 {
  5918. + compatible = "fsl,vf610-i2c";
  5919. + #address-cells = <1>;
  5920. + #size-cells = <0>;
  5921. + reg = <0x0 0x2030000 0x0 0x10000>;
  5922. + interrupts = <0 35 IRQ_TYPE_LEVEL_HIGH>;
  5923. + clocks = <&clockgen 4 7>;
  5924. + status = "disabled";
  5925. + };
  5926. +
  5927. + qspi: quadspi@20c0000 {
  5928. + compatible = "fsl,ls2080a-qspi", "fsl,ls1088a-qspi";
  5929. + #address-cells = <1>;
  5930. + #size-cells = <0>;
  5931. + reg = <0x0 0x20c0000 0x0 0x10000>,
  5932. + <0x0 0x20000000 0x0 0x10000000>;
  5933. + reg-names = "QuadSPI", "QuadSPI-memory";
  5934. + interrupts = <0 25 0x4>; /* Level high type */
  5935. + clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  5936. + clock-names = "qspi_en", "qspi";
  5937. + fsl,qspi-has-second-chip;
  5938. + };
  5939. +
  5940. + esdhc: esdhc@2140000 {
  5941. + compatible = "fsl,ls1088a-esdhc", "fsl,esdhc";
  5942. + reg = <0x0 0x2140000 0x0 0x10000>;
  5943. + interrupts = <0 28 0x4>; /* Level high type */
  5944. + clock-frequency = <0>;
  5945. + voltage-ranges = <1800 1800 3300 3300>;
  5946. + sdhci,auto-cmd12;
  5947. + little-endian;
  5948. + bus-width = <4>;
  5949. + status = "disabled";
  5950. + };
  5951. +
  5952. + usb0: usb3@3100000 {
  5953. + compatible = "snps,dwc3";
  5954. + reg = <0x0 0x3100000 0x0 0x10000>;
  5955. + interrupts = <0 80 0x4>; /* Level high type */
  5956. + dr_mode = "host";
  5957. + configure-gfladj;
  5958. + snps,dis_rxdet_inp3_quirk;
  5959. + };
  5960. +
  5961. + usb1: usb3@3110000 {
  5962. + compatible = "snps,dwc3";
  5963. + reg = <0x0 0x3110000 0x0 0x10000>;
  5964. + interrupts = <0 81 0x4>; /* Level high type */
  5965. + dr_mode = "host";
  5966. + configure-gfladj;
  5967. + snps,dis_rxdet_inp3_quirk;
  5968. + };
  5969. +
  5970. + sata: sata@3200000 {
  5971. + compatible = "fsl,ls1088a-ahci";
  5972. + reg = <0x0 0x3200000 0x0 0x10000>,
  5973. + <0x7 0x100520 0x0 0x4>;
  5974. + reg-names = "ahci", "sata-ecc";
  5975. + interrupts = <0 133 IRQ_TYPE_LEVEL_HIGH>;
  5976. + clocks = <&clockgen 4 3>;
  5977. + dma-coherent;
  5978. + status = "disabled";
  5979. + };
  5980. +
  5981. + pcie@3400000 {
  5982. + compatible = "fsl,ls2088a-pcie", "fsl,ls1088a-pcie",
  5983. + "snps,dw-pcie";
  5984. + reg = <0x00 0x03400000 0x0 0x00100000 /* controller registers */
  5985. + 0x20 0x00000000 0x0 0x00002000>; /* configuration space */
  5986. + reg-names = "regs", "config";
  5987. + interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>; /* aer interrupt */
  5988. + interrupt-names = "aer";
  5989. + #address-cells = <3>;
  5990. + #size-cells = <2>;
  5991. + device_type = "pci";
  5992. + dma-coherent;
  5993. + num-lanes = <4>;
  5994. + bus-range = <0x0 0xff>;
  5995. + ranges = <0x81000000 0x0 0x00000000 0x20 0x00010000 0x0 0x00010000 /* downstream I/O */
  5996. + 0x82000000 0x0 0x40000000 0x20 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
  5997. + msi-parent = <&its>;
  5998. + iommu-map = <0 &smmu 0 1>; /* This is fixed-up by u-boot */
  5999. + #interrupt-cells = <1>;
  6000. + interrupt-map-mask = <0 0 0 7>;
  6001. + interrupt-map = <0000 0 0 1 &gic 0 0 0 109 IRQ_TYPE_LEVEL_HIGH>,
  6002. + <0000 0 0 2 &gic 0 0 0 110 IRQ_TYPE_LEVEL_HIGH>,
  6003. + <0000 0 0 3 &gic 0 0 0 111 IRQ_TYPE_LEVEL_HIGH>,
  6004. + <0000 0 0 4 &gic 0 0 0 112 IRQ_TYPE_LEVEL_HIGH>;
  6005. + };
  6006. +
  6007. + pcie@3500000 {
  6008. + compatible = "fsl,ls2088a-pcie", "fsl,ls1088a-pcie",
  6009. + "snps,dw-pcie";
  6010. + reg = <0x00 0x03500000 0x0 0x00100000 /* controller registers */
  6011. + 0x28 0x00000000 0x0 0x00002000>; /* configuration space */
  6012. + reg-names = "regs", "config";
  6013. + interrupts = <0 113 IRQ_TYPE_LEVEL_HIGH>; /* aer interrupt */
  6014. + interrupt-names = "aer";
  6015. + #address-cells = <3>;
  6016. + #size-cells = <2>;
  6017. + device_type = "pci";
  6018. + dma-coherent;
  6019. + num-lanes = <4>;
  6020. + bus-range = <0x0 0xff>;
  6021. + ranges = <0x81000000 0x0 0x00000000 0x28 0x00010000 0x0 0x00010000 /* downstream I/O */
  6022. + 0x82000000 0x0 0x40000000 0x28 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
  6023. + msi-parent = <&its>;
  6024. + iommu-map = <0 &smmu 0 1>; /* This is fixed-up by u-boot */
  6025. + #interrupt-cells = <1>;
  6026. + interrupt-map-mask = <0 0 0 7>;
  6027. + interrupt-map = <0000 0 0 1 &gic 0 0 0 114 IRQ_TYPE_LEVEL_HIGH>,
  6028. + <0000 0 0 2 &gic 0 0 0 115 IRQ_TYPE_LEVEL_HIGH>,
  6029. + <0000 0 0 3 &gic 0 0 0 116 IRQ_TYPE_LEVEL_HIGH>,
  6030. + <0000 0 0 4 &gic 0 0 0 117 IRQ_TYPE_LEVEL_HIGH>;
  6031. + };
  6032. +
  6033. + pcie@3600000 {
  6034. + compatible = "fsl,ls2088a-pcie", "fsl,ls1088a-pcie",
  6035. + "snps,dw-pcie";
  6036. + reg = <0x00 0x03600000 0x0 0x00100000 /* controller registers */
  6037. + 0x30 0x00000000 0x0 0x00002000>; /* configuration space */
  6038. + reg-names = "regs", "config";
  6039. + interrupts = <0 118 IRQ_TYPE_LEVEL_HIGH>; /* aer interrupt */
  6040. + interrupt-names = "aer";
  6041. + #address-cells = <3>;
  6042. + #size-cells = <2>;
  6043. + device_type = "pci";
  6044. + dma-coherent;
  6045. + num-lanes = <8>;
  6046. + bus-range = <0x0 0xff>;
  6047. + ranges = <0x81000000 0x0 0x00000000 0x30 0x00010000 0x0 0x00010000 /* downstream I/O */
  6048. + 0x82000000 0x0 0x40000000 0x30 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
  6049. + msi-parent = <&its>;
  6050. + iommu-map = <0 &smmu 0 1>; /* This is fixed-up by u-boot */
  6051. + #interrupt-cells = <1>;
  6052. + interrupt-map-mask = <0 0 0 7>;
  6053. + interrupt-map = <0000 0 0 1 &gic 0 0 0 119 IRQ_TYPE_LEVEL_HIGH>,
  6054. + <0000 0 0 2 &gic 0 0 0 120 IRQ_TYPE_LEVEL_HIGH>,
  6055. + <0000 0 0 3 &gic 0 0 0 121 IRQ_TYPE_LEVEL_HIGH>,
  6056. + <0000 0 0 4 &gic 0 0 0 122 IRQ_TYPE_LEVEL_HIGH>;
  6057. + };
  6058. +
  6059. + smmu: iommu@5000000 {
  6060. + compatible = "arm,mmu-500";
  6061. + reg = <0 0x5000000 0 0x800000>;
  6062. + #global-interrupts = <12>;
  6063. + #iommu-cells = <1>;
  6064. + stream-match-mask = <0x7C00>;
  6065. + interrupts = <0 13 4>, /* global secure fault */
  6066. + <0 14 4>, /* combined secure interrupt */
  6067. + <0 15 4>, /* global non-secure fault */
  6068. + <0 16 4>, /* combined non-secure interrupt */
  6069. + /* performance counter interrupts 0-7 */
  6070. + <0 211 4>,
  6071. + <0 212 4>,
  6072. + <0 213 4>,
  6073. + <0 214 4>,
  6074. + <0 215 4>,
  6075. + <0 216 4>,
  6076. + <0 217 4>,
  6077. + <0 218 4>,
  6078. + /* per context interrupt, 64 interrupts */
  6079. + <0 146 4>,
  6080. + <0 147 4>,
  6081. + <0 148 4>,
  6082. + <0 149 4>,
  6083. + <0 150 4>,
  6084. + <0 151 4>,
  6085. + <0 152 4>,
  6086. + <0 153 4>,
  6087. + <0 154 4>,
  6088. + <0 155 4>,
  6089. + <0 156 4>,
  6090. + <0 157 4>,
  6091. + <0 158 4>,
  6092. + <0 159 4>,
  6093. + <0 160 4>,
  6094. + <0 161 4>,
  6095. + <0 162 4>,
  6096. + <0 163 4>,
  6097. + <0 164 4>,
  6098. + <0 165 4>,
  6099. + <0 166 4>,
  6100. + <0 167 4>,
  6101. + <0 168 4>,
  6102. + <0 169 4>,
  6103. + <0 170 4>,
  6104. + <0 171 4>,
  6105. + <0 172 4>,
  6106. + <0 173 4>,
  6107. + <0 174 4>,
  6108. + <0 175 4>,
  6109. + <0 176 4>,
  6110. + <0 177 4>,
  6111. + <0 178 4>,
  6112. + <0 179 4>,
  6113. + <0 180 4>,
  6114. + <0 181 4>,
  6115. + <0 182 4>,
  6116. + <0 183 4>,
  6117. + <0 184 4>,
  6118. + <0 185 4>,
  6119. + <0 186 4>,
  6120. + <0 187 4>,
  6121. + <0 188 4>,
  6122. + <0 189 4>,
  6123. + <0 190 4>,
  6124. + <0 191 4>,
  6125. + <0 192 4>,
  6126. + <0 193 4>,
  6127. + <0 194 4>,
  6128. + <0 195 4>,
  6129. + <0 196 4>,
  6130. + <0 197 4>,
  6131. + <0 198 4>,
  6132. + <0 199 4>,
  6133. + <0 200 4>,
  6134. + <0 201 4>,
  6135. + <0 202 4>,
  6136. + <0 203 4>,
  6137. + <0 204 4>,
  6138. + <0 205 4>,
  6139. + <0 206 4>,
  6140. + <0 207 4>,
  6141. + <0 208 4>,
  6142. + <0 209 4>;
  6143. + };
  6144. +
  6145. + crypto: crypto@8000000 {
  6146. + compatible = "fsl,sec-v5.0", "fsl,sec-v4.0";
  6147. + fsl,sec-era = <8>;
  6148. + #address-cells = <1>;
  6149. + #size-cells = <1>;
  6150. + ranges = <0x0 0x00 0x8000000 0x100000>;
  6151. + reg = <0x00 0x8000000 0x0 0x100000>;
  6152. + interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>;
  6153. + dma-coherent;
  6154. +
  6155. + sec_jr0: jr@10000 {
  6156. + compatible = "fsl,sec-v5.0-job-ring",
  6157. + "fsl,sec-v4.0-job-ring";
  6158. + reg = <0x10000 0x10000>;
  6159. + interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
  6160. + };
  6161. +
  6162. + sec_jr1: jr@20000 {
  6163. + compatible = "fsl,sec-v5.0-job-ring",
  6164. + "fsl,sec-v4.0-job-ring";
  6165. + reg = <0x20000 0x10000>;
  6166. + interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
  6167. + };
  6168. +
  6169. + sec_jr2: jr@30000 {
  6170. + compatible = "fsl,sec-v5.0-job-ring",
  6171. + "fsl,sec-v4.0-job-ring";
  6172. + reg = <0x30000 0x10000>;
  6173. + interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
  6174. + };
  6175. +
  6176. + sec_jr3: jr@40000 {
  6177. + compatible = "fsl,sec-v5.0-job-ring",
  6178. + "fsl,sec-v4.0-job-ring";
  6179. + reg = <0x40000 0x10000>;
  6180. + interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
  6181. + };
  6182. + };
  6183. + };
  6184. +
  6185. + firmware {
  6186. + optee {
  6187. + compatible = "linaro,optee-tz";
  6188. + method = "smc";
  6189. + };
  6190. + };
  6191. +
  6192. +};
  6193. --- a/arch/arm64/boot/dts/freescale/fsl-ls2080a-qds.dts
  6194. +++ b/arch/arm64/boot/dts/freescale/fsl-ls2080a-qds.dts
  6195. @@ -1,8 +1,10 @@
  6196. /*
  6197. * Device Tree file for Freescale LS2080a QDS Board.
  6198. *
  6199. - * Copyright (C) 2015, Freescale Semiconductor
  6200. + * Copyright 2015-2016 Freescale Semiconductor, Inc.
  6201. + * Copyright 2017 NXP
  6202. *
  6203. + * Abhimanyu Saini <[email protected]>
  6204. * Bhupesh Sharma <[email protected]>
  6205. *
  6206. * This file is dual-licensed: you can use it either under the terms
  6207. @@ -46,169 +48,76 @@
  6208. /dts-v1/;
  6209. -/include/ "fsl-ls2080a.dtsi"
  6210. +#include "fsl-ls2080a.dtsi"
  6211. +#include "fsl-ls208xa-qds.dtsi"
  6212. / {
  6213. model = "Freescale Layerscape 2080a QDS Board";
  6214. compatible = "fsl,ls2080a-qds", "fsl,ls2080a";
  6215. - aliases {
  6216. - serial0 = &serial0;
  6217. - serial1 = &serial1;
  6218. - };
  6219. -
  6220. chosen {
  6221. stdout-path = "serial0:115200n8";
  6222. };
  6223. };
  6224. -&esdhc {
  6225. - status = "okay";
  6226. -};
  6227. -
  6228. &ifc {
  6229. - status = "okay";
  6230. - #address-cells = <2>;
  6231. - #size-cells = <1>;
  6232. - ranges = <0x0 0x0 0x5 0x80000000 0x08000000
  6233. - 0x2 0x0 0x5 0x30000000 0x00010000
  6234. - 0x3 0x0 0x5 0x20000000 0x00010000>;
  6235. -
  6236. - nor@0,0 {
  6237. + boardctrl: board-control@3,0 {
  6238. #address-cells = <1>;
  6239. #size-cells = <1>;
  6240. - compatible = "cfi-flash";
  6241. - reg = <0x0 0x0 0x8000000>;
  6242. - bank-width = <2>;
  6243. - device-width = <1>;
  6244. - };
  6245. + compatible = "fsl,tetra-fpga", "fsl,fpga-qixis", "simple-bus";
  6246. + reg = <3 0 0x300>; /* TODO check address */
  6247. + ranges = <0 3 0 0x300>;
  6248. - nand@2,0 {
  6249. - compatible = "fsl,ifc-nand";
  6250. - reg = <0x2 0x0 0x10000>;
  6251. - };
  6252. + mdio_mux_emi1 {
  6253. + compatible = "mdio-mux-mmioreg", "mdio-mux";
  6254. + mdio-parent-bus = <&emdio1>;
  6255. + reg = <0x54 1>; /* BRDCFG4 */
  6256. + mux-mask = <0xe0>; /* EMI1_MDIO */
  6257. - cpld@3,0 {
  6258. - reg = <0x3 0x0 0x10000>;
  6259. - compatible = "fsl,ls2080aqds-fpga", "fsl,fpga-qixis";
  6260. - };
  6261. -};
  6262. -
  6263. -&i2c0 {
  6264. - status = "okay";
  6265. - pca9547@77 {
  6266. - compatible = "nxp,pca9547";
  6267. - reg = <0x77>;
  6268. - #address-cells = <1>;
  6269. - #size-cells = <0>;
  6270. - i2c@0 {
  6271. - #address-cells = <1>;
  6272. + #address-cells=<1>;
  6273. #size-cells = <0>;
  6274. - reg = <0x00>;
  6275. - rtc@68 {
  6276. - compatible = "dallas,ds3232";
  6277. - reg = <0x68>;
  6278. - };
  6279. - };
  6280. - i2c@2 {
  6281. - #address-cells = <1>;
  6282. - #size-cells = <0>;
  6283. - reg = <0x02>;
  6284. -
  6285. - ina220@40 {
  6286. - compatible = "ti,ina220";
  6287. - reg = <0x40>;
  6288. - shunt-resistor = <500>;
  6289. - };
  6290. -
  6291. - ina220@41 {
  6292. - compatible = "ti,ina220";
  6293. - reg = <0x41>;
  6294. - shunt-resistor = <1000>;
  6295. - };
  6296. - };
  6297. -
  6298. - i2c@3 {
  6299. - #address-cells = <1>;
  6300. - #size-cells = <0>;
  6301. - reg = <0x3>;
  6302. -
  6303. - adt7481@4c {
  6304. - compatible = "adi,adt7461";
  6305. - reg = <0x4c>;
  6306. + /* Child MDIO buses, one for each riser card:
  6307. + * reg = 0x0, 0x20, 0x40, 0x60, 0x80, 0xa0.
  6308. + * VSC8234 PHYs on the riser cards.
  6309. + */
  6310. +
  6311. + mdio_mux3: mdio@60 {
  6312. + reg = <0x60>;
  6313. + #address-cells = <1>;
  6314. + #size-cells = <0>;
  6315. +
  6316. + mdio0_phy12: mdio_phy0@1c {
  6317. + reg = <0x1c>;
  6318. + phy-connection-type = "sgmii";
  6319. + };
  6320. + mdio0_phy13: mdio_phy1@1d {
  6321. + reg = <0x1d>;
  6322. + phy-connection-type = "sgmii";
  6323. + };
  6324. + mdio0_phy14: mdio_phy2@1e {
  6325. + reg = <0x1e>;
  6326. + phy-connection-type = "sgmii";
  6327. + };
  6328. + mdio0_phy15: mdio_phy3@1f {
  6329. + reg = <0x1f>;
  6330. + phy-connection-type = "sgmii";
  6331. + };
  6332. };
  6333. };
  6334. };
  6335. };
  6336. -&i2c1 {
  6337. - status = "disabled";
  6338. -};
  6339. -
  6340. -&i2c2 {
  6341. - status = "disabled";
  6342. -};
  6343. -
  6344. -&i2c3 {
  6345. - status = "disabled";
  6346. -};
  6347. -
  6348. -&dspi {
  6349. - status = "okay";
  6350. - dflash0: n25q128a {
  6351. - #address-cells = <1>;
  6352. - #size-cells = <1>;
  6353. - compatible = "st,m25p80";
  6354. - spi-max-frequency = <3000000>;
  6355. - reg = <0>;
  6356. - };
  6357. - dflash1: sst25wf040b {
  6358. - #address-cells = <1>;
  6359. - #size-cells = <1>;
  6360. - compatible = "st,m25p80";
  6361. - spi-max-frequency = <3000000>;
  6362. - reg = <1>;
  6363. - };
  6364. - dflash2: en25s64 {
  6365. - #address-cells = <1>;
  6366. - #size-cells = <1>;
  6367. - compatible = "st,m25p80";
  6368. - spi-max-frequency = <3000000>;
  6369. - reg = <2>;
  6370. - };
  6371. -};
  6372. -
  6373. -&qspi {
  6374. - status = "okay";
  6375. - flash0: s25fl256s1@0 {
  6376. - #address-cells = <1>;
  6377. - #size-cells = <1>;
  6378. - compatible = "st,m25p80";
  6379. - spi-max-frequency = <20000000>;
  6380. - reg = <0>;
  6381. - };
  6382. - flash2: s25fl256s1@2 {
  6383. - #address-cells = <1>;
  6384. - #size-cells = <1>;
  6385. - compatible = "st,m25p80";
  6386. - spi-max-frequency = <20000000>;
  6387. - reg = <0>;
  6388. - };
  6389. -};
  6390. -
  6391. -&sata0 {
  6392. - status = "okay";
  6393. +/* Update DPMAC connections to external PHYs, under SerDes 0x2a_0x49. */
  6394. +&dpmac9 {
  6395. + phy-handle = <&mdio0_phy12>;
  6396. };
  6397. -
  6398. -&sata1 {
  6399. - status = "okay";
  6400. +&dpmac10 {
  6401. + phy-handle = <&mdio0_phy13>;
  6402. };
  6403. -
  6404. -&usb0 {
  6405. - status = "okay";
  6406. +&dpmac11 {
  6407. + phy-handle = <&mdio0_phy14>;
  6408. };
  6409. -
  6410. -&usb1 {
  6411. - status = "okay";
  6412. +&dpmac12 {
  6413. + phy-handle = <&mdio0_phy15>;
  6414. };
  6415. --- a/arch/arm64/boot/dts/freescale/fsl-ls2080a-rdb.dts
  6416. +++ b/arch/arm64/boot/dts/freescale/fsl-ls2080a-rdb.dts
  6417. @@ -1,8 +1,10 @@
  6418. /*
  6419. * Device Tree file for Freescale LS2080a RDB Board.
  6420. *
  6421. - * Copyright (C) 2015, Freescale Semiconductor
  6422. + * Copyright 2016 Freescale Semiconductor, Inc.
  6423. + * Copyright 2017 NXP
  6424. *
  6425. + * Abhimanyu Saini <[email protected]>
  6426. * Bhupesh Sharma <[email protected]>
  6427. *
  6428. * This file is dual-licensed: you can use it either under the terms
  6429. @@ -46,125 +48,94 @@
  6430. /dts-v1/;
  6431. -/include/ "fsl-ls2080a.dtsi"
  6432. +#include "fsl-ls2080a.dtsi"
  6433. +#include "fsl-ls208xa-rdb.dtsi"
  6434. / {
  6435. model = "Freescale Layerscape 2080a RDB Board";
  6436. compatible = "fsl,ls2080a-rdb", "fsl,ls2080a";
  6437. - aliases {
  6438. - serial0 = &serial0;
  6439. - serial1 = &serial1;
  6440. - };
  6441. -
  6442. chosen {
  6443. stdout-path = "serial1:115200n8";
  6444. };
  6445. };
  6446. -&esdhc {
  6447. - status = "okay";
  6448. -};
  6449. -
  6450. -&ifc {
  6451. - status = "okay";
  6452. - #address-cells = <2>;
  6453. - #size-cells = <1>;
  6454. - ranges = <0x0 0x0 0x5 0x80000000 0x08000000
  6455. - 0x2 0x0 0x5 0x30000000 0x00010000
  6456. - 0x3 0x0 0x5 0x20000000 0x00010000>;
  6457. -
  6458. - nor@0,0 {
  6459. - #address-cells = <1>;
  6460. - #size-cells = <1>;
  6461. - compatible = "cfi-flash";
  6462. - reg = <0x0 0x0 0x8000000>;
  6463. - bank-width = <2>;
  6464. - device-width = <1>;
  6465. - };
  6466. -
  6467. - nand@2,0 {
  6468. - compatible = "fsl,ifc-nand";
  6469. - reg = <0x2 0x0 0x10000>;
  6470. - };
  6471. -
  6472. - cpld@3,0 {
  6473. - reg = <0x3 0x0 0x10000>;
  6474. - compatible = "fsl,ls2080aqds-fpga", "fsl,fpga-qixis";
  6475. - };
  6476. -
  6477. -};
  6478. -
  6479. -&i2c0 {
  6480. - status = "okay";
  6481. - pca9547@75 {
  6482. - compatible = "nxp,pca9547";
  6483. - reg = <0x75>;
  6484. - #address-cells = <1>;
  6485. - #size-cells = <0>;
  6486. - status = "disabled";
  6487. - i2c@1 {
  6488. - #address-cells = <1>;
  6489. - #size-cells = <0>;
  6490. - reg = <0x01>;
  6491. - rtc@68 {
  6492. - compatible = "dallas,ds3232";
  6493. - reg = <0x68>;
  6494. - };
  6495. - };
  6496. -
  6497. - i2c@3 {
  6498. - #address-cells = <1>;
  6499. - #size-cells = <0>;
  6500. - reg = <0x3>;
  6501. -
  6502. - adt7481@4c {
  6503. - compatible = "adi,adt7461";
  6504. - reg = <0x4c>;
  6505. - };
  6506. - };
  6507. - };
  6508. -};
  6509. -
  6510. -&i2c1 {
  6511. - status = "disabled";
  6512. -};
  6513. -
  6514. -&i2c2 {
  6515. - status = "disabled";
  6516. -};
  6517. -
  6518. -&i2c3 {
  6519. +&emdio1 {
  6520. status = "disabled";
  6521. + /* CS4340 PHYs */
  6522. + mdio1_phy1: emdio1_phy@1 {
  6523. + reg = <0x10>;
  6524. + phy-connection-type = "xfi";
  6525. + };
  6526. + mdio1_phy2: emdio1_phy@2 {
  6527. + reg = <0x11>;
  6528. + phy-connection-type = "xfi";
  6529. + };
  6530. + mdio1_phy3: emdio1_phy@3 {
  6531. + reg = <0x12>;
  6532. + phy-connection-type = "xfi";
  6533. + };
  6534. + mdio1_phy4: emdio1_phy@4 {
  6535. + reg = <0x13>;
  6536. + phy-connection-type = "xfi";
  6537. + };
  6538. };
  6539. -&dspi {
  6540. - status = "okay";
  6541. - dflash0: n25q512a {
  6542. - #address-cells = <1>;
  6543. - #size-cells = <1>;
  6544. - compatible = "st,m25p80";
  6545. - spi-max-frequency = <3000000>;
  6546. - reg = <0>;
  6547. +&emdio2 {
  6548. + /* AQR405 PHYs */
  6549. + mdio2_phy1: emdio2_phy@1 {
  6550. + compatible = "ethernet-phy-ieee802.3-c45";
  6551. + interrupts = <0 1 0x4>; /* Level high type */
  6552. + reg = <0x0>;
  6553. + phy-connection-type = "xfi";
  6554. + };
  6555. + mdio2_phy2: emdio2_phy@2 {
  6556. + compatible = "ethernet-phy-ieee802.3-c45";
  6557. + interrupts = <0 2 0x4>; /* Level high type */
  6558. + reg = <0x1>;
  6559. + phy-connection-type = "xfi";
  6560. + };
  6561. + mdio2_phy3: emdio2_phy@3 {
  6562. + compatible = "ethernet-phy-ieee802.3-c45";
  6563. + interrupts = <0 4 0x4>; /* Level high type */
  6564. + reg = <0x2>;
  6565. + phy-connection-type = "xfi";
  6566. + };
  6567. + mdio2_phy4: emdio2_phy@4 {
  6568. + compatible = "ethernet-phy-ieee802.3-c45";
  6569. + interrupts = <0 5 0x4>; /* Level high type */
  6570. + reg = <0x3>;
  6571. + phy-connection-type = "xfi";
  6572. };
  6573. };
  6574. -&qspi {
  6575. - status = "disabled";
  6576. -};
  6577. +/* Update DPMAC connections to external PHYs, under the assumption of
  6578. + * SerDes 0x2a_0x41. This is currently the only SerDes supported on the board.
  6579. + */
  6580. +/* Leave Cortina nodes commented out until driver is integrated
  6581. + *&dpmac1 {
  6582. + * phy-handle = <&mdio1_phy1>;
  6583. + *};
  6584. + *&dpmac2 {
  6585. + * phy-handle = <&mdio1_phy2>;
  6586. + *};
  6587. + *&dpmac3 {
  6588. + * phy-handle = <&mdio1_phy3>;
  6589. + *};
  6590. + *&dpmac4 {
  6591. + * phy-handle = <&mdio1_phy4>;
  6592. + *};
  6593. + */
  6594. -&sata0 {
  6595. - status = "okay";
  6596. +&dpmac5 {
  6597. + phy-handle = <&mdio2_phy1>;
  6598. };
  6599. -
  6600. -&sata1 {
  6601. - status = "okay";
  6602. +&dpmac6 {
  6603. + phy-handle = <&mdio2_phy2>;
  6604. };
  6605. -
  6606. -&usb0 {
  6607. - status = "okay";
  6608. +&dpmac7 {
  6609. + phy-handle = <&mdio2_phy3>;
  6610. };
  6611. -
  6612. -&usb1 {
  6613. - status = "okay";
  6614. +&dpmac8 {
  6615. + phy-handle = <&mdio2_phy4>;
  6616. };
  6617. --- a/arch/arm64/boot/dts/freescale/fsl-ls2080a-simu.dts
  6618. +++ b/arch/arm64/boot/dts/freescale/fsl-ls2080a-simu.dts
  6619. @@ -1,7 +1,7 @@
  6620. /*
  6621. * Device Tree file for Freescale LS2080a software Simulator model
  6622. *
  6623. - * Copyright (C) 2014-2015, Freescale Semiconductor
  6624. + * Copyright 2014-2015 Freescale Semiconductor, Inc.
  6625. *
  6626. * Bhupesh Sharma <[email protected]>
  6627. *
  6628. @@ -46,17 +46,12 @@
  6629. /dts-v1/;
  6630. -/include/ "fsl-ls2080a.dtsi"
  6631. +#include "fsl-ls2080a.dtsi"
  6632. / {
  6633. model = "Freescale Layerscape 2080a software Simulator model";
  6634. compatible = "fsl,ls2080a-simu", "fsl,ls2080a";
  6635. - aliases {
  6636. - serial0 = &serial0;
  6637. - serial1 = &serial1;
  6638. - };
  6639. -
  6640. ethernet@2210000 {
  6641. compatible = "smsc,lan91c111";
  6642. reg = <0x0 0x2210000 0x0 0x100>;
  6643. --- a/arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi
  6644. +++ b/arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi
  6645. @@ -1,8 +1,9 @@
  6646. /*
  6647. * Device Tree Include file for Freescale Layerscape-2080A family SoC.
  6648. *
  6649. - * Copyright (C) 2014-2015, Freescale Semiconductor
  6650. + * Copyright 2014-2016 Freescale Semiconductor, Inc.
  6651. *
  6652. + * Abhimanyu Saini <[email protected]>
  6653. * Bhupesh Sharma <[email protected]>
  6654. *
  6655. * This file is dual-licensed: you can use it either under the terms
  6656. @@ -44,696 +45,132 @@
  6657. * OTHER DEALINGS IN THE SOFTWARE.
  6658. */
  6659. -/ {
  6660. - compatible = "fsl,ls2080a";
  6661. - interrupt-parent = <&gic>;
  6662. - #address-cells = <2>;
  6663. - #size-cells = <2>;
  6664. -
  6665. - cpus {
  6666. - #address-cells = <1>;
  6667. - #size-cells = <0>;
  6668. -
  6669. - /*
  6670. - * We expect the enable-method for cpu's to be "psci", but this
  6671. - * is dependent on the SoC FW, which will fill this in.
  6672. - *
  6673. - * Currently supported enable-method is psci v0.2
  6674. - */
  6675. -
  6676. - /* We have 4 clusters having 2 Cortex-A57 cores each */
  6677. - cpu@0 {
  6678. - device_type = "cpu";
  6679. - compatible = "arm,cortex-a57";
  6680. - reg = <0x0>;
  6681. - clocks = <&clockgen 1 0>;
  6682. - next-level-cache = <&cluster0_l2>;
  6683. - };
  6684. -
  6685. - cpu@1 {
  6686. - device_type = "cpu";
  6687. - compatible = "arm,cortex-a57";
  6688. - reg = <0x1>;
  6689. - clocks = <&clockgen 1 0>;
  6690. - next-level-cache = <&cluster0_l2>;
  6691. - };
  6692. -
  6693. - cpu@100 {
  6694. - device_type = "cpu";
  6695. - compatible = "arm,cortex-a57";
  6696. - reg = <0x100>;
  6697. - clocks = <&clockgen 1 1>;
  6698. - next-level-cache = <&cluster1_l2>;
  6699. - };
  6700. -
  6701. - cpu@101 {
  6702. - device_type = "cpu";
  6703. - compatible = "arm,cortex-a57";
  6704. - reg = <0x101>;
  6705. - clocks = <&clockgen 1 1>;
  6706. - next-level-cache = <&cluster1_l2>;
  6707. - };
  6708. -
  6709. - cpu@200 {
  6710. - device_type = "cpu";
  6711. - compatible = "arm,cortex-a57";
  6712. - reg = <0x200>;
  6713. - clocks = <&clockgen 1 2>;
  6714. - next-level-cache = <&cluster2_l2>;
  6715. - };
  6716. -
  6717. - cpu@201 {
  6718. - device_type = "cpu";
  6719. - compatible = "arm,cortex-a57";
  6720. - reg = <0x201>;
  6721. - clocks = <&clockgen 1 2>;
  6722. - next-level-cache = <&cluster2_l2>;
  6723. - };
  6724. -
  6725. - cpu@300 {
  6726. - device_type = "cpu";
  6727. - compatible = "arm,cortex-a57";
  6728. - reg = <0x300>;
  6729. - clocks = <&clockgen 1 3>;
  6730. - next-level-cache = <&cluster3_l2>;
  6731. - };
  6732. -
  6733. - cpu@301 {
  6734. - device_type = "cpu";
  6735. - compatible = "arm,cortex-a57";
  6736. - reg = <0x301>;
  6737. - clocks = <&clockgen 1 3>;
  6738. - next-level-cache = <&cluster3_l2>;
  6739. - };
  6740. -
  6741. - cluster0_l2: l2-cache0 {
  6742. - compatible = "cache";
  6743. - };
  6744. -
  6745. - cluster1_l2: l2-cache1 {
  6746. - compatible = "cache";
  6747. - };
  6748. -
  6749. - cluster2_l2: l2-cache2 {
  6750. - compatible = "cache";
  6751. - };
  6752. -
  6753. - cluster3_l2: l2-cache3 {
  6754. - compatible = "cache";
  6755. - };
  6756. - };
  6757. -
  6758. - memory@80000000 {
  6759. - device_type = "memory";
  6760. - reg = <0x00000000 0x80000000 0 0x80000000>;
  6761. - /* DRAM space - 1, size : 2 GB DRAM */
  6762. - };
  6763. -
  6764. - sysclk: sysclk {
  6765. - compatible = "fixed-clock";
  6766. - #clock-cells = <0>;
  6767. - clock-frequency = <100000000>;
  6768. - clock-output-names = "sysclk";
  6769. - };
  6770. -
  6771. - gic: interrupt-controller@6000000 {
  6772. - compatible = "arm,gic-v3";
  6773. - reg = <0x0 0x06000000 0 0x10000>, /* GIC Dist */
  6774. - <0x0 0x06100000 0 0x100000>, /* GICR (RD_base + SGI_base) */
  6775. - <0x0 0x0c0c0000 0 0x2000>, /* GICC */
  6776. - <0x0 0x0c0d0000 0 0x1000>, /* GICH */
  6777. - <0x0 0x0c0e0000 0 0x20000>; /* GICV */
  6778. - #interrupt-cells = <3>;
  6779. - #address-cells = <2>;
  6780. - #size-cells = <2>;
  6781. - ranges;
  6782. - interrupt-controller;
  6783. - interrupts = <1 9 0x4>;
  6784. -
  6785. - its: gic-its@6020000 {
  6786. - compatible = "arm,gic-v3-its";
  6787. - msi-controller;
  6788. - reg = <0x0 0x6020000 0 0x20000>;
  6789. - };
  6790. - };
  6791. -
  6792. - rstcr: syscon@1e60000 {
  6793. - compatible = "fsl,ls2080a-rstcr", "syscon";
  6794. - reg = <0x0 0x1e60000 0x0 0x4>;
  6795. - };
  6796. -
  6797. - reboot {
  6798. - compatible ="syscon-reboot";
  6799. - regmap = <&rstcr>;
  6800. - offset = <0x0>;
  6801. - mask = <0x2>;
  6802. - };
  6803. -
  6804. - timer {
  6805. - compatible = "arm,armv8-timer";
  6806. - interrupts = <1 13 4>, /* Physical Secure PPI, active-low */
  6807. - <1 14 4>, /* Physical Non-Secure PPI, active-low */
  6808. - <1 11 4>, /* Virtual PPI, active-low */
  6809. - <1 10 4>; /* Hypervisor PPI, active-low */
  6810. - fsl,erratum-a008585;
  6811. - };
  6812. -
  6813. - pmu {
  6814. - compatible = "arm,armv8-pmuv3";
  6815. - interrupts = <1 7 0x8>; /* PMU PPI, Level low type */
  6816. - };
  6817. -
  6818. - soc {
  6819. - compatible = "simple-bus";
  6820. - #address-cells = <2>;
  6821. - #size-cells = <2>;
  6822. - ranges;
  6823. -
  6824. - clockgen: clocking@1300000 {
  6825. - compatible = "fsl,ls2080a-clockgen";
  6826. - reg = <0 0x1300000 0 0xa0000>;
  6827. - #clock-cells = <2>;
  6828. - clocks = <&sysclk>;
  6829. - };
  6830. -
  6831. - serial0: serial@21c0500 {
  6832. - compatible = "fsl,ns16550", "ns16550a";
  6833. - reg = <0x0 0x21c0500 0x0 0x100>;
  6834. - clocks = <&clockgen 4 3>;
  6835. - interrupts = <0 32 0x4>; /* Level high type */
  6836. - };
  6837. -
  6838. - serial1: serial@21c0600 {
  6839. - compatible = "fsl,ns16550", "ns16550a";
  6840. - reg = <0x0 0x21c0600 0x0 0x100>;
  6841. - clocks = <&clockgen 4 3>;
  6842. - interrupts = <0 32 0x4>; /* Level high type */
  6843. - };
  6844. -
  6845. - cluster1_core0_watchdog: wdt@c000000 {
  6846. - compatible = "arm,sp805-wdt", "arm,primecell";
  6847. - reg = <0x0 0xc000000 0x0 0x1000>;
  6848. - clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  6849. - clock-names = "apb_pclk", "wdog_clk";
  6850. - };
  6851. -
  6852. - cluster1_core1_watchdog: wdt@c010000 {
  6853. - compatible = "arm,sp805-wdt", "arm,primecell";
  6854. - reg = <0x0 0xc010000 0x0 0x1000>;
  6855. - clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  6856. - clock-names = "apb_pclk", "wdog_clk";
  6857. - };
  6858. -
  6859. - cluster2_core0_watchdog: wdt@c100000 {
  6860. - compatible = "arm,sp805-wdt", "arm,primecell";
  6861. - reg = <0x0 0xc100000 0x0 0x1000>;
  6862. - clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  6863. - clock-names = "apb_pclk", "wdog_clk";
  6864. - };
  6865. -
  6866. - cluster2_core1_watchdog: wdt@c110000 {
  6867. - compatible = "arm,sp805-wdt", "arm,primecell";
  6868. - reg = <0x0 0xc110000 0x0 0x1000>;
  6869. - clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  6870. - clock-names = "apb_pclk", "wdog_clk";
  6871. - };
  6872. -
  6873. - cluster3_core0_watchdog: wdt@c200000 {
  6874. - compatible = "arm,sp805-wdt", "arm,primecell";
  6875. - reg = <0x0 0xc200000 0x0 0x1000>;
  6876. - clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  6877. - clock-names = "apb_pclk", "wdog_clk";
  6878. - };
  6879. -
  6880. - cluster3_core1_watchdog: wdt@c210000 {
  6881. - compatible = "arm,sp805-wdt", "arm,primecell";
  6882. - reg = <0x0 0xc210000 0x0 0x1000>;
  6883. - clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  6884. - clock-names = "apb_pclk", "wdog_clk";
  6885. - };
  6886. -
  6887. - cluster4_core0_watchdog: wdt@c300000 {
  6888. - compatible = "arm,sp805-wdt", "arm,primecell";
  6889. - reg = <0x0 0xc300000 0x0 0x1000>;
  6890. - clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  6891. - clock-names = "apb_pclk", "wdog_clk";
  6892. - };
  6893. -
  6894. - cluster4_core1_watchdog: wdt@c310000 {
  6895. - compatible = "arm,sp805-wdt", "arm,primecell";
  6896. - reg = <0x0 0xc310000 0x0 0x1000>;
  6897. - clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  6898. - clock-names = "apb_pclk", "wdog_clk";
  6899. - };
  6900. -
  6901. - fsl_mc: fsl-mc@80c000000 {
  6902. - compatible = "fsl,qoriq-mc";
  6903. - reg = <0x00000008 0x0c000000 0 0x40>, /* MC portal base */
  6904. - <0x00000000 0x08340000 0 0x40000>; /* MC control reg */
  6905. - msi-parent = <&its>;
  6906. - #address-cells = <3>;
  6907. - #size-cells = <1>;
  6908. -
  6909. - /*
  6910. - * Region type 0x0 - MC portals
  6911. - * Region type 0x1 - QBMAN portals
  6912. - */
  6913. - ranges = <0x0 0x0 0x0 0x8 0x0c000000 0x4000000
  6914. - 0x1 0x0 0x0 0x8 0x18000000 0x8000000>;
  6915. -
  6916. - /*
  6917. - * Define the maximum number of MACs present on the SoC.
  6918. - */
  6919. - dpmacs {
  6920. - #address-cells = <1>;
  6921. - #size-cells = <0>;
  6922. -
  6923. - dpmac1: dpmac@1 {
  6924. - compatible = "fsl,qoriq-mc-dpmac";
  6925. - reg = <0x1>;
  6926. - };
  6927. -
  6928. - dpmac2: dpmac@2 {
  6929. - compatible = "fsl,qoriq-mc-dpmac";
  6930. - reg = <0x2>;
  6931. - };
  6932. -
  6933. - dpmac3: dpmac@3 {
  6934. - compatible = "fsl,qoriq-mc-dpmac";
  6935. - reg = <0x3>;
  6936. - };
  6937. -
  6938. - dpmac4: dpmac@4 {
  6939. - compatible = "fsl,qoriq-mc-dpmac";
  6940. - reg = <0x4>;
  6941. - };
  6942. -
  6943. - dpmac5: dpmac@5 {
  6944. - compatible = "fsl,qoriq-mc-dpmac";
  6945. - reg = <0x5>;
  6946. - };
  6947. -
  6948. - dpmac6: dpmac@6 {
  6949. - compatible = "fsl,qoriq-mc-dpmac";
  6950. - reg = <0x6>;
  6951. - };
  6952. -
  6953. - dpmac7: dpmac@7 {
  6954. - compatible = "fsl,qoriq-mc-dpmac";
  6955. - reg = <0x7>;
  6956. - };
  6957. -
  6958. - dpmac8: dpmac@8 {
  6959. - compatible = "fsl,qoriq-mc-dpmac";
  6960. - reg = <0x8>;
  6961. - };
  6962. -
  6963. - dpmac9: dpmac@9 {
  6964. - compatible = "fsl,qoriq-mc-dpmac";
  6965. - reg = <0x9>;
  6966. - };
  6967. -
  6968. - dpmac10: dpmac@a {
  6969. - compatible = "fsl,qoriq-mc-dpmac";
  6970. - reg = <0xa>;
  6971. - };
  6972. -
  6973. - dpmac11: dpmac@b {
  6974. - compatible = "fsl,qoriq-mc-dpmac";
  6975. - reg = <0xb>;
  6976. - };
  6977. -
  6978. - dpmac12: dpmac@c {
  6979. - compatible = "fsl,qoriq-mc-dpmac";
  6980. - reg = <0xc>;
  6981. - };
  6982. -
  6983. - dpmac13: dpmac@d {
  6984. - compatible = "fsl,qoriq-mc-dpmac";
  6985. - reg = <0xd>;
  6986. - };
  6987. -
  6988. - dpmac14: dpmac@e {
  6989. - compatible = "fsl,qoriq-mc-dpmac";
  6990. - reg = <0xe>;
  6991. - };
  6992. -
  6993. - dpmac15: dpmac@f {
  6994. - compatible = "fsl,qoriq-mc-dpmac";
  6995. - reg = <0xf>;
  6996. - };
  6997. -
  6998. - dpmac16: dpmac@10 {
  6999. - compatible = "fsl,qoriq-mc-dpmac";
  7000. - reg = <0x10>;
  7001. - };
  7002. - };
  7003. - };
  7004. -
  7005. - smmu: iommu@5000000 {
  7006. - compatible = "arm,mmu-500";
  7007. - reg = <0 0x5000000 0 0x800000>;
  7008. - #global-interrupts = <12>;
  7009. - interrupts = <0 13 4>, /* global secure fault */
  7010. - <0 14 4>, /* combined secure interrupt */
  7011. - <0 15 4>, /* global non-secure fault */
  7012. - <0 16 4>, /* combined non-secure interrupt */
  7013. - /* performance counter interrupts 0-7 */
  7014. - <0 211 4>, <0 212 4>,
  7015. - <0 213 4>, <0 214 4>,
  7016. - <0 215 4>, <0 216 4>,
  7017. - <0 217 4>, <0 218 4>,
  7018. - /* per context interrupt, 64 interrupts */
  7019. - <0 146 4>, <0 147 4>,
  7020. - <0 148 4>, <0 149 4>,
  7021. - <0 150 4>, <0 151 4>,
  7022. - <0 152 4>, <0 153 4>,
  7023. - <0 154 4>, <0 155 4>,
  7024. - <0 156 4>, <0 157 4>,
  7025. - <0 158 4>, <0 159 4>,
  7026. - <0 160 4>, <0 161 4>,
  7027. - <0 162 4>, <0 163 4>,
  7028. - <0 164 4>, <0 165 4>,
  7029. - <0 166 4>, <0 167 4>,
  7030. - <0 168 4>, <0 169 4>,
  7031. - <0 170 4>, <0 171 4>,
  7032. - <0 172 4>, <0 173 4>,
  7033. - <0 174 4>, <0 175 4>,
  7034. - <0 176 4>, <0 177 4>,
  7035. - <0 178 4>, <0 179 4>,
  7036. - <0 180 4>, <0 181 4>,
  7037. - <0 182 4>, <0 183 4>,
  7038. - <0 184 4>, <0 185 4>,
  7039. - <0 186 4>, <0 187 4>,
  7040. - <0 188 4>, <0 189 4>,
  7041. - <0 190 4>, <0 191 4>,
  7042. - <0 192 4>, <0 193 4>,
  7043. - <0 194 4>, <0 195 4>,
  7044. - <0 196 4>, <0 197 4>,
  7045. - <0 198 4>, <0 199 4>,
  7046. - <0 200 4>, <0 201 4>,
  7047. - <0 202 4>, <0 203 4>,
  7048. - <0 204 4>, <0 205 4>,
  7049. - <0 206 4>, <0 207 4>,
  7050. - <0 208 4>, <0 209 4>;
  7051. - mmu-masters = <&fsl_mc 0x300 0>;
  7052. - };
  7053. -
  7054. - dspi: dspi@2100000 {
  7055. - status = "disabled";
  7056. - compatible = "fsl,ls2080a-dspi", "fsl,ls2085a-dspi";
  7057. - #address-cells = <1>;
  7058. - #size-cells = <0>;
  7059. - reg = <0x0 0x2100000 0x0 0x10000>;
  7060. - interrupts = <0 26 0x4>; /* Level high type */
  7061. - clocks = <&clockgen 4 3>;
  7062. - clock-names = "dspi";
  7063. - spi-num-chipselects = <5>;
  7064. - bus-num = <0>;
  7065. - };
  7066. -
  7067. - esdhc: esdhc@2140000 {
  7068. - status = "disabled";
  7069. - compatible = "fsl,ls2080a-esdhc", "fsl,esdhc";
  7070. - reg = <0x0 0x2140000 0x0 0x10000>;
  7071. - interrupts = <0 28 0x4>; /* Level high type */
  7072. - clock-frequency = <0>; /* Updated by bootloader */
  7073. - voltage-ranges = <1800 1800 3300 3300>;
  7074. - sdhci,auto-cmd12;
  7075. - little-endian;
  7076. - bus-width = <4>;
  7077. - };
  7078. -
  7079. - gpio0: gpio@2300000 {
  7080. - compatible = "fsl,ls2080a-gpio", "fsl,qoriq-gpio";
  7081. - reg = <0x0 0x2300000 0x0 0x10000>;
  7082. - interrupts = <0 36 0x4>; /* Level high type */
  7083. - gpio-controller;
  7084. - little-endian;
  7085. - #gpio-cells = <2>;
  7086. - interrupt-controller;
  7087. - #interrupt-cells = <2>;
  7088. - };
  7089. -
  7090. - gpio1: gpio@2310000 {
  7091. - compatible = "fsl,ls2080a-gpio", "fsl,qoriq-gpio";
  7092. - reg = <0x0 0x2310000 0x0 0x10000>;
  7093. - interrupts = <0 36 0x4>; /* Level high type */
  7094. - gpio-controller;
  7095. - little-endian;
  7096. - #gpio-cells = <2>;
  7097. - interrupt-controller;
  7098. - #interrupt-cells = <2>;
  7099. - };
  7100. -
  7101. - gpio2: gpio@2320000 {
  7102. - compatible = "fsl,ls2080a-gpio", "fsl,qoriq-gpio";
  7103. - reg = <0x0 0x2320000 0x0 0x10000>;
  7104. - interrupts = <0 37 0x4>; /* Level high type */
  7105. - gpio-controller;
  7106. - little-endian;
  7107. - #gpio-cells = <2>;
  7108. - interrupt-controller;
  7109. - #interrupt-cells = <2>;
  7110. - };
  7111. -
  7112. - gpio3: gpio@2330000 {
  7113. - compatible = "fsl,ls2080a-gpio", "fsl,qoriq-gpio";
  7114. - reg = <0x0 0x2330000 0x0 0x10000>;
  7115. - interrupts = <0 37 0x4>; /* Level high type */
  7116. - gpio-controller;
  7117. - little-endian;
  7118. - #gpio-cells = <2>;
  7119. - interrupt-controller;
  7120. - #interrupt-cells = <2>;
  7121. - };
  7122. -
  7123. - i2c0: i2c@2000000 {
  7124. - status = "disabled";
  7125. - compatible = "fsl,vf610-i2c";
  7126. - #address-cells = <1>;
  7127. - #size-cells = <0>;
  7128. - reg = <0x0 0x2000000 0x0 0x10000>;
  7129. - interrupts = <0 34 0x4>; /* Level high type */
  7130. - clock-names = "i2c";
  7131. - clocks = <&clockgen 4 3>;
  7132. - };
  7133. -
  7134. - i2c1: i2c@2010000 {
  7135. - status = "disabled";
  7136. - compatible = "fsl,vf610-i2c";
  7137. - #address-cells = <1>;
  7138. - #size-cells = <0>;
  7139. - reg = <0x0 0x2010000 0x0 0x10000>;
  7140. - interrupts = <0 34 0x4>; /* Level high type */
  7141. - clock-names = "i2c";
  7142. - clocks = <&clockgen 4 3>;
  7143. - };
  7144. -
  7145. - i2c2: i2c@2020000 {
  7146. - status = "disabled";
  7147. - compatible = "fsl,vf610-i2c";
  7148. - #address-cells = <1>;
  7149. - #size-cells = <0>;
  7150. - reg = <0x0 0x2020000 0x0 0x10000>;
  7151. - interrupts = <0 35 0x4>; /* Level high type */
  7152. - clock-names = "i2c";
  7153. - clocks = <&clockgen 4 3>;
  7154. - };
  7155. -
  7156. - i2c3: i2c@2030000 {
  7157. - status = "disabled";
  7158. - compatible = "fsl,vf610-i2c";
  7159. - #address-cells = <1>;
  7160. - #size-cells = <0>;
  7161. - reg = <0x0 0x2030000 0x0 0x10000>;
  7162. - interrupts = <0 35 0x4>; /* Level high type */
  7163. - clock-names = "i2c";
  7164. - clocks = <&clockgen 4 3>;
  7165. - };
  7166. -
  7167. - ifc: ifc@2240000 {
  7168. - compatible = "fsl,ifc", "simple-bus";
  7169. - reg = <0x0 0x2240000 0x0 0x20000>;
  7170. - interrupts = <0 21 0x4>; /* Level high type */
  7171. - little-endian;
  7172. - #address-cells = <2>;
  7173. - #size-cells = <1>;
  7174. -
  7175. - ranges = <0 0 0x5 0x80000000 0x08000000
  7176. - 2 0 0x5 0x30000000 0x00010000
  7177. - 3 0 0x5 0x20000000 0x00010000>;
  7178. - };
  7179. -
  7180. - qspi: quadspi@20c0000 {
  7181. - status = "disabled";
  7182. - compatible = "fsl,ls2080a-qspi", "fsl,ls1021a-qspi";
  7183. - #address-cells = <1>;
  7184. - #size-cells = <0>;
  7185. - reg = <0x0 0x20c0000 0x0 0x10000>,
  7186. - <0x0 0x20000000 0x0 0x10000000>;
  7187. - reg-names = "QuadSPI", "QuadSPI-memory";
  7188. - interrupts = <0 25 0x4>; /* Level high type */
  7189. - clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  7190. - clock-names = "qspi_en", "qspi";
  7191. - };
  7192. -
  7193. - pcie@3400000 {
  7194. - compatible = "fsl,ls2080a-pcie", "fsl,ls2085a-pcie",
  7195. - "snps,dw-pcie";
  7196. - reg = <0x00 0x03400000 0x0 0x00100000 /* controller registers */
  7197. - 0x10 0x00000000 0x0 0x00002000>; /* configuration space */
  7198. - reg-names = "regs", "config";
  7199. - interrupts = <0 108 0x4>; /* Level high type */
  7200. - interrupt-names = "intr";
  7201. - #address-cells = <3>;
  7202. - #size-cells = <2>;
  7203. - device_type = "pci";
  7204. - dma-coherent;
  7205. - num-lanes = <4>;
  7206. - bus-range = <0x0 0xff>;
  7207. - ranges = <0x81000000 0x0 0x00000000 0x10 0x00010000 0x0 0x00010000 /* downstream I/O */
  7208. - 0x82000000 0x0 0x40000000 0x10 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
  7209. - msi-parent = <&its>;
  7210. - #interrupt-cells = <1>;
  7211. - interrupt-map-mask = <0 0 0 7>;
  7212. - interrupt-map = <0000 0 0 1 &gic 0 0 0 109 4>,
  7213. - <0000 0 0 2 &gic 0 0 0 110 4>,
  7214. - <0000 0 0 3 &gic 0 0 0 111 4>,
  7215. - <0000 0 0 4 &gic 0 0 0 112 4>;
  7216. - };
  7217. -
  7218. - pcie@3500000 {
  7219. - compatible = "fsl,ls2080a-pcie", "fsl,ls2085a-pcie",
  7220. - "snps,dw-pcie";
  7221. - reg = <0x00 0x03500000 0x0 0x00100000 /* controller registers */
  7222. - 0x12 0x00000000 0x0 0x00002000>; /* configuration space */
  7223. - reg-names = "regs", "config";
  7224. - interrupts = <0 113 0x4>; /* Level high type */
  7225. - interrupt-names = "intr";
  7226. - #address-cells = <3>;
  7227. - #size-cells = <2>;
  7228. - device_type = "pci";
  7229. - dma-coherent;
  7230. - num-lanes = <4>;
  7231. - bus-range = <0x0 0xff>;
  7232. - ranges = <0x81000000 0x0 0x00000000 0x12 0x00010000 0x0 0x00010000 /* downstream I/O */
  7233. - 0x82000000 0x0 0x40000000 0x12 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
  7234. - msi-parent = <&its>;
  7235. - #interrupt-cells = <1>;
  7236. - interrupt-map-mask = <0 0 0 7>;
  7237. - interrupt-map = <0000 0 0 1 &gic 0 0 0 114 4>,
  7238. - <0000 0 0 2 &gic 0 0 0 115 4>,
  7239. - <0000 0 0 3 &gic 0 0 0 116 4>,
  7240. - <0000 0 0 4 &gic 0 0 0 117 4>;
  7241. - };
  7242. -
  7243. - pcie@3600000 {
  7244. - compatible = "fsl,ls2080a-pcie", "fsl,ls2085a-pcie",
  7245. - "snps,dw-pcie";
  7246. - reg = <0x00 0x03600000 0x0 0x00100000 /* controller registers */
  7247. - 0x14 0x00000000 0x0 0x00002000>; /* configuration space */
  7248. - reg-names = "regs", "config";
  7249. - interrupts = <0 118 0x4>; /* Level high type */
  7250. - interrupt-names = "intr";
  7251. - #address-cells = <3>;
  7252. - #size-cells = <2>;
  7253. - device_type = "pci";
  7254. - dma-coherent;
  7255. - num-lanes = <8>;
  7256. - bus-range = <0x0 0xff>;
  7257. - ranges = <0x81000000 0x0 0x00000000 0x14 0x00010000 0x0 0x00010000 /* downstream I/O */
  7258. - 0x82000000 0x0 0x40000000 0x14 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
  7259. - msi-parent = <&its>;
  7260. - #interrupt-cells = <1>;
  7261. - interrupt-map-mask = <0 0 0 7>;
  7262. - interrupt-map = <0000 0 0 1 &gic 0 0 0 119 4>,
  7263. - <0000 0 0 2 &gic 0 0 0 120 4>,
  7264. - <0000 0 0 3 &gic 0 0 0 121 4>,
  7265. - <0000 0 0 4 &gic 0 0 0 122 4>;
  7266. - };
  7267. -
  7268. - pcie@3700000 {
  7269. - compatible = "fsl,ls2080a-pcie", "fsl,ls2085a-pcie",
  7270. - "snps,dw-pcie";
  7271. - reg = <0x00 0x03700000 0x0 0x00100000 /* controller registers */
  7272. - 0x16 0x00000000 0x0 0x00002000>; /* configuration space */
  7273. - reg-names = "regs", "config";
  7274. - interrupts = <0 123 0x4>; /* Level high type */
  7275. - interrupt-names = "intr";
  7276. - #address-cells = <3>;
  7277. - #size-cells = <2>;
  7278. - device_type = "pci";
  7279. - dma-coherent;
  7280. - num-lanes = <4>;
  7281. - bus-range = <0x0 0xff>;
  7282. - ranges = <0x81000000 0x0 0x00000000 0x16 0x00010000 0x0 0x00010000 /* downstream I/O */
  7283. - 0x82000000 0x0 0x40000000 0x16 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
  7284. - msi-parent = <&its>;
  7285. - #interrupt-cells = <1>;
  7286. - interrupt-map-mask = <0 0 0 7>;
  7287. - interrupt-map = <0000 0 0 1 &gic 0 0 0 124 4>,
  7288. - <0000 0 0 2 &gic 0 0 0 125 4>,
  7289. - <0000 0 0 3 &gic 0 0 0 126 4>,
  7290. - <0000 0 0 4 &gic 0 0 0 127 4>;
  7291. - };
  7292. -
  7293. - sata0: sata@3200000 {
  7294. - status = "disabled";
  7295. - compatible = "fsl,ls2080a-ahci";
  7296. - reg = <0x0 0x3200000 0x0 0x10000>;
  7297. - interrupts = <0 133 0x4>; /* Level high type */
  7298. - clocks = <&clockgen 4 3>;
  7299. - dma-coherent;
  7300. - };
  7301. -
  7302. - sata1: sata@3210000 {
  7303. - status = "disabled";
  7304. - compatible = "fsl,ls2080a-ahci";
  7305. - reg = <0x0 0x3210000 0x0 0x10000>;
  7306. - interrupts = <0 136 0x4>; /* Level high type */
  7307. - clocks = <&clockgen 4 3>;
  7308. - dma-coherent;
  7309. - };
  7310. -
  7311. - usb0: usb3@3100000 {
  7312. - status = "disabled";
  7313. - compatible = "snps,dwc3";
  7314. - reg = <0x0 0x3100000 0x0 0x10000>;
  7315. - interrupts = <0 80 0x4>; /* Level high type */
  7316. - dr_mode = "host";
  7317. - snps,quirk-frame-length-adjustment = <0x20>;
  7318. - snps,dis_rxdet_inp3_quirk;
  7319. - };
  7320. -
  7321. - usb1: usb3@3110000 {
  7322. - status = "disabled";
  7323. - compatible = "snps,dwc3";
  7324. - reg = <0x0 0x3110000 0x0 0x10000>;
  7325. - interrupts = <0 81 0x4>; /* Level high type */
  7326. - dr_mode = "host";
  7327. - snps,quirk-frame-length-adjustment = <0x20>;
  7328. - snps,dis_rxdet_inp3_quirk;
  7329. - };
  7330. -
  7331. - ccn@4000000 {
  7332. - compatible = "arm,ccn-504";
  7333. - reg = <0x0 0x04000000 0x0 0x01000000>;
  7334. - interrupts = <0 12 4>;
  7335. - };
  7336. - };
  7337. -
  7338. - ddr1: memory-controller@1080000 {
  7339. - compatible = "fsl,qoriq-memory-controller";
  7340. - reg = <0x0 0x1080000 0x0 0x1000>;
  7341. - interrupts = <0 17 0x4>;
  7342. - little-endian;
  7343. - };
  7344. -
  7345. - ddr2: memory-controller@1090000 {
  7346. - compatible = "fsl,qoriq-memory-controller";
  7347. - reg = <0x0 0x1090000 0x0 0x1000>;
  7348. - interrupts = <0 18 0x4>;
  7349. - little-endian;
  7350. +#include "fsl-ls208xa.dtsi"
  7351. +
  7352. +&cpu {
  7353. + cpu0: cpu@0 {
  7354. + device_type = "cpu";
  7355. + compatible = "arm,cortex-a57";
  7356. + reg = <0x0>;
  7357. + clocks = <&clockgen 1 0>;
  7358. + next-level-cache = <&cluster0_l2>;
  7359. + #cooling-cells = <2>;
  7360. + };
  7361. +
  7362. + cpu1: cpu@1 {
  7363. + device_type = "cpu";
  7364. + compatible = "arm,cortex-a57";
  7365. + reg = <0x1>;
  7366. + clocks = <&clockgen 1 0>;
  7367. + next-level-cache = <&cluster0_l2>;
  7368. + };
  7369. +
  7370. + cpu2: cpu@100 {
  7371. + device_type = "cpu";
  7372. + compatible = "arm,cortex-a57";
  7373. + reg = <0x100>;
  7374. + clocks = <&clockgen 1 1>;
  7375. + next-level-cache = <&cluster1_l2>;
  7376. + #cooling-cells = <2>;
  7377. + };
  7378. +
  7379. + cpu3: cpu@101 {
  7380. + device_type = "cpu";
  7381. + compatible = "arm,cortex-a57";
  7382. + reg = <0x101>;
  7383. + clocks = <&clockgen 1 1>;
  7384. + next-level-cache = <&cluster1_l2>;
  7385. + };
  7386. +
  7387. + cpu4: cpu@200 {
  7388. + device_type = "cpu";
  7389. + compatible = "arm,cortex-a57";
  7390. + reg = <0x200>;
  7391. + clocks = <&clockgen 1 2>;
  7392. + next-level-cache = <&cluster2_l2>;
  7393. + #cooling-cells = <2>;
  7394. + };
  7395. +
  7396. + cpu5: cpu@201 {
  7397. + device_type = "cpu";
  7398. + compatible = "arm,cortex-a57";
  7399. + reg = <0x201>;
  7400. + clocks = <&clockgen 1 2>;
  7401. + next-level-cache = <&cluster2_l2>;
  7402. + };
  7403. +
  7404. + cpu6: cpu@300 {
  7405. + device_type = "cpu";
  7406. + compatible = "arm,cortex-a57";
  7407. + reg = <0x300>;
  7408. + clocks = <&clockgen 1 3>;
  7409. + next-level-cache = <&cluster3_l2>;
  7410. + #cooling-cells = <2>;
  7411. + };
  7412. +
  7413. + cpu7: cpu@301 {
  7414. + device_type = "cpu";
  7415. + compatible = "arm,cortex-a57";
  7416. + reg = <0x301>;
  7417. + clocks = <&clockgen 1 3>;
  7418. + next-level-cache = <&cluster3_l2>;
  7419. };
  7420. +
  7421. + cluster0_l2: l2-cache0 {
  7422. + compatible = "cache";
  7423. + };
  7424. +
  7425. + cluster1_l2: l2-cache1 {
  7426. + compatible = "cache";
  7427. + };
  7428. +
  7429. + cluster2_l2: l2-cache2 {
  7430. + compatible = "cache";
  7431. + };
  7432. +
  7433. + cluster3_l2: l2-cache3 {
  7434. + compatible = "cache";
  7435. + };
  7436. +};
  7437. +
  7438. +&usb0 {
  7439. + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
  7440. + snps,dma-snooping;
  7441. +};
  7442. +
  7443. +&usb1 {
  7444. + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
  7445. + snps,dma-snooping;
  7446. +};
  7447. +
  7448. +&pcie1 {
  7449. + reg = <0x00 0x03400000 0x0 0x00100000 /* controller registers */
  7450. + 0x10 0x00000000 0x0 0x00002000>; /* configuration space */
  7451. +
  7452. + ranges = <0x81000000 0x0 0x00000000 0x10 0x00010000 0x0 0x00010000 /* downstream I/O */
  7453. + 0x82000000 0x0 0x40000000 0x10 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
  7454. +};
  7455. +
  7456. +&pcie2 {
  7457. + reg = <0x00 0x03500000 0x0 0x00100000 /* controller registers */
  7458. + 0x12 0x00000000 0x0 0x00002000>; /* configuration space */
  7459. +
  7460. + ranges = <0x81000000 0x0 0x00000000 0x12 0x00010000 0x0 0x00010000 /* downstream I/O */
  7461. + 0x82000000 0x0 0x40000000 0x12 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
  7462. +};
  7463. +
  7464. +&pcie3 {
  7465. + reg = <0x00 0x03600000 0x0 0x00100000 /* controller registers */
  7466. + 0x14 0x00000000 0x0 0x00002000>; /* configuration space */
  7467. +
  7468. + ranges = <0x81000000 0x0 0x00000000 0x14 0x00010000 0x0 0x00010000 /* downstream I/O */
  7469. + 0x82000000 0x0 0x40000000 0x14 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
  7470. +};
  7471. +
  7472. +&pcie4 {
  7473. + reg = <0x00 0x03700000 0x0 0x00100000 /* controller registers */
  7474. + 0x16 0x00000000 0x0 0x00002000>; /* configuration space */
  7475. +
  7476. + ranges = <0x81000000 0x0 0x00000000 0x16 0x00010000 0x0 0x00010000 /* downstream I/O */
  7477. + 0x82000000 0x0 0x40000000 0x16 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
  7478. };
  7479. --- /dev/null
  7480. +++ b/arch/arm64/boot/dts/freescale/fsl-ls2081a-rdb.dts
  7481. @@ -0,0 +1,161 @@
  7482. +/*
  7483. + * Device Tree file for NXP LS2081A RDB Board.
  7484. + *
  7485. + * Copyright 2017 NXP
  7486. + *
  7487. + * Priyanka Jain <[email protected]>
  7488. + *
  7489. + * This file is dual-licensed: you can use it either under the terms
  7490. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  7491. + * licensing only applies to this file, and not this project as a
  7492. + * whole.
  7493. + *
  7494. + * a) This library is free software; you can redistribute it and/or
  7495. + * modify it under the terms of the GNU General Public License as
  7496. + * published by the Free Software Foundation; either version 2 of the
  7497. + * License, or (at your option) any later version.
  7498. + *
  7499. + * This library is distributed in the hope that it will be useful,
  7500. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  7501. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  7502. + * GNU General Public License for more details.
  7503. + *
  7504. + * Or, alternatively,
  7505. + *
  7506. + * b) Permission is hereby granted, free of charge, to any person
  7507. + * obtaining a copy of this software and associated documentation
  7508. + * files (the "Software"), to deal in the Software without
  7509. + * restriction, including without limitation the rights to use,
  7510. + * copy, modify, merge, publish, distribute, sublicense, and/or
  7511. + * sell copies of the Software, and to permit persons to whom the
  7512. + * Software is furnished to do so, subject to the following
  7513. + * conditions:
  7514. + *
  7515. + * The above copyright notice and this permission notice shall be
  7516. + * included in all copies or substantial portions of the Software.
  7517. + *
  7518. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  7519. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  7520. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  7521. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  7522. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  7523. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  7524. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  7525. + * OTHER DEALINGS IN THE SOFTWARE.
  7526. + */
  7527. +
  7528. +/dts-v1/;
  7529. +
  7530. +#include "fsl-ls2088a.dtsi"
  7531. +
  7532. +/ {
  7533. + model = "NXP Layerscape 2081A RDB Board";
  7534. + compatible = "fsl,ls2081a-rdb", "fsl,ls2081a";
  7535. +
  7536. + aliases {
  7537. + serial0 = &serial0;
  7538. + serial1 = &serial1;
  7539. + };
  7540. +
  7541. + chosen {
  7542. + stdout-path = "serial1:115200n8";
  7543. + };
  7544. +};
  7545. +
  7546. +&esdhc {
  7547. + status = "okay";
  7548. +};
  7549. +
  7550. +&ifc {
  7551. + status = "disabled";
  7552. +};
  7553. +
  7554. +&i2c0 {
  7555. + status = "okay";
  7556. + pca9547@75 {
  7557. + compatible = "nxp,pca9547";
  7558. + reg = <0x75>;
  7559. + #address-cells = <1>;
  7560. + #size-cells = <0>;
  7561. + i2c@1 {
  7562. + #address-cells = <1>;
  7563. + #size-cells = <0>;
  7564. + reg = <0x01>;
  7565. + rtc@51 {
  7566. + compatible = "nxp,pcf2129";
  7567. + reg = <0x51>;
  7568. + };
  7569. + };
  7570. +
  7571. + i2c@2 {
  7572. + #address-cells = <1>;
  7573. + #size-cells = <0>;
  7574. + reg = <0x02>;
  7575. +
  7576. + ina220@40 {
  7577. + compatible = "ti,ina220";
  7578. + reg = <0x40>;
  7579. + shunt-resistor = <500>;
  7580. + };
  7581. + };
  7582. +
  7583. + i2c@3 {
  7584. + #address-cells = <1>;
  7585. + #size-cells = <0>;
  7586. + reg = <0x3>;
  7587. +
  7588. + adt7481@4c {
  7589. + compatible = "adi,adt7461";
  7590. + reg = <0x4c>;
  7591. + };
  7592. + };
  7593. + };
  7594. +};
  7595. +
  7596. +&dspi {
  7597. + status = "okay";
  7598. + dflash0: n25q512a {
  7599. + #address-cells = <1>;
  7600. + #size-cells = <1>;
  7601. + compatible = "st,m25p80";
  7602. + spi-max-frequency = <3000000>;
  7603. + reg = <0>;
  7604. + };
  7605. +};
  7606. +
  7607. +&qspi {
  7608. + status = "okay";
  7609. + fsl,qspi-has-second-chip;
  7610. + flash0: s25fs512s@0 {
  7611. + #address-cells = <1>;
  7612. + #size-cells = <1>;
  7613. + compatible = "spansion,m25p80";
  7614. + m25p,fast-read;
  7615. + spi-max-frequency = <20000000>;
  7616. + reg = <0>;
  7617. + };
  7618. + flash1: s25fs512s@1 {
  7619. + #address-cells = <1>;
  7620. + #size-cells = <1>;
  7621. + compatible = "spansion,m25p80";
  7622. + m25p,fast-read;
  7623. + spi-max-frequency = <20000000>;
  7624. + reg = <1>;
  7625. + };
  7626. +};
  7627. +
  7628. +&sata0 {
  7629. + status = "okay";
  7630. +};
  7631. +
  7632. +&sata1 {
  7633. + status = "okay";
  7634. +};
  7635. +
  7636. +&usb0 {
  7637. + status = "okay";
  7638. +};
  7639. +
  7640. +&usb1 {
  7641. + status = "okay";
  7642. +};
  7643. --- /dev/null
  7644. +++ b/arch/arm64/boot/dts/freescale/fsl-ls2088a-qds.dts
  7645. @@ -0,0 +1,162 @@
  7646. +/*
  7647. + * Device Tree file for Freescale LS2088A QDS Board.
  7648. + *
  7649. + * Copyright 2016 Freescale Semiconductor, Inc.
  7650. + * Copyright 2017 NXP
  7651. + *
  7652. + * Abhimanyu Saini <[email protected]>
  7653. + *
  7654. + * This file is dual-licensed: you can use it either under the terms
  7655. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  7656. + * licensing only applies to this file, and not this project as a
  7657. + * whole.
  7658. + *
  7659. + * a) This library is free software; you can redistribute it and/or
  7660. + * modify it under the terms of the GNU General Public License as
  7661. + * published by the Free Software Foundation; either version 2 of the
  7662. + * License, or (at your option) any later version.
  7663. + *
  7664. + * This library is distributed in the hope that it will be useful,
  7665. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  7666. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  7667. + * GNU General Public License for more details.
  7668. + *
  7669. + * Or, alternatively,
  7670. + *
  7671. + * b) Permission is hereby granted, free of charge, to any person
  7672. + * obtaining a copy of this software and associated documentation
  7673. + * files (the "Software"), to deal in the Software without
  7674. + * restriction, including without limitation the rights to use,
  7675. + * copy, modify, merge, publish, distribute, sublicense, and/or
  7676. + * sell copies of the Software, and to permit persons to whom the
  7677. + * Software is furnished to do so, subject to the following
  7678. + * conditions:
  7679. + *
  7680. + * The above copyright notice and this permission notice shall be
  7681. + * included in all copies or substantial portions of the Software.
  7682. + *
  7683. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  7684. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  7685. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  7686. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  7687. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  7688. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  7689. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  7690. + * OTHER DEALINGS IN THE SOFTWARE.
  7691. + */
  7692. +
  7693. +/dts-v1/;
  7694. +
  7695. +#include "fsl-ls2088a.dtsi"
  7696. +#include "fsl-ls208xa-qds.dtsi"
  7697. +
  7698. +/ {
  7699. + model = "Freescale Layerscape 2088A QDS Board";
  7700. + compatible = "fsl,ls2088a-qds", "fsl,ls2088a";
  7701. +
  7702. + chosen {
  7703. + stdout-path = "serial0:115200n8";
  7704. + };
  7705. +};
  7706. +
  7707. +&ifc {
  7708. + boardctrl: board-control@3,0 {
  7709. + #address-cells = <1>;
  7710. + #size-cells = <1>;
  7711. + compatible = "fsl,tetra-fpga", "fsl,fpga-qixis", "simple-bus";
  7712. + reg = <3 0 0x300>; /* TODO check address */
  7713. + ranges = <0 3 0 0x300>;
  7714. +
  7715. + mdio_mux_emi1 {
  7716. + compatible = "mdio-mux-mmioreg", "mdio-mux";
  7717. + mdio-parent-bus = <&emdio1>;
  7718. + reg = <0x54 1>; /* BRDCFG4 */
  7719. + mux-mask = <0xe0>; /* EMI1_MDIO */
  7720. +
  7721. + #address-cells=<1>;
  7722. + #size-cells = <0>;
  7723. +
  7724. + /* Child MDIO buses, one for each riser card:
  7725. + * reg = 0x0, 0x20, 0x40, 0x60, 0x80, 0xa0.
  7726. + * VSC8234 PHYs on the riser cards.
  7727. + */
  7728. +
  7729. + mdio_mux3: mdio@60 {
  7730. + reg = <0x60>;
  7731. + #address-cells = <1>;
  7732. + #size-cells = <0>;
  7733. +
  7734. + mdio0_phy12: mdio_phy0@1c {
  7735. + reg = <0x1c>;
  7736. + phy-connection-type = "sgmii";
  7737. + };
  7738. + mdio0_phy13: mdio_phy1@1d {
  7739. + reg = <0x1d>;
  7740. + phy-connection-type = "sgmii";
  7741. + };
  7742. + mdio0_phy14: mdio_phy2@1e {
  7743. + reg = <0x1e>;
  7744. + phy-connection-type = "sgmii";
  7745. + };
  7746. + mdio0_phy15: mdio_phy3@1f {
  7747. + reg = <0x1f>;
  7748. + phy-connection-type = "sgmii";
  7749. + };
  7750. + };
  7751. + };
  7752. + };
  7753. +};
  7754. +
  7755. +&pcs_mdio1 {
  7756. + pcs_phy1: ethernet-phy@0 {
  7757. + backplane-mode = "10gbase-kr";
  7758. + compatible = "ethernet-phy-ieee802.3-c45";
  7759. + reg = <0x0>;
  7760. + fsl,lane-handle = <&serdes1>;
  7761. + fsl,lane-reg = <0x9C0 0x40>;/* lane H */
  7762. + };
  7763. +};
  7764. +
  7765. +&pcs_mdio2 {
  7766. + pcs_phy2: ethernet-phy@0 {
  7767. + backplane-mode = "10gbase-kr";
  7768. + compatible = "ethernet-phy-ieee802.3-c45";
  7769. + reg = <0x0>;
  7770. + fsl,lane-handle = <&serdes1>;
  7771. + fsl,lane-reg = <0x980 0x40>;/* lane G */
  7772. + };
  7773. +};
  7774. +
  7775. +&pcs_mdio3 {
  7776. + pcs_phy3: ethernet-phy@0 {
  7777. + backplane-mode = "10gbase-kr";
  7778. + compatible = "ethernet-phy-ieee802.3-c45";
  7779. + reg = <0x0>;
  7780. + fsl,lane-handle = <&serdes1>;
  7781. + fsl,lane-reg = <0x940 0x40>;/* lane F */
  7782. + };
  7783. +};
  7784. +
  7785. +&pcs_mdio4 {
  7786. + pcs_phy4: ethernet-phy@0 {
  7787. + backplane-mode = "10gbase-kr";
  7788. + compatible = "ethernet-phy-ieee802.3-c45";
  7789. + reg = <0x0>;
  7790. + fsl,lane-handle = <&serdes1>;
  7791. + fsl,lane-reg = <0x900 0x40>;/* lane E */
  7792. + };
  7793. +};
  7794. +
  7795. +/* Update DPMAC connections to external PHYs, under SerDes 0x2a_0x49. */
  7796. +&dpmac9 {
  7797. + phy-handle = <&mdio0_phy12>;
  7798. +};
  7799. +&dpmac10 {
  7800. + phy-handle = <&mdio0_phy13>;
  7801. +};
  7802. +&dpmac11 {
  7803. + phy-handle = <&mdio0_phy14>;
  7804. +};
  7805. +&dpmac12 {
  7806. + phy-handle = <&mdio0_phy15>;
  7807. +};
  7808. --- /dev/null
  7809. +++ b/arch/arm64/boot/dts/freescale/fsl-ls2088a-rdb.dts
  7810. @@ -0,0 +1,140 @@
  7811. +/*
  7812. + * Device Tree file for Freescale LS2088A RDB Board.
  7813. + *
  7814. + * Copyright 2016 Freescale Semiconductor, Inc.
  7815. + * Copyright 2017 NXP
  7816. + *
  7817. + * Abhimanyu Saini <[email protected]>
  7818. + *
  7819. + * This file is dual-licensed: you can use it either under the terms
  7820. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  7821. + * licensing only applies to this file, and not this project as a
  7822. + * whole.
  7823. + *
  7824. + * a) This library is free software; you can redistribute it and/or
  7825. + * modify it under the terms of the GNU General Public License as
  7826. + * published by the Free Software Foundation; either version 2 of the
  7827. + * License, or (at your option) any later version.
  7828. + *
  7829. + * This library is distributed in the hope that it will be useful,
  7830. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  7831. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  7832. + * GNU General Public License for more details.
  7833. + *
  7834. + * Or, alternatively,
  7835. + *
  7836. + * b) Permission is hereby granted, free of charge, to any person
  7837. + * obtaining a copy of this software and associated documentation
  7838. + * files (the "Software"), to deal in the Software without
  7839. + * restriction, including without limitation the rights to use,
  7840. + * copy, modify, merge, publish, distribute, sublicense, and/or
  7841. + * sell copies of the Software, and to permit persons to whom the
  7842. + * Software is furnished to do so, subject to the following
  7843. + * conditions:
  7844. + *
  7845. + * The above copyright notice and this permission notice shall be
  7846. + * included in all copies or substantial portions of the Software.
  7847. + *
  7848. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  7849. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  7850. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  7851. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  7852. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  7853. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  7854. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  7855. + * OTHER DEALINGS IN THE SOFTWARE.
  7856. + */
  7857. +
  7858. +/dts-v1/;
  7859. +
  7860. +#include "fsl-ls2088a.dtsi"
  7861. +#include "fsl-ls208xa-rdb.dtsi"
  7862. +
  7863. +/ {
  7864. + model = "Freescale Layerscape 2088A RDB Board";
  7865. + compatible = "fsl,ls2088a-rdb", "fsl,ls2088a";
  7866. +
  7867. + chosen {
  7868. + stdout-path = "serial1:115200n8";
  7869. + };
  7870. +};
  7871. +
  7872. +&emdio1 {
  7873. + status = "disabled";
  7874. + /* CS4340 PHYs */
  7875. + mdio1_phy1: emdio1_phy@1 {
  7876. + reg = <0x10>;
  7877. + phy-connection-type = "xfi";
  7878. + };
  7879. + mdio1_phy2: emdio1_phy@2 {
  7880. + reg = <0x11>;
  7881. + phy-connection-type = "xfi";
  7882. + };
  7883. + mdio1_phy3: emdio1_phy@3 {
  7884. + reg = <0x12>;
  7885. + phy-connection-type = "xfi";
  7886. + };
  7887. + mdio1_phy4: emdio1_phy@4 {
  7888. + reg = <0x13>;
  7889. + phy-connection-type = "xfi";
  7890. + };
  7891. +};
  7892. +
  7893. +&emdio2 {
  7894. + /* AQR405 PHYs */
  7895. + mdio2_phy1: emdio2_phy@1 {
  7896. + compatible = "ethernet-phy-ieee802.3-c45";
  7897. + interrupts = <0 1 0x4>; /* Level high type */
  7898. + reg = <0x0>;
  7899. + phy-connection-type = "xfi";
  7900. + };
  7901. + mdio2_phy2: emdio2_phy@2 {
  7902. + compatible = "ethernet-phy-ieee802.3-c45";
  7903. + interrupts = <0 2 0x4>; /* Level high type */
  7904. + reg = <0x1>;
  7905. + phy-connection-type = "xfi";
  7906. + };
  7907. + mdio2_phy3: emdio2_phy@3 {
  7908. + compatible = "ethernet-phy-ieee802.3-c45";
  7909. + interrupts = <0 4 0x4>; /* Level high type */
  7910. + reg = <0x2>;
  7911. + phy-connection-type = "xfi";
  7912. + };
  7913. + mdio2_phy4: emdio2_phy@4 {
  7914. + compatible = "ethernet-phy-ieee802.3-c45";
  7915. + interrupts = <0 5 0x4>; /* Level high type */
  7916. + reg = <0x3>;
  7917. + phy-connection-type = "xfi";
  7918. + };
  7919. +};
  7920. +
  7921. +/* Update DPMAC connections to external PHYs, under the assumption of
  7922. + * SerDes 0x2a_0x41. This is currently the only SerDes supported on the board.
  7923. + */
  7924. +/* Leave Cortina PHYs commented out until proper driver is integrated
  7925. + *&dpmac1 {
  7926. + * phy-handle = <&mdio1_phy1>;
  7927. + *};
  7928. + *&dpmac2 {
  7929. + * phy-handle = <&mdio1_phy2>;
  7930. + *};
  7931. + *&dpmac3 {
  7932. + * phy-handle = <&mdio1_phy3>;
  7933. + *};
  7934. + *&dpmac4 {
  7935. + * phy-handle = <&mdio1_phy4>;
  7936. + *};
  7937. + */
  7938. +
  7939. +&dpmac5 {
  7940. + phy-handle = <&mdio2_phy1>;
  7941. +};
  7942. +&dpmac6 {
  7943. + phy-handle = <&mdio2_phy2>;
  7944. +};
  7945. +&dpmac7 {
  7946. + phy-handle = <&mdio2_phy3>;
  7947. +};
  7948. +&dpmac8 {
  7949. + phy-handle = <&mdio2_phy4>;
  7950. +};
  7951. --- /dev/null
  7952. +++ b/arch/arm64/boot/dts/freescale/fsl-ls2088a.dtsi
  7953. @@ -0,0 +1,195 @@
  7954. +/*
  7955. + * Device Tree Include file for Freescale Layerscape-2088A family SoC.
  7956. + *
  7957. + * Copyright 2016 Freescale Semiconductor, Inc.
  7958. + * Copyright 2017 NXP
  7959. + *
  7960. + * Abhimanyu Saini <[email protected]>
  7961. + *
  7962. + * This file is dual-licensed: you can use it either under the terms
  7963. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  7964. + * licensing only applies to this file, and not this project as a
  7965. + * whole.
  7966. + *
  7967. + * a) This library is free software; you can redistribute it and/or
  7968. + * modify it under the terms of the GNU General Public License as
  7969. + * published by the Free Software Foundation; either version 2 of the
  7970. + * License, or (at your option) any later version.
  7971. + *
  7972. + * This library is distributed in the hope that it will be useful,
  7973. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  7974. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  7975. + * GNU General Public License for more details.
  7976. + *
  7977. + * Or, alternatively,
  7978. + *
  7979. + * b) Permission is hereby granted, free of charge, to any person
  7980. + * obtaining a copy of this software and associated documentation
  7981. + * files (the "Software"), to deal in the Software without
  7982. + * restriction, including without limitation the rights to use,
  7983. + * copy, modify, merge, publish, distribute, sublicense, and/or
  7984. + * sell copies of the Software, and to permit persons to whom the
  7985. + * Software is furnished to do so, subject to the following
  7986. + * conditions:
  7987. + *
  7988. + * The above copyright notice and this permission notice shall be
  7989. + * included in all copies or substantial portions of the Software.
  7990. + *
  7991. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  7992. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  7993. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  7994. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  7995. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  7996. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  7997. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  7998. + * OTHER DEALINGS IN THE SOFTWARE.
  7999. + */
  8000. +
  8001. +#include "fsl-ls208xa.dtsi"
  8002. +
  8003. +&cpu {
  8004. + cpu0: cpu@0 {
  8005. + device_type = "cpu";
  8006. + compatible = "arm,cortex-a72";
  8007. + reg = <0x0>;
  8008. + clocks = <&clockgen 1 0>;
  8009. + next-level-cache = <&cluster0_l2>;
  8010. + #cooling-cells = <2>;
  8011. + cpu-idle-states = <&CPU_PH20>;
  8012. + };
  8013. +
  8014. + cpu1: cpu@1 {
  8015. + device_type = "cpu";
  8016. + compatible = "arm,cortex-a72";
  8017. + reg = <0x1>;
  8018. + clocks = <&clockgen 1 0>;
  8019. + next-level-cache = <&cluster0_l2>;
  8020. + cpu-idle-states = <&CPU_PH20>;
  8021. + };
  8022. +
  8023. + cpu2: cpu@100 {
  8024. + device_type = "cpu";
  8025. + compatible = "arm,cortex-a72";
  8026. + reg = <0x100>;
  8027. + clocks = <&clockgen 1 1>;
  8028. + next-level-cache = <&cluster1_l2>;
  8029. + #cooling-cells = <2>;
  8030. + cpu-idle-states = <&CPU_PH20>;
  8031. + };
  8032. +
  8033. + cpu3: cpu@101 {
  8034. + device_type = "cpu";
  8035. + compatible = "arm,cortex-a72";
  8036. + reg = <0x101>;
  8037. + clocks = <&clockgen 1 1>;
  8038. + next-level-cache = <&cluster1_l2>;
  8039. + cpu-idle-states = <&CPU_PH20>;
  8040. + };
  8041. +
  8042. + cpu4: cpu@200 {
  8043. + device_type = "cpu";
  8044. + compatible = "arm,cortex-a72";
  8045. + reg = <0x200>;
  8046. + clocks = <&clockgen 1 2>;
  8047. + next-level-cache = <&cluster2_l2>;
  8048. + #cooling-cells = <2>;
  8049. + cpu-idle-states = <&CPU_PH20>;
  8050. + };
  8051. +
  8052. + cpu5: cpu@201 {
  8053. + device_type = "cpu";
  8054. + compatible = "arm,cortex-a72";
  8055. + reg = <0x201>;
  8056. + clocks = <&clockgen 1 2>;
  8057. + next-level-cache = <&cluster2_l2>;
  8058. + cpu-idle-states = <&CPU_PH20>;
  8059. + };
  8060. +
  8061. + cpu6: cpu@300 {
  8062. + device_type = "cpu";
  8063. + compatible = "arm,cortex-a72";
  8064. + reg = <0x300>;
  8065. + clocks = <&clockgen 1 3>;
  8066. + next-level-cache = <&cluster3_l2>;
  8067. + #cooling-cells = <2>;
  8068. + cpu-idle-states = <&CPU_PH20>;
  8069. + };
  8070. +
  8071. + cpu7: cpu@301 {
  8072. + device_type = "cpu";
  8073. + compatible = "arm,cortex-a72";
  8074. + reg = <0x301>;
  8075. + clocks = <&clockgen 1 3>;
  8076. + next-level-cache = <&cluster3_l2>;
  8077. + cpu-idle-states = <&CPU_PH20>;
  8078. + };
  8079. +
  8080. + idle-states {
  8081. + /*
  8082. + * PSCI node is not added default, U-boot will add missing
  8083. + * parts if it determines to use PSCI.
  8084. + */
  8085. + entry-method = "arm,psci";
  8086. +
  8087. + CPU_PH20: cpu-ph20 {
  8088. + compatible = "arm,idle-state";
  8089. + idle-state-name = "PH20";
  8090. + arm,psci-suspend-param = <0x0>;
  8091. + entry-latency-us = <1000>;
  8092. + exit-latency-us = <1000>;
  8093. + min-residency-us = <3000>;
  8094. + };
  8095. + };
  8096. +
  8097. + cluster0_l2: l2-cache0 {
  8098. + compatible = "cache";
  8099. + };
  8100. +
  8101. + cluster1_l2: l2-cache1 {
  8102. + compatible = "cache";
  8103. + };
  8104. +
  8105. + cluster2_l2: l2-cache2 {
  8106. + compatible = "cache";
  8107. + };
  8108. +
  8109. + cluster3_l2: l2-cache3 {
  8110. + compatible = "cache";
  8111. + };
  8112. +};
  8113. +
  8114. +&pcie1 {
  8115. + compatible = "fsl,ls2088a-pcie", "snps,dw-pcie";
  8116. + reg = <0x00 0x03400000 0x0 0x00100000 /* controller registers */
  8117. + 0x20 0x00000000 0x0 0x00002000>; /* configuration space */
  8118. +
  8119. + ranges = <0x81000000 0x0 0x00000000 0x20 0x00010000 0x0 0x00010000
  8120. + 0x82000000 0x0 0x40000000 0x20 0x40000000 0x0 0x40000000>;
  8121. +};
  8122. +
  8123. +&pcie2 {
  8124. + compatible = "fsl,ls2088a-pcie", "snps,dw-pcie";
  8125. + reg = <0x00 0x03500000 0x0 0x00100000 /* controller registers */
  8126. + 0x28 0x00000000 0x0 0x00002000>; /* configuration space */
  8127. +
  8128. + ranges = <0x81000000 0x0 0x00000000 0x28 0x00010000 0x0 0x00010000
  8129. + 0x82000000 0x0 0x40000000 0x28 0x40000000 0x0 0x40000000>;
  8130. +};
  8131. +
  8132. +&pcie3 {
  8133. + compatible = "fsl,ls2088a-pcie", "snps,dw-pcie";
  8134. + reg = <0x00 0x03600000 0x0 0x00100000 /* controller registers */
  8135. + 0x30 0x00000000 0x0 0x00002000>; /* configuration space */
  8136. +
  8137. + ranges = <0x81000000 0x0 0x00000000 0x30 0x00010000 0x0 0x00010000
  8138. + 0x82000000 0x0 0x40000000 0x30 0x40000000 0x0 0x40000000>;
  8139. +};
  8140. +
  8141. +&pcie4 {
  8142. + compatible = "fsl,ls2088a-pcie", "snps,dw-pcie";
  8143. + reg = <0x00 0x03700000 0x0 0x00100000 /* controller registers */
  8144. + 0x38 0x00000000 0x0 0x00002000>; /* configuration space */
  8145. +
  8146. + ranges = <0x81000000 0x0 0x00000000 0x38 0x00010000 0x0 0x00010000
  8147. + 0x82000000 0x0 0x40000000 0x38 0x40000000 0x0 0x40000000>;
  8148. +};
  8149. --- /dev/null
  8150. +++ b/arch/arm64/boot/dts/freescale/fsl-ls208xa-qds.dtsi
  8151. @@ -0,0 +1,198 @@
  8152. +/*
  8153. + * Device Tree file for Freescale LS2080A QDS Board.
  8154. + *
  8155. + * Copyright 2016 Freescale Semiconductor, Inc.
  8156. + * Copyright 2017 NXP
  8157. + *
  8158. + * Abhimanyu Saini <[email protected]>
  8159. + *
  8160. + * This file is dual-licensed: you can use it either under the terms
  8161. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  8162. + * licensing only applies to this file, and not this project as a
  8163. + * whole.
  8164. + *
  8165. + * a) This library is free software; you can redistribute it and/or
  8166. + * modify it under the terms of the GNU General Public License as
  8167. + * published by the Free Software Foundation; either version 2 of the
  8168. + * License, or (at your option) any later version.
  8169. + *
  8170. + * This library is distributed in the hope that it will be useful,
  8171. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  8172. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8173. + * GNU General Public License for more details.
  8174. + *
  8175. + * Or, alternatively,
  8176. + *
  8177. + * b) Permission is hereby granted, free of charge, to any person
  8178. + * obtaining a copy of this software and associated documentation
  8179. + * files (the "Software"), to deal in the Software without
  8180. + * restriction, including without limitation the rights to use,
  8181. + * copy, modify, merge, publish, distribute, sublicense, and/or
  8182. + * sell copies of the Software, and to permit persons to whom the
  8183. + * Software is furnished to do so, subject to the following
  8184. + * conditions:
  8185. + *
  8186. + * The above copyright notice and this permission notice shall be
  8187. + * included in all copies or substantial portions of the Software.
  8188. + *
  8189. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  8190. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  8191. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  8192. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  8193. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  8194. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  8195. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  8196. + * OTHER DEALINGS IN THE SOFTWARE.
  8197. + */
  8198. +
  8199. +&esdhc {
  8200. + mmc-hs200-1_8v;
  8201. + status = "okay";
  8202. +};
  8203. +
  8204. +&ifc {
  8205. + status = "okay";
  8206. + #address-cells = <2>;
  8207. + #size-cells = <1>;
  8208. + ranges = <0x0 0x0 0x5 0x80000000 0x08000000
  8209. + 0x2 0x0 0x5 0x30000000 0x00010000
  8210. + 0x3 0x0 0x5 0x20000000 0x00010000>;
  8211. +
  8212. + nor@0,0 {
  8213. + #address-cells = <1>;
  8214. + #size-cells = <1>;
  8215. + compatible = "cfi-flash";
  8216. + reg = <0x0 0x0 0x8000000>;
  8217. + bank-width = <2>;
  8218. + device-width = <1>;
  8219. + };
  8220. +
  8221. + nand@2,0 {
  8222. + compatible = "fsl,ifc-nand";
  8223. + reg = <0x2 0x0 0x10000>;
  8224. + };
  8225. +
  8226. + cpld@3,0 {
  8227. + reg = <0x3 0x0 0x10000>;
  8228. + compatible = "fsl,ls2080aqds-fpga", "fsl,fpga-qixis";
  8229. + };
  8230. +};
  8231. +
  8232. +&i2c0 {
  8233. + status = "okay";
  8234. + pca9547@77 {
  8235. + compatible = "nxp,pca9547";
  8236. + reg = <0x77>;
  8237. + #address-cells = <1>;
  8238. + #size-cells = <0>;
  8239. + i2c@0 {
  8240. + #address-cells = <1>;
  8241. + #size-cells = <0>;
  8242. + reg = <0x00>;
  8243. + rtc@68 {
  8244. + compatible = "dallas,ds3232";
  8245. + reg = <0x68>;
  8246. + };
  8247. + };
  8248. +
  8249. + i2c@2 {
  8250. + #address-cells = <1>;
  8251. + #size-cells = <0>;
  8252. + reg = <0x02>;
  8253. +
  8254. + ina220@40 {
  8255. + compatible = "ti,ina220";
  8256. + reg = <0x40>;
  8257. + shunt-resistor = <500>;
  8258. + };
  8259. +
  8260. + ina220@41 {
  8261. + compatible = "ti,ina220";
  8262. + reg = <0x41>;
  8263. + shunt-resistor = <1000>;
  8264. + };
  8265. + };
  8266. +
  8267. + i2c@3 {
  8268. + #address-cells = <1>;
  8269. + #size-cells = <0>;
  8270. + reg = <0x3>;
  8271. +
  8272. + adt7481@4c {
  8273. + compatible = "adi,adt7461";
  8274. + reg = <0x4c>;
  8275. + };
  8276. + };
  8277. + };
  8278. +};
  8279. +
  8280. +&i2c1 {
  8281. + status = "disabled";
  8282. +};
  8283. +
  8284. +&i2c2 {
  8285. + status = "disabled";
  8286. +};
  8287. +
  8288. +&i2c3 {
  8289. + status = "disabled";
  8290. +};
  8291. +
  8292. +&dspi {
  8293. + status = "okay";
  8294. + dflash0: n25q128a {
  8295. + #address-cells = <1>;
  8296. + #size-cells = <1>;
  8297. + compatible = "st,m25p80";
  8298. + spi-max-frequency = <3000000>;
  8299. + reg = <0>;
  8300. + };
  8301. + dflash1: sst25wf040b {
  8302. + #address-cells = <1>;
  8303. + #size-cells = <1>;
  8304. + compatible = "st,m25p80";
  8305. + spi-max-frequency = <3000000>;
  8306. + reg = <1>;
  8307. + };
  8308. + dflash2: en25s64 {
  8309. + #address-cells = <1>;
  8310. + #size-cells = <1>;
  8311. + compatible = "st,m25p80";
  8312. + spi-max-frequency = <3000000>;
  8313. + reg = <2>;
  8314. + };
  8315. +};
  8316. +
  8317. +&qspi {
  8318. + status = "okay";
  8319. + flash0: s25fl256s1@0 {
  8320. + #address-cells = <1>;
  8321. + #size-cells = <1>;
  8322. + compatible = "st,m25p80";
  8323. + spi-max-frequency = <20000000>;
  8324. + reg = <0>;
  8325. + };
  8326. + flash2: s25fl256s1@2 {
  8327. + #address-cells = <1>;
  8328. + #size-cells = <1>;
  8329. + compatible = "st,m25p80";
  8330. + spi-max-frequency = <20000000>;
  8331. + reg = <0>;
  8332. + };
  8333. +};
  8334. +
  8335. +&sata0 {
  8336. + status = "okay";
  8337. +};
  8338. +
  8339. +&sata1 {
  8340. + status = "okay";
  8341. +};
  8342. +
  8343. +&usb0 {
  8344. + status = "okay";
  8345. +};
  8346. +
  8347. +&usb1 {
  8348. + status = "okay";
  8349. +};
  8350. --- /dev/null
  8351. +++ b/arch/arm64/boot/dts/freescale/fsl-ls208xa-rdb.dtsi
  8352. @@ -0,0 +1,161 @@
  8353. +/*
  8354. + * Device Tree file for Freescale LS2080A RDB Board.
  8355. + *
  8356. + * Copyright 2016 Freescale Semiconductor, Inc.
  8357. + * Copyright 2017 NXP
  8358. + *
  8359. + * Abhimanyu Saini <[email protected]>
  8360. + *
  8361. + * This file is dual-licensed: you can use it either under the terms
  8362. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  8363. + * licensing only applies to this file, and not this project as a
  8364. + * whole.
  8365. + *
  8366. + * a) This library is free software; you can redistribute it and/or
  8367. + * modify it under the terms of the GNU General Public License as
  8368. + * published by the Free Software Foundation; either version 2 of the
  8369. + * License, or (at your option) any later version.
  8370. + *
  8371. + * This library is distributed in the hope that it will be useful,
  8372. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  8373. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8374. + * GNU General Public License for more details.
  8375. + *
  8376. + * Or, alternatively,
  8377. + *
  8378. + * b) Permission is hereby granted, free of charge, to any person
  8379. + * obtaining a copy of this software and associated documentation
  8380. + * files (the "Software"), to deal in the Software without
  8381. + * restriction, including without limitation the rights to use,
  8382. + * copy, modify, merge, publish, distribute, sublicense, and/or
  8383. + * sell copies of the Software, and to permit persons to whom the
  8384. + * Software is furnished to do so, subject to the following
  8385. + * conditions:
  8386. + *
  8387. + * The above copyright notice and this permission notice shall be
  8388. + * included in all copies or substantial portions of the Software.
  8389. + *
  8390. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  8391. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  8392. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  8393. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  8394. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  8395. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  8396. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  8397. + * OTHER DEALINGS IN THE SOFTWARE.
  8398. + */
  8399. +
  8400. +&esdhc {
  8401. + status = "okay";
  8402. +};
  8403. +
  8404. +&ifc {
  8405. + status = "okay";
  8406. + #address-cells = <2>;
  8407. + #size-cells = <1>;
  8408. + ranges = <0x0 0x0 0x5 0x80000000 0x08000000
  8409. + 0x2 0x0 0x5 0x30000000 0x00010000
  8410. + 0x3 0x0 0x5 0x20000000 0x00010000>;
  8411. +
  8412. + nor@0,0 {
  8413. + #address-cells = <1>;
  8414. + #size-cells = <1>;
  8415. + compatible = "cfi-flash";
  8416. + reg = <0x0 0x0 0x8000000>;
  8417. + bank-width = <2>;
  8418. + device-width = <1>;
  8419. + };
  8420. +
  8421. + nand@2,0 {
  8422. + compatible = "fsl,ifc-nand";
  8423. + reg = <0x2 0x0 0x10000>;
  8424. + };
  8425. +
  8426. + cpld@3,0 {
  8427. + reg = <0x3 0x0 0x10000>;
  8428. + compatible = "fsl,ls2080aqds-fpga", "fsl,fpga-qixis";
  8429. + };
  8430. +
  8431. +};
  8432. +
  8433. +&i2c0 {
  8434. + status = "okay";
  8435. + pca9547@75 {
  8436. + compatible = "nxp,pca9547";
  8437. + reg = <0x75>;
  8438. + #address-cells = <1>;
  8439. + #size-cells = <0>;
  8440. + i2c-mux-never-disable;
  8441. + i2c@1 {
  8442. + #address-cells = <1>;
  8443. + #size-cells = <0>;
  8444. + reg = <0x01>;
  8445. + rtc@68 {
  8446. + compatible = "dallas,ds3232";
  8447. + reg = <0x68>;
  8448. + };
  8449. + };
  8450. +
  8451. + i2c@3 {
  8452. + #address-cells = <1>;
  8453. + #size-cells = <0>;
  8454. + reg = <0x3>;
  8455. +
  8456. + adt7481@4c {
  8457. + compatible = "adi,adt7461";
  8458. + reg = <0x4c>;
  8459. + };
  8460. + };
  8461. + };
  8462. +};
  8463. +
  8464. +&i2c1 {
  8465. + status = "disabled";
  8466. +};
  8467. +
  8468. +&i2c2 {
  8469. + status = "disabled";
  8470. +};
  8471. +
  8472. +&i2c3 {
  8473. + status = "disabled";
  8474. +};
  8475. +
  8476. +&dspi {
  8477. + status = "okay";
  8478. + dflash0: n25q512a {
  8479. + #address-cells = <1>;
  8480. + #size-cells = <1>;
  8481. + compatible = "st,m25p80";
  8482. + spi-max-frequency = <3000000>;
  8483. + reg = <0>;
  8484. + };
  8485. +};
  8486. +
  8487. +&qspi {
  8488. + status = "okay";
  8489. + flash0: s25fs512s@0 {
  8490. + #address-cells = <1>;
  8491. + #size-cells = <1>;
  8492. + compatible = "spansion,m25p80";
  8493. + m25p,fast-read;
  8494. + spi-max-frequency = <20000000>;
  8495. + reg = <0>;
  8496. + };
  8497. +};
  8498. +
  8499. +&sata0 {
  8500. + status = "okay";
  8501. +};
  8502. +
  8503. +&sata1 {
  8504. + status = "okay";
  8505. +};
  8506. +
  8507. +&usb0 {
  8508. + status = "okay";
  8509. +};
  8510. +
  8511. +&usb1 {
  8512. + status = "okay";
  8513. +};
  8514. --- /dev/null
  8515. +++ b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi
  8516. @@ -0,0 +1,919 @@
  8517. +/*
  8518. + * Device Tree Include file for Freescale Layerscape-2080A family SoC.
  8519. + *
  8520. + * Copyright 2016 Freescale Semiconductor, Inc.
  8521. + * Copyright 2017 NXP
  8522. + *
  8523. + * Abhimanyu Saini <[email protected]>
  8524. + *
  8525. + * This file is dual-licensed: you can use it either under the terms
  8526. + * of the GPLv2 or the X11 license, at your option. Note that this dual
  8527. + * licensing only applies to this file, and not this project as a
  8528. + * whole.
  8529. + *
  8530. + * a) This library is free software; you can redistribute it and/or
  8531. + * modify it under the terms of the GNU General Public License as
  8532. + * published by the Free Software Foundation; either version 2 of the
  8533. + * License, or (at your option) any later version.
  8534. + *
  8535. + * This library is distributed in the hope that it will be useful,
  8536. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  8537. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8538. + * GNU General Public License for more details.
  8539. + *
  8540. + * Or, alternatively,
  8541. + *
  8542. + * b) Permission is hereby granted, free of charge, to any person
  8543. + * obtaining a copy of this software and associated documentation
  8544. + * files (the "Software"), to deal in the Software without
  8545. + * restriction, including without limitation the rights to use,
  8546. + * copy, modify, merge, publish, distribute, sublicense, and/or
  8547. + * sell copies of the Software, and to permit persons to whom the
  8548. + * Software is furnished to do so, subject to the following
  8549. + * conditions:
  8550. + *
  8551. + * The above copyright notice and this permission notice shall be
  8552. + * included in all copies or substantial portions of the Software.
  8553. + *
  8554. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  8555. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  8556. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  8557. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  8558. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  8559. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  8560. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  8561. + * OTHER DEALINGS IN THE SOFTWARE.
  8562. + */
  8563. +
  8564. +#include <dt-bindings/thermal/thermal.h>
  8565. +#include <dt-bindings/interrupt-controller/arm-gic.h>
  8566. +
  8567. +/ {
  8568. + compatible = "fsl,ls2080a";
  8569. + interrupt-parent = <&gic>;
  8570. + #address-cells = <2>;
  8571. + #size-cells = <2>;
  8572. +
  8573. + aliases {
  8574. + crypto = &crypto;
  8575. + serial0 = &serial0;
  8576. + serial1 = &serial1;
  8577. + };
  8578. +
  8579. + cpu: cpus {
  8580. + #address-cells = <1>;
  8581. + #size-cells = <0>;
  8582. + };
  8583. +
  8584. + memory@80000000 {
  8585. + device_type = "memory";
  8586. + reg = <0x00000000 0x80000000 0 0x80000000>;
  8587. + /* DRAM space - 1, size : 2 GB DRAM */
  8588. + };
  8589. +
  8590. + sysclk: sysclk {
  8591. + compatible = "fixed-clock";
  8592. + #clock-cells = <0>;
  8593. + clock-frequency = <100000000>;
  8594. + clock-output-names = "sysclk";
  8595. + };
  8596. +
  8597. + gic: interrupt-controller@6000000 {
  8598. + compatible = "arm,gic-v3";
  8599. + reg = <0x0 0x06000000 0 0x10000>, /* GIC Dist */
  8600. + <0x0 0x06100000 0 0x100000>, /* GICR (RD_base + SGI_base) */
  8601. + <0x0 0x0c0c0000 0 0x2000>, /* GICC */
  8602. + <0x0 0x0c0d0000 0 0x1000>, /* GICH */
  8603. + <0x0 0x0c0e0000 0 0x20000>; /* GICV */
  8604. + #interrupt-cells = <3>;
  8605. + #address-cells = <2>;
  8606. + #size-cells = <2>;
  8607. + ranges;
  8608. + interrupt-controller;
  8609. + interrupts = <1 9 0x4>;
  8610. +
  8611. + its: gic-its@6020000 {
  8612. + compatible = "arm,gic-v3-its";
  8613. + msi-controller;
  8614. + reg = <0x0 0x6020000 0 0x20000>;
  8615. + };
  8616. + };
  8617. +
  8618. + rstcr: syscon@1e60000 {
  8619. + compatible = "fsl,ls2080a-rstcr", "syscon";
  8620. + reg = <0x0 0x1e60000 0x0 0x4>;
  8621. + };
  8622. +
  8623. + reboot {
  8624. + compatible ="syscon-reboot";
  8625. + regmap = <&rstcr>;
  8626. + offset = <0x0>;
  8627. + mask = <0x2>;
  8628. + };
  8629. +
  8630. + timer {
  8631. + compatible = "arm,armv8-timer";
  8632. + interrupts = <1 13 4>, /* Physical Secure PPI, active-low */
  8633. + <1 14 4>, /* Physical Non-Secure PPI, active-low */
  8634. + <1 11 4>, /* Virtual PPI, active-low */
  8635. + <1 10 4>; /* Hypervisor PPI, active-low */
  8636. + fsl,erratum-a008585;
  8637. + };
  8638. +
  8639. + pmu {
  8640. + compatible = "arm,armv8-pmuv3";
  8641. + interrupts = <1 7 0x8>; /* PMU PPI, Level low type */
  8642. + };
  8643. +
  8644. + soc {
  8645. + compatible = "simple-bus";
  8646. + #address-cells = <2>;
  8647. + #size-cells = <2>;
  8648. + ranges;
  8649. +
  8650. + clockgen: clocking@1300000 {
  8651. + compatible = "fsl,ls2080a-clockgen";
  8652. + reg = <0 0x1300000 0 0xa0000>;
  8653. + #clock-cells = <2>;
  8654. + clocks = <&sysclk>;
  8655. + };
  8656. +
  8657. + dcfg: dcfg@1e00000 {
  8658. + compatible = "fsl,ls2080a-dcfg", "syscon";
  8659. + reg = <0x0 0x1e00000 0x0 0x10000>;
  8660. + little-endian;
  8661. + };
  8662. +
  8663. + tmu: tmu@1f80000 {
  8664. + compatible = "fsl,qoriq-tmu";
  8665. + reg = <0x0 0x1f80000 0x0 0x10000>;
  8666. + interrupts = <0 23 0x4>;
  8667. + fsl,tmu-range = <0xb0000 0x9002a 0x6004c 0x30062>;
  8668. + fsl,tmu-calibration = <0x00000000 0x00000026
  8669. + 0x00000001 0x0000002d
  8670. + 0x00000002 0x00000032
  8671. + 0x00000003 0x00000039
  8672. + 0x00000004 0x0000003f
  8673. + 0x00000005 0x00000046
  8674. + 0x00000006 0x0000004d
  8675. + 0x00000007 0x00000054
  8676. + 0x00000008 0x0000005a
  8677. + 0x00000009 0x00000061
  8678. + 0x0000000a 0x0000006a
  8679. + 0x0000000b 0x00000071
  8680. +
  8681. + 0x00010000 0x00000025
  8682. + 0x00010001 0x0000002c
  8683. + 0x00010002 0x00000035
  8684. + 0x00010003 0x0000003d
  8685. + 0x00010004 0x00000045
  8686. + 0x00010005 0x0000004e
  8687. + 0x00010006 0x00000057
  8688. + 0x00010007 0x00000061
  8689. + 0x00010008 0x0000006b
  8690. + 0x00010009 0x00000076
  8691. +
  8692. + 0x00020000 0x00000029
  8693. + 0x00020001 0x00000033
  8694. + 0x00020002 0x0000003d
  8695. + 0x00020003 0x00000049
  8696. + 0x00020004 0x00000056
  8697. + 0x00020005 0x00000061
  8698. + 0x00020006 0x0000006d
  8699. +
  8700. + 0x00030000 0x00000021
  8701. + 0x00030001 0x0000002a
  8702. + 0x00030002 0x0000003c
  8703. + 0x00030003 0x0000004e>;
  8704. + little-endian;
  8705. + #thermal-sensor-cells = <1>;
  8706. + };
  8707. +
  8708. + thermal-zones {
  8709. + cpu_thermal: cpu-thermal {
  8710. + polling-delay-passive = <1000>;
  8711. + polling-delay = <5000>;
  8712. +
  8713. + thermal-sensors = <&tmu 4>;
  8714. +
  8715. + trips {
  8716. + cpu_alert: cpu-alert {
  8717. + temperature = <75000>;
  8718. + hysteresis = <2000>;
  8719. + type = "passive";
  8720. + };
  8721. + cpu_crit: cpu-crit {
  8722. + temperature = <85000>;
  8723. + hysteresis = <2000>;
  8724. + type = "critical";
  8725. + };
  8726. + };
  8727. +
  8728. + cooling-maps {
  8729. + map0 {
  8730. + trip = <&cpu_alert>;
  8731. + cooling-device =
  8732. + <&cpu0 THERMAL_NO_LIMIT
  8733. + THERMAL_NO_LIMIT>;
  8734. + };
  8735. + map1 {
  8736. + trip = <&cpu_alert>;
  8737. + cooling-device =
  8738. + <&cpu2 THERMAL_NO_LIMIT
  8739. + THERMAL_NO_LIMIT>;
  8740. + };
  8741. + map2 {
  8742. + trip = <&cpu_alert>;
  8743. + cooling-device =
  8744. + <&cpu4 THERMAL_NO_LIMIT
  8745. + THERMAL_NO_LIMIT>;
  8746. + };
  8747. + map3 {
  8748. + trip = <&cpu_alert>;
  8749. + cooling-device =
  8750. + <&cpu6 THERMAL_NO_LIMIT
  8751. + THERMAL_NO_LIMIT>;
  8752. + };
  8753. + };
  8754. + };
  8755. + };
  8756. +
  8757. + serial0: serial@21c0500 {
  8758. + compatible = "fsl,ns16550", "ns16550a";
  8759. + reg = <0x0 0x21c0500 0x0 0x100>;
  8760. + clocks = <&clockgen 4 3>;
  8761. + interrupts = <0 32 0x4>; /* Level high type */
  8762. + };
  8763. +
  8764. + serial1: serial@21c0600 {
  8765. + compatible = "fsl,ns16550", "ns16550a";
  8766. + reg = <0x0 0x21c0600 0x0 0x100>;
  8767. + clocks = <&clockgen 4 3>;
  8768. + interrupts = <0 32 0x4>; /* Level high type */
  8769. + };
  8770. +
  8771. + cluster1_core0_watchdog: wdt@c000000 {
  8772. + compatible = "arm,sp805-wdt", "arm,primecell";
  8773. + reg = <0x0 0xc000000 0x0 0x1000>;
  8774. + clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  8775. + clock-names = "apb_pclk", "wdog_clk";
  8776. + };
  8777. +
  8778. + cluster1_core1_watchdog: wdt@c010000 {
  8779. + compatible = "arm,sp805-wdt", "arm,primecell";
  8780. + reg = <0x0 0xc010000 0x0 0x1000>;
  8781. + clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  8782. + clock-names = "apb_pclk", "wdog_clk";
  8783. + };
  8784. +
  8785. + cluster2_core0_watchdog: wdt@c100000 {
  8786. + compatible = "arm,sp805-wdt", "arm,primecell";
  8787. + reg = <0x0 0xc100000 0x0 0x1000>;
  8788. + clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  8789. + clock-names = "apb_pclk", "wdog_clk";
  8790. + };
  8791. +
  8792. + cluster2_core1_watchdog: wdt@c110000 {
  8793. + compatible = "arm,sp805-wdt", "arm,primecell";
  8794. + reg = <0x0 0xc110000 0x0 0x1000>;
  8795. + clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  8796. + clock-names = "apb_pclk", "wdog_clk";
  8797. + };
  8798. +
  8799. + cluster3_core0_watchdog: wdt@c200000 {
  8800. + compatible = "arm,sp805-wdt", "arm,primecell";
  8801. + reg = <0x0 0xc200000 0x0 0x1000>;
  8802. + clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  8803. + clock-names = "apb_pclk", "wdog_clk";
  8804. + };
  8805. +
  8806. + cluster3_core1_watchdog: wdt@c210000 {
  8807. + compatible = "arm,sp805-wdt", "arm,primecell";
  8808. + reg = <0x0 0xc210000 0x0 0x1000>;
  8809. + clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  8810. + clock-names = "apb_pclk", "wdog_clk";
  8811. + };
  8812. +
  8813. + cluster4_core0_watchdog: wdt@c300000 {
  8814. + compatible = "arm,sp805-wdt", "arm,primecell";
  8815. + reg = <0x0 0xc300000 0x0 0x1000>;
  8816. + clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  8817. + clock-names = "apb_pclk", "wdog_clk";
  8818. + };
  8819. +
  8820. + cluster4_core1_watchdog: wdt@c310000 {
  8821. + compatible = "arm,sp805-wdt", "arm,primecell";
  8822. + reg = <0x0 0xc310000 0x0 0x1000>;
  8823. + clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  8824. + clock-names = "apb_pclk", "wdog_clk";
  8825. + };
  8826. +
  8827. + crypto: crypto@8000000 {
  8828. + compatible = "fsl,sec-v5.0", "fsl,sec-v4.0";
  8829. + fsl,sec-era = <8>;
  8830. + #address-cells = <1>;
  8831. + #size-cells = <1>;
  8832. + ranges = <0x0 0x00 0x8000000 0x100000>;
  8833. + reg = <0x00 0x8000000 0x0 0x100000>;
  8834. + interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>;
  8835. + dma-coherent;
  8836. +
  8837. + sec_jr0: jr@10000 {
  8838. + compatible = "fsl,sec-v5.0-job-ring",
  8839. + "fsl,sec-v4.0-job-ring";
  8840. + reg = <0x10000 0x10000>;
  8841. + interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
  8842. + };
  8843. +
  8844. + sec_jr1: jr@20000 {
  8845. + compatible = "fsl,sec-v5.0-job-ring",
  8846. + "fsl,sec-v4.0-job-ring";
  8847. + reg = <0x20000 0x10000>;
  8848. + interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
  8849. + };
  8850. +
  8851. + sec_jr2: jr@30000 {
  8852. + compatible = "fsl,sec-v5.0-job-ring",
  8853. + "fsl,sec-v4.0-job-ring";
  8854. + reg = <0x30000 0x10000>;
  8855. + interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
  8856. + };
  8857. +
  8858. + sec_jr3: jr@40000 {
  8859. + compatible = "fsl,sec-v5.0-job-ring",
  8860. + "fsl,sec-v4.0-job-ring";
  8861. + reg = <0x40000 0x10000>;
  8862. + interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
  8863. + };
  8864. + };
  8865. +
  8866. + fsl_mc: fsl-mc@80c000000 {
  8867. + compatible = "fsl,qoriq-mc";
  8868. + reg = <0x00000008 0x0c000000 0 0x40>, /* MC portal base */
  8869. + <0x00000000 0x08340000 0 0x40000>; /* MC control reg */
  8870. + msi-parent = <&its>;
  8871. + iommu-map = <0 &smmu 0 0>; /* This is fixed-up by u-boot */
  8872. + #address-cells = <3>;
  8873. + #size-cells = <1>;
  8874. +
  8875. + /*
  8876. + * Region type 0x0 - MC portals
  8877. + * Region type 0x1 - QBMAN portals
  8878. + */
  8879. + ranges = <0x0 0x0 0x0 0x8 0x0c000000 0x4000000
  8880. + 0x1 0x0 0x0 0x8 0x18000000 0x8000000>;
  8881. +
  8882. + /*
  8883. + * Define the maximum number of MACs present on the SoC.
  8884. + */
  8885. + dpmacs {
  8886. + #address-cells = <1>;
  8887. + #size-cells = <0>;
  8888. +
  8889. + dpmac1: dpmac@1 {
  8890. + compatible = "fsl,qoriq-mc-dpmac";
  8891. + reg = <0x1>;
  8892. + };
  8893. +
  8894. + dpmac2: dpmac@2 {
  8895. + compatible = "fsl,qoriq-mc-dpmac";
  8896. + reg = <0x2>;
  8897. + };
  8898. +
  8899. + dpmac3: dpmac@3 {
  8900. + compatible = "fsl,qoriq-mc-dpmac";
  8901. + reg = <0x3>;
  8902. + };
  8903. +
  8904. + dpmac4: dpmac@4 {
  8905. + compatible = "fsl,qoriq-mc-dpmac";
  8906. + reg = <0x4>;
  8907. + };
  8908. +
  8909. + dpmac5: dpmac@5 {
  8910. + compatible = "fsl,qoriq-mc-dpmac";
  8911. + reg = <0x5>;
  8912. + };
  8913. +
  8914. + dpmac6: dpmac@6 {
  8915. + compatible = "fsl,qoriq-mc-dpmac";
  8916. + reg = <0x6>;
  8917. + };
  8918. +
  8919. + dpmac7: dpmac@7 {
  8920. + compatible = "fsl,qoriq-mc-dpmac";
  8921. + reg = <0x7>;
  8922. + };
  8923. +
  8924. + dpmac8: dpmac@8 {
  8925. + compatible = "fsl,qoriq-mc-dpmac";
  8926. + reg = <0x8>;
  8927. + };
  8928. +
  8929. + dpmac9: dpmac@9 {
  8930. + compatible = "fsl,qoriq-mc-dpmac";
  8931. + reg = <0x9>;
  8932. + };
  8933. +
  8934. + dpmac10: dpmac@a {
  8935. + compatible = "fsl,qoriq-mc-dpmac";
  8936. + reg = <0xa>;
  8937. + };
  8938. +
  8939. + dpmac11: dpmac@b {
  8940. + compatible = "fsl,qoriq-mc-dpmac";
  8941. + reg = <0xb>;
  8942. + };
  8943. +
  8944. + dpmac12: dpmac@c {
  8945. + compatible = "fsl,qoriq-mc-dpmac";
  8946. + reg = <0xc>;
  8947. + };
  8948. +
  8949. + dpmac13: dpmac@d {
  8950. + compatible = "fsl,qoriq-mc-dpmac";
  8951. + reg = <0xd>;
  8952. + };
  8953. +
  8954. + dpmac14: dpmac@e {
  8955. + compatible = "fsl,qoriq-mc-dpmac";
  8956. + reg = <0xe>;
  8957. + };
  8958. +
  8959. + dpmac15: dpmac@f {
  8960. + compatible = "fsl,qoriq-mc-dpmac";
  8961. + reg = <0xf>;
  8962. + };
  8963. +
  8964. + dpmac16: dpmac@10 {
  8965. + compatible = "fsl,qoriq-mc-dpmac";
  8966. + reg = <0x10>;
  8967. + };
  8968. + };
  8969. + };
  8970. +
  8971. + smmu: iommu@5000000 {
  8972. + compatible = "arm,mmu-500";
  8973. + reg = <0 0x5000000 0 0x800000>;
  8974. + #global-interrupts = <12>;
  8975. + #iommu-cells = <1>;
  8976. + stream-match-mask = <0x7C00>;
  8977. + interrupts = <0 13 4>, /* global secure fault */
  8978. + <0 14 4>, /* combined secure interrupt */
  8979. + <0 15 4>, /* global non-secure fault */
  8980. + <0 16 4>, /* combined non-secure interrupt */
  8981. + /* performance counter interrupts 0-7 */
  8982. + <0 211 4>, <0 212 4>,
  8983. + <0 213 4>, <0 214 4>,
  8984. + <0 215 4>, <0 216 4>,
  8985. + <0 217 4>, <0 218 4>,
  8986. + /* per context interrupt, 64 interrupts */
  8987. + <0 146 4>, <0 147 4>,
  8988. + <0 148 4>, <0 149 4>,
  8989. + <0 150 4>, <0 151 4>,
  8990. + <0 152 4>, <0 153 4>,
  8991. + <0 154 4>, <0 155 4>,
  8992. + <0 156 4>, <0 157 4>,
  8993. + <0 158 4>, <0 159 4>,
  8994. + <0 160 4>, <0 161 4>,
  8995. + <0 162 4>, <0 163 4>,
  8996. + <0 164 4>, <0 165 4>,
  8997. + <0 166 4>, <0 167 4>,
  8998. + <0 168 4>, <0 169 4>,
  8999. + <0 170 4>, <0 171 4>,
  9000. + <0 172 4>, <0 173 4>,
  9001. + <0 174 4>, <0 175 4>,
  9002. + <0 176 4>, <0 177 4>,
  9003. + <0 178 4>, <0 179 4>,
  9004. + <0 180 4>, <0 181 4>,
  9005. + <0 182 4>, <0 183 4>,
  9006. + <0 184 4>, <0 185 4>,
  9007. + <0 186 4>, <0 187 4>,
  9008. + <0 188 4>, <0 189 4>,
  9009. + <0 190 4>, <0 191 4>,
  9010. + <0 192 4>, <0 193 4>,
  9011. + <0 194 4>, <0 195 4>,
  9012. + <0 196 4>, <0 197 4>,
  9013. + <0 198 4>, <0 199 4>,
  9014. + <0 200 4>, <0 201 4>,
  9015. + <0 202 4>, <0 203 4>,
  9016. + <0 204 4>, <0 205 4>,
  9017. + <0 206 4>, <0 207 4>,
  9018. + <0 208 4>, <0 209 4>;
  9019. + };
  9020. +
  9021. + dspi: dspi@2100000 {
  9022. + status = "disabled";
  9023. + compatible = "fsl,ls2080a-dspi", "fsl,ls2085a-dspi";
  9024. + #address-cells = <1>;
  9025. + #size-cells = <0>;
  9026. + reg = <0x0 0x2100000 0x0 0x10000>;
  9027. + interrupts = <0 26 0x4>; /* Level high type */
  9028. + clocks = <&clockgen 4 3>;
  9029. + clock-names = "dspi";
  9030. + spi-num-chipselects = <5>;
  9031. + bus-num = <0>;
  9032. + };
  9033. +
  9034. + esdhc: esdhc@2140000 {
  9035. + status = "disabled";
  9036. + compatible = "fsl,ls2080a-esdhc", "fsl,esdhc";
  9037. + reg = <0x0 0x2140000 0x0 0x10000>;
  9038. + interrupts = <0 28 0x4>; /* Level high type */
  9039. + clocks = <&clockgen 4 1>;
  9040. + voltage-ranges = <1800 1800 3300 3300>;
  9041. + sdhci,auto-cmd12;
  9042. + little-endian;
  9043. + bus-width = <4>;
  9044. + };
  9045. +
  9046. + gpio0: gpio@2300000 {
  9047. + compatible = "fsl,ls2080a-gpio", "fsl,qoriq-gpio";
  9048. + reg = <0x0 0x2300000 0x0 0x10000>;
  9049. + interrupts = <0 36 0x4>; /* Level high type */
  9050. + gpio-controller;
  9051. + little-endian;
  9052. + #gpio-cells = <2>;
  9053. + interrupt-controller;
  9054. + #interrupt-cells = <2>;
  9055. + };
  9056. +
  9057. + gpio1: gpio@2310000 {
  9058. + compatible = "fsl,ls2080a-gpio", "fsl,qoriq-gpio";
  9059. + reg = <0x0 0x2310000 0x0 0x10000>;
  9060. + interrupts = <0 36 0x4>; /* Level high type */
  9061. + gpio-controller;
  9062. + little-endian;
  9063. + #gpio-cells = <2>;
  9064. + interrupt-controller;
  9065. + #interrupt-cells = <2>;
  9066. + };
  9067. +
  9068. + gpio2: gpio@2320000 {
  9069. + compatible = "fsl,ls2080a-gpio", "fsl,qoriq-gpio";
  9070. + reg = <0x0 0x2320000 0x0 0x10000>;
  9071. + interrupts = <0 37 0x4>; /* Level high type */
  9072. + gpio-controller;
  9073. + little-endian;
  9074. + #gpio-cells = <2>;
  9075. + interrupt-controller;
  9076. + #interrupt-cells = <2>;
  9077. + };
  9078. +
  9079. + gpio3: gpio@2330000 {
  9080. + compatible = "fsl,ls2080a-gpio", "fsl,qoriq-gpio";
  9081. + reg = <0x0 0x2330000 0x0 0x10000>;
  9082. + interrupts = <0 37 0x4>; /* Level high type */
  9083. + gpio-controller;
  9084. + little-endian;
  9085. + #gpio-cells = <2>;
  9086. + interrupt-controller;
  9087. + #interrupt-cells = <2>;
  9088. + };
  9089. +
  9090. + /* TODO: WRIOP (CCSR?) */
  9091. + emdio1: mdio@0x8B96000 { /* WRIOP0: 0x8B8_0000,
  9092. + * E-MDIO1: 0x1_6000
  9093. + */
  9094. + compatible = "fsl,fman-memac-mdio";
  9095. + reg = <0x0 0x8B96000 0x0 0x1000>;
  9096. + device_type = "mdio"; /* TODO: is this necessary? */
  9097. + little-endian; /* force the driver in LE mode */
  9098. +
  9099. + /* Not necessary on the QDS, but needed on the RDB */
  9100. + #address-cells = <1>;
  9101. + #size-cells = <0>;
  9102. + };
  9103. +
  9104. + emdio2: mdio@0x8B97000 { /* WRIOP0: 0x8B8_0000,
  9105. + * E-MDIO2: 0x1_7000
  9106. + */
  9107. + compatible = "fsl,fman-memac-mdio";
  9108. + reg = <0x0 0x8B97000 0x0 0x1000>;
  9109. + device_type = "mdio"; /* TODO: is this necessary? */
  9110. + little-endian; /* force the driver in LE mode */
  9111. +
  9112. + #address-cells = <1>;
  9113. + #size-cells = <0>;
  9114. + };
  9115. +
  9116. + pcs_mdio1: mdio@0x8c07000 {
  9117. + compatible = "fsl,fman-memac-mdio";
  9118. + reg = <0x0 0x8c07000 0x0 0x1000>;
  9119. + device_type = "mdio";
  9120. + little-endian;
  9121. +
  9122. + #address-cells = <1>;
  9123. + #size-cells = <0>;
  9124. + };
  9125. +
  9126. + pcs_mdio2: mdio@0x8c0b000 {
  9127. + compatible = "fsl,fman-memac-mdio";
  9128. + reg = <0x0 0x8c0b000 0x0 0x1000>;
  9129. + device_type = "mdio";
  9130. + little-endian;
  9131. +
  9132. + #address-cells = <1>;
  9133. + #size-cells = <0>;
  9134. + };
  9135. +
  9136. + pcs_mdio3: mdio@0x8c0f000 {
  9137. + compatible = "fsl,fman-memac-mdio";
  9138. + reg = <0x0 0x8c0f000 0x0 0x1000>;
  9139. + device_type = "mdio";
  9140. + little-endian;
  9141. +
  9142. + #address-cells = <1>;
  9143. + #size-cells = <0>;
  9144. + };
  9145. +
  9146. + pcs_mdio4: mdio@0x8c13000 {
  9147. + compatible = "fsl,fman-memac-mdio";
  9148. + reg = <0x0 0x8c13000 0x0 0x1000>;
  9149. + device_type = "mdio";
  9150. + little-endian;
  9151. +
  9152. + #address-cells = <1>;
  9153. + #size-cells = <0>;
  9154. + };
  9155. +
  9156. + pcs_mdio5: mdio@0x8c17000 {
  9157. + status = "disabled";
  9158. + compatible = "fsl,fman-memac-mdio";
  9159. + reg = <0x0 0x8c17000 0x0 0x1000>;
  9160. + device_type = "mdio";
  9161. + little-endian;
  9162. +
  9163. + #address-cells = <1>;
  9164. + #size-cells = <0>;
  9165. + };
  9166. +
  9167. + pcs_mdio6: mdio@0x8c1b000 {
  9168. + status = "disabled";
  9169. + compatible = "fsl,fman-memac-mdio";
  9170. + reg = <0x0 0x8c1b000 0x0 0x1000>;
  9171. + device_type = "mdio";
  9172. + little-endian;
  9173. +
  9174. + #address-cells = <1>;
  9175. + #size-cells = <0>;
  9176. + };
  9177. +
  9178. + pcs_mdio7: mdio@0x8c1f000 {
  9179. + status = "disabled";
  9180. + compatible = "fsl,fman-memac-mdio";
  9181. + reg = <0x0 0x8c1f000 0x0 0x1000>;
  9182. + device_type = "mdio";
  9183. + little-endian;
  9184. +
  9185. + #address-cells = <1>;
  9186. + #size-cells = <0>;
  9187. + };
  9188. +
  9189. + pcs_mdio8: mdio@0x8c23000 {
  9190. + status = "disabled";
  9191. + compatible = "fsl,fman-memac-mdio";
  9192. + reg = <0x0 0x8c23000 0x0 0x1000>;
  9193. + device_type = "mdio";
  9194. + little-endian;
  9195. +
  9196. + #address-cells = <1>;
  9197. + #size-cells = <0>;
  9198. + };
  9199. +
  9200. + i2c0: i2c@2000000 {
  9201. + status = "disabled";
  9202. + compatible = "fsl,vf610-i2c";
  9203. + #address-cells = <1>;
  9204. + #size-cells = <0>;
  9205. + reg = <0x0 0x2000000 0x0 0x10000>;
  9206. + interrupts = <0 34 0x4>; /* Level high type */
  9207. + clock-names = "i2c";
  9208. + clocks = <&clockgen 4 1>;
  9209. + };
  9210. +
  9211. + i2c1: i2c@2010000 {
  9212. + status = "disabled";
  9213. + compatible = "fsl,vf610-i2c";
  9214. + #address-cells = <1>;
  9215. + #size-cells = <0>;
  9216. + reg = <0x0 0x2010000 0x0 0x10000>;
  9217. + interrupts = <0 34 0x4>; /* Level high type */
  9218. + clock-names = "i2c";
  9219. + clocks = <&clockgen 4 1>;
  9220. + };
  9221. +
  9222. + i2c2: i2c@2020000 {
  9223. + status = "disabled";
  9224. + compatible = "fsl,vf610-i2c";
  9225. + #address-cells = <1>;
  9226. + #size-cells = <0>;
  9227. + reg = <0x0 0x2020000 0x0 0x10000>;
  9228. + interrupts = <0 35 0x4>; /* Level high type */
  9229. + clock-names = "i2c";
  9230. + clocks = <&clockgen 4 1>;
  9231. + };
  9232. +
  9233. + i2c3: i2c@2030000 {
  9234. + status = "disabled";
  9235. + compatible = "fsl,vf610-i2c";
  9236. + #address-cells = <1>;
  9237. + #size-cells = <0>;
  9238. + reg = <0x0 0x2030000 0x0 0x10000>;
  9239. + interrupts = <0 35 0x4>; /* Level high type */
  9240. + clock-names = "i2c";
  9241. + clocks = <&clockgen 4 1>;
  9242. + };
  9243. +
  9244. + ifc: ifc@2240000 {
  9245. + compatible = "fsl,ifc", "simple-bus";
  9246. + reg = <0x0 0x2240000 0x0 0x20000>;
  9247. + interrupts = <0 21 0x4>; /* Level high type */
  9248. + little-endian;
  9249. + #address-cells = <2>;
  9250. + #size-cells = <1>;
  9251. +
  9252. + ranges = <0 0 0x5 0x80000000 0x08000000
  9253. + 2 0 0x5 0x30000000 0x00010000
  9254. + 3 0 0x5 0x20000000 0x00010000>;
  9255. + };
  9256. +
  9257. + qspi: quadspi@20c0000 {
  9258. + status = "disabled";
  9259. + compatible = "fsl,ls2080a-qspi", "fsl,ls1021a-qspi";
  9260. + #address-cells = <1>;
  9261. + #size-cells = <0>;
  9262. + reg = <0x0 0x20c0000 0x0 0x10000>,
  9263. + <0x0 0x20000000 0x0 0x10000000>;
  9264. + reg-names = "QuadSPI", "QuadSPI-memory";
  9265. + interrupts = <0 25 0x4>; /* Level high type */
  9266. + clocks = <&clockgen 4 3>, <&clockgen 4 3>;
  9267. + clock-names = "qspi_en", "qspi";
  9268. + };
  9269. +
  9270. + pcie1: pcie@3400000 {
  9271. + compatible = "fsl,ls2080a-pcie", "fsl,ls2085a-pcie",
  9272. + "snps,dw-pcie";
  9273. + reg-names = "regs", "config";
  9274. + interrupts = <0 108 0x4>; /* aer interrupt */
  9275. + interrupt-names = "aer";
  9276. + #address-cells = <3>;
  9277. + #size-cells = <2>;
  9278. + device_type = "pci";
  9279. + dma-coherent;
  9280. + num-lanes = <4>;
  9281. + bus-range = <0x0 0xff>;
  9282. + msi-parent = <&its>;
  9283. + iommu-map = <0 &smmu 0 1>; /* This is fixed-up by u-boot */
  9284. + #interrupt-cells = <1>;
  9285. + interrupt-map-mask = <0 0 0 7>;
  9286. + interrupt-map = <0000 0 0 1 &gic 0 0 0 109 4>,
  9287. + <0000 0 0 2 &gic 0 0 0 110 4>,
  9288. + <0000 0 0 3 &gic 0 0 0 111 4>,
  9289. + <0000 0 0 4 &gic 0 0 0 112 4>;
  9290. + };
  9291. +
  9292. + pcie2: pcie@3500000 {
  9293. + compatible = "fsl,ls2080a-pcie", "fsl,ls2085a-pcie",
  9294. + "snps,dw-pcie";
  9295. + reg-names = "regs", "config";
  9296. + interrupts = <0 113 0x4>; /* aer interrupt */
  9297. + interrupt-names = "aer";
  9298. + #address-cells = <3>;
  9299. + #size-cells = <2>;
  9300. + device_type = "pci";
  9301. + dma-coherent;
  9302. + num-lanes = <4>;
  9303. + bus-range = <0x0 0xff>;
  9304. + msi-parent = <&its>;
  9305. + iommu-map = <0 &smmu 0 1>; /* This is fixed-up by u-boot */
  9306. + #interrupt-cells = <1>;
  9307. + interrupt-map-mask = <0 0 0 7>;
  9308. + interrupt-map = <0000 0 0 1 &gic 0 0 0 114 4>,
  9309. + <0000 0 0 2 &gic 0 0 0 115 4>,
  9310. + <0000 0 0 3 &gic 0 0 0 116 4>,
  9311. + <0000 0 0 4 &gic 0 0 0 117 4>;
  9312. + };
  9313. +
  9314. + pcie3: pcie@3600000 {
  9315. + compatible = "fsl,ls2080a-pcie", "fsl,ls2085a-pcie",
  9316. + "snps,dw-pcie";
  9317. + reg-names = "regs", "config";
  9318. + interrupts = <0 118 0x4>; /* aer interrupt */
  9319. + interrupt-names = "aer";
  9320. + #address-cells = <3>;
  9321. + #size-cells = <2>;
  9322. + device_type = "pci";
  9323. + dma-coherent;
  9324. + num-lanes = <8>;
  9325. + bus-range = <0x0 0xff>;
  9326. + msi-parent = <&its>;
  9327. + iommu-map = <0 &smmu 0 1>; /* This is fixed-up by u-boot */
  9328. + #interrupt-cells = <1>;
  9329. + interrupt-map-mask = <0 0 0 7>;
  9330. + interrupt-map = <0000 0 0 1 &gic 0 0 0 119 4>,
  9331. + <0000 0 0 2 &gic 0 0 0 120 4>,
  9332. + <0000 0 0 3 &gic 0 0 0 121 4>,
  9333. + <0000 0 0 4 &gic 0 0 0 122 4>;
  9334. + };
  9335. +
  9336. + pcie4: pcie@3700000 {
  9337. + compatible = "fsl,ls2080a-pcie", "fsl,ls2085a-pcie",
  9338. + "snps,dw-pcie";
  9339. + reg-names = "regs", "config";
  9340. + interrupts = <0 123 0x4>; /* aer interrupt */
  9341. + interrupt-names = "aer";
  9342. + #address-cells = <3>;
  9343. + #size-cells = <2>;
  9344. + device_type = "pci";
  9345. + dma-coherent;
  9346. + num-lanes = <4>;
  9347. + bus-range = <0x0 0xff>;
  9348. + msi-parent = <&its>;
  9349. + iommu-map = <0 &smmu 0 1>; /* This is fixed-up by u-boot */
  9350. + #interrupt-cells = <1>;
  9351. + interrupt-map-mask = <0 0 0 7>;
  9352. + interrupt-map = <0000 0 0 1 &gic 0 0 0 124 4>,
  9353. + <0000 0 0 2 &gic 0 0 0 125 4>,
  9354. + <0000 0 0 3 &gic 0 0 0 126 4>,
  9355. + <0000 0 0 4 &gic 0 0 0 127 4>;
  9356. + };
  9357. +
  9358. + sata0: sata@3200000 {
  9359. + status = "disabled";
  9360. + compatible = "fsl,ls2080a-ahci";
  9361. + reg = <0x0 0x3200000 0x0 0x10000>;
  9362. + interrupts = <0 133 0x4>; /* Level high type */
  9363. + clocks = <&clockgen 4 3>;
  9364. + dma-coherent;
  9365. + };
  9366. +
  9367. + sata1: sata@3210000 {
  9368. + status = "disabled";
  9369. + compatible = "fsl,ls2080a-ahci";
  9370. + reg = <0x0 0x3210000 0x0 0x10000>;
  9371. + interrupts = <0 136 0x4>; /* Level high type */
  9372. + clocks = <&clockgen 4 3>;
  9373. + dma-coherent;
  9374. + };
  9375. +
  9376. + usb0: usb3@3100000 {
  9377. + status = "disabled";
  9378. + compatible = "snps,dwc3";
  9379. + reg = <0x0 0x3100000 0x0 0x10000>;
  9380. + interrupts = <0 80 0x4>; /* Level high type */
  9381. + dr_mode = "host";
  9382. + snps,quirk-frame-length-adjustment = <0x20>;
  9383. + snps,dis_rxdet_inp3_quirk;
  9384. + };
  9385. +
  9386. + usb1: usb3@3110000 {
  9387. + status = "disabled";
  9388. + compatible = "snps,dwc3";
  9389. + reg = <0x0 0x3110000 0x0 0x10000>;
  9390. + interrupts = <0 81 0x4>; /* Level high type */
  9391. + dr_mode = "host";
  9392. + snps,quirk-frame-length-adjustment = <0x20>;
  9393. + snps,dis_rxdet_inp3_quirk;
  9394. + };
  9395. +
  9396. + serdes1: serdes@1ea0000 {
  9397. + reg = <0x0 0x1ea0000 0 0x00002000>;
  9398. + };
  9399. +
  9400. + ccn@4000000 {
  9401. + compatible = "arm,ccn-504";
  9402. + reg = <0x0 0x04000000 0x0 0x01000000>;
  9403. + interrupts = <0 12 4>;
  9404. + };
  9405. +
  9406. + ftm0: ftm0@2800000 {
  9407. + compatible = "fsl,ls208xa-ftm";
  9408. + reg = <0x0 0x2800000 0x0 0x10000>,
  9409. + <0x0 0x1e34050 0x0 0x4>;
  9410. + interrupts = <0 44 4>;
  9411. + reg-names = "ftm", "FlexTimer1";
  9412. + };
  9413. + };
  9414. +
  9415. + ddr1: memory-controller@1080000 {
  9416. + compatible = "fsl,qoriq-memory-controller";
  9417. + reg = <0x0 0x1080000 0x0 0x1000>;
  9418. + interrupts = <0 17 0x4>;
  9419. + little-endian;
  9420. + };
  9421. +
  9422. + ddr2: memory-controller@1090000 {
  9423. + compatible = "fsl,qoriq-memory-controller";
  9424. + reg = <0x0 0x1090000 0x0 0x1000>;
  9425. + interrupts = <0 18 0x4>;
  9426. + little-endian;
  9427. + };
  9428. +
  9429. + firmware {
  9430. + optee {
  9431. + compatible = "linaro,optee-tz";
  9432. + method = "smc";
  9433. + };
  9434. + };
  9435. +};
  9436. --- /dev/null
  9437. +++ b/arch/arm64/boot/dts/freescale/qoriq-bman1-portals.dtsi
  9438. @@ -0,0 +1,81 @@
  9439. +/*
  9440. + * QorIQ BMan Portals device tree
  9441. + *
  9442. + * Copyright 2011-2016 Freescale Semiconductor Inc.
  9443. + *
  9444. + * SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
  9445. + */
  9446. +
  9447. +&bportals {
  9448. + #address-cells = <1>;
  9449. + #size-cells = <1>;
  9450. + compatible = "simple-bus";
  9451. +
  9452. + bman-portal@0 {
  9453. + cell-index = <0>;
  9454. + compatible = "fsl,bman-portal";
  9455. + reg = <0x0 0x4000 0x4000000 0x4000>;
  9456. + interrupts = <0 173 0x4>;
  9457. + };
  9458. +
  9459. + bman-portal@10000 {
  9460. + cell-index = <1>;
  9461. + compatible = "fsl,bman-portal";
  9462. + reg = <0x10000 0x4000 0x4010000 0x4000>;
  9463. + interrupts = <0 175 0x4>;
  9464. + };
  9465. +
  9466. + bman-portal@20000 {
  9467. + cell-index = <2>;
  9468. + compatible = "fsl,bman-portal";
  9469. + reg = <0x20000 0x4000 0x4020000 0x4000>;
  9470. + interrupts = <0 177 0x4>;
  9471. + };
  9472. +
  9473. + bman-portal@30000 {
  9474. + cell-index = <3>;
  9475. + compatible = "fsl,bman-portal";
  9476. + reg = <0x30000 0x4000 0x4030000 0x4000>;
  9477. + interrupts = <0 179 0x4>;
  9478. + };
  9479. +
  9480. + bman-portal@40000 {
  9481. + cell-index = <4>;
  9482. + compatible = "fsl,bman-portal";
  9483. + reg = <0x40000 0x4000 0x4040000 0x4000>;
  9484. + interrupts = <0 181 0x4>;
  9485. + };
  9486. +
  9487. + bman-portal@50000 {
  9488. + cell-index = <5>;
  9489. + compatible = "fsl,bman-portal";
  9490. + reg = <0x50000 0x4000 0x4050000 0x4000>;
  9491. + interrupts = <0 183 0x4>;
  9492. + };
  9493. +
  9494. + bman-portal@60000 {
  9495. + cell-index = <6>;
  9496. + compatible = "fsl,bman-portal";
  9497. + reg = <0x60000 0x4000 0x4060000 0x4000>;
  9498. + interrupts = <0 185 0x4>;
  9499. + };
  9500. +
  9501. + bman-portal@70000 {
  9502. + cell-index = <7>;
  9503. + compatible = "fsl,bman-portal";
  9504. + reg = <0x70000 0x4000 0x4070000 0x4000>;
  9505. + interrupts = <0 187 0x4>;
  9506. + };
  9507. +
  9508. + bman-portal@80000 {
  9509. + cell-index = <8>;
  9510. + compatible = "fsl,bman-portal";
  9511. + reg = <0x80000 0x4000 0x4080000 0x4000>;
  9512. + interrupts = <0 189 0x4>;
  9513. + };
  9514. +
  9515. + bman-bpids@0 {
  9516. + compatible = "fsl,bpid-range";
  9517. + fsl,bpid-range = <32 32>;
  9518. + };
  9519. +};
  9520. --- /dev/null
  9521. +++ b/arch/arm64/boot/dts/freescale/qoriq-dpaa-eth.dtsi
  9522. @@ -0,0 +1,73 @@
  9523. +/*
  9524. + * QorIQ FMan v3 10g port #1 device tree stub [ controller @ offset 0x400000 ]
  9525. + *
  9526. + * Copyright 2012 - 2015 Freescale Semiconductor Inc.
  9527. + *
  9528. + * Redistribution and use in source and binary forms, with or without
  9529. + * modification, are permitted provided that the following conditions are met:
  9530. + * * Redistributions of source code must retain the above copyright
  9531. + * notice, this list of conditions and the following disclaimer.
  9532. + * * Redistributions in binary form must reproduce the above copyright
  9533. + * notice, this list of conditions and the following disclaimer in the
  9534. + * documentation and/or other materials provided with the distribution.
  9535. + * * Neither the name of Freescale Semiconductor nor the
  9536. + * names of its contributors may be used to endorse or promote products
  9537. + * derived from this software without specific prior written permission.
  9538. + *
  9539. + *
  9540. + * ALTERNATIVELY, this software may be distributed under the terms of the
  9541. + * GNU General Public License ("GPL") as published by the Free Software
  9542. + * Foundation, either version 2 of that License or (at your option) any
  9543. + * later version.
  9544. + *
  9545. + * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
  9546. + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  9547. + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  9548. + * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
  9549. + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  9550. + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  9551. + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  9552. + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  9553. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  9554. + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  9555. + */
  9556. +
  9557. +fsldpaa: fsl,dpaa {
  9558. + compatible = "fsl,ls1043a-dpaa", "simple-bus", "fsl,dpaa";
  9559. + ethernet@0 {
  9560. + compatible = "fsl,dpa-ethernet";
  9561. + fsl,fman-mac = <&enet0>;
  9562. + dma-coherent;
  9563. + };
  9564. + ethernet@1 {
  9565. + compatible = "fsl,dpa-ethernet";
  9566. + fsl,fman-mac = <&enet1>;
  9567. + dma-coherent;
  9568. + };
  9569. + ethernet@2 {
  9570. + compatible = "fsl,dpa-ethernet";
  9571. + fsl,fman-mac = <&enet2>;
  9572. + dma-coherent;
  9573. + };
  9574. + ethernet@3 {
  9575. + compatible = "fsl,dpa-ethernet";
  9576. + fsl,fman-mac = <&enet3>;
  9577. + dma-coherent;
  9578. + };
  9579. + ethernet@4 {
  9580. + compatible = "fsl,dpa-ethernet";
  9581. + fsl,fman-mac = <&enet4>;
  9582. + dma-coherent;
  9583. + };
  9584. + ethernet@5 {
  9585. + compatible = "fsl,dpa-ethernet";
  9586. + fsl,fman-mac = <&enet5>;
  9587. + dma-coherent;
  9588. + };
  9589. + ethernet@8 {
  9590. + compatible = "fsl,dpa-ethernet";
  9591. + fsl,fman-mac = <&enet6>;
  9592. + dma-coherent;
  9593. + };
  9594. +};
  9595. +
  9596. --- /dev/null
  9597. +++ b/arch/arm64/boot/dts/freescale/qoriq-fman3-0-10g-0.dtsi
  9598. @@ -0,0 +1,43 @@
  9599. +/*
  9600. + * QorIQ FMan v3 10g port #0 device tree
  9601. + *
  9602. + * Copyright 2012-2015 Freescale Semiconductor Inc.
  9603. + *
  9604. + * SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
  9605. + */
  9606. +
  9607. +fman@1a00000 {
  9608. + fman0_rx_0x10: port@90000 {
  9609. + cell-index = <0x10>;
  9610. + compatible = "fsl,fman-v3-port-rx", "fsl,fman-port-10g-rx";
  9611. + reg = <0x90000 0x1000>;
  9612. + fsl,fman-10g-port;
  9613. + };
  9614. +
  9615. + fman0_tx_0x30: port@b0000 {
  9616. + cell-index = <0x30>;
  9617. + compatible = "fsl,fman-v3-port-tx", "fsl,fman-port-10g-tx";
  9618. + reg = <0xb0000 0x1000>;
  9619. + fsl,fman-10g-port;
  9620. + fsl,qman-channel-id = <0x800>;
  9621. + };
  9622. +
  9623. + ethernet@f0000 {
  9624. + cell-index = <0x8>;
  9625. + compatible = "fsl,fman-memac";
  9626. + reg = <0xf0000 0x1000>;
  9627. + fsl,fman-ports = <&fman0_rx_0x10 &fman0_tx_0x30>;
  9628. + pcsphy-handle = <&pcsphy6>;
  9629. + };
  9630. +
  9631. + mdio@f1000 {
  9632. + #address-cells = <1>;
  9633. + #size-cells = <0>;
  9634. + compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
  9635. + reg = <0xf1000 0x1000>;
  9636. +
  9637. + pcsphy6: ethernet-phy@0 {
  9638. + reg = <0x0>;
  9639. + };
  9640. + };
  9641. +};
  9642. --- /dev/null
  9643. +++ b/arch/arm64/boot/dts/freescale/qoriq-fman3-0-10g-1.dtsi
  9644. @@ -0,0 +1,43 @@
  9645. +/*
  9646. + * QorIQ FMan v3 10g port #1 device tree
  9647. + *
  9648. + * Copyright 2012-2015 Freescale Semiconductor Inc.
  9649. + *
  9650. + * SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
  9651. + */
  9652. +
  9653. +fman@1a00000 {
  9654. + fman0_rx_0x11: port@91000 {
  9655. + cell-index = <0x11>;
  9656. + compatible = "fsl,fman-v3-port-rx", "fsl,fman-port-10g-rx";
  9657. + reg = <0x91000 0x1000>;
  9658. + fsl,fman-10g-port;
  9659. + };
  9660. +
  9661. + fman0_tx_0x31: port@b1000 {
  9662. + cell-index = <0x31>;
  9663. + compatible = "fsl,fman-v3-port-tx", "fsl,fman-port-10g-tx";
  9664. + reg = <0xb1000 0x1000>;
  9665. + fsl,fman-10g-port;
  9666. + fsl,qman-channel-id = <0x801>;
  9667. + };
  9668. +
  9669. + ethernet@f2000 {
  9670. + cell-index = <0x9>;
  9671. + compatible = "fsl,fman-memac";
  9672. + reg = <0xf2000 0x1000>;
  9673. + fsl,fman-ports = <&fman0_rx_0x11 &fman0_tx_0x31>;
  9674. + pcsphy-handle = <&pcsphy7>;
  9675. + };
  9676. +
  9677. + mdio@f3000 {
  9678. + #address-cells = <1>;
  9679. + #size-cells = <0>;
  9680. + compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
  9681. + reg = <0xf3000 0x1000>;
  9682. +
  9683. + pcsphy7: ethernet-phy@0 {
  9684. + reg = <0x0>;
  9685. + };
  9686. + };
  9687. +};
  9688. --- /dev/null
  9689. +++ b/arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-0.dtsi
  9690. @@ -0,0 +1,42 @@
  9691. +/*
  9692. + * QorIQ FMan v3 1g port #0 device tree
  9693. + *
  9694. + * Copyright 2012-2015 Freescale Semiconductor Inc.
  9695. + *
  9696. + * SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
  9697. + */
  9698. +
  9699. +fman@1a00000 {
  9700. + fman0_rx_0x08: port@88000 {
  9701. + cell-index = <0x8>;
  9702. + compatible = "fsl,fman-v3-port-rx", "fsl,fman-port-1g-rx";
  9703. + reg = <0x88000 0x1000>;
  9704. + };
  9705. +
  9706. + fman0_tx_0x28: port@a8000 {
  9707. + cell-index = <0x28>;
  9708. + compatible = "fsl,fman-v3-port-tx", "fsl,fman-port-1g-tx";
  9709. + reg = <0xa8000 0x1000>;
  9710. + fsl,qman-channel-id = <0x802>;
  9711. + };
  9712. +
  9713. + ethernet@e0000 {
  9714. + cell-index = <0>;
  9715. + compatible = "fsl,fman-memac";
  9716. + reg = <0xe0000 0x1000>;
  9717. + fsl,fman-ports = <&fman0_rx_0x08 &fman0_tx_0x28>;
  9718. + ptp-timer = <&ptp_timer0>;
  9719. + pcsphy-handle = <&pcsphy0>;
  9720. + };
  9721. +
  9722. + mdio@e1000 {
  9723. + #address-cells = <1>;
  9724. + #size-cells = <0>;
  9725. + compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
  9726. + reg = <0xe1000 0x1000>;
  9727. +
  9728. + pcsphy0: ethernet-phy@0 {
  9729. + reg = <0x0>;
  9730. + };
  9731. + };
  9732. +};
  9733. --- /dev/null
  9734. +++ b/arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-1.dtsi
  9735. @@ -0,0 +1,42 @@
  9736. +/*
  9737. + * QorIQ FMan v3 1g port #1 device tree
  9738. + *
  9739. + * Copyright 2012-2015 Freescale Semiconductor Inc.
  9740. + *
  9741. + * SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
  9742. + */
  9743. +
  9744. +fman@1a00000 {
  9745. + fman0_rx_0x09: port@89000 {
  9746. + cell-index = <0x9>;
  9747. + compatible = "fsl,fman-v3-port-rx", "fsl,fman-port-1g-rx";
  9748. + reg = <0x89000 0x1000>;
  9749. + };
  9750. +
  9751. + fman0_tx_0x29: port@a9000 {
  9752. + cell-index = <0x29>;
  9753. + compatible = "fsl,fman-v3-port-tx", "fsl,fman-port-1g-tx";
  9754. + reg = <0xa9000 0x1000>;
  9755. + fsl,qman-channel-id = <0x803>;
  9756. + };
  9757. +
  9758. + ethernet@e2000 {
  9759. + cell-index = <1>;
  9760. + compatible = "fsl,fman-memac";
  9761. + reg = <0xe2000 0x1000>;
  9762. + fsl,fman-ports = <&fman0_rx_0x09 &fman0_tx_0x29>;
  9763. + ptp-timer = <&ptp_timer0>;
  9764. + pcsphy-handle = <&pcsphy1>;
  9765. + };
  9766. +
  9767. + mdio@e3000 {
  9768. + #address-cells = <1>;
  9769. + #size-cells = <0>;
  9770. + compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
  9771. + reg = <0xe3000 0x1000>;
  9772. +
  9773. + pcsphy1: ethernet-phy@0 {
  9774. + reg = <0x0>;
  9775. + };
  9776. + };
  9777. +};
  9778. --- /dev/null
  9779. +++ b/arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-2.dtsi
  9780. @@ -0,0 +1,42 @@
  9781. +/*
  9782. + * QorIQ FMan v3 1g port #2 device tree
  9783. + *
  9784. + * Copyright 2012-2015 Freescale Semiconductor Inc.
  9785. + *
  9786. + * SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
  9787. + */
  9788. +
  9789. +fman@1a00000 {
  9790. + fman0_rx_0x0a: port@8a000 {
  9791. + cell-index = <0xa>;
  9792. + compatible = "fsl,fman-v3-port-rx", "fsl,fman-port-1g-rx";
  9793. + reg = <0x8a000 0x1000>;
  9794. + };
  9795. +
  9796. + fman0_tx_0x2a: port@aa000 {
  9797. + cell-index = <0x2a>;
  9798. + compatible = "fsl,fman-v3-port-tx", "fsl,fman-port-1g-tx";
  9799. + reg = <0xaa000 0x1000>;
  9800. + fsl,qman-channel-id = <0x804>;
  9801. + };
  9802. +
  9803. + ethernet@e4000 {
  9804. + cell-index = <2>;
  9805. + compatible = "fsl,fman-memac";
  9806. + reg = <0xe4000 0x1000>;
  9807. + fsl,fman-ports = <&fman0_rx_0x0a &fman0_tx_0x2a>;
  9808. + ptp-timer = <&ptp_timer0>;
  9809. + pcsphy-handle = <&pcsphy2>;
  9810. + };
  9811. +
  9812. + mdio@e5000 {
  9813. + #address-cells = <1>;
  9814. + #size-cells = <0>;
  9815. + compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
  9816. + reg = <0xe5000 0x1000>;
  9817. +
  9818. + pcsphy2: ethernet-phy@0 {
  9819. + reg = <0x0>;
  9820. + };
  9821. + };
  9822. +};
  9823. --- /dev/null
  9824. +++ b/arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-3.dtsi
  9825. @@ -0,0 +1,42 @@
  9826. +/*
  9827. + * QorIQ FMan v3 1g port #3 device tree
  9828. + *
  9829. + * Copyright 2012-2015 Freescale Semiconductor Inc.
  9830. + *
  9831. + * SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
  9832. + */
  9833. +
  9834. +fman@1a00000 {
  9835. + fman0_rx_0x0b: port@8b000 {
  9836. + cell-index = <0xb>;
  9837. + compatible = "fsl,fman-v3-port-rx", "fsl,fman-port-1g-rx";
  9838. + reg = <0x8b000 0x1000>;
  9839. + };
  9840. +
  9841. + fman0_tx_0x2b: port@ab000 {
  9842. + cell-index = <0x2b>;
  9843. + compatible = "fsl,fman-v3-port-tx", "fsl,fman-port-1g-tx";
  9844. + reg = <0xab000 0x1000>;
  9845. + fsl,qman-channel-id = <0x805>;
  9846. + };
  9847. +
  9848. + ethernet@e6000 {
  9849. + cell-index = <3>;
  9850. + compatible = "fsl,fman-memac";
  9851. + reg = <0xe6000 0x1000>;
  9852. + fsl,fman-ports = <&fman0_rx_0x0b &fman0_tx_0x2b>;
  9853. + ptp-timer = <&ptp_timer0>;
  9854. + pcsphy-handle = <&pcsphy3>;
  9855. + };
  9856. +
  9857. + mdio@e7000 {
  9858. + #address-cells = <1>;
  9859. + #size-cells = <0>;
  9860. + compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
  9861. + reg = <0xe7000 0x1000>;
  9862. +
  9863. + pcsphy3: ethernet-phy@0 {
  9864. + reg = <0x0>;
  9865. + };
  9866. + };
  9867. +};
  9868. --- /dev/null
  9869. +++ b/arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-4.dtsi
  9870. @@ -0,0 +1,42 @@
  9871. +/*
  9872. + * QorIQ FMan v3 1g port #4 device tree
  9873. + *
  9874. + * Copyright 2012-2015 Freescale Semiconductor Inc.
  9875. + *
  9876. + * SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
  9877. + */
  9878. +
  9879. +fman@1a00000 {
  9880. + fman0_rx_0x0c: port@8c000 {
  9881. + cell-index = <0xc>;
  9882. + compatible = "fsl,fman-v3-port-rx", "fsl,fman-port-1g-rx";
  9883. + reg = <0x8c000 0x1000>;
  9884. + };
  9885. +
  9886. + fman0_tx_0x2c: port@ac000 {
  9887. + cell-index = <0x2c>;
  9888. + compatible = "fsl,fman-v3-port-tx", "fsl,fman-port-1g-tx";
  9889. + reg = <0xac000 0x1000>;
  9890. + fsl,qman-channel-id = <0x806>;
  9891. + };
  9892. +
  9893. + ethernet@e8000 {
  9894. + cell-index = <4>;
  9895. + compatible = "fsl,fman-memac";
  9896. + reg = <0xe8000 0x1000>;
  9897. + fsl,fman-ports = <&fman0_rx_0x0c &fman0_tx_0x2c>;
  9898. + ptp-timer = <&ptp_timer0>;
  9899. + pcsphy-handle = <&pcsphy4>;
  9900. + };
  9901. +
  9902. + mdio@e9000 {
  9903. + #address-cells = <1>;
  9904. + #size-cells = <0>;
  9905. + compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
  9906. + reg = <0xe9000 0x1000>;
  9907. +
  9908. + pcsphy4: ethernet-phy@0 {
  9909. + reg = <0x0>;
  9910. + };
  9911. + };
  9912. +};
  9913. --- /dev/null
  9914. +++ b/arch/arm64/boot/dts/freescale/qoriq-fman3-0-1g-5.dtsi
  9915. @@ -0,0 +1,42 @@
  9916. +/*
  9917. + * QorIQ FMan v3 1g port #5 device tree
  9918. + *
  9919. + * Copyright 2012-2015 Freescale Semiconductor Inc.
  9920. + *
  9921. + * SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
  9922. + */
  9923. +
  9924. +fman@1a00000 {
  9925. + fman0_rx_0x0d: port@8d000 {
  9926. + cell-index = <0xd>;
  9927. + compatible = "fsl,fman-v3-port-rx", "fsl,fman-port-1g-rx";
  9928. + reg = <0x8d000 0x1000>;
  9929. + };
  9930. +
  9931. + fman0_tx_0x2d: port@ad000 {
  9932. + cell-index = <0x2d>;
  9933. + compatible = "fsl,fman-v3-port-tx", "fsl,fman-port-1g-tx";
  9934. + reg = <0xad000 0x1000>;
  9935. + fsl,qman-channel-id = <0x807>;
  9936. + };
  9937. +
  9938. + ethernet@ea000 {
  9939. + cell-index = <5>;
  9940. + compatible = "fsl,fman-memac";
  9941. + reg = <0xea000 0x1000>;
  9942. + fsl,fman-ports = <&fman0_rx_0x0d &fman0_tx_0x2d>;
  9943. + ptp-timer = <&ptp_timer0>;
  9944. + pcsphy-handle = <&pcsphy5>;
  9945. + };
  9946. +
  9947. + mdio@eb000 {
  9948. + #address-cells = <1>;
  9949. + #size-cells = <0>;
  9950. + compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
  9951. + reg = <0xeb000 0x1000>;
  9952. +
  9953. + pcsphy5: ethernet-phy@0 {
  9954. + reg = <0x0>;
  9955. + };
  9956. + };
  9957. +};
  9958. --- /dev/null
  9959. +++ b/arch/arm64/boot/dts/freescale/qoriq-fman3-0-6oh.dtsi
  9960. @@ -0,0 +1,47 @@
  9961. +/*
  9962. + * QorIQ FMan v3 OH ports device tree
  9963. + *
  9964. + * Copyright 2012-2015 Freescale Semiconductor Inc.
  9965. + *
  9966. + * SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
  9967. + */
  9968. +
  9969. +fman@1a00000 {
  9970. +
  9971. + fman0_oh1: port@82000 {
  9972. + cell-index = <0>;
  9973. + compatible = "fsl,fman-port-oh";
  9974. + reg = <0x82000 0x1000>;
  9975. + };
  9976. +
  9977. + fman0_oh2: port@83000 {
  9978. + cell-index = <1>;
  9979. + compatible = "fsl,fman-port-oh";
  9980. + reg = <0x83000 0x1000>;
  9981. + };
  9982. +
  9983. + fman0_oh3: port@84000 {
  9984. + cell-index = <2>;
  9985. + compatible = "fsl,fman-port-oh";
  9986. + reg = <0x84000 0x1000>;
  9987. + };
  9988. +
  9989. + fman0_oh4: port@85000 {
  9990. + cell-index = <3>;
  9991. + compatible = "fsl,fman-port-oh";
  9992. + reg = <0x85000 0x1000>;
  9993. + };
  9994. +
  9995. + fman0_oh5: port@86000 {
  9996. + cell-index = <4>;
  9997. + compatible = "fsl,fman-port-oh";
  9998. + reg = <0x86000 0x1000>;
  9999. + };
  10000. +
  10001. + fman0_oh6: port@87000 {
  10002. + cell-index = <5>;
  10003. + compatible = "fsl,fman-port-oh";
  10004. + reg = <0x87000 0x1000>;
  10005. + };
  10006. +
  10007. +};
  10008. --- /dev/null
  10009. +++ b/arch/arm64/boot/dts/freescale/qoriq-fman3-0.dtsi
  10010. @@ -0,0 +1,130 @@
  10011. +/*
  10012. + * QorIQ FMan v3 device tree
  10013. + *
  10014. + * Copyright 2012-2015 Freescale Semiconductor Inc.
  10015. + *
  10016. + * SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
  10017. + */
  10018. +
  10019. +fman0: fman@1a00000 {
  10020. + #address-cells = <1>;
  10021. + #size-cells = <1>;
  10022. + cell-index = <0>;
  10023. + compatible = "fsl,fman";
  10024. + ranges = <0x0 0x00 0x1a00000 0x100000>;
  10025. + reg = <0x0 0x1a00000 0x0 0x100000>;
  10026. + interrupts = <0 44 0x4>, <0 45 0x4>;
  10027. + clocks = <&clockgen 3 0>;
  10028. + clock-names = "fmanclk";
  10029. + fsl,qman-channel-range = <0x800 0x10>;
  10030. +
  10031. + cc {
  10032. + compatible = "fsl,fman-cc";
  10033. + };
  10034. +
  10035. + muram@0 {
  10036. + compatible = "fsl,fman-muram";
  10037. + reg = <0x0 0x60000>;
  10038. + };
  10039. +
  10040. + bmi@80000 {
  10041. + compatible = "fsl,fman-bmi";
  10042. + reg = <0x80000 0x400>;
  10043. + };
  10044. +
  10045. + qmi@80400 {
  10046. + compatible = "fsl,fman-qmi";
  10047. + reg = <0x80400 0x400>;
  10048. + };
  10049. +
  10050. + fman0_oh_0x2: port@82000 {
  10051. + cell-index = <0x2>;
  10052. + compatible = "fsl,fman-v3-port-oh";
  10053. + reg = <0x82000 0x1000>;
  10054. + fsl,qman-channel-id = <0x809>;
  10055. + };
  10056. +
  10057. + fman0_oh_0x3: port@83000 {
  10058. + cell-index = <0x3>;
  10059. + compatible = "fsl,fman-v3-port-oh";
  10060. + reg = <0x83000 0x1000>;
  10061. + fsl,qman-channel-id = <0x80a>;
  10062. + };
  10063. +
  10064. + fman0_oh_0x4: port@84000 {
  10065. + cell-index = <0x4>;
  10066. + compatible = "fsl,fman-v3-port-oh";
  10067. + reg = <0x84000 0x1000>;
  10068. + fsl,qman-channel-id = <0x80b>;
  10069. + };
  10070. +
  10071. + fman0_oh_0x5: port@85000 {
  10072. + cell-index = <0x5>;
  10073. + compatible = "fsl,fman-v3-port-oh";
  10074. + reg = <0x85000 0x1000>;
  10075. + fsl,qman-channel-id = <0x80c>;
  10076. + };
  10077. +
  10078. + fman0_oh_0x6: port@86000 {
  10079. + cell-index = <0x6>;
  10080. + compatible = "fsl,fman-v3-port-oh";
  10081. + reg = <0x86000 0x1000>;
  10082. + fsl,qman-channel-id = <0x80d>;
  10083. + };
  10084. +
  10085. + fman0_oh_0x7: port@87000 {
  10086. + cell-index = <0x7>;
  10087. + compatible = "fsl,fman-v3-port-oh";
  10088. + reg = <0x87000 0x1000>;
  10089. + fsl,qman-channel-id = <0x80e>;
  10090. + };
  10091. +
  10092. + policer@c0000 {
  10093. + compatible = "fsl,fman-policer";
  10094. + reg = <0xc0000 0x1000>;
  10095. + };
  10096. +
  10097. + keygen@c1000 {
  10098. + compatible = "fsl,fman-keygen";
  10099. + reg = <0xc1000 0x1000>;
  10100. + };
  10101. +
  10102. + dma@c2000 {
  10103. + compatible = "fsl,fman-dma";
  10104. + reg = <0xc2000 0x1000>;
  10105. + };
  10106. +
  10107. + fpm@c3000 {
  10108. + compatible = "fsl,fman-fpm";
  10109. + reg = <0xc3000 0x1000>;
  10110. + };
  10111. +
  10112. + parser@c7000 {
  10113. + compatible = "fsl,fman-parser";
  10114. + reg = <0xc7000 0x1000>;
  10115. + };
  10116. +
  10117. + vsps@dc000 {
  10118. + compatible = "fsl,fman-vsps";
  10119. + reg = <0xdc000 0x1000>;
  10120. + };
  10121. +
  10122. + mdio0: mdio@fc000 {
  10123. + #address-cells = <1>;
  10124. + #size-cells = <0>;
  10125. + compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
  10126. + reg = <0xfc000 0x1000>;
  10127. + };
  10128. +
  10129. + xmdio0: mdio@fd000 {
  10130. + #address-cells = <1>;
  10131. + #size-cells = <0>;
  10132. + compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
  10133. + reg = <0xfd000 0x1000>;
  10134. + };
  10135. +
  10136. + ptp_timer0: ptp-timer@fe000 {
  10137. + compatible = "fsl,fman-ptp-timer", "fsl,fman-rtc";
  10138. + reg = <0xfe000 0x1000>;
  10139. + };
  10140. +};
  10141. --- /dev/null
  10142. +++ b/arch/arm64/boot/dts/freescale/qoriq-qman1-portals.dtsi
  10143. @@ -0,0 +1,104 @@
  10144. +/*
  10145. + * QorIQ QMan Portals device tree
  10146. + *
  10147. + * Copyright 2011-2016 Freescale Semiconductor Inc.
  10148. + *
  10149. + * SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
  10150. + */
  10151. +
  10152. +&qportals {
  10153. + #address-cells = <1>;
  10154. + #size-cells = <1>;
  10155. + compatible = "simple-bus";
  10156. +
  10157. + qportal0: qman-portal@0 {
  10158. + compatible = "fsl,qman-portal";
  10159. + reg = <0x0 0x4000 0x4000000 0x4000>;
  10160. + interrupts = <0 172 0x4>;
  10161. + cell-index = <0>;
  10162. + };
  10163. +
  10164. + qportal1: qman-portal@10000 {
  10165. + compatible = "fsl,qman-portal";
  10166. + reg = <0x10000 0x4000 0x4010000 0x4000>;
  10167. + interrupts = <0 174 0x4>;
  10168. + cell-index = <1>;
  10169. + };
  10170. +
  10171. + qportal2: qman-portal@20000 {
  10172. + compatible = "fsl,qman-portal";
  10173. + reg = <0x20000 0x4000 0x4020000 0x4000>;
  10174. + interrupts = <0 176 0x4>;
  10175. + cell-index = <2>;
  10176. + };
  10177. +
  10178. + qportal3: qman-portal@30000 {
  10179. + compatible = "fsl,qman-portal";
  10180. + reg = <0x30000 0x4000 0x4030000 0x4000>;
  10181. + interrupts = <0 178 0x4>;
  10182. + cell-index = <3>;
  10183. + };
  10184. +
  10185. + qportal4: qman-portal@40000 {
  10186. + compatible = "fsl,qman-portal";
  10187. + reg = <0x40000 0x4000 0x4040000 0x4000>;
  10188. + interrupts = <0 180 0x4>;
  10189. + cell-index = <4>;
  10190. + };
  10191. +
  10192. + qportal5: qman-portal@50000 {
  10193. + compatible = "fsl,qman-portal";
  10194. + reg = <0x50000 0x4000 0x4050000 0x4000>;
  10195. + interrupts = <0 182 0x4>;
  10196. + cell-index = <5>;
  10197. + };
  10198. +
  10199. + qportal6: qman-portal@60000 {
  10200. + compatible = "fsl,qman-portal";
  10201. + reg = <0x60000 0x4000 0x4060000 0x4000>;
  10202. + interrupts = <0 184 0x4>;
  10203. + cell-index = <6>;
  10204. + };
  10205. +
  10206. + qportal7: qman-portal@70000 {
  10207. + compatible = "fsl,qman-portal";
  10208. + reg = <0x70000 0x4000 0x4070000 0x4000>;
  10209. + interrupts = <0 186 0x4>;
  10210. + cell-index = <7>;
  10211. + };
  10212. +
  10213. + qportal8: qman-portal@80000 {
  10214. + compatible = "fsl,qman-portal";
  10215. + reg = <0x80000 0x4000 0x4080000 0x4000>;
  10216. + interrupts = <0 188 0x4>;
  10217. + cell-index = <8>;
  10218. + };
  10219. +
  10220. + qman-fqids@0 {
  10221. + compatible = "fsl,fqid-range";
  10222. + fsl,fqid-range = <256 256>;
  10223. + };
  10224. +
  10225. + qman-fqids@1 {
  10226. + compatible = "fsl,fqid-range";
  10227. + fsl,fqid-range = <32768 32768>;
  10228. + };
  10229. +
  10230. + qman-pools@0 {
  10231. + compatible = "fsl,pool-channel-range";
  10232. + fsl,pool-channel-range = <0x401 0xf>;
  10233. + };
  10234. +
  10235. + qman-cgrids@0 {
  10236. + compatible = "fsl,cgrid-range";
  10237. + fsl,cgrid-range = <0 256>;
  10238. + };
  10239. +
  10240. + qman-ceetm@0 {
  10241. + compatible = "fsl,qman-ceetm";
  10242. + fsl,ceetm-lfqid-range = <0xf00000 0x1000>;
  10243. + fsl,ceetm-sp-range = <0 12>;
  10244. + fsl,ceetm-lni-range = <0 8>;
  10245. + fsl,ceetm-channel-range = <0 32>;
  10246. + };
  10247. +};
  10248. --- a/arch/powerpc/boot/dts/fsl/qoriq-bman1-portals.dtsi
  10249. +++ b/arch/powerpc/boot/dts/fsl/qoriq-bman1-portals.dtsi
  10250. @@ -38,51 +38,61 @@
  10251. compatible = "simple-bus";
  10252. bman-portal@0 {
  10253. + cell-index = <0>;
  10254. compatible = "fsl,bman-portal";
  10255. reg = <0x0 0x4000>, <0x100000 0x1000>;
  10256. interrupts = <105 2 0 0>;
  10257. };
  10258. bman-portal@4000 {
  10259. + cell-index = <1>;
  10260. compatible = "fsl,bman-portal";
  10261. reg = <0x4000 0x4000>, <0x101000 0x1000>;
  10262. interrupts = <107 2 0 0>;
  10263. };
  10264. bman-portal@8000 {
  10265. + cell-index = <2>;
  10266. compatible = "fsl,bman-portal";
  10267. reg = <0x8000 0x4000>, <0x102000 0x1000>;
  10268. interrupts = <109 2 0 0>;
  10269. };
  10270. bman-portal@c000 {
  10271. + cell-index = <3>;
  10272. compatible = "fsl,bman-portal";
  10273. reg = <0xc000 0x4000>, <0x103000 0x1000>;
  10274. interrupts = <111 2 0 0>;
  10275. };
  10276. bman-portal@10000 {
  10277. + cell-index = <4>;
  10278. compatible = "fsl,bman-portal";
  10279. reg = <0x10000 0x4000>, <0x104000 0x1000>;
  10280. interrupts = <113 2 0 0>;
  10281. };
  10282. bman-portal@14000 {
  10283. + cell-index = <5>;
  10284. compatible = "fsl,bman-portal";
  10285. reg = <0x14000 0x4000>, <0x105000 0x1000>;
  10286. interrupts = <115 2 0 0>;
  10287. };
  10288. bman-portal@18000 {
  10289. + cell-index = <6>;
  10290. compatible = "fsl,bman-portal";
  10291. reg = <0x18000 0x4000>, <0x106000 0x1000>;
  10292. interrupts = <117 2 0 0>;
  10293. };
  10294. bman-portal@1c000 {
  10295. + cell-index = <7>;
  10296. compatible = "fsl,bman-portal";
  10297. reg = <0x1c000 0x4000>, <0x107000 0x1000>;
  10298. interrupts = <119 2 0 0>;
  10299. };
  10300. bman-portal@20000 {
  10301. + cell-index = <8>;
  10302. compatible = "fsl,bman-portal";
  10303. reg = <0x20000 0x4000>, <0x108000 0x1000>;
  10304. interrupts = <121 2 0 0>;
  10305. };
  10306. bman-portal@24000 {
  10307. + cell-index = <9>;
  10308. compatible = "fsl,bman-portal";
  10309. reg = <0x24000 0x4000>, <0x109000 0x1000>;
  10310. interrupts = <123 2 0 0>;
  10311. --- a/arch/powerpc/boot/dts/fsl/qoriq-fman3-0-10g-0.dtsi
  10312. +++ b/arch/powerpc/boot/dts/fsl/qoriq-fman3-0-10g-0.dtsi
  10313. @@ -35,14 +35,14 @@
  10314. fman@400000 {
  10315. fman0_rx_0x10: port@90000 {
  10316. cell-index = <0x10>;
  10317. - compatible = "fsl,fman-v3-port-rx";
  10318. + compatible = "fsl,fman-v3-port-rx", "fsl,fman-port-10g-rx";
  10319. reg = <0x90000 0x1000>;
  10320. fsl,fman-10g-port;
  10321. };
  10322. fman0_tx_0x30: port@b0000 {
  10323. cell-index = <0x30>;
  10324. - compatible = "fsl,fman-v3-port-tx";
  10325. + compatible = "fsl,fman-v3-port-tx", "fsl,fman-port-10g-tx";
  10326. reg = <0xb0000 0x1000>;
  10327. fsl,fman-10g-port;
  10328. };
  10329. --- a/arch/powerpc/boot/dts/fsl/qoriq-fman3-0-10g-1.dtsi
  10330. +++ b/arch/powerpc/boot/dts/fsl/qoriq-fman3-0-10g-1.dtsi
  10331. @@ -35,14 +35,14 @@
  10332. fman@400000 {
  10333. fman0_rx_0x11: port@91000 {
  10334. cell-index = <0x11>;
  10335. - compatible = "fsl,fman-v3-port-rx";
  10336. + compatible = "fsl,fman-v3-port-rx", "fsl,fman-port-10g-rx";
  10337. reg = <0x91000 0x1000>;
  10338. fsl,fman-10g-port;
  10339. };
  10340. fman0_tx_0x31: port@b1000 {
  10341. cell-index = <0x31>;
  10342. - compatible = "fsl,fman-v3-port-tx";
  10343. + compatible = "fsl,fman-v3-port-tx", "fsl,fman-port-10g-tx";
  10344. reg = <0xb1000 0x1000>;
  10345. fsl,fman-10g-port;
  10346. };