12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211 |
- From 80e5f83c0fc4bf42110cc55ce671ad7ddc7b08a4 Mon Sep 17 00:00:00 2001
- From: Hans de Goede <hdegoede@redhat.com>
- Date: Mon, 14 Mar 2016 17:37:09 +0100
- Subject: [PATCH] sunxi: Sync dts files with the upstream kernel
- Sync dts files with the upstream kernel including
- changes queued for 4.6:
- https://git.kernel.org/cgit/linux/kernel/git/mripard/linux.git/commit/?h=sunxi/dt-for-4.6
- Note this adds a number of new unused board dts files. I've asked the
- authors of the kernel commits adding these to submit a matching defconfig
- to u-boot.
- Signed-off-by: Hans de Goede <hdegoede@redhat.com>
- Acked-by: Ian Campbell <ijc@hellion.org.uk>
- ---
- arch/arm/dts/Makefile | 8 +-
- arch/arm/dts/axp22x.dtsi | 145 ++++++++++++
- arch/arm/dts/sun4i-a10-a1000.dts | 4 +
- arch/arm/dts/sun4i-a10-chuwi-v7-cw0825.dts | 22 ++
- arch/arm/dts/sun4i-a10-cubieboard.dts | 4 +
- arch/arm/dts/sun4i-a10-gemei-g9.dts | 63 +++++-
- arch/arm/dts/sun4i-a10-inet1.dts | 48 ++++
- arch/arm/dts/sun4i-a10-inet97fv2.dts | 127 ++++++++++-
- arch/arm/dts/sun4i-a10-inet9f-rev03.dts | 181 +++++++++++++++
- arch/arm/dts/sun4i-a10-itead-iteaduino-plus.dts | 86 +------
- arch/arm/dts/sun4i-a10-jesurun-q5.dts | 15 ++
- arch/arm/dts/sun4i-a10-marsboard.dts | 23 ++
- arch/arm/dts/sun4i-a10-mk802.dts | 37 +++
- arch/arm/dts/sun4i-a10-olinuxino-lime.dts | 12 +
- arch/arm/dts/sun4i-a10-pcduino.dts | 58 ++++-
- arch/arm/dts/sun4i-a10-pcduino2.dts | 78 +++++++
- arch/arm/dts/sun4i-a10-pov-protab2-ips9.dts | 69 ++++++
- arch/arm/dts/sun4i-a10.dtsi | 153 +++++++++++--
- arch/arm/dts/sun5i-a10s-auxtek-t004.dts | 14 ++
- arch/arm/dts/sun5i-a10s-olinuxino-micro.dts | 2 +-
- arch/arm/dts/sun5i-a13-empire-electronix-d709.dts | 19 +-
- arch/arm/dts/sun5i-a13-inet-98v-rev2.dts | 26 +--
- arch/arm/dts/sun5i-a13-utoo-p66.dts | 30 +++
- arch/arm/dts/sun5i-q8-common.dtsi | 10 +
- arch/arm/dts/sun5i-r8-chip.dts | 47 +++-
- arch/arm/dts/sun5i.dtsi | 31 +++
- arch/arm/dts/sun6i-a31-colombus.dts | 24 ++
- arch/arm/dts/sun6i-a31-hummingbird.dts | 132 ++++++-----
- arch/arm/dts/sun6i-a31.dtsi | 65 +++++-
- arch/arm/dts/sun6i-a31s-primo81.dts | 247 ++++++++++++++++++++-
- arch/arm/dts/sun6i-a31s-sina31s-core.dtsi | 142 ++++++++++++
- arch/arm/dts/sun6i-a31s-sina31s.dts | 153 +++++++++++++
- .../arm/dts/sun6i-a31s-yones-toptech-bs1078-v2.dts | 205 +++++++++++++++++
- arch/arm/dts/sun7i-a20-bananapi.dts | 78 ++++++-
- arch/arm/dts/sun7i-a20-cubieboard2.dts | 23 ++
- arch/arm/dts/sun7i-a20-cubietruck.dts | 4 +
- arch/arm/dts/sun7i-a20-icnova-swac.dts | 169 ++++++++++++++
- arch/arm/dts/sun7i-a20-itead-ibox.dts | 125 +++++++++++
- arch/arm/dts/sun7i-a20-lamobo-r1.dts | 10 -
- arch/arm/dts/sun7i-a20-mk808c.dts | 39 ++++
- arch/arm/dts/sun7i-a20-olimex-som-evb.dts | 95 ++++++--
- arch/arm/dts/sun7i-a20-olinuxino-lime.dts | 12 +
- arch/arm/dts/sun7i-a20-olinuxino-lime2.dts | 47 ++++
- arch/arm/dts/sun7i-a20-olinuxino-micro.dts | 6 +
- arch/arm/dts/sun7i-a20-orangepi-mini.dts | 33 +++
- arch/arm/dts/sun7i-a20-orangepi.dts | 29 +++
- arch/arm/dts/sun7i-a20-pcduino3-nano.dts | 69 +++++-
- arch/arm/dts/sun7i-a20-pcduino3.dts | 58 ++++-
- arch/arm/dts/sun7i-a20-wexler-tab7200.dts | 90 +++++++-
- arch/arm/dts/sun7i-a20-wits-pro-a20-dkt.dts | 187 +++++++++++++++-
- arch/arm/dts/sun7i-a20.dtsi | 113 +++++++++-
- arch/arm/dts/sun8i-a23-a33.dtsi | 71 ++++--
- arch/arm/dts/sun8i-a23-gt90h-v4.dts | 120 +++++++++-
- arch/arm/dts/sun8i-a23.dtsi | 25 +++
- arch/arm/dts/sun8i-a33-sinlinx-sina33.dts | 83 ++++++-
- arch/arm/dts/sun8i-a33.dtsi | 45 ++++
- arch/arm/dts/sun8i-a83t-cubietruck-plus.dts | 65 ++++++
- arch/arm/dts/sun8i-a83t.dtsi | 125 +++++------
- arch/arm/dts/sun8i-h3-orangepi-pc.dts | 69 ++++++
- arch/arm/dts/sun8i-h3-orangepi-plus.dts | 63 ++++++
- arch/arm/dts/sun8i-h3.dtsi | 189 +++++++++++-----
- arch/arm/dts/sun8i-q8-common.dtsi | 96 +++++++-
- arch/arm/dts/sun9i-a80-cubieboard4.dts | 36 +++
- arch/arm/dts/sun9i-a80-optimus.dts | 48 ++--
- arch/arm/dts/sun9i-a80.dtsi | 204 +++++++++++++++--
- arch/arm/dts/sunxi-itead-core-common.dtsi | 136 ++++++++++++
- arch/arm/dts/sunxi-q8-common.dtsi | 6 +
- 67 files changed, 4351 insertions(+), 497 deletions(-)
- create mode 100644 arch/arm/dts/axp22x.dtsi
- create mode 100644 arch/arm/dts/sun4i-a10-pcduino2.dts
- create mode 100644 arch/arm/dts/sun6i-a31s-sina31s-core.dtsi
- create mode 100644 arch/arm/dts/sun6i-a31s-sina31s.dts
- create mode 100644 arch/arm/dts/sun6i-a31s-yones-toptech-bs1078-v2.dts
- create mode 100644 arch/arm/dts/sun7i-a20-icnova-swac.dts
- create mode 100644 arch/arm/dts/sun7i-a20-itead-ibox.dts
- create mode 100644 arch/arm/dts/sun8i-a83t-cubietruck-plus.dts
- create mode 100644 arch/arm/dts/sunxi-itead-core-common.dtsi
- --- a/arch/arm/dts/Makefile
- +++ b/arch/arm/dts/Makefile
- @@ -126,6 +126,7 @@ dtb-$(CONFIG_MACH_SUN4I) += \
- sun4i-a10-mk802ii.dtb \
- sun4i-a10-olinuxino-lime.dtb \
- sun4i-a10-pcduino.dtb \
- + sun4i-a10-pcduino2.dtb \
- sun4i-a10-pov-protab2-ips9.dtb
- dtb-$(CONFIG_MACH_SUN5I) += \
- sun5i-a10s-auxtek-t003.dtb \
- @@ -155,7 +156,9 @@ dtb-$(CONFIG_MACH_SUN6I) += \
- sun6i-a31-pangolin.dtb \
- sun6i-a31s-cs908.dtb \
- sun6i-a31s-primo81.dtb \
- - sun6i-a31s-sinovoip-bpi-m2.dtb
- + sun6i-a31s-sina31s.dtb \
- + sun6i-a31s-sinovoip-bpi-m2.dtb \
- + sun6i-a31s-yones-toptech-bs1078-v2.dtb
- dtb-$(CONFIG_MACH_SUN7I) += \
- sun7i-a20-ainol-aw1.dtb \
- sun7i-a20-bananapi.dtb \
- @@ -164,6 +167,8 @@ dtb-$(CONFIG_MACH_SUN7I) += \
- sun7i-a20-cubietruck.dtb \
- sun7i-a20-hummingbird.dtb \
- sun7i-a20-i12-tvbox.dtb \
- + sun7i-a20-icnova-swac.dtb \
- + sun7i-a20-itead-ibox.dtb \
- sun7i-a20-lamobo-r1.dtb \
- sun7i-a20-m3.dtb \
- sun7i-a20-m5.dtb \
- @@ -190,6 +195,7 @@ dtb-$(CONFIG_MACH_SUN8I_A33) += \
- sun8i-a33-sinlinx-sina33.dtb
- dtb-$(CONFIG_MACH_SUN8I_A83T) += \
- sun8i-a83t-allwinner-h8homlet-v2.dtb \
- + sun8i-a83t-cubietruck-plus.dtb \
- sun8i-a83t-sinovoip-bpi-m3.dtb
- dtb-$(CONFIG_MACH_SUN8I_H3) += \
- sun8i-h3-orangepi-pc.dtb \
- --- /dev/null
- +++ b/arch/arm/dts/axp22x.dtsi
- @@ -0,0 +1,145 @@
- +/*
- + * Copyright 2015 Chen-Yu Tsai
- + *
- + * Chen-Yu Tsai <wens@csie.org>
- + *
- + * This file is dual-licensed: you can use it either under the terms
- + * of the GPL or the X11 license, at your option. Note that this dual
- + * licensing only applies to this file, and not this project as a
- + * whole.
- + *
- + * a) This file is free software; you can redistribute it and/or
- + * modify it under the terms of the GNU General Public License as
- + * published by the Free Software Foundation; either version 2 of the
- + * License, or (at your option) any later version.
- + *
- + * This file is distributed in the hope that it will be useful,
- + * but WITHOUT ANY WARRANTY; without even the implied warranty of
- + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- + * GNU General Public License for more details.
- + *
- + * Or, alternatively,
- + *
- + * b) Permission is hereby granted, free of charge, to any person
- + * obtaining a copy of this software and associated documentation
- + * files (the "Software"), to deal in the Software without
- + * restriction, including without limitation the rights to use,
- + * copy, modify, merge, publish, distribute, sublicense, and/or
- + * sell copies of the Software, and to permit persons to whom the
- + * Software is furnished to do so, subject to the following
- + * conditions:
- + *
- + * The above copyright notice and this permission notice shall be
- + * included in all copies or substantial portions of the Software.
- + *
- + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- + * OTHER DEALINGS IN THE SOFTWARE.
- + */
- +
- +/*
- + * AXP221/221s/223 Integrated Power Management Chip
- + * http://www.x-powers.com/product/AXP22X.php
- + * http://dl.linux-sunxi.org/AXP/AXP221%20Datasheet%20V1.2%2020130326%20.pdf
- + */
- +
- +&axp22x {
- + interrupt-controller;
- + #interrupt-cells = <1>;
- +
- + regulators {
- + /* Default work frequency for buck regulators */
- + x-powers,dcdc-freq = <3000>;
- +
- + reg_dcdc1: dcdc1 {
- + regulator-name = "dcdc1";
- + };
- +
- + reg_dcdc2: dcdc2 {
- + regulator-name = "dcdc2";
- + };
- +
- + reg_dcdc3: dcdc3 {
- + regulator-name = "dcdc3";
- + };
- +
- + reg_dcdc4: dcdc4 {
- + regulator-name = "dcdc4";
- + };
- +
- + reg_dcdc5: dcdc5 {
- + regulator-name = "dcdc5";
- + };
- +
- + reg_dc1sw: dc1sw {
- + regulator-name = "dc1sw";
- + };
- +
- + reg_dc5ldo: dc5ldo {
- + regulator-name = "dc5ldo";
- + };
- +
- + reg_aldo1: aldo1 {
- + regulator-name = "aldo1";
- + };
- +
- + reg_aldo2: aldo2 {
- + regulator-name = "aldo2";
- + };
- +
- + reg_aldo3: aldo3 {
- + regulator-name = "aldo3";
- + };
- +
- + reg_dldo1: dldo1 {
- + regulator-name = "dldo1";
- + };
- +
- + reg_dldo2: dldo2 {
- + regulator-name = "dldo2";
- + };
- +
- + reg_dldo3: dldo3 {
- + regulator-name = "dldo3";
- + };
- +
- + reg_dldo4: dldo4 {
- + regulator-name = "dldo4";
- + };
- +
- + reg_eldo1: eldo1 {
- + regulator-name = "eldo1";
- + };
- +
- + reg_eldo2: eldo2 {
- + regulator-name = "eldo2";
- + };
- +
- + reg_eldo3: eldo3 {
- + regulator-name = "eldo3";
- + };
- +
- + reg_ldo_io0: ldo_io0 {
- + regulator-name = "ldo_io0";
- + status = "disabled";
- + };
- +
- + reg_ldo_io1: ldo_io1 {
- + regulator-name = "ldo_io1";
- + status = "disabled";
- + };
- +
- + reg_rtc_ldo: rtc_ldo {
- + /* RTC_LDO is a fixed, always-on regulator */
- + regulator-always-on;
- + regulator-min-microvolt = <3000000>;
- + regulator-max-microvolt = <3000000>;
- + regulator-name = "rtc_ldo";
- + };
- + };
- +};
- --- a/arch/arm/dts/sun4i-a10-a1000.dts
- +++ b/arch/arm/dts/sun4i-a10-a1000.dts
- @@ -93,6 +93,10 @@
- status = "okay";
- };
-
- +&codec {
- + status = "okay";
- +};
- +
- &ehci0 {
- status = "okay";
- };
- --- a/arch/arm/dts/sun4i-a10-chuwi-v7-cw0825.dts
- +++ b/arch/arm/dts/sun4i-a10-chuwi-v7-cw0825.dts
- @@ -45,6 +45,7 @@
- #include "sunxi-common-regulators.dtsi"
- #include <dt-bindings/gpio/gpio.h>
- #include <dt-bindings/input/input.h>
- +#include <dt-bindings/interrupt-controller/irq.h>
-
- / {
- model = "Chuwi V7 CW0825";
- @@ -78,6 +79,27 @@
- };
- };
-
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins_a>;
- + status = "okay";
- +};
- +
- +&i2c2 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c2_pins_a>;
- + status = "okay";
- +
- + ft5306de4: touchscreen@38 {
- + compatible = "edt,edt-ft5406";
- + reg = <0x38>;
- + interrupt-parent = <&pio>;
- + interrupts = <7 21 IRQ_TYPE_EDGE_FALLING>;
- + touchscreen-size-x = <1024>;
- + touchscreen-size-y = <768>;
- + };
- +};
- +
- &lradc {
- vref-supply = <®_vcc3v0>;
- status = "okay";
- --- a/arch/arm/dts/sun4i-a10-cubieboard.dts
- +++ b/arch/arm/dts/sun4i-a10-cubieboard.dts
- @@ -83,6 +83,10 @@
- status = "okay";
- };
-
- +&codec {
- + status = "okay";
- +};
- +
- &cpu0 {
- cpu-supply = <®_dcdc2>;
- };
- --- a/arch/arm/dts/sun4i-a10-gemei-g9.dts
- +++ b/arch/arm/dts/sun4i-a10-gemei-g9.dts
- @@ -47,6 +47,7 @@
- #include "sunxi-common-regulators.dtsi"
- #include <dt-bindings/gpio/gpio.h>
- #include <dt-bindings/input/input.h>
- +#include <dt-bindings/interrupt-controller/irq.h>
-
- / {
- model = "Gemei G9 Tablet";
- @@ -64,12 +65,22 @@
- /*
- * TODO:
- * 2x cameras via CSI
- - * bma250 IRQs
- * AXP battery management
- * NAND
- * OTG
- * Touchscreen - gt801_2plus1 @ i2c adapter 2 @ 0x48
- */
- +&codec {
- + /* PH15 controls power to external amplifier (ft2012q) */
- + pinctrl-names = "default";
- + pinctrl-0 = <&codec_pa_pin>;
- + allwinner,pa-gpios = <&pio 7 15 GPIO_ACTIVE_HIGH>;
- + status = "okay";
- +};
- +
- +&cpu0 {
- + cpu-supply = <®_dcdc2>;
- +};
-
- &ehci0 {
- status = "okay";
- @@ -85,15 +96,13 @@
- status = "okay";
-
- axp209: pmic@34 {
- - compatible = "x-powers,axp209";
- reg = <0x34>;
- interrupts = <0>;
- -
- - interrupt-controller;
- - #interrupt-cells = <1>;
- };
- };
-
- +#include "axp209.dtsi"
- +
- &i2c1 {
- pinctrl-names = "default";
- pinctrl-0 = <&i2c1_pins_a>;
- @@ -103,17 +112,13 @@
- bma250@18 {
- compatible = "bosch,bma250";
- reg = <0x18>;
- -
- - /*
- - * TODO: interrupt pins:
- - * int1 - PH00
- - * int2 - PI10
- - */
- + interrupt-parent = <&pio>;
- + interrupts = <7 0 IRQ_TYPE_EDGE_RISING>; /* PH00 / EINT0 */
- };
- };
-
- &lradc {
- - vref-supply = <®_vcc3v0>;
- + vref-supply = <®_ldo2>;
-
- status = "okay";
-
- @@ -149,6 +154,40 @@
- status = "okay";
- };
-
- +&pio {
- + codec_pa_pin: codec_pa_pin@0 {
- + allwinner,pins = "PH15";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +};
- +
- +®_dcdc2 {
- + regulator-always-on;
- + regulator-min-microvolt = <1000000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-cpu";
- +};
- +
- +®_dcdc3 {
- + regulator-always-on;
- + regulator-min-microvolt = <1250000>;
- + regulator-max-microvolt = <1250000>;
- + regulator-name = "vdd-int-dll";
- +};
- +
- +®_ldo1 {
- + regulator-name = "vdd-rtc";
- +};
- +
- +®_ldo2 {
- + regulator-always-on;
- + regulator-min-microvolt = <3000000>;
- + regulator-max-microvolt = <3000000>;
- + regulator-name = "avcc";
- +};
- +
- ®_usb1_vbus {
- status = "okay";
- };
- --- a/arch/arm/dts/sun4i-a10-inet1.dts
- +++ b/arch/arm/dts/sun4i-a10-inet1.dts
- @@ -47,6 +47,7 @@
- #include <dt-bindings/input/input.h>
- #include <dt-bindings/interrupt-controller/irq.h>
- #include <dt-bindings/pinctrl/sun4i-a10.h>
- +#include <dt-bindings/pwm/pwm.h>
-
- / {
- model = "iNet-1";
- @@ -56,11 +57,25 @@
- serial0 = &uart0;
- };
-
- + backlight: backlight {
- + compatible = "pwm-backlight";
- + pinctrl-names = "default";
- + pinctrl-0 = <&bl_en_pin_inet>;
- + pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
- + brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
- + default-brightness-level = <8>;
- + enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
- + };
- +
- chosen {
- stdout-path = "serial0:115200n8";
- };
- };
-
- +&codec {
- + status = "okay";
- +};
- +
- &cpu0 {
- cpu-supply = <®_dcdc2>;
- };
- @@ -104,6 +119,19 @@
- pinctrl-names = "default";
- pinctrl-0 = <&i2c2_pins_a>;
- status = "okay";
- +
- + ft5x: touchscreen@38 {
- + compatible = "edt,edt-ft5406";
- + reg = <0x38>;
- + interrupt-parent = <&pio>;
- + interrupts = <7 21 IRQ_TYPE_EDGE_FALLING>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&touchscreen_wake_pin>;
- + wake-gpios = <&pio 1 13 GPIO_ACTIVE_HIGH>; /* PB13 */
- + touchscreen-size-x = <600>;
- + touchscreen-size-y = <1024>;
- + touchscreen-swapped-x-y;
- + };
- };
-
- &lradc {
- @@ -151,6 +179,20 @@
- };
-
- &pio {
- + bl_en_pin_inet: bl_en_pin@0 {
- + allwinner,pins = "PH7";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- + touchscreen_wake_pin: touchscreen_wake_pin@0 {
- + allwinner,pins = "PB13";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- usb0_id_detect_pin: usb0_id_detect_pin@0 {
- allwinner,pins = "PH4";
- allwinner,function = "gpio_in";
- @@ -166,6 +208,12 @@
- };
- };
-
- +&pwm {
- + pinctrl-names = "default";
- + pinctrl-0 = <&pwm0_pins_a>;
- + status = "okay";
- +};
- +
- ®_dcdc2 {
- regulator-always-on;
- regulator-min-microvolt = <1000000>;
- --- a/arch/arm/dts/sun4i-a10-inet97fv2.dts
- +++ b/arch/arm/dts/sun4i-a10-inet97fv2.dts
- @@ -47,6 +47,8 @@
- #include "sunxi-common-regulators.dtsi"
-
- #include <dt-bindings/gpio/gpio.h>
- +#include <dt-bindings/input/input.h>
- +#include <dt-bindings/interrupt-controller/irq.h>
-
- / {
- model = "INet-97F Rev 02";
- @@ -61,8 +63,8 @@
- };
- };
-
- -&ehci0 {
- - status = "okay";
- +&cpu0 {
- + cpu-supply = <®_dcdc2>;
- };
-
- &ehci1 {
- @@ -75,12 +77,71 @@
- status = "okay";
-
- axp209: pmic@34 {
- - compatible = "x-powers,axp209";
- reg = <0x34>;
- interrupts = <0>;
- + };
- +};
- +
- +#include "axp209.dtsi"
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins_a>;
- + status = "okay";
- +};
- +
- +&i2c2 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c2_pins_a>;
- + status = "okay";
- +
- + ft5406ee8: touchscreen@38 {
- + compatible = "edt,edt-ft5406";
- + reg = <0x38>;
- + interrupt-parent = <&pio>;
- + interrupts = <7 21 IRQ_TYPE_EDGE_FALLING>;
- + touchscreen-size-x = <800>;
- + touchscreen-size-y = <480>;
- + };
- +};
- +
- +&lradc {
- + vref-supply = <®_ldo2>;
- + status = "okay";
- +
- + button@200 {
- + label = "Menu";
- + linux,code = <KEY_MENU>;
- + channel = <0>;
- + voltage = <200000>;
- + };
- +
- + button@600 {
- + label = "Volume Up";
- + linux,code = <KEY_VOLUMEUP>;
- + channel = <0>;
- + voltage = <600000>;
- + };
-
- - interrupt-controller;
- - #interrupt-cells = <1>;
- + button@800 {
- + label = "Volume Down";
- + linux,code = <KEY_VOLUMEDOWN>;
- + channel = <0>;
- + voltage = <800000>;
- + };
- +
- + button@1000 {
- + label = "Home";
- + linux,code = <KEY_HOMEPAGE>;
- + channel = <0>;
- + voltage = <1000000>;
- + };
- +
- + button@1200 {
- + label = "Esc";
- + linux,code = <KEY_ESC>;
- + channel = <0>;
- + voltage = <1200000>;
- };
- };
-
- @@ -94,15 +155,52 @@
- status = "okay";
- };
-
- -&ohci0 {
- +&otg_sram {
- status = "okay";
- };
-
- -&ohci1 {
- - status = "okay";
- +&pio {
- + usb0_id_detect_pin: usb0_id_detect_pin@0 {
- + allwinner,pins = "PH4";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- + };
- +
- + usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 {
- + allwinner,pins = "PH5";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_PULL_DOWN>;
- + };
- +};
- +
- +®_dcdc2 {
- + regulator-always-on;
- + regulator-min-microvolt = <1000000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-cpu";
- };
-
- -®_usb1_vbus {
- +®_dcdc3 {
- + regulator-always-on;
- + regulator-min-microvolt = <1250000>;
- + regulator-max-microvolt = <1250000>;
- + regulator-name = "vdd-int-dll";
- +};
- +
- +®_ldo1 {
- + regulator-name = "vdd-rtc";
- +};
- +
- +®_ldo2 {
- + regulator-always-on;
- + regulator-min-microvolt = <3000000>;
- + regulator-max-microvolt = <3000000>;
- + regulator-name = "avcc";
- +};
- +
- +®_usb0_vbus {
- status = "okay";
- };
-
- @@ -116,8 +214,17 @@
- status = "okay";
- };
-
- +&usb_otg {
- + dr_mode = "otg";
- + status = "okay";
- +};
- +
- &usbphy {
- - usb1_vbus-supply = <®_usb1_vbus>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
- + usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
- + usb0_vbus_det-gpio = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
- + usb0_vbus-supply = <®_usb0_vbus>;
- usb2_vbus-supply = <®_usb2_vbus>;
- status = "okay";
- };
- --- a/arch/arm/dts/sun4i-a10-inet9f-rev03.dts
- +++ b/arch/arm/dts/sun4i-a10-inet9f-rev03.dts
- @@ -59,6 +59,159 @@
- chosen {
- stdout-path = "serial0:115200n8";
- };
- +
- + gpio_keys {
- + compatible = "gpio-keys-polled";
- + pinctrl-names = "default";
- + pinctrl-0 = <&key_pins_inet9f>;
- + #address-cells = <1>;
- + #size-cells = <0>;
- + poll-interval = <20>;
- +
- + button@0 {
- + label = "Left Joystick Left";
- + linux,code = <ABS_X>;
- + linux,input-type = <EV_ABS>;
- + linux,input-value = <0xffffffff>; /* -1 */
- + gpios = <&pio 0 6 GPIO_ACTIVE_LOW>; /* PA6 */
- + };
- +
- + button@1 {
- + label = "Left Joystick Right";
- + linux,code = <ABS_X>;
- + linux,input-type = <EV_ABS>;
- + linux,input-value = <1>;
- + gpios = <&pio 0 5 GPIO_ACTIVE_LOW>; /* PA5 */
- + };
- +
- + button@2 {
- + label = "Left Joystick Up";
- + linux,code = <ABS_Y>;
- + linux,input-type = <EV_ABS>;
- + linux,input-value = <0xffffffff>; /* -1 */
- + gpios = <&pio 0 8 GPIO_ACTIVE_LOW>; /* PA8 */
- + };
- +
- + button@3 {
- + label = "Left Joystick Down";
- + linux,code = <ABS_Y>;
- + linux,input-type = <EV_ABS>;
- + linux,input-value = <1>;
- + gpios = <&pio 0 9 GPIO_ACTIVE_LOW>; /* PA9 */
- + };
- +
- + button@4 {
- + label = "Right Joystick Left";
- + linux,code = <ABS_Z>;
- + linux,input-type = <EV_ABS>;
- + linux,input-value = <0xffffffff>; /* -1 */
- + gpios = <&pio 0 1 GPIO_ACTIVE_LOW>; /* PA1 */
- + };
- +
- + button@5 {
- + label = "Right Joystick Right";
- + linux,code = <ABS_Z>;
- + linux,input-type = <EV_ABS>;
- + linux,input-value = <1>;
- + gpios = <&pio 0 0 GPIO_ACTIVE_LOW>; /* PA0 */
- + };
- +
- + button@6 {
- + label = "Right Joystick Up";
- + linux,code = <ABS_RZ>;
- + linux,input-type = <EV_ABS>;
- + linux,input-value = <0xffffffff>; /* -1 */
- + gpios = <&pio 0 3 GPIO_ACTIVE_LOW>; /* PA3 */
- + };
- +
- + button@7 {
- + label = "Right Joystick Down";
- + linux,code = <ABS_RZ>;
- + linux,input-type = <EV_ABS>;
- + linux,input-value = <1>;
- + gpios = <&pio 0 4 GPIO_ACTIVE_LOW>; /* PA4 */
- + };
- +
- + button@8 {
- + label = "DPad Left";
- + linux,code = <ABS_HAT0X>;
- + linux,input-type = <EV_ABS>;
- + linux,input-value = <0xffffffff>; /* -1 */
- + gpios = <&pio 7 23 GPIO_ACTIVE_LOW>; /* PH23 */
- + };
- +
- + button@9 {
- + label = "DPad Right";
- + linux,code = <ABS_HAT0X>;
- + linux,input-type = <EV_ABS>;
- + linux,input-value = <1>;
- + gpios = <&pio 7 24 GPIO_ACTIVE_LOW>; /* PH24 */
- + };
- +
- + button@10 {
- + label = "DPad Up";
- + linux,code = <ABS_HAT0Y>;
- + linux,input-type = <EV_ABS>;
- + linux,input-value = <0xffffffff>; /* -1 */
- + gpios = <&pio 7 25 GPIO_ACTIVE_LOW>; /* PH25 */
- + };
- +
- + button@11 {
- + label = "DPad Down";
- + linux,code = <ABS_HAT0Y>;
- + linux,input-type = <EV_ABS>;
- + linux,input-value = <1>;
- + gpios = <&pio 7 26 GPIO_ACTIVE_LOW>; /* PH26 */
- + };
- +
- + button@12 {
- + label = "Button X";
- + linux,code = <BTN_X>;
- + gpios = <&pio 0 16 GPIO_ACTIVE_LOW>; /* PA16 */
- + };
- +
- + button@13 {
- + label = "Button Y";
- + linux,code = <BTN_Y>;
- + gpios = <&pio 0 14 GPIO_ACTIVE_LOW>; /* PA14 */
- + };
- +
- + button@14 {
- + label = "Button A";
- + linux,code = <BTN_A>;
- + gpios = <&pio 0 17 GPIO_ACTIVE_LOW>; /* PA17 */
- + };
- +
- + button@15 {
- + label = "Button B";
- + linux,code = <BTN_B>;
- + gpios = <&pio 0 15 GPIO_ACTIVE_LOW>; /* PA15 */
- + };
- +
- + button@16 {
- + label = "Select Button";
- + linux,code = <BTN_SELECT>;
- + gpios = <&pio 0 11 GPIO_ACTIVE_LOW>; /* PA11 */
- + };
- +
- + button@17 {
- + label = "Start Button";
- + linux,code = <BTN_START>;
- + gpios = <&pio 0 12 GPIO_ACTIVE_LOW>; /* PA12 */
- + };
- +
- + button@18 {
- + label = "Top Left Button";
- + linux,code = <BTN_TL>;
- + gpios = <&pio 7 22 GPIO_ACTIVE_LOW>; /* PH22 */
- + };
- +
- + button@19 {
- + label = "Top Right Button";
- + linux,code = <BTN_TR>;
- + gpios = <&pio 0 13 GPIO_ACTIVE_LOW>; /* PA13 */
- + };
- + };
- };
-
- &cpu0 {
- @@ -86,12 +239,29 @@
- pinctrl-names = "default";
- pinctrl-0 = <&i2c1_pins_a>;
- status = "okay";
- +
- + /* Accelerometer */
- + bma250@18 {
- + compatible = "bosch,bma250";
- + reg = <0x18>;
- + interrupt-parent = <&pio>;
- + interrupts = <7 0 IRQ_TYPE_EDGE_RISING>; /* PH0 / EINT0 */
- + };
- };
-
- &i2c2 {
- pinctrl-names = "default";
- pinctrl-0 = <&i2c2_pins_a>;
- status = "okay";
- +
- + ft5406ee8: touchscreen@38 {
- + compatible = "edt,edt-ft5406";
- + reg = <0x38>;
- + interrupt-parent = <&pio>;
- + interrupts = <7 21 IRQ_TYPE_EDGE_FALLING>;
- + touchscreen-size-x = <800>;
- + touchscreen-size-y = <480>;
- + };
- };
-
- &lradc {
- @@ -149,6 +319,17 @@
- };
-
- &pio {
- + key_pins_inet9f: key_pins@0 {
- + allwinner,pins = "PA0", "PA1", "PA3", "PA4",
- + "PA5", "PA6", "PA8", "PA9",
- + "PA11", "PA12", "PA13",
- + "PA14", "PA15", "PA16", "PA17",
- + "PH22", "PH23", "PH24", "PH25", "PH26";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- + };
- +
- usb0_id_detect_pin: usb0_id_detect_pin@0 {
- allwinner,pins = "PH4";
- allwinner,function = "gpio_in";
- --- a/arch/arm/dts/sun4i-a10-itead-iteaduino-plus.dts
- +++ b/arch/arm/dts/sun4i-a10-itead-iteaduino-plus.dts
- @@ -1,5 +1,6 @@
- /*
- * Copyright 2015 Josef Gajdusek <atx@atx.name>
- + * Copyright 2015 - Marcus Cooper <codekipper@gmail.com>
- *
- * This file is dual-licensed: you can use it either under the terms
- * of the GPL or the X11 license, at your option. Note that this dual
- @@ -42,22 +43,11 @@
-
- /dts-v1/;
- #include "sun4i-a10.dtsi"
- -#include "sunxi-common-regulators.dtsi"
- -
- -#include <dt-bindings/gpio/gpio.h>
- -#include <dt-bindings/pinctrl/sun4i-a10.h>
- +#include "sunxi-itead-core-common.dtsi"
-
- / {
- model = "Iteaduino Plus A10";
- compatible = "itead,iteaduino-plus-a10", "allwinner,sun4i-a10";
- -
- - aliases {
- - serial0 = &uart0;
- - };
- -
- - chosen {
- - stdout-path = "serial0:115200n8";
- - };
- };
-
- &ahci {
- @@ -65,18 +55,6 @@
- status = "okay";
- };
-
- -&cpu0 {
- - cpu-supply = <®_dcdc2>;
- -};
- -
- -&ehci0 {
- - status = "okay";
- -};
- -
- -&ehci1 {
- - status = "okay";
- -};
- -
- &emac {
- pinctrl-names = "default";
- pinctrl-0 = <&emac_pins_a>;
- @@ -89,12 +67,7 @@
- };
-
- &i2c0 {
- - pinctrl-names = "default";
- - pinctrl-0 = <&i2c0_pins_a>;
- - status = "okay";
- -
- axp209: pmic@34 {
- - reg = <0x34>;
- interrupts = <0>;
- };
- };
- @@ -135,68 +108,13 @@
- status = "okay";
- };
-
- -&ohci0 {
- - status = "okay";
- -};
- -
- -&ohci1 {
- - status = "okay";
- -};
- -
- ®_ahci_5v {
- status = "okay";
- };
-
- -#include "axp209.dtsi"
- -
- -®_dcdc2 {
- - regulator-always-on;
- - regulator-min-microvolt = <1000000>;
- - regulator-max-microvolt = <1450000>;
- - regulator-name = "vdd-cpu";
- -};
- -
- -®_dcdc3 {
- - regulator-always-on;
- - regulator-min-microvolt = <1000000>;
- - regulator-max-microvolt = <1400000>;
- - regulator-name = "vdd-int-dll";
- -};
- -
- -®_ldo1 {
- - regulator-name = "vdd-rtc";
- -};
- -
- -®_ldo2 {
- - regulator-always-on;
- - regulator-min-microvolt = <3000000>;
- - regulator-max-microvolt = <3000000>;
- - regulator-name = "avcc";
- -};
- -
- -®_usb1_vbus {
- - status = "okay";
- -};
- -
- -®_usb2_vbus {
- - status = "okay";
- -};
- -
- &spi0 {
- pinctrl-names = "default";
- pinctrl-0 = <&spi0_pins_a>,
- <&spi0_cs0_pins_a>;
- status = "okay";
- };
- -
- -&uart0 {
- - pinctrl-names = "default";
- - pinctrl-0 = <&uart0_pins_a>;
- - status = "okay";
- -};
- -
- -&usbphy {
- - usb1_vbus-supply = <®_usb1_vbus>;
- - usb2_vbus-supply = <®_usb2_vbus>;
- - status = "okay";
- -};
- --- a/arch/arm/dts/sun4i-a10-jesurun-q5.dts
- +++ b/arch/arm/dts/sun4i-a10-jesurun-q5.dts
- @@ -156,6 +156,10 @@
- status = "okay";
- };
-
- +&otg_sram {
- + status = "okay";
- +};
- +
- &pio {
- emac_power_pin_q5: emac_power_pin@0 {
- allwinner,pins = "PH19";
- @@ -172,6 +176,11 @@
- };
- };
-
- +®_usb0_vbus {
- + regulator-boot-on;
- + status = "okay";
- +};
- +
- ®_usb1_vbus {
- status = "okay";
- };
- @@ -186,7 +195,13 @@
- status = "okay";
- };
-
- +&usb_otg {
- + dr_mode = "host";
- + status = "okay";
- +};
- +
- &usbphy {
- + usb0_vbus-supply = <®_usb0_vbus>;
- usb1_vbus-supply = <®_usb1_vbus>;
- usb2_vbus-supply = <®_usb2_vbus>;
- status = "okay";
- --- a/arch/arm/dts/sun4i-a10-marsboard.dts
- +++ b/arch/arm/dts/sun4i-a10-marsboard.dts
- @@ -91,6 +91,10 @@
- status = "okay";
- };
-
- +&codec {
- + status = "okay";
- +};
- +
- &ehci0 {
- status = "okay";
- };
- @@ -154,6 +158,10 @@
- status = "okay";
- };
-
- +&otg_sram {
- + status = "okay";
- +};
- +
- &pio {
- led_pins_marsboard: led_pins@0 {
- allwinner,pins = "PB5", "PB6", "PB7", "PB8";
- @@ -161,6 +169,13 @@
- allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- };
- +
- + usb0_id_detect_pin: usb0_id_detect_pin@0 {
- + allwinner,pins = "PH4";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- + };
- };
-
- ®_usb1_vbus {
- @@ -184,7 +199,15 @@
- status = "okay";
- };
-
- +&usb_otg {
- + dr_mode = "otg";
- + status = "okay";
- +};
- +
- &usbphy {
- + pinctrl-names = "default";
- + pinctrl-0 = <&usb0_id_detect_pin>;
- + usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
- usb1_vbus-supply = <®_usb1_vbus>;
- usb2_vbus-supply = <®_usb2_vbus>;
- status = "okay";
- --- a/arch/arm/dts/sun4i-a10-mk802.dts
- +++ b/arch/arm/dts/sun4i-a10-mk802.dts
- @@ -44,6 +44,7 @@
- #include "sun4i-a10.dtsi"
- #include "sunxi-common-regulators.dtsi"
- #include <dt-bindings/gpio/gpio.h>
- +#include <dt-bindings/pinctrl/sun4i-a10.h>
-
- / {
- model = "MK802";
- @@ -58,6 +59,10 @@
- };
- };
-
- +&codec {
- + status = "okay";
- +};
- +
- &ehci0 {
- status = "okay";
- };
- @@ -80,7 +85,25 @@
- status = "okay";
- };
-
- +&otg_sram {
- + status = "okay";
- +};
- +
- &pio {
- + usb0_id_detect_pin: usb0_id_detect_pin@0 {
- + allwinner,pins = "PH4";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- + usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 {
- + allwinner,pins = "PH5";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- usb2_vbus_pin_mk802: usb2_vbus_pin@0 {
- allwinner,pins = "PH12";
- allwinner,function = "gpio_out";
- @@ -89,6 +112,10 @@
- };
- };
-
- +®_usb0_vbus {
- + status = "okay";
- +};
- +
- ®_usb1_vbus {
- status = "okay";
- };
- @@ -105,7 +132,17 @@
- status = "okay";
- };
-
- +&usb_otg {
- + dr_mode = "otg";
- + status = "okay";
- +};
- +
- &usbphy {
- + pinctrl-names = "default";
- + pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
- + usb0_id_det-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
- + usb0_vbus_det-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
- + usb0_vbus-supply = <®_usb0_vbus>;
- usb1_vbus-supply = <®_usb1_vbus>;
- usb2_vbus-supply = <®_usb2_vbus>;
- status = "okay";
- --- a/arch/arm/dts/sun4i-a10-olinuxino-lime.dts
- +++ b/arch/arm/dts/sun4i-a10-olinuxino-lime.dts
- @@ -124,6 +124,18 @@
- };
- };
-
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins_a>;
- + status = "okay";
- +
- + eeprom: eeprom@50 {
- + compatible = "atmel,24c16";
- + reg = <0x50>;
- + pagesize = <16>;
- + };
- +};
- +
- &mdio {
- status = "okay";
-
- --- a/arch/arm/dts/sun4i-a10-pcduino.dts
- +++ b/arch/arm/dts/sun4i-a10-pcduino.dts
- @@ -104,6 +104,10 @@
- };
- };
-
- +&cpu0 {
- + cpu-supply = <®_dcdc2>;
- +};
- +
- &ehci0 {
- status = "okay";
- };
- @@ -129,12 +133,8 @@
- status = "okay";
-
- axp209: pmic@34 {
- - compatible = "x-powers,axp209";
- reg = <0x34>;
- interrupts = <0>;
- -
- - interrupt-controller;
- - #interrupt-cells = <1>;
- };
- };
-
- @@ -164,6 +164,10 @@
- status = "okay";
- };
-
- +&otg_sram {
- + status = "okay";
- +};
- +
- &pio {
- led_pins_pcduino: led_pins@0 {
- allwinner,pins = "PH15", "PH16";
- @@ -178,14 +182,40 @@
- allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- };
- +
- + usb0_id_detect_pin: usb0_id_detect_pin@0 {
- + allwinner,pins = "PH4";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- + };
- };
-
- -®_usb1_vbus {
- - status = "okay";
- +#include "axp209.dtsi"
- +
- +®_dcdc2 {
- + regulator-always-on;
- + regulator-min-microvolt = <1000000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-cpu";
- };
-
- -®_usb2_vbus {
- - status = "okay";
- +®_dcdc3 {
- + regulator-always-on;
- + regulator-min-microvolt = <1000000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-int-dll";
- +};
- +
- +®_ldo1 {
- + regulator-name = "vdd-rtc";
- +};
- +
- +®_ldo2 {
- + regulator-always-on;
- + regulator-min-microvolt = <3000000>;
- + regulator-max-microvolt = <3000000>;
- + regulator-name = "avcc";
- };
-
- &uart0 {
- @@ -194,8 +224,16 @@
- status = "okay";
- };
-
- +&usb_otg {
- + dr_mode = "otg";
- + status = "okay";
- +};
- +
- &usbphy {
- - usb1_vbus-supply = <®_usb1_vbus>;
- - usb2_vbus-supply = <®_usb2_vbus>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&usb0_id_detect_pin>;
- + usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
- + usb1_vbus-supply = <®_vcc5v0>; /* USB1 VBUS is always on */
- + usb2_vbus-supply = <®_vcc5v0>; /* USB2 VBUS is always on */
- status = "okay";
- };
- --- /dev/null
- +++ b/arch/arm/dts/sun4i-a10-pcduino2.dts
- @@ -0,0 +1,78 @@
- +/*
- + * Copyright 2015 Siarhei Siamashka <siarhei.siamashka@gmail.com>
- + *
- + * This file is dual-licensed: you can use it either under the terms
- + * of the GPL or the X11 license, at your option. Note that this dual
- + * licensing only applies to this file, and not this project as a
- + * whole.
- + *
- + * a) This file is free software; you can redistribute it and/or
- + * modify it under the terms of the GNU General Public License as
- + * published by the Free Software Foundation; either version 2 of the
- + * License, or (at your option) any later version.
- + *
- + * This file is distributed in the hope that it will be useful,
- + * but WITHOUT ANY WARRANTY; without even the implied warranty of
- + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- + * GNU General Public License for more details.
- + *
- + * Or, alternatively,
- + *
- + * b) Permission is hereby granted, free of charge, to any person
- + * obtaining a copy of this software and associated documentation
- + * files (the "Software"), to deal in the Software without
- + * restriction, including without limitation the rights to use,
- + * copy, modify, merge, publish, distribute, sublicense, and/or
- + * sell copies of the Software, and to permit persons to whom the
- + * Software is furnished to do so, subject to the following
- + * conditions:
- + *
- + * The above copyright notice and this permission notice shall be
- + * included in all copies or substantial portions of the Software.
- + *
- + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- + * OTHER DEALINGS IN THE SOFTWARE.
- + */
- +
- +/*
- + * The LinkSprite pcDuino2 board is almost identical to the older
- + * LinkSprite pcDuino1 board. The only software visible difference
- + * is that the pcDuino2 board got a USB VBUS voltage regulator, which
- + * is controlled by the PD2 pin (pulled-up by default). Also one of
- + * the USB host ports has been replaced with a USB WIFI chip.
- + */
- +
- +#include "sun4i-a10-pcduino.dts"
- +
- +/ {
- + model = "LinkSprite pcDuino2";
- + compatible = "linksprite,a10-pcduino2", "allwinner,sun4i-a10";
- +};
- +
- +&pio {
- + usb2_vbus_pin_pcduino2: usb2_vbus_pin@0 {
- + allwinner,pins = "PD2";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +};
- +
- +®_usb2_vbus {
- + pinctrl-names = "default";
- + pinctrl-0 = <&usb2_vbus_pin_pcduino2>;
- + gpio = <&pio 3 2 GPIO_ACTIVE_HIGH>;
- + status = "okay";
- +};
- +
- +&usbphy {
- + usb1_vbus-supply = <®_vcc3v3>; /* USB WIFI is always on */
- + usb2_vbus-supply = <®_usb2_vbus>;
- + status = "okay";
- +};
- --- a/arch/arm/dts/sun4i-a10-pov-protab2-ips9.dts
- +++ b/arch/arm/dts/sun4i-a10-pov-protab2-ips9.dts
- @@ -47,6 +47,7 @@
- #include <dt-bindings/input/input.h>
- #include <dt-bindings/interrupt-controller/irq.h>
- #include <dt-bindings/pinctrl/sun4i-a10.h>
- +#include <dt-bindings/pwm/pwm.h>
-
- / {
- model = "Point of View Protab2-IPS9";
- @@ -56,11 +57,28 @@
- serial0 = &uart0;
- };
-
- + backlight: backlight {
- + compatible = "pwm-backlight";
- + pinctrl-names = "default";
- + pinctrl-0 = <&bl_en_pin_protab>;
- + pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
- + brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
- + default-brightness-level = <8>;
- + enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
- + };
- +
- chosen {
- stdout-path = "serial0:115200n8";
- };
- };
-
- +&codec {
- + pinctrl-names = "default";
- + pinctrl-0 = <&codec_pa_pin>;
- + allwinner,pa-gpios = <&pio 7 15 GPIO_ACTIVE_HIGH>; /* PH15 */
- + status = "okay";
- +};
- +
- &cpu0 {
- cpu-supply = <®_dcdc2>;
- };
- @@ -86,12 +104,36 @@
- pinctrl-names = "default";
- pinctrl-0 = <&i2c1_pins_a>;
- status = "okay";
- +
- + /* Accelerometer */
- + bma250@18 {
- + compatible = "bosch,bma250";
- + reg = <0x18>;
- + interrupt-parent = <&pio>;
- + interrupts = <7 0 IRQ_TYPE_EDGE_RISING>; /* PH0 / EINT0 */
- + };
- };
-
- &i2c2 {
- pinctrl-names = "default";
- pinctrl-0 = <&i2c2_pins_a>;
- status = "okay";
- +
- + pixcir_ts@5c {
- + pinctrl-names = "default";
- + pinctrl-0 = <&touchscreen_pins>;
- + compatible = "pixcir,pixcir_tangoc";
- + reg = <0x5c>;
- + interrupt-parent = <&pio>;
- + interrupts = <7 21 IRQ_TYPE_EDGE_FALLING>; /* EINT21 (PH21) */
- + attb-gpio = <&pio 7 21 GPIO_ACTIVE_HIGH>; /* PH21 */
- + enable-gpios = <&pio 0 5 GPIO_ACTIVE_LOW>;
- + wake-gpios = <&pio 1 13 GPIO_ACTIVE_LOW>;
- + touchscreen-size-x = <1024>;
- + touchscreen-size-y = <768>;
- + touchscreen-inverted-x;
- + touchscreen-inverted-y;
- + };
- };
-
- &lradc {
- @@ -128,6 +170,27 @@
- };
-
- &pio {
- + bl_en_pin_protab: bl_en_pin@0 {
- + allwinner,pins = "PH7";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- + codec_pa_pin: codec_pa_pin@0 {
- + allwinner,pins = "PH15";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- + touchscreen_pins: touchscreen_pins@0 {
- + allwinner,pins = "PA5", "PB13";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- usb0_id_detect_pin: usb0_id_detect_pin@0 {
- allwinner,pins = "PH4";
- allwinner,function = "gpio_in";
- @@ -143,6 +206,12 @@
- };
- };
-
- +&pwm {
- + pinctrl-names = "default";
- + pinctrl-0 = <&pwm0_pins_a>;
- + status = "okay";
- +};
- +
- ®_dcdc2 {
- regulator-always-on;
- regulator-min-microvolt = <1000000>;
- --- a/arch/arm/dts/sun4i-a10.dtsi
- +++ b/arch/arm/dts/sun4i-a10.dtsi
- @@ -45,6 +45,7 @@
-
- #include <dt-bindings/thermal/thermal.h>
-
- +#include <dt-bindings/clock/sun4i-a10-pll2.h>
- #include <dt-bindings/dma/sun4i-a10.h>
- #include <dt-bindings/pinctrl/sun4i-a10.h>
-
- @@ -65,7 +66,7 @@
- "simple-framebuffer";
- allwinner,pipeline = "de_be0-lcd0-hdmi";
- clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
- - <&ahb_gates 44>;
- + <&ahb_gates 44>, <&dram_gates 26>;
- status = "disabled";
- };
-
- @@ -74,7 +75,8 @@
- "simple-framebuffer";
- allwinner,pipeline = "de_fe0-de_be0-lcd0-hdmi";
- clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
- - <&ahb_gates 44>, <&ahb_gates 46>;
- + <&ahb_gates 44>, <&ahb_gates 46>,
- + <&dram_gates 25>, <&dram_gates 26>;
- status = "disabled";
- };
-
- @@ -83,7 +85,8 @@
- "simple-framebuffer";
- allwinner,pipeline = "de_fe0-de_be0-lcd0";
- clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>,
- - <&ahb_gates 46>;
- + <&ahb_gates 46>, <&dram_gates 25>,
- + <&dram_gates 26>;
- status = "disabled";
- };
-
- @@ -92,7 +95,8 @@
- "simple-framebuffer";
- allwinner,pipeline = "de_fe0-de_be0-lcd0-tve0";
- clocks = <&pll5 1>, <&ahb_gates 34>, <&ahb_gates 36>,
- - <&ahb_gates 44>, <&ahb_gates 46>;
- + <&ahb_gates 44>, <&ahb_gates 46>,
- + <&dram_gates 25>, <&dram_gates 26>;
- status = "disabled";
- };
- };
- @@ -195,6 +199,15 @@
- clock-output-names = "pll1";
- };
-
- + pll2: clk@01c20008 {
- + #clock-cells = <1>;
- + compatible = "allwinner,sun4i-a10-pll2-clk";
- + reg = <0x01c20008 0x8>;
- + clocks = <&osc24M>;
- + clock-output-names = "pll2-1x", "pll2-2x",
- + "pll2-4x", "pll2-8x";
- + };
- +
- pll4: clk@01c20018 {
- #clock-cells = <0>;
- compatible = "allwinner,sun4i-a10-pll1-clk";
- @@ -241,6 +254,7 @@
- compatible = "allwinner,sun4i-a10-axi-gates-clk";
- reg = <0x01c2005c 0x4>;
- clocks = <&axi>;
- + clock-indices = <0>;
- clock-output-names = "axi_dram";
- };
-
- @@ -257,17 +271,36 @@
- compatible = "allwinner,sun4i-a10-ahb-gates-clk";
- reg = <0x01c20060 0x8>;
- clocks = <&ahb>;
- + clock-indices = <0>, <1>,
- + <2>, <3>,
- + <4>, <5>, <6>,
- + <7>, <8>, <9>,
- + <10>, <11>, <12>,
- + <13>, <14>, <16>,
- + <17>, <18>, <20>,
- + <21>, <22>, <23>,
- + <24>, <25>, <26>,
- + <32>, <33>, <34>,
- + <35>, <36>, <37>,
- + <40>, <41>, <43>,
- + <44>, <45>,
- + <46>, <47>,
- + <50>, <52>;
- clock-output-names = "ahb_usb0", "ahb_ehci0",
- - "ahb_ohci0", "ahb_ehci1", "ahb_ohci1", "ahb_ss",
- - "ahb_dma", "ahb_bist", "ahb_mmc0", "ahb_mmc1",
- - "ahb_mmc2", "ahb_mmc3", "ahb_ms", "ahb_nand",
- - "ahb_sdram", "ahb_ace", "ahb_emac", "ahb_ts",
- - "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_spi3",
- - "ahb_pata", "ahb_sata", "ahb_gps", "ahb_ve",
- - "ahb_tvd", "ahb_tve0", "ahb_tve1", "ahb_lcd0",
- - "ahb_lcd1", "ahb_csi0", "ahb_csi1", "ahb_hdmi",
- - "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
- - "ahb_de_fe1", "ahb_mp", "ahb_mali400";
- + "ahb_ohci0", "ahb_ehci1",
- + "ahb_ohci1", "ahb_ss", "ahb_dma",
- + "ahb_bist", "ahb_mmc0", "ahb_mmc1",
- + "ahb_mmc2", "ahb_mmc3", "ahb_ms",
- + "ahb_nand", "ahb_sdram", "ahb_ace",
- + "ahb_emac", "ahb_ts", "ahb_spi0",
- + "ahb_spi1", "ahb_spi2", "ahb_spi3",
- + "ahb_pata", "ahb_sata", "ahb_gps",
- + "ahb_ve", "ahb_tvd", "ahb_tve0",
- + "ahb_tve1", "ahb_lcd0", "ahb_lcd1",
- + "ahb_csi0", "ahb_csi1", "ahb_hdmi",
- + "ahb_de_be0", "ahb_de_be1",
- + "ahb_de_fe0", "ahb_de_fe1",
- + "ahb_mp", "ahb_mali400";
- };
-
- apb0: apb0@01c20054 {
- @@ -283,9 +316,14 @@
- compatible = "allwinner,sun4i-a10-apb0-gates-clk";
- reg = <0x01c20068 0x4>;
- clocks = <&apb0>;
- + clock-indices = <0>, <1>,
- + <2>, <3>,
- + <5>, <6>,
- + <7>, <10>;
- clock-output-names = "apb0_codec", "apb0_spdif",
- - "apb0_ac97", "apb0_iis", "apb0_pio", "apb0_ir0",
- - "apb0_ir1", "apb0_keypad";
- + "apb0_ac97", "apb0_iis",
- + "apb0_pio", "apb0_ir0",
- + "apb0_ir1", "apb0_keypad";
- };
-
- apb1: clk@01c20058 {
- @@ -301,12 +339,22 @@
- compatible = "allwinner,sun4i-a10-apb1-gates-clk";
- reg = <0x01c2006c 0x4>;
- clocks = <&apb1>;
- + clock-indices = <0>, <1>,
- + <2>, <4>,
- + <5>, <6>,
- + <7>, <16>,
- + <17>, <18>,
- + <19>, <20>,
- + <21>, <22>,
- + <23>;
- clock-output-names = "apb1_i2c0", "apb1_i2c1",
- - "apb1_i2c2", "apb1_can", "apb1_scr",
- - "apb1_ps20", "apb1_ps21", "apb1_uart0",
- - "apb1_uart1", "apb1_uart2", "apb1_uart3",
- - "apb1_uart4", "apb1_uart5", "apb1_uart6",
- - "apb1_uart7";
- + "apb1_i2c2", "apb1_can",
- + "apb1_scr", "apb1_ps20",
- + "apb1_ps21", "apb1_uart0",
- + "apb1_uart1", "apb1_uart2",
- + "apb1_uart3", "apb1_uart4",
- + "apb1_uart5", "apb1_uart6",
- + "apb1_uart7";
- };
-
- nand_clk: clk@01c20080 {
- @@ -446,6 +494,48 @@
- clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
- clock-output-names = "spi3";
- };
- +
- + dram_gates: clk@01c20100 {
- + #clock-cells = <1>;
- + compatible = "allwinner,sun4i-a10-dram-gates-clk";
- + reg = <0x01c20100 0x4>;
- + clocks = <&pll5 0>;
- + clock-indices = <0>,
- + <1>, <2>,
- + <3>,
- + <4>,
- + <5>, <6>,
- + <15>,
- + <24>, <25>,
- + <26>, <27>,
- + <28>, <29>;
- + clock-output-names = "dram_ve",
- + "dram_csi0", "dram_csi1",
- + "dram_ts",
- + "dram_tvd",
- + "dram_tve0", "dram_tve1",
- + "dram_output",
- + "dram_de_fe1", "dram_de_fe0",
- + "dram_de_be0", "dram_de_be1",
- + "dram_de_mp", "dram_ace";
- + };
- +
- + ve_clk: clk@01c2013c {
- + #clock-cells = <0>;
- + #reset-cells = <0>;
- + compatible = "allwinner,sun4i-a10-ve-clk";
- + reg = <0x01c2013c 0x4>;
- + clocks = <&pll4>;
- + clock-output-names = "ve";
- + };
- +
- + codec_clk: clk@01c20140 {
- + #clock-cells = <0>;
- + compatible = "allwinner,sun4i-a10-codec-clk";
- + reg = <0x01c20140 0x4>;
- + clocks = <&pll2 SUN4I_A10_PLL2_1X>;
- + clock-output-names = "codec";
- + };
- };
-
- soc@01c00000 {
- @@ -656,6 +746,14 @@
- status = "disabled";
- };
-
- + crypto: crypto-engine@01c15000 {
- + compatible = "allwinner,sun4i-a10-crypto";
- + reg = <0x01c15000 0x1000>;
- + interrupts = <86>;
- + clocks = <&ahb_gates 5>, <&ss_clk>;
- + clock-names = "ahb", "mod";
- + };
- +
- spi2: spi@01c17000 {
- compatible = "allwinner,sun4i-a10-spi";
- reg = <0x01c17000 0x1000>;
- @@ -961,6 +1059,19 @@
- status = "disabled";
- };
-
- + codec: codec@01c22c00 {
- + #sound-dai-cells = <0>;
- + compatible = "allwinner,sun4i-a10-codec";
- + reg = <0x01c22c00 0x40>;
- + interrupts = <30>;
- + clocks = <&apb0_gates 0>, <&codec_clk>;
- + clock-names = "apb", "codec";
- + dmas = <&dma SUN4I_DMA_NORMAL 19>,
- + <&dma SUN4I_DMA_NORMAL 19>;
- + dma-names = "rx", "tx";
- + status = "disabled";
- + };
- +
- sid: eeprom@01c23800 {
- compatible = "allwinner,sun4i-a10-sid";
- reg = <0x01c23800 0x10>;
- --- a/arch/arm/dts/sun5i-a10s-auxtek-t004.dts
- +++ b/arch/arm/dts/sun5i-a10s-auxtek-t004.dts
- @@ -86,6 +86,20 @@
- status = "okay";
- };
-
- +&i2c0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c0_pins_a>;
- + status = "okay";
- +
- + axp152: pmic@30 {
- + compatible = "x-powers,axp152";
- + reg = <0x30>;
- + interrupts = <0>;
- + interrupt-controller;
- + #interrupt-cells = <1>;
- + };
- +};
- +
- &mmc0 {
- pinctrl-names = "default";
- pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_t004>;
- --- a/arch/arm/dts/sun5i-a10s-olinuxino-micro.dts
- +++ b/arch/arm/dts/sun5i-a10s-olinuxino-micro.dts
- @@ -111,7 +111,7 @@
- status = "okay";
-
- at24@50 {
- - compatible = "at,24c16";
- + compatible = "atmel,24c16";
- pagesize = <16>;
- reg = <0x50>;
- read-only;
- --- a/arch/arm/dts/sun5i-a13-empire-electronix-d709.dts
- +++ b/arch/arm/dts/sun5i-a13-empire-electronix-d709.dts
- @@ -123,7 +123,7 @@
-
- &mmc0 {
- pinctrl-names = "default";
- - pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_inet98fv2>;
- + pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_d709>;
- vmmc-supply = <®_vcc3v3>;
- bus-width = <4>;
- cd-gpios = <&pio 6 0 GPIO_ACTIVE_HIGH>; /* PG0 */
- @@ -131,27 +131,12 @@
- status = "okay";
- };
-
- -&mmc2 {
- - pinctrl-names = "default";
- - pinctrl-0 = <&mmc2_pins_a>;
- - vmmc-supply = <®_vcc3v3>;
- - bus-width = <8>;
- - non-removable;
- - status = "okay";
- -
- - mmccard: mmccard@0 {
- - reg = <0>;
- - compatible = "mmc-card";
- - broken-hpi;
- - };
- -};
- -
- &otg_sram {
- status = "okay";
- };
-
- &pio {
- - mmc0_cd_pin_inet98fv2: mmc0_cd_pin@0 {
- + mmc0_cd_pin_d709: mmc0_cd_pin@0 {
- allwinner,pins = "PG0";
- allwinner,function = "gpio_in";
- allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- --- a/arch/arm/dts/sun5i-a13-inet-98v-rev2.dts
- +++ b/arch/arm/dts/sun5i-a13-inet-98v-rev2.dts
- @@ -123,21 +123,6 @@
- status = "okay";
- };
-
- -&mmc2 {
- - pinctrl-names = "default";
- - pinctrl-0 = <&mmc2_pins_a>;
- - vmmc-supply = <®_vcc3v3>;
- - bus-width = <8>;
- - non-removable;
- - status = "okay";
- -
- - mmccard: mmccard@0 {
- - reg = <0>;
- - compatible = "mmc-card";
- - broken-hpi;
- - };
- -};
- -
- &otg_sram {
- status = "okay";
- };
- @@ -201,11 +186,6 @@
- status = "okay";
- };
-
- -®_usb1_vbus {
- - gpio = <&pio 6 11 GPIO_ACTIVE_HIGH>; /* PG11 */
- - status = "okay";
- -};
- -
- &uart1 {
- pinctrl-names = "default";
- pinctrl-0 = <&uart1_pins_b>;
- @@ -221,16 +201,12 @@
- allwinner,pins = "PG12";
- };
-
- -&usb1_vbus_pin_a {
- - allwinner,pins = "PG11";
- -};
- -
- &usbphy {
- pinctrl-names = "default";
- pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
- usb0_id_det-gpio = <&pio 6 2 GPIO_ACTIVE_HIGH>; /* PG2 */
- usb0_vbus_det-gpio = <&pio 6 1 GPIO_ACTIVE_HIGH>; /* PG1 */
- usb0_vbus-supply = <®_usb0_vbus>;
- - usb1_vbus-supply = <®_usb1_vbus>;
- + usb1_vbus-supply = <®_ldo3>;
- status = "okay";
- };
- --- a/arch/arm/dts/sun5i-a13-utoo-p66.dts
- +++ b/arch/arm/dts/sun5i-a13-utoo-p66.dts
- @@ -47,11 +47,21 @@
- #include <dt-bindings/input/input.h>
- #include <dt-bindings/interrupt-controller/irq.h>
- #include <dt-bindings/pinctrl/sun4i-a10.h>
- +#include <dt-bindings/pwm/pwm.h>
-
- / {
- model = "Utoo P66";
- compatible = "utoo,p66", "allwinner,sun5i-a13";
-
- + backlight: backlight {
- + compatible = "pwm-backlight";
- + pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
- + /* Note levels of 10 / 20% result in backlight off */
- + brightness-levels = <0 30 40 50 60 70 80 90 100>;
- + default-brightness-level = <6>;
- + /* TODO: backlight uses axp gpio1 as enable pin */
- + };
- +
- i2c_lcd: i2c@0 {
- /* The lcd panel i2c interface is hooked up via gpios */
- compatible = "i2c-gpio";
- @@ -63,6 +73,13 @@
- };
- };
-
- +&codec {
- + pinctrl-names = "default";
- + pinctrl-0 = <&codec_pa_pin>;
- + allwinner,pa-gpios = <&pio 6 3 GPIO_ACTIVE_HIGH>; /* PG3 */
- + status = "okay";
- +};
- +
- &cpu0 {
- cpu-supply = <®_dcdc2>;
- };
- @@ -158,6 +175,13 @@
- };
-
- &pio {
- + codec_pa_pin: codec_pa_pin@0 {
- + allwinner,pins = "PG3";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- mmc0_cd_pin_p66: mmc0_cd_pin@0 {
- allwinner,pins = "PG0";
- allwinner,function = "gpio_in";
- @@ -201,6 +225,12 @@
- };
- };
-
- +&pwm {
- + pinctrl-names = "default";
- + pinctrl-0 = <&pwm0_pins>;
- + status = "okay";
- +};
- +
- ®_dcdc2 {
- regulator-always-on;
- regulator-min-microvolt = <1000000>;
- --- a/arch/arm/dts/sun5i-q8-common.dtsi
- +++ b/arch/arm/dts/sun5i-q8-common.dtsi
- @@ -41,11 +41,21 @@
- */
- #include "sunxi-q8-common.dtsi"
-
- +#include <dt-bindings/pwm/pwm.h>
- +
- / {
- aliases {
- serial0 = &uart1;
- };
-
- + backlight: backlight {
- + compatible = "pwm-backlight";
- + pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
- + brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
- + default-brightness-level = <8>;
- + /* TODO: backlight uses axp gpio1 as enable pin */
- + };
- +
- chosen {
- stdout-path = "serial0:115200n8";
- };
- --- a/arch/arm/dts/sun5i-r8-chip.dts
- +++ b/arch/arm/dts/sun5i-r8-chip.dts
- @@ -64,6 +64,26 @@
- chosen {
- stdout-path = "serial0:115200n8";
- };
- +
- + wifi_reg_on: wifi_reg_on {
- + compatible = "regulator-fixed";
- + pinctrl-names = "default";
- + pinctrl-0 = <&chip_wifi_reg_on_pin>;
- +
- + regulator-name = "wifi-reg-on";
- + regulator-min-microvolt = <3300000>;
- + regulator-max-microvolt = <3300000>;
- + gpio = <&pio 2 19 GPIO_ACTIVE_HIGH>; /* PC19 */
- + enable-active-high;
- + };
- +};
- +
- +&codec {
- + status = "okay";
- +};
- +
- +&cpu0 {
- + cpu-supply = <®_dcdc2>;
- };
-
- &ehci0 {
- @@ -109,10 +129,14 @@
- };
- };
-
- +&mmc0_pins_a {
- + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- +};
- +
- &mmc0 {
- pinctrl-names = "default";
- pinctrl-0 = <&mmc0_pins_a>;
- - vmmc-supply = <®_vcc3v3>;
- + vmmc-supply = <&wifi_reg_on>;
- bus-width = <4>;
- non-removable;
- status = "okay";
- @@ -134,6 +158,13 @@
- allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- };
-
- + chip_wifi_reg_on_pin: chip_wifi_reg_on_pin@0 {
- + allwinner,pins = "PC19";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- chip_id_det_pin: chip_id_det_pin@0 {
- allwinner,pins = "PG2";
- allwinner,function = "gpio_in";
- @@ -167,6 +198,20 @@
- regulator-always-on;
- };
-
- +®_ldo3 {
- + regulator-min-microvolt = <3300000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-name = "vdd-wifi1";
- + regulator-always-on;
- +};
- +
- +®_ldo4 {
- + regulator-min-microvolt = <3300000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-name = "vdd-wifi2";
- + regulator-always-on;
- +};
- +
- ®_ldo5 {
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1800000>;
- --- a/arch/arm/dts/sun5i.dtsi
- +++ b/arch/arm/dts/sun5i.dtsi
- @@ -44,6 +44,7 @@
-
- #include "skeleton.dtsi"
-
- +#include <dt-bindings/clock/sun4i-a10-pll2.h>
- #include <dt-bindings/dma/sun4i-a10.h>
- #include <dt-bindings/pinctrl/sun4i-a10.h>
-
- @@ -102,6 +103,15 @@
- clock-output-names = "pll1";
- };
-
- + pll2: clk@01c20008 {
- + #clock-cells = <1>;
- + compatible = "allwinner,sun5i-a13-pll2-clk";
- + reg = <0x01c20008 0x8>;
- + clocks = <&osc24M>;
- + clock-output-names = "pll2-1x", "pll2-2x",
- + "pll2-4x", "pll2-8x";
- + };
- +
- pll4: clk@01c20018 {
- #clock-cells = <0>;
- compatible = "allwinner,sun4i-a10-pll1-clk";
- @@ -285,6 +295,14 @@
- clock-output-names = "usb_ohci0", "usb_phy";
- };
-
- + codec_clk: clk@01c20140 {
- + #clock-cells = <0>;
- + compatible = "allwinner,sun4i-a10-codec-clk";
- + reg = <0x01c20140 0x4>;
- + clocks = <&pll2 SUN4I_A10_PLL2_1X>;
- + clock-output-names = "codec";
- + };
- +
- mbus_clk: clk@01c2015c {
- #clock-cells = <0>;
- compatible = "allwinner,sun5i-a13-mbus-clk";
- @@ -571,6 +589,19 @@
- status = "disabled";
- };
-
- + codec: codec@01c22c00 {
- + #sound-dai-cells = <0>;
- + compatible = "allwinner,sun4i-a10-codec";
- + reg = <0x01c22c00 0x40>;
- + interrupts = <30>;
- + clocks = <&apb0_gates 0>, <&codec_clk>;
- + clock-names = "apb", "codec";
- + dmas = <&dma SUN4I_DMA_NORMAL 19>,
- + <&dma SUN4I_DMA_NORMAL 19>;
- + dma-names = "rx", "tx";
- + status = "disabled";
- + };
- +
- sid: eeprom@01c23800 {
- compatible = "allwinner,sun4i-a10-sid";
- reg = <0x01c23800 0x10>;
- --- a/arch/arm/dts/sun6i-a31-colombus.dts
- +++ b/arch/arm/dts/sun6i-a31-colombus.dts
- @@ -60,6 +60,16 @@
- chosen {
- stdout-path = "serial0:115200n8";
- };
- +
- + i2c_lcd: i2c@0 {
- + /* The lcd panel i2c interface is hooked up via gpios */
- + compatible = "i2c-gpio";
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c_lcd_pins>;
- + gpios = <&pio 0 23 GPIO_ACTIVE_HIGH>, /* PA23, sda */
- + <&pio 0 24 GPIO_ACTIVE_HIGH>; /* PA24, scl */
- + i2c-gpio,delay-us = <5>;
- + };
- };
-
- &ehci1 {
- @@ -94,6 +104,13 @@
- pinctrl-names = "default";
- pinctrl-0 = <&i2c2_pins_a>;
- status = "okay";
- +
- + mma8452: mma8452@1d {
- + compatible = "fsl,mma8452";
- + reg = <0x1d>;
- + interrupt-parent = <&pio>;
- + interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PA9 */
- + };
- };
-
- &mmc0 {
- @@ -124,6 +141,13 @@
- allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- };
- +
- + i2c_lcd_pins: i2c_lcd_pin@0 {
- + allwinner,pins = "PA23", "PA24";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- + };
- };
-
- ®_usb2_vbus {
- --- a/arch/arm/dts/sun6i-a31-hummingbird.dts
- +++ b/arch/arm/dts/sun6i-a31-hummingbird.dts
- @@ -54,6 +54,8 @@
- compatible = "merrii,a31-hummingbird", "allwinner,sun6i-a31";
-
- aliases {
- + rtc0 = &pcf8563;
- + rtc1 = &rtc;
- serial0 = &uart0;
- };
-
- @@ -67,13 +69,17 @@
- };
- };
-
- +&cpu0 {
- + cpu-supply = <®_dcdc3>;
- +};
- +
- &ehci0 {
- status = "okay";
- };
-
- &gmac {
- pinctrl-names = "default";
- - pinctrl-0 = <&gmac_pins_rgmii_a>;
- + pinctrl-0 = <&gmac_pins_rgmii_a>, <&gmac_phy_reset_pin_hummingbird>;
- phy = <&phy1>;
- phy-mode = "rgmii";
- snps,reset-gpio = <&pio 0 21 GPIO_ACTIVE_HIGH>;
- @@ -119,7 +125,7 @@
- &mmc0 {
- pinctrl-names = "default";
- pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_hummingbird>;
- - vmmc-supply = <&vcc_3v0>;
- + vmmc-supply = <®_dcdc1>;
- bus-width = <4>;
- cd-gpios = <&pio 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */
- cd-inverted;
- @@ -134,7 +140,7 @@
- &mmc1 {
- pinctrl-names = "default";
- pinctrl-0 = <&mmc1_pins_a>, <&wifi_reset_pin_hummingbird>;
- - vmmc-supply = <&vcc_wifi>;
- + vmmc-supply = <®_aldo1>;
- mmc-pwrseq = <&wifi_pwrseq>;
- bus-width = <4>;
- non-removable;
- @@ -146,6 +152,13 @@
- };
-
- &pio {
- + gmac_phy_reset_pin_hummingbird: gmac_phy_reset_pin@0 {
- + allwinner,pins = "PA21";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- mmc0_cd_pin_hummingbird: mmc0_cd_pin@0 {
- allwinner,pins = "PA8";
- allwinner,function = "gpio_in";
- @@ -164,70 +177,69 @@
- &p2wi {
- status = "okay";
-
- - axp221: pmic@68 {
- + axp22x: pmic@68 {
- compatible = "x-powers,axp221";
- reg = <0x68>;
- interrupt-parent = <&nmi_intc>;
- interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
- - interrupt-controller;
- - #interrupt-cells = <1>;
- - dcdc1-supply = <&vcc_3v0>;
- - dcdc5-supply = <&vcc_dram>;
- -
- - regulators {
- - x-powers,dcdc-freq = <3000>;
- -
- - vcc_3v0: dcdc1 {
- - regulator-always-on;
- - regulator-min-microvolt = <3000000>;
- - regulator-max-microvolt = <3000000>;
- - regulator-name = "vcc-3v0";
- - };
- -
- - vdd_cpu: dcdc2 {
- - regulator-always-on;
- - regulator-min-microvolt = <700000>;
- - regulator-max-microvolt = <1320000>;
- - regulator-name = "vdd-cpu";
- - };
- -
- - vdd_gpu: dcdc3 {
- - regulator-always-on;
- - regulator-min-microvolt = <700000>;
- - regulator-max-microvolt = <1320000>;
- - regulator-name = "vdd-gpu";
- - };
- -
- - vdd_sys_dll: dcdc4 {
- - regulator-always-on;
- - regulator-min-microvolt = <1100000>;
- - regulator-max-microvolt = <1100000>;
- - regulator-name = "vdd-sys-dll";
- - };
- -
- - vcc_dram: dcdc5 {
- - regulator-always-on;
- - regulator-min-microvolt = <1500000>;
- - regulator-max-microvolt = <1500000>;
- - regulator-name = "vcc-dram";
- - };
- -
- - vcc_wifi: aldo1 {
- - regulator-min-microvolt = <3300000>;
- - regulator-max-microvolt = <3300000>;
- - regulator-name = "vcc_wifi";
- - };
- -
- - avcc: aldo3 {
- - regulator-always-on;
- - regulator-min-microvolt = <3000000>;
- - regulator-max-microvolt = <3000000>;
- - regulator-name = "avcc";
- - };
- - };
- };
- };
-
- +#include "axp22x.dtsi"
- +
- +®_aldo1 {
- + regulator-min-microvolt = <3300000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-name = "vcc-wifi";
- +};
- +
- +®_aldo3 {
- + regulator-always-on;
- + regulator-min-microvolt = <2700000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-name = "avcc";
- +};
- +
- +®_dc5ldo {
- + regulator-min-microvolt = <700000>;
- + regulator-max-microvolt = <1320000>;
- + regulator-name = "vdd-cpus";
- +};
- +
- +®_dcdc1 {
- + regulator-always-on;
- + regulator-min-microvolt = <3000000>;
- + regulator-max-microvolt = <3000000>;
- + regulator-name = "vcc-3v0";
- +};
- +
- +®_dcdc2 {
- + regulator-min-microvolt = <700000>;
- + regulator-max-microvolt = <1320000>;
- + regulator-name = "vdd-gpu";
- +};
- +
- +®_dcdc3 {
- + regulator-always-on;
- + regulator-min-microvolt = <700000>;
- + regulator-max-microvolt = <1320000>;
- + regulator-name = "vdd-cpu";
- +};
- +
- +®_dcdc4 {
- + regulator-always-on;
- + regulator-min-microvolt = <700000>;
- + regulator-max-microvolt = <1320000>;
- + regulator-name = "vdd-sys-dll";
- +};
- +
- +®_dcdc5 {
- + regulator-always-on;
- + regulator-min-microvolt = <1500000>;
- + regulator-max-microvolt = <1500000>;
- + regulator-name = "vcc-dram";
- +};
- +
- ®_usb1_vbus {
- gpio = <&pio 7 24 GPIO_ACTIVE_HIGH>; /* PH24 */
- status = "okay";
- --- a/arch/arm/dts/sun6i-a31.dtsi
- +++ b/arch/arm/dts/sun6i-a31.dtsi
- @@ -61,7 +61,7 @@
- #size-cells = <1>;
- ranges;
-
- - framebuffer@0 {
- + simplefb_hdmi: framebuffer@0 {
- compatible = "allwinner,simple-framebuffer",
- "simple-framebuffer";
- allwinner,pipeline = "de_be0-lcd0-hdmi";
- @@ -69,7 +69,7 @@
- status = "disabled";
- };
-
- - framebuffer@1 {
- + simplefb_lcd: framebuffer@1 {
- compatible = "allwinner,simple-framebuffer",
- "simple-framebuffer";
- allwinner,pipeline = "de_be0-lcd0";
- @@ -252,6 +252,20 @@
- compatible = "allwinner,sun6i-a31-ahb1-gates-clk";
- reg = <0x01c20060 0x8>;
- clocks = <&ahb1>;
- + clock-indices = <1>, <5>,
- + <6>, <8>, <9>,
- + <10>, <11>, <12>,
- + <13>, <14>,
- + <17>, <18>, <19>,
- + <20>, <21>, <22>,
- + <23>, <24>, <26>,
- + <27>, <29>,
- + <30>, <31>, <32>,
- + <36>, <37>, <40>,
- + <43>, <44>, <45>,
- + <46>, <47>, <50>,
- + <52>, <55>, <56>,
- + <57>, <58>;
- clock-output-names = "ahb1_mipidsi", "ahb1_ss",
- "ahb1_dma", "ahb1_mmc0", "ahb1_mmc1",
- "ahb1_mmc2", "ahb1_mmc3", "ahb1_nand1",
- @@ -281,6 +295,9 @@
- compatible = "allwinner,sun6i-a31-apb1-gates-clk";
- reg = <0x01c20068 0x4>;
- clocks = <&apb1>;
- + clock-indices = <0>, <4>,
- + <5>, <12>,
- + <13>;
- clock-output-names = "apb1_codec", "apb1_digital_mic",
- "apb1_pio", "apb1_daudio0",
- "apb1_daudio1";
- @@ -299,6 +316,10 @@
- compatible = "allwinner,sun6i-a31-apb2-gates-clk";
- reg = <0x01c2006c 0x4>;
- clocks = <&apb2>;
- + clock-indices = <0>, <1>,
- + <2>, <3>, <16>,
- + <17>, <18>, <19>,
- + <20>, <21>;
- clock-output-names = "apb2_i2c0", "apb2_i2c1",
- "apb2_i2c2", "apb2_i2c3",
- "apb2_uart0", "apb2_uart1",
- @@ -346,6 +367,14 @@
- "mmc3_sample";
- };
-
- + ss_clk: clk@01c2009c {
- + #clock-cells = <0>;
- + compatible = "allwinner,sun4i-a10-mod0-clk";
- + reg = <0x01c2009c 0x4>;
- + clocks = <&osc24M>, <&pll6 0>;
- + clock-output-names = "ss";
- + };
- +
- spi0_clk: clk@01c200a0 {
- #clock-cells = <0>;
- compatible = "allwinner,sun4i-a10-mod0-clk";
- @@ -384,6 +413,9 @@
- compatible = "allwinner,sun6i-a31-usb-clk";
- reg = <0x01c200cc 0x4>;
- clocks = <&osc24M>;
- + clock-indices = <8>, <9>, <10>,
- + <16>, <17>,
- + <18>;
- clock-output-names = "usb_phy0", "usb_phy1", "usb_phy2",
- "usb_ohci0", "usb_ohci1",
- "usb_ohci2";
- @@ -684,6 +716,16 @@
- allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- };
-
- + mmc3_8bit_emmc_pins: mmc3@1 {
- + allwinner,pins = "PC6", "PC7", "PC8", "PC9",
- + "PC10", "PC11", "PC12",
- + "PC13", "PC14", "PC15",
- + "PC24";
- + allwinner,function = "mmc3";
- + allwinner,drive = <SUN4I_PINCTRL_40_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- gmac_pins_mii_a: gmac_mii@0 {
- allwinner,pins = "PA0", "PA1", "PA2", "PA3",
- "PA8", "PA9", "PA11",
- @@ -761,6 +803,13 @@
- reg = <0x01c20ca0 0x20>;
- };
-
- + lradc: lradc@01c22800 {
- + compatible = "allwinner,sun4i-a10-lradc-keys";
- + reg = <0x01c22800 0x100>;
- + interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
- + status = "disabled";
- + };
- +
- rtp: rtp@01c25000 {
- compatible = "allwinner,sun6i-a31-ts";
- reg = <0x01c25000 0x100>;
- @@ -907,6 +956,16 @@
- #size-cells = <0>;
- };
-
- + crypto: crypto-engine@01c15000 {
- + compatible = "allwinner,sun4i-a10-crypto";
- + reg = <0x01c15000 0x1000>;
- + interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
- + clocks = <&ahb1_gates 5>, <&ss_clk>;
- + clock-names = "ahb", "mod";
- + resets = <&ahb1_rst 5>;
- + reset-names = "ahb";
- + };
- +
- timer@01c60000 {
- compatible = "allwinner,sun6i-a31-hstimer",
- "allwinner,sun7i-a20-hstimer";
- @@ -1068,7 +1127,7 @@
- resets = <&apb0_rst 0>;
- gpio-controller;
- interrupt-controller;
- - #interrupt-cells = <2>;
- + #interrupt-cells = <3>;
- #size-cells = <0>;
- #gpio-cells = <3>;
-
- --- a/arch/arm/dts/sun6i-a31s-primo81.dts
- +++ b/arch/arm/dts/sun6i-a31s-primo81.dts
- @@ -1,16 +1,57 @@
- /*
- - * Copyright 2015 Hans de Goede <hdegoede@redhat.com>
- + * Copyright 2014 Siarhei Siamashka <siarhei.siamashka@gmail.com>
- + * Copyright 2015 Karsten Merker <merker@debian.org>
- + * Copyright 2015 Chen-Yu Tsai <wens@csie.org>
- *
- - * Minimal dts file for the MSI Primo81 for u-boot only
- + * This file is dual-licensed: you can use it either under the terms
- + * of the GPL or the X11 license, at your option. Note that this dual
- + * licensing only applies to this file, and not this project as a
- + * whole.
- *
- - * SPDX-License-Identifier: GPL-2.0+ or X11
- + * a) This file is free software; you can redistribute it and/or
- + * modify it under the terms of the GNU General Public License as
- + * published by the Free Software Foundation; either version 2 of the
- + * License, or (at your option) any later version.
- + *
- + * This file is distributed in the hope that it will be useful,
- + * but WITHOUT ANY WARRANTY; without even the implied warranty of
- + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- + * GNU General Public License for more details.
- + *
- + * Or, alternatively,
- + *
- + * b) Permission is hereby granted, free of charge, to any person
- + * obtaining a copy of this software and associated documentation
- + * files (the "Software"), to deal in the Software without
- + * restriction, including without limitation the rights to use,
- + * copy, modify, merge, publish, distribute, sublicense, and/or
- + * sell copies of the Software, and to permit persons to whom the
- + * Software is furnished to do so, subject to the following
- + * conditions:
- + *
- + * The above copyright notice and this permission notice shall be
- + * included in all copies or substantial portions of the Software.
- + *
- + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- + * OTHER DEALINGS IN THE SOFTWARE.
- */
-
- /dts-v1/;
- #include "sun6i-a31s.dtsi"
- +#include "sunxi-common-regulators.dtsi"
- +
- +#include <dt-bindings/gpio/gpio.h>
- +#include <dt-bindings/input/input.h>
- +#include <dt-bindings/pinctrl/sun4i-a10.h>
-
- / {
- - model = "MSI Primo81";
- + model = "MSI Primo81 tablet";
- compatible = "msi,primo81", "allwinner,sun6i-a31s";
-
- aliases {
- @@ -22,8 +63,202 @@
- };
- };
-
- -&uart0 {
- +&cpu0 {
- + cpu-supply = <®_dcdc3>;
- +};
- +
- +&ehci0 {
- + /* rtl8188etv wifi is connected here */
- + status = "okay";
- +};
- +
- +&i2c0 {
- + /* pull-ups and device VDDIO use AXP221 DLDO3 */
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c0_pins_a>;
- + status = "failed";
- +};
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins_a>;
- + status = "okay";
- +
- + ctp@5d {
- + pinctrl-names = "default";
- + pinctrl-0 = <>911_int_primo81>;
- + compatible = "goodix,gt911";
- + reg = <0x5d>;
- + interrupt-parent = <&pio>;
- + interrupts = <0 3 IRQ_TYPE_LEVEL_HIGH>; /* PA3 */
- + touchscreen-swapped-x-y;
- + };
- +};
- +
- +&i2c2 {
- pinctrl-names = "default";
- - pinctrl-0 = <&uart0_pins_a>;
- + pinctrl-0 = <&i2c2_pins_a>;
- + status = "okay";
- +
- + accelerometer@1c {
- + pinctrl-names = "default";
- + pinctrl-0 = <&mma8452_int_primo81>;
- + compatible = "fsl,mma8452";
- + reg = <0x1c>;
- + interrupt-parent = <&pio>;
- + interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>; /* PA9 */
- + #io-channel-cells = <1>;
- + };
- +};
- +
- +&lradc {
- + vref-supply = <®_aldo3>;
- + status = "okay";
- +
- + button@158 {
- + label = "Volume Up";
- + linux,code = <KEY_VOLUMEUP>;
- + channel = <0>;
- + voltage = <158730>;
- + };
- +
- + button@349 {
- + label = "Volume Down";
- + linux,code = <KEY_VOLUMEDOWN>;
- + channel = <0>;
- + voltage = <349206>;
- + };
- +};
- +
- +&mmc0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_primo81>;
- + vmmc-supply = <®_dcdc1>;
- + bus-width = <4>;
- + cd-gpios = <&pio 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */
- + cd-inverted;
- + status = "okay";
- +};
- +
- +&pio {
- + gt911_int_primo81: gt911_int_pin@0 {
- + allwinner,pins = "PA3";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- + mma8452_int_primo81: mma8452_int_pin@0 {
- + allwinner,pins = "PA9";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- + };
- +
- + mmc0_cd_pin_primo81: mmc0_cd_pin@0 {
- + allwinner,pins = "PA8";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- + };
- +};
- +
- +&p2wi {
- + status = "okay";
- +
- + axp22x: pmic@68 {
- + compatible = "x-powers,axp221";
- + reg = <0x68>;
- + interrupt-parent = <&nmi_intc>;
- + interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
- + };
- +};
- +
- +#include "axp22x.dtsi"
- +
- +®_aldo3 {
- + regulator-always-on;
- + regulator-min-microvolt = <2700000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-name = "avcc";
- +};
- +
- +®_dc1sw {
- + regulator-min-microvolt = <3000000>;
- + regulator-max-microvolt = <3000000>;
- + regulator-name = "vcc-lcd";
- +};
- +
- +®_dc5ldo {
- + regulator-min-microvolt = <700000>;
- + regulator-max-microvolt = <1320000>;
- + regulator-name = "vdd-cpus"; /* This is an educated guess */
- +};
- +
- +®_dcdc1 {
- + regulator-always-on;
- + regulator-min-microvolt = <3000000>;
- + regulator-max-microvolt = <3000000>;
- + regulator-name = "vcc-3v0";
- +};
- +
- +®_dcdc2 {
- + regulator-min-microvolt = <700000>;
- + regulator-max-microvolt = <1320000>;
- + regulator-name = "vdd-gpu";
- +};
- +
- +®_dcdc3 {
- + regulator-always-on;
- + regulator-min-microvolt = <700000>;
- + regulator-max-microvolt = <1320000>;
- + regulator-name = "vdd-cpu";
- +};
- +
- +®_dcdc4 {
- + regulator-always-on;
- + regulator-min-microvolt = <700000>;
- + regulator-max-microvolt = <1320000>;
- + regulator-name = "vdd-sys-dll";
- +};
- +
- +®_dcdc5 {
- + regulator-always-on;
- + regulator-min-microvolt = <1500000>;
- + regulator-max-microvolt = <1500000>;
- + regulator-name = "vcc-dram";
- +};
- +
- +®_dldo1 {
- + regulator-min-microvolt = <3300000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-name = "vcc-wifi";
- +};
- +
- +®_dldo3 {
- + regulator-min-microvolt = <2800000>;
- + regulator-max-microvolt = <2800000>;
- + regulator-name = "vddio-csi";
- +};
- +
- +®_eldo3 {
- + regulator-min-microvolt = <1080000>;
- + regulator-max-microvolt = <1320000>;
- + regulator-name = "vdd-mipi-bridge";
- +};
- +
- +&simplefb_lcd {
- + vcc-lcd-supply = <®_dc1sw>;
- + vdd-mipi-bridge-supply = <®_eldo3>;
- +};
- +
- +&usb_otg {
- + /* otg support requires support for AXP221 usb-power-supply and GPIO */
- + dr_mode = "host";
- + status = "okay";
- +};
- +
- +&usbphy {
- + usb1_vbus-supply = <®_dldo1>;
- status = "okay";
- };
- --- /dev/null
- +++ b/arch/arm/dts/sun6i-a31s-sina31s-core.dtsi
- @@ -0,0 +1,142 @@
- +/*
- + * Copyright 2015 Chen-Yu Tsai <wens@csie.org>
- + *
- + * This file is dual-licensed: you can use it either under the terms
- + * of the GPL or the X11 license, at your option. Note that this dual
- + * licensing only applies to this file, and not this project as a
- + * whole.
- + *
- + * a) This file is free software; you can redistribute it and/or
- + * modify it under the terms of the GNU General Public License as
- + * published by the Free Software Foundation; either version 2 of the
- + * License, or (at your option) any later version.
- + *
- + * This file is distributed in the hope that it will be useful,
- + * but WITHOUT ANY WARRANTY; without even the implied warranty of
- + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- + * GNU General Public License for more details.
- + *
- + * Or, alternatively,
- + *
- + * b) Permission is hereby granted, free of charge, to any person
- + * obtaining a copy of this software and associated documentation
- + * files (the "Software"), to deal in the Software without
- + * restriction, including without limitation the rights to use,
- + * copy, modify, merge, publish, distribute, sublicense, and/or
- + * sell copies of the Software, and to permit persons to whom the
- + * Software is furnished to do so, subject to the following
- + * conditions:
- + *
- + * The above copyright notice and this permission notice shall be
- + * included in all copies or substantial portions of the Software.
- + *
- + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- + * OTHER DEALINGS IN THE SOFTWARE.
- + */
- +
- +/dts-v1/;
- +#include "sun6i-a31s.dtsi"
- +#include "sunxi-common-regulators.dtsi"
- +
- +#include <dt-bindings/gpio/gpio.h>
- +#include <dt-bindings/pinctrl/sun4i-a10.h>
- +
- +/ {
- + model = "Sinlinx SinA31s Core Board";
- + compatible = "sinlinx,sina31s", "allwinner,sun6i-a31s";
- +
- + aliases {
- + serial0 = &uart0;
- + };
- +};
- +
- +&cpu0 {
- + cpu-supply = <®_dcdc3>;
- +};
- +
- +/* eMMC on core board */
- +&mmc3 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&mmc3_8bit_emmc_pins>;
- + vmmc-supply = <®_dcdc1>;
- + vqmmc-supply = <®_dcdc1>;
- + bus-width = <8>;
- + non-removable;
- + cap-mmc-hw-reset;
- + status = "okay";
- +};
- +
- +/* AXP221s PMIC on core board */
- +&p2wi {
- + status = "okay";
- +
- + axp22x: pmic@68 {
- + compatible = "x-powers,axp221";
- + reg = <0x68>;
- + interrupt-parent = <&nmi_intc>;
- + interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
- + };
- +};
- +
- +#include "axp22x.dtsi"
- +
- +®_aldo3 {
- + regulator-always-on;
- + regulator-min-microvolt = <2700000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-name = "avcc";
- +};
- +
- +®_dc5ldo {
- + regulator-min-microvolt = <700000>;
- + regulator-max-microvolt = <1320000>;
- + regulator-name = "vdd-cpus";
- +};
- +
- +®_dcdc1 {
- + regulator-always-on;
- + regulator-min-microvolt = <3000000>;
- + regulator-max-microvolt = <3000000>;
- + regulator-name = "vcc-3v0";
- +};
- +
- +®_dcdc2 {
- + regulator-min-microvolt = <700000>;
- + regulator-max-microvolt = <1320000>;
- + regulator-name = "vdd-gpu";
- +};
- +
- +®_dcdc3 {
- + regulator-always-on;
- + regulator-min-microvolt = <700000>;
- + regulator-max-microvolt = <1320000>;
- + regulator-name = "vdd-cpu";
- +};
- +
- +®_dcdc4 {
- + regulator-always-on;
- + regulator-min-microvolt = <700000>;
- + regulator-max-microvolt = <1320000>;
- + regulator-name = "vdd-sys-dll";
- +};
- +
- +®_dcdc5 {
- + regulator-always-on;
- + regulator-min-microvolt = <1500000>;
- + regulator-max-microvolt = <1500000>;
- + regulator-name = "vcc-dram";
- +};
- +
- +/* UART0 pads available on core board */
- +&uart0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart0_pins_a>;
- + status = "okay";
- +};
- +
- --- /dev/null
- +++ b/arch/arm/dts/sun6i-a31s-sina31s.dts
- @@ -0,0 +1,153 @@
- +/*
- + * Copyright 2015 Chen-Yu Tsai <wens@csie.org>
- + *
- + * This file is dual-licensed: you can use it either under the terms
- + * of the GPL or the X11 license, at your option. Note that this dual
- + * licensing only applies to this file, and not this project as a
- + * whole.
- + *
- + * a) This file is free software; you can redistribute it and/or
- + * modify it under the terms of the GNU General Public License as
- + * published by the Free Software Foundation; either version 2 of the
- + * License, or (at your option) any later version.
- + *
- + * This file is distributed in the hope that it will be useful,
- + * but WITHOUT ANY WARRANTY; without even the implied warranty of
- + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- + * GNU General Public License for more details.
- + *
- + * Or, alternatively,
- + *
- + * b) Permission is hereby granted, free of charge, to any person
- + * obtaining a copy of this software and associated documentation
- + * files (the "Software"), to deal in the Software without
- + * restriction, including without limitation the rights to use,
- + * copy, modify, merge, publish, distribute, sublicense, and/or
- + * sell copies of the Software, and to permit persons to whom the
- + * Software is furnished to do so, subject to the following
- + * conditions:
- + *
- + * The above copyright notice and this permission notice shall be
- + * included in all copies or substantial portions of the Software.
- + *
- + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- + * OTHER DEALINGS IN THE SOFTWARE.
- + */
- +
- +/* The SinA31s development board has the SinA31s core board soldered on */
- +#include "sun6i-a31s-sina31s-core.dtsi"
- +
- +#include <dt-bindings/input/input.h>
- +
- +/ {
- + model = "Sinlinx SinA31s Development Board";
- + compatible = "sinlinx,sina31s-sdk", "allwinner,sun6i-a31s";
- +
- + chosen {
- + stdout-path = "serial0:115200n8";
- + };
- +
- + leds {
- + compatible = "gpio-leds";
- + pinctrl-names = "default";
- + pinctrl-0 = <&led_pin_sina31s>;
- +
- + status {
- + label = "sina31s:status:usr";
- + gpios = <&pio 7 13 GPIO_ACTIVE_HIGH>; /* PH13 */
- + };
- + };
- +};
- +
- +&ehci0 {
- + /* USB 2.0 4 port hub IC */
- + status = "okay";
- +};
- +
- +&ehci1 {
- + status = "okay";
- +};
- +
- +&gmac {
- + pinctrl-names = "default";
- + pinctrl-0 = <&gmac_pins_mii_a>;
- + phy = <&phy1>;
- + phy-mode = "mii";
- + phy-supply = <®_dldo1>;
- + status = "okay";
- +
- + phy1: ethernet-phy@1 {
- + reg = <1>;
- + };
- +};
- +
- +&ir {
- + pinctrl-names = "default";
- + pinctrl-0 = <&ir_pins_a>;
- + status = "okay";
- +};
- +
- +&lradc {
- + vref-supply = <®_aldo3>;
- + status = "okay";
- +
- + button@158 {
- + label = "Volume Up";
- + linux,code = <KEY_VOLUMEUP>;
- + channel = <0>;
- + voltage = <158730>;
- + };
- +
- + button@349 {
- + label = "Volume Down";
- + linux,code = <KEY_VOLUMEDOWN>;
- + channel = <0>;
- + voltage = <349206>;
- + };
- +};
- +
- +&mmc0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_sina31s>;
- + vmmc-supply = <®_dcdc1>;
- + bus-width = <4>;
- + cd-gpios = <&pio 0 4 GPIO_ACTIVE_HIGH>; /* PA4 */
- + cd-inverted;
- + status = "okay";
- +};
- +
- +&ohci1 {
- + status = "okay";
- +};
- +
- +&pio {
- + led_pin_sina31s: led_pin@0 {
- + allwinner,pins = "PH13";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- + mmc0_cd_pin_sina31s: mmc0_cd_pin@0 {
- + allwinner,pins = "PA4";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- + };
- +};
- +
- +®_dldo1 {
- + regulator-min-microvolt = <3300000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-name = "vcc-gmac-phy";
- +};
- +
- +&usbphy {
- + status = "okay";
- +};
- --- /dev/null
- +++ b/arch/arm/dts/sun6i-a31s-yones-toptech-bs1078-v2.dts
- @@ -0,0 +1,205 @@
- +/*
- + * Copyright 2015 Lawrence Yu <lyu@micile.com>
- + *
- + * This file is dual-licensed: you can use it either under the terms
- + * of the GPL or the X11 license, at your option. Note that this dual
- + * licensing only applies to this file, and not this project as a
- + * whole.
- + *
- + * a) This file is free software; you can redistribute it and/or
- + * modify it under the terms of the GNU General Public License as
- + * published by the Free Software Foundation; either version 2 of the
- + * License, or (at your option) any later version.
- + *
- + * This file is distributed in the hope that it will be useful,
- + * but WITHOUT ANY WARRANTY; without even the implied warranty of
- + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- + * GNU General Public License for more details.
- + *
- + * Or, alternatively,
- + *
- + * b) Permission is hereby granted, free of charge, to any person
- + * obtaining a copy of this software and associated documentation
- + * files (the "Software"), to deal in the Software without
- + * restriction, including without limitation the rights to use,
- + * copy, modify, merge, publish, distribute, sublicense, and/or
- + * sell copies of the Software, and to permit persons to whom the
- + * Software is furnished to do so, subject to the following
- + * conditions:
- + *
- + * The above copyright notice and this permission notice shall be
- + * included in all copies or substantial portions of the Software.
- + *
- + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- + * OTHER DEALINGS IN THE SOFTWARE.
- + */
- +
- +/dts-v1/;
- +#include "sun6i-a31s.dtsi"
- +#include "sunxi-common-regulators.dtsi"
- +
- +#include <dt-bindings/gpio/gpio.h>
- +#include <dt-bindings/pinctrl/sun4i-a10.h>
- +
- +/ {
- + model = "Yones TopTech BS1078 v2 Tablet";
- + compatible = "yones-toptech,bs1078-v2", "allwinner,sun6i-a31s";
- +
- + aliases {
- + serial0 = &uart0;
- + i2c1 = &i2c1;
- + i2c2 = &i2c2;
- + };
- +
- + chosen {
- + stdout-path = "serial0:115200n8";
- + };
- +};
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins_a>;
- + status = "okay";
- +};
- +
- +&i2c2 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c2_pins_a>;
- + status = "okay";
- +};
- +
- +&ehci0 {
- + status = "okay";
- +};
- +
- +&ehci1 {
- + status = "okay";
- +};
- +
- +&ohci0 {
- + status = "okay";
- +};
- +
- +&ohci1 {
- + status = "okay";
- +};
- +
- +&pio {
- + mmc0_cd_pin_bs1078v2: mmc0_cd_pin@0 {
- + allwinner,pins = "PA8";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- + };
- +};
- +
- +&mmc0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_bs1078v2>;
- + vmmc-supply = <®_vcc3v0>;
- + bus-width = <4>;
- + cd-gpios = <&pio 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */
- + cd-inverted;
- + status = "okay";
- +};
- +
- +&mmc0_pins_a {
- + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- +};
- +
- +&p2wi {
- + status = "okay";
- +
- + axp22x: pmic@68 {
- + compatible = "x-powers,axp221";
- + reg = <0x68>;
- + interrupt-parent = <&nmi_intc>;
- + interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
- + };
- +};
- +
- +#include "axp22x.dtsi"
- +
- +®_aldo3 {
- + regulator-always-on;
- + regulator-min-microvolt = <2700000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-name = "avcc";
- +};
- +
- +®_dc1sw {
- + regulator-name = "vcc-lcd-usb2";
- + regulator-min-microvolt = <3000000>;
- + regulator-max-microvolt = <3000000>;
- +};
- +
- +®_dc5ldo {
- + regulator-min-microvolt = <700000>;
- + regulator-max-microvolt = <1320000>;
- + regulator-name = "vdd-cpus";
- +};
- +
- +®_dcdc1 {
- + regulator-always-on;
- + regulator-min-microvolt = <3000000>;
- + regulator-max-microvolt = <3000000>;
- + regulator-name = "vcc-3v0";
- +};
- +
- +®_dcdc2 {
- + regulator-min-microvolt = <700000>;
- + regulator-max-microvolt = <1320000>;
- + regulator-name = "vdd-gpu";
- +};
- +
- +®_dcdc3 {
- + regulator-always-on;
- + regulator-min-microvolt = <700000>;
- + regulator-max-microvolt = <1320000>;
- + regulator-name = "vdd-cpu";
- +};
- +
- +®_dcdc4 {
- + regulator-always-on;
- + regulator-min-microvolt = <700000>;
- + regulator-max-microvolt = <1320000>;
- + regulator-name = "vdd-sys-dll";
- +};
- +
- +®_dcdc5 {
- + regulator-always-on;
- + regulator-min-microvolt = <1500000>;
- + regulator-max-microvolt = <1500000>;
- + regulator-name = "vcc-dram";
- +};
- +
- +®_dldo1 {
- + regulator-min-microvolt = <3300000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-name = "vcc-wifi";
- +};
- +
- +/* Voltage source for I2C pullup resistors for I2C Bus 0 */
- +®_dldo3 {
- + regulator-min-microvolt = <2800000>;
- + regulator-max-microvolt = <2800000>;
- + regulator-name = "vddio-csi";
- +};
- +
- +&uart0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart0_pins_a>;
- + status = "okay";
- +};
- +
- +&usbphy {
- + usb1_vbus-supply = <®_dldo1>;
- + usb2_vbus-supply = <®_dc1sw>;
- + status = "okay";
- +};
- --- a/arch/arm/dts/sun7i-a20-bananapi.dts
- +++ b/arch/arm/dts/sun7i-a20-bananapi.dts
- @@ -92,6 +92,24 @@
- status = "okay";
- };
-
- +&codec {
- + status = "okay";
- +};
- +
- +&cpu0 {
- + cpu-supply = <®_dcdc2>;
- + operating-points = <
- + /* kHz uV */
- + 960000 1400000
- + 912000 1400000
- + 864000 1350000
- + 720000 1250000
- + 528000 1150000
- + 312000 1100000
- + 144000 1050000
- + >;
- +};
- +
- &ehci0 {
- status = "okay";
- };
- @@ -119,13 +137,9 @@
- status = "okay";
-
- axp209: pmic@34 {
- - compatible = "x-powers,axp209";
- reg = <0x34>;
- interrupt-parent = <&nmi_intc>;
- interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
- -
- - interrupt-controller;
- - #interrupt-cells = <1>;
- };
- };
-
- @@ -159,7 +173,18 @@
- status = "okay";
- };
-
- +&otg_sram {
- + status = "okay";
- +};
- +
- &pio {
- + usb0_id_detect_pin: usb0_id_detect_pin@0 {
- + allwinner,pins = "PH4";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- + };
- +
- mmc0_cd_pin_bananapi: mmc0_cd_pin@0 {
- allwinner,pins = "PH10";
- allwinner,function = "gpio_in";
- @@ -182,6 +207,37 @@
- };
- };
-
- +#include "axp209.dtsi"
- +
- +®_dcdc2 {
- + regulator-always-on;
- + regulator-min-microvolt = <1000000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-cpu";
- +};
- +
- +®_dcdc3 {
- + regulator-always-on;
- + regulator-min-microvolt = <1000000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-int-dll";
- +};
- +
- +®_ldo1 {
- + regulator-name = "vdd-rtc";
- +};
- +
- +®_ldo2 {
- + regulator-always-on;
- + regulator-min-microvolt = <3000000>;
- + regulator-max-microvolt = <3000000>;
- + regulator-name = "avcc";
- +};
- +
- +®_usb0_vbus {
- + status = "okay";
- +};
- +
- ®_usb1_vbus {
- status = "okay";
- };
- @@ -216,7 +272,21 @@
- status = "okay";
- };
-
- +&usb_otg {
- + dr_mode = "otg";
- + status = "okay";
- +};
- +
- +&usb_power_supply {
- + status = "okay";
- +};
- +
- &usbphy {
- + pinctrl-names = "default";
- + pinctrl-0 = <&usb0_id_detect_pin>;
- + usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
- + usb0_vbus_power-supply = <&usb_power_supply>;
- + usb0_vbus-supply = <®_usb0_vbus>;
- usb1_vbus-supply = <®_usb1_vbus>;
- usb2_vbus-supply = <®_usb2_vbus>;
- status = "okay";
- --- a/arch/arm/dts/sun7i-a20-cubieboard2.dts
- +++ b/arch/arm/dts/sun7i-a20-cubieboard2.dts
- @@ -84,6 +84,10 @@
- status = "okay";
- };
-
- +&codec {
- + status = "okay";
- +};
- +
- &cpu0 {
- cpu-supply = <®_dcdc2>;
- };
- @@ -150,6 +154,10 @@
- status = "okay";
- };
-
- +&otg_sram {
- + status = "okay";
- +};
- +
- &pio {
- led_pins_cubieboard2: led_pins@0 {
- allwinner,pins = "PH20", "PH21";
- @@ -157,12 +165,24 @@
- allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- };
- +
- + usb0_id_detect_pin: usb0_id_detect_pin@0 {
- + allwinner,pins = "PH4";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- + };
- };
-
- ®_ahci_5v {
- status = "okay";
- };
-
- +&usb_otg {
- + dr_mode = "otg";
- + status = "okay";
- +};
- +
- #include "axp209.dtsi"
-
- ®_dcdc2 {
- @@ -205,6 +225,9 @@
- };
-
- &usbphy {
- + pinctrl-names = "default";
- + pinctrl-0 = <&usb0_id_detect_pin>;
- + usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
- usb1_vbus-supply = <®_usb1_vbus>;
- usb2_vbus-supply = <®_usb2_vbus>;
- status = "okay";
- --- a/arch/arm/dts/sun7i-a20-cubietruck.dts
- +++ b/arch/arm/dts/sun7i-a20-cubietruck.dts
- @@ -101,6 +101,10 @@
- status = "okay";
- };
-
- +&codec {
- + status = "okay";
- +};
- +
- &cpu0 {
- cpu-supply = <®_dcdc2>;
- };
- --- /dev/null
- +++ b/arch/arm/dts/sun7i-a20-icnova-swac.dts
- @@ -0,0 +1,169 @@
- +/*
- + * Copyright 2015 Stefan Roese <sr@denx.de>
- + *
- + * This file is dual-licensed: you can use it either under the terms
- + * of the GPL or the X11 license, at your option. Note that this dual
- + * licensing only applies to this file, and not this project as a
- + * whole.
- + *
- + * a) This file is free software; you can redistribute it and/or
- + * modify it under the terms of the GNU General Public License as
- + * published by the Free Software Foundation; either version 2 of the
- + * License, or (at your option) any later version.
- + *
- + * This file is distributed in the hope that it will be useful,
- + * but WITHOUT ANY WARRANTY; without even the implied warranty of
- + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- + * GNU General Public License for more details.
- + *
- + * Or, alternatively,
- + *
- + * b) Permission is hereby granted, free of charge, to any person
- + * obtaining a copy of this software and associated documentation
- + * files (the "Software"), to deal in the Software without
- + * restriction, including without limitation the rights to use,
- + * copy, modify, merge, publish, distribute, sublicense, and/or
- + * sell copies of the Software, and to permit persons to whom the
- + * Software is furnished to do so, subject to the following
- + * conditions:
- + *
- + * The above copyright notice and this permission notice shall be
- + * included in all copies or substantial portions of the Software.
- + *
- + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- + * OTHER DEALINGS IN THE SOFTWARE.
- + */
- +
- +/dts-v1/;
- +#include "sun7i-a20.dtsi"
- +#include "sunxi-common-regulators.dtsi"
- +
- +#include <dt-bindings/gpio/gpio.h>
- +#include <dt-bindings/interrupt-controller/irq.h>
- +#include <dt-bindings/pinctrl/sun4i-a10.h>
- +
- +/ {
- + model = "ICnova-A20 SWAC";
- + compatible = "swac,icnova-a20-swac", "incircuit,icnova-a20", "allwinner,sun7i-a20";
- +
- + aliases {
- + serial0 = &uart0;
- + };
- +
- + chosen {
- + stdout-path = "serial0:115200n8";
- + };
- +};
- +
- +&cpu0 {
- + cpu-supply = <®_dcdc2>;
- +};
- +
- +&ehci0 {
- + status = "okay";
- +};
- +
- +&ehci1 {
- + status = "okay";
- +};
- +
- +&gmac {
- + pinctrl-names = "default";
- + pinctrl-0 = <&gmac_pins_mii_a>;
- + phy = <&phy1>;
- + phy-mode = "mii";
- + status = "okay";
- +
- + phy1: ethernet-phy@1 {
- + reg = <1>;
- + };
- +};
- +
- +&i2c0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c0_pins_a>;
- + status = "okay";
- +
- + axp209: pmic@34 {
- + reg = <0x34>;
- + interrupt-parent = <&nmi_intc>;
- + interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
- + };
- +};
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins_a>;
- + status = "okay";
- +};
- +
- +&mmc0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
- + vmmc-supply = <®_vcc3v3>;
- + bus-width = <4>;
- + cd-gpios = <&pio 8 5 GPIO_ACTIVE_HIGH>; /* PI5 */
- + cd-inverted;
- + status = "okay";
- +};
- +
- +&ohci0 {
- + status = "okay";
- +};
- +
- +&ohci1 {
- + status = "okay";
- +};
- +
- +#include "axp209.dtsi"
- +
- +®_dcdc2 {
- + regulator-always-on;
- + regulator-min-microvolt = <1000000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-cpu";
- +};
- +
- +®_dcdc3 {
- + regulator-always-on;
- + regulator-min-microvolt = <1000000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-int-dll";
- +};
- +
- +®_ldo1 {
- + regulator-name = "vdd-rtc";
- +};
- +
- +®_ldo2 {
- + regulator-always-on;
- + regulator-min-microvolt = <3000000>;
- + regulator-max-microvolt = <3000000>;
- + regulator-name = "avcc";
- +};
- +
- +®_usb1_vbus {
- + status = "okay";
- +};
- +
- +®_usb2_vbus {
- + status = "okay";
- +};
- +
- +&uart0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart0_pins_a>;
- + status = "okay";
- +};
- +
- +&usbphy {
- + usb1_vbus-supply = <®_usb1_vbus>;
- + usb2_vbus-supply = <®_usb2_vbus>;
- + status = "okay";
- +};
- --- /dev/null
- +++ b/arch/arm/dts/sun7i-a20-itead-ibox.dts
- @@ -0,0 +1,125 @@
- +/*
- + * Copyright 2015 - Marcus Cooper <codekipper@gmail.com>
- + *
- + * This file is dual-licensed: you can use it either under the terms
- + * of the GPL or the X11 license, at your option. Note that this dual
- + * licensing only applies to this file, and not this project as a
- + * whole.
- + *
- + * a) This file is free software; you can redistribute it and/or
- + * modify it under the terms of the GNU General Public License as
- + * published by the Free Software Foundation; either version 2 of the
- + * License, or (at your option) any later version.
- + *
- + * This file is distributed in the hope that it will be useful,
- + * but WITHOUT ANY WARRANTY; without even the implied warranty of
- + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- + * GNU General Public License for more details.
- + *
- + * Or, alternatively,
- + *
- + * b) Permission is hereby granted, free of charge, to any person
- + * obtaining a copy of this software and associated documentation
- + * files (the "Software"), to deal in the Software without
- + * restriction, including without limitation the rights to use,
- + * copy, modify, merge, publish, distribute, sublicense, and/or
- + * sell copies of the Software, and to permit persons to whom the
- + * Software is furnished to do so, subject to the following
- + * conditions:
- + *
- + * The above copyright notice and this permission notice shall be
- + * included in all copies or substantial portions of the Software.
- + *
- + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- + * OTHER DEALINGS IN THE SOFTWARE.
- + */
- +
- +/dts-v1/;
- +#include "sun7i-a20.dtsi"
- +#include "sunxi-itead-core-common.dtsi"
- +
- +/ {
- + model = "Itead Ibox A20";
- + compatible = "itead,itead-ibox-a20", "allwinner,sun7i-a20";
- +
- + leds {
- + compatible = "gpio-leds";
- + pinctrl-names = "default";
- + pinctrl-0 = <&led_pins_itead_core>;
- +
- + green {
- + label = "itead_core:green:usr";
- + gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>;
- + default-state = "on";
- + };
- +
- + blue {
- + label = "itead_core:blue:usr";
- + gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>;
- + default-state = "on";
- + };
- + };
- +};
- +
- +&ahci {
- + target-supply = <®_ahci_5v>;
- + status = "okay";
- +};
- +
- +&codec {
- + status = "okay";
- +};
- +
- +&gmac {
- + pinctrl-names = "default";
- + pinctrl-0 = <&gmac_pins_mii_a>;
- + phy = <&phy1>;
- + phy-mode = "mii";
- + status = "okay";
- +
- + phy1: ethernet-phy@1 {
- + reg = <1>;
- + };
- +};
- +
- +&i2c0 {
- + axp209: pmic@34 {
- + interrupt-parent = <&nmi_intc>;
- + interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
- + };
- +};
- +
- +&ir0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&ir0_rx_pins_a>;
- + status = "okay";
- +};
- +
- +&mmc0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
- + vmmc-supply = <®_vcc3v3>;
- + bus-width = <4>;
- + cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
- + cd-inverted;
- + status = "okay";
- +};
- +
- +&pio {
- + led_pins_itead_core: led_pins@0 {
- + allwinner,pins = "PH20","PH21";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_20_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +};
- +
- +®_ahci_5v {
- + status = "okay";
- +};
- --- a/arch/arm/dts/sun7i-a20-lamobo-r1.dts
- +++ b/arch/arm/dts/sun7i-a20-lamobo-r1.dts
- @@ -97,16 +97,6 @@
-
- &cpu0 {
- cpu-supply = <®_dcdc2>;
- - operating-points = <
- - /* kHz uV */
- - 960000 1400000
- - 912000 1400000
- - 864000 1350000
- - 720000 1250000
- - 528000 1150000
- - 312000 1100000
- - 144000 1050000
- - >;
- };
-
- &ehci0 {
- --- a/arch/arm/dts/sun7i-a20-mk808c.dts
- +++ b/arch/arm/dts/sun7i-a20-mk808c.dts
- @@ -53,6 +53,7 @@
-
- #include <dt-bindings/gpio/gpio.h>
- #include <dt-bindings/interrupt-controller/irq.h>
- +#include <dt-bindings/pinctrl/sun4i-a10.h>
-
- / {
- model = "mk808c";
- @@ -68,6 +69,10 @@
- };
- };
-
- +&codec {
- + status = "okay";
- +};
- +
- &ehci0 {
- status = "okay";
- };
- @@ -121,6 +126,30 @@
- status = "okay";
- };
-
- +&otg_sram {
- + status = "okay";
- +};
- +
- +&pio {
- + usb0_id_detect_pin: usb0_id_detect_pin@0 {
- + allwinner,pins = "PH4";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- + usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 {
- + allwinner,pins = "PH5";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +};
- +
- +®_usb0_vbus {
- + status = "okay";
- +};
- +
- ®_usb1_vbus {
- status = "okay";
- };
- @@ -141,7 +170,17 @@
- status = "okay";
- };
-
- +&usb_otg {
- + dr_mode = "otg";
- + status = "okay";
- +};
- +
- &usbphy {
- + pinctrl-names = "default";
- + pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
- + usb0_id_det-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
- + usb0_vbus_det-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
- + usb0_vbus-supply = <®_usb0_vbus>;
- usb1_vbus-supply = <®_usb1_vbus>;
- usb2_vbus-supply = <®_usb2_vbus>;
- status = "okay";
- --- a/arch/arm/dts/sun7i-a20-olimex-som-evb.dts
- +++ b/arch/arm/dts/sun7i-a20-olimex-som-evb.dts
- @@ -1,5 +1,6 @@
- /*
- * Copyright 2015 - Marcus Cooper <codekipper@gmail.com>
- + * Copyright 2015 - Karsten Merker <merker@debian.org>
- *
- * This file is dual-licensed: you can use it either under the terms
- * of the GPL or the X11 license, at your option. Note that this dual
- @@ -45,6 +46,7 @@
- #include "sunxi-common-regulators.dtsi"
-
- #include <dt-bindings/gpio/gpio.h>
- +#include <dt-bindings/input/input.h>
- #include <dt-bindings/interrupt-controller/irq.h>
- #include <dt-bindings/pinctrl/sun4i-a10.h>
-
- @@ -71,14 +73,6 @@
- default-state = "on";
- };
- };
- -
- - reg_axp_ipsout: axp_ipsout {
- - compatible = "regulator-fixed";
- - regulator-name = "axp-ipsout";
- - regulator-min-microvolt = <5000000>;
- - regulator-max-microvolt = <5000000>;
- - regulator-always-on;
- - };
- };
-
- &ahci {
- @@ -94,6 +88,10 @@
- status = "okay";
- };
-
- +&codec {
- + status = "okay";
- +};
- +
- &gmac {
- pinctrl-names = "default";
- pinctrl-0 = <&gmac_pins_rgmii_a>;
- @@ -118,10 +116,58 @@
- };
- };
-
- -&i2c1 {
- - pinctrl-names = "default";
- - pinctrl-0 = <&i2c1_pins_a>;
- +&lradc {
- + vref-supply = <®_vcc3v0>;
- status = "okay";
- +
- + button@190 {
- + label = "Volume Up";
- + linux,code = <KEY_VOLUMEUP>;
- + channel = <0>;
- + voltage = <190000>;
- + };
- +
- + button@390 {
- + label = "Volume Down";
- + linux,code = <KEY_VOLUMEDOWN>;
- + channel = <0>;
- + voltage = <390000>;
- + };
- +
- + button@600 {
- + label = "Menu";
- + linux,code = <KEY_MENU>;
- + channel = <0>;
- + voltage = <600000>;
- + };
- +
- + button@800 {
- + label = "Search";
- + linux,code = <KEY_SEARCH>;
- + channel = <0>;
- + voltage = <800000>;
- + };
- +
- + button@980 {
- + label = "Home";
- + linux,code = <KEY_HOMEPAGE>;
- + channel = <0>;
- + voltage = <980000>;
- + };
- +
- + button@1180 {
- + label = "Esc";
- + linux,code = <KEY_ESC>;
- + channel = <0>;
- + voltage = <1180000>;
- + };
- +
- + button@1400 {
- + label = "Enter";
- + linux,code = <KEY_ENTER>;
- + channel = <0>;
- + voltage = <1400000>;
- + };
- };
-
- &mmc0 {
- @@ -134,6 +180,16 @@
- status = "okay";
- };
-
- +&mmc3 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&mmc3_pins_a>, <&mmc3_cd_pin_olimex_som_evb>;
- + vmmc-supply = <®_vcc3v3>;
- + bus-width = <4>;
- + cd-gpios = <&pio 7 0 GPIO_ACTIVE_HIGH>; /* PH0 */
- + cd-inverted;
- + status = "okay";
- +};
- +
- &ohci0 {
- status = "okay";
- };
- @@ -161,15 +217,22 @@
- allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- };
-
- + mmc3_cd_pin_olimex_som_evb: mmc3_cd_pin@0 {
- + allwinner,pins = "PH0";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- + };
- +
- usb0_id_detect_pin: usb0_id_detect_pin@0 {
- - allwinner,pins = "PH04";
- + allwinner,pins = "PH4";
- allwinner,function = "gpio_in";
- allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- };
-
- usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 {
- - allwinner,pins = "PH05";
- + allwinner,pins = "PH5";
- allwinner,function = "gpio_in";
- allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- @@ -187,7 +250,7 @@
- ®_dcdc2 {
- regulator-always-on;
- regulator-min-microvolt = <1000000>;
- - regulator-max-microvolt = <1425000>;
- + regulator-max-microvolt = <1400000>;
- regulator-name = "vdd-cpu";
- };
-
- @@ -235,8 +298,8 @@
- &usbphy {
- pinctrl-names = "default";
- pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
- - usb0_id_det-gpios = <&pio 7 04 GPIO_ACTIVE_HIGH>; /* PH04 */
- - usb0_vbus_det-gpios = <&pio 7 05 GPIO_ACTIVE_HIGH>; /* PH05 */
- + usb0_id_det-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH04 */
- + usb0_vbus_det-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH05 */
- usb0_vbus-supply = <®_usb0_vbus>;
- usb1_vbus-supply = <®_usb1_vbus>;
- usb2_vbus-supply = <®_usb2_vbus>;
- --- a/arch/arm/dts/sun7i-a20-olinuxino-lime.dts
- +++ b/arch/arm/dts/sun7i-a20-olinuxino-lime.dts
- @@ -117,6 +117,18 @@
- };
- };
-
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins_a>;
- + status = "okay";
- +
- + eeprom: eeprom@50 {
- + compatible = "atmel,24c16";
- + reg = <0x50>;
- + pagesize = <16>;
- + };
- +};
- +
- &mmc0 {
- pinctrl-names = "default";
- pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
- --- a/arch/arm/dts/sun7i-a20-olinuxino-lime2.dts
- +++ b/arch/arm/dts/sun7i-a20-olinuxino-lime2.dts
- @@ -170,6 +170,12 @@
- pinctrl-names = "default";
- pinctrl-0 = <&i2c1_pins_a>;
- status = "okay";
- +
- + eeprom: eeprom@50 {
- + compatible = "atmel,24c16";
- + reg = <0x50>;
- + pagesize = <16>;
- + };
- };
-
- &mmc0 {
- @@ -190,6 +196,10 @@
- status = "okay";
- };
-
- +&otg_sram {
- + status = "okay";
- +};
- +
- &pio {
- ahci_pwr_pin_olinuxinolime: ahci_pwr_pin@1 {
- allwinner,pins = "PC3";
- @@ -204,6 +214,27 @@
- allwinner,drive = <SUN4I_PINCTRL_20_MA>;
- allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- };
- +
- + usb0_id_detect_pin: usb0_id_detect_pin@0 {
- + allwinner,pins = "PH4";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- + };
- +
- + usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 {
- + allwinner,pins = "PH5";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_PULL_DOWN>;
- + };
- +
- + usb0_vbus_pin_lime2: usb0_vbus_pin@0 {
- + allwinner,pins = "PC17";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- };
-
- ®_ahci_5v {
- @@ -212,6 +243,12 @@
- status = "okay";
- };
-
- +®_usb0_vbus {
- + pinctrl-0 = <&usb0_vbus_pin_lime2>;
- + gpio = <&pio 2 17 GPIO_ACTIVE_HIGH>;
- + status = "okay";
- +};
- +
- ®_usb1_vbus {
- status = "okay";
- };
- @@ -226,7 +263,17 @@
- status = "okay";
- };
-
- +&usb_otg {
- + dr_mode = "otg";
- + status = "okay";
- +};
- +
- &usbphy {
- + pinctrl-names = "default";
- + pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
- + usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
- + usb0_vbus_det-gpio = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
- + usb0_vbus-supply = <®_usb0_vbus>;
- usb1_vbus-supply = <®_usb1_vbus>;
- usb2_vbus-supply = <®_usb2_vbus>;
- status = "okay";
- --- a/arch/arm/dts/sun7i-a20-olinuxino-micro.dts
- +++ b/arch/arm/dts/sun7i-a20-olinuxino-micro.dts
- @@ -125,6 +125,12 @@
- pinctrl-names = "default";
- pinctrl-0 = <&i2c1_pins_a>;
- status = "okay";
- +
- + eeprom: eeprom@50 {
- + compatible = "atmel,24c16";
- + reg = <0x50>;
- + pagesize = <16>;
- + };
- };
-
- &i2c2 {
- --- a/arch/arm/dts/sun7i-a20-orangepi-mini.dts
- +++ b/arch/arm/dts/sun7i-a20-orangepi-mini.dts
- @@ -95,6 +95,10 @@
- status = "okay";
- };
-
- +&codec {
- + status = "okay";
- +};
- +
- &ehci0 {
- status = "okay";
- };
- @@ -156,7 +160,18 @@
- status = "okay";
- };
-
- +&otg_sram {
- + status = "okay";
- +};
- +
- &pio {
- + usb0_id_detect_pin: usb0_id_detect_pin@0 {
- + allwinner,pins = "PH4";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- + };
- +
- mmc0_cd_pin_orangepi: mmc0_cd_pin@0 {
- allwinner,pins = "PH10";
- allwinner,function = "gpio_in";
- @@ -225,6 +240,10 @@
- regulator-name = "avcc";
- };
-
- +®_usb0_vbus {
- + status = "okay";
- +};
- +
- ®_usb1_vbus {
- pinctrl-0 = <&usb1_vbus_pin_bananapro>;
- gpio = <&pio 7 26 GPIO_ACTIVE_HIGH>; /* PH26 */
- @@ -243,7 +262,21 @@
- status = "okay";
- };
-
- +&usb_otg {
- + dr_mode = "otg";
- + status = "okay";
- +};
- +
- +&usb_power_supply {
- + status = "okay";
- +};
- +
- &usbphy {
- + pinctrl-names = "default";
- + pinctrl-0 = <&usb0_id_detect_pin>;
- + usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
- + usb0_vbus_power-supply = <&usb_power_supply>;
- + usb0_vbus-supply = <®_usb0_vbus>;
- usb1_vbus-supply = <®_usb1_vbus>;
- usb2_vbus-supply = <®_usb2_vbus>;
- status = "okay";
- --- a/arch/arm/dts/sun7i-a20-orangepi.dts
- +++ b/arch/arm/dts/sun7i-a20-orangepi.dts
- @@ -141,7 +141,18 @@
- status = "okay";
- };
-
- +&otg_sram {
- + status = "okay";
- +};
- +
- &pio {
- + usb0_id_detect_pin: usb0_id_detect_pin@0 {
- + allwinner,pins = "PH4";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- + };
- +
- mmc0_cd_pin_orangepi: mmc0_cd_pin@0 {
- allwinner,pins = "PH10";
- allwinner,function = "gpio_in";
- @@ -203,6 +214,10 @@
- regulator-name = "avcc";
- };
-
- +®_usb0_vbus {
- + status = "okay";
- +};
- +
- ®_usb1_vbus {
- pinctrl-0 = <&usb1_vbus_pin_bananapro>;
- gpio = <&pio 7 26 GPIO_ACTIVE_HIGH>; /* PH26 */
- @@ -221,7 +236,21 @@
- status = "okay";
- };
-
- +&usb_otg {
- + dr_mode = "otg";
- + status = "okay";
- +};
- +
- +&usb_power_supply {
- + status = "okay";
- +};
- +
- &usbphy {
- + pinctrl-names = "default";
- + pinctrl-0 = <&usb0_id_detect_pin>;
- + usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
- + usb0_vbus_power-supply = <&usb_power_supply>;
- + usb0_vbus-supply = <®_usb0_vbus>;
- usb1_vbus-supply = <®_usb1_vbus>;
- usb2_vbus-supply = <®_usb2_vbus>;
- status = "okay";
- --- a/arch/arm/dts/sun7i-a20-pcduino3-nano.dts
- +++ b/arch/arm/dts/sun7i-a20-pcduino3-nano.dts
- @@ -82,6 +82,14 @@
- status = "okay";
- };
-
- +&codec {
- + status = "okay";
- +};
- +
- +&cpu0 {
- + cpu-supply = <®_dcdc2>;
- +};
- +
- &ehci0 {
- status = "okay";
- };
- @@ -108,13 +116,9 @@
- status = "okay";
-
- axp209: pmic@34 {
- - compatible = "x-powers,axp209";
- reg = <0x34>;
- interrupt-parent = <&nmi_intc>;
- interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
- -
- - interrupt-controller;
- - #interrupt-cells = <1>;
- };
- };
-
- @@ -142,6 +146,10 @@
- status = "okay";
- };
-
- +&otg_sram {
- + status = "okay";
- +};
- +
- &pio {
- ahci_pwr_pin_pcduino3_nano: ahci_pwr_pin@0 {
- allwinner,pins = "PH2";
- @@ -157,8 +165,15 @@
- allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- };
-
- + usb0_id_detect_pin: usb0_id_detect_pin@0 {
- + allwinner,pins = "PH4";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- + };
- +
- usb1_vbus_pin_pcduino3_nano: usb1_vbus_pin@0 {
- - allwinner,pins = "PH11";
- + allwinner,pins = "PD2";
- allwinner,function = "gpio_out";
- allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- @@ -171,13 +186,37 @@
- status = "okay";
- };
-
- -®_usb1_vbus {
- - pinctrl-0 = <&usb1_vbus_pin_pcduino3_nano>;
- - gpio = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */
- - status = "okay";
- +#include "axp209.dtsi"
- +
- +®_dcdc2 {
- + regulator-always-on;
- + regulator-min-microvolt = <1000000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-cpu";
- +};
- +
- +®_dcdc3 {
- + regulator-always-on;
- + regulator-min-microvolt = <1000000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-int-pll";
- +};
- +
- +®_ldo1 {
- + regulator-name = "vdd-rtc";
- +};
- +
- +®_ldo2 {
- + regulator-always-on;
- + regulator-min-microvolt = <3000000>;
- + regulator-max-microvolt = <3000000>;
- + regulator-name = "avcc";
- };
-
- -®_usb2_vbus {
- +/* A single regulator (U24) powers both USB host ports. */
- +®_usb1_vbus {
- + pinctrl-0 = <&usb1_vbus_pin_pcduino3_nano>;
- + gpio = <&pio 3 2 GPIO_ACTIVE_HIGH>; /* PD2 */
- status = "okay";
- };
-
- @@ -187,8 +226,16 @@
- status = "okay";
- };
-
- +&usb_otg {
- + dr_mode = "otg";
- + status = "okay";
- +};
- +
- &usbphy {
- + pinctrl-names = "default";
- + pinctrl-0 = <&usb0_id_detect_pin>;
- + usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
- usb1_vbus-supply = <®_usb1_vbus>;
- - usb2_vbus-supply = <®_usb2_vbus>;
- + usb2_vbus-supply = <®_usb1_vbus>;
- status = "okay";
- };
- --- a/arch/arm/dts/sun7i-a20-pcduino3.dts
- +++ b/arch/arm/dts/sun7i-a20-pcduino3.dts
- @@ -111,6 +111,14 @@
- allwinner,pins = "PH2";
- };
-
- +&codec {
- + status = "okay";
- +};
- +
- +&cpu0 {
- + cpu-supply = <®_dcdc2>;
- +};
- +
- &ehci0 {
- status = "okay";
- };
- @@ -137,16 +145,14 @@
- status = "okay";
-
- axp209: pmic@34 {
- - compatible = "x-powers,axp209";
- reg = <0x34>;
- interrupt-parent = <&nmi_intc>;
- interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
- -
- - interrupt-controller;
- - #interrupt-cells = <1>;
- };
- };
-
- +#include "axp209.dtsi"
- +
- &ir0 {
- pinctrl-names = "default";
- pinctrl-0 = <&ir0_rx_pins_a>;
- @@ -171,6 +177,10 @@
- status = "okay";
- };
-
- +&otg_sram {
- + status = "okay";
- +};
- +
- &pio {
- led_pins_pcduino3: led_pins@0 {
- allwinner,pins = "PH15", "PH16";
- @@ -185,6 +195,13 @@
- allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- };
- +
- + usb0_id_detect_pin: usb0_id_detect_pin@0 {
- + allwinner,pins = "PH4";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- + };
- };
-
- ®_ahci_5v {
- @@ -192,6 +209,31 @@
- status = "okay";
- };
-
- +®_dcdc2 {
- + regulator-always-on;
- + regulator-min-microvolt = <1000000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-cpu";
- +};
- +
- +®_dcdc3 {
- + regulator-always-on;
- + regulator-min-microvolt = <1000000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-int-pll";
- +};
- +
- +®_ldo1 {
- + regulator-name = "vdd-rtc";
- +};
- +
- +®_ldo2 {
- + regulator-always-on;
- + regulator-min-microvolt = <3000000>;
- + regulator-max-microvolt = <3000000>;
- + regulator-name = "avcc";
- +};
- +
- ®_usb1_vbus {
- status = "okay";
- };
- @@ -206,7 +248,15 @@
- status = "okay";
- };
-
- +&usb_otg {
- + dr_mode = "otg";
- + status = "okay";
- +};
- +
- &usbphy {
- + pinctrl-names = "default";
- + pinctrl-0 = <&usb0_id_detect_pin>;
- + usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
- usb1_vbus-supply = <®_usb1_vbus>;
- usb2_vbus-supply = <®_usb2_vbus>;
- status = "okay";
- --- a/arch/arm/dts/sun7i-a20-wexler-tab7200.dts
- +++ b/arch/arm/dts/sun7i-a20-wexler-tab7200.dts
- @@ -48,6 +48,7 @@
- #include <dt-bindings/gpio/gpio.h>
- #include <dt-bindings/input/input.h>
- #include <dt-bindings/interrupt-controller/irq.h>
- +#include <dt-bindings/pwm/pwm.h>
-
- / {
- model = "Wexler TAB7200";
- @@ -57,11 +58,28 @@
- serial0 = &uart0;
- };
-
- + backlight {
- + compatible = "pwm-backlight";
- + pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
- + brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
- + default-brightness-level = <8>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&bl_enable_pin>;
- + enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
- + };
- +
- chosen {
- stdout-path = "serial0:115200n8";
- };
- };
-
- +&codec {
- + pinctrl-names = "default";
- + pinctrl-0 = <&codec_pa_pin>;
- + allwinner,pa-gpios = <&pio 7 15 GPIO_ACTIVE_HIGH>; /* PH15 */
- + status = "okay";
- +};
- +
- &cpu0 {
- cpu-supply = <®_dcdc2>;
- };
- @@ -86,6 +104,8 @@
- };
- };
-
- +#include "axp209.dtsi"
- +
- &i2c1 {
- pinctrl-names = "default";
- pinctrl-0 = <&i2c1_pins_a>;
- @@ -96,6 +116,18 @@
- pinctrl-names = "default";
- pinctrl-0 = <&i2c2_pins_a>;
- status = "okay";
- +
- + gt911: touchscreen@5d {
- + compatible = "goodix,gt911";
- + reg = <0x5d>;
- + interrupt-parent = <&pio>;
- + interrupts = <7 21 IRQ_TYPE_EDGE_FALLING>; /* EINT21 (PH21) */
- + pinctrl-names = "default";
- + pinctrl-0 = <&ts_reset_pin>;
- + irq-gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; /* INT (PH21) */
- + reset-gpios = <&pio 1 13 GPIO_ACTIVE_HIGH>; /* RST (PB13) */
- + touchscreen-swapped-x-y;
- + };
- };
-
- &lradc {
- @@ -135,7 +167,45 @@
- status = "okay";
- };
-
- -#include "axp209.dtsi"
- +&otg_sram {
- + status = "okay";
- +};
- +
- +&pio {
- + bl_enable_pin: bl_enable_pin@0 {
- + allwinner,pins = "PH7";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- + codec_pa_pin: codec_pa_pin@0 {
- + allwinner,pins = "PH15";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- + ts_reset_pin: ts_reset_pin@0 {
- + allwinner,pins = "PB13";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- + usb0_id_detect_pin: usb0_id_detect_pin@0 {
- + allwinner,pins = "PH4";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- + };
- +};
- +
- +&pwm {
- + pinctrl-names = "default";
- + pinctrl-0 = <&pwm0_pins_a>;
- + status = "okay";
- +};
-
- ®_dcdc2 {
- regulator-always-on;
- @@ -162,6 +232,10 @@
- regulator-name = "avcc";
- };
-
- +®_usb0_vbus {
- + status = "okay";
- +};
- +
- ®_usb1_vbus {
- status = "okay";
- };
- @@ -176,7 +250,21 @@
- status = "okay";
- };
-
- +&usb_otg {
- + dr_mode = "otg";
- + status = "okay";
- +};
- +
- +&usb_power_supply {
- + status = "okay";
- +};
- +
- &usbphy {
- + pinctrl-names = "default";
- + pinctrl-0 = <&usb0_id_detect_pin>;
- + usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
- + usb0_vbus_power-supply = <&usb_power_supply>;
- + usb0_vbus-supply = <®_usb0_vbus>;
- usb1_vbus-supply = <®_usb1_vbus>;
- usb2_vbus-supply = <®_usb2_vbus>;
- status = "okay";
- --- a/arch/arm/dts/sun7i-a20-wits-pro-a20-dkt.dts
- +++ b/arch/arm/dts/sun7i-a20-wits-pro-a20-dkt.dts
- @@ -1,13 +1,52 @@
- /*
- - * Copyright 2015 Hans de Goede <hdegoede@redhat.com>
- + * Copyright 2015 Jelle de Jong <jelledejong@powercraft.nl>
- *
- - * Minimal dts file for the Wits Pro A20 DKT for u-boot only
- + * This file is dual-licensed: you can use it either under the terms
- + * of the GPL or the X11 license, at your option. Note that this dual
- + * licensing only applies to this file, and not this project as a
- + * whole.
- *
- - * SPDX-License-Identifier: GPL-2.0+ or X11
- + * a) This file is free software; you can redistribute it and/or
- + * modify it under the terms of the GNU General Public License as
- + * published by the Free Software Foundation; either version 2 of the
- + * License, or (at your option) any later version.
- + *
- + * This file is distributed in the hope that it will be useful,
- + * but WITHOUT ANY WARRANTY; without even the implied warranty of
- + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- + * GNU General Public License for more details.
- + *
- + * Or, alternatively,
- + *
- + * b) Permission is hereby granted, free of charge, to any person
- + * obtaining a copy of this software and associated documentation
- + * files (the "Software"), to deal in the Software without
- + * restriction, including without limitation the rights to use,
- + * copy, modify, merge, publish, distribute, sublicense, and/or
- + * sell copies of the Software, and to permit persons to whom the
- + * Software is furnished to do so, subject to the following
- + * conditions:
- + *
- + * The above copyright notice and this permission notice shall be
- + * included in all copies or substantial portions of the Software.
- + *
- + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- + * OTHER DEALINGS IN THE SOFTWARE.
- */
-
- /dts-v1/;
- #include "sun7i-a20.dtsi"
- +#include "sunxi-common-regulators.dtsi"
- +
- +#include <dt-bindings/gpio/gpio.h>
- +#include <dt-bindings/input/input.h>
- +#include <dt-bindings/interrupt-controller/irq.h>
-
- / {
- model = "Wits Pro A20 DKT";
- @@ -20,6 +59,17 @@
- chosen {
- stdout-path = "serial0:115200n8";
- };
- +
- + mmc3_pwrseq: mmc3_pwrseq {
- + compatible = "mmc-pwrseq-simple";
- + pinctrl-names = "default";
- + pinctrl-0 = <&vmmc3_pin_ap6xxx_wl_regon>;
- + reset-gpios = <&pio 7 9 GPIO_ACTIVE_LOW>; /* PH9 WIFI_EN */
- + };
- +};
- +
- +&cpu0 {
- + cpu-supply = <®_dcdc2>;
- };
-
- &ehci0 {
- @@ -42,6 +92,60 @@
- };
- };
-
- +&i2c0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c0_pins_a>;
- + status = "okay";
- +
- + axp209: pmic@34 {
- + reg = <0x34>;
- + interrupt-parent = <&nmi_intc>;
- + interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
- + };
- +};
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins_a>;
- + status = "okay";
- +};
- +
- +&i2c2 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c2_pins_a>;
- + status = "okay";
- +};
- +
- +#include "axp209.dtsi"
- +
- +&mmc0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
- + vmmc-supply = <®_vcc3v3>;
- + bus-width = <4>;
- + cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
- + cd-inverted;
- + status = "okay";
- +};
- +
- +&mmc3 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&mmc3_pins_a>;
- + vmmc-supply = <®_vcc3v3>;
- + mmc-pwrseq = <&mmc3_pwrseq>;
- + bus-width = <4>;
- + non-removable;
- + status = "okay";
- +
- + brcmf: bcrmf@1 {
- + reg = <1>;
- + compatible = "brcm,bcm4329-fmac";
- + interrupt-parent = <&pio>;
- + interrupts = <7 10 IRQ_TYPE_LEVEL_LOW>; /* PH10 / EINT10 */
- + interrupt-names = "host-wake";
- + };
- +};
- +
- &ohci0 {
- status = "okay";
- };
- @@ -50,8 +154,85 @@
- status = "okay";
- };
-
- +&otg_sram {
- + status = "okay";
- +};
- +
- +&pio {
- + vmmc3_pin_ap6xxx_wl_regon: vmmc3_pin@0 {
- + allwinner,pins = "PH9";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- + usb0_id_detect_pin: usb0_id_detect_pin@0 {
- + allwinner,pins = "PH4";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- + };
- +};
- +
- +®_dcdc2 {
- + regulator-always-on;
- + regulator-min-microvolt = <1000000>;
- + regulator-max-microvolt = <1450000>;
- + regulator-name = "vdd-cpu";
- +};
- +
- +®_dcdc3 {
- + regulator-always-on;
- + regulator-min-microvolt = <1000000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-int-dll";
- +};
- +
- +®_ldo1 {
- + regulator-name = "vdd-rtc";
- +};
- +
- +®_ldo2 {
- + regulator-always-on;
- + regulator-min-microvolt = <3000000>;
- + regulator-max-microvolt = <3000000>;
- + regulator-name = "avcc";
- +};
- +
- +®_usb0_vbus {
- + status = "okay";
- +};
- +
- +®_usb1_vbus {
- + status = "okay";
- +};
- +
- +®_usb2_vbus {
- + status = "okay";
- +};
- +
- &uart0 {
- pinctrl-names = "default";
- pinctrl-0 = <&uart0_pins_a>;
- status = "okay";
- };
- +
- +&usb_otg {
- + dr_mode = "otg";
- + status = "okay";
- +};
- +
- +&usb_power_supply {
- + status = "okay";
- +};
- +
- +&usbphy {
- + pinctrl-names = "default";
- + pinctrl-0 = <&usb0_id_detect_pin>;
- + usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
- + usb0_vbus_power-supply = <&usb_power_supply>;
- + usb0_vbus-supply = <®_usb0_vbus>;
- + usb1_vbus-supply = <®_usb1_vbus>;
- + usb2_vbus-supply = <®_usb2_vbus>;
- + status = "okay";
- +};
- --- a/arch/arm/dts/sun7i-a20.dtsi
- +++ b/arch/arm/dts/sun7i-a20.dtsi
- @@ -47,6 +47,7 @@
- #include <dt-bindings/interrupt-controller/arm-gic.h>
- #include <dt-bindings/thermal/thermal.h>
-
- +#include <dt-bindings/clock/sun4i-a10-pll2.h>
- #include <dt-bindings/dma/sun4i-a10.h>
- #include <dt-bindings/pinctrl/sun4i-a10.h>
-
- @@ -67,7 +68,7 @@
- "simple-framebuffer";
- allwinner,pipeline = "de_be0-lcd0-hdmi";
- clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
- - <&ahb_gates 44>;
- + <&ahb_gates 44>, <&dram_gates 26>;
- status = "disabled";
- };
-
- @@ -75,7 +76,8 @@
- compatible = "allwinner,simple-framebuffer",
- "simple-framebuffer";
- allwinner,pipeline = "de_be0-lcd0";
- - clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>;
- + clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>,
- + <&dram_gates 26>;
- status = "disabled";
- };
-
- @@ -84,7 +86,7 @@
- "simple-framebuffer";
- allwinner,pipeline = "de_be0-lcd0-tve0";
- clocks = <&pll5 1>, <&ahb_gates 34>, <&ahb_gates 36>,
- - <&ahb_gates 44>;
- + <&ahb_gates 44>, <&dram_gates 26>;
- status = "disabled";
- };
- };
- @@ -107,7 +109,7 @@
- 720000 1200000
- 528000 1100000
- 312000 1000000
- - 144000 900000
- + 144000 1000000
- >;
- #cooling-cells = <2>;
- cooling-min-level = <0>;
- @@ -199,6 +201,15 @@
- clock-output-names = "pll1";
- };
-
- + pll2: clk@01c20008 {
- + #clock-cells = <1>;
- + compatible = "allwinner,sun4i-a10-pll2-clk";
- + reg = <0x01c20008 0x8>;
- + clocks = <&osc24M>;
- + clock-output-names = "pll2-1x", "pll2-2x",
- + "pll2-4x", "pll2-8x";
- + };
- +
- pll4: clk@01c20018 {
- #clock-cells = <0>;
- compatible = "allwinner,sun7i-a20-pll4-clk";
- @@ -267,6 +278,19 @@
- compatible = "allwinner,sun7i-a20-ahb-gates-clk";
- reg = <0x01c20060 0x8>;
- clocks = <&ahb>;
- + clock-indices = <0>, <1>,
- + <2>, <3>, <4>,
- + <5>, <6>, <7>, <8>,
- + <9>, <10>, <11>, <12>,
- + <13>, <14>, <16>,
- + <17>, <18>, <20>, <21>,
- + <22>, <23>, <25>,
- + <28>, <32>, <33>, <34>,
- + <35>, <36>, <37>, <40>,
- + <41>, <42>, <43>,
- + <44>, <45>, <46>,
- + <47>, <49>, <50>,
- + <52>;
- clock-output-names = "ahb_usb0", "ahb_ehci0",
- "ahb_ohci0", "ahb_ehci1", "ahb_ohci1",
- "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
- @@ -295,6 +319,10 @@
- compatible = "allwinner,sun7i-a20-apb0-gates-clk";
- reg = <0x01c20068 0x4>;
- clocks = <&apb0>;
- + clock-indices = <0>, <1>,
- + <2>, <3>, <4>,
- + <5>, <6>, <7>,
- + <8>, <10>;
- clock-output-names = "apb0_codec", "apb0_spdif",
- "apb0_ac97", "apb0_iis0", "apb0_iis1",
- "apb0_pio", "apb0_ir0", "apb0_ir1",
- @@ -314,6 +342,12 @@
- compatible = "allwinner,sun7i-a20-apb1-gates-clk";
- reg = <0x01c2006c 0x4>;
- clocks = <&apb1>;
- + clock-indices = <0>, <1>,
- + <2>, <3>, <4>,
- + <5>, <6>, <7>,
- + <15>, <16>, <17>,
- + <18>, <19>, <20>,
- + <21>, <22>, <23>;
- clock-output-names = "apb1_i2c0", "apb1_i2c1",
- "apb1_i2c2", "apb1_i2c3", "apb1_can",
- "apb1_scr", "apb1_ps20", "apb1_ps21",
- @@ -442,6 +476,14 @@
- clock-output-names = "ir1";
- };
-
- + keypad_clk: clk@01c200c4 {
- + #clock-cells = <0>;
- + compatible = "allwinner,sun4i-a10-mod0-clk";
- + reg = <0x01c200c4 0x4>;
- + clocks = <&osc24M>;
- + clock-output-names = "keypad";
- + };
- +
- usb_clk: clk@01c200cc {
- #clock-cells = <1>;
- #reset-cells = <1>;
- @@ -460,6 +502,48 @@
- clock-output-names = "spi3";
- };
-
- + dram_gates: clk@01c20100 {
- + #clock-cells = <1>;
- + compatible = "allwinner,sun4i-a10-dram-gates-clk";
- + reg = <0x01c20100 0x4>;
- + clocks = <&pll5 0>;
- + clock-indices = <0>,
- + <1>, <2>,
- + <3>,
- + <4>,
- + <5>, <6>,
- + <15>,
- + <24>, <25>,
- + <26>, <27>,
- + <28>, <29>;
- + clock-output-names = "dram_ve",
- + "dram_csi0", "dram_csi1",
- + "dram_ts",
- + "dram_tvd",
- + "dram_tve0", "dram_tve1",
- + "dram_output",
- + "dram_de_fe1", "dram_de_fe0",
- + "dram_de_be0", "dram_de_be1",
- + "dram_de_mp", "dram_ace";
- + };
- +
- + ve_clk: clk@01c2013c {
- + #clock-cells = <0>;
- + #reset-cells = <0>;
- + compatible = "allwinner,sun4i-a10-ve-clk";
- + reg = <0x01c2013c 0x4>;
- + clocks = <&pll4>;
- + clock-output-names = "ve";
- + };
- +
- + codec_clk: clk@01c20140 {
- + #clock-cells = <0>;
- + compatible = "allwinner,sun4i-a10-codec-clk";
- + reg = <0x01c20140 0x4>;
- + clocks = <&pll2 SUN4I_A10_PLL2_1X>;
- + clock-output-names = "codec";
- + };
- +
- mbus_clk: clk@01c2015c {
- #clock-cells = <0>;
- compatible = "allwinner,sun5i-a13-mbus-clk";
- @@ -744,6 +828,14 @@
- status = "disabled";
- };
-
- + crypto: crypto-engine@01c15000 {
- + compatible = "allwinner,sun4i-a10-crypto";
- + reg = <0x01c15000 0x1000>;
- + interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
- + clocks = <&ahb_gates 5>, <&ss_clk>;
- + clock-names = "ahb", "mod";
- + };
- +
- spi2: spi@01c17000 {
- compatible = "allwinner,sun4i-a10-spi";
- reg = <0x01c17000 0x1000>;
- @@ -1159,6 +1251,19 @@
- status = "disabled";
- };
-
- + codec: codec@01c22c00 {
- + #sound-dai-cells = <0>;
- + compatible = "allwinner,sun7i-a20-codec";
- + reg = <0x01c22c00 0x40>;
- + interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
- + clocks = <&apb0_gates 0>, <&codec_clk>;
- + clock-names = "apb", "codec";
- + dmas = <&dma SUN4I_DMA_NORMAL 19>,
- + <&dma SUN4I_DMA_NORMAL 19>;
- + dma-names = "rx", "tx";
- + status = "disabled";
- + };
- +
- sid: eeprom@01c23800 {
- compatible = "allwinner,sun7i-a20-sid";
- reg = <0x01c23800 0x200>;
- --- a/arch/arm/dts/sun8i-a23-a33.dtsi
- +++ b/arch/arm/dts/sun8i-a23-a33.dtsi
- @@ -56,7 +56,7 @@
- #size-cells = <1>;
- ranges;
-
- - framebuffer@0 {
- + simplefb_lcd: framebuffer@0 {
- compatible = "allwinner,simple-framebuffer",
- "simple-framebuffer";
- allwinner,pipeline = "de_be0-lcd0";
- @@ -175,27 +175,13 @@
- clock-output-names = "apb1";
- };
-
- - ahb1_gates: clk@01c20060 {
- - #clock-cells = <1>;
- - compatible = "allwinner,sun8i-a23-ahb1-gates-clk";
- - reg = <0x01c20060 0x8>;
- - clocks = <&ahb1>;
- - clock-output-names = "ahb1_mipidsi", "ahb1_dma",
- - "ahb1_mmc0", "ahb1_mmc1", "ahb1_mmc2",
- - "ahb1_nand", "ahb1_sdram",
- - "ahb1_hstimer", "ahb1_spi0",
- - "ahb1_spi1", "ahb1_otg", "ahb1_ehci",
- - "ahb1_ohci", "ahb1_ve", "ahb1_lcd",
- - "ahb1_csi", "ahb1_be", "ahb1_fe",
- - "ahb1_gpu", "ahb1_spinlock",
- - "ahb1_drc";
- - };
- -
- apb1_gates: clk@01c20068 {
- #clock-cells = <1>;
- compatible = "allwinner,sun8i-a23-apb1-gates-clk";
- reg = <0x01c20068 0x4>;
- clocks = <&apb1>;
- + clock-indices = <0>, <5>,
- + <12>, <13>;
- clock-output-names = "apb1_codec", "apb1_pio",
- "apb1_daudio0", "apb1_daudio1";
- };
- @@ -213,6 +199,10 @@
- compatible = "allwinner,sun8i-a23-apb2-gates-clk";
- reg = <0x01c2006c 0x4>;
- clocks = <&apb2>;
- + clock-indices = <0>, <1>,
- + <2>, <16>,
- + <17>, <18>,
- + <19>, <20>;
- clock-output-names = "apb2_i2c0", "apb2_i2c1",
- "apb2_i2c2", "apb2_uart0",
- "apb2_uart1", "apb2_uart2",
- @@ -391,12 +381,19 @@
- allwinner,pins = "PC5", "PC6", "PC8",
- "PC9", "PC10", "PC11",
- "PC12", "PC13", "PC14",
- - "PC15";
- + "PC15", "PC16";
- allwinner,function = "mmc2";
- allwinner,drive = <SUN4I_PINCTRL_30_MA>;
- allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- };
-
- + pwm0_pins: pwm0 {
- + allwinner,pins = "PH0";
- + allwinner,function = "pwm0";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- i2c0_pins_a: i2c0@0 {
- allwinner,pins = "PH2", "PH3";
- allwinner,function = "i2c0";
- @@ -451,6 +448,14 @@
- interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
- };
-
- + pwm: pwm@01c21400 {
- + compatible = "allwinner,sun7i-a20-pwm";
- + reg = <0x01c21400 0xc>;
- + clocks = <&osc24M>;
- + #pwm-cells = <3>;
- + status = "disabled";
- + };
- +
- lradc: lradc@01c22800 {
- compatible = "allwinner,sun4i-a10-lradc-keys";
- reg = <0x01c22800 0x100>;
- @@ -574,6 +579,14 @@
- <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
- };
-
- + nmi_intc: interrupt-controller@01f00c0c {
- + compatible = "allwinner,sun6i-a31-sc-nmi";
- + interrupt-controller;
- + #interrupt-cells = <2>;
- + reg = <0x01f00c0c 0x38>;
- + interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
- + };
- +
- prcm@01f01400 {
- compatible = "allwinner,sun8i-a23-prcm";
- reg = <0x01f01400 0x200>;
- @@ -642,10 +655,18 @@
- resets = <&apb0_rst 0>;
- gpio-controller;
- interrupt-controller;
- + #interrupt-cells = <3>;
- #address-cells = <1>;
- #size-cells = <0>;
- #gpio-cells = <3>;
-
- + r_rsb_pins: r_rsb {
- + allwinner,pins = "PL0", "PL1";
- + allwinner,function = "s_rsb";
- + allwinner,drive = <SUN4I_PINCTRL_20_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- + };
- +
- r_uart_pins_a: r_uart@0 {
- allwinner,pins = "PL2", "PL3";
- allwinner,function = "s_uart";
- @@ -653,5 +674,19 @@
- allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- };
- };
- +
- + r_rsb: rsb@01f03400 {
- + compatible = "allwinner,sun8i-a23-rsb";
- + reg = <0x01f03400 0x400>;
- + interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
- + clocks = <&apb0_gates 3>;
- + clock-frequency = <3000000>;
- + resets = <&apb0_rst 3>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&r_rsb_pins>;
- + status = "disabled";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + };
- };
- };
- --- a/arch/arm/dts/sun8i-a23-gt90h-v4.dts
- +++ b/arch/arm/dts/sun8i-a23-gt90h-v4.dts
- @@ -47,15 +47,26 @@
- #include <dt-bindings/gpio/gpio.h>
- #include <dt-bindings/input/input.h>
- #include <dt-bindings/pinctrl/sun4i-a10.h>
- +#include <dt-bindings/pwm/pwm.h>
-
- / {
- - model = "Allwinner GT90H Quad Core Tablet (v4)";
- - compatible = "allwinner,gt90h-v4", "allwinner,sun8i-a33";
- + model = "Allwinner GT90H Dual Core Tablet (v4)";
- + compatible = "allwinner,gt90h-v4", "allwinner,sun8i-a23";
-
- aliases {
- serial0 = &r_uart;
- };
-
- + backlight: backlight {
- + compatible = "pwm-backlight";
- + pinctrl-names = "default";
- + pinctrl-0 = <&bl_en_pin_gt90h>;
- + pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
- + brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
- + default-brightness-level = <8>;
- + enable-gpios = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */
- + };
- +
- chosen {
- stdout-path = "serial0:115200n8";
- };
- @@ -106,8 +117,7 @@
- &mmc0 {
- pinctrl-names = "default";
- pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_gt90h>;
- - /* FIXME this really is aldo1, correct once we've pmic support */
- - vmmc-supply = <®_vcc3v0>;
- + vmmc-supply = <®_aldo1>;
- bus-width = <4>;
- cd-gpios = <&pio 1 4 GPIO_ACTIVE_HIGH>; /* PB4 */
- cd-inverted;
- @@ -115,6 +125,13 @@
- };
-
- &pio {
- + bl_en_pin_gt90h: bl_en_pin@0 {
- + allwinner,pins = "PH6";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- mmc0_cd_pin_gt90h: mmc0_cd_pin@0 {
- allwinner,pins = "PB4";
- allwinner,function = "gpio_in";
- @@ -123,12 +140,106 @@
- };
- };
-
- +&pwm {
- + pinctrl-names = "default";
- + pinctrl-0 = <&pwm0_pins>;
- + status = "okay";
- +};
- +
- +&r_rsb {
- + status = "okay";
- +
- + axp22x: pmic@3a3 {
- + compatible = "x-powers,axp223";
- + reg = <0x3a3>;
- + interrupt-parent = <&nmi_intc>;
- + interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
- + eldoin-supply = <®_dcdc1>;
- + };
- +};
- +
- &r_uart {
- pinctrl-names = "default";
- pinctrl-0 = <&r_uart_pins_a>;
- status = "okay";
- };
-
- +#include "axp22x.dtsi"
- +
- +®_aldo1 {
- + regulator-always-on;
- + regulator-min-microvolt = <3000000>;
- + regulator-max-microvolt = <3000000>;
- + regulator-name = "vcc-io";
- +};
- +
- +®_aldo2 {
- + regulator-always-on;
- + regulator-min-microvolt = <2350000>;
- + regulator-max-microvolt = <2650000>;
- + regulator-name = "vdd-dll";
- +};
- +
- +®_aldo3 {
- + regulator-always-on;
- + regulator-min-microvolt = <2700000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-name = "vcc-pll-avcc";
- +};
- +
- +®_dc1sw {
- + regulator-name = "vcc-lcd";
- +};
- +
- +®_dc5ldo {
- + regulator-always-on;
- + regulator-min-microvolt = <900000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-cpus";
- +};
- +
- +®_dcdc1 {
- + regulator-always-on;
- + regulator-min-microvolt = <3000000>;
- + regulator-max-microvolt = <3000000>;
- + regulator-name = "vcc-3v0";
- +};
- +
- +®_dcdc2 {
- + regulator-always-on;
- + regulator-min-microvolt = <900000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-sys";
- +};
- +
- +®_dcdc3 {
- + regulator-always-on;
- + regulator-min-microvolt = <900000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-cpu";
- +};
- +
- +®_dcdc5 {
- + regulator-always-on;
- + regulator-min-microvolt = <1500000>;
- + regulator-max-microvolt = <1500000>;
- + regulator-name = "vcc-dram";
- +};
- +
- +®_dldo1 {
- + regulator-min-microvolt = <3300000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-name = "vcc-wifi";
- +};
- +
- +®_rtc_ldo {
- + regulator-name = "vcc-rtc";
- +};
- +
- +&simplefb_lcd {
- + vcc-lcd-supply = <®_dc1sw>;
- +};
- +
- /*
- * FIXME for now we only support host mode and rely on u-boot to have
- * turned on Vbus which is controlled by the axp223 pmic on the board.
- @@ -141,5 +252,6 @@
- };
-
- &usbphy {
- + usb1_vbus-supply = <®_dldo1>;
- status = "okay";
- };
- --- a/arch/arm/dts/sun8i-a23.dtsi
- +++ b/arch/arm/dts/sun8i-a23.dtsi
- @@ -50,6 +50,31 @@
- };
-
- clocks {
- + ahb1_gates: clk@01c20060 {
- + #clock-cells = <1>;
- + compatible = "allwinner,sun8i-a23-ahb1-gates-clk";
- + reg = <0x01c20060 0x8>;
- + clocks = <&ahb1>;
- + clock-indices = <1>, <6>,
- + <8>, <9>, <10>,
- + <13>, <14>,
- + <19>, <20>,
- + <21>, <24>, <26>,
- + <29>, <32>, <36>,
- + <40>, <44>, <46>,
- + <52>, <53>,
- + <54>, <57>;
- + clock-output-names = "ahb1_mipidsi", "ahb1_dma",
- + "ahb1_mmc0", "ahb1_mmc1", "ahb1_mmc2",
- + "ahb1_nand", "ahb1_sdram",
- + "ahb1_hstimer", "ahb1_spi0",
- + "ahb1_spi1", "ahb1_otg", "ahb1_ehci",
- + "ahb1_ohci", "ahb1_ve", "ahb1_lcd",
- + "ahb1_csi", "ahb1_be", "ahb1_fe",
- + "ahb1_gpu", "ahb1_msgbox",
- + "ahb1_spinlock", "ahb1_drc";
- + };
- +
- mbus_clk: clk@01c2015c {
- #clock-cells = <0>;
- compatible = "allwinner,sun8i-a23-mbus-clk";
- --- a/arch/arm/dts/sun8i-a33-sinlinx-sina33.dts
- +++ b/arch/arm/dts/sun8i-a33-sinlinx-sina33.dts
- @@ -68,7 +68,7 @@
- };
-
- &lradc {
- - vref-supply = <®_vcc3v0>;
- + vref-supply = <®_dcdc1>;
- status = "okay";
-
- button@200 {
- @@ -96,7 +96,7 @@
- &mmc0 {
- pinctrl-names = "default";
- pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_sina33>;
- - vmmc-supply = <®_vcc3v0>;
- + vmmc-supply = <®_dcdc1>;
- bus-width = <4>;
- cd-gpios = <&pio 1 4 GPIO_ACTIVE_HIGH>; /* PB4 */
- cd-inverted;
- @@ -106,13 +106,16 @@
- &mmc2 {
- pinctrl-names = "default";
- pinctrl-0 = <&mmc2_8bit_pins>;
- - vmmc-supply = <®_vcc3v0>;
- + vmmc-supply = <®_dcdc1>;
- bus-width = <8>;
- non-removable;
- + cap-mmc-hw-reset;
- status = "okay";
- };
-
- &mmc2_8bit_pins {
- + /* Increase drive strength for DDR modes */
- + allwinner,drive = <SUN4I_PINCTRL_40_MA>;
- /* eMMC is missing pull-ups */
- allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- };
- @@ -130,6 +133,80 @@
- };
- };
-
- +&r_rsb {
- + status = "okay";
- +
- + axp22x: pmic@3a3 {
- + compatible = "x-powers,axp223";
- + reg = <0x3a3>;
- + interrupt-parent = <&nmi_intc>;
- + interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
- + eldoin-supply = <®_dcdc1>;
- + };
- +};
- +
- +#include "axp22x.dtsi"
- +
- +®_aldo1 {
- + regulator-always-on;
- + regulator-min-microvolt = <3000000>;
- + regulator-max-microvolt = <3000000>;
- + regulator-name = "vcc-io";
- +};
- +
- +®_aldo2 {
- + regulator-always-on;
- + regulator-min-microvolt = <2350000>;
- + regulator-max-microvolt = <2650000>;
- + regulator-name = "vdd-dll";
- +};
- +
- +®_aldo3 {
- + regulator-always-on;
- + regulator-min-microvolt = <2700000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-name = "vcc-pll-avcc";
- +};
- +
- +®_dc5ldo {
- + regulator-always-on;
- + regulator-min-microvolt = <900000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-cpus";
- +};
- +
- +®_dcdc1 {
- + regulator-always-on;
- + regulator-min-microvolt = <3000000>;
- + regulator-max-microvolt = <3000000>;
- + regulator-name = "vcc-3v0";
- +};
- +
- +®_dcdc2 {
- + regulator-always-on;
- + regulator-min-microvolt = <900000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-sys";
- +};
- +
- +®_dcdc3 {
- + regulator-always-on;
- + regulator-min-microvolt = <900000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-cpu";
- +};
- +
- +®_dcdc5 {
- + regulator-always-on;
- + regulator-min-microvolt = <1500000>;
- + regulator-max-microvolt = <1500000>;
- + regulator-name = "vcc-dram";
- +};
- +
- +®_rtc_ldo {
- + regulator-name = "vcc-rtc";
- +};
- +
- &uart0 {
- pinctrl-names = "default";
- pinctrl-0 = <&uart0_pins_b>;
- --- a/arch/arm/dts/sun8i-a33.dtsi
- +++ b/arch/arm/dts/sun8i-a33.dtsi
- @@ -72,6 +72,41 @@
- clock-output-names = "pll11";
- };
-
- + ahb1_gates: clk@01c20060 {
- + #clock-cells = <1>;
- + compatible = "allwinner,sun8i-a33-ahb1-gates-clk";
- + reg = <0x01c20060 0x8>;
- + clocks = <&ahb1>;
- + clock-indices = <1>, <5>,
- + <6>, <8>, <9>,
- + <10>, <13>, <14>,
- + <19>, <20>,
- + <21>, <24>, <26>,
- + <29>, <32>, <36>,
- + <40>, <44>, <46>,
- + <52>, <53>,
- + <54>, <57>,
- + <58>;
- + clock-output-names = "ahb1_mipidsi", "ahb1_ss",
- + "ahb1_dma","ahb1_mmc0", "ahb1_mmc1",
- + "ahb1_mmc2", "ahb1_nand", "ahb1_sdram",
- + "ahb1_hstimer", "ahb1_spi0",
- + "ahb1_spi1", "ahb1_otg", "ahb1_ehci",
- + "ahb1_ohci", "ahb1_ve", "ahb1_lcd",
- + "ahb1_csi", "ahb1_be", "ahb1_fe",
- + "ahb1_gpu", "ahb1_msgbox",
- + "ahb1_spinlock", "ahb1_drc",
- + "ahb1_sat";
- + };
- +
- + ss_clk: clk@01c2009c {
- + #clock-cells = <0>;
- + compatible = "allwinner,sun4i-a10-mod0-clk";
- + reg = <0x01c2009c 0x4>;
- + clocks = <&osc24M>, <&pll6 0>;
- + clock-output-names = "ss";
- + };
- +
- mbus_clk: clk@01c2015c {
- #clock-cells = <0>;
- compatible = "allwinner,sun8i-a23-mbus-clk";
- @@ -82,6 +117,16 @@
- };
-
- soc@01c00000 {
- + crypto: crypto-engine@01c15000 {
- + compatible = "allwinner,sun4i-a10-crypto";
- + reg = <0x01c15000 0x1000>;
- + interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
- + clocks = <&ahb1_gates 5>, <&ss_clk>;
- + clock-names = "ahb", "mod";
- + resets = <&ahb1_rst 5>;
- + reset-names = "ahb";
- + };
- +
- usb_otg: usb@01c19000 {
- compatible = "allwinner,sun8i-a33-musb";
- reg = <0x01c19000 0x0400>;
- --- /dev/null
- +++ b/arch/arm/dts/sun8i-a83t-cubietruck-plus.dts
- @@ -0,0 +1,65 @@
- +/*
- + * Copyright 2015 Chen-Yu Tsai
- + *
- + * Chen-Yu Tsai <wens@csie.org>
- + *
- + * This file is dual-licensed: you can use it either under the terms
- + * of the GPL or the X11 license, at your option. Note that this dual
- + * licensing only applies to this file, and not this project as a
- + * whole.
- + *
- + * a) This file is free software; you can redistribute it and/or
- + * modify it under the terms of the GNU General Public License as
- + * published by the Free Software Foundation; either version 2 of the
- + * License, or (at your option) any later version.
- + *
- + * This file is distributed in the hope that it will be useful,
- + * but WITHOUT ANY WARRANTY; without even the implied warranty of
- + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- + * GNU General Public License for more details.
- + *
- + * Or, alternatively,
- + *
- + * b) Permission is hereby granted, free of charge, to any person
- + * obtaining a copy of this software and associated documentation
- + * files (the "Software"), to deal in the Software without
- + * restriction, including without limitation the rights to use,
- + * copy, modify, merge, publish, distribute, sublicense, and/or
- + * sell copies of the Software, and to permit persons to whom the
- + * Software is furnished to do so, subject to the following
- + * conditions:
- + *
- + * The above copyright notice and this permission notice shall be
- + * included in all copies or substantial portions of the Software.
- + *
- + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- + * OTHER DEALINGS IN THE SOFTWARE.
- + */
- +
- +/dts-v1/;
- +#include "sun8i-a83t.dtsi"
- +
- +/ {
- + model = "Cubietech Cubietruck Plus";
- + compatible = "cubietech,cubietruck-plus", "allwinner,sun8i-a83t";
- +
- + aliases {
- + serial0 = &uart0;
- + };
- +
- + chosen {
- + stdout-path = "serial0:115200n8";
- + };
- +};
- +
- +&uart0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart0_pins_b>;
- + status = "okay";
- +};
- --- a/arch/arm/dts/sun8i-a83t.dtsi
- +++ b/arch/arm/dts/sun8i-a83t.dtsi
- @@ -52,12 +52,6 @@
- / {
- interrupt-parent = <&gic>;
-
- - chosen {
- - #address-cells = <1>;
- - #size-cells = <1>;
- - ranges;
- - };
- -
- cpus {
- #address-cells = <1>;
- #size-cells = <0>;
- @@ -85,6 +79,7 @@
- device_type = "cpu";
- reg = <3>;
- };
- +
- cpu@100 {
- compatible = "arm,cortex-a7";
- device_type = "cpu";
- @@ -96,6 +91,7 @@
- device_type = "cpu";
- reg = <0x101>;
- };
- +
- cpu@102 {
- compatible = "arm,cortex-a7";
- device_type = "cpu";
- @@ -109,18 +105,12 @@
- };
- };
-
- - memory {
- - reg = <0x40000000 0x80000000>;
- - };
- -
- timer {
- compatible = "arm,armv7-timer";
- - interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
- - <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
- - <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
- - <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
- - clock-frequency = <24000000>;
- - arm,cpu-registers-not-fw-configured;
- + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
- + <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
- + <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
- + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>;
- };
-
- clocks {
- @@ -128,6 +118,7 @@
- #size-cells = <1>;
- ranges;
-
- + /* TODO: PRCM block has a mux for this. */
- osc24M: osc24M_clk {
- #clock-cells = <0>;
- compatible = "fixed-clock";
- @@ -135,36 +126,39 @@
- clock-output-names = "osc24M";
- };
-
- - osc32k: osc32k_clk {
- + /*
- + * This is called "internal OSC" in some places.
- + * It is an internal RC-based oscillator.
- + * TODO: Its controls are in the PRCM block.
- + */
- + osc16M: osc16M_clk {
- #clock-cells = <0>;
- compatible = "fixed-clock";
- - clock-frequency = <32768>;
- - clock-output-names = "osc32k";
- + clock-frequency = <16000000>;
- + clock-output-names = "osc16M";
- + };
- +
- + osc16Md512: osc16Md512_clk {
- + #clock-cells = <0>;
- + compatible = "fixed-factor-clock";
- + clock-div = <512>;
- + clock-mult = <1>;
- + clocks = <&osc16M>;
- + clock-output-names = "osc16M-d512";
- };
- };
-
- - soc@01c00000 {
- + soc {
- compatible = "simple-bus";
- #address-cells = <1>;
- #size-cells = <1>;
- ranges;
-
- - gic: interrupt-controller@01c81000 {
- - compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
- - reg = <0x01c81000 0x1000>,
- - <0x01c82000 0x1000>,
- - <0x01c84000 0x2000>,
- - <0x01c86000 0x2000>;
- - interrupt-controller;
- - #interrupt-cells = <3>;
- - interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
- - };
- -
- pio: pinctrl@01c20800 {
- compatible = "allwinner,sun8i-a83t-pinctrl";
- interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
- - <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
- - <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
- + <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
- + <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
- reg = <0x01c20800 0x400>;
- clocks = <&osc24M>;
- gpio-controller;
- @@ -172,27 +166,6 @@
- #interrupt-cells = <3>;
- #gpio-cells = <3>;
-
- - i2c0_pins_a: i2c0@0 {
- - allwinner,pins = "PH0", "PH1";
- - allwinner,function = "i2c0";
- - allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- - allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- - };
- -
- - i2c1_pins_a: i2c1@0 {
- - allwinner,pins = "PH2", "PH3";
- - allwinner,function = "i2c1";
- - allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- - allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- - };
- -
- - i2c2_pins_a: i2c2@0 {
- - allwinner,pins = "PH4", "PH5";
- - allwinner,function = "i2c2";
- - allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- - allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- - };
- -
- mmc0_pins_a: mmc0@0 {
- allwinner,pins = "PF0", "PF1", "PF2",
- "PF3", "PF4", "PF5";
- @@ -201,24 +174,6 @@
- allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- };
-
- - mmc1_pins_a: mmc1@0 {
- - allwinner,pins = "PG0", "PG1", "PG2",
- - "PG3", "PG4", "PG5";
- - allwinner,function = "mmc1";
- - allwinner,drive = <SUN4I_PINCTRL_30_MA>;
- - allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- - };
- -
- - mmc2_8bit_pins: mmc2_8bit {
- - allwinner,pins = "PC5", "PC6", "PC8",
- - "PC9", "PC10", "PC11",
- - "PC12", "PC13", "PC14",
- - "PC15";
- - allwinner,function = "mmc2";
- - allwinner,drive = <SUN4I_PINCTRL_30_MA>;
- - allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- - };
- -
- uart0_pins_a: uart0@0 {
- allwinner,pins = "PF2", "PF4";
- allwinner,function = "uart0";
- @@ -234,6 +189,21 @@
- };
- };
-
- + timer@01c20c00 {
- + compatible = "allwinner,sun4i-a10-timer";
- + reg = <0x01c20c00 0xa0>;
- + interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
- + <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
- + clocks = <&osc24M>;
- + };
- +
- + watchdog@01c20ca0 {
- + compatible = "allwinner,sun6i-a31-wdt";
- + reg = <0x01c20ca0 0x20>;
- + interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
- + clocks = <&osc24M>;
- + };
- +
- uart0: serial@01c28000 {
- compatible = "snps,dw-apb-uart";
- reg = <0x01c28000 0x400>;
- @@ -243,5 +213,16 @@
- clocks = <&osc24M>;
- status = "disabled";
- };
- +
- + gic: interrupt-controller@01c81000 {
- + compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
- + reg = <0x01c81000 0x1000>,
- + <0x01c82000 0x1000>,
- + <0x01c84000 0x2000>,
- + <0x01c86000 0x2000>;
- + interrupt-controller;
- + #interrupt-cells = <3>;
- + interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
- + };
- };
- };
- --- a/arch/arm/dts/sun8i-h3-orangepi-pc.dts
- +++ b/arch/arm/dts/sun8i-h3-orangepi-pc.dts
- @@ -45,6 +45,7 @@
- #include "sunxi-common-regulators.dtsi"
-
- #include <dt-bindings/gpio/gpio.h>
- +#include <dt-bindings/input/input.h>
- #include <dt-bindings/pinctrl/sun4i-a10.h>
-
- / {
- @@ -58,6 +59,43 @@
- chosen {
- stdout-path = "serial0:115200n8";
- };
- +
- + leds {
- + compatible = "gpio-leds";
- + pinctrl-names = "default";
- + pinctrl-0 = <&leds_opc>;
- +
- + status_led {
- + label = "status:red:user";
- + gpios = <&pio 0 15 GPIO_ACTIVE_HIGH>;
- + };
- + };
- +
- + r_leds {
- + compatible = "gpio-leds";
- + pinctrl-names = "default";
- + pinctrl-0 = <&leds_r_opc>;
- +
- + tx {
- + label = "pwr:green:user";
- + gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>;
- + default-state = "on";
- + };
- + };
- +
- + r_gpio_keys {
- + compatible = "gpio-keys";
- + input-name = "sw4";
- +
- + pinctrl-names = "default";
- + pinctrl-0 = <&sw_r_opc>;
- +
- + sw4@0 {
- + label = "sw4";
- + linux,code = <BTN_0>;
- + gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
- + };
- + };
- };
-
- &ehci1 {
- @@ -72,6 +110,12 @@
- status = "okay";
- };
-
- +&ir {
- + pinctrl-names = "default";
- + pinctrl-0 = <&ir_pins_a>;
- + status = "okay";
- +};
- +
- &mmc0 {
- pinctrl-names = "default";
- pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>;
- @@ -94,6 +138,31 @@
- status = "okay";
- };
-
- +&pio {
- + leds_opc: led_pins@0 {
- + allwinner,pins = "PA15";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +};
- +
- +&r_pio {
- + leds_r_opc: led_pins@0 {
- + allwinner,pins = "PL10";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- + sw_r_opc: key_pins@0 {
- + allwinner,pins = "PL03";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +};
- +
- &uart0 {
- pinctrl-names = "default";
- pinctrl-0 = <&uart0_pins_a>;
- --- a/arch/arm/dts/sun8i-h3-orangepi-plus.dts
- +++ b/arch/arm/dts/sun8i-h3-orangepi-plus.dts
- @@ -45,6 +45,7 @@
- #include "sunxi-common-regulators.dtsi"
-
- #include <dt-bindings/gpio/gpio.h>
- +#include <dt-bindings/input/input.h>
- #include <dt-bindings/pinctrl/sun4i-a10.h>
-
- / {
- @@ -70,6 +71,68 @@
- enable-active-high;
- gpio = <&pio 6 11 GPIO_ACTIVE_HIGH>;
- };
- +
- + leds {
- + compatible = "gpio-leds";
- + pinctrl-names = "default";
- + pinctrl-0 = <&leds_opc>;
- +
- + status_led {
- + label = "status:red:user";
- + gpios = <&pio 0 15 GPIO_ACTIVE_HIGH>;
- + };
- + };
- +
- + r_leds {
- + compatible = "gpio-leds";
- + pinctrl-names = "default";
- + pinctrl-0 = <&leds_r_opc>;
- +
- + tx {
- + label = "pwr:green:user";
- + gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>;
- + default-state = "on";
- + };
- + };
- +
- + r_gpio_keys {
- + compatible = "gpio-keys";
- + input-name = "sw4";
- +
- + pinctrl-names = "default";
- + pinctrl-0 = <&sw_r_opc>;
- +
- + sw4@0 {
- + label = "sw4";
- + linux,code = <BTN_0>;
- + gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
- + };
- + };
- +};
- +
- +&pio {
- + leds_opc: led_pins@0 {
- + allwinner,pins = "PA15";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +};
- +
- +&r_pio {
- + leds_r_opc: led_pins@0 {
- + allwinner,pins = "PL10";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- + sw_r_opc: key_pins@0 {
- + allwinner,pins = "PL03";
- + allwinner,function = "gpio_in";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- };
-
- &ehci1 {
- --- a/arch/arm/dts/sun8i-h3.dtsi
- +++ b/arch/arm/dts/sun8i-h3.dtsi
- @@ -83,12 +83,6 @@
- <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
- <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
- <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
- - clock-frequency = <24000000>;
- - arm,cpu-registers-not-fw-configured;
- - };
- -
- - memory {
- - reg = <0x40000000 0x80000000>;
- };
-
- clocks {
- @@ -131,15 +125,24 @@
- compatible = "allwinner,sun6i-a31-pll6-clk";
- reg = <0x01c20028 0x4>;
- clocks = <&osc24M>;
- - clock-output-names = "pll6", "pll6x2", "pll6d2";
- + clock-output-names = "pll6", "pll6x2";
- };
-
- - pll8: clk@01c20044 {
- - #clock-cells = <1>;
- - compatible = "allwinner,sun6i-a31-pll6-clk";
- - reg = <0x01c20044 0x4>;
- - clocks = <&osc24M>;
- - clock-output-names = "pll8", "pll8x2";
- + pll6d2: pll6d2_clk {
- + #clock-cells = <0>;
- + compatible = "fixed-factor-clock";
- + clock-div = <2>;
- + clock-mult = <1>;
- + clocks = <&pll6 0>;
- + clock-output-names = "pll6d2";
- + };
- +
- + /* dummy clock until pll6 can be reused */
- + pll8: pll8_clk {
- + #clock-cells = <0>;
- + compatible = "fixed-clock";
- + clock-frequency = <1>;
- + clock-output-names = "pll8";
- };
-
- cpu: cpu_clk@01c20050 {
- @@ -170,7 +173,7 @@
- #clock-cells = <0>;
- compatible = "allwinner,sun8i-h3-ahb2-clk";
- reg = <0x01c2005c 0x4>;
- - clocks = <&ahb1>, <&pll6 2>;
- + clocks = <&ahb1>, <&pll6d2>;
- clock-output-names = "ahb2";
- };
-
- @@ -213,34 +216,34 @@
- <76>, <77>, <78>,
- <96>, <97>, <98>,
- <112>, <113>,
- - <114>, <115>, <116>,
- - <128>, <135>;
- - clock-output-names = "ahb1_ce", "ahb1_dma", "ahb1_mmc0",
- - "ahb1_mmc1", "ahb1_mmc2", "ahb1_nand",
- - "ahb1_sdram", "ahb2_gmac", "ahb1_ts",
- - "ahb1_hstimer", "ahb1_spi0",
- - "ahb1_spi1", "ahb1_otg",
- - "ahb1_otg_ehci0", "ahb1_ehic1",
- - "ahb1_ehic2", "ahb1_ehic3",
- - "ahb1_otg_ohci0", "ahb2_ohic1",
- - "ahb2_ohic2", "ahb2_ohic3", "ahb1_ve",
- - "ahb1_lcd0", "ahb1_lcd1", "ahb1_deint",
- - "ahb1_csi", "ahb1_tve", "ahb1_hdmi",
- - "ahb1_de", "ahb1_gpu", "ahb1_msgbox",
- - "ahb1_spinlock", "apb1_codec",
- - "apb1_spdif", "apb1_pio", "apb1_ths",
- - "apb1_i2s0", "apb1_i2s1", "apb1_i2s2",
- - "apb2_i2c0", "apb2_i2c1", "apb2_i2c2",
- - "apb2_uart0", "apb2_uart1",
- - "apb2_uart2", "apb2_uart3", "apb2_scr",
- - "ahb1_ephy", "ahb1_dbg";
- + <114>, <115>,
- + <116>, <128>, <135>;
- + clock-output-names = "bus_ce", "bus_dma", "bus_mmc0",
- + "bus_mmc1", "bus_mmc2", "bus_nand",
- + "bus_sdram", "bus_gmac", "bus_ts",
- + "bus_hstimer", "bus_spi0",
- + "bus_spi1", "bus_otg",
- + "bus_otg_ehci0", "bus_ehci1",
- + "bus_ehci2", "bus_ehci3",
- + "bus_otg_ohci0", "bus_ohci1",
- + "bus_ohci2", "bus_ohci3", "bus_ve",
- + "bus_lcd0", "bus_lcd1", "bus_deint",
- + "bus_csi", "bus_tve", "bus_hdmi",
- + "bus_de", "bus_gpu", "bus_msgbox",
- + "bus_spinlock", "bus_codec",
- + "bus_spdif", "bus_pio", "bus_ths",
- + "bus_i2s0", "bus_i2s1", "bus_i2s2",
- + "bus_i2c0", "bus_i2c1", "bus_i2c2",
- + "bus_uart0", "bus_uart1",
- + "bus_uart2", "bus_uart3",
- + "bus_scr", "bus_ephy", "bus_dbg";
- };
-
- mmc0_clk: clk@01c20088 {
- #clock-cells = <1>;
- compatible = "allwinner,sun4i-a10-mmc-clk";
- reg = <0x01c20088 0x4>;
- - clocks = <&osc24M>, <&pll6 0>, <&pll8 0>;
- + clocks = <&osc24M>, <&pll6 0>, <&pll8>;
- clock-output-names = "mmc0",
- "mmc0_output",
- "mmc0_sample";
- @@ -250,7 +253,7 @@
- #clock-cells = <1>;
- compatible = "allwinner,sun4i-a10-mmc-clk";
- reg = <0x01c2008c 0x4>;
- - clocks = <&osc24M>, <&pll6 0>, <&pll8 0>;
- + clocks = <&osc24M>, <&pll6 0>, <&pll8>;
- clock-output-names = "mmc1",
- "mmc1_output",
- "mmc1_sample";
- @@ -260,7 +263,7 @@
- #clock-cells = <1>;
- compatible = "allwinner,sun4i-a10-mmc-clk";
- reg = <0x01c20090 0x4>;
- - clocks = <&osc24M>, <&pll6 0>, <&pll8 0>;
- + clocks = <&osc24M>, <&pll6 0>, <&pll8>;
- clock-output-names = "mmc2",
- "mmc2_output",
- "mmc2_sample";
- @@ -285,6 +288,33 @@
- clocks = <&osc24M>, <&pll6 1>, <&pll5>;
- clock-output-names = "mbus";
- };
- +
- + apb0: apb0_clk {
- + compatible = "fixed-factor-clock";
- + #clock-cells = <0>;
- + clock-div = <1>;
- + clock-mult = <1>;
- + clocks = <&osc24M>;
- + clock-output-names = "apb0";
- + };
- +
- + apb0_gates: clk@01f01428 {
- + compatible = "allwinner,sun8i-h3-apb0-gates-clk",
- + "allwinner,sun4i-a10-gates-clk";
- + reg = <0x01f01428 0x4>;
- + #clock-cells = <1>;
- + clocks = <&apb0>;
- + clock-indices = <0>, <1>;
- + clock-output-names = "apb0_pio", "apb0_ir";
- + };
- +
- + ir_clk: ir_clk@01f01454 {
- + compatible = "allwinner,sun4i-a10-mod0-clk";
- + reg = <0x01f01454 0x4>;
- + #clock-cells = <0>;
- + clocks = <&osc32k>, <&osc24M>;
- + clock-output-names = "ir";
- + };
- };
-
- soc {
- @@ -298,7 +328,7 @@
- reg = <0x01c02000 0x1000>;
- interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&bus_gates 6>;
- - resets = <&bus_rst 6>;
- + resets = <&ahb_rst 6>;
- #dma-cells = <1>;
- };
-
- @@ -313,7 +343,7 @@
- "mmc",
- "output",
- "sample";
- - resets = <&bus_rst 8>;
- + resets = <&ahb_rst 8>;
- reset-names = "ahb";
- interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
- status = "disabled";
- @@ -332,7 +362,7 @@
- "mmc",
- "output",
- "sample";
- - resets = <&bus_rst 9>;
- + resets = <&ahb_rst 9>;
- reset-names = "ahb";
- interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
- status = "disabled";
- @@ -351,7 +381,7 @@
- "mmc",
- "output",
- "sample";
- - resets = <&bus_rst 10>;
- + resets = <&ahb_rst 10>;
- reset-names = "ahb";
- interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
- status = "disabled";
- @@ -396,7 +426,7 @@
- reg = <0x01c1b000 0x100>;
- interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&bus_gates 25>, <&bus_gates 29>;
- - resets = <&bus_rst 25>, <&bus_rst 29>;
- + resets = <&ahb_rst 25>, <&ahb_rst 29>;
- phys = <&usbphy 1>;
- phy-names = "usb";
- status = "disabled";
- @@ -408,7 +438,7 @@
- interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&bus_gates 29>, <&bus_gates 25>,
- <&usb_clk 17>;
- - resets = <&bus_rst 29>, <&bus_rst 25>;
- + resets = <&ahb_rst 29>, <&ahb_rst 25>;
- phys = <&usbphy 1>;
- phy-names = "usb";
- status = "disabled";
- @@ -419,7 +449,7 @@
- reg = <0x01c1c000 0x100>;
- interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&bus_gates 26>, <&bus_gates 30>;
- - resets = <&bus_rst 26>, <&bus_rst 30>;
- + resets = <&ahb_rst 26>, <&ahb_rst 30>;
- phys = <&usbphy 2>;
- phy-names = "usb";
- status = "disabled";
- @@ -431,7 +461,7 @@
- interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&bus_gates 30>, <&bus_gates 26>,
- <&usb_clk 18>;
- - resets = <&bus_rst 30>, <&bus_rst 26>;
- + resets = <&ahb_rst 30>, <&ahb_rst 26>;
- phys = <&usbphy 2>;
- phy-names = "usb";
- status = "disabled";
- @@ -442,7 +472,7 @@
- reg = <0x01c1d000 0x100>;
- interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&bus_gates 27>, <&bus_gates 31>;
- - resets = <&bus_rst 27>, <&bus_rst 31>;
- + resets = <&ahb_rst 27>, <&ahb_rst 31>;
- phys = <&usbphy 3>;
- phy-names = "usb";
- status = "disabled";
- @@ -454,7 +484,7 @@
- interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&bus_gates 31>, <&bus_gates 27>,
- <&usb_clk 19>;
- - resets = <&bus_rst 31>, <&bus_rst 27>;
- + resets = <&ahb_rst 31>, <&ahb_rst 27>;
- phys = <&usbphy 3>;
- phy-names = "usb";
- status = "disabled";
- @@ -469,7 +499,7 @@
- gpio-controller;
- #gpio-cells = <3>;
- interrupt-controller;
- - #interrupt-cells = <2>;
- + #interrupt-cells = <3>;
-
- uart0_pins_a: uart0@0 {
- allwinner,pins = "PA4", "PA5";
- @@ -502,10 +532,22 @@
- };
- };
-
- - bus_rst: reset@01c202c0 {
- + ahb_rst: reset@01c202c0 {
- #reset-cells = <1>;
- - compatible = "allwinner,sun8i-h3-bus-reset";
- - reg = <0x01c202c0 0x1c>;
- + compatible = "allwinner,sun6i-a31-ahb1-reset";
- + reg = <0x01c202c0 0xc>;
- + };
- +
- + apb1_rst: reset@01c202d0 {
- + #reset-cells = <1>;
- + compatible = "allwinner,sun6i-a31-clock-reset";
- + reg = <0x01c202d0 0x4>;
- + };
- +
- + apb2_rst: reset@01c202d8 {
- + #reset-cells = <1>;
- + compatible = "allwinner,sun6i-a31-clock-reset";
- + reg = <0x01c202d8 0x4>;
- };
-
- timer@01c20c00 {
- @@ -529,7 +571,7 @@
- reg-shift = <2>;
- reg-io-width = <4>;
- clocks = <&bus_gates 112>;
- - resets = <&bus_rst 144>;
- + resets = <&apb2_rst 16>;
- dmas = <&dma 6>, <&dma 6>;
- dma-names = "rx", "tx";
- status = "disabled";
- @@ -542,7 +584,7 @@
- reg-shift = <2>;
- reg-io-width = <4>;
- clocks = <&bus_gates 113>;
- - resets = <&bus_rst 145>;
- + resets = <&apb2_rst 17>;
- dmas = <&dma 7>, <&dma 7>;
- dma-names = "rx", "tx";
- status = "disabled";
- @@ -555,7 +597,7 @@
- reg-shift = <2>;
- reg-io-width = <4>;
- clocks = <&bus_gates 114>;
- - resets = <&bus_rst 146>;
- + resets = <&apb2_rst 18>;
- dmas = <&dma 8>, <&dma 8>;
- dma-names = "rx", "tx";
- status = "disabled";
- @@ -568,7 +610,7 @@
- reg-shift = <2>;
- reg-io-width = <4>;
- clocks = <&bus_gates 115>;
- - resets = <&bus_rst 147>;
- + resets = <&apb2_rst 19>;
- dmas = <&dma 9>, <&dma 9>;
- dma-names = "rx", "tx";
- status = "disabled";
- @@ -591,5 +633,40 @@
- interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
- <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
- };
- +
- + apb0_reset: reset@01f014b0 {
- + reg = <0x01f014b0 0x4>;
- + compatible = "allwinner,sun6i-a31-clock-reset";
- + #reset-cells = <1>;
- + };
- +
- + ir: ir@01f02000 {
- + compatible = "allwinner,sun5i-a13-ir";
- + clocks = <&apb0_gates 1>, <&ir_clk>;
- + clock-names = "apb", "ir";
- + resets = <&apb0_reset 1>;
- + interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
- + reg = <0x01f02000 0x40>;
- + status = "disabled";
- + };
- +
- + r_pio: pinctrl@01f02c00 {
- + compatible = "allwinner,sun8i-h3-r-pinctrl";
- + reg = <0x01f02c00 0x400>;
- + interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
- + clocks = <&apb0_gates 0>;
- + resets = <&apb0_reset 0>;
- + gpio-controller;
- + #gpio-cells = <3>;
- + interrupt-controller;
- + #interrupt-cells = <3>;
- +
- + ir_pins_a: ir@0 {
- + allwinner,pins = "PL11";
- + allwinner,function = "s_cir_rx";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- + };
- };
- };
- --- a/arch/arm/dts/sun8i-q8-common.dtsi
- +++ b/arch/arm/dts/sun8i-q8-common.dtsi
- @@ -41,11 +41,23 @@
- */
- #include "sunxi-q8-common.dtsi"
-
- +#include <dt-bindings/pwm/pwm.h>
- +
- / {
- aliases {
- serial0 = &r_uart;
- };
-
- + backlight: backlight {
- + compatible = "pwm-backlight";
- + pinctrl-names = "default";
- + pinctrl-0 = <&bl_en_pin_q8>;
- + pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
- + brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
- + default-brightness-level = <8>;
- + enable-gpios = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */
- + };
- +
- chosen {
- stdout-path = "serial0:115200n8";
- };
- @@ -54,7 +66,7 @@
- &mmc0 {
- pinctrl-names = "default";
- pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_q8>;
- - vmmc-supply = <®_vcc3v0>;
- + vmmc-supply = <®_dcdc1>;
- bus-width = <4>;
- cd-gpios = <&pio 1 4 GPIO_ACTIVE_HIGH>; /* PB4 */
- cd-inverted;
- @@ -77,8 +89,90 @@
- };
- };
-
- +&r_rsb {
- + status = "okay";
- +
- + axp22x: pmic@3a3 {
- + compatible = "x-powers,axp223";
- + reg = <0x3a3>;
- + interrupt-parent = <&nmi_intc>;
- + interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
- + eldoin-supply = <®_dcdc1>;
- + };
- +};
- +
- +#include "axp22x.dtsi"
- +
- +®_aldo1 {
- + regulator-always-on;
- + regulator-min-microvolt = <3000000>;
- + regulator-max-microvolt = <3000000>;
- + regulator-name = "vcc-io";
- +};
- +
- +®_aldo2 {
- + regulator-always-on;
- + regulator-min-microvolt = <2350000>;
- + regulator-max-microvolt = <2650000>;
- + regulator-name = "vdd-dll";
- +};
- +
- +®_aldo3 {
- + regulator-always-on;
- + regulator-min-microvolt = <2700000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-name = "vcc-pll-avcc";
- +};
- +
- +®_dc1sw {
- + regulator-name = "vcc-lcd";
- +};
- +
- +®_dc5ldo {
- + regulator-always-on;
- + regulator-min-microvolt = <900000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-cpus";
- +};
- +
- +®_dcdc1 {
- + regulator-always-on;
- + regulator-min-microvolt = <3000000>;
- + regulator-max-microvolt = <3000000>;
- + regulator-name = "vcc-3v0";
- +};
- +
- +®_dcdc2 {
- + regulator-always-on;
- + regulator-min-microvolt = <900000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-sys";
- +};
- +
- +®_dcdc3 {
- + regulator-always-on;
- + regulator-min-microvolt = <900000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-cpu";
- +};
- +
- +®_dcdc5 {
- + regulator-always-on;
- + regulator-min-microvolt = <1500000>;
- + regulator-max-microvolt = <1500000>;
- + regulator-name = "vcc-dram";
- +};
- +
- +®_rtc_ldo {
- + regulator-name = "vcc-rtc";
- +};
- +
- &r_uart {
- pinctrl-names = "default";
- pinctrl-0 = <&r_uart_pins_a>;
- status = "okay";
- };
- +
- +&simplefb_lcd {
- + vcc-lcd-supply = <®_dc1sw>;
- +};
- --- a/arch/arm/dts/sun9i-a80-cubieboard4.dts
- +++ b/arch/arm/dts/sun9i-a80-cubieboard4.dts
- @@ -62,9 +62,31 @@
- stdout-path = "serial0:115200n8";
- };
-
- + leds {
- + compatible = "gpio-leds";
- + pinctrl-names = "default";
- + pinctrl-0 = <&led_pins_cubieboard4>;
- +
- + green {
- + label = "cubieboard4:green:usr";
- + gpios = <&pio 7 17 GPIO_ACTIVE_HIGH>; /* PH17 */
- + };
- +
- + red {
- + label = "cubieboard4:red:usr";
- + gpios = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */
- + };
- + };
- };
-
- &pio {
- + led_pins_cubieboard4: led-pins@0 {
- + allwinner,pins = "PH6", "PH17";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- mmc0_cd_pin_cubieboard4: mmc0_cd_pin@0 {
- allwinner,pins = "PH18";
- allwinner,function = "gpio_in";
- @@ -89,6 +111,20 @@
- vmmc-supply = <®_vcc3v0>;
- bus-width = <8>;
- non-removable;
- + cap-mmc-hw-reset;
- + status = "okay";
- +};
- +
- +&mmc2_8bit_pins {
- + /* Increase drive strength for DDR modes */
- + allwinner,drive = <SUN4I_PINCTRL_40_MA>;
- +};
- +
- +&r_ir {
- + status = "okay";
- +};
- +
- +&r_rsb {
- status = "okay";
- };
-
- --- a/arch/arm/dts/sun9i-a80-optimus.dts
- +++ b/arch/arm/dts/sun9i-a80-optimus.dts
- @@ -65,7 +65,7 @@
- leds {
- compatible = "gpio-leds";
- pinctrl-names = "default";
- - pinctrl-0 = <&led_pins_optimus>;
- + pinctrl-0 = <&led_pins_optimus>, <&led_r_pins_optimus>;
-
- /* The LED names match those found on the board */
-
- @@ -74,7 +74,10 @@
- gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>;
- };
-
- - /* led3 is on PM15, in R_PIO */
- + led3 {
- + label = "optimus:led3:usr";
- + gpios = <&r_pio 1 15 GPIO_ACTIVE_HIGH>; /* PM15 */
- + };
-
- led4 {
- label = "optimus:led4:usr";
- @@ -106,17 +109,6 @@
- status = "okay";
- };
-
- -&i2c3 {
- - pinctrl-names = "default";
- - pinctrl-0 = <&i2c3_pins_a>;
- - status = "okay";
- -};
- -
- -&i2c3_pins_a {
- - /* Enable internal pull-up */
- - allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- -};
- -
- &ohci0 {
- status = "okay";
- };
- @@ -171,30 +163,42 @@
- vmmc-supply = <®_vcc3v0>;
- bus-width = <8>;
- non-removable;
- + cap-mmc-hw-reset;
- status = "okay";
- };
-
- +&mmc2_8bit_pins {
- + /* Increase drive strength for DDR modes */
- + allwinner,drive = <SUN4I_PINCTRL_40_MA>;
- +};
- +
- ®_usb1_vbus {
- pinctrl-0 = <&usb1_vbus_pin_optimus>;
- gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
- status = "okay";
- };
-
- -&uart0 {
- - pinctrl-names = "default";
- - pinctrl-0 = <&uart0_pins_a>;
- +&r_ir {
- status = "okay";
- };
-
- -&uart4 {
- - pinctrl-names = "default";
- - pinctrl-0 = <&uart4_pins_a>;
- +&r_pio {
- + led_r_pins_optimus: led-pins@1 {
- + allwinner,pins = "PM15";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +};
- +
- +&r_rsb {
- status = "okay";
- };
-
- -&uart4_pins_a {
- - /* Enable internal pull-up */
- - allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- +&uart0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart0_pins_a>;
- + status = "okay";
- };
-
- &usbphy1 {
- --- a/arch/arm/dts/sun9i-a80.dtsi
- +++ b/arch/arm/dts/sun9i-a80.dtsi
- @@ -128,6 +128,17 @@
- */
- ranges = <0 0 0 0x20000000>;
-
- + /*
- + * This clock is actually configurable from the PRCM address
- + * space. The external 24M oscillator can be turned off, and
- + * the clock switched to an internal 16M RC oscillator. Under
- + * normal operation there's no reason to do this, and the
- + * default is to use the external good one, so just model this
- + * as a fixed clock. Also it is not entirely clear if the
- + * osc24M mux in the PRCM affects the entire clock tree, which
- + * would also throw all the PLL clock rates off, or just the
- + * downstream clocks in the PRCM.
- + */
- osc24M: osc24M_clk {
- #clock-cells = <0>;
- compatible = "fixed-clock";
- @@ -135,6 +146,13 @@
- clock-output-names = "osc24M";
- };
-
- + /*
- + * The 32k clock is from an external source, normally the
- + * AC100 codec/RTC chip. This clock is by default enabled
- + * and clocked at 32768 Hz, from the oscillator connected
- + * to the AC100. It is configurable, but no such driver or
- + * bindings exist yet.
- + */
- osc32k: osc32k_clk {
- #clock-cells = <0>;
- compatible = "fixed-clock";
- @@ -164,6 +182,14 @@
- "usb_phy2", "usb_hsic_12M";
- };
-
- + pll3: clk@06000008 {
- + /* placeholder until implemented */
- + #clock-cells = <0>;
- + compatible = "fixed-clock";
- + clock-rate = <0>;
- + clock-output-names = "pll3";
- + };
- +
- pll4: clk@0600000c {
- #clock-cells = <0>;
- compatible = "allwinner,sun9i-a80-pll4-clk";
- @@ -277,9 +303,12 @@
- compatible = "allwinner,sun9i-a80-ahb0-gates-clk";
- reg = <0x06000580 0x4>;
- clocks = <&ahb0>;
- - clock-indices = <0>, <1>, <3>, <5>, <8>, <12>, <13>,
- - <14>, <15>, <16>, <18>, <20>, <21>,
- - <22>, <23>;
- + clock-indices = <0>, <1>, <3>,
- + <5>, <8>, <12>,
- + <13>, <14>,
- + <15>, <16>, <18>,
- + <20>, <21>, <22>,
- + <23>;
- clock-output-names = "ahb0_fd", "ahb0_ve", "ahb0_gpu",
- "ahb0_ss", "ahb0_sd", "ahb0_nand1",
- "ahb0_nand0", "ahb0_sdram",
- @@ -293,7 +322,10 @@
- compatible = "allwinner,sun9i-a80-ahb1-gates-clk";
- reg = <0x06000584 0x4>;
- clocks = <&ahb1>;
- - clock-indices = <0>, <1>, <17>, <21>, <22>, <23>, <24>;
- + clock-indices = <0>, <1>,
- + <17>, <21>,
- + <22>, <23>,
- + <24>;
- clock-output-names = "ahb1_usbotg", "ahb1_usbhci",
- "ahb1_gmac", "ahb1_msgbox",
- "ahb1_spinlock", "ahb1_hstimer",
- @@ -305,8 +337,9 @@
- compatible = "allwinner,sun9i-a80-ahb2-gates-clk";
- reg = <0x06000588 0x4>;
- clocks = <&ahb2>;
- - clock-indices = <0>, <1>, <2>, <4>, <5>, <7>, <8>,
- - <11>;
- + clock-indices = <0>, <1>,
- + <2>, <4>, <5>,
- + <7>, <8>, <11>;
- clock-output-names = "ahb2_lcd0", "ahb2_lcd1",
- "ahb2_edp", "ahb2_csi", "ahb2_hdmi",
- "ahb2_de", "ahb2_mp", "ahb2_mipi_dsi";
- @@ -317,8 +350,10 @@
- compatible = "allwinner,sun9i-a80-apb0-gates-clk";
- reg = <0x06000590 0x4>;
- clocks = <&apb0>;
- - clock-indices = <1>, <5>, <11>, <12>, <13>, <15>,
- - <17>, <18>, <19>;
- + clock-indices = <1>, <5>,
- + <11>, <12>, <13>,
- + <15>, <17>, <18>,
- + <19>;
- clock-output-names = "apb0_spdif", "apb0_pio",
- "apb0_ac97", "apb0_i2s0", "apb0_i2s1",
- "apb0_lradc", "apb0_gpadc", "apb0_twd",
- @@ -330,14 +365,79 @@
- compatible = "allwinner,sun9i-a80-apb1-gates-clk";
- reg = <0x06000594 0x4>;
- clocks = <&apb1>;
- - clock-indices = <0>, <1>, <2>, <3>, <4>,
- - <16>, <17>, <18>, <19>, <20>, <21>;
- + clock-indices = <0>, <1>,
- + <2>, <3>, <4>,
- + <16>, <17>,
- + <18>, <19>,
- + <20>, <21>;
- clock-output-names = "apb1_i2c0", "apb1_i2c1",
- "apb1_i2c2", "apb1_i2c3", "apb1_i2c4",
- "apb1_uart0", "apb1_uart1",
- "apb1_uart2", "apb1_uart3",
- "apb1_uart4", "apb1_uart5";
- };
- +
- + cpus_clk: clk@08001410 {
- + compatible = "allwinner,sun9i-a80-cpus-clk";
- + reg = <0x08001410 0x4>;
- + #clock-cells = <0>;
- + clocks = <&osc32k>, <&osc24M>, <&pll4>, <&pll3>;
- + clock-output-names = "cpus";
- + };
- +
- + ahbs: ahbs_clk {
- + compatible = "fixed-factor-clock";
- + #clock-cells = <0>;
- + clock-div = <1>;
- + clock-mult = <1>;
- + clocks = <&cpus_clk>;
- + clock-output-names = "ahbs";
- + };
- +
- + apbs: clk@0800141c {
- + compatible = "allwinner,sun8i-a23-apb0-clk";
- + reg = <0x0800141c 0x4>;
- + #clock-cells = <0>;
- + clocks = <&ahbs>;
- + clock-output-names = "apbs";
- + };
- +
- + apbs_gates: clk@08001428 {
- + compatible = "allwinner,sun9i-a80-apbs-gates-clk";
- + reg = <0x08001428 0x4>;
- + #clock-cells = <1>;
- + clocks = <&apbs>;
- + clock-indices = <0>, <1>,
- + <2>, <3>,
- + <4>, <5>,
- + <6>, <7>,
- + <12>, <13>,
- + <16>, <17>,
- + <18>, <20>;
- + clock-output-names = "apbs_pio", "apbs_ir",
- + "apbs_timer", "apbs_rsb",
- + "apbs_uart", "apbs_1wire",
- + "apbs_i2c0", "apbs_i2c1",
- + "apbs_ps2_0", "apbs_ps2_1",
- + "apbs_dma", "apbs_i2s0",
- + "apbs_i2s1", "apbs_twd";
- + };
- +
- + r_1wire_clk: clk@08001450 {
- + reg = <0x08001450 0x4>;
- + #clock-cells = <0>;
- + compatible = "allwinner,sun4i-a10-mod0-clk";
- + clocks = <&osc32k>, <&osc24M>;
- + clock-output-names = "r_1wire";
- + };
- +
- + r_ir_clk: clk@08001454 {
- + reg = <0x08001454 0x4>;
- + #clock-cells = <0>;
- + compatible = "allwinner,sun4i-a10-mod0-clk";
- + clocks = <&osc32k>, <&osc24M>;
- + clock-output-names = "r_ir";
- + };
- };
-
- soc {
- @@ -443,7 +543,7 @@
- };
-
- mmc0: mmc@01c0f000 {
- - compatible = "allwinner,sun5i-a13-mmc";
- + compatible = "allwinner,sun9i-a80-mmc";
- reg = <0x01c0f000 0x1000>;
- clocks = <&mmc_config_clk 0>, <&mmc0_clk 0>,
- <&mmc0_clk 1>, <&mmc0_clk 2>;
- @@ -457,7 +557,7 @@
- };
-
- mmc1: mmc@01c10000 {
- - compatible = "allwinner,sun5i-a13-mmc";
- + compatible = "allwinner,sun9i-a80-mmc";
- reg = <0x01c10000 0x1000>;
- clocks = <&mmc_config_clk 1>, <&mmc1_clk 0>,
- <&mmc1_clk 1>, <&mmc1_clk 2>;
- @@ -471,7 +571,7 @@
- };
-
- mmc2: mmc@01c11000 {
- - compatible = "allwinner,sun5i-a13-mmc";
- + compatible = "allwinner,sun9i-a80-mmc";
- reg = <0x01c11000 0x1000>;
- clocks = <&mmc_config_clk 2>, <&mmc2_clk 0>,
- <&mmc2_clk 1>, <&mmc2_clk 2>;
- @@ -485,7 +585,7 @@
- };
-
- mmc3: mmc@01c12000 {
- - compatible = "allwinner,sun5i-a13-mmc";
- + compatible = "allwinner,sun9i-a80-mmc";
- reg = <0x01c12000 0x1000>;
- clocks = <&mmc_config_clk 3>, <&mmc3_clk 0>,
- <&mmc3_clk 1>, <&mmc3_clk 2>;
- @@ -582,7 +682,7 @@
- clocks = <&apb0_gates 5>;
- gpio-controller;
- interrupt-controller;
- - #interrupt-cells = <2>;
- + #interrupt-cells = <3>;
- #size-cells = <0>;
- #gpio-cells = <3>;
-
- @@ -604,7 +704,8 @@
- mmc2_8bit_pins: mmc2_8bit {
- allwinner,pins = "PC6", "PC7", "PC8", "PC9",
- "PC10", "PC11", "PC12",
- - "PC13", "PC14", "PC15";
- + "PC13", "PC14", "PC15",
- + "PC16";
- allwinner,function = "mmc2";
- allwinner,drive = <SUN4I_PINCTRL_30_MA>;
- allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- @@ -752,14 +853,83 @@
- interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
- };
-
- + apbs_rst: reset@080014b0 {
- + reg = <0x080014b0 0x4>;
- + compatible = "allwinner,sun6i-a31-clock-reset";
- + #reset-cells = <1>;
- + };
- +
- + nmi_intc: interrupt-controller@080015a0 {
- + compatible = "allwinner,sun9i-a80-nmi";
- + interrupt-controller;
- + #interrupt-cells = <2>;
- + reg = <0x080015a0 0xc>;
- + interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
- + };
- +
- + r_ir: ir@08002000 {
- + compatible = "allwinner,sun5i-a13-ir";
- + interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&r_ir_pins>;
- + clocks = <&apbs_gates 1>, <&r_ir_clk>;
- + clock-names = "apb", "ir";
- + resets = <&apbs_rst 1>;
- + reg = <0x08002000 0x40>;
- + status = "disabled";
- + };
- +
- r_uart: serial@08002800 {
- compatible = "snps,dw-apb-uart";
- reg = <0x08002800 0x400>;
- interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
- reg-shift = <2>;
- reg-io-width = <4>;
- - clocks = <&osc24M>;
- + clocks = <&apbs_gates 4>;
- + resets = <&apbs_rst 4>;
- status = "disabled";
- };
- +
- + r_pio: pinctrl@08002c00 {
- + compatible = "allwinner,sun9i-a80-r-pinctrl";
- + reg = <0x08002c00 0x400>;
- + interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
- + <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
- + clocks = <&apbs_gates 0>;
- + resets = <&apbs_rst 0>;
- + gpio-controller;
- + interrupt-controller;
- + #address-cells = <1>;
- + #size-cells = <0>;
- + #gpio-cells = <3>;
- +
- + r_ir_pins: r_ir {
- + allwinner,pins = "PL6";
- + allwinner,function = "s_cir_rx";
- + allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- + r_rsb_pins: r_rsb {
- + allwinner,pins = "PN0", "PN1";
- + allwinner,function = "s_rsb";
- + allwinner,drive = <SUN4I_PINCTRL_20_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
- + };
- + };
- +
- + r_rsb: i2c@08003400 {
- + compatible = "allwinner,sun8i-a23-rsb";
- + reg = <0x08003400 0x400>;
- + interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
- + clocks = <&apbs_gates 3>;
- + clock-frequency = <3000000>;
- + resets = <&apbs_rst 3>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&r_rsb_pins>;
- + status = "disabled";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + };
- };
- };
- --- /dev/null
- +++ b/arch/arm/dts/sunxi-itead-core-common.dtsi
- @@ -0,0 +1,136 @@
- +/*
- + * Copyright 2015 - Marcus Cooper <codekipper@gmail.com>
- + *
- + * This file is dual-licensed: you can use it either under the terms
- + * of the GPL or the X11 license, at your option. Note that this dual
- + * licensing only applies to this file, and not this project as a
- + * whole.
- + *
- + * a) This file is free software; you can redistribute it and/or
- + * modify it under the terms of the GNU General Public License as
- + * published by the Free Software Foundation; either version 2 of the
- + * License, or (at your option) any later version.
- + *
- + * This file is distributed in the hope that it will be useful,
- + * but WITHOUT ANY WARRANTY; without even the implied warranty of
- + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- + * GNU General Public License for more details.
- + *
- + * Or, alternatively,
- + *
- + * b) Permission is hereby granted, free of charge, to any person
- + * obtaining a copy of this software and associated documentation
- + * files (the "Software"), to deal in the Software without
- + * restriction, including without limitation the rights to use,
- + * copy, modify, merge, publish, distribute, sublicense, and/or
- + * sell copies of the Software, and to permit persons to whom the
- + * Software is furnished to do so, subject to the following
- + * conditions:
- + *
- + * The above copyright notice and this permission notice shall be
- + * included in all copies or substantial portions of the Software.
- + *
- + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- + * OTHER DEALINGS IN THE SOFTWARE.
- + */
- +
- +#include "sunxi-common-regulators.dtsi"
- +
- +/ {
- + aliases {
- + serial0 = &uart0;
- + };
- +
- + chosen {
- + stdout-path = "serial0:115200n8";
- + };
- +};
- +
- +&cpu0 {
- + cpu-supply = <®_dcdc2>;
- +};
- +
- +&ehci0 {
- + status = "okay";
- +};
- +
- +&ehci1 {
- + status = "okay";
- +};
- +
- +&i2c0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c0_pins_a>;
- + status = "okay";
- +
- + axp209: pmic@34 {
- + reg = <0x34>;
- + };
- +};
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins_a>;
- + status = "okay";
- +};
- +
- +&ohci0 {
- + status = "okay";
- +};
- +
- +&ohci1 {
- + status = "okay";
- +};
- +
- +#include "axp209.dtsi"
- +
- +®_dcdc2 {
- + regulator-always-on;
- + regulator-min-microvolt = <1000000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-cpu";
- +};
- +
- +®_dcdc3 {
- + regulator-always-on;
- + regulator-min-microvolt = <1000000>;
- + regulator-max-microvolt = <1400000>;
- + regulator-name = "vdd-int-dll";
- +};
- +
- +®_ldo1 {
- + regulator-name = "vdd-rtc";
- +};
- +
- +®_ldo2 {
- + regulator-always-on;
- + regulator-min-microvolt = <3000000>;
- + regulator-max-microvolt = <3000000>;
- + regulator-name = "avcc";
- +};
- +
- +®_usb1_vbus {
- + status = "okay";
- +};
- +
- +®_usb2_vbus {
- + status = "okay";
- +};
- +
- +&uart0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart0_pins_a>;
- + status = "okay";
- +};
- +
- +&usbphy {
- + usb1_vbus-supply = <®_usb1_vbus>;
- + usb2_vbus-supply = <®_usb2_vbus>;
- + status = "okay";
- +};
- --- a/arch/arm/dts/sunxi-q8-common.dtsi
- +++ b/arch/arm/dts/sunxi-q8-common.dtsi
- @@ -75,3 +75,9 @@
- voltage = <400000>;
- };
- };
- +
- +&pwm {
- + pinctrl-names = "default";
- + pinctrl-0 = <&pwm0_pins>;
- + status = "okay";
- +};
|