12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178 |
- From 47aa556cd8897b84417a2745650affa8e1dd2b62 Mon Sep 17 00:00:00 2001
- From: notro <[email protected]>
- Date: Wed, 9 Jul 2014 14:46:08 +0200
- Subject: [PATCH] BCM2708: Add core Device Tree support
- MIME-Version: 1.0
- Content-Type: text/plain; charset=UTF-8
- Content-Transfer-Encoding: 8bit
- Add the bare minimum needed to boot BCM2708 from a Device Tree.
- Signed-off-by: Noralf Tronnes <[email protected]>
- BCM2708: DT: change 'axi' nodename to 'soc'
- Change DT node named 'axi' to 'soc' so it matches ARCH_BCM2835.
- The VC4 bootloader fills in certain properties in the 'axi' subtree,
- but since this is part of an upstreaming effort, the name is changed.
- Signed-off-by: Noralf Tronnes [email protected]
- BCM2708_DT: Correct length of the peripheral space
- Use dts-dirs feature for overlays.
- The kernel makefiles have a dts-dirs target that is for vendor subdirectories.
- Using this fixes the install_dtbs target, which previously did not install the overlays.
- BCM270X_DT: configure I2S DMA channels
- Signed-off-by: Matthias Reichl <[email protected]>
- BCM270X_DT: switch to bcm2835-i2s
- I2S soundcard drivers with proper devicetree support (i.e. not linking
- to the cpu_dai/platform via name but to cpu/platform via of_node)
- will work out of the box without any modifications.
- When the kernel is compiled without devicetree support the platform
- code will instantiate the bcm2708-i2s driver and I2S soundcard drivers
- will link to it via name, as before.
- Signed-off-by: Matthias Reichl <[email protected]>
- SDIO-overlay: add poll_once-boolean parameter
- Add paramter to toggle sdio-device-polling
- done every second or once at boot-time.
- Signed-off-by: Patrick Boettcher <[email protected]>
- BCM270X_DT: Make mmc overlay compatible with current firmware
- The original DT overlay logic followed a merge-then-patch procedure,
- i.e. parameters are applied to the loaded overlay before the overlay
- is merged into the base DTB. This sequence has been changed to
- patch-then-merge, in order to support parameterised node names, and
- to protect against bad overlays. As a result, overrides (parameters)
- must only target labels in the overlay, but the overlay can obviously target nodes in the base DTB.
- mmc-overlay.dts (that switches back to the original mmc sdcard
- driver) is the only overlay violating that rule, and this patch
- fixes it.
- bcm270x_dt: Use the sdhost MMC controller by default
- The "mmc" overlay reverts to using the other controller.
- squash: Add cprman to dt
- BCM270X_DT: Use clk_core for I2C interfaces
- BCM270X_DT: Use bcm283x.dtsi, bcm2835.dtsi and bcm2836.dtsi
- The mainline Device Tree files are quite close to downstream now.
- Let's use bcm283x.dtsi, bcm2835.dtsi and bcm2836.dtsi as base files
- for our dts files.
- Mainline dts files are based on these files:
- bcm2835-rpi.dtsi
- bcm2835.dtsi bcm2836.dtsi
- bcm283x.dtsi
- Current downstream are based on these:
- bcm2708.dtsi bcm2709.dtsi bcm2710.dtsi
- bcm2708_common.dtsi
- This patch introduces this dependency:
- bcm2708.dtsi bcm2709.dtsi
- bcm2708-rpi.dtsi
- bcm270x.dtsi
- bcm2835.dtsi bcm2836.dtsi
- bcm283x.dtsi
- And:
- bcm2710.dtsi
- bcm2708-rpi.dtsi
- bcm270x.dtsi
- bcm283x.dtsi
- bcm270x.dtsi contains the downstream bcm283x.dtsi diff.
- bcm2708-rpi.dtsi is the downstream version of bcm2835-rpi.dtsi.
- Other changes:
- - The led node has moved from /soc/leds to /leds. This is not a problem
- since the label is used to reference it.
- - The clk_osc reg property changes from 6 to 3.
- - The gpu nodes has their interrupt property set in the base file.
- - the clocks label does not point to the /clocks node anymore, but
- points to the cprman node. This is not a problem since the overlays
- that use the clock node refer to it directly: target-path = "/clocks";
- - some nodes now have 2 labels since mainline and downstream differs in
- this respect: cprman/clocks, spi0/spi, gpu/vc4.
- - some nodes doesn't have an explicit status = "okay" since they're not
- disabled in the base file: watchdog and random.
- - gpiomem doesn't need an explicit status = "okay".
- - bcm2708-rpi-cm.dts got the hpd-gpios property from bcm2708_common.dtsi,
- it's now set directly in that file.
- - bcm2709-rpi-2-b.dts has the timer node moved from /soc/timer to /timer.
- - Removed clock-frequency property on the bcm{2709,2710}.dtsi timer nodes.
- Signed-off-by: Noralf Trønnes <[email protected]>
- BCM270X_DT: Use raspberrypi-power to turn on USB power
- Use the raspberrypi-power driver to turn on USB power.
- Signed-off-by: Noralf Trønnes <[email protected]>
- BCM270X_DT: Add a .dtbo target, use for overlays
- Change the filenames and extensions to keep the pre-DDT style of
- overlay (<name>-overlay.dtb) distinct from new ones that use a
- different style of local fixups (<name>.dtbo), and to match other
- platforms.
- The RPi firmware uses the DDTK trailer atom to choose which type of
- overlay to use for each kernel.
- Signed-off-by: Phil Elwell <[email protected]>
- BCM270X_DT: Don't generate "linux,phandle" props
- The EPAPR standard says to use "phandle" properties to store phandles,
- rather than the deprecated "linux,phandle" version. By default, dtc
- generates both, but adding "-H epapr" causes it to only generate
- "phandle"s, saving some space and clutter.
- Signed-off-by: Phil Elwell <[email protected]>
- BCM270X_DT: Add overlay for enc28j60 on SPI2
- Works on SPI2 for compute module
- BCM270X_DT: Add midi-uart0 overlay
- MIDI requires 31.25kbaud, a baudrate unsupported by Linux. The
- midi-uart0 overlay configures uart0 (ttyAMA0) to use a fake clock
- so that requesting 38.4kbaud actually gets 31.25kbaud.
- Signed-off-by: Phil Elwell <[email protected]>
- BCM270X_DT: Add i2c-sensor overlay
- The i2c-sensor overlay is a container for various pressure and
- temperature sensors, currently bmp085 and bmp280. The standalone
- bmp085_i2c-sensor overlay is now deprecated.
- Signed-off-by: Phil Elwell <[email protected]>
- BCM270X_DT: overlays/*-overlay.dtb -> overlays/*.dtbo (#1752)
- We now create overlays as .dtbo files.
- build: support for .dtbo files for dtb overlays
- Kernel 4.4.6+ on RaspberryPi support .dtbo files for overlays, instead of .dtb.
- Patch the kernel, which has faulty rules to generate .dtbo the way yocto does
- Signed-off-by: Herve Jourdain <[email protected]>
- Signed-off-by: Khem Raj <[email protected]>
- BCM270X: Drop position requirement for CMA in VC4 overlay.
- No longer necessary since 2aefcd576195a739a7a256099571c9c4a401005f,
- and will probably let peeople that want to choose a larger CMA
- allocation (particularly on pi0/1).
- Signed-off-by: Eric Anholt <[email protected]>
- BCM270X_DT: RPi Device Tree tidy
- Use the upstream sdhost node, add thermal-zones, and factor out some
- common elements.
- Signed-off-by: Phil Elwell <[email protected]>
- kbuild: Silence unhelpful DTC warnings
- Signed-off-by: Phil Elwell <[email protected]>
- BCM270X_DT: DT build rules no longer arch-specific
- Signed-off-by: Phil Elwell <[email protected]>
- ---
- arch/arm/boot/dts/Makefile | 17 +
- arch/arm/boot/dts/bcm2708-rpi-b-plus.dts | 129 +
- arch/arm/boot/dts/bcm2708-rpi-b-rev1.dts | 132 +
- arch/arm/boot/dts/bcm2708-rpi-b.dts | 119 +
- arch/arm/boot/dts/bcm2708-rpi-bt.dtsi | 26 +
- arch/arm/boot/dts/bcm2708-rpi-cm.dts | 112 +
- arch/arm/boot/dts/bcm2708-rpi-cm.dtsi | 18 +
- arch/arm/boot/dts/bcm2708-rpi-zero-w.dts | 169 +
- arch/arm/boot/dts/bcm2708-rpi-zero.dts | 123 +
- arch/arm/boot/dts/bcm2708-rpi.dtsi | 36 +
- arch/arm/boot/dts/bcm2708.dtsi | 12 +
- arch/arm/boot/dts/bcm2709-rpi-2-b.dts | 129 +
- arch/arm/boot/dts/bcm2709-rpi.dtsi | 5 +
- arch/arm/boot/dts/bcm2709.dtsi | 22 +
- arch/arm/boot/dts/bcm270x-rpi.dtsi | 154 +
- arch/arm/boot/dts/bcm270x.dtsi | 217 +
- arch/arm/boot/dts/bcm2710-rpi-2-b.dts | 129 +
- arch/arm/boot/dts/bcm2710-rpi-3-b-plus.dts | 201 +
- arch/arm/boot/dts/bcm2710-rpi-3-b.dts | 203 +
- arch/arm/boot/dts/bcm2710-rpi-cm3.dts | 148 +
- arch/arm/boot/dts/bcm2710.dtsi | 25 +
- arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 310 +-
- arch/arm/boot/dts/bcm2711-rpi-400.dts | 624 ++-
- arch/arm/boot/dts/bcm2711-rpi-cm4.dts | 660 +++
- arch/arm/boot/dts/bcm2711-rpi-ds.dtsi | 205 +
- arch/arm/boot/dts/bcm2711.dtsi | 46 +-
- arch/arm/boot/dts/bcm271x-rpi-bt.dtsi | 26 +
- arch/arm/boot/dts/bcm2835-common.dtsi | 4 +-
- arch/arm/boot/dts/bcm2835-rpi-a-plus.dts | 5 +
- arch/arm/boot/dts/bcm2835-rpi-a.dts | 7 +
- arch/arm/boot/dts/bcm2835-rpi-b-plus.dts | 5 +
- arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts | 7 +
- arch/arm/boot/dts/bcm2835-rpi-b.dts | 7 +
- arch/arm/boot/dts/bcm2835-rpi-cm1-io1.dts | 5 +
- arch/arm/boot/dts/bcm2835-rpi-zero-w.dts | 5 +
- arch/arm/boot/dts/bcm2835-rpi-zero.dts | 5 +
- arch/arm/boot/dts/bcm2835-rpi.dtsi | 19 +-
- arch/arm/boot/dts/bcm2835.dtsi | 2 +-
- arch/arm/boot/dts/bcm2836-rpi-2-b.dts | 5 +
- arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts | 5 +
- arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts | 5 +
- arch/arm/boot/dts/bcm2837-rpi-3-b.dts | 5 +
- arch/arm/boot/dts/bcm2837-rpi-cm3-io3.dts | 5 +
- .../boot/dts/bcm283x-rpi-cam1-regulator.dtsi | 10 +
- arch/arm/boot/dts/bcm283x-rpi-csi0-2lane.dtsi | 4 +
- arch/arm/boot/dts/bcm283x-rpi-csi1-2lane.dtsi | 4 +
- arch/arm/boot/dts/bcm283x-rpi-csi1-4lane.dtsi | 4 +
- .../boot/dts/bcm283x-rpi-i2c0mux_0_28.dtsi | 4 +
- .../boot/dts/bcm283x-rpi-i2c0mux_0_44.dtsi | 4 +
- arch/arm/boot/dts/bcm283x.dtsi | 26 +-
- arch/arm/boot/dts/overlays/Makefile | 248 ++
- arch/arm/boot/dts/overlays/README | 3530 +++++++++++++++++
- .../arm/boot/dts/overlays/act-led-overlay.dts | 27 +
- .../boot/dts/overlays/adafruit18-overlay.dts | 55 +
- .../dts/overlays/adau1977-adc-overlay.dts | 40 +
- .../dts/overlays/adau7002-simple-overlay.dts | 52 +
- .../arm/boot/dts/overlays/ads1015-overlay.dts | 98 +
- .../arm/boot/dts/overlays/ads1115-overlay.dts | 103 +
- .../arm/boot/dts/overlays/ads7846-overlay.dts | 89 +
- .../boot/dts/overlays/adv7282m-overlay.dts | 65 +
- .../boot/dts/overlays/adv728x-m-overlay.dts | 37 +
- .../overlays/akkordion-iqdacplus-overlay.dts | 49 +
- .../allo-boss-dac-pcm512x-audio-overlay.dts | 59 +
- .../overlays/allo-boss2-dac-audio-overlay.dts | 57 +
- .../dts/overlays/allo-digione-overlay.dts | 44 +
- .../allo-katana-dac-audio-overlay.dts | 57 +
- .../allo-piano-dac-pcm512x-audio-overlay.dts | 54 +
- ...o-piano-dac-plus-pcm512x-audio-overlay.dts | 57 +
- arch/arm/boot/dts/overlays/anyspi-overlay.dts | 205 +
- .../boot/dts/overlays/apds9960-overlay.dts | 57 +
- .../boot/dts/overlays/applepi-dac-overlay.dts | 57 +
- .../boot/dts/overlays/at86rf233-overlay.dts | 57 +
- .../overlays/audioinjector-addons-overlay.dts | 60 +
- ...dioinjector-isolated-soundcard-overlay.dts | 55 +
- .../overlays/audioinjector-ultra-overlay.dts | 71 +
- .../audioinjector-wm8731-audio-overlay.dts | 39 +
- .../dts/overlays/audiosense-pi-overlay.dts | 82 +
- .../boot/dts/overlays/audremap-overlay.dts | 42 +
- .../boot/dts/overlays/balena-fin-overlay.dts | 125 +
- .../arm/boot/dts/overlays/cap1106-overlay.dts | 52 +
- .../boot/dts/overlays/chipdip-dac-overlay.dts | 46 +
- arch/arm/boot/dts/overlays/cma-overlay.dts | 36 +
- arch/arm/boot/dts/overlays/dht11-overlay.dts | 41 +
- .../dts/overlays/dionaudio-loco-overlay.dts | 39 +
- .../overlays/dionaudio-loco-v2-overlay.dts | 49 +
- .../boot/dts/overlays/disable-bt-overlay.dts | 64 +
- .../dts/overlays/disable-wifi-overlay.dts | 20 +
- arch/arm/boot/dts/overlays/dpi18-overlay.dts | 39 +
- .../boot/dts/overlays/dpi18cpadhi-overlay.dts | 26 +
- arch/arm/boot/dts/overlays/dpi24-overlay.dts | 39 +
- arch/arm/boot/dts/overlays/draws-overlay.dts | 208 +
- .../arm/boot/dts/overlays/dwc-otg-overlay.dts | 14 +
- arch/arm/boot/dts/overlays/dwc2-overlay.dts | 26 +
- .../boot/dts/overlays/edt-ft5406-overlay.dts | 10 +
- arch/arm/boot/dts/overlays/edt-ft5406.dtsi | 55 +
- .../boot/dts/overlays/enc28j60-overlay.dts | 53 +
- .../dts/overlays/enc28j60-spi2-overlay.dts | 47 +
- .../arm/boot/dts/overlays/exc3000-overlay.dts | 48 +
- .../boot/dts/overlays/fe-pi-audio-overlay.dts | 70 +
- .../boot/dts/overlays/fsm-demo-overlay.dts | 104 +
- .../boot/dts/overlays/ghost-amp-overlay.dts | 145 +
- arch/arm/boot/dts/overlays/goodix-overlay.dts | 46 +
- .../googlevoicehat-soundcard-overlay.dts | 49 +
- .../boot/dts/overlays/gpio-fan-overlay.dts | 79 +
- .../arm/boot/dts/overlays/gpio-ir-overlay.dts | 49 +
- .../boot/dts/overlays/gpio-ir-tx-overlay.dts | 36 +
- .../boot/dts/overlays/gpio-key-overlay.dts | 48 +
- .../boot/dts/overlays/gpio-led-overlay.dts | 97 +
- .../overlays/gpio-no-bank0-irq-overlay.dts | 14 +
- .../boot/dts/overlays/gpio-no-irq-overlay.dts | 14 +
- .../dts/overlays/gpio-poweroff-overlay.dts | 37 +
- .../dts/overlays/gpio-shutdown-overlay.dts | 86 +
- .../boot/dts/overlays/hd44780-lcd-overlay.dts | 46 +
- .../hdmi-backlight-hwhack-gpio-overlay.dts | 47 +
- .../dts/overlays/hifiberry-amp-overlay.dts | 39 +
- .../dts/overlays/hifiberry-amp100-overlay.dts | 64 +
- .../dts/overlays/hifiberry-dac-overlay.dts | 34 +
- .../overlays/hifiberry-dacplus-overlay.dts | 65 +
- .../overlays/hifiberry-dacplusadc-overlay.dts | 72 +
- .../hifiberry-dacplusadcpro-overlay.dts | 65 +
- .../overlays/hifiberry-dacplusdsp-overlay.dts | 34 +
- .../overlays/hifiberry-dacplushd-overlay.dts | 106 +
- .../dts/overlays/hifiberry-digi-overlay.dts | 41 +
- .../overlays/hifiberry-digi-pro-overlay.dts | 43 +
- .../boot/dts/overlays/highperi-overlay.dts | 63 +
- arch/arm/boot/dts/overlays/hy28a-overlay.dts | 93 +
- .../boot/dts/overlays/hy28b-2017-overlay.dts | 152 +
- arch/arm/boot/dts/overlays/hy28b-overlay.dts | 148 +
- .../boot/dts/overlays/i-sabre-q2m-overlay.dts | 39 +
- .../boot/dts/overlays/i2c-bcm2708-overlay.dts | 13 +
- .../boot/dts/overlays/i2c-gpio-overlay.dts | 47 +
- .../arm/boot/dts/overlays/i2c-mux-overlay.dts | 139 +
- .../dts/overlays/i2c-pwm-pca9685a-overlay.dts | 26 +
- .../arm/boot/dts/overlays/i2c-rtc-common.dtsi | 323 ++
- .../dts/overlays/i2c-rtc-gpio-overlay.dts | 31 +
- .../arm/boot/dts/overlays/i2c-rtc-overlay.dts | 34 +
- .../boot/dts/overlays/i2c-sensor-overlay.dts | 320 ++
- arch/arm/boot/dts/overlays/i2c0-overlay.dts | 83 +
- arch/arm/boot/dts/overlays/i2c1-overlay.dts | 44 +
- arch/arm/boot/dts/overlays/i2c3-overlay.dts | 36 +
- arch/arm/boot/dts/overlays/i2c4-overlay.dts | 36 +
- arch/arm/boot/dts/overlays/i2c5-overlay.dts | 36 +
- arch/arm/boot/dts/overlays/i2c6-overlay.dts | 36 +
- .../dts/overlays/i2s-gpio28-31-overlay.dts | 18 +
- .../boot/dts/overlays/ilitek251x-overlay.dts | 45 +
- arch/arm/boot/dts/overlays/imx219-overlay.dts | 115 +
- arch/arm/boot/dts/overlays/imx290-overlay.dts | 32 +
- .../boot/dts/overlays/imx290_327-overlay.dtsi | 144 +
- arch/arm/boot/dts/overlays/imx378-overlay.dts | 10 +
- arch/arm/boot/dts/overlays/imx477-overlay.dts | 10 +
- .../boot/dts/overlays/imx477_378-overlay.dtsi | 110 +
- .../dts/overlays/iqaudio-codec-overlay.dts | 42 +
- .../boot/dts/overlays/iqaudio-dac-overlay.dts | 46 +
- .../dts/overlays/iqaudio-dacplus-overlay.dts | 49 +
- .../iqaudio-digi-wm8804-audio-overlay.dts | 47 +
- .../arm/boot/dts/overlays/irs1125-overlay.dts | 85 +
- .../dts/overlays/jedec-spi-nor-overlay.dts | 309 ++
- .../dts/overlays/justboom-both-overlay.dts | 65 +
- .../dts/overlays/justboom-dac-overlay.dts | 46 +
- .../dts/overlays/justboom-digi-overlay.dts | 41 +
- .../arm/boot/dts/overlays/ltc294x-overlay.dts | 86 +
- .../boot/dts/overlays/max98357a-overlay.dts | 84 +
- .../boot/dts/overlays/maxtherm-overlay.dts | 186 +
- .../boot/dts/overlays/mbed-dac-overlay.dts | 64 +
- .../boot/dts/overlays/mcp23017-overlay.dts | 69 +
- .../boot/dts/overlays/mcp23s17-overlay.dts | 732 ++++
- .../dts/overlays/mcp2515-can0-overlay.dts | 73 +
- .../dts/overlays/mcp2515-can1-overlay.dts | 73 +
- .../boot/dts/overlays/mcp251xfd-overlay.dts | 226 ++
- .../arm/boot/dts/overlays/mcp3008-overlay.dts | 205 +
- .../arm/boot/dts/overlays/mcp3202-overlay.dts | 205 +
- .../arm/boot/dts/overlays/mcp342x-overlay.dts | 164 +
- .../dts/overlays/media-center-overlay.dts | 134 +
- .../boot/dts/overlays/merus-amp-overlay.dts | 60 +
- .../boot/dts/overlays/midi-uart0-overlay.dts | 36 +
- .../boot/dts/overlays/midi-uart1-overlay.dts | 43 +
- .../boot/dts/overlays/midi-uart2-overlay.dts | 37 +
- .../boot/dts/overlays/midi-uart3-overlay.dts | 38 +
- .../boot/dts/overlays/midi-uart4-overlay.dts | 38 +
- .../boot/dts/overlays/midi-uart5-overlay.dts | 38 +
- .../boot/dts/overlays/minipitft13-overlay.dts | 70 +
- .../boot/dts/overlays/miniuart-bt-overlay.dts | 93 +
- arch/arm/boot/dts/overlays/mmc-overlay.dts | 46 +
- .../arm/boot/dts/overlays/mpu6050-overlay.dts | 29 +
- .../arm/boot/dts/overlays/mz61581-overlay.dts | 117 +
- arch/arm/boot/dts/overlays/ov5647-overlay.dts | 94 +
- arch/arm/boot/dts/overlays/ov7251-overlay.dts | 113 +
- arch/arm/boot/dts/overlays/ov9281-overlay.dts | 113 +
- arch/arm/boot/dts/overlays/overlay_map.dts | 158 +
- .../arm/boot/dts/overlays/papirus-overlay.dts | 89 +
- .../arm/boot/dts/overlays/pca953x-overlay.dts | 240 ++
- .../dts/overlays/pcie-32bit-dma-overlay.dts | 18 +
- arch/arm/boot/dts/overlays/pibell-overlay.dts | 81 +
- .../dts/overlays/pifacedigital-overlay.dts | 144 +
- .../arm/boot/dts/overlays/pifi-40-overlay.dts | 50 +
- .../boot/dts/overlays/pifi-dac-hd-overlay.dts | 49 +
- .../dts/overlays/pifi-dac-zero-overlay.dts | 49 +
- .../dts/overlays/pifi-mini-210-overlay.dts | 42 +
- arch/arm/boot/dts/overlays/piglow-overlay.dts | 97 +
- .../boot/dts/overlays/piscreen-overlay.dts | 102 +
- .../boot/dts/overlays/piscreen2r-overlay.dts | 106 +
- .../arm/boot/dts/overlays/pisound-overlay.dts | 120 +
- .../arm/boot/dts/overlays/pitft22-overlay.dts | 69 +
- .../overlays/pitft28-capacitive-overlay.dts | 91 +
- .../overlays/pitft28-resistive-overlay.dts | 119 +
- .../overlays/pitft35-resistive-overlay.dts | 119 +
- .../boot/dts/overlays/pps-gpio-overlay.dts | 38 +
- .../boot/dts/overlays/pwm-2chan-overlay.dts | 49 +
- .../boot/dts/overlays/pwm-ir-tx-overlay.dts | 40 +
- arch/arm/boot/dts/overlays/pwm-overlay.dts | 45 +
- .../arm/boot/dts/overlays/qca7000-overlay.dts | 55 +
- .../dts/overlays/qca7000-uart0-overlay.dts | 46 +
- .../dts/overlays/rotary-encoder-overlay.dts | 59 +
- .../dts/overlays/rpi-backlight-overlay.dts | 21 +
- .../overlays/rpi-cirrus-wm5102-overlay.dts | 172 +
- .../arm/boot/dts/overlays/rpi-dac-overlay.dts | 34 +
- .../boot/dts/overlays/rpi-display-overlay.dts | 91 +
- .../boot/dts/overlays/rpi-ft5406-overlay.dts | 25 +
- .../arm/boot/dts/overlays/rpi-poe-overlay.dts | 102 +
- .../dts/overlays/rpi-poe-plus-overlay.dts | 23 +
- .../boot/dts/overlays/rpi-proto-overlay.dts | 39 +
- .../boot/dts/overlays/rpi-sense-overlay.dts | 47 +
- arch/arm/boot/dts/overlays/rpi-tv-overlay.dts | 34 +
- .../boot/dts/overlays/rpivid-v4l2-overlay.dts | 50 +
- .../rra-digidac1-wm8741-audio-overlay.dts | 49 +
- .../boot/dts/overlays/sainsmart18-overlay.dts | 52 +
- .../dts/overlays/sc16is750-i2c-overlay.dts | 43 +
- .../dts/overlays/sc16is752-i2c-overlay.dts | 43 +
- .../dts/overlays/sc16is752-spi0-overlay.dts | 49 +
- .../dts/overlays/sc16is752-spi1-overlay.dts | 67 +
- arch/arm/boot/dts/overlays/sdhost-overlay.dts | 38 +
- arch/arm/boot/dts/overlays/sdio-overlay.dts | 77 +
- .../overlays/seeed-can-fd-hat-v1-overlay.dts | 138 +
- .../overlays/seeed-can-fd-hat-v2-overlay.dts | 117 +
- .../boot/dts/overlays/sh1106-spi-overlay.dts | 84 +
- .../boot/dts/overlays/si446x-spi0-overlay.dts | 53 +
- .../arm/boot/dts/overlays/smi-dev-overlay.dts | 20 +
- .../boot/dts/overlays/smi-nand-overlay.dts | 66 +
- arch/arm/boot/dts/overlays/smi-overlay.dts | 37 +
- .../dts/overlays/spi-gpio35-39-overlay.dts | 31 +
- .../dts/overlays/spi-gpio40-45-overlay.dts | 36 +
- .../arm/boot/dts/overlays/spi-rtc-overlay.dts | 75 +
- .../boot/dts/overlays/spi0-1cs-overlay.dts | 42 +
- .../boot/dts/overlays/spi0-2cs-overlay.dts | 37 +
- .../boot/dts/overlays/spi1-1cs-overlay.dts | 57 +
- .../boot/dts/overlays/spi1-2cs-overlay.dts | 69 +
- .../boot/dts/overlays/spi1-3cs-overlay.dts | 81 +
- .../boot/dts/overlays/spi2-1cs-overlay.dts | 57 +
- .../boot/dts/overlays/spi2-2cs-overlay.dts | 69 +
- .../boot/dts/overlays/spi2-3cs-overlay.dts | 81 +
- .../boot/dts/overlays/spi3-1cs-overlay.dts | 44 +
- .../boot/dts/overlays/spi3-2cs-overlay.dts | 56 +
- .../boot/dts/overlays/spi4-1cs-overlay.dts | 44 +
- .../boot/dts/overlays/spi4-2cs-overlay.dts | 56 +
- .../boot/dts/overlays/spi5-1cs-overlay.dts | 44 +
- .../boot/dts/overlays/spi5-2cs-overlay.dts | 56 +
- .../boot/dts/overlays/spi6-1cs-overlay.dts | 44 +
- .../boot/dts/overlays/spi6-2cs-overlay.dts | 56 +
- .../arm/boot/dts/overlays/ssd1306-overlay.dts | 36 +
- .../boot/dts/overlays/ssd1306-spi-overlay.dts | 84 +
- .../boot/dts/overlays/ssd1331-spi-overlay.dts | 83 +
- .../boot/dts/overlays/ssd1351-spi-overlay.dts | 83 +
- .../dts/overlays/superaudioboard-overlay.dts | 73 +
- arch/arm/boot/dts/overlays/sx150x-overlay.dts | 1706 ++++++++
- .../dts/overlays/tc358743-audio-overlay.dts | 52 +
- .../boot/dts/overlays/tc358743-overlay.dts | 107 +
- .../boot/dts/overlays/tinylcd35-overlay.dts | 222 ++
- .../boot/dts/overlays/tpm-slb9670-overlay.dts | 44 +
- arch/arm/boot/dts/overlays/uart0-overlay.dts | 32 +
- arch/arm/boot/dts/overlays/uart1-overlay.dts | 38 +
- arch/arm/boot/dts/overlays/uart2-overlay.dts | 27 +
- arch/arm/boot/dts/overlays/uart3-overlay.dts | 27 +
- arch/arm/boot/dts/overlays/uart4-overlay.dts | 27 +
- arch/arm/boot/dts/overlays/uart5-overlay.dts | 27 +
- arch/arm/boot/dts/overlays/udrc-overlay.dts | 128 +
- .../dts/overlays/ugreen-dabboard-overlay.dts | 49 +
- .../boot/dts/overlays/upstream-overlay.dts | 101 +
- .../dts/overlays/upstream-pi4-overlay.dts | 137 +
- .../dts/overlays/vc4-fkms-v3d-overlay.dts | 40 +
- .../dts/overlays/vc4-fkms-v3d-pi4-overlay.dts | 44 +
- .../vc4-kms-dpi-at056tn53v1-overlay.dts | 44 +
- .../overlays/vc4-kms-dsi-7inch-overlay.dts | 118 +
- .../vc4-kms-dsi-lt070me05000-overlay.dts | 69 +
- .../vc4-kms-dsi-lt070me05000-v2-overlay.dts | 64 +
- .../overlays/vc4-kms-kippah-7inch-overlay.dts | 43 +
- .../boot/dts/overlays/vc4-kms-v3d-overlay.dts | 123 +
- .../dts/overlays/vc4-kms-v3d-pi4-overlay.dts | 197 +
- .../dts/overlays/vc4-kms-vga666-overlay.dts | 100 +
- arch/arm/boot/dts/overlays/vga666-overlay.dts | 30 +
- .../arm/boot/dts/overlays/w1-gpio-overlay.dts | 40 +
- .../dts/overlays/w1-gpio-pullup-overlay.dts | 42 +
- arch/arm/boot/dts/overlays/w5500-overlay.dts | 63 +
- .../arm/boot/dts/overlays/wittypi-overlay.dts | 44 +
- .../dts/overlays/wm8960-soundcard-overlay.dts | 82 +
- arch/arm64/boot/dts/Makefile | 2 +
- arch/arm64/boot/dts/broadcom/Makefile | 12 +
- .../boot/dts/broadcom/bcm2710-rpi-2-b.dts | 1 +
- .../dts/broadcom/bcm2710-rpi-3-b-plus.dts | 1 +
- .../boot/dts/broadcom/bcm2710-rpi-3-b.dts | 1 +
- .../boot/dts/broadcom/bcm2710-rpi-cm3.dts | 1 +
- .../boot/dts/broadcom/bcm2711-rpi-4-b.dts | 3 +-
- .../boot/dts/broadcom/bcm2711-rpi-400.dts | 3 +-
- .../boot/dts/broadcom/bcm2711-rpi-cm4.dts | 1 +
- .../dts/broadcom/bcm283x-rpi-csi1-2lane.dtsi | 1 +
- .../dts/broadcom/bcm283x-rpi-lan7515.dtsi | 1 +
- arch/arm64/boot/dts/overlays | 1 +
- scripts/Makefile.dtbinst | 3 +-
- scripts/Makefile.lib | 13 +
- 308 files changed, 27244 insertions(+), 48 deletions(-)
- create mode 100644 arch/arm/boot/dts/bcm2708-rpi-b-plus.dts
- create mode 100644 arch/arm/boot/dts/bcm2708-rpi-b-rev1.dts
- create mode 100644 arch/arm/boot/dts/bcm2708-rpi-b.dts
- create mode 100644 arch/arm/boot/dts/bcm2708-rpi-bt.dtsi
- create mode 100644 arch/arm/boot/dts/bcm2708-rpi-cm.dts
- create mode 100644 arch/arm/boot/dts/bcm2708-rpi-cm.dtsi
- create mode 100644 arch/arm/boot/dts/bcm2708-rpi-zero-w.dts
- create mode 100644 arch/arm/boot/dts/bcm2708-rpi-zero.dts
- create mode 100644 arch/arm/boot/dts/bcm2708-rpi.dtsi
- create mode 100644 arch/arm/boot/dts/bcm2708.dtsi
- create mode 100644 arch/arm/boot/dts/bcm2709-rpi-2-b.dts
- create mode 100644 arch/arm/boot/dts/bcm2709-rpi.dtsi
- create mode 100644 arch/arm/boot/dts/bcm2709.dtsi
- create mode 100644 arch/arm/boot/dts/bcm270x-rpi.dtsi
- create mode 100644 arch/arm/boot/dts/bcm270x.dtsi
- create mode 100644 arch/arm/boot/dts/bcm2710-rpi-2-b.dts
- create mode 100644 arch/arm/boot/dts/bcm2710-rpi-3-b-plus.dts
- create mode 100644 arch/arm/boot/dts/bcm2710-rpi-3-b.dts
- create mode 100644 arch/arm/boot/dts/bcm2710-rpi-cm3.dts
- create mode 100644 arch/arm/boot/dts/bcm2710.dtsi
- create mode 100644 arch/arm/boot/dts/bcm2711-rpi-cm4.dts
- create mode 100644 arch/arm/boot/dts/bcm2711-rpi-ds.dtsi
- create mode 100644 arch/arm/boot/dts/bcm271x-rpi-bt.dtsi
- create mode 100644 arch/arm/boot/dts/bcm283x-rpi-cam1-regulator.dtsi
- create mode 100644 arch/arm/boot/dts/bcm283x-rpi-csi0-2lane.dtsi
- create mode 100644 arch/arm/boot/dts/bcm283x-rpi-csi1-2lane.dtsi
- create mode 100644 arch/arm/boot/dts/bcm283x-rpi-csi1-4lane.dtsi
- create mode 100644 arch/arm/boot/dts/bcm283x-rpi-i2c0mux_0_28.dtsi
- create mode 100644 arch/arm/boot/dts/bcm283x-rpi-i2c0mux_0_44.dtsi
- create mode 100644 arch/arm/boot/dts/overlays/Makefile
- create mode 100644 arch/arm/boot/dts/overlays/README
- create mode 100644 arch/arm/boot/dts/overlays/act-led-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/adafruit18-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/adau1977-adc-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/adau7002-simple-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/ads1015-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/ads1115-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/ads7846-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/adv7282m-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/adv728x-m-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/akkordion-iqdacplus-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/allo-boss-dac-pcm512x-audio-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/allo-boss2-dac-audio-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/allo-digione-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/allo-katana-dac-audio-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/allo-piano-dac-pcm512x-audio-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/allo-piano-dac-plus-pcm512x-audio-overlay.dts
- create mode 100755 arch/arm/boot/dts/overlays/anyspi-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/apds9960-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/applepi-dac-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/at86rf233-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/audioinjector-addons-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/audioinjector-isolated-soundcard-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/audioinjector-ultra-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/audioinjector-wm8731-audio-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/audiosense-pi-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/audremap-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/balena-fin-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/cap1106-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/chipdip-dac-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/cma-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/dht11-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/dionaudio-loco-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/dionaudio-loco-v2-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/disable-bt-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/disable-wifi-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/dpi18-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/dpi18cpadhi-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/dpi24-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/draws-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/dwc-otg-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/dwc2-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/edt-ft5406-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/edt-ft5406.dtsi
- create mode 100644 arch/arm/boot/dts/overlays/enc28j60-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/enc28j60-spi2-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/exc3000-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/fe-pi-audio-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/fsm-demo-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/ghost-amp-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/goodix-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/googlevoicehat-soundcard-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/gpio-fan-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/gpio-ir-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/gpio-ir-tx-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/gpio-key-overlay.dts
- create mode 100755 arch/arm/boot/dts/overlays/gpio-led-overlay.dts
- create mode 100755 arch/arm/boot/dts/overlays/gpio-no-bank0-irq-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/gpio-no-irq-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/gpio-poweroff-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/gpio-shutdown-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/hd44780-lcd-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/hdmi-backlight-hwhack-gpio-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/hifiberry-amp-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/hifiberry-amp100-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/hifiberry-dac-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/hifiberry-dacplusadc-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/hifiberry-dacplusadcpro-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/hifiberry-dacplusdsp-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/hifiberry-dacplushd-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/hifiberry-digi-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/hifiberry-digi-pro-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/highperi-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/hy28a-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/hy28b-2017-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/hy28b-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/i-sabre-q2m-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/i2c-bcm2708-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/i2c-mux-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/i2c-pwm-pca9685a-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/i2c-rtc-common.dtsi
- create mode 100644 arch/arm/boot/dts/overlays/i2c-rtc-gpio-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
- create mode 100755 arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/i2c0-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/i2c1-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/i2c3-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/i2c4-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/i2c5-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/i2c6-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/i2s-gpio28-31-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/ilitek251x-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/imx219-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/imx290-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/imx290_327-overlay.dtsi
- create mode 100644 arch/arm/boot/dts/overlays/imx378-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/imx477-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/imx477_378-overlay.dtsi
- create mode 100644 arch/arm/boot/dts/overlays/iqaudio-codec-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/iqaudio-dac-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/iqaudio-dacplus-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/iqaudio-digi-wm8804-audio-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/irs1125-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/jedec-spi-nor-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/justboom-both-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/justboom-dac-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/justboom-digi-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/ltc294x-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/max98357a-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/maxtherm-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/mbed-dac-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/mcp23017-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/mcp23s17-overlay.dts
- create mode 100755 arch/arm/boot/dts/overlays/mcp2515-can0-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/mcp2515-can1-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/mcp251xfd-overlay.dts
- create mode 100755 arch/arm/boot/dts/overlays/mcp3008-overlay.dts
- create mode 100755 arch/arm/boot/dts/overlays/mcp3202-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/mcp342x-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/media-center-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/merus-amp-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/midi-uart0-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/midi-uart1-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/midi-uart2-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/midi-uart3-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/midi-uart4-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/midi-uart5-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/minipitft13-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/miniuart-bt-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/mmc-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/mpu6050-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/mz61581-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/ov5647-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/ov7251-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/ov9281-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/overlay_map.dts
- create mode 100644 arch/arm/boot/dts/overlays/papirus-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/pca953x-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/pcie-32bit-dma-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/pibell-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/pifacedigital-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/pifi-40-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/pifi-dac-hd-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/pifi-dac-zero-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/pifi-mini-210-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/piglow-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/piscreen-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/piscreen2r-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/pisound-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/pitft22-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/pitft28-capacitive-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/pitft28-resistive-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/pitft35-resistive-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/pps-gpio-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/pwm-2chan-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/pwm-ir-tx-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/pwm-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/qca7000-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/qca7000-uart0-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/rotary-encoder-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/rpi-backlight-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/rpi-cirrus-wm5102-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/rpi-dac-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/rpi-display-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/rpi-poe-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/rpi-poe-plus-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/rpi-proto-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/rpi-sense-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/rpi-tv-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/rpivid-v4l2-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/rra-digidac1-wm8741-audio-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/sainsmart18-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/sc16is750-i2c-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/sc16is752-i2c-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/sc16is752-spi0-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/sc16is752-spi1-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/sdhost-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/sdio-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/seeed-can-fd-hat-v1-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/seeed-can-fd-hat-v2-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/sh1106-spi-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/si446x-spi0-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/smi-dev-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/smi-nand-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/smi-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/spi-gpio35-39-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/spi-gpio40-45-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/spi-rtc-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/spi0-1cs-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/spi0-2cs-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/spi1-1cs-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/spi1-2cs-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/spi1-3cs-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/spi2-1cs-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/spi2-2cs-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/spi2-3cs-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/spi3-1cs-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/spi3-2cs-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/spi4-1cs-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/spi4-2cs-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/spi5-1cs-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/spi5-2cs-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/spi6-1cs-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/spi6-2cs-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/ssd1306-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/ssd1306-spi-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/ssd1331-spi-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/ssd1351-spi-overlay.dts
- create mode 100755 arch/arm/boot/dts/overlays/superaudioboard-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/sx150x-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/tc358743-audio-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/tc358743-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/tinylcd35-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/tpm-slb9670-overlay.dts
- create mode 100755 arch/arm/boot/dts/overlays/uart0-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/uart1-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/uart2-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/uart3-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/uart4-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/uart5-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/udrc-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/ugreen-dabboard-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/upstream-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/upstream-pi4-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/vc4-fkms-v3d-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/vc4-fkms-v3d-pi4-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/vc4-kms-dpi-at056tn53v1-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/vc4-kms-dsi-7inch-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/vc4-kms-dsi-lt070me05000-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/vc4-kms-dsi-lt070me05000-v2-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/vc4-kms-kippah-7inch-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/vc4-kms-v3d-pi4-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/vc4-kms-vga666-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/vga666-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/w1-gpio-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/w1-gpio-pullup-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/w5500-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/wittypi-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/wm8960-soundcard-overlay.dts
- create mode 100644 arch/arm64/boot/dts/broadcom/bcm2710-rpi-2-b.dts
- create mode 100644 arch/arm64/boot/dts/broadcom/bcm2710-rpi-3-b-plus.dts
- create mode 100644 arch/arm64/boot/dts/broadcom/bcm2710-rpi-3-b.dts
- create mode 100644 arch/arm64/boot/dts/broadcom/bcm2710-rpi-cm3.dts
- create mode 100644 arch/arm64/boot/dts/broadcom/bcm2711-rpi-cm4.dts
- create mode 120000 arch/arm64/boot/dts/broadcom/bcm283x-rpi-csi1-2lane.dtsi
- create mode 120000 arch/arm64/boot/dts/broadcom/bcm283x-rpi-lan7515.dtsi
- create mode 120000 arch/arm64/boot/dts/overlays
- diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
- index 27ca1ca6e827..ab6a5c6ea5ee 100644
- --- a/arch/arm/boot/dts/Makefile
- +++ b/arch/arm/boot/dts/Makefile
- @@ -1,4 +1,11 @@
- # SPDX-License-Identifier: GPL-2.0
- +
- +dtb-$(CONFIG_ARCH_BCM2835) += \
- + bcm2708-rpi-b-rev1.dtb \
- + bcm2708-rpi-cm.dtb \
- + bcm2710-rpi-cm3.dtb \
- + bcm2711-rpi-cm4.dtb
- +
- dtb-$(CONFIG_ARCH_ALPINE) += \
- alpine-db.dtb
- dtb-$(CONFIG_MACH_ARTPEC6) += \
- @@ -1499,3 +1506,13 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
- aspeed-bmc-portwell-neptune.dtb \
- aspeed-bmc-quanta-q71l.dtb \
- aspeed-bmc-supermicro-x11spi.dtb
- +
- +targets += dtbs dtbs_install
- +targets += $(dtb-y)
- +
- +subdir-y := overlays
- +
- +# Enable fixups to support overlays on BCM2835 platforms
- +ifeq ($(CONFIG_ARCH_BCM2835),y)
- + DTC_FLAGS += -@
- +endif
- diff --git a/arch/arm/boot/dts/bcm2708-rpi-b-plus.dts b/arch/arm/boot/dts/bcm2708-rpi-b-plus.dts
- new file mode 100644
- index 000000000000..e42cba84ab0e
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2708-rpi-b-plus.dts
- @@ -0,0 +1,129 @@
- +/dts-v1/;
- +
- +#include "bcm2708.dtsi"
- +#include "bcm2708-rpi.dtsi"
- +#include "bcm283x-rpi-smsc9514.dtsi"
- +#include "bcm283x-rpi-csi1-2lane.dtsi"
- +#include "bcm283x-rpi-i2c0mux_0_28.dtsi"
- +#include "bcm283x-rpi-cam1-regulator.dtsi"
- +
- +/ {
- + compatible = "raspberrypi,model-b-plus", "brcm,bcm2835";
- + model = "Raspberry Pi Model B+";
- +};
- +
- +&gpio {
- + spi0_pins: spi0_pins {
- + brcm,pins = <9 10 11>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + spi0_cs_pins: spi0_cs_pins {
- + brcm,pins = <8 7>;
- + brcm,function = <1>; /* output */
- + };
- +
- + i2c0_pins: i2c0 {
- + brcm,pins = <0 1>;
- + brcm,function = <4>;
- + };
- +
- + i2c1_pins: i2c1 {
- + brcm,pins = <2 3>;
- + brcm,function = <4>;
- + };
- +
- + i2s_pins: i2s {
- + brcm,pins = <18 19 20 21>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + audio_pins: audio_pins {
- + brcm,pins = <40 45>;
- + brcm,function = <4>;
- + };
- +};
- +
- +&uart0 {
- + status = "okay";
- +};
- +
- +&spi0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
- + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
- +
- + spidev0: spidev@0{
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +
- + spidev1: spidev@1{
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +};
- +
- +&i2c0if {
- + clock-frequency = <100000>;
- +};
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +&i2c2 {
- + clock-frequency = <100000>;
- +};
- +
- +&i2s {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2s_pins>;
- +};
- +
- +&leds {
- + act_led: led-act {
- + label = "led0";
- + linux,default-trigger = "mmc0";
- + gpios = <&gpio 47 0>;
- + };
- +
- + pwr_led: led-pwr {
- + label = "led1";
- + linux,default-trigger = "input";
- + gpios = <&gpio 35 0>;
- + };
- +};
- +
- +&hdmi {
- + hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
- +};
- +
- +&audio {
- + pinctrl-names = "default";
- + pinctrl-0 = <&audio_pins>;
- +};
- +
- +&cam1_reg {
- + gpio = <&gpio 41 GPIO_ACTIVE_HIGH>;
- +};
- +
- +/ {
- + __overrides__ {
- + act_led_gpio = <&act_led>,"gpios:4";
- + act_led_activelow = <&act_led>,"gpios:8";
- + act_led_trigger = <&act_led>,"linux,default-trigger";
- +
- + pwr_led_gpio = <&pwr_led>,"gpios:4";
- + pwr_led_activelow = <&pwr_led>,"gpios:8";
- + pwr_led_trigger = <&pwr_led>,"linux,default-trigger";
- + };
- +};
- diff --git a/arch/arm/boot/dts/bcm2708-rpi-b-rev1.dts b/arch/arm/boot/dts/bcm2708-rpi-b-rev1.dts
- new file mode 100644
- index 000000000000..4ea1e68f5e29
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2708-rpi-b-rev1.dts
- @@ -0,0 +1,132 @@
- +/dts-v1/;
- +
- +#include "bcm2708.dtsi"
- +#include "bcm2708-rpi.dtsi"
- +#include "bcm283x-rpi-smsc9512.dtsi"
- +#include "bcm283x-rpi-csi1-2lane.dtsi"
- +#include "bcm283x-rpi-cam1-regulator.dtsi"
- +
- +/ {
- + compatible = "raspberrypi,model-b", "brcm,bcm2835";
- + model = "Raspberry Pi Model B";
- +};
- +
- +&gpio {
- + spi0_pins: spi0_pins {
- + brcm,pins = <9 10 11>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + spi0_cs_pins: spi0_cs_pins {
- + brcm,pins = <8 7>;
- + brcm,function = <1>; /* output */
- + };
- +
- + i2c0_pins: i2c0 {
- + brcm,pins = <0 1>;
- + brcm,function = <4>;
- + };
- +
- + i2c1_pins: i2c1 {
- + brcm,pins = <2 3>;
- + brcm,function = <4>;
- + };
- +
- + i2s_pins: i2s {
- + brcm,pins = <28 29 30 31>;
- + brcm,function = <6>; /* alt2 */
- + };
- +
- + audio_pins: audio_pins {
- + brcm,pins = <40 45>;
- + brcm,function = <4>;
- + };
- +};
- +
- +&uart0 {
- + status = "okay";
- +};
- +
- +&spi0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
- + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
- +
- + spidev0: spidev@0{
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +
- + spidev1: spidev@1{
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +};
- +
- +/delete-node/ &i2c0mux;
- +
- +i2c0: &i2c0if {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c0_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +i2c_csi_dsi: &i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +/ {
- + aliases {
- + i2c0 = &i2c0;
- + };
- +
- + __overrides__ {
- + i2c0 = <&i2c0>, "status";
- + };
- +};
- +
- +&i2c2 {
- + clock-frequency = <100000>;
- +};
- +
- +&i2s {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2s_pins>;
- +};
- +
- +&leds {
- + act_led: led-act {
- + label = "led0";
- + linux,default-trigger = "mmc0";
- + gpios = <&gpio 16 1>;
- + };
- +};
- +
- +&hdmi {
- + hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>;
- +};
- +
- +&audio {
- + pinctrl-names = "default";
- + pinctrl-0 = <&audio_pins>;
- +};
- +
- +&cam1_reg {
- + gpio = <&gpio 27 GPIO_ACTIVE_HIGH>;
- +};
- +
- +/ {
- + __overrides__ {
- + act_led_gpio = <&act_led>,"gpios:4";
- + act_led_activelow = <&act_led>,"gpios:8";
- + act_led_trigger = <&act_led>,"linux,default-trigger";
- + };
- +};
- diff --git a/arch/arm/boot/dts/bcm2708-rpi-b.dts b/arch/arm/boot/dts/bcm2708-rpi-b.dts
- new file mode 100644
- index 000000000000..a152c1c8e648
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2708-rpi-b.dts
- @@ -0,0 +1,119 @@
- +/dts-v1/;
- +
- +#include "bcm2708.dtsi"
- +#include "bcm2708-rpi.dtsi"
- +#include "bcm283x-rpi-smsc9512.dtsi"
- +#include "bcm283x-rpi-csi1-2lane.dtsi"
- +#include "bcm283x-rpi-i2c0mux_0_28.dtsi"
- +#include "bcm283x-rpi-cam1-regulator.dtsi"
- +
- +/ {
- + compatible = "raspberrypi,model-b", "brcm,bcm2835";
- + model = "Raspberry Pi Model B";
- +};
- +
- +&gpio {
- + spi0_pins: spi0_pins {
- + brcm,pins = <9 10 11>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + spi0_cs_pins: spi0_cs_pins {
- + brcm,pins = <8 7>;
- + brcm,function = <1>; /* output */
- + };
- +
- + i2c0_pins: i2c0 {
- + brcm,pins = <0 1>;
- + brcm,function = <4>;
- + };
- +
- + i2c1_pins: i2c1 {
- + brcm,pins = <2 3>;
- + brcm,function = <4>;
- + };
- +
- + i2s_pins: i2s {
- + brcm,pins = <28 29 30 31>;
- + brcm,function = <6>; /* alt2 */
- + };
- +
- + audio_pins: audio_pins {
- + brcm,pins = <40 45>;
- + brcm,function = <4>;
- + };
- +};
- +
- +&uart0 {
- + status = "okay";
- +};
- +
- +&spi0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
- + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
- +
- + spidev0: spidev@0{
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +
- + spidev1: spidev@1{
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +};
- +
- +&i2c0if {
- + clock-frequency = <100000>;
- +};
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +&i2c2 {
- + clock-frequency = <100000>;
- +};
- +
- +&i2s {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2s_pins>;
- +};
- +
- +&leds {
- + act_led: led-act {
- + label = "led0";
- + linux,default-trigger = "mmc0";
- + gpios = <&gpio 16 1>;
- + };
- +};
- +
- +&hdmi {
- + hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>;
- +};
- +
- +&audio {
- + pinctrl-names = "default";
- + pinctrl-0 = <&audio_pins>;
- +};
- +
- +&cam1_reg {
- + gpio = <&gpio 21 GPIO_ACTIVE_HIGH>;
- +};
- +
- +/ {
- + __overrides__ {
- + act_led_gpio = <&act_led>,"gpios:4";
- + act_led_activelow = <&act_led>,"gpios:8";
- + act_led_trigger = <&act_led>,"linux,default-trigger";
- + };
- +};
- diff --git a/arch/arm/boot/dts/bcm2708-rpi-bt.dtsi b/arch/arm/boot/dts/bcm2708-rpi-bt.dtsi
- new file mode 100644
- index 000000000000..a18f80af97d3
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2708-rpi-bt.dtsi
- @@ -0,0 +1,26 @@
- +// SPDX-License-Identifier: GPL-2.0
- +
- +&uart0 {
- + bt: bluetooth {
- + compatible = "brcm,bcm43438-bt";
- + max-speed = <3000000>;
- + shutdown-gpios = <&gpio 45 GPIO_ACTIVE_HIGH>;
- + status = "disabled";
- + };
- +};
- +
- +&uart1 {
- + minibt: bluetooth {
- + compatible = "brcm,bcm43438-bt";
- + max-speed = <460800>;
- + shutdown-gpios = <&gpio 45 GPIO_ACTIVE_HIGH>;
- + status = "disabled";
- + };
- +};
- +
- +/ {
- + __overrides__ {
- + krnbt = <&bt>,"status";
- + krnbt_baudrate = <&bt>,"max-speed:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/bcm2708-rpi-cm.dts b/arch/arm/boot/dts/bcm2708-rpi-cm.dts
- new file mode 100644
- index 000000000000..f61e3418425a
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2708-rpi-cm.dts
- @@ -0,0 +1,112 @@
- +/dts-v1/;
- +
- +#include "bcm2708-rpi-cm.dtsi"
- +#include "bcm283x-rpi-csi0-2lane.dtsi"
- +#include "bcm283x-rpi-csi1-4lane.dtsi"
- +#include "bcm283x-rpi-i2c0mux_0_28.dtsi"
- +
- +/ {
- + compatible = "raspberrypi,compute-module", "brcm,bcm2835";
- + model = "Raspberry Pi Compute Module";
- +
- + cam1_reg: cam1_reg {
- + compatible = "regulator-fixed";
- + regulator-name = "cam1-regulator";
- + gpio = <&gpio 2 GPIO_ACTIVE_HIGH>;
- + enable-active-high;
- + status = "disabled";
- + };
- + cam0_reg: cam0_reg {
- + compatible = "regulator-fixed";
- + regulator-name = "cam0-regulator";
- + gpio = <&gpio 30 GPIO_ACTIVE_HIGH>;
- + enable-active-high;
- + status = "disabled";
- + };
- +};
- +
- +&uart0 {
- + status = "okay";
- +};
- +
- +&gpio {
- + spi0_pins: spi0_pins {
- + brcm,pins = <9 10 11>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + spi0_cs_pins: spi0_cs_pins {
- + brcm,pins = <8 7>;
- + brcm,function = <1>; /* output */
- + };
- +
- + i2c0_pins: i2c0 {
- + brcm,pins = <0 1>;
- + brcm,function = <4>;
- + };
- +
- + i2c1_pins: i2c1 {
- + brcm,pins = <2 3>;
- + brcm,function = <4>;
- + };
- +
- + i2s_pins: i2s {
- + brcm,pins = <18 19 20 21>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + audio_pins: audio_pins {
- + brcm,pins;
- + brcm,function;
- + };
- +};
- +
- +&spi0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
- + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
- +
- + spidev0: spidev@0{
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +
- + spidev1: spidev@1{
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +};
- +
- +&i2c0if {
- + clock-frequency = <100000>;
- +};
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +&i2c2 {
- + clock-frequency = <100000>;
- +};
- +
- +&i2s {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2s_pins>;
- +};
- +
- +&audio {
- + pinctrl-names = "default";
- + pinctrl-0 = <&audio_pins>;
- +};
- +
- +&hdmi {
- + hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>;
- +};
- diff --git a/arch/arm/boot/dts/bcm2708-rpi-cm.dtsi b/arch/arm/boot/dts/bcm2708-rpi-cm.dtsi
- new file mode 100644
- index 000000000000..d5572b2d2103
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2708-rpi-cm.dtsi
- @@ -0,0 +1,18 @@
- +#include "bcm2708.dtsi"
- +#include "bcm2708-rpi.dtsi"
- +
- +&leds {
- + act_led: led-act {
- + label = "led0";
- + linux,default-trigger = "mmc0";
- + gpios = <&gpio 47 0>;
- + };
- +};
- +
- +/ {
- + __overrides__ {
- + act_led_gpio = <&act_led>,"gpios:4";
- + act_led_activelow = <&act_led>,"gpios:8";
- + act_led_trigger = <&act_led>,"linux,default-trigger";
- + };
- +};
- diff --git a/arch/arm/boot/dts/bcm2708-rpi-zero-w.dts b/arch/arm/boot/dts/bcm2708-rpi-zero-w.dts
- new file mode 100644
- index 000000000000..75a5b41514f9
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2708-rpi-zero-w.dts
- @@ -0,0 +1,169 @@
- +/dts-v1/;
- +
- +#include "bcm2708.dtsi"
- +#include "bcm2708-rpi.dtsi"
- +#include "bcm283x-rpi-csi1-2lane.dtsi"
- +#include "bcm283x-rpi-i2c0mux_0_28.dtsi"
- +#include "bcm2708-rpi-bt.dtsi"
- +#include "bcm283x-rpi-cam1-regulator.dtsi"
- +
- +/ {
- + compatible = "raspberrypi,model-zero-w", "brcm,bcm2835";
- + model = "Raspberry Pi Zero W";
- +
- + chosen {
- + bootargs = "coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1";
- + };
- +
- + aliases {
- + serial0 = &uart1;
- + serial1 = &uart0;
- + mmc1 = &mmcnr;
- + };
- +};
- +
- +&gpio {
- + spi0_pins: spi0_pins {
- + brcm,pins = <9 10 11>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + spi0_cs_pins: spi0_cs_pins {
- + brcm,pins = <8 7>;
- + brcm,function = <1>; /* output */
- + };
- +
- + i2c0_pins: i2c0 {
- + brcm,pins = <0 1>;
- + brcm,function = <4>;
- + };
- +
- + i2c1_pins: i2c1 {
- + brcm,pins = <2 3>;
- + brcm,function = <4>;
- + };
- +
- + i2s_pins: i2s {
- + brcm,pins = <18 19 20 21>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + sdio_pins: sdio_pins {
- + brcm,pins = <34 35 36 37 38 39>;
- + brcm,function = <7>; /* ALT3 = SD1 */
- + brcm,pull = <0 2 2 2 2 2>;
- + };
- +
- + bt_pins: bt_pins {
- + brcm,pins = <43>;
- + brcm,function = <4>; /* alt0:GPCLK2 */
- + brcm,pull = <0>; /* none */
- + };
- +
- + uart0_pins: uart0_pins {
- + brcm,pins = <30 31 32 33>;
- + brcm,function = <7>; /* alt3=UART0 */
- + brcm,pull = <2 0 0 2>; /* up none none up */
- + };
- +
- + uart1_pins: uart1_pins {
- + brcm,pins;
- + brcm,function;
- + brcm,pull;
- + };
- +
- + audio_pins: audio_pins {
- + brcm,pins = <>;
- + brcm,function = <>;
- + };
- +};
- +
- +&mmcnr {
- + pinctrl-names = "default";
- + pinctrl-0 = <&sdio_pins>;
- + bus-width = <4>;
- + status = "okay";
- +};
- +
- +&uart0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart0_pins &bt_pins>;
- + status = "okay";
- +};
- +
- +&uart1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart1_pins>;
- + status = "okay";
- +};
- +
- +&spi0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
- + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
- +
- + spidev0: spidev@0{
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +
- + spidev1: spidev@1{
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +};
- +
- +&i2c0if {
- + clock-frequency = <100000>;
- +};
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +&i2c2 {
- + clock-frequency = <100000>;
- +};
- +
- +&i2s {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2s_pins>;
- +};
- +
- +&leds {
- + act_led: led-act {
- + label = "led0";
- + linux,default-trigger = "actpwr";
- + gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
- + };
- +};
- +
- +&hdmi {
- + hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
- +};
- +
- +&audio {
- + pinctrl-names = "default";
- + pinctrl-0 = <&audio_pins>;
- + brcm,disable-headphones = <1>;
- +};
- +
- +&cam1_reg {
- + gpio = <&gpio 44 GPIO_ACTIVE_HIGH>;
- +};
- +
- +/ {
- + __overrides__ {
- + act_led_gpio = <&act_led>,"gpios:4";
- + act_led_activelow = <&act_led>,"gpios:8";
- + act_led_trigger = <&act_led>,"linux,default-trigger";
- + };
- +};
- diff --git a/arch/arm/boot/dts/bcm2708-rpi-zero.dts b/arch/arm/boot/dts/bcm2708-rpi-zero.dts
- new file mode 100644
- index 000000000000..84591bd7d423
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2708-rpi-zero.dts
- @@ -0,0 +1,123 @@
- +/dts-v1/;
- +
- +#include "bcm2708.dtsi"
- +#include "bcm2708-rpi.dtsi"
- +#include "bcm283x-rpi-csi1-2lane.dtsi"
- +#include "bcm283x-rpi-i2c0mux_0_28.dtsi"
- +#include "bcm283x-rpi-cam1-regulator.dtsi"
- +
- +/ {
- + compatible = "raspberrypi,model-zero", "brcm,bcm2835";
- + model = "Raspberry Pi Zero";
- +
- + chosen {
- + bootargs = "coherent_pool=1M snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1";
- + };
- +};
- +
- +&gpio {
- + spi0_pins: spi0_pins {
- + brcm,pins = <9 10 11>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + spi0_cs_pins: spi0_cs_pins {
- + brcm,pins = <8 7>;
- + brcm,function = <1>; /* output */
- + };
- +
- + i2c0_pins: i2c0 {
- + brcm,pins = <0 1>;
- + brcm,function = <4>;
- + };
- +
- + i2c1_pins: i2c1 {
- + brcm,pins = <2 3>;
- + brcm,function = <4>;
- + };
- +
- + i2s_pins: i2s {
- + brcm,pins = <18 19 20 21>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + audio_pins: audio_pins {
- + brcm,pins = <>;
- + brcm,function = <>;
- + };
- +};
- +
- +&uart0 {
- + status = "okay";
- +};
- +
- +&spi0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
- + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
- +
- + spidev0: spidev@0{
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +
- + spidev1: spidev@1{
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +};
- +
- +&i2c0if {
- + clock-frequency = <100000>;
- +};
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +&i2c2 {
- + clock-frequency = <100000>;
- +};
- +
- +&i2s {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2s_pins>;
- +};
- +
- +&leds {
- + act_led: led-act {
- + label = "led0";
- + linux,default-trigger = "actpwr";
- + gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
- + };
- +};
- +
- +&hdmi {
- + hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
- +};
- +
- +&audio {
- + pinctrl-names = "default";
- + pinctrl-0 = <&audio_pins>;
- + brcm,disable-headphones = <1>;
- +};
- +
- +&cam1_reg {
- + gpio = <&gpio 41 GPIO_ACTIVE_HIGH>;
- +};
- +
- +/ {
- + __overrides__ {
- + act_led_gpio = <&act_led>,"gpios:4";
- + act_led_activelow = <&act_led>,"gpios:8";
- + act_led_trigger = <&act_led>,"linux,default-trigger";
- + };
- +};
- diff --git a/arch/arm/boot/dts/bcm2708-rpi.dtsi b/arch/arm/boot/dts/bcm2708-rpi.dtsi
- new file mode 100644
- index 000000000000..e2458b15d64a
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2708-rpi.dtsi
- @@ -0,0 +1,36 @@
- +/* Downstream modifications common to bcm2835, bcm2836, bcm2837 */
- +
- +#include "bcm2835-rpi.dtsi"
- +#include "bcm270x-rpi.dtsi"
- +
- +/ {
- + memory@0 {
- + device_type = "memory";
- + reg = <0x0 0x0>;
- + };
- +
- + aliases {
- + i2c2 = &i2c2;
- + };
- +
- + __overrides__ {
- + i2c2_iknowwhatimdoing = <&i2c2>,"status";
- + i2c2_baudrate = <&i2c2>,"clock-frequency:0";
- + sd_poll_once = <&sdhost>,"non-removable?";
- + };
- +};
- +
- +&sdhost {
- + pinctrl-names = "default";
- + pinctrl-0 = <&sdhost_gpio48>;
- + status = "okay";
- +};
- +
- +&hdmi {
- + power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
- + status = "disabled";
- +};
- +
- +&i2c2 {
- + status = "disabled";
- +};
- diff --git a/arch/arm/boot/dts/bcm2708.dtsi b/arch/arm/boot/dts/bcm2708.dtsi
- new file mode 100644
- index 000000000000..36ec4989403f
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2708.dtsi
- @@ -0,0 +1,12 @@
- +#include "bcm2835.dtsi"
- +#include "bcm270x.dtsi"
- +
- +/ {
- + __overrides__ {
- + arm_freq;
- + };
- +};
- +
- +&vc4 {
- + status = "disabled";
- +};
- diff --git a/arch/arm/boot/dts/bcm2709-rpi-2-b.dts b/arch/arm/boot/dts/bcm2709-rpi-2-b.dts
- new file mode 100644
- index 000000000000..e1381d2b3a2c
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2709-rpi-2-b.dts
- @@ -0,0 +1,129 @@
- +/dts-v1/;
- +
- +#include "bcm2709.dtsi"
- +#include "bcm2709-rpi.dtsi"
- +#include "bcm283x-rpi-smsc9514.dtsi"
- +#include "bcm283x-rpi-csi1-2lane.dtsi"
- +#include "bcm283x-rpi-i2c0mux_0_28.dtsi"
- +#include "bcm283x-rpi-cam1-regulator.dtsi"
- +
- +/ {
- + compatible = "raspberrypi,2-model-b", "brcm,bcm2836";
- + model = "Raspberry Pi 2 Model B";
- +};
- +
- +&gpio {
- + spi0_pins: spi0_pins {
- + brcm,pins = <9 10 11>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + spi0_cs_pins: spi0_cs_pins {
- + brcm,pins = <8 7>;
- + brcm,function = <1>; /* output */
- + };
- +
- + i2c0_pins: i2c0 {
- + brcm,pins = <0 1>;
- + brcm,function = <4>;
- + };
- +
- + i2c1_pins: i2c1 {
- + brcm,pins = <2 3>;
- + brcm,function = <4>;
- + };
- +
- + i2s_pins: i2s {
- + brcm,pins = <18 19 20 21>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + audio_pins: audio_pins {
- + brcm,pins = <40 45>;
- + brcm,function = <4>;
- + };
- +};
- +
- +&uart0 {
- + status = "okay";
- +};
- +
- +&spi0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
- + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
- +
- + spidev0: spidev@0{
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +
- + spidev1: spidev@1{
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +};
- +
- +&i2c0if {
- + clock-frequency = <100000>;
- +};
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +&i2c2 {
- + clock-frequency = <100000>;
- +};
- +
- +&i2s {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2s_pins>;
- +};
- +
- +&leds {
- + act_led: led-act {
- + label = "led0";
- + linux,default-trigger = "mmc0";
- + gpios = <&gpio 47 0>;
- + };
- +
- + pwr_led: led-pwr {
- + label = "led1";
- + linux,default-trigger = "input";
- + gpios = <&gpio 35 0>;
- + };
- +};
- +
- +&hdmi {
- + hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
- +};
- +
- +&audio {
- + pinctrl-names = "default";
- + pinctrl-0 = <&audio_pins>;
- +};
- +
- +&cam1_reg {
- + gpio = <&gpio 41 GPIO_ACTIVE_HIGH>;
- +};
- +
- +/ {
- + __overrides__ {
- + act_led_gpio = <&act_led>,"gpios:4";
- + act_led_activelow = <&act_led>,"gpios:8";
- + act_led_trigger = <&act_led>,"linux,default-trigger";
- +
- + pwr_led_gpio = <&pwr_led>,"gpios:4";
- + pwr_led_activelow = <&pwr_led>,"gpios:8";
- + pwr_led_trigger = <&pwr_led>,"linux,default-trigger";
- + };
- +};
- diff --git a/arch/arm/boot/dts/bcm2709-rpi.dtsi b/arch/arm/boot/dts/bcm2709-rpi.dtsi
- new file mode 100644
- index 000000000000..babfa41cd9f7
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2709-rpi.dtsi
- @@ -0,0 +1,5 @@
- +#include "bcm2708-rpi.dtsi"
- +
- +&vchiq {
- + compatible = "brcm,bcm2836-vchiq", "brcm,bcm2835-vchiq";
- +};
- diff --git a/arch/arm/boot/dts/bcm2709.dtsi b/arch/arm/boot/dts/bcm2709.dtsi
- new file mode 100644
- index 000000000000..68eafc1b281a
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2709.dtsi
- @@ -0,0 +1,22 @@
- +#include "bcm2836.dtsi"
- +#include "bcm270x.dtsi"
- +
- +/ {
- + soc {
- + ranges = <0x7e000000 0x3f000000 0x01000000>,
- + <0x40000000 0x40000000 0x00040000>;
- +
- + /delete-node/ timer@7e003000;
- + };
- +
- + __overrides__ {
- + arm_freq = <&v7_cpu0>, "clock-frequency:0",
- + <&v7_cpu1>, "clock-frequency:0",
- + <&v7_cpu2>, "clock-frequency:0",
- + <&v7_cpu3>, "clock-frequency:0";
- + };
- +};
- +
- +&vc4 {
- + status = "disabled";
- +};
- diff --git a/arch/arm/boot/dts/bcm270x-rpi.dtsi b/arch/arm/boot/dts/bcm270x-rpi.dtsi
- new file mode 100644
- index 000000000000..68a7e1c09db1
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm270x-rpi.dtsi
- @@ -0,0 +1,154 @@
- +/* Downstream modifications to bcm2835-rpi.dtsi */
- +
- +/ {
- + aliases {
- + audio = &audio;
- + aux = &aux;
- + sound = &sound;
- + soc = &soc;
- + dma = &dma;
- + intc = &intc;
- + watchdog = &watchdog;
- + random = &random;
- + mailbox = &mailbox;
- + gpio = &gpio;
- + uart0 = &uart0;
- + uart1 = &uart1;
- + sdhost = &sdhost;
- + mmc = &mmc;
- + mmc1 = &mmc;
- + mmc0 = &sdhost;
- + i2s = &i2s;
- + i2c0 = &i2c0;
- + i2c1 = &i2c1;
- + i2c10 = &i2c_csi_dsi;
- + spi0 = &spi0;
- + spi1 = &spi1;
- + spi2 = &spi2;
- + usb = &usb;
- + leds = &leds;
- + fb = &fb;
- + thermal = &thermal;
- + axiperf = &axiperf;
- + };
- +
- + /* Define these notional regulators for use by overlays */
- + vdd_3v3_reg: fixedregulator_3v3 {
- + compatible = "regulator-fixed";
- + regulator-always-on;
- + regulator-max-microvolt = <3300000>;
- + regulator-min-microvolt = <3300000>;
- + regulator-name = "3v3";
- + };
- +
- + vdd_5v0_reg: fixedregulator_5v0 {
- + compatible = "regulator-fixed";
- + regulator-always-on;
- + regulator-max-microvolt = <5000000>;
- + regulator-min-microvolt = <5000000>;
- + regulator-name = "5v0";
- + };
- +
- + leds: leds {
- + compatible = "gpio-leds";
- + };
- +
- + soc {
- + gpiomem {
- + compatible = "brcm,bcm2835-gpiomem";
- + reg = <0x7e200000 0x1000>;
- + };
- +
- + fb: fb {
- + compatible = "brcm,bcm2708-fb";
- + firmware = <&firmware>;
- + status = "okay";
- + };
- +
- + vcsm: vcsm {
- + compatible = "raspberrypi,bcm2835-vcsm";
- + firmware = <&firmware>;
- + status = "okay";
- + };
- +
- + /* External sound card */
- + sound: sound {
- + status = "disabled";
- + };
- + };
- +
- + __overrides__ {
- + cache_line_size;
- +
- + uart0 = <&uart0>,"status";
- + uart1 = <&uart1>,"status";
- + i2s = <&i2s>,"status";
- + spi = <&spi0>,"status";
- + i2c0 = <&i2c0if>,"status",<&i2c0mux>,"status";
- + i2c1 = <&i2c1>,"status";
- + i2c0_baudrate = <&i2c0if>,"clock-frequency:0";
- + i2c1_baudrate = <&i2c1>,"clock-frequency:0";
- +
- + audio = <&audio>,"status";
- + watchdog = <&watchdog>,"status";
- + random = <&random>,"status";
- + sd_overclock = <&sdhost>,"brcm,overclock-50:0";
- + sd_force_pio = <&sdhost>,"brcm,force-pio?";
- + sd_pio_limit = <&sdhost>,"brcm,pio-limit:0";
- + sd_debug = <&sdhost>,"brcm,debug";
- + sdio_overclock = <&mmc>,"brcm,overclock-50:0",
- + <&mmcnr>,"brcm,overclock-50:0";
- + axiperf = <&axiperf>,"status";
- + };
- +};
- +
- +&uart0 {
- + skip-init;
- +};
- +
- +&uart1 {
- + skip-init;
- +};
- +
- +&txp {
- + status = "disabled";
- +};
- +
- +&i2c0if {
- + status = "disabled";
- +};
- +
- +&i2c0mux {
- + status = "disabled";
- +};
- +
- +&i2c1 {
- + status = "disabled";
- +};
- +
- +&clocks {
- + firmware = <&firmware>;
- +};
- +
- +&sdhci {
- + pinctrl-names = "default";
- + pinctrl-0 = <&emmc_gpio48>;
- + bus-width = <4>;
- +};
- +
- +&cpu_thermal {
- + /delete-node/ trips;
- +};
- +
- +&vec {
- + status = "disabled";
- +};
- +
- +&vchiq {
- + /* Onboard audio */
- + audio: bcm2835_audio {
- + compatible = "brcm,bcm2835-audio";
- + brcm,pwm-channels = <8>;
- + status = "disabled";
- + };
- +};
- diff --git a/arch/arm/boot/dts/bcm270x.dtsi b/arch/arm/boot/dts/bcm270x.dtsi
- new file mode 100644
- index 000000000000..badcf341ecd2
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm270x.dtsi
- @@ -0,0 +1,217 @@
- +/* Downstream bcm283x.dtsi diff */
- +#include <dt-bindings/power/raspberrypi-power.h>
- +
- +/ {
- + chosen {
- + bootargs = "coherent_pool=1M snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1";
- + /delete-property/ stdout-path;
- + };
- +
- + soc: soc {
- +
- + watchdog: watchdog@7e100000 {
- + /* Add label */
- + };
- +
- + random: rng@7e104000 {
- + /* Add label */
- + };
- +
- + spi0: spi@7e204000 {
- + /* Add label */
- + };
- +
- +#ifndef BCM2711
- + pixelvalve0: pixelvalve@7e206000 {
- + /* Add label */
- + status = "disabled";
- + };
- +
- + pixelvalve1: pixelvalve@7e207000 {
- + /* Add label */
- + status = "disabled";
- + };
- +#endif
- +
- + /delete-node/ mmc@7e300000;
- +
- + sdhci: mmc: mmc@7e300000 {
- + compatible = "brcm,bcm2835-mmc", "brcm,bcm2835-sdhci";
- + reg = <0x7e300000 0x100>;
- + interrupts = <2 30>;
- + clocks = <&clocks BCM2835_CLOCK_EMMC>;
- + dmas = <&dma 11>;
- + dma-names = "rx-tx";
- + brcm,overclock-50 = <0>;
- + status = "disabled";
- + };
- +
- + /* A clone of mmc but with non-removable set */
- + mmcnr: mmcnr@7e300000 {
- + compatible = "brcm,bcm2835-mmc", "brcm,bcm2835-sdhci";
- + reg = <0x7e300000 0x100>;
- + interrupts = <2 30>;
- + clocks = <&clocks BCM2835_CLOCK_EMMC>;
- + dmas = <&dma 11>;
- + dma-names = "rx-tx";
- + brcm,overclock-50 = <0>;
- + non-removable;
- + status = "disabled";
- + };
- +
- + hvs: hvs@7e400000 {
- + /* Add label */
- + status = "disabled";
- + };
- +
- + firmwarekms: firmwarekms@7e600000 {
- + compatible = "raspberrypi,rpi-firmware-kms";
- + /* SMI interrupt reg */
- + reg = <0x7e600000 0x100>;
- + interrupts = <2 16>;
- + brcm,firmware = <&firmware>;
- + status = "disabled";
- + };
- +
- + smi: smi@7e600000 {
- + compatible = "brcm,bcm2835-smi";
- + reg = <0x7e600000 0x100>;
- + interrupts = <2 16>;
- + clocks = <&clocks BCM2835_CLOCK_SMI>;
- + assigned-clocks = <&clocks BCM2835_CLOCK_SMI>;
- + assigned-clock-rates = <125000000>;
- + dmas = <&dma 4>;
- + dma-names = "rx-tx";
- + status = "disabled";
- + };
- +
- + csi0: csi@7e800000 {
- + compatible = "brcm,bcm2835-unicam";
- + reg = <0x7e800000 0x800>,
- + <0x7e802000 0x4>;
- + interrupts = <2 6>;
- + clocks = <&clocks BCM2835_CLOCK_CAM0>,
- + <&firmware_clocks 4>;
- + clock-names = "lp", "vpu";
- + power-domains = <&power RPI_POWER_DOMAIN_UNICAM0>;
- + #address-cells = <1>;
- + #size-cells = <0>;
- + #clock-cells = <1>;
- + status = "disabled";
- + };
- +
- + csi1: csi@7e801000 {
- + compatible = "brcm,bcm2835-unicam";
- + reg = <0x7e801000 0x800>,
- + <0x7e802004 0x4>;
- + interrupts = <2 7>;
- + clocks = <&clocks BCM2835_CLOCK_CAM1>,
- + <&firmware_clocks 4>;
- + clock-names = "lp", "vpu";
- + power-domains = <&power RPI_POWER_DOMAIN_UNICAM1>;
- + #address-cells = <1>;
- + #size-cells = <0>;
- + #clock-cells = <1>;
- + status = "disabled";
- + };
- +
- +#ifndef BCM2711
- + pixelvalve2: pixelvalve@7e807000 {
- + /* Add label */
- + status = "disabled";
- + };
- +#endif
- +
- + hdmi@7e902000 { /* hdmi */
- + status = "disabled";
- + };
- +
- + usb@7e980000 { /* usb */
- + compatible = "brcm,bcm2708-usb";
- + reg = <0x7e980000 0x10000>,
- + <0x7e006000 0x1000>;
- + interrupt-names = "usb",
- + "soft";
- + interrupts = <1 9>,
- + <2 0>;
- + };
- +
- +#ifndef BCM2711
- + v3d@7ec00000 { /* vd3 */
- + compatible = "brcm,vc4-v3d";
- + power-domains = <&power RPI_POWER_DOMAIN_V3D>;
- + status = "disabled";
- + };
- +#endif
- +
- + axiperf: axiperf {
- + compatible = "brcm,bcm2835-axiperf";
- + reg = <0x7e009800 0x100>,
- + <0x7ee08000 0x100>;
- + firmware = <&firmware>;
- + status = "disabled";
- + };
- + };
- +
- + __overrides__ {
- + cam0-pwdn-ctrl;
- + cam0-pwdn;
- + cam0-led-ctrl;
- + cam0-led;
- + };
- +};
- +
- +&gpio {
- + interrupts = <2 17>, <2 18>;
- +
- + dpi_18bit_cpadhi_gpio0: dpi_18bit_cpadhi_gpio0 {
- + brcm,pins = <0 1 2 3 4 5 6 7 8 9
- + 12 13 14 15 16 17
- + 20 21 22 23 24 25>;
- + brcm,function = <BCM2835_FSEL_ALT2>;
- + brcm,pull = <0>; /* no pull */
- + };
- + dpi_18bit_cpadhi_gpio2: dpi_18bit_cpadhi_gpio2 {
- + brcm,pins = <2 3 4 5 6 7 8 9
- + 12 13 14 15 16 17
- + 20 21 22 23 24 25>;
- + brcm,function = <BCM2835_FSEL_ALT2>;
- + };
- + dpi_18bit_gpio0: dpi_18bit_gpio0 {
- + brcm,pins = <0 1 2 3 4 5 6 7 8 9 10 11
- + 12 13 14 15 16 17 18 19
- + 20 21>;
- + brcm,function = <BCM2835_FSEL_ALT2>;
- + };
- + dpi_18bit_gpio2: dpi_18bit_gpio2 {
- + brcm,pins = <2 3 4 5 6 7 8 9 10 11
- + 12 13 14 15 16 17 18 19
- + 20 21>;
- + brcm,function = <BCM2835_FSEL_ALT2>;
- + };
- +};
- +
- +&uart0 {
- + /* Enable CTS bug workaround */
- + cts-event-workaround;
- +};
- +
- +&i2s {
- + #sound-dai-cells = <0>;
- + dmas = <&dma 2>, <&dma 3>;
- + dma-names = "tx", "rx";
- +};
- +
- +&sdhost {
- + dmas = <&dma (13|(1<<29))>;
- + dma-names = "rx-tx";
- + bus-width = <4>;
- + brcm,overclock-50 = <0>;
- + brcm,pio-limit = <1>;
- + firmware = <&firmware>;
- +};
- +
- +&spi0 {
- + dmas = <&dma 6>, <&dma 7>;
- + dma-names = "tx", "rx";
- +};
- diff --git a/arch/arm/boot/dts/bcm2710-rpi-2-b.dts b/arch/arm/boot/dts/bcm2710-rpi-2-b.dts
- new file mode 100644
- index 000000000000..ae9db1b1be1b
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2710-rpi-2-b.dts
- @@ -0,0 +1,129 @@
- +/dts-v1/;
- +
- +#include "bcm2710.dtsi"
- +#include "bcm2709-rpi.dtsi"
- +#include "bcm283x-rpi-smsc9514.dtsi"
- +#include "bcm283x-rpi-csi1-2lane.dtsi"
- +#include "bcm283x-rpi-i2c0mux_0_28.dtsi"
- +#include "bcm283x-rpi-cam1-regulator.dtsi"
- +
- +/ {
- + compatible = "raspberrypi,2-model-b-rev2", "brcm,bcm2837";
- + model = "Raspberry Pi 2 Model B rev 1.2";
- +};
- +
- +&gpio {
- + spi0_pins: spi0_pins {
- + brcm,pins = <9 10 11>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + spi0_cs_pins: spi0_cs_pins {
- + brcm,pins = <8 7>;
- + brcm,function = <1>; /* output */
- + };
- +
- + i2c0_pins: i2c0 {
- + brcm,pins = <0 1>;
- + brcm,function = <4>;
- + };
- +
- + i2c1_pins: i2c1 {
- + brcm,pins = <2 3>;
- + brcm,function = <4>;
- + };
- +
- + i2s_pins: i2s {
- + brcm,pins = <18 19 20 21>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + audio_pins: audio_pins {
- + brcm,pins = <40 45>;
- + brcm,function = <4>;
- + };
- +};
- +
- +&uart0 {
- + status = "okay";
- +};
- +
- +&spi0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
- + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
- +
- + spidev0: spidev@0{
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +
- + spidev1: spidev@1{
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +};
- +
- +&i2c0if {
- + clock-frequency = <100000>;
- +};
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +&i2c2 {
- + clock-frequency = <100000>;
- +};
- +
- +&i2s {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2s_pins>;
- +};
- +
- +&leds {
- + act_led: led-act {
- + label = "led0";
- + linux,default-trigger = "mmc0";
- + gpios = <&gpio 47 0>;
- + };
- +
- + pwr_led: led-pwr {
- + label = "led1";
- + linux,default-trigger = "input";
- + gpios = <&gpio 35 0>;
- + };
- +};
- +
- +&hdmi {
- + hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
- +};
- +
- +&audio {
- + pinctrl-names = "default";
- + pinctrl-0 = <&audio_pins>;
- +};
- +
- +&cam1_reg {
- + gpio = <&gpio 41 GPIO_ACTIVE_HIGH>;
- +};
- +
- +/ {
- + __overrides__ {
- + act_led_gpio = <&act_led>,"gpios:4";
- + act_led_activelow = <&act_led>,"gpios:8";
- + act_led_trigger = <&act_led>,"linux,default-trigger";
- +
- + pwr_led_gpio = <&pwr_led>,"gpios:4";
- + pwr_led_activelow = <&pwr_led>,"gpios:8";
- + pwr_led_trigger = <&pwr_led>,"linux,default-trigger";
- + };
- +};
- diff --git a/arch/arm/boot/dts/bcm2710-rpi-3-b-plus.dts b/arch/arm/boot/dts/bcm2710-rpi-3-b-plus.dts
- new file mode 100644
- index 000000000000..7e12c05cc28b
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2710-rpi-3-b-plus.dts
- @@ -0,0 +1,201 @@
- +/dts-v1/;
- +
- +#include "bcm2710.dtsi"
- +#include "bcm2709-rpi.dtsi"
- +#include "bcm283x-rpi-lan7515.dtsi"
- +#include "bcm283x-rpi-csi1-2lane.dtsi"
- +#include "bcm283x-rpi-i2c0mux_0_44.dtsi"
- +#include "bcm271x-rpi-bt.dtsi"
- +#include "bcm283x-rpi-cam1-regulator.dtsi"
- +
- +/ {
- + compatible = "raspberrypi,3-model-b-plus", "brcm,bcm2837";
- + model = "Raspberry Pi 3 Model B+";
- +
- + chosen {
- + bootargs = "coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1";
- + };
- +
- + aliases {
- + serial0 = &uart1;
- + serial1 = &uart0;
- + mmc1 = &mmcnr;
- + };
- +};
- +
- +&gpio {
- + spi0_pins: spi0_pins {
- + brcm,pins = <9 10 11>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + spi0_cs_pins: spi0_cs_pins {
- + brcm,pins = <8 7>;
- + brcm,function = <1>; /* output */
- + };
- +
- + i2c0_pins: i2c0 {
- + brcm,pins = <0 1>;
- + brcm,function = <4>;
- + };
- +
- + i2c1_pins: i2c1 {
- + brcm,pins = <2 3>;
- + brcm,function = <4>;
- + };
- +
- + i2s_pins: i2s {
- + brcm,pins = <18 19 20 21>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + sdio_pins: sdio_pins {
- + brcm,pins = <34 35 36 37 38 39>;
- + brcm,function = <7>; // alt3 = SD1
- + brcm,pull = <0 2 2 2 2 2>;
- + };
- +
- + bt_pins: bt_pins {
- + brcm,pins = <43>;
- + brcm,function = <4>; /* alt0:GPCLK2 */
- + brcm,pull = <0>;
- + };
- +
- + uart0_pins: uart0_pins {
- + brcm,pins = <32 33>;
- + brcm,function = <7>; /* alt3=UART0 */
- + brcm,pull = <0 2>;
- + };
- +
- + uart1_pins: uart1_pins {
- + brcm,pins;
- + brcm,function;
- + brcm,pull;
- + };
- +
- + audio_pins: audio_pins {
- + brcm,pins = <40 41>;
- + brcm,function = <4>;
- + };
- +};
- +
- +&mmcnr {
- + pinctrl-names = "default";
- + pinctrl-0 = <&sdio_pins>;
- + bus-width = <4>;
- + status = "okay";
- +};
- +
- +&firmware {
- + expgpio: expgpio {
- + compatible = "raspberrypi,firmware-gpio";
- + gpio-controller;
- + #gpio-cells = <2>;
- + status = "okay";
- + };
- +};
- +
- +&uart0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart0_pins &bt_pins>;
- + status = "okay";
- +};
- +
- +&uart1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart1_pins>;
- + status = "okay";
- +};
- +
- +&spi0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
- + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
- +
- + spidev0: spidev@0{
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +
- + spidev1: spidev@1{
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +};
- +
- +&i2c0if {
- + clock-frequency = <100000>;
- +};
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +&i2c2 {
- + clock-frequency = <100000>;
- +};
- +
- +&i2s {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2s_pins>;
- +};
- +
- +&leds {
- + act_led: led-act {
- + label = "led0";
- + linux,default-trigger = "mmc0";
- + gpios = <&gpio 29 0>;
- + };
- +
- + pwr_led: led-pwr {
- + label = "led1";
- + linux,default-trigger = "default-on";
- + gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
- + };
- +};
- +
- +&hdmi {
- + hpd-gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
- +};
- +
- +&audio {
- + pinctrl-names = "default";
- + pinctrl-0 = <&audio_pins>;
- +};
- +
- +ð_phy {
- + microchip,eee-enabled;
- + microchip,tx-lpi-timer = <600>; /* non-aggressive*/
- + microchip,downshift-after = <2>;
- +};
- +
- +&cam1_reg {
- + gpio = <&expgpio 5 GPIO_ACTIVE_HIGH>;
- +};
- +
- +/ {
- + __overrides__ {
- + act_led_gpio = <&act_led>,"gpios:4";
- + act_led_activelow = <&act_led>,"gpios:8";
- + act_led_trigger = <&act_led>,"linux,default-trigger";
- +
- + pwr_led_gpio = <&pwr_led>,"gpios:4";
- + pwr_led_activelow = <&pwr_led>,"gpios:8";
- + pwr_led_trigger = <&pwr_led>,"linux,default-trigger";
- +
- + eee = <ð_phy>,"microchip,eee-enabled?";
- + tx_lpi_timer = <ð_phy>,"microchip,tx-lpi-timer:0";
- + eth_led0 = <ð_phy>,"microchip,led-modes:0";
- + eth_led1 = <ð_phy>,"microchip,led-modes:4";
- + eth_downshift_after = <ð_phy>,"microchip,downshift-after:0";
- + eth_max_speed = <ð_phy>,"max-speed:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/bcm2710-rpi-3-b.dts b/arch/arm/boot/dts/bcm2710-rpi-3-b.dts
- new file mode 100644
- index 000000000000..d40722ddc286
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2710-rpi-3-b.dts
- @@ -0,0 +1,203 @@
- +/dts-v1/;
- +
- +#include "bcm2710.dtsi"
- +#include "bcm2709-rpi.dtsi"
- +#include "bcm283x-rpi-smsc9514.dtsi"
- +#include "bcm283x-rpi-csi1-2lane.dtsi"
- +#include "bcm283x-rpi-i2c0mux_0_44.dtsi"
- +#include "bcm271x-rpi-bt.dtsi"
- +#include "bcm283x-rpi-cam1-regulator.dtsi"
- +
- +/ {
- + compatible = "raspberrypi,3-model-b", "brcm,bcm2837";
- + model = "Raspberry Pi 3 Model B";
- +
- + chosen {
- + bootargs = "coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1";
- + };
- +
- + aliases {
- + serial0 = &uart1;
- + serial1 = &uart0;
- + mmc1 = &mmcnr;
- + };
- +};
- +
- +&gpio {
- + spi0_pins: spi0_pins {
- + brcm,pins = <9 10 11>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + spi0_cs_pins: spi0_cs_pins {
- + brcm,pins = <8 7>;
- + brcm,function = <1>; /* output */
- + };
- +
- + i2c0_pins: i2c0 {
- + brcm,pins = <0 1>;
- + brcm,function = <4>;
- + };
- +
- + i2c1_pins: i2c1 {
- + brcm,pins = <2 3>;
- + brcm,function = <4>;
- + };
- +
- + i2s_pins: i2s {
- + brcm,pins = <18 19 20 21>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + sdio_pins: sdio_pins {
- + brcm,pins = <34 35 36 37 38 39>;
- + brcm,function = <7>; // alt3 = SD1
- + brcm,pull = <0 2 2 2 2 2>;
- + };
- +
- + bt_pins: bt_pins {
- + brcm,pins = <43>;
- + brcm,function = <4>; /* alt0:GPCLK2 */
- + brcm,pull = <0>;
- + };
- +
- + uart0_pins: uart0_pins {
- + brcm,pins = <32 33>;
- + brcm,function = <7>; /* alt3=UART0 */
- + brcm,pull = <0 2>;
- + };
- +
- + uart1_pins: uart1_pins {
- + brcm,pins;
- + brcm,function;
- + brcm,pull;
- + };
- +
- + audio_pins: audio_pins {
- + brcm,pins = <40 41>;
- + brcm,function = <4>;
- + };
- +};
- +
- +&mmcnr {
- + pinctrl-names = "default";
- + pinctrl-0 = <&sdio_pins>;
- + bus-width = <4>;
- + status = "okay";
- +};
- +
- +&soc {
- + virtgpio: virtgpio {
- + compatible = "brcm,bcm2835-virtgpio";
- + gpio-controller;
- + #gpio-cells = <2>;
- + firmware = <&firmware>;
- + status = "okay";
- + };
- +
- +};
- +
- +&firmware {
- + expgpio: expgpio {
- + compatible = "raspberrypi,firmware-gpio";
- + gpio-controller;
- + #gpio-cells = <2>;
- + status = "okay";
- + };
- +};
- +
- +&uart0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart0_pins &bt_pins>;
- + status = "okay";
- +};
- +
- +&uart1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart1_pins>;
- + status = "okay";
- +};
- +
- +&bt {
- + max-speed = <921600>;
- +};
- +
- +&spi0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
- + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
- +
- + spidev0: spidev@0{
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +
- + spidev1: spidev@1{
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +};
- +
- +&i2c0if {
- + clock-frequency = <100000>;
- +};
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +&i2c2 {
- + clock-frequency = <100000>;
- +};
- +
- +&i2s {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2s_pins>;
- +};
- +
- +&leds {
- + act_led: led-act {
- + label = "led0";
- + linux,default-trigger = "mmc0";
- + gpios = <&virtgpio 0 0>;
- + };
- +
- + pwr_led: led-pwr {
- + label = "led1";
- + linux,default-trigger = "input";
- + gpios = <&expgpio 7 0>;
- + };
- +};
- +
- +&hdmi {
- + hpd-gpios = <&expgpio 4 GPIO_ACTIVE_LOW>;
- +};
- +
- +&audio {
- + pinctrl-names = "default";
- + pinctrl-0 = <&audio_pins>;
- +};
- +
- +&cam1_reg {
- + gpio = <&expgpio 5 GPIO_ACTIVE_HIGH>;
- +};
- +
- +/ {
- + __overrides__ {
- + act_led_gpio = <&act_led>,"gpios:4";
- + act_led_activelow = <&act_led>,"gpios:8";
- + act_led_trigger = <&act_led>,"linux,default-trigger";
- +
- + pwr_led_gpio = <&pwr_led>,"gpios:4";
- + pwr_led_activelow = <&pwr_led>,"gpios:8";
- + pwr_led_trigger = <&pwr_led>,"linux,default-trigger";
- + };
- +};
- diff --git a/arch/arm/boot/dts/bcm2710-rpi-cm3.dts b/arch/arm/boot/dts/bcm2710-rpi-cm3.dts
- new file mode 100644
- index 000000000000..c386a855cdc3
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2710-rpi-cm3.dts
- @@ -0,0 +1,148 @@
- +/dts-v1/;
- +
- +#include "bcm2710.dtsi"
- +#include "bcm2709-rpi.dtsi"
- +#include "bcm283x-rpi-csi0-2lane.dtsi"
- +#include "bcm283x-rpi-csi1-4lane.dtsi"
- +#include "bcm283x-rpi-i2c0mux_0_28.dtsi"
- +/ {
- + compatible = "raspberrypi,3-compute-module", "brcm,bcm2837";
- + model = "Raspberry Pi Compute Module 3";
- +
- + cam1_reg: cam1_reg {
- + compatible = "regulator-fixed";
- + regulator-name = "cam1-regulator";
- + gpio = <&gpio 2 GPIO_ACTIVE_HIGH>;
- + enable-active-high;
- + status = "disabled";
- + };
- + cam0_reg: cam0_reg {
- + compatible = "regulator-fixed";
- + regulator-name = "cam0-regulator";
- + gpio = <&gpio 30 GPIO_ACTIVE_HIGH>;
- + enable-active-high;
- + status = "disabled";
- + };
- +};
- +
- +&uart0 {
- + status = "okay";
- +};
- +
- +&gpio {
- + spi0_pins: spi0_pins {
- + brcm,pins = <9 10 11>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + spi0_cs_pins: spi0_cs_pins {
- + brcm,pins = <8 7>;
- + brcm,function = <1>; /* output */
- + };
- +
- + i2c0_pins: i2c0 {
- + brcm,pins = <0 1>;
- + brcm,function = <4>;
- + };
- +
- + i2c1_pins: i2c1 {
- + brcm,pins = <2 3>;
- + brcm,function = <4>;
- + };
- +
- + i2s_pins: i2s {
- + brcm,pins = <18 19 20 21>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + audio_pins: audio_pins {
- + brcm,pins;
- + brcm,function;
- + };
- +};
- +
- +&soc {
- + virtgpio: virtgpio {
- + compatible = "brcm,bcm2835-virtgpio";
- + gpio-controller;
- + #gpio-cells = <2>;
- + firmware = <&firmware>;
- + status = "okay";
- + };
- +
- +};
- +
- +&firmware {
- + expgpio: expgpio {
- + compatible = "raspberrypi,firmware-gpio";
- + gpio-controller;
- + #gpio-cells = <2>;
- + status = "okay";
- + };
- +};
- +
- +&spi0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
- + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
- +
- + spidev0: spidev@0{
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +
- + spidev1: spidev@1{
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +};
- +
- +&i2c0if {
- + clock-frequency = <100000>;
- +};
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +&i2c2 {
- + clock-frequency = <100000>;
- +};
- +
- +&i2s {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2s_pins>;
- +};
- +
- +&leds {
- + act_led: led-act {
- + label = "led0";
- + linux,default-trigger = "mmc0";
- + gpios = <&virtgpio 0 0>;
- + };
- +};
- +
- +&hdmi {
- + hpd-gpios = <&expgpio 0 GPIO_ACTIVE_LOW>;
- +};
- +
- +&audio {
- + pinctrl-names = "default";
- + pinctrl-0 = <&audio_pins>;
- +};
- +
- +/ {
- + __overrides__ {
- + act_led_gpio = <&act_led>,"gpios:4";
- + act_led_activelow = <&act_led>,"gpios:8";
- + act_led_trigger = <&act_led>,"linux,default-trigger";
- + };
- +};
- diff --git a/arch/arm/boot/dts/bcm2710.dtsi b/arch/arm/boot/dts/bcm2710.dtsi
- new file mode 100644
- index 000000000000..e7e5c913f1d1
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2710.dtsi
- @@ -0,0 +1,25 @@
- +#include "bcm2837.dtsi"
- +#include "bcm270x.dtsi"
- +
- +/ {
- + compatible = "brcm,bcm2837", "brcm,bcm2836";
- +
- + arm-pmu {
- + compatible = "arm,cortex-a53-pmu", "arm,cortex-a7-pmu";
- + };
- +
- + soc {
- + /delete-node/ timer@7e003000;
- + };
- +
- + __overrides__ {
- + arm_freq = <&cpu0>, "clock-frequency:0",
- + <&cpu1>, "clock-frequency:0",
- + <&cpu2>, "clock-frequency:0",
- + <&cpu3>, "clock-frequency:0";
- + };
- +};
- +
- +&vc4 {
- + status = "disabled";
- +};
- diff --git a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
- index 72ce80fbf266..f6e0247f7d1b 100644
- --- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
- +++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
- @@ -2,7 +2,7 @@
- /dts-v1/;
- #include "bcm2711.dtsi"
- #include "bcm2711-rpi.dtsi"
- -#include "bcm283x-rpi-usb-peripheral.dtsi"
- +//#include "bcm283x-rpi-usb-peripheral.dtsi"
-
- / {
- compatible = "raspberrypi,4-model-b", "brcm,bcm2711";
- @@ -72,7 +72,7 @@ &expgpio {
- "VDD_SD_IO_SEL",
- "CAM_GPIO",
- "SD_PWR_ON",
- - "";
- + "SD_OC_N";
- };
-
- &gpio {
- @@ -260,3 +260,309 @@ &vc4 {
- &vec {
- status = "disabled";
- };
- +
- +// =============================================
- +// Downstream rpi- changes
- +
- +#define BCM2711
- +
- +#include "bcm270x.dtsi"
- +#include "bcm271x-rpi-bt.dtsi"
- +
- +/ {
- + soc {
- + /delete-node/ pixelvalve@7e807000;
- + /delete-node/ hdmi@7e902000;
- + };
- +};
- +
- +#include "bcm2711-rpi-ds.dtsi"
- +#include "bcm283x-rpi-csi1-2lane.dtsi"
- +#include "bcm283x-rpi-i2c0mux_0_44.dtsi"
- +#include "bcm283x-rpi-cam1-regulator.dtsi"
- +
- +/ {
- + chosen {
- + bootargs = "coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1";
- + };
- +
- + aliases {
- + serial0 = &uart1;
- + serial1 = &uart0;
- + mmc0 = &emmc2;
- + mmc1 = &mmcnr;
- + mmc2 = &sdhost;
- + i2c3 = &i2c3;
- + i2c4 = &i2c4;
- + i2c5 = &i2c5;
- + i2c6 = &i2c6;
- + i2c20 = &ddc0;
- + i2c21 = &ddc1;
- + spi3 = &spi3;
- + spi4 = &spi4;
- + spi5 = &spi5;
- + spi6 = &spi6;
- + /delete-property/ intc;
- + };
- +
- + /delete-node/ wifi-pwrseq;
- +};
- +
- +&mmcnr {
- + pinctrl-names = "default";
- + pinctrl-0 = <&sdio_pins>;
- + bus-width = <4>;
- + status = "okay";
- +};
- +
- +&uart0 {
- + pinctrl-0 = <&uart0_pins &bt_pins>;
- + status = "okay";
- +};
- +
- +&uart1 {
- + pinctrl-0 = <&uart1_pins>;
- +};
- +
- +&spi0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
- + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
- +
- + spidev0: spidev@0{
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +
- + spidev1: spidev@1{
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +};
- +
- +&gpio {
- + spi0_pins: spi0_pins {
- + brcm,pins = <9 10 11>;
- + brcm,function = <BCM2835_FSEL_ALT0>;
- + };
- +
- + spi0_cs_pins: spi0_cs_pins {
- + brcm,pins = <8 7>;
- + brcm,function = <BCM2835_FSEL_GPIO_OUT>;
- + };
- +
- + spi3_pins: spi3_pins {
- + brcm,pins = <1 2 3>;
- + brcm,function = <BCM2835_FSEL_ALT3>;
- + };
- +
- + spi3_cs_pins: spi3_cs_pins {
- + brcm,pins = <0 24>;
- + brcm,function = <BCM2835_FSEL_GPIO_OUT>;
- + };
- +
- + spi4_pins: spi4_pins {
- + brcm,pins = <5 6 7>;
- + brcm,function = <BCM2835_FSEL_ALT3>;
- + };
- +
- + spi4_cs_pins: spi4_cs_pins {
- + brcm,pins = <4 25>;
- + brcm,function = <BCM2835_FSEL_GPIO_OUT>;
- + };
- +
- + spi5_pins: spi5_pins {
- + brcm,pins = <13 14 15>;
- + brcm,function = <BCM2835_FSEL_ALT3>;
- + };
- +
- + spi5_cs_pins: spi5_cs_pins {
- + brcm,pins = <12 26>;
- + brcm,function = <BCM2835_FSEL_GPIO_OUT>;
- + };
- +
- + spi6_pins: spi6_pins {
- + brcm,pins = <19 20 21>;
- + brcm,function = <BCM2835_FSEL_ALT3>;
- + };
- +
- + spi6_cs_pins: spi6_cs_pins {
- + brcm,pins = <18 27>;
- + brcm,function = <BCM2835_FSEL_GPIO_OUT>;
- + };
- +
- + i2c0_pins: i2c0 {
- + brcm,pins = <0 1>;
- + brcm,function = <BCM2835_FSEL_ALT0>;
- + brcm,pull = <BCM2835_PUD_UP>;
- + };
- +
- + i2c1_pins: i2c1 {
- + brcm,pins = <2 3>;
- + brcm,function = <BCM2835_FSEL_ALT0>;
- + brcm,pull = <BCM2835_PUD_UP>;
- + };
- +
- + i2c3_pins: i2c3 {
- + brcm,pins = <4 5>;
- + brcm,function = <BCM2835_FSEL_ALT5>;
- + brcm,pull = <BCM2835_PUD_UP>;
- + };
- +
- + i2c4_pins: i2c4 {
- + brcm,pins = <8 9>;
- + brcm,function = <BCM2835_FSEL_ALT5>;
- + brcm,pull = <BCM2835_PUD_UP>;
- + };
- +
- + i2c5_pins: i2c5 {
- + brcm,pins = <12 13>;
- + brcm,function = <BCM2835_FSEL_ALT5>;
- + brcm,pull = <BCM2835_PUD_UP>;
- + };
- +
- + i2c6_pins: i2c6 {
- + brcm,pins = <22 23>;
- + brcm,function = <BCM2835_FSEL_ALT5>;
- + brcm,pull = <BCM2835_PUD_UP>;
- + };
- +
- + i2s_pins: i2s {
- + brcm,pins = <18 19 20 21>;
- + brcm,function = <BCM2835_FSEL_ALT0>;
- + };
- +
- + sdio_pins: sdio_pins {
- + brcm,pins = <34 35 36 37 38 39>;
- + brcm,function = <BCM2835_FSEL_ALT3>; // alt3 = SD1
- + brcm,pull = <0 2 2 2 2 2>;
- + };
- +
- + bt_pins: bt_pins {
- + brcm,pins = "-"; // non-empty to keep btuart happy, //4 = 0
- + // to fool pinctrl
- + brcm,function = <0>;
- + brcm,pull = <2>;
- + };
- +
- + uart0_pins: uart0_pins {
- + brcm,pins = <32 33>;
- + brcm,function = <BCM2835_FSEL_ALT3>;
- + brcm,pull = <0 2>;
- + };
- +
- + uart1_pins: uart1_pins {
- + brcm,pins;
- + brcm,function;
- + brcm,pull;
- + };
- +
- + uart2_pins: uart2_pins {
- + brcm,pins = <0 1>;
- + brcm,function = <BCM2835_FSEL_ALT4>;
- + brcm,pull = <0 2>;
- + };
- +
- + uart3_pins: uart3_pins {
- + brcm,pins = <4 5>;
- + brcm,function = <BCM2835_FSEL_ALT4>;
- + brcm,pull = <0 2>;
- + };
- +
- + uart4_pins: uart4_pins {
- + brcm,pins = <8 9>;
- + brcm,function = <BCM2835_FSEL_ALT4>;
- + brcm,pull = <0 2>;
- + };
- +
- + uart5_pins: uart5_pins {
- + brcm,pins = <12 13>;
- + brcm,function = <BCM2835_FSEL_ALT4>;
- + brcm,pull = <0 2>;
- + };
- +};
- +
- +&i2c0if {
- + clock-frequency = <100000>;
- +};
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +&i2s {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2s_pins>;
- +};
- +
- +// =============================================
- +// Board specific stuff here
- +
- +&sdhost {
- + status = "disabled";
- +};
- +
- +&phy1 {
- + led-modes = <0x00 0x08>; /* link/activity link */
- +};
- +
- +&gpio {
- + audio_pins: audio_pins {
- + brcm,pins = <40 41>;
- + brcm,function = <4>;
- + };
- +};
- +
- +&leds {
- + act_led: led-act {
- + label = "led0";
- + linux,default-trigger = "mmc0";
- + gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
- + };
- +
- + pwr_led: led-pwr {
- + label = "led1";
- + linux,default-trigger = "default-on";
- + gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
- + };
- +};
- +
- +&pwm1 {
- + status = "disabled";
- +};
- +
- +&audio {
- + pinctrl-names = "default";
- + pinctrl-0 = <&audio_pins>;
- +};
- +
- +&cam1_reg {
- + gpio = <&expgpio 5 GPIO_ACTIVE_HIGH>;
- +};
- +
- +/ {
- + __overrides__ {
- + act_led_gpio = <&act_led>,"gpios:4";
- + act_led_activelow = <&act_led>,"gpios:8";
- + act_led_trigger = <&act_led>,"linux,default-trigger";
- +
- + pwr_led_gpio = <&pwr_led>,"gpios:4";
- + pwr_led_activelow = <&pwr_led>,"gpios:8";
- + pwr_led_trigger = <&pwr_led>,"linux,default-trigger";
- +
- + eth_led0 = <&phy1>,"led-modes:0";
- + eth_led1 = <&phy1>,"led-modes:4";
- +
- + sd_poll_once = <&emmc2>, "non-removable?";
- + spi_dma4 = <&spi0>, "dmas:0=", <&dma40>,
- + <&spi0>, "dmas:8=", <&dma40>;
- + };
- +};
- diff --git a/arch/arm/boot/dts/bcm2711-rpi-400.dts b/arch/arm/boot/dts/bcm2711-rpi-400.dts
- index f4d2fc20397c..bed192b085df 100644
- --- a/arch/arm/boot/dts/bcm2711-rpi-400.dts
- +++ b/arch/arm/boot/dts/bcm2711-rpi-400.dts
- @@ -1,6 +1,9 @@
- // SPDX-License-Identifier: GPL-2.0
- /dts-v1/;
- -#include "bcm2711-rpi-4-b.dts"
- +#include "bcm2711.dtsi"
- +#include "bcm2835-rpi.dtsi"
- +
- +#include <dt-bindings/reset/raspberrypi,firmware-reset.h>
-
- / {
- compatible = "raspberrypi,400", "brcm,bcm2711";
- @@ -11,35 +14,624 @@ chosen {
- stdout-path = "serial1:115200n8";
- };
-
- + /* Will be filled by the bootloader */
- + memory@0 {
- + device_type = "memory";
- + reg = <0 0 0>;
- + };
- +
- + aliases {
- + emmc2bus = &emmc2bus;
- + ethernet0 = &genet;
- + pcie0 = &pcie0;
- + blconfig = &blconfig;
- + };
- +
- leds {
- - /delete-node/ led-act;
- + led-act {
- + gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
- + };
-
- led-pwr {
- - gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
- + label = "PWR";
- + gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
- + default-state = "keep";
- + linux,default-trigger = "default-on";
- + };
- + };
- +
- + wifi_pwrseq: wifi-pwrseq {
- + compatible = "mmc-pwrseq-simple";
- + reset-gpios = <&expgpio 1 GPIO_ACTIVE_LOW>;
- + };
- +
- + sd_io_1v8_reg: sd_io_1v8_reg {
- + compatible = "regulator-gpio";
- + regulator-name = "vdd-sd-io";
- + regulator-min-microvolt = <1800000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-boot-on;
- + regulator-always-on;
- + regulator-settling-time-us = <5000>;
- + gpios = <&expgpio 4 GPIO_ACTIVE_HIGH>;
- + states = <1800000 0x1
- + 3300000 0x0>;
- + status = "okay";
- + };
- +
- + sd_vcc_reg: sd_vcc_reg {
- + compatible = "regulator-fixed";
- + regulator-name = "vcc-sd";
- + regulator-min-microvolt = <3300000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-boot-on;
- + enable-active-high;
- + gpio = <&expgpio 6 GPIO_ACTIVE_HIGH>;
- + };
- +};
- +
- +&ddc0 {
- + status = "okay";
- +};
- +
- +&ddc1 {
- + status = "okay";
- +};
- +
- +&firmware {
- + firmware_clocks: clocks {
- + compatible = "raspberrypi,firmware-clocks";
- + #clock-cells = <1>;
- + };
- +
- + expgpio: gpio {
- + compatible = "raspberrypi,firmware-gpio";
- + gpio-controller;
- + #gpio-cells = <2>;
- + gpio-line-names = "BT_ON",
- + "WL_ON",
- + "PWR_LED_OFF",
- + "GLOBAL_RESET",
- + "VDD_SD_IO_SEL",
- + "GLOBAL_SHUTDOWN",
- + "SD_PWR_ON",
- + "SHUTDOWN_REQUEST";
- + status = "okay";
- + };
- +
- + reset: reset {
- + compatible = "raspberrypi,firmware-reset";
- + #reset-cells = <1>;
- + };
- +};
- +
- +&gpio {
- + /*
- + * Parts taken from rpi_SCH_4b_4p0_reduced.pdf and
- + * the official GPU firmware DT blob.
- + *
- + * Legend:
- + * "FOO" = GPIO line named "FOO" on the schematic
- + * "FOO_N" = GPIO line named "FOO" on schematic, active low
- + */
- + gpio-line-names = "ID_SDA",
- + "ID_SCL",
- + "SDA1",
- + "SCL1",
- + "GPIO_GCLK",
- + "GPIO5",
- + "GPIO6",
- + "SPI_CE1_N",
- + "SPI_CE0_N",
- + "SPI_MISO",
- + "SPI_MOSI",
- + "SPI_SCLK",
- + "GPIO12",
- + "GPIO13",
- + /* Serial port */
- + "TXD1",
- + "RXD1",
- + "GPIO16",
- + "GPIO17",
- + "GPIO18",
- + "GPIO19",
- + "GPIO20",
- + "GPIO21",
- + "GPIO22",
- + "GPIO23",
- + "GPIO24",
- + "GPIO25",
- + "GPIO26",
- + "GPIO27",
- + "RGMII_MDIO",
- + "RGMIO_MDC",
- + /* Used by BT module */
- + "CTS0",
- + "RTS0",
- + "TXD0",
- + "RXD0",
- + /* Used by Wifi */
- + "SD1_CLK",
- + "SD1_CMD",
- + "SD1_DATA0",
- + "SD1_DATA1",
- + "SD1_DATA2",
- + "SD1_DATA3",
- + /* Shared with SPI flash */
- + "PWM0_MISO",
- + "PWM1_MOSI",
- + "STATUS_LED_G_CLK",
- + "SPIFLASH_CE_N",
- + "SDA0",
- + "SCL0",
- + "RGMII_RXCLK",
- + "RGMII_RXCTL",
- + "RGMII_RXD0",
- + "RGMII_RXD1",
- + "RGMII_RXD2",
- + "RGMII_RXD3",
- + "RGMII_TXCLK",
- + "RGMII_TXCTL",
- + "RGMII_TXD0",
- + "RGMII_TXD1",
- + "RGMII_TXD2",
- + "RGMII_TXD3";
- +};
- +
- +&hdmi0 {
- + clocks = <&firmware_clocks 13>, <&firmware_clocks 14>, <&dvp 0>, <&clk_27MHz>;
- + clock-names = "hdmi", "bvb", "audio", "cec";
- + wifi-2.4ghz-coexistence;
- + status = "okay";
- +};
- +
- +&hdmi1 {
- + clocks = <&firmware_clocks 13>, <&firmware_clocks 14>, <&dvp 1>, <&clk_27MHz>;
- + clock-names = "hdmi", "bvb", "audio", "cec";
- + wifi-2.4ghz-coexistence;
- + status = "okay";
- +};
- +
- +&hvs {
- + clocks = <&firmware_clocks 4>;
- +};
- +
- +&pixelvalve0 {
- + status = "okay";
- +};
- +
- +&pixelvalve1 {
- + status = "okay";
- +};
- +
- +&pixelvalve2 {
- + status = "okay";
- +};
- +
- +&pixelvalve4 {
- + status = "okay";
- +};
- +
- +&pwm1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&pwm1_0_gpio40 &pwm1_1_gpio41>;
- + status = "okay";
- +};
- +
- +&rmem {
- + /*
- + * RPi4's co-processor will copy the board's bootloader configuration
- + * into memory for the OS to consume. It'll also update this node with
- + * its placement information.
- + */
- + blconfig: nvram@0 {
- + compatible = "raspberrypi,bootloader-config", "nvmem-rmem";
- + #address-cells = <1>;
- + #size-cells = <1>;
- + reg = <0x0 0x0 0x0>;
- + no-map;
- + status = "disabled";
- + };
- +};
- +
- +/* SDHCI is used to control the SDIO for wireless */
- +&sdhci {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&emmc_gpio34>;
- + bus-width = <4>;
- + non-removable;
- + mmc-pwrseq = <&wifi_pwrseq>;
- + status = "okay";
- +
- + brcmf: wifi@1 {
- + reg = <1>;
- + compatible = "brcm,bcm4329-fmac";
- + };
- +};
- +
- +/* EMMC2 is used to drive the SD card */
- +&emmc2 {
- + vqmmc-supply = <&sd_io_1v8_reg>;
- + vmmc-supply = <&sd_vcc_reg>;
- + broken-cd;
- + status = "okay";
- +};
- +
- +&genet {
- + phy-handle = <&phy1>;
- + phy-mode = "rgmii-rxid";
- + status = "okay";
- +};
- +
- +&genet_mdio {
- + phy1: ethernet-phy@1 {
- + /* No PHY interrupt */
- + reg = <0x1>;
- + };
- +};
- +
- +&pcie0 {
- + pci@0,0 {
- + device-type = "pci";
- + #address-cells = <3>;
- + #size-cells = <2>;
- + ranges;
- +
- + reg = <0 0 0 0 0>;
- +
- + usb@0,0 {
- + reg = <0x0 0 0 0 0>;
- + resets = <&reset RASPBERRYPI_FIRMWARE_RESET_ID_USB>;
- };
- };
- +};
- +
- +/* uart0 communicates with the BT module */
- +&uart0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart0_ctsrts_gpio30 &uart0_gpio32>;
- + uart-has-rtscts;
- + status = "okay";
- +
- + bluetooth {
- + compatible = "brcm,bcm43438-bt";
- + max-speed = <2000000>;
- + shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>;
- + };
- +};
- +
- +/* uart1 is mapped to the pin header */
- +&uart1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart1_gpio14>;
- + status = "okay";
- +};
- +
- +&vchiq {
- + interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
- +};
- +
- +&vc4 {
- + status = "okay";
- +};
- +
- +&vec {
- + status = "disabled";
- +};
- +
- +// =============================================
- +// Downstream rpi- changes
- +
- +#define BCM2711
- +
- +#include "bcm270x.dtsi"
- +#include "bcm271x-rpi-bt.dtsi"
- +
- +/ {
- + soc {
- + /delete-node/ pixelvalve@7e807000;
- + /delete-node/ hdmi@7e902000;
- + };
- +};
-
- - gpio-poweroff {
- +#include "bcm2711-rpi-ds.dtsi"
- +#include "bcm283x-rpi-csi1-2lane.dtsi"
- +#include "bcm283x-rpi-i2c0mux_0_44.dtsi"
- +
- +/ {
- + chosen {
- + bootargs = "coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1";
- + };
- +
- + aliases {
- + serial0 = &uart1;
- + serial1 = &uart0;
- + mmc0 = &emmc2;
- + mmc1 = &mmcnr;
- + mmc2 = &sdhost;
- + i2c3 = &i2c3;
- + i2c4 = &i2c4;
- + i2c5 = &i2c5;
- + i2c6 = &i2c6;
- + i2c20 = &ddc0;
- + i2c21 = &ddc1;
- + spi3 = &spi3;
- + spi4 = &spi4;
- + spi5 = &spi5;
- + spi6 = &spi6;
- + /delete-property/ intc;
- + };
- +
- + /delete-node/ wifi-pwrseq;
- +};
- +
- +&mmcnr {
- + pinctrl-names = "default";
- + pinctrl-0 = <&sdio_pins>;
- + bus-width = <4>;
- + status = "okay";
- +};
- +
- +&uart0 {
- + pinctrl-0 = <&uart0_pins &bt_pins>;
- + status = "okay";
- +};
- +
- +&uart1 {
- + pinctrl-0 = <&uart1_pins>;
- +};
- +
- +&spi0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
- + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
- +
- + spidev0: spidev@0{
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +
- + spidev1: spidev@1{
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +};
- +
- +&gpio {
- + spi0_pins: spi0_pins {
- + brcm,pins = <9 10 11>;
- + brcm,function = <BCM2835_FSEL_ALT0>;
- + };
- +
- + spi0_cs_pins: spi0_cs_pins {
- + brcm,pins = <8 7>;
- + brcm,function = <BCM2835_FSEL_GPIO_OUT>;
- + };
- +
- + spi3_pins: spi3_pins {
- + brcm,pins = <1 2 3>;
- + brcm,function = <BCM2835_FSEL_ALT3>;
- + };
- +
- + spi3_cs_pins: spi3_cs_pins {
- + brcm,pins = <0 24>;
- + brcm,function = <BCM2835_FSEL_GPIO_OUT>;
- + };
- +
- + spi4_pins: spi4_pins {
- + brcm,pins = <5 6 7>;
- + brcm,function = <BCM2835_FSEL_ALT3>;
- + };
- +
- + spi4_cs_pins: spi4_cs_pins {
- + brcm,pins = <4 25>;
- + brcm,function = <BCM2835_FSEL_GPIO_OUT>;
- + };
- +
- + spi5_pins: spi5_pins {
- + brcm,pins = <13 14 15>;
- + brcm,function = <BCM2835_FSEL_ALT3>;
- + };
- +
- + spi5_cs_pins: spi5_cs_pins {
- + brcm,pins = <12 26>;
- + brcm,function = <BCM2835_FSEL_GPIO_OUT>;
- + };
- +
- + spi6_pins: spi6_pins {
- + brcm,pins = <19 20 21>;
- + brcm,function = <BCM2835_FSEL_ALT3>;
- + };
- +
- + spi6_cs_pins: spi6_cs_pins {
- + brcm,pins = <18 27>;
- + brcm,function = <BCM2835_FSEL_GPIO_OUT>;
- + };
- +
- + i2c0_pins: i2c0 {
- + brcm,pins = <0 1>;
- + brcm,function = <BCM2835_FSEL_ALT0>;
- + brcm,pull = <BCM2835_PUD_UP>;
- + };
- +
- + i2c1_pins: i2c1 {
- + brcm,pins = <2 3>;
- + brcm,function = <BCM2835_FSEL_ALT0>;
- + brcm,pull = <BCM2835_PUD_UP>;
- + };
- +
- + i2c3_pins: i2c3 {
- + brcm,pins = <4 5>;
- + brcm,function = <BCM2835_FSEL_ALT5>;
- + brcm,pull = <BCM2835_PUD_UP>;
- + };
- +
- + i2c4_pins: i2c4 {
- + brcm,pins = <8 9>;
- + brcm,function = <BCM2835_FSEL_ALT5>;
- + brcm,pull = <BCM2835_PUD_UP>;
- + };
- +
- + i2c5_pins: i2c5 {
- + brcm,pins = <12 13>;
- + brcm,function = <BCM2835_FSEL_ALT5>;
- + brcm,pull = <BCM2835_PUD_UP>;
- + };
- +
- + i2c6_pins: i2c6 {
- + brcm,pins = <22 23>;
- + brcm,function = <BCM2835_FSEL_ALT5>;
- + brcm,pull = <BCM2835_PUD_UP>;
- + };
- +
- + i2s_pins: i2s {
- + brcm,pins = <18 19 20 21>;
- + brcm,function = <BCM2835_FSEL_ALT0>;
- + };
- +
- + sdio_pins: sdio_pins {
- + brcm,pins = <34 35 36 37 38 39>;
- + brcm,function = <BCM2835_FSEL_ALT3>; // alt3 = SD1
- + brcm,pull = <0 2 2 2 2 2>;
- + };
- +
- + bt_pins: bt_pins {
- + brcm,pins = "-"; // non-empty to keep btuart happy, //4 = 0
- + // to fool pinctrl
- + brcm,function = <0>;
- + brcm,pull = <2>;
- + };
- +
- + uart0_pins: uart0_pins {
- + brcm,pins = <32 33>;
- + brcm,function = <BCM2835_FSEL_ALT3>;
- + brcm,pull = <0 2>;
- + };
- +
- + uart1_pins: uart1_pins {
- + brcm,pins;
- + brcm,function;
- + brcm,pull;
- + };
- +
- + uart2_pins: uart2_pins {
- + brcm,pins = <0 1>;
- + brcm,function = <BCM2835_FSEL_ALT4>;
- + brcm,pull = <0 2>;
- + };
- +
- + uart3_pins: uart3_pins {
- + brcm,pins = <4 5>;
- + brcm,function = <BCM2835_FSEL_ALT4>;
- + brcm,pull = <0 2>;
- + };
- +
- + uart4_pins: uart4_pins {
- + brcm,pins = <8 9>;
- + brcm,function = <BCM2835_FSEL_ALT4>;
- + brcm,pull = <0 2>;
- + };
- +
- + uart5_pins: uart5_pins {
- + brcm,pins = <12 13>;
- + brcm,function = <BCM2835_FSEL_ALT4>;
- + brcm,pull = <0 2>;
- + };
- +};
- +
- +&i2c0if {
- + clock-frequency = <100000>;
- +};
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +&i2s {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2s_pins>;
- +};
- +
- +// =============================================
- +// Board specific stuff here
- +
- +/ {
- + power_ctrl: power_ctrl {
- compatible = "gpio-poweroff";
- - gpios = <&expgpio 5 GPIO_ACTIVE_HIGH>;
- + gpios = <&expgpio 5 0>;
- + force;
- + };
- +};
- +
- +&sdhost {
- + status = "disabled";
- +};
- +
- +&phy1 {
- + led-modes = <0x00 0x08>; /* link/activity link */
- +};
- +
- +&gpio {
- + audio_pins: audio_pins {
- + brcm,pins = <>;
- + brcm,function = <>;
- + };
- +};
- +
- +&leds {
- + act_led: led-act {
- + label = "led0";
- + linux,default-trigger = "default-on";
- + default-state = "on";
- + gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
- + };
- +
- + pwr_led: led-pwr {
- + label = "led1";
- + linux,default-trigger = "default-on";
- + gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
- };
- };
-
- -&expgpio {
- - gpio-line-names = "BT_ON",
- - "WL_ON",
- - "PWR_LED_OFF",
- - "GLOBAL_RESET",
- - "VDD_SD_IO_SEL",
- - "GLOBAL_SHUTDOWN",
- - "SD_PWR_ON",
- - "SHUTDOWN_REQUEST";
- +&pwm1 {
- + status = "disabled";
- +};
- +
- +&audio {
- + pinctrl-names = "default";
- + pinctrl-0 = <&audio_pins>;
- + brcm,disable-headphones = <1>;
- };
-
- &genet_mdio {
- clock-frequency = <1950000>;
- };
-
- -&pm {
- - /delete-property/ system-power-controller;
- +/ {
- + __overrides__ {
- + act_led_gpio = <&act_led>,"gpios:4";
- + act_led_activelow = <&act_led>,"gpios:8";
- + act_led_trigger = <&act_led>,"linux,default-trigger";
- +
- + pwr_led_gpio = <&pwr_led>,"gpios:4";
- + pwr_led_activelow = <&pwr_led>,"gpios:8";
- + pwr_led_trigger = <&pwr_led>,"linux,default-trigger";
- +
- + eth_led0 = <&phy1>,"led-modes:0";
- + eth_led1 = <&phy1>,"led-modes:4";
- +
- + sd_poll_once = <&emmc2>, "non-removable?";
- + spi_dma4 = <&spi0>, "dmas:0=", <&dma40>,
- + <&spi0>, "dmas:8=", <&dma40>;
- + };
- };
- diff --git a/arch/arm/boot/dts/bcm2711-rpi-cm4.dts b/arch/arm/boot/dts/bcm2711-rpi-cm4.dts
- new file mode 100644
- index 000000000000..76dd97513a20
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2711-rpi-cm4.dts
- @@ -0,0 +1,660 @@
- +// SPDX-License-Identifier: GPL-2.0
- +/dts-v1/;
- +#include "bcm2711.dtsi"
- +#include "bcm2835-rpi.dtsi"
- +
- +#include <dt-bindings/reset/raspberrypi,firmware-reset.h>
- +
- +/ {
- + compatible = "raspberrypi,4-compute-module", "brcm,bcm2711";
- + model = "Raspberry Pi Compute Module 4";
- +
- + chosen {
- + /* 8250 auxiliary UART instead of pl011 */
- + stdout-path = "serial1:115200n8";
- + };
- +
- + /* Will be filled by the bootloader */
- + memory@0 {
- + device_type = "memory";
- + reg = <0 0 0>;
- + };
- +
- + aliases {
- + emmc2bus = &emmc2bus;
- + ethernet0 = &genet;
- + pcie0 = &pcie0;
- + blconfig = &blconfig;
- + };
- +
- + leds {
- + led-act {
- + gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
- + };
- +
- + led-pwr {
- + label = "PWR";
- + gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
- + default-state = "keep";
- + linux,default-trigger = "default-on";
- + };
- + };
- +
- + wifi_pwrseq: wifi-pwrseq {
- + compatible = "mmc-pwrseq-simple";
- + reset-gpios = <&expgpio 1 GPIO_ACTIVE_LOW>;
- + };
- +
- + sd_io_1v8_reg: sd_io_1v8_reg {
- + compatible = "regulator-gpio";
- + regulator-name = "vdd-sd-io";
- + regulator-min-microvolt = <1800000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-boot-on;
- + regulator-always-on;
- + regulator-settling-time-us = <5000>;
- + gpios = <&expgpio 4 GPIO_ACTIVE_HIGH>;
- + states = <1800000 0x1
- + 3300000 0x0>;
- + status = "okay";
- + };
- +
- + sd_vcc_reg: sd_vcc_reg {
- + compatible = "regulator-fixed";
- + regulator-name = "vcc-sd";
- + regulator-min-microvolt = <3300000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-boot-on;
- + enable-active-high;
- + gpio = <&expgpio 6 GPIO_ACTIVE_HIGH>;
- + };
- +};
- +
- +&ddc0 {
- + status = "okay";
- +};
- +
- +&ddc1 {
- + status = "okay";
- +};
- +
- +&firmware {
- + firmware_clocks: clocks {
- + compatible = "raspberrypi,firmware-clocks";
- + #clock-cells = <1>;
- + };
- +
- + expgpio: gpio {
- + compatible = "raspberrypi,firmware-gpio";
- + gpio-controller;
- + #gpio-cells = <2>;
- + gpio-line-names = "BT_ON",
- + "WL_ON",
- + "PWR_LED_OFF",
- + "ANT1",
- + "VDD_SD_IO_SEL",
- + "CAM_GPIO",
- + "SD_PWR_ON",
- + "ANT2";
- + status = "okay";
- +
- + ant1: ant1 {
- + gpio-hog;
- + gpios = <3 GPIO_ACTIVE_HIGH>;
- + output-high;
- + };
- +
- + ant2: ant2 {
- + gpio-hog;
- + gpios = <7 GPIO_ACTIVE_HIGH>;
- + output-low;
- + };
- + };
- +
- + reset: reset {
- + compatible = "raspberrypi,firmware-reset";
- + #reset-cells = <1>;
- + };
- +};
- +
- +&gpio {
- + /*
- + * Parts taken from rpi_SCH_4b_4p0_reduced.pdf and
- + * the official GPU firmware DT blob.
- + *
- + * Legend:
- + * "FOO" = GPIO line named "FOO" on the schematic
- + * "FOO_N" = GPIO line named "FOO" on schematic, active low
- + */
- + gpio-line-names = "ID_SDA",
- + "ID_SCL",
- + "SDA1",
- + "SCL1",
- + "GPIO_GCLK",
- + "GPIO5",
- + "GPIO6",
- + "SPI_CE1_N",
- + "SPI_CE0_N",
- + "SPI_MISO",
- + "SPI_MOSI",
- + "SPI_SCLK",
- + "GPIO12",
- + "GPIO13",
- + /* Serial port */
- + "TXD1",
- + "RXD1",
- + "GPIO16",
- + "GPIO17",
- + "GPIO18",
- + "GPIO19",
- + "GPIO20",
- + "GPIO21",
- + "GPIO22",
- + "GPIO23",
- + "GPIO24",
- + "GPIO25",
- + "GPIO26",
- + "GPIO27",
- + "RGMII_MDIO",
- + "RGMIO_MDC",
- + /* Used by BT module */
- + "CTS0",
- + "RTS0",
- + "TXD0",
- + "RXD0",
- + /* Used by Wifi */
- + "SD1_CLK",
- + "SD1_CMD",
- + "SD1_DATA0",
- + "SD1_DATA1",
- + "SD1_DATA2",
- + "SD1_DATA3",
- + /* Shared with SPI flash */
- + "PWM0_MISO",
- + "PWM1_MOSI",
- + "STATUS_LED_G_CLK",
- + "SPIFLASH_CE_N",
- + "SDA0",
- + "SCL0",
- + "RGMII_RXCLK",
- + "RGMII_RXCTL",
- + "RGMII_RXD0",
- + "RGMII_RXD1",
- + "RGMII_RXD2",
- + "RGMII_RXD3",
- + "RGMII_TXCLK",
- + "RGMII_TXCTL",
- + "RGMII_TXD0",
- + "RGMII_TXD1",
- + "RGMII_TXD2",
- + "RGMII_TXD3";
- +};
- +
- +&hdmi0 {
- + clocks = <&firmware_clocks 13>, <&firmware_clocks 14>, <&dvp 0>, <&clk_27MHz>;
- + clock-names = "hdmi", "bvb", "audio", "cec";
- + wifi-2.4ghz-coexistence;
- + status = "okay";
- +};
- +
- +&hdmi1 {
- + clocks = <&firmware_clocks 13>, <&firmware_clocks 14>, <&dvp 1>, <&clk_27MHz>;
- + clock-names = "hdmi", "bvb", "audio", "cec";
- + wifi-2.4ghz-coexistence;
- + status = "okay";
- +};
- +
- +&hvs {
- + clocks = <&firmware_clocks 4>;
- +};
- +
- +&pixelvalve0 {
- + status = "okay";
- +};
- +
- +&pixelvalve1 {
- + status = "okay";
- +};
- +
- +&pixelvalve2 {
- + status = "okay";
- +};
- +
- +&pixelvalve4 {
- + status = "okay";
- +};
- +
- +&pwm1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&pwm1_0_gpio40 &pwm1_1_gpio41>;
- + status = "okay";
- +};
- +
- +&rmem {
- + /*
- + * RPi4's co-processor will copy the board's bootloader configuration
- + * into memory for the OS to consume. It'll also update this node with
- + * its placement information.
- + */
- + blconfig: nvram@0 {
- + compatible = "raspberrypi,bootloader-config", "nvmem-rmem";
- + #address-cells = <1>;
- + #size-cells = <1>;
- + reg = <0x0 0x0 0x0>;
- + no-map;
- + status = "disabled";
- + };
- +};
- +
- +/* SDHCI is used to control the SDIO for wireless */
- +&sdhci {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&emmc_gpio34>;
- + bus-width = <4>;
- + non-removable;
- + mmc-pwrseq = <&wifi_pwrseq>;
- + status = "okay";
- +
- + brcmf: wifi@1 {
- + reg = <1>;
- + compatible = "brcm,bcm4329-fmac";
- + };
- +};
- +
- +/* EMMC2 is used to drive the EMMC card */
- +&emmc2 {
- + bus-width = <8>;
- + vqmmc-supply = <&sd_io_1v8_reg>;
- + vmmc-supply = <&sd_vcc_reg>;
- + broken-cd;
- + status = "okay";
- +};
- +
- +&genet {
- + phy-handle = <&phy1>;
- + phy-mode = "rgmii-rxid";
- + status = "okay";
- +};
- +
- +&genet_mdio {
- + phy1: ethernet-phy@0 {
- + /* No PHY interrupt */
- + reg = <0x0>;
- + };
- +};
- +
- +&pcie0 {
- + pci@0,0 {
- + device-type = "pci";
- + #address-cells = <3>;
- + #size-cells = <2>;
- + ranges;
- +
- + reg = <0 0 0 0 0>;
- +
- + usb@0,0 {
- + reg = <0 0 0 0 0>;
- + resets = <&reset RASPBERRYPI_FIRMWARE_RESET_ID_USB>;
- + };
- + };
- +};
- +
- +/* uart0 communicates with the BT module */
- +&uart0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart0_ctsrts_gpio30 &uart0_gpio32>;
- + uart-has-rtscts;
- + status = "okay";
- +
- + bluetooth {
- + compatible = "brcm,bcm43438-bt";
- + max-speed = <2000000>;
- + shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>;
- + };
- +};
- +
- +/* uart1 is mapped to the pin header */
- +&uart1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart1_gpio14>;
- + status = "okay";
- +};
- +
- +&vchiq {
- + interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
- +};
- +
- +&vc4 {
- + status = "okay";
- +};
- +
- +&vec {
- + status = "disabled";
- +};
- +
- +// =============================================
- +// Downstream rpi- changes
- +
- +#define BCM2711
- +
- +#include "bcm270x.dtsi"
- +#include "bcm271x-rpi-bt.dtsi"
- +
- +/ {
- + soc {
- + /delete-node/ pixelvalve@7e807000;
- + /delete-node/ hdmi@7e902000;
- + };
- +};
- +
- +#include "bcm2711-rpi-ds.dtsi"
- +#include "bcm283x-rpi-csi0-2lane.dtsi"
- +#include "bcm283x-rpi-csi1-4lane.dtsi"
- +#include "bcm283x-rpi-i2c0mux_0_44.dtsi"
- +#include "bcm283x-rpi-cam1-regulator.dtsi"
- +
- +/ {
- + chosen {
- + bootargs = "coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1";
- + };
- +
- + aliases {
- + serial0 = &uart1;
- + serial1 = &uart0;
- + mmc0 = &emmc2;
- + mmc1 = &mmcnr;
- + mmc2 = &sdhost;
- + i2c3 = &i2c3;
- + i2c4 = &i2c4;
- + i2c5 = &i2c5;
- + i2c6 = &i2c6;
- + i2c20 = &ddc0;
- + i2c21 = &ddc1;
- + spi3 = &spi3;
- + spi4 = &spi4;
- + spi5 = &spi5;
- + spi6 = &spi6;
- + /delete-property/ intc;
- + };
- +
- + /delete-node/ wifi-pwrseq;
- +};
- +
- +&mmcnr {
- + pinctrl-names = "default";
- + pinctrl-0 = <&sdio_pins>;
- + bus-width = <4>;
- + status = "okay";
- +};
- +
- +&uart0 {
- + pinctrl-0 = <&uart0_pins &bt_pins>;
- + status = "okay";
- +};
- +
- +&uart1 {
- + pinctrl-0 = <&uart1_pins>;
- +};
- +
- +&spi0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
- + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
- +
- + spidev0: spidev@0{
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +
- + spidev1: spidev@1{
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + };
- +};
- +
- +&gpio {
- + spi0_pins: spi0_pins {
- + brcm,pins = <9 10 11>;
- + brcm,function = <BCM2835_FSEL_ALT0>;
- + };
- +
- + spi0_cs_pins: spi0_cs_pins {
- + brcm,pins = <8 7>;
- + brcm,function = <BCM2835_FSEL_GPIO_OUT>;
- + };
- +
- + spi3_pins: spi3_pins {
- + brcm,pins = <1 2 3>;
- + brcm,function = <BCM2835_FSEL_ALT3>;
- + };
- +
- + spi3_cs_pins: spi3_cs_pins {
- + brcm,pins = <0 24>;
- + brcm,function = <BCM2835_FSEL_GPIO_OUT>;
- + };
- +
- + spi4_pins: spi4_pins {
- + brcm,pins = <5 6 7>;
- + brcm,function = <BCM2835_FSEL_ALT3>;
- + };
- +
- + spi4_cs_pins: spi4_cs_pins {
- + brcm,pins = <4 25>;
- + brcm,function = <BCM2835_FSEL_GPIO_OUT>;
- + };
- +
- + spi5_pins: spi5_pins {
- + brcm,pins = <13 14 15>;
- + brcm,function = <BCM2835_FSEL_ALT3>;
- + };
- +
- + spi5_cs_pins: spi5_cs_pins {
- + brcm,pins = <12 26>;
- + brcm,function = <BCM2835_FSEL_GPIO_OUT>;
- + };
- +
- + spi6_pins: spi6_pins {
- + brcm,pins = <19 20 21>;
- + brcm,function = <BCM2835_FSEL_ALT3>;
- + };
- +
- + spi6_cs_pins: spi6_cs_pins {
- + brcm,pins = <18 27>;
- + brcm,function = <BCM2835_FSEL_GPIO_OUT>;
- + };
- +
- + i2c0_pins: i2c0 {
- + brcm,pins = <0 1>;
- + brcm,function = <BCM2835_FSEL_ALT0>;
- + brcm,pull = <BCM2835_PUD_UP>;
- + };
- +
- + i2c1_pins: i2c1 {
- + brcm,pins = <2 3>;
- + brcm,function = <BCM2835_FSEL_ALT0>;
- + brcm,pull = <BCM2835_PUD_UP>;
- + };
- +
- + i2c3_pins: i2c3 {
- + brcm,pins = <4 5>;
- + brcm,function = <BCM2835_FSEL_ALT5>;
- + brcm,pull = <BCM2835_PUD_UP>;
- + };
- +
- + i2c4_pins: i2c4 {
- + brcm,pins = <8 9>;
- + brcm,function = <BCM2835_FSEL_ALT5>;
- + brcm,pull = <BCM2835_PUD_UP>;
- + };
- +
- + i2c5_pins: i2c5 {
- + brcm,pins = <12 13>;
- + brcm,function = <BCM2835_FSEL_ALT5>;
- + brcm,pull = <BCM2835_PUD_UP>;
- + };
- +
- + i2c6_pins: i2c6 {
- + brcm,pins = <22 23>;
- + brcm,function = <BCM2835_FSEL_ALT5>;
- + brcm,pull = <BCM2835_PUD_UP>;
- + };
- +
- + i2s_pins: i2s {
- + brcm,pins = <18 19 20 21>;
- + brcm,function = <BCM2835_FSEL_ALT0>;
- + };
- +
- + sdio_pins: sdio_pins {
- + brcm,pins = <34 35 36 37 38 39>;
- + brcm,function = <BCM2835_FSEL_ALT3>; // alt3 = SD1
- + brcm,pull = <0 2 2 2 2 2>;
- + };
- +
- + bt_pins: bt_pins {
- + brcm,pins = "-"; // non-empty to keep btuart happy, //4 = 0
- + // to fool pinctrl
- + brcm,function = <0>;
- + brcm,pull = <2>;
- + };
- +
- + uart0_pins: uart0_pins {
- + brcm,pins = <32 33>;
- + brcm,function = <BCM2835_FSEL_ALT3>;
- + brcm,pull = <0 2>;
- + };
- +
- + uart1_pins: uart1_pins {
- + brcm,pins;
- + brcm,function;
- + brcm,pull;
- + };
- +
- + uart2_pins: uart2_pins {
- + brcm,pins = <0 1>;
- + brcm,function = <BCM2835_FSEL_ALT4>;
- + brcm,pull = <0 2>;
- + };
- +
- + uart3_pins: uart3_pins {
- + brcm,pins = <4 5>;
- + brcm,function = <BCM2835_FSEL_ALT4>;
- + brcm,pull = <0 2>;
- + };
- +
- + uart4_pins: uart4_pins {
- + brcm,pins = <8 9>;
- + brcm,function = <BCM2835_FSEL_ALT4>;
- + brcm,pull = <0 2>;
- + };
- +
- + uart5_pins: uart5_pins {
- + brcm,pins = <12 13>;
- + brcm,function = <BCM2835_FSEL_ALT4>;
- + brcm,pull = <0 2>;
- + };
- +};
- +
- +&i2c0if {
- + clock-frequency = <100000>;
- +};
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +&i2s {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2s_pins>;
- +};
- +
- +// =============================================
- +// Board specific stuff here
- +
- +&pcie0 {
- + brcm,enable-l1ss;
- +};
- +
- +&sdhost {
- + status = "disabled";
- +};
- +
- +&phy1 {
- + led-modes = <0x00 0x08>; /* link/activity link */
- +};
- +
- +&gpio {
- + audio_pins: audio_pins {
- + brcm,pins = <>;
- + brcm,function = <>;
- + };
- +};
- +
- +&leds {
- + act_led: led-act {
- + label = "led0";
- + linux,default-trigger = "mmc0";
- + gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
- + };
- +
- + pwr_led: led-pwr {
- + label = "led1";
- + linux,default-trigger = "default-on";
- + gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
- + };
- +};
- +
- +&pwm1 {
- + status = "disabled";
- +};
- +
- +&audio {
- + pinctrl-names = "default";
- + pinctrl-0 = <&audio_pins>;
- + brcm,disable-headphones = <1>;
- +};
- +
- +cam0_reg: &cam1_reg {
- + gpio = <&expgpio 5 GPIO_ACTIVE_HIGH>;
- +};
- +
- +/ {
- + __overrides__ {
- + act_led_gpio = <&act_led>,"gpios:4";
- + act_led_activelow = <&act_led>,"gpios:8";
- + act_led_trigger = <&act_led>,"linux,default-trigger";
- +
- + pwr_led_gpio = <&pwr_led>,"gpios:4";
- + pwr_led_activelow = <&pwr_led>,"gpios:8";
- + pwr_led_trigger = <&pwr_led>,"linux,default-trigger";
- +
- + eth_led0 = <&phy1>,"led-modes:0";
- + eth_led1 = <&phy1>,"led-modes:4";
- +
- + ant1 = <&ant1>,"output-high?=on",
- + <&ant1>, "output-low?=off",
- + <&ant2>, "output-high?=off",
- + <&ant2>, "output-low?=on";
- + ant2 = <&ant1>,"output-high?=off",
- + <&ant1>, "output-low?=on",
- + <&ant2>, "output-high?=on",
- + <&ant2>, "output-low?=off";
- + noant = <&ant1>,"output-high?=off",
- + <&ant1>, "output-low?=on",
- + <&ant2>, "output-high?=off",
- + <&ant2>, "output-low?=on";
- +
- + sd_poll_once = <&emmc2>, "non-removable?";
- + spi_dma4 = <&spi0>, "dmas:0=", <&dma40>,
- + <&spi0>, "dmas:8=", <&dma40>;
- + };
- +};
- diff --git a/arch/arm/boot/dts/bcm2711-rpi-ds.dtsi b/arch/arm/boot/dts/bcm2711-rpi-ds.dtsi
- new file mode 100644
- index 000000000000..ebf73b789b4a
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2711-rpi-ds.dtsi
- @@ -0,0 +1,205 @@
- +// SPDX-License-Identifier: GPL-2.0
- +#include "bcm270x-rpi.dtsi"
- +
- +/ {
- + __overrides__ {
- + arm_freq;
- + };
- +
- + v3dbus: v3dbus {
- + compatible = "simple-bus";
- + #address-cells = <1>;
- + #size-cells = <2>;
- + ranges = <0x7c500000 0x0 0xfc500000 0x0 0x03300000>,
- + <0x40000000 0x0 0xff800000 0x0 0x00800000>;
- + dma-ranges = <0x00000000 0x0 0x00000000 0x4 0x00000000>;
- +
- + v3d: v3d@7ec04000 {
- + compatible = "brcm,2711-v3d";
- + reg =
- + <0x7ec00000 0x0 0x4000>,
- + <0x7ec04000 0x0 0x4000>;
- + reg-names = "hub", "core0";
- +
- + power-domains = <&pm BCM2835_POWER_DOMAIN_GRAFX_V3D>;
- + resets = <&pm BCM2835_RESET_V3D>;
- + clocks = <&firmware_clocks 5>;
- + clocks-names = "v3d";
- + interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
- + status = "disabled";
- + };
- + };
- +
- + scb: scb {
- + /* Add a label */
- + };
- +};
- +
- +&vc4 {
- + raspberrypi,firmware = <&firmware>;
- +};
- +
- +&cma {
- + /* Limit cma to the lower 768MB to allow room for HIGHMEM on 32-bit */
- + alloc-ranges = <0x0 0x00000000 0x30000000>;
- +};
- +
- +&scb {
- + ranges = <0x0 0x7c000000 0x0 0xfc000000 0x0 0x03800000>,
- + <0x0 0x40000000 0x0 0xff800000 0x0 0x00800000>,
- + <0x6 0x00000000 0x6 0x00000000 0x0 0x40000000>,
- + <0x0 0x00000000 0x0 0x00000000 0x0 0xfc000000>;
- + dma-ranges = <0x0 0x00000000 0x0 0x00000000 0x4 0x00000000>;
- +
- + dma40: dma@7e007b00 {
- + compatible = "brcm,bcm2711-dma";
- + reg = <0x0 0x7e007b00 0x0 0x400>;
- + interrupts =
- + <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>, /* dma4 11 */
- + <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>, /* dma4 12 */
- + <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>, /* dma4 13 */
- + <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>; /* dma4 14 */
- + interrupt-names = "dma11",
- + "dma12",
- + "dma13",
- + "dma14";
- + #dma-cells = <1>;
- + brcm,dma-channel-mask = <0x7800>;
- + };
- +
- + xhci: xhci@7e9c0000 {
- + compatible = "generic-xhci";
- + status = "disabled";
- + reg = <0x0 0x7e9c0000 0x0 0x100000>;
- + interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;
- + power-domains = <&power RPI_POWER_DOMAIN_USB>;
- + };
- +
- + hevc-decoder@7eb00000 {
- + compatible = "raspberrypi,rpivid-hevc-decoder";
- + reg = <0x0 0x7eb00000 0x0 0x10000>;
- + status = "okay";
- + };
- +
- + rpivid-local-intc@7eb10000 {
- + compatible = "raspberrypi,rpivid-local-intc";
- + reg = <0x0 0x7eb10000 0x0 0x1000>;
- + status = "okay";
- + interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
- + };
- +
- + h264-decoder@7eb20000 {
- + compatible = "raspberrypi,rpivid-h264-decoder";
- + reg = <0x0 0x7eb20000 0x0 0x10000>;
- + status = "okay";
- + };
- +
- + vp9-decoder@7eb30000 {
- + compatible = "raspberrypi,rpivid-vp9-decoder";
- + reg = <0x0 0x7eb30000 0x0 0x10000>;
- + status = "okay";
- + };
- +};
- +
- +&dma40 {
- + /* The VPU firmware uses DMA channel 11 for VCHIQ */
- + brcm,dma-channel-mask = <0x7000>;
- +};
- +
- +&vchiq {
- + compatible = "brcm,bcm2711-vchiq";
- +};
- +
- +&firmwarekms {
- + compatible = "raspberrypi,rpi-firmware-kms-2711";
- + interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
- +};
- +
- +&smi {
- + interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
- +};
- +
- +&mmc {
- + interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
- +};
- +
- +&mmcnr {
- + interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
- +};
- +
- +&csi0 {
- + interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
- +};
- +
- +&csi1 {
- + interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
- +};
- +
- +&random {
- + compatible = "brcm,bcm2711-rng200";
- + status = "okay";
- +};
- +
- +&usb {
- + /* Enable the FIQ support */
- + reg = <0x7e980000 0x10000>,
- + <0x7e00b200 0x200>;
- + interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
- + <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
- + status = "disabled";
- +};
- +
- +&gpio {
- + interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
- + <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
- +};
- +
- +&emmc2 {
- + mmc-ddr-3_3v;
- +};
- +
- +&vc4 {
- + status = "disabled";
- +};
- +
- +&pixelvalve0 {
- + status = "disabled";
- +};
- +
- +&pixelvalve1 {
- + status = "disabled";
- +};
- +
- +&pixelvalve2 {
- + status = "disabled";
- +};
- +
- +&pixelvalve3 {
- + status = "disabled";
- +};
- +
- +&pixelvalve4 {
- + status = "disabled";
- +};
- +
- +&hdmi0 {
- + dmas = <&dma (10|(1<<27)|(1<<24)|(10<<16)|(15<<20))>;
- + status = "disabled";
- +};
- +
- +&ddc0 {
- + status = "disabled";
- +};
- +
- +&hdmi1 {
- + dmas = <&dma (17|(1<<27)|(1<<24)|(10<<16)|(15<<20))>;
- + status = "disabled";
- +};
- +
- +&ddc1 {
- + status = "disabled";
- +};
- +
- +&dvp {
- + status = "disabled";
- +};
- diff --git a/arch/arm/boot/dts/bcm2711.dtsi b/arch/arm/boot/dts/bcm2711.dtsi
- index 89af57482bc8..131db82e079d 100644
- --- a/arch/arm/boot/dts/bcm2711.dtsi
- +++ b/arch/arm/boot/dts/bcm2711.dtsi
- @@ -323,6 +323,7 @@ aon_intr: interrupt-controller@7ef00100 {
- interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
- interrupt-controller;
- #interrupt-cells = <1>;
- + status = "disabled";
- };
-
- hdmi0: hdmi@7ef00700 {
- @@ -335,7 +336,8 @@ hdmi0: hdmi@7ef00700 {
- <0x7ef01f00 0x400>,
- <0x7ef00200 0x80>,
- <0x7ef04300 0x100>,
- - <0x7ef20000 0x100>;
- + <0x7ef20000 0x100>,
- + <0x7ef00100 0x30>;
- reg-names = "hdmi",
- "dvp",
- "phy",
- @@ -344,7 +346,12 @@ hdmi0: hdmi@7ef00700 {
- "metadata",
- "csc",
- "cec",
- - "hd";
- + "hd",
- + "intr2";
- + clocks = <&firmware_clocks 13>,
- + <&firmware_clocks 14>,
- + <&dvp 0>,
- + <&clk_27MHz>;
- clock-names = "hdmi", "bvb", "audio", "cec";
- resets = <&dvp 0>;
- interrupt-parent = <&aon_intr>;
- @@ -353,7 +360,7 @@ hdmi0: hdmi@7ef00700 {
- interrupt-names = "cec-tx", "cec-rx", "cec-low",
- "wakeup", "hpd-connected", "hpd-removed";
- ddc = <&ddc0>;
- - dmas = <&dma 10>;
- + dmas = <&dma (10 | (1 << 27) | (1 << 24)| (15 << 20) | (10 << 16))>;
- dma-names = "audio-rx";
- status = "disabled";
- };
- @@ -376,7 +383,8 @@ hdmi1: hdmi@7ef05700 {
- <0x7ef06f00 0x400>,
- <0x7ef00280 0x80>,
- <0x7ef09300 0x100>,
- - <0x7ef20000 0x100>;
- + <0x7ef20000 0x100>,
- + <0x7ef00100 0x30>;
- reg-names = "hdmi",
- "dvp",
- "phy",
- @@ -385,16 +393,21 @@ hdmi1: hdmi@7ef05700 {
- "metadata",
- "csc",
- "cec",
- - "hd";
- + "hd",
- + "intr2";
- ddc = <&ddc1>;
- clock-names = "hdmi", "bvb", "audio", "cec";
- + clocks = <&firmware_clocks 13>,
- + <&firmware_clocks 14>,
- + <&dvp 0>,
- + <&clk_27MHz>;
- resets = <&dvp 1>;
- interrupt-parent = <&aon_intr>;
- interrupts = <8>, <7>, <6>,
- <9>, <10>, <11>;
- interrupt-names = "cec-tx", "cec-rx", "cec-low",
- "wakeup", "hpd-connected", "hpd-removed";
- - dmas = <&dma 17>;
- + dmas = <&dma (17 | (1 << 27) | (1 << 24)| (15 << 20) | (10 << 16))>;
- dma-names = "audio-rx";
- status = "disabled";
- };
- @@ -545,14 +558,14 @@ l2: l2-cache0 {
- scb {
- compatible = "simple-bus";
- #address-cells = <2>;
- - #size-cells = <1>;
- + #size-cells = <2>;
-
- - ranges = <0x0 0x7c000000 0x0 0xfc000000 0x03800000>,
- - <0x6 0x00000000 0x6 0x00000000 0x40000000>;
- + ranges = <0x0 0x7c000000 0x0 0xfc000000 0x0 0x03800000>,
- + <0x6 0x00000000 0x6 0x00000000 0x0 0x40000000>;
-
- pcie0: pcie@7d500000 {
- compatible = "brcm,bcm2711-pcie";
- - reg = <0x0 0x7d500000 0x9310>;
- + reg = <0x0 0x7d500000 0x0 0x9310>;
- device_type = "pci";
- #address-cells = <3>;
- #interrupt-cells = <1>;
- @@ -572,8 +585,8 @@ IRQ_TYPE_LEVEL_HIGH>,
- msi-controller;
- msi-parent = <&pcie0>;
-
- - ranges = <0x02000000 0x0 0xf8000000 0x6 0x00000000
- - 0x0 0x04000000>;
- + ranges = <0x02000000 0x0 0xc0000000 0x6 0x00000000
- + 0x0 0x40000000>;
- /*
- * The wrapper around the PCIe block has a bug
- * preventing it from accessing beyond the first 3GB of
- @@ -586,7 +599,7 @@ IRQ_TYPE_LEVEL_HIGH>,
-
- genet: ethernet@7d580000 {
- compatible = "brcm,bcm2711-genet-v5";
- - reg = <0x0 0x7d580000 0x10000>;
- + reg = <0x0 0x7d580000 0x0 0x10000>;
- #address-cells = <0x1>;
- #size-cells = <0x1>;
- interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
- @@ -1096,7 +1109,7 @@ &cma {
- alloc-ranges = <0x0 0x00000000 0x40000000>;
- };
-
- -&i2c0 {
- +&i2c0if {
- compatible = "brcm,bcm2711-i2c", "brcm,bcm2835-i2c";
- interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
- };
- @@ -1152,8 +1165,3 @@ &uart1 {
- &usb {
- interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
- };
- -
- -&vec {
- - compatible = "brcm,bcm2711-vec";
- - interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
- -};
- diff --git a/arch/arm/boot/dts/bcm271x-rpi-bt.dtsi b/arch/arm/boot/dts/bcm271x-rpi-bt.dtsi
- new file mode 100644
- index 000000000000..6b9b79f74cf3
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm271x-rpi-bt.dtsi
- @@ -0,0 +1,26 @@
- +// SPDX-License-Identifier: GPL-2.0
- +
- +&uart0 {
- + bt: bluetooth {
- + compatible = "brcm,bcm43438-bt";
- + max-speed = <3000000>;
- + shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>;
- + status = "disabled";
- + };
- +};
- +
- +&uart1 {
- + minibt: bluetooth {
- + compatible = "brcm,bcm43438-bt";
- + max-speed = <460800>;
- + shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>;
- + status = "disabled";
- + };
- +};
- +
- +/ {
- + __overrides__ {
- + krnbt = <&bt>,"status";
- + krnbt_baudrate = <&bt>,"max-speed:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/bcm2835-common.dtsi b/arch/arm/boot/dts/bcm2835-common.dtsi
- index c25e797b9060..06d8c3882cb7 100644
- --- a/arch/arm/boot/dts/bcm2835-common.dtsi
- +++ b/arch/arm/boot/dts/bcm2835-common.dtsi
- @@ -124,12 +124,14 @@ hdmi: hdmi@7e902000 {
- compatible = "brcm,bcm2835-hdmi";
- reg = <0x7e902000 0x600>,
- <0x7e808000 0x100>;
- + reg-names = "hdmi",
- + "hd";
- interrupts = <2 8>, <2 9>;
- ddc = <&i2c2>;
- clocks = <&clocks BCM2835_PLLH_PIX>,
- <&clocks BCM2835_CLOCK_HSM>;
- clock-names = "pixel", "hdmi";
- - dmas = <&dma 17>;
- + dmas = <&dma (17|(1<<27)|(1<<24))>;
- dma-names = "audio-rx";
- status = "disabled";
- };
- diff --git a/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts b/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts
- index 40b9405f1a8e..d2384d8e8555 100644
- --- a/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts
- +++ b/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts
- @@ -126,3 +126,8 @@ &uart0 {
- pinctrl-0 = <&uart0_gpio14>;
- status = "okay";
- };
- +
- +/* i2c on camera/display connector is gpio 28&29 */
- +&i2c0mux {
- + pinctrl-1 = <&i2c0_gpio28>;
- +};
- diff --git a/arch/arm/boot/dts/bcm2835-rpi-a.dts b/arch/arm/boot/dts/bcm2835-rpi-a.dts
- index 11edb581dbaf..4ceca674b752 100644
- --- a/arch/arm/boot/dts/bcm2835-rpi-a.dts
- +++ b/arch/arm/boot/dts/bcm2835-rpi-a.dts
- @@ -121,3 +121,10 @@ &uart0 {
- pinctrl-0 = <&uart0_gpio14>;
- status = "okay";
- };
- +
- +/* i2c0 on camera/display connector is gpio 0&1. Not exposed on header.
- + * To avoid having to remap everything, map both ports to gpios 0&1
- + */
- +&i2c0mux {
- + pinctrl-1 = <&i2c0_gpio0>;
- +};
- diff --git a/arch/arm/boot/dts/bcm2835-rpi-b-plus.dts b/arch/arm/boot/dts/bcm2835-rpi-b-plus.dts
- index 1b435c64bd9c..8f2d10d82fa1 100644
- --- a/arch/arm/boot/dts/bcm2835-rpi-b-plus.dts
- +++ b/arch/arm/boot/dts/bcm2835-rpi-b-plus.dts
- @@ -128,3 +128,8 @@ &uart0 {
- pinctrl-0 = <&uart0_gpio14>;
- status = "okay";
- };
- +
- +/* i2c on camera/display connector is gpio 28&29 */
- +&i2c0mux {
- + pinctrl-1 = <&i2c0_gpio28>;
- +};
- diff --git a/arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts b/arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts
- index a23c25c00eea..547c88a3ae9f 100644
- --- a/arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts
- +++ b/arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts
- @@ -121,3 +121,10 @@ &uart0 {
- pinctrl-0 = <&uart0_gpio14>;
- status = "okay";
- };
- +
- +/* i2c0 on camera/display connector is gpio 0&1. Not exposed on header.
- + * To avoid having to remap everything, map both ports to gpios 0&1
- + */
- +&i2c0mux {
- + pinctrl-1 = <&i2c0_gpio0>;
- +};
- diff --git a/arch/arm/boot/dts/bcm2835-rpi-b.dts b/arch/arm/boot/dts/bcm2835-rpi-b.dts
- index 1b63d6b19750..073fc99ef8a2 100644
- --- a/arch/arm/boot/dts/bcm2835-rpi-b.dts
- +++ b/arch/arm/boot/dts/bcm2835-rpi-b.dts
- @@ -116,3 +116,10 @@ &uart0 {
- pinctrl-0 = <&uart0_gpio14>;
- status = "okay";
- };
- +
- +/* camera/display connector use BSC1 on GPIOS 2&3.
- + * To avoid having to remap everything, map both ports to gpios 0&1
- + */
- +&i2c0mux {
- + pinctrl-1 = <&i2c0_gpio0>;
- +};
- diff --git a/arch/arm/boot/dts/bcm2835-rpi-cm1-io1.dts b/arch/arm/boot/dts/bcm2835-rpi-cm1-io1.dts
- index a75c882e6575..95564c93a645 100644
- --- a/arch/arm/boot/dts/bcm2835-rpi-cm1-io1.dts
- +++ b/arch/arm/boot/dts/bcm2835-rpi-cm1-io1.dts
- @@ -95,3 +95,8 @@ &uart0 {
- pinctrl-0 = <&uart0_gpio14>;
- status = "okay";
- };
- +
- +/* WHAT TO DO HERE? */
- +&i2c0mux {
- + pinctrl-1 = <&i2c0_gpio28>;
- +};
- diff --git a/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts b/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts
- index 33b2b77aa47d..3ea5c7e6be54 100644
- --- a/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts
- +++ b/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts
- @@ -149,3 +149,8 @@ &uart1 {
- pinctrl-0 = <&uart1_gpio14>;
- status = "okay";
- };
- +
- +/* i2c on camera/display connector is gpio 28&29 */
- +&i2c0mux {
- + pinctrl-1 = <&i2c0_gpio28>;
- +};
- diff --git a/arch/arm/boot/dts/bcm2835-rpi-zero.dts b/arch/arm/boot/dts/bcm2835-rpi-zero.dts
- index 6f9b3a908f28..a0eabab12c99 100644
- --- a/arch/arm/boot/dts/bcm2835-rpi-zero.dts
- +++ b/arch/arm/boot/dts/bcm2835-rpi-zero.dts
- @@ -117,3 +117,8 @@ &uart0 {
- pinctrl-0 = <&uart0_gpio14>;
- status = "okay";
- };
- +
- +/* i2c on camera/display connector is gpio 28&29 */
- +&i2c0mux {
- + pinctrl-1 = <&i2c0_gpio28>;
- +};
- diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi
- index 87ddcad76083..edc55bba5ff4 100644
- --- a/arch/arm/boot/dts/bcm2835-rpi.dtsi
- +++ b/arch/arm/boot/dts/bcm2835-rpi.dtsi
- @@ -19,6 +19,11 @@ firmware: firmware {
-
- mboxes = <&mailbox>;
- dma-ranges;
- +
- + firmware_clocks: clocks {
- + compatible = "raspberrypi,firmware-clocks";
- + #clock-cells = <1>;
- + };
- };
-
- power: power {
- @@ -49,13 +54,17 @@ alt0: alt0 {
- };
- };
-
- -&i2c0 {
- - pinctrl-names = "default";
- - pinctrl-0 = <&i2c0_gpio0>;
- +&i2c0if {
- status = "okay";
- clock-frequency = <100000>;
- };
-
- +&i2c0mux {
- + pinctrl-0 = <&i2c0_gpio0>;
- + /* pinctrl-1 varies based on platform */
- + status = "okay";
- +};
- +
- &i2c1 {
- pinctrl-names = "default";
- pinctrl-0 = <&i2c1_gpio2>;
- @@ -67,6 +76,10 @@ &usb {
- power-domains = <&power RPI_POWER_DOMAIN_USB>;
- };
-
- +&vc4 {
- + raspberrypi,firmware = <&firmware>;
- +};
- +
- &vec {
- power-domains = <&power RPI_POWER_DOMAIN_VEC>;
- status = "okay";
- diff --git a/arch/arm/boot/dts/bcm2835.dtsi b/arch/arm/boot/dts/bcm2835.dtsi
- index 0549686134ea..2ea891228ea0 100644
- --- a/arch/arm/boot/dts/bcm2835.dtsi
- +++ b/arch/arm/boot/dts/bcm2835.dtsi
- @@ -19,7 +19,7 @@ cpu@0 {
-
- soc {
- ranges = <0x7e000000 0x20000000 0x02000000>;
- - dma-ranges = <0x40000000 0x00000000 0x20000000>;
- + dma-ranges = <0x80000000 0x00000000 0x20000000>;
- };
-
- arm-pmu {
- diff --git a/arch/arm/boot/dts/bcm2836-rpi-2-b.dts b/arch/arm/boot/dts/bcm2836-rpi-2-b.dts
- index d8af8eeac7b6..bf22b74359d8 100644
- --- a/arch/arm/boot/dts/bcm2836-rpi-2-b.dts
- +++ b/arch/arm/boot/dts/bcm2836-rpi-2-b.dts
- @@ -128,3 +128,8 @@ &uart0 {
- pinctrl-0 = <&uart0_gpio14>;
- status = "okay";
- };
- +
- +/* i2c on camera/display connector is gpio 28&29 */
- +&i2c0mux {
- + pinctrl-1 = <&i2c0_gpio28>;
- +};
- diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts b/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts
- index 77099a7871b0..9529c0475673 100644
- --- a/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts
- +++ b/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts
- @@ -178,3 +178,8 @@ &uart1 {
- pinctrl-0 = <&uart1_gpio14>;
- status = "okay";
- };
- +
- +/* i2c on camera/display connector is gpio 44&45 */
- +&i2c0mux {
- + pinctrl-1 = <&i2c0_gpio44>;
- +};
- diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts b/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts
- index 61010266ca9a..40cb269aed0f 100644
- --- a/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts
- +++ b/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts
- @@ -181,3 +181,8 @@ &uart1 {
- pinctrl-0 = <&uart1_gpio14>;
- status = "okay";
- };
- +
- +/* i2c on camera/display connector is gpio 44&45 */
- +&i2c0mux {
- + pinctrl-1 = <&i2c0_gpio44>;
- +};
- diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
- index dd4a48604097..8f16b6b3fe08 100644
- --- a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
- +++ b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
- @@ -174,3 +174,8 @@ &sdhost {
- status = "okay";
- bus-width = <4>;
- };
- +
- +/* i2c on camera/display connector is gpio 44&45 */
- +&i2c0mux {
- + pinctrl-1 = <&i2c0_gpio44>;
- +};
- diff --git a/arch/arm/boot/dts/bcm2837-rpi-cm3-io3.dts b/arch/arm/boot/dts/bcm2837-rpi-cm3-io3.dts
- index 588d9411ceb6..dde209ade51b 100644
- --- a/arch/arm/boot/dts/bcm2837-rpi-cm3-io3.dts
- +++ b/arch/arm/boot/dts/bcm2837-rpi-cm3-io3.dts
- @@ -94,3 +94,8 @@ &uart0 {
- pinctrl-0 = <&uart0_gpio14>;
- status = "okay";
- };
- +
- +/* WHAT TO DO HERE? */
- +&i2c0mux {
- + pinctrl-1 = <&i2c0_gpio28>;
- +};
- diff --git a/arch/arm/boot/dts/bcm283x-rpi-cam1-regulator.dtsi b/arch/arm/boot/dts/bcm283x-rpi-cam1-regulator.dtsi
- new file mode 100644
- index 000000000000..55237d03ed94
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm283x-rpi-cam1-regulator.dtsi
- @@ -0,0 +1,10 @@
- +// SPDX-License-Identifier: GPL-2.0
- +
- +/ {
- + cam1_reg: cam1_reg {
- + compatible = "regulator-fixed";
- + regulator-name = "cam1-reg";
- + enable-active-high;
- + status = "disabled";
- + };
- +};
- diff --git a/arch/arm/boot/dts/bcm283x-rpi-csi0-2lane.dtsi b/arch/arm/boot/dts/bcm283x-rpi-csi0-2lane.dtsi
- new file mode 100644
- index 000000000000..6e4ce8622b47
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm283x-rpi-csi0-2lane.dtsi
- @@ -0,0 +1,4 @@
- +// SPDX-License-Identifier: GPL-2.0-only
- +&csi0 {
- + brcm,num-data-lanes = <2>;
- +};
- diff --git a/arch/arm/boot/dts/bcm283x-rpi-csi1-2lane.dtsi b/arch/arm/boot/dts/bcm283x-rpi-csi1-2lane.dtsi
- new file mode 100644
- index 000000000000..6938f4daacdc
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm283x-rpi-csi1-2lane.dtsi
- @@ -0,0 +1,4 @@
- +// SPDX-License-Identifier: GPL-2.0-only
- +&csi1 {
- + brcm,num-data-lanes = <2>;
- +};
- diff --git a/arch/arm/boot/dts/bcm283x-rpi-csi1-4lane.dtsi b/arch/arm/boot/dts/bcm283x-rpi-csi1-4lane.dtsi
- new file mode 100644
- index 000000000000..b37037437bee
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm283x-rpi-csi1-4lane.dtsi
- @@ -0,0 +1,4 @@
- +// SPDX-License-Identifier: GPL-2.0-only
- +&csi1 {
- + brcm,num-data-lanes = <4>;
- +};
- diff --git a/arch/arm/boot/dts/bcm283x-rpi-i2c0mux_0_28.dtsi b/arch/arm/boot/dts/bcm283x-rpi-i2c0mux_0_28.dtsi
- new file mode 100644
- index 000000000000..38f0074bce3f
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm283x-rpi-i2c0mux_0_28.dtsi
- @@ -0,0 +1,4 @@
- +&i2c0mux {
- + pinctrl-0 = <&i2c0_gpio0>;
- + pinctrl-1 = <&i2c0_gpio28>;
- +};
- diff --git a/arch/arm/boot/dts/bcm283x-rpi-i2c0mux_0_44.dtsi b/arch/arm/boot/dts/bcm283x-rpi-i2c0mux_0_44.dtsi
- new file mode 100644
- index 000000000000..119946d878db
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm283x-rpi-i2c0mux_0_44.dtsi
- @@ -0,0 +1,4 @@
- +&i2c0mux {
- + pinctrl-0 = <&i2c0_gpio0>;
- + pinctrl-1 = <&i2c0_gpio44>;
- +};
- diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi
- index c113661a6668..62d7ee513549 100644
- --- a/arch/arm/boot/dts/bcm283x.dtsi
- +++ b/arch/arm/boot/dts/bcm283x.dtsi
- @@ -336,7 +336,7 @@ spi: spi@7e204000 {
- status = "disabled";
- };
-
- - i2c0: i2c@7e205000 {
- + i2c0if: i2c@7e205000 {
- compatible = "brcm,bcm2835-i2c";
- reg = <0x7e205000 0x200>;
- interrupts = <2 21>;
- @@ -346,6 +346,30 @@ i2c0: i2c@7e205000 {
- status = "disabled";
- };
-
- + i2c0mux: i2c0mux {
- + compatible = "i2c-mux-pinctrl";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + i2c-parent = <&i2c0if>;
- +
- + pinctrl-names = "i2c0", "i2c_csi_dsi";
- +
- + status = "disabled";
- +
- + i2c0: i2c@0 {
- + reg = <0>;
- + #address-cells = <1>;
- + #size-cells = <0>;
- + };
- +
- + i2c_csi_dsi: i2c@1 {
- + reg = <1>;
- + #address-cells = <1>;
- + #size-cells = <0>;
- + };
- + };
- +
- dpi: dpi@7e208000 {
- compatible = "brcm,bcm2835-dpi";
- reg = <0x7e208000 0x8c>;
- diff --git a/arch/arm/boot/dts/overlays/Makefile b/arch/arm/boot/dts/overlays/Makefile
- new file mode 100644
- index 000000000000..44aedc149ff0
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/Makefile
- @@ -0,0 +1,248 @@
- +# Overlays for the Raspberry Pi platform
- +
- +dtb-$(CONFIG_ARCH_BCM2835) += overlay_map.dtb
- +
- +dtbo-$(CONFIG_ARCH_BCM2835) += \
- + act-led.dtbo \
- + adafruit18.dtbo \
- + adau1977-adc.dtbo \
- + adau7002-simple.dtbo \
- + ads1015.dtbo \
- + ads1115.dtbo \
- + ads7846.dtbo \
- + adv7282m.dtbo \
- + adv728x-m.dtbo \
- + akkordion-iqdacplus.dtbo \
- + allo-boss-dac-pcm512x-audio.dtbo \
- + allo-boss2-dac-audio.dtbo \
- + allo-digione.dtbo \
- + allo-katana-dac-audio.dtbo \
- + allo-piano-dac-pcm512x-audio.dtbo \
- + allo-piano-dac-plus-pcm512x-audio.dtbo \
- + anyspi.dtbo \
- + apds9960.dtbo \
- + applepi-dac.dtbo \
- + at86rf233.dtbo \
- + audioinjector-addons.dtbo \
- + audioinjector-isolated-soundcard.dtbo \
- + audioinjector-ultra.dtbo \
- + audioinjector-wm8731-audio.dtbo \
- + audiosense-pi.dtbo \
- + audremap.dtbo \
- + balena-fin.dtbo \
- + cap1106.dtbo \
- + chipdip-dac.dtbo \
- + cma.dtbo \
- + dht11.dtbo \
- + dionaudio-loco.dtbo \
- + dionaudio-loco-v2.dtbo \
- + disable-bt.dtbo \
- + disable-wifi.dtbo \
- + dpi18.dtbo \
- + dpi18cpadhi.dtbo \
- + dpi24.dtbo \
- + draws.dtbo \
- + dwc-otg.dtbo \
- + dwc2.dtbo \
- + edt-ft5406.dtbo \
- + enc28j60.dtbo \
- + enc28j60-spi2.dtbo \
- + exc3000.dtbo \
- + fe-pi-audio.dtbo \
- + fsm-demo.dtbo \
- + ghost-amp.dtbo \
- + goodix.dtbo \
- + googlevoicehat-soundcard.dtbo \
- + gpio-fan.dtbo \
- + gpio-ir.dtbo \
- + gpio-ir-tx.dtbo \
- + gpio-key.dtbo \
- + gpio-led.dtbo \
- + gpio-no-bank0-irq.dtbo \
- + gpio-no-irq.dtbo \
- + gpio-poweroff.dtbo \
- + gpio-shutdown.dtbo \
- + hd44780-lcd.dtbo \
- + hdmi-backlight-hwhack-gpio.dtbo \
- + hifiberry-amp.dtbo \
- + hifiberry-amp100.dtbo \
- + hifiberry-dac.dtbo \
- + hifiberry-dacplus.dtbo \
- + hifiberry-dacplusadc.dtbo \
- + hifiberry-dacplusadcpro.dtbo \
- + hifiberry-dacplusdsp.dtbo \
- + hifiberry-dacplushd.dtbo \
- + hifiberry-digi.dtbo \
- + hifiberry-digi-pro.dtbo \
- + highperi.dtbo \
- + hy28a.dtbo \
- + hy28b.dtbo \
- + hy28b-2017.dtbo \
- + i-sabre-q2m.dtbo \
- + i2c-bcm2708.dtbo \
- + i2c-gpio.dtbo \
- + i2c-mux.dtbo \
- + i2c-pwm-pca9685a.dtbo \
- + i2c-rtc.dtbo \
- + i2c-rtc-gpio.dtbo \
- + i2c-sensor.dtbo \
- + i2c0.dtbo \
- + i2c1.dtbo \
- + i2c3.dtbo \
- + i2c4.dtbo \
- + i2c5.dtbo \
- + i2c6.dtbo \
- + i2s-gpio28-31.dtbo \
- + ilitek251x.dtbo \
- + imx219.dtbo \
- + imx290.dtbo \
- + imx378.dtbo \
- + imx477.dtbo \
- + iqaudio-codec.dtbo \
- + iqaudio-dac.dtbo \
- + iqaudio-dacplus.dtbo \
- + iqaudio-digi-wm8804-audio.dtbo \
- + irs1125.dtbo \
- + jedec-spi-nor.dtbo \
- + justboom-both.dtbo \
- + justboom-dac.dtbo \
- + justboom-digi.dtbo \
- + ltc294x.dtbo \
- + max98357a.dtbo \
- + maxtherm.dtbo \
- + mbed-dac.dtbo \
- + mcp23017.dtbo \
- + mcp23s17.dtbo \
- + mcp2515-can0.dtbo \
- + mcp2515-can1.dtbo \
- + mcp251xfd.dtbo \
- + mcp3008.dtbo \
- + mcp3202.dtbo \
- + mcp342x.dtbo \
- + media-center.dtbo \
- + merus-amp.dtbo \
- + midi-uart0.dtbo \
- + midi-uart1.dtbo \
- + midi-uart2.dtbo \
- + midi-uart3.dtbo \
- + midi-uart4.dtbo \
- + midi-uart5.dtbo \
- + minipitft13.dtbo \
- + miniuart-bt.dtbo \
- + mmc.dtbo \
- + mpu6050.dtbo \
- + mz61581.dtbo \
- + ov5647.dtbo \
- + ov7251.dtbo \
- + ov9281.dtbo \
- + papirus.dtbo \
- + pca953x.dtbo \
- + pcie-32bit-dma.dtbo \
- + pibell.dtbo \
- + pifacedigital.dtbo \
- + pifi-40.dtbo \
- + pifi-dac-hd.dtbo \
- + pifi-dac-zero.dtbo \
- + pifi-mini-210.dtbo \
- + piglow.dtbo \
- + piscreen.dtbo \
- + piscreen2r.dtbo \
- + pisound.dtbo \
- + pitft22.dtbo \
- + pitft28-capacitive.dtbo \
- + pitft28-resistive.dtbo \
- + pitft35-resistive.dtbo \
- + pps-gpio.dtbo \
- + pwm.dtbo \
- + pwm-2chan.dtbo \
- + pwm-ir-tx.dtbo \
- + qca7000.dtbo \
- + qca7000-uart0.dtbo \
- + rotary-encoder.dtbo \
- + rpi-backlight.dtbo \
- + rpi-cirrus-wm5102.dtbo \
- + rpi-dac.dtbo \
- + rpi-display.dtbo \
- + rpi-ft5406.dtbo \
- + rpi-poe.dtbo \
- + rpi-poe-plus.dtbo \
- + rpi-proto.dtbo \
- + rpi-sense.dtbo \
- + rpi-tv.dtbo \
- + rpivid-v4l2.dtbo \
- + rra-digidac1-wm8741-audio.dtbo \
- + sainsmart18.dtbo \
- + sc16is750-i2c.dtbo \
- + sc16is752-i2c.dtbo \
- + sc16is752-spi0.dtbo \
- + sc16is752-spi1.dtbo \
- + sdhost.dtbo \
- + sdio.dtbo \
- + seeed-can-fd-hat-v1.dtbo \
- + seeed-can-fd-hat-v2.dtbo \
- + sh1106-spi.dtbo \
- + si446x-spi0.dtbo \
- + smi.dtbo \
- + smi-dev.dtbo \
- + smi-nand.dtbo \
- + spi-gpio35-39.dtbo \
- + spi-gpio40-45.dtbo \
- + spi-rtc.dtbo \
- + spi0-1cs.dtbo \
- + spi0-2cs.dtbo \
- + spi1-1cs.dtbo \
- + spi1-2cs.dtbo \
- + spi1-3cs.dtbo \
- + spi2-1cs.dtbo \
- + spi2-2cs.dtbo \
- + spi2-3cs.dtbo \
- + spi3-1cs.dtbo \
- + spi3-2cs.dtbo \
- + spi4-1cs.dtbo \
- + spi4-2cs.dtbo \
- + spi5-1cs.dtbo \
- + spi5-2cs.dtbo \
- + spi6-1cs.dtbo \
- + spi6-2cs.dtbo \
- + ssd1306.dtbo \
- + ssd1306-spi.dtbo \
- + ssd1331-spi.dtbo \
- + ssd1351-spi.dtbo \
- + superaudioboard.dtbo \
- + sx150x.dtbo \
- + tc358743.dtbo \
- + tc358743-audio.dtbo \
- + tinylcd35.dtbo \
- + tpm-slb9670.dtbo \
- + uart0.dtbo \
- + uart1.dtbo \
- + uart2.dtbo \
- + uart3.dtbo \
- + uart4.dtbo \
- + uart5.dtbo \
- + udrc.dtbo \
- + ugreen-dabboard.dtbo \
- + upstream.dtbo \
- + upstream-pi4.dtbo \
- + vc4-fkms-v3d.dtbo \
- + vc4-fkms-v3d-pi4.dtbo \
- + vc4-kms-dpi-at056tn53v1.dtbo \
- + vc4-kms-dsi-7inch.dtbo \
- + vc4-kms-dsi-lt070me05000.dtbo \
- + vc4-kms-dsi-lt070me05000-v2.dtbo \
- + vc4-kms-kippah-7inch.dtbo \
- + vc4-kms-v3d.dtbo \
- + vc4-kms-v3d-pi4.dtbo \
- + vc4-kms-vga666.dtbo \
- + vga666.dtbo \
- + w1-gpio.dtbo \
- + w1-gpio-pullup.dtbo \
- + w5500.dtbo \
- + wittypi.dtbo \
- + wm8960-soundcard.dtbo
- +
- +targets += dtbs dtbs_install
- +targets += $(dtbo-y)
- +
- +always-y := $(dtbo-y)
- +clean-files := *.dtbo
- diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README
- new file mode 100644
- index 000000000000..eb2c9adfb1a8
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/README
- @@ -0,0 +1,3530 @@
- +Introduction
- +============
- +
- +This directory contains Device Tree overlays. Device Tree makes it possible
- +to support many hardware configurations with a single kernel and without the
- +need to explicitly load or blacklist kernel modules. Note that this isn't a
- +"pure" Device Tree configuration (c.f. MACH_BCM2835) - some on-board devices
- +are still configured by the board support code, but the intention is to
- +eventually reach that goal.
- +
- +On Raspberry Pi, Device Tree usage is controlled from /boot/config.txt. By
- +default, the Raspberry Pi kernel boots with device tree enabled. You can
- +completely disable DT usage (for now) by adding:
- +
- + device_tree=
- +
- +to your config.txt, which should cause your Pi to revert to the old way of
- +doing things after a reboot.
- +
- +In /boot you will find a .dtb for each base platform. This describes the
- +hardware that is part of the Raspberry Pi board. The loader (start.elf and its
- +siblings) selects the .dtb file appropriate for the platform by name, and reads
- +it into memory. At this point, all of the optional interfaces (i2c, i2s, spi)
- +are disabled, but they can be enabled using Device Tree parameters:
- +
- + dtparam=i2c=on,i2s=on,spi=on
- +
- +However, this shouldn't be necessary in many use cases because loading an
- +overlay that requires one of those interfaces will cause it to be enabled
- +automatically, and it is advisable to only enable interfaces if they are
- +needed.
- +
- +Configuring additional, optional hardware is done using Device Tree overlays
- +(see below).
- +
- +GPIO numbering uses the hardware pin numbering scheme (aka BCM scheme) and
- +not the physical pin numbers.
- +
- +raspi-config
- +============
- +
- +The Advanced Options section of the raspi-config utility can enable and disable
- +Device Tree use, as well as toggling the I2C and SPI interfaces. Note that it
- +is possible to both enable an interface and blacklist the driver, if for some
- +reason you should want to defer the loading.
- +
- +Modules
- +=======
- +
- +As well as describing the hardware, Device Tree also gives enough information
- +to allow suitable driver modules to be located and loaded, with the corollary
- +that unneeded modules are not loaded. As a result it should be possible to
- +remove lines from /etc/modules, and /etc/modprobe.d/raspi-blacklist.conf can
- +have its contents deleted (or commented out).
- +
- +Using Overlays
- +==============
- +
- +Overlays are loaded using the "dtoverlay" config.txt setting. As an example,
- +consider I2C Real Time Clock drivers. In the pre-DT world these would be loaded
- +by writing a magic string comprising a device identifier and an I2C address to
- +a special file in /sys/class/i2c-adapter, having first loaded the driver for
- +the I2C interface and the RTC device - something like this:
- +
- + modprobe i2c-bcm2835
- + modprobe rtc-ds1307
- + echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
- +
- +With DT enabled, this becomes a line in config.txt:
- +
- + dtoverlay=i2c-rtc,ds1307
- +
- +This causes the file /boot/overlays/i2c-rtc.dtbo to be loaded and a "node"
- +describing the DS1307 I2C device to be added to the Device Tree for the Pi. By
- +default it usees address 0x68, but this can be modified with an additional DT
- +parameter:
- +
- + dtoverlay=i2c-rtc,ds1307,addr=0x68
- +
- +Parameters usually have default values, although certain parameters are
- +mandatory. See the list of overlays below for a description of the parameters
- +and their defaults.
- +
- +Making new Overlays based on existing Overlays
- +==============================================
- +
- +Recent overlays have been designed in a more general way, so that they can be
- +adapted to hardware by changing their parameters. When you have additional
- +hardware with more than one device of a kind, you end up using the same overlay
- +multiple times with other parameters, e.g.
- +
- + # 2 CAN FD interfaces on spi but with different pins
- + dtoverlay=mcp251xfd,spi0-0,interrupt=25
- + dtoverlay=mcp251xfd,spi0-1,interrupt=24
- +
- + # a realtime clock on i2c
- + dtoverlay=i2c-rtc,pcf85063
- +
- +While this approach does work, it requires knowledge about the hardware design.
- +It is more feasible to simplify things for the end user by providing a single
- +overlay as it is done the traditional way.
- +
- +A new overlay can be generated by using ovmerge utility.
- +https://github.com/raspberrypi/utils/blob/master/ovmerge/ovmerge
- +
- +To generate an overlay for the above configuration we pass the configuration
- +to ovmerge and add the -c flag.
- +
- + ovmerge -c mcp251xfd-overlay.dts,spi0-0,interrupt=25 \
- + mcp251xfd-overlay.dts,spi0-1,interrupt=24 \
- + i2c-rtc-overlay.dts,pcf85063 \
- + >> merged-overlay.dts
- +
- +The -c option writes the command above as a comment into the overlay as
- +a marker that this overlay is generated and how it was generated.
- +After compiling the overlay it can be loaded in a single line.
- +
- + dtoverlay=merged
- +
- +It does the same as the original configuration but without parameters.
- +
- +The Overlay and Parameter Reference
- +===================================
- +
- +N.B. When editing this file, please preserve the indentation levels to make it
- +simple to parse programmatically. NO HARD TABS.
- +
- +
- +Name: <The base DTB>
- +Info: Configures the base Raspberry Pi hardware
- +Load: <loaded automatically>
- +Params:
- + ant1 Select antenna 1 (default). CM4 only.
- +
- + ant2 Select antenna 2. CM4 only.
- +
- + noant Disable both antennas. CM4 only.
- +
- + audio Set to "on" to enable the onboard ALSA audio
- + interface (default "off")
- +
- + axiperf Set to "on" to enable the AXI bus performance
- + monitors.
- + See /sys/kernel/debug/raspberrypi_axi_monitor
- + for the results.
- +
- + eee Enable Energy Efficient Ethernet support for
- + compatible devices (default "on"). See also
- + "tx_lpi_timer". Pi3B+ only.
- +
- + eth_downshift_after Set the number of auto-negotiation failures
- + after which the 1000Mbps modes are disabled.
- + Legal values are 2, 3, 4, 5 and 0, where
- + 0 means never downshift (default 2). Pi3B+ only.
- +
- + eth_led0 Set mode of LED0 - amber on Pi3B+ (default "1"),
- + green on Pi4 (default "0").
- + The legal values are:
- +
- + Pi3B+
- +
- + 0=link/activity 1=link1000/activity
- + 2=link100/activity 3=link10/activity
- + 4=link100/1000/activity 5=link10/1000/activity
- + 6=link10/100/activity 14=off 15=on
- +
- + Pi4
- +
- + 0=Speed/Activity 1=Speed
- + 2=Flash activity 3=FDX
- + 4=Off 5=On
- + 6=Alt 7=Speed/Flash
- + 8=Link 9=Activity
- +
- + eth_led1 Set mode of LED1 - green on Pi3B+ (default "6"),
- + amber on Pi4 (default "8"). See eth_led0 for
- + legal values.
- +
- + eth_max_speed Set the maximum speed a link is allowed
- + to negotiate. Legal values are 10, 100 and
- + 1000 (default 1000). Pi3B+ only.
- +
- + i2c_arm Set to "on" to enable the ARM's i2c interface
- + (default "off")
- +
- + i2c_vc Set to "on" to enable the i2c interface
- + usually reserved for the VideoCore processor
- + (default "off")
- +
- + i2c An alias for i2c_arm
- +
- + i2c_arm_baudrate Set the baudrate of the ARM's i2c interface
- + (default "100000")
- +
- + i2c_vc_baudrate Set the baudrate of the VideoCore i2c interface
- + (default "100000")
- +
- + i2c_baudrate An alias for i2c_arm_baudrate
- +
- + i2s Set to "on" to enable the i2s interface
- + (default "off")
- +
- + krnbt Set to "on" to enable autoprobing of Bluetooth
- + driver without need of hciattach/btattach
- + (default "off")
- +
- + krnbt_baudrate Set the baudrate of the PL011 UART when used
- + with krnbt=on
- +
- + spi Set to "on" to enable the spi interfaces
- + (default "off")
- +
- + spi_dma4 Use to enable 40-bit DMA on spi interfaces
- + (the assigned value doesn't matter)
- + (2711 only)
- +
- + random Set to "on" to enable the hardware random
- + number generator (default "on")
- +
- + sd_overclock Clock (in MHz) to use when the MMC framework
- + requests 50MHz
- +
- + sd_poll_once Looks for a card once after booting. Useful
- + for network booting scenarios to avoid the
- + overhead of continuous polling. N.B. Using
- + this option restricts the system to using a
- + single card per boot (or none at all).
- + (default off)
- +
- + sd_force_pio Disable DMA support for SD driver (default off)
- +
- + sd_pio_limit Number of blocks above which to use DMA for
- + SD card (default 1)
- +
- + sd_debug Enable debug output from SD driver (default off)
- +
- + sdio_overclock Clock (in MHz) to use when the MMC framework
- + requests 50MHz for the SDIO/WLAN interface.
- +
- + tx_lpi_timer Set the delay in microseconds between going idle
- + and entering the low power state (default 600).
- + Requires EEE to be enabled - see "eee".
- +
- + uart0 Set to "off" to disable uart0 (default "on")
- +
- + uart1 Set to "on" or "off" to enable or disable uart1
- + (default varies)
- +
- + watchdog Set to "on" to enable the hardware watchdog
- + (default "off")
- +
- + act_led_trigger Choose which activity the LED tracks.
- + Use "heartbeat" for a nice load indicator.
- + (default "mmc")
- +
- + act_led_activelow Set to "on" to invert the sense of the LED
- + (default "off")
- + N.B. For Pi 3B, 3B+, 3A+ and 4B, use the act-led
- + overlay.
- +
- + act_led_gpio Set which GPIO to use for the activity LED
- + (in case you want to connect it to an external
- + device)
- + (default "16" on a non-Plus board, "47" on a
- + Plus or Pi 2)
- + N.B. For Pi 3B, 3B+, 3A+ and 4B, use the act-led
- + overlay.
- +
- + pwr_led_trigger
- + pwr_led_activelow
- + pwr_led_gpio
- + As for act_led_*, but using the PWR LED.
- + Not available on Model A/B boards.
- +
- + N.B. It is recommended to only enable those interfaces that are needed.
- + Leaving all interfaces enabled can lead to unwanted behaviour (i2c_vc
- + interfering with Pi Camera, I2S and SPI hogging GPIO pins, etc.)
- + Note also that i2c, i2c_arm and i2c_vc are aliases for the physical
- + interfaces i2c0 and i2c1. Use of the numeric variants is still possible
- + but deprecated because the ARM/VC assignments differ between board
- + revisions. The same board-specific mapping applies to i2c_baudrate,
- + and the other i2c baudrate parameters.
- +
- +
- +Name: act-led
- +Info: Pi 3B, 3B+, 3A+ and 4B use a GPIO expander to drive the LEDs which can
- + only be accessed from the VPU. There is a special driver for this with a
- + separate DT node, which has the unfortunate consequence of breaking the
- + act_led_gpio and act_led_activelow dtparams.
- + This overlay changes the GPIO controller back to the standard one and
- + restores the dtparams.
- +Load: dtoverlay=act-led,<param>=<val>
- +Params: activelow Set to "on" to invert the sense of the LED
- + (default "off")
- +
- + gpio Set which GPIO to use for the activity LED
- + (in case you want to connect it to an external
- + device)
- + REQUIRED
- +
- +
- +Name: adafruit18
- +Info: Overlay for the SPI-connected Adafruit 1.8" display (based on the
- + ST7735R chip). It includes support for the "green tab" version.
- +Load: dtoverlay=adafruit18,<param>=<val>
- +Params: green Use the adafruit18_green variant.
- + rotate Display rotation {0,90,180,270}
- + speed SPI bus speed in Hz (default 4000000)
- + fps Display frame rate in Hz
- + bgr Enable BGR mode (default off)
- + debug Debug output level {0-7}
- + dc_pin GPIO pin for D/C (default 24)
- + reset_pin GPIO pin for RESET (default 25)
- + led_pin GPIO used to control backlight (default 18)
- +
- +
- +Name: adau1977-adc
- +Info: Overlay for activation of ADAU1977 ADC codec over I2C for control
- + and I2S for data.
- +Load: dtoverlay=adau1977-adc
- +Params: <None>
- +
- +
- +Name: adau7002-simple
- +Info: Overlay for the activation of ADAU7002 stereo PDM to I2S converter.
- +Load: dtoverlay=adau7002-simple,<param>=<val>
- +Params: card-name Override the default, "adau7002", card name.
- +
- +
- +Name: ads1015
- +Info: Overlay for activation of Texas Instruments ADS1015 ADC over I2C
- +Load: dtoverlay=ads1015,<param>=<val>
- +Params: addr I2C bus address of device. Set based on how the
- + addr pin is wired. (default=0x48 assumes addr
- + is pulled to GND)
- + cha_enable Enable virtual channel a. (default=true)
- + cha_cfg Set the configuration for virtual channel a.
- + (default=4 configures this channel for the
- + voltage at A0 with respect to GND)
- + cha_datarate Set the datarate (samples/sec) for this channel.
- + (default=4 sets 1600 sps)
- + cha_gain Set the gain of the Programmable Gain
- + Amplifier for this channel. (default=2 sets the
- + full scale of the channel to 2.048 Volts)
- +
- + Channel (ch) parameters can be set for each enabled channel.
- + A maximum of 4 channels can be enabled (letters a thru d).
- + For more information refer to the device datasheet at:
- + http://www.ti.com/lit/ds/symlink/ads1015.pdf
- +
- +
- +Name: ads1115
- +Info: Texas Instruments ADS1115 ADC
- +Load: dtoverlay=ads1115,<param>[=<val>]
- +Params: addr I2C bus address of device. Set based on how the
- + addr pin is wired. (default=0x48 assumes addr
- + is pulled to GND)
- + cha_enable Enable virtual channel a.
- + cha_cfg Set the configuration for virtual channel a.
- + (default=4 configures this channel for the
- + voltage at A0 with respect to GND)
- + cha_datarate Set the datarate (samples/sec) for this channel.
- + (default=7 sets 860 sps)
- + cha_gain Set the gain of the Programmable Gain
- + Amplifier for this channel. (Default 1 sets the
- + full scale of the channel to 4.096 Volts)
- +
- + Channel parameters can be set for each enabled channel.
- + A maximum of 4 channels can be enabled (letters a thru d).
- + For more information refer to the device datasheet at:
- + http://www.ti.com/lit/ds/symlink/ads1115.pdf
- +
- +
- +Name: ads7846
- +Info: ADS7846 Touch controller
- +Load: dtoverlay=ads7846,<param>=<val>
- +Params: cs SPI bus Chip Select (default 1)
- + speed SPI bus speed (default 2MHz, max 3.25MHz)
- + penirq GPIO used for PENIRQ. REQUIRED
- + penirq_pull Set GPIO pull (default 0=none, 2=pullup)
- + swapxy Swap x and y axis
- + xmin Minimum value on the X axis (default 0)
- + ymin Minimum value on the Y axis (default 0)
- + xmax Maximum value on the X axis (default 4095)
- + ymax Maximum value on the Y axis (default 4095)
- + pmin Minimum reported pressure value (default 0)
- + pmax Maximum reported pressure value (default 65535)
- + xohms Touchpanel sensitivity (X-plate resistance)
- + (default 400)
- +
- + penirq is required and usually xohms (60-100) has to be set as well.
- + Apart from that, pmax (255) and swapxy are also common.
- + The rest of the calibration can be done with xinput-calibrator.
- + See: github.com/notro/fbtft/wiki/FBTFT-on-Raspian
- + Device Tree binding document:
- + www.kernel.org/doc/Documentation/devicetree/bindings/input/ads7846.txt
- +
- +
- +Name: adv7282m
- +Info: Analog Devices ADV7282M analogue video to CSI2 bridge.
- + Uses Unicam1, which is the standard camera connector on most Pi
- + variants.
- +Load: dtoverlay=adv7282m,<param>=<val>
- +Params: addr Overrides the I2C address (default 0x21)
- +
- +
- +Name: adv728x-m
- +Info: Analog Devices ADV728[0|1|2]-M analogue video to CSI2 bridges.
- + This is a wrapper for adv7282m, and defaults to ADV7282M.
- +Load: dtoverlay=adv728x-m,<param>=<val>
- +Params: addr Overrides the I2C address (default 0x21)
- + adv7280m Select ADV7280-M.
- + adv7281m Select ADV7281-M.
- + adv7281ma Select ADV7281-MA.
- +
- +
- +Name: akkordion-iqdacplus
- +Info: Configures the Digital Dreamtime Akkordion Music Player (based on the
- + OEM IQAudIO DAC+ or DAC Zero module).
- +Load: dtoverlay=akkordion-iqdacplus,<param>=<val>
- +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
- + Digital volume control. Enable with
- + dtoverlay=akkordion-iqdacplus,24db_digital_gain
- + (The default behaviour is that the Digital
- + volume control is limited to a maximum of
- + 0dB. ie. it can attenuate but not provide
- + gain. For most users, this will be desired
- + as it will prevent clipping. By appending
- + the 24db_digital_gain parameter, the Digital
- + volume control will allow up to 24dB of
- + gain. If this parameter is enabled, it is the
- + responsibility of the user to ensure that
- + the Digital volume control is set to a value
- + that does not result in clipping/distortion!)
- +
- +
- +Name: allo-boss-dac-pcm512x-audio
- +Info: Configures the Allo Boss DAC audio cards.
- +Load: dtoverlay=allo-boss-dac-pcm512x-audio,<param>
- +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
- + Digital volume control. Enable with
- + "dtoverlay=allo-boss-dac-pcm512x-audio,
- + 24db_digital_gain"
- + (The default behaviour is that the Digital
- + volume control is limited to a maximum of
- + 0dB. ie. it can attenuate but not provide
- + gain. For most users, this will be desired
- + as it will prevent clipping. By appending
- + the 24db_digital_gain parameter, the Digital
- + volume control will allow up to 24dB of
- + gain. If this parameter is enabled, it is the
- + responsibility of the user to ensure that
- + the Digital volume control is set to a value
- + that does not result in clipping/distortion!)
- + slave Force Boss DAC into slave mode, using Pi a
- + master for bit clock and frame clock. Enable
- + with "dtoverlay=allo-boss-dac-pcm512x-audio,
- + slave"
- +
- +
- +Name: allo-boss2-dac-audio
- +Info: Configures the Allo Boss2 DAC audio card
- +Load: dtoverlay=allo-boss2-dac-audio
- +Params: <None>
- +
- +
- +Name: allo-digione
- +Info: Configures the Allo Digione audio card
- +Load: dtoverlay=allo-digione
- +Params: <None>
- +
- +
- +Name: allo-katana-dac-audio
- +Info: Configures the Allo Katana DAC audio card
- +Load: dtoverlay=allo-katana-dac-audio
- +Params: <None>
- +
- +
- +Name: allo-piano-dac-pcm512x-audio
- +Info: Configures the Allo Piano DAC (2.0/2.1) audio cards.
- + (NB. This initial support is for 2.0 channel audio ONLY! ie. stereo.
- + The subwoofer outputs on the Piano 2.1 are not currently supported!)
- +Load: dtoverlay=allo-piano-dac-pcm512x-audio,<param>
- +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
- + Digital volume control.
- + (The default behaviour is that the Digital
- + volume control is limited to a maximum of
- + 0dB. ie. it can attenuate but not provide
- + gain. For most users, this will be desired
- + as it will prevent clipping. By appending
- + the 24db_digital_gain parameter, the Digital
- + volume control will allow up to 24dB of
- + gain. If this parameter is enabled, it is the
- + responsibility of the user to ensure that
- + the Digital volume control is set to a value
- + that does not result in clipping/distortion!)
- +
- +
- +Name: allo-piano-dac-plus-pcm512x-audio
- +Info: Configures the Allo Piano DAC (2.1) audio cards.
- +Load: dtoverlay=allo-piano-dac-plus-pcm512x-audio,<param>
- +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
- + Digital volume control.
- + (The default behaviour is that the Digital
- + volume control is limited to a maximum of
- + 0dB. ie. it can attenuate but not provide
- + gain. For most users, this will be desired
- + as it will prevent clipping. By appending
- + the 24db_digital_gain parameter, the Digital
- + volume control will allow up to 24dB of
- + gain. If this parameter is enabled, it is the
- + responsibility of the user to ensure that
- + the Digital volume control is set to a value
- + that does not result in clipping/distortion!)
- + glb_mclk This option is only with Kali board. If enabled,
- + MCLK for Kali is used and PLL is disabled for
- + better voice quality. (default Off)
- +
- +
- +Name: anyspi
- +Info: Universal device tree overlay for SPI devices
- +
- + Just specify the SPI address and device name ("compatible" property).
- + This overlay lacks any device-specific parameter support!
- +
- + For devices on spi1 or spi2, the interfaces should be enabled
- + with one of the spi1-1/2/3cs and/or spi2-1/2/3cs overlays.
- +
- + Examples:
- + 1. SPI NOR flash on spi0.1, maximum SPI clock frequency 45MHz:
- + dtoverlay=anyspi:spi0-1,dev="jedec,spi-nor",speed=45000000
- + 2. MCP3204 ADC on spi1.2, maximum SPI clock frequency 500kHz:
- + dtoverlay=anyspi:spi1-2,dev="microchip,mcp3204"
- +Load: dtoverlay=anyspi,<param>=<val>
- +Params: spi<n>-<m> Configure device at spi<n>, cs<m>
- + (boolean, required)
- + dev Set device name to search compatible module
- + (string, required)
- + speed Set SPI clock frequency in Hz
- + (integer, optional, default 500000)
- +
- +
- +Name: apds9960
- +Info: Configures the AVAGO APDS9960 digital proximity, ambient light, RGB and
- + gesture sensor
- +Load: dtoverlay=apds9960,<param>=<val>
- +Params: gpiopin GPIO used for INT (default 4)
- + noints Disable the interrupt GPIO line.
- +
- +
- +Name: applepi-dac
- +Info: Configures the Orchard Audio ApplePi-DAC audio card
- +Load: dtoverlay=applepi-dac
- +Params: <None>
- +
- +
- +Name: at86rf233
- +Info: Configures the Atmel AT86RF233 802.15.4 low-power WPAN transceiver,
- + connected to spi0.0
- +Load: dtoverlay=at86rf233,<param>=<val>
- +Params: interrupt GPIO used for INT (default 23)
- + reset GPIO used for Reset (default 24)
- + sleep GPIO used for Sleep (default 25)
- + speed SPI bus speed in Hz (default 3000000)
- + trim Fine tuning of the internal capacitance
- + arrays (0=+0pF, 15=+4.5pF, default 15)
- +
- +
- +Name: audioinjector-addons
- +Info: Configures the audioinjector.net audio add on soundcards
- +Load: dtoverlay=audioinjector-addons,<param>=<val>
- +Params: non-stop-clocks Keeps the clocks running even when the stream
- + is paused or stopped (default off)
- +
- +
- +Name: audioinjector-isolated-soundcard
- +Info: Configures the audioinjector.net isolated soundcard
- +Load: dtoverlay=audioinjector-isolated-soundcard
- +Params: <None>
- +
- +
- +Name: audioinjector-ultra
- +Info: Configures the audioinjector.net ultra soundcard
- +Load: dtoverlay=audioinjector-ultra
- +Params: <None>
- +
- +
- +Name: audioinjector-wm8731-audio
- +Info: Configures the audioinjector.net audio add on soundcard
- +Load: dtoverlay=audioinjector-wm8731-audio
- +Params: <None>
- +
- +
- +Name: audiosense-pi
- +Info: Configures the audiosense-pi add on soundcard
- + For more information refer to
- + https://gitlab.com/kakar0t/audiosense-pi
- +Load: dtoverlay=audiosense-pi
- +Params: <None>
- +
- +
- +Name: audremap
- +Info: Switches PWM sound output to GPIOs on the 40-pin header
- +Load: dtoverlay=audremap,<param>=<val>
- +Params: swap_lr Reverse the channel allocation, which will also
- + swap the audio jack outputs (default off)
- + enable_jack Don't switch off the audio jack output
- + (default off)
- + pins_12_13 Select GPIOs 12 & 13 (default)
- + pins_18_19 Select GPIOs 18 & 19
- +
- +
- +Name: balena-fin
- +Info: Overlay that enables WLAN, Bluetooth and the GPIO expander on the
- + balenaFin carrier board for the Raspberry Pi Compute Module 3/3+ Lite.
- +Load: dtoverlay=balena-fin
- +Params: <None>
- +
- +
- +Name: bmp085_i2c-sensor
- +Info: This overlay is now deprecated - see i2c-sensor
- +Load: <Deprecated>
- +
- +
- +Name: cap1106
- +Info: Enables the ability to use the cap1106 touch sensor as a keyboard
- +Load: dtoverlay=cap1106,<param>=<val>
- +Params: int_pin GPIO pin for interrupt signal (default 23)
- +
- +
- +Name: chipdip-dac
- +Info: Configures Chip Dip audio cards.
- +Load: dtoverlay=chipdip-dac
- +Params: <None>
- +
- +
- +Name: cma
- +Info: Set custom CMA sizes, only use if you know what you are doing, might
- + clash with other overlays like vc4-fkms-v3d and vc4-kms-v3d.
- +Load: dtoverlay=cma,<param>=<val>
- +Params: cma-512 CMA is 512MB (needs 1GB)
- + cma-448 CMA is 448MB (needs 1GB)
- + cma-384 CMA is 384MB (needs 1GB)
- + cma-320 CMA is 320MB (needs 1GB)
- + cma-256 CMA is 256MB (needs 1GB)
- + cma-192 CMA is 192MB (needs 1GB)
- + cma-128 CMA is 128MB
- + cma-96 CMA is 96MB
- + cma-64 CMA is 64MB
- + cma-size CMA size in bytes, 4MB aligned
- + cma-default Use upstream's default value
- +
- +
- +Name: dht11
- +Info: Overlay for the DHT11/DHT21/DHT22 humidity/temperature sensors
- + Also sometimes found with the part number(s) AM230x.
- +Load: dtoverlay=dht11,<param>=<val>
- +Params: gpiopin GPIO connected to the sensor's DATA output.
- + (default 4)
- +
- +
- +Name: dionaudio-loco
- +Info: Configures the Dion Audio LOCO DAC-AMP
- +Load: dtoverlay=dionaudio-loco
- +Params: <None>
- +
- +
- +Name: dionaudio-loco-v2
- +Info: Configures the Dion Audio LOCO-V2 DAC-AMP
- +Load: dtoverlay=dionaudio-loco-v2,<param>=<val>
- +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
- + Digital volume control. Enable with
- + "dtoverlay=hifiberry-dacplus,24db_digital_gain"
- + (The default behaviour is that the Digital
- + volume control is limited to a maximum of
- + 0dB. ie. it can attenuate but not provide
- + gain. For most users, this will be desired
- + as it will prevent clipping. By appending
- + the 24dB_digital_gain parameter, the Digital
- + volume control will allow up to 24dB of
- + gain. If this parameter is enabled, it is the
- + responsibility of the user to ensure that
- + the Digital volume control is set to a value
- + that does not result in clipping/distortion!)
- +
- +
- +Name: disable-bt
- +Info: Disable onboard Bluetooth on Pi 3B, 3B+, 3A+, 4B and Zero W, restoring
- + UART0/ttyAMA0 over GPIOs 14 & 15.
- + N.B. To disable the systemd service that initialises the modem so it
- + doesn't use the UART, use 'sudo systemctl disable hciuart'.
- +Load: dtoverlay=disable-bt
- +Params: <None>
- +
- +
- +Name: disable-wifi
- +Info: Disable onboard WLAN on Pi 3B, 3B+, 3A+, 4B and Zero W.
- +Load: dtoverlay=disable-wifi
- +Params: <None>
- +
- +
- +Name: dpi18
- +Info: Overlay for a generic 18-bit DPI display
- + This uses GPIOs 0-21 (so no I2C, uart etc.), and activates the output
- + 2-3 seconds after the kernel has started.
- +Load: dtoverlay=dpi18
- +Params: <None>
- +
- +
- +Name: dpi18cpadhi
- +Info: Overlay for a generic 18-bit DPI display (in 'mode 6' connection scheme)
- + This uses GPIOs 0-9,12-17,20-25 (so no I2C, uart etc.), and activates
- + the output 3-3 seconds after the kernel has started.
- +Load: dtoverlay=dpi18cpadhi
- +Params: <None>
- +
- +
- +Name: dpi24
- +Info: Overlay for a generic 24-bit DPI display
- + This uses GPIOs 0-27 (so no I2C, uart etc.), and activates the output
- + 2-3 seconds after the kernel has started.
- +Load: dtoverlay=dpi24
- +Params: <None>
- +
- +
- +Name: draws
- +Info: Configures the NW Digital Radio DRAWS Hat
- +
- + The board includes an ADC to measure various board values and also
- + provides two analog user inputs on the expansion header. The ADC
- + can be configured for various sample rates and gain values to adjust
- + the input range. Tables describing the two parameters follow.
- +
- + ADC Gain Values:
- + 0 = +/- 6.144V
- + 1 = +/- 4.096V
- + 2 = +/- 2.048V
- + 3 = +/- 1.024V
- + 4 = +/- 0.512V
- + 5 = +/- 0.256V
- + 6 = +/- 0.256V
- + 7 = +/- 0.256V
- +
- + ADC Datarate Values:
- + 0 = 128sps
- + 1 = 250sps
- + 2 = 490sps
- + 3 = 920sps
- + 4 = 1600sps (default)
- + 5 = 2400sps
- + 6 = 3300sps
- + 7 = 3300sps
- +Load: dtoverlay=draws,<param>=<val>
- +Params: draws_adc_ch4_gain Sets the full scale resolution of the ADCs
- + input voltage sensor (default 1)
- +
- + draws_adc_ch4_datarate Sets the datarate of the ADCs input voltage
- + sensor
- +
- + draws_adc_ch5_gain Sets the full scale resolution of the ADCs
- + 5V rail voltage sensor (default 1)
- +
- + draws_adc_ch5_datarate Sets the datarate of the ADCs 4V rail voltage
- + sensor
- +
- + draws_adc_ch6_gain Sets the full scale resolution of the ADCs
- + AIN2 input (default 2)
- +
- + draws_adc_ch6_datarate Sets the datarate of the ADCs AIN2 input
- +
- + draws_adc_ch7_gain Sets the full scale resolution of the ADCs
- + AIN3 input (default 2)
- +
- + draws_adc_ch7_datarate Sets the datarate of the ADCs AIN3 input
- +
- + alsaname Name of the ALSA audio device (default "draws")
- +
- +
- +Name: dwc-otg
- +Info: Selects the dwc_otg USB controller driver which has fiq support. This
- + is the default on all except the Pi Zero which defaults to dwc2.
- +Load: dtoverlay=dwc-otg
- +Params: <None>
- +
- +
- +Name: dwc2
- +Info: Selects the dwc2 USB controller driver
- +Load: dtoverlay=dwc2,<param>=<val>
- +Params: dr_mode Dual role mode: "host", "peripheral" or "otg"
- +
- + g-rx-fifo-size Size of rx fifo size in gadget mode
- +
- + g-np-tx-fifo-size Size of non-periodic tx fifo size in gadget
- + mode
- +
- +
- +[ The ds1307-rtc overlay has been deleted. See i2c-rtc. ]
- +
- +
- +Name: edt-ft5406
- +Info: Overlay for the EDT FT5406 touchscreen on the CSI/DSI I2C interface.
- + This works with the Raspberry Pi 7" touchscreen when not being polled
- + by the firmware.
- + You MUST use either "disable_touchscreen=1" or "ignore_lcd=1" in
- + config.txt to stop the firmware polling the touchscreen.
- +Load: dtoverlay=edt-ft5406,<param>=<val>
- +Params: sizex Touchscreen size x (default 800)
- + sizey Touchscreen size y (default 480)
- + invx Touchscreen inverted x axis
- + invy Touchscreen inverted y axis
- + swapxy Touchscreen swapped x y axis
- +
- +
- +Name: enc28j60
- +Info: Overlay for the Microchip ENC28J60 Ethernet Controller on SPI0
- +Load: dtoverlay=enc28j60,<param>=<val>
- +Params: int_pin GPIO used for INT (default 25)
- +
- + speed SPI bus speed (default 12000000)
- +
- +
- +Name: enc28j60-spi2
- +Info: Overlay for the Microchip ENC28J60 Ethernet Controller on SPI2
- +Load: dtoverlay=enc28j60-spi2,<param>=<val>
- +Params: int_pin GPIO used for INT (default 39)
- +
- + speed SPI bus speed (default 12000000)
- +
- +
- +Name: exc3000
- +Info: Enables I2C connected EETI EXC3000 multiple touch controller using
- + GPIO 4 (pin 7 on GPIO header) for interrupt.
- +Load: dtoverlay=exc3000,<param>=<val>
- +Params: interrupt GPIO used for interrupt (default 4)
- + sizex Touchscreen size x (default 4096)
- + sizey Touchscreen size y (default 4096)
- + invx Touchscreen inverted x axis
- + invy Touchscreen inverted y axis
- + swapxy Touchscreen swapped x y axis
- +
- +
- +Name: fe-pi-audio
- +Info: Configures the Fe-Pi Audio Sound Card
- +Load: dtoverlay=fe-pi-audio
- +Params: <None>
- +
- +
- +Name: fsm-demo
- +Info: A demonstration of the gpio-fsm driver. The GPIOs are chosen to work
- + nicely with a "traffic-light" display of red, amber and green LEDs on
- + GPIOs 7, 8 and 25 respectively.
- +Load: dtoverlay=fsm-demo,<param>=<val>
- +Params: fsm_debug Enable debug logging (default off)
- +
- +
- +Name: ghost-amp
- +Info: An overlay for the Ghost amplifier.
- +Load: dtoverlay=ghost-amp,<param>=<val>
- +Params: fsm_debug Enable debug logging of the GPIO FSM (default
- + off)
- +
- +
- +Name: goodix
- +Info: Enables I2C connected Goodix gt9271 multiple touch controller using
- + GPIOs 4 and 17 (pins 7 and 11 on GPIO header) for interrupt and reset.
- +Load: dtoverlay=goodix,<param>=<val>
- +Params: interrupt GPIO used for interrupt (default 4)
- + reset GPIO used for reset (default 17)
- +
- +
- +Name: googlevoicehat-soundcard
- +Info: Configures the Google voiceHAT soundcard
- +Load: dtoverlay=googlevoicehat-soundcard
- +Params: <None>
- +
- +
- +Name: gpio-fan
- +Info: Configure a GPIO pin to control a cooling fan.
- +Load: dtoverlay=gpio-fan,<param>=<val>
- +Params: gpiopin GPIO used to control the fan (default 12)
- + temp Temperature at which the fan switches on, in
- + millicelcius (default 55000)
- +
- +
- +Name: gpio-ir
- +Info: Use GPIO pin as rc-core style infrared receiver input. The rc-core-
- + based gpio_ir_recv driver maps received keys directly to a
- + /dev/input/event* device, all decoding is done by the kernel - LIRC is
- + not required! The key mapping and other decoding parameters can be
- + configured by "ir-keytable" tool.
- +Load: dtoverlay=gpio-ir,<param>=<val>
- +Params: gpio_pin Input pin number. Default is 18.
- +
- + gpio_pull Desired pull-up/down state (off, down, up)
- + Default is "up".
- +
- + invert "1" = invert the input (active-low signalling).
- + "0" = non-inverted input (active-high
- + signalling). Default is "1".
- +
- + rc-map-name Default rc keymap (can also be changed by
- + ir-keytable), defaults to "rc-rc6-mce"
- +
- +
- +Name: gpio-ir-tx
- +Info: Use GPIO pin as bit-banged infrared transmitter output.
- + This is an alternative to "pwm-ir-tx". gpio-ir-tx doesn't require
- + a PWM so it can be used together with onboard analog audio.
- +Load: dtoverlay=gpio-ir-tx,<param>=<val>
- +Params: gpio_pin Output GPIO (default 18)
- +
- + invert "1" = invert the output (make it active-low).
- + Default is "0" (active-high).
- +
- +
- +Name: gpio-key
- +Info: This is a generic overlay for activating GPIO keypresses using
- + the gpio-keys library and this dtoverlay. Multiple keys can be
- + set up using multiple calls to the overlay for configuring
- + additional buttons or joysticks. You can see available keycodes
- + at https://github.com/torvalds/linux/blob/v4.12/include/uapi/
- + linux/input-event-codes.h#L64
- +Load: dtoverlay=gpio-key,<param>=<val>
- +Params: gpio GPIO pin to trigger on (default 3)
- + active_low When this is 1 (active low), a falling
- + edge generates a key down event and a
- + rising edge generates a key up event.
- + When this is 0 (active high), this is
- + reversed. The default is 1 (active low)
- + gpio_pull Desired pull-up/down state (off, down, up)
- + Default is "up". Note that the default pin
- + (GPIO3) has an external pullup
- + label Set a label for the key
- + keycode Set the key code for the button
- +
- +
- +
- +Name: gpio-led
- +Info: This is a generic overlay for activating LEDs (or any other component)
- + by a GPIO pin. Multiple LEDs can be set up using multiple calls to the
- + overlay. While there are many existing methods to activate LEDs on the
- + RPi, this method offers some advantages:
- + 1) Does not require any userspace programs.
- + 2) LEDs can be connected to the kernel's led-trigger framework,
- + and drive the LED based on triggers such as cpu load, heartbeat,
- + kernel panic, key input, timers and others.
- + 3) LED can be tied to the input state of another GPIO pin.
- + 4) The LED is setup early during the kernel boot process (useful
- + for cpu/heartbeat/panic triggers).
- +
- + Typical electrical connection is:
- + RPI-GPIO.19 -> LED -> 300ohm resister -> RPI-GND
- + The GPIO pin number can be changed with the 'gpio=' parameter.
- +
- + To control an LED from userspace, write a 0 or 1 value:
- + echo 1 > /sys/class/leds/myled1/brightness
- + The 'myled1' name can be changed with the 'label=' parameter.
- +
- + To connect the LED to a kernel trigger from userspace:
- + echo cpu > /sys/class/leds/myled1/trigger
- + echo heartbeat > /sys/class/leds/myled1/trigger
- + echo none > /sys/class/leds/myled1/trigger
- + To connect the LED to GPIO.26 pin (physical pin 37):
- + echo gpio > /sys/class/leds/myled1/trigger
- + echo 26 > /sys/class/leds/myled1/gpio
- + Available triggers:
- + cat /sys/class/leds/myled1/trigger
- +
- + More information about the Linux kernel LED/Trigger system:
- + https://www.kernel.org/doc/Documentation/leds/leds-class.rst
- + https://www.kernel.org/doc/Documentation/leds/ledtrig-oneshot.rst
- +Load: dtoverlay=gpio-led,<param>=<val>
- +Params: gpio GPIO pin connected to the LED (default 19)
- + label The label for this LED. It will appear under
- + /sys/class/leds/<label> . Default 'myled1'.
- + trigger Set the led-trigger to connect to this LED.
- + default 'none' (LED is user-controlled).
- + Some possible triggers:
- + cpu - CPU load (all CPUs)
- + cpu0 - CPU load of first CPU.
- + mmc - disk activity (all disks)
- + panic - turn on on kernel panic
- + heartbeat - indicate system health
- + gpio - connect to a GPIO input pin (note:
- + currently the GPIO PIN can not be set
- + using overlay parameters, must be
- + done in userspace, see examples above.
- + active_low Set to 1 to turn invert the LED control
- + (writing 0 to /sys/class/leds/XXX/brightness
- + will turn on the GPIO/LED). Default '0'.
- +
- +
- +Name: gpio-no-bank0-irq
- +Info: Use this overlay to disable GPIO interrupts for GPIOs in bank 0 (0-27),
- + which can be useful for UIO drivers.
- + N.B. Using this overlay will trigger a kernel WARN during booting, but
- + this can safely be ignored - the system should work as expected.
- +Load: dtoverlay=gpio-no-bank0-irq
- +Params: <None>
- +
- +
- +Name: gpio-no-irq
- +Info: Use this overlay to disable all GPIO interrupts, which can be useful
- + for user-space GPIO edge detection systems.
- +Load: dtoverlay=gpio-no-irq
- +Params: <None>
- +
- +
- +Name: gpio-poweroff
- +Info: Drives a GPIO high or low on poweroff (including halt). Using this
- + overlay interferes with the normal power-down sequence, preventing the
- + kernel from resetting the SoC (a necessary step in a normal power-off
- + or reboot). This also disables the ability to trigger a boot by driving
- + GPIO3 low.
- +
- + Users of this overlay are required to provide an external mechanism to
- + switch off the power supply when signalled - failure to do so results
- + in a kernel BUG, increased power consumption and undefined behaviour.
- +Load: dtoverlay=gpio-poweroff,<param>=<val>
- +Params: gpiopin GPIO for signalling (default 26)
- +
- + active_low Set if the power control device requires a
- + high->low transition to trigger a power-down.
- + Note that this will require the support of a
- + custom dt-blob.bin to prevent a power-down
- + during the boot process, and that a reboot
- + will also cause the pin to go low.
- + input Set if the gpio pin should be configured as
- + an input.
- + export Set to export the configured pin to sysfs
- + timeout_ms Specify (in ms) how long the kernel waits for
- + power-down before issuing a WARN (default 3000).
- +
- +
- +Name: gpio-shutdown
- +Info: Initiates a shutdown when GPIO pin changes. The given GPIO pin
- + is configured as an input key that generates KEY_POWER events.
- +
- + This event is handled by systemd-logind by initiating a
- + shutdown. Systemd versions older than 225 need an udev rule
- + enable listening to the input device:
- +
- + ACTION!="REMOVE", SUBSYSTEM=="input", KERNEL=="event*", \
- + SUBSYSTEMS=="platform", DRIVERS=="gpio-keys", \
- + ATTRS{keys}=="116", TAG+="power-switch"
- +
- + Alternatively this event can be handled also on systems without
- + systemd, just by traditional SysV init daemon. KEY_POWER event
- + (keycode 116) needs to be mapped to KeyboardSignal on console
- + and then kb::kbrequest inittab action which is triggered by
- + KeyboardSignal from console can be configured to issue system
- + shutdown. Steps for this configuration are:
- +
- + Add following lines to the /etc/console-setup/remap.inc file:
- +
- + # Key Power as special keypress
- + keycode 116 = KeyboardSignal
- +
- + Then add following lines to /etc/inittab file:
- +
- + # Action on special keypress (Key Power)
- + kb::kbrequest:/sbin/shutdown -t1 -a -h -P now
- +
- + And finally reload configuration by calling following commands:
- +
- + # dpkg-reconfigure console-setup
- + # service console-setup reload
- + # init q
- +
- + This overlay only handles shutdown. After shutdown, the system
- + can be powered up again by driving GPIO3 low. The default
- + configuration uses GPIO3 with a pullup, so if you connect a
- + button between GPIO3 and GND (pin 5 and 6 on the 40-pin header),
- + you get a shutdown and power-up button. Please note that
- + Raspberry Pi 1 Model B rev 1 uses GPIO1 instead of GPIO3.
- +Load: dtoverlay=gpio-shutdown,<param>=<val>
- +Params: gpio_pin GPIO pin to trigger on (default 3)
- + For Raspberry Pi 1 Model B rev 1 set this
- + explicitly to value 1, e.g.:
- +
- + dtoverlay=gpio-shutdown,gpio_pin=1
- +
- + active_low When this is 1 (active low), a falling
- + edge generates a key down event and a
- + rising edge generates a key up event.
- + When this is 0 (active high), this is
- + reversed. The default is 1 (active low).
- +
- + gpio_pull Desired pull-up/down state (off, down, up)
- + Default is "up".
- +
- + Note that the default pin (GPIO3) has an
- + external pullup. Same applies for GPIO1
- + on Raspberry Pi 1 Model B rev 1.
- +
- + debounce Specify the debounce interval in milliseconds
- + (default 100)
- +
- +
- +Name: hd44780-lcd
- +Info: Configures an HD44780 compatible LCD display. Uses 4 gpio pins for
- + data, 2 gpio pins for enable and register select and 1 optional pin
- + for enabling/disabling the backlight display.
- +Load: dtoverlay=hd44780-lcd,<param>=<val>
- +Params: pin_d4 GPIO pin for data pin D4 (default 6)
- +
- + pin_d5 GPIO pin for data pin D5 (default 13)
- +
- + pin_d6 GPIO pin for data pin D6 (default 19)
- +
- + pin_d7 GPIO pin for data pin D7 (default 26)
- +
- + pin_en GPIO pin for "Enable" (default 21)
- +
- + pin_rs GPIO pin for "Register Select" (default 20)
- +
- + pin_bl Optional pin for enabling/disabling the
- + display backlight. (default disabled)
- +
- + display_height Height of the display in characters
- +
- + display_width Width of the display in characters
- +
- +
- +Name: hdmi-backlight-hwhack-gpio
- +Info: Devicetree overlay for GPIO based backlight on/off capability.
- + Use this if you have one of those HDMI displays whose backlight cannot
- + be controlled via DPMS over HDMI and plan to do a little soldering to
- + use an RPi gpio pin for on/off switching. See:
- + https://www.waveshare.com/wiki/7inch_HDMI_LCD_(C)#Backlight_Control
- +Load: dtoverlay=hdmi-backlight-hwhack-gpio,<param>=<val>
- +Params: gpio_pin GPIO pin used (default 17)
- + active_low Set this to 1 if the display backlight is
- + switched on when the wire goes low.
- + Leave the default (value 0) if the backlight
- + expects a high to switch it on.
- +
- +
- +Name: hifiberry-amp
- +Info: Configures the HifiBerry Amp and Amp+ audio cards
- +Load: dtoverlay=hifiberry-amp
- +Params: <None>
- +
- +
- +Name: hifiberry-amp100
- +Info: Configures the HifiBerry AMP100 audio card
- +Load: dtoverlay=hifiberry-amp100,<param>=<val>
- +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
- + Digital volume control. Enable with
- + "dtoverlay=hifiberry-amp100,24db_digital_gain"
- + (The default behaviour is that the Digital
- + volume control is limited to a maximum of
- + 0dB. ie. it can attenuate but not provide
- + gain. For most users, this will be desired
- + as it will prevent clipping. By appending
- + the 24dB_digital_gain parameter, the Digital
- + volume control will allow up to 24dB of
- + gain. If this parameter is enabled, it is the
- + responsibility of the user to ensure that
- + the Digital volume control is set to a value
- + that does not result in clipping/distortion!)
- + slave Force DAC+ Pro into slave mode, using Pi as
- + master for bit clock and frame clock.
- + leds_off If set to 'true' the onboard indicator LEDs
- + are switched off at all times.
- + auto_mute If set to 'true' the amplifier is automatically
- + muted when the DAC is not playing.
- + mute_ext_ctl The amplifier's HW mute control is enabled
- + in ALSA mixer and set to <val>.
- + Will be overwritten by ALSA user settings.
- +
- +
- +Name: hifiberry-dac
- +Info: Configures the HifiBerry DAC audio cards
- +Load: dtoverlay=hifiberry-dac
- +Params: <None>
- +
- +
- +Name: hifiberry-dacplus
- +Info: Configures the HifiBerry DAC+ audio card
- +Load: dtoverlay=hifiberry-dacplus,<param>=<val>
- +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
- + Digital volume control. Enable with
- + "dtoverlay=hifiberry-dacplus,24db_digital_gain"
- + (The default behaviour is that the Digital
- + volume control is limited to a maximum of
- + 0dB. ie. it can attenuate but not provide
- + gain. For most users, this will be desired
- + as it will prevent clipping. By appending
- + the 24dB_digital_gain parameter, the Digital
- + volume control will allow up to 24dB of
- + gain. If this parameter is enabled, it is the
- + responsibility of the user to ensure that
- + the Digital volume control is set to a value
- + that does not result in clipping/distortion!)
- + slave Force DAC+ Pro into slave mode, using Pi as
- + master for bit clock and frame clock.
- + leds_off If set to 'true' the onboard indicator LEDs
- + are switched off at all times.
- +
- +
- +Name: hifiberry-dacplusadc
- +Info: Configures the HifiBerry DAC+ADC audio card
- +Load: dtoverlay=hifiberry-dacplusadc,<param>=<val>
- +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
- + Digital volume control. Enable with
- + "dtoverlay=hifiberry-dacplus,24db_digital_gain"
- + (The default behaviour is that the Digital
- + volume control is limited to a maximum of
- + 0dB. ie. it can attenuate but not provide
- + gain. For most users, this will be desired
- + as it will prevent clipping. By appending
- + the 24dB_digital_gain parameter, the Digital
- + volume control will allow up to 24dB of
- + gain. If this parameter is enabled, it is the
- + responsibility of the user to ensure that
- + the Digital volume control is set to a value
- + that does not result in clipping/distortion!)
- + slave Force DAC+ Pro into slave mode, using Pi as
- + master for bit clock and frame clock.
- + leds_off If set to 'true' the onboard indicator LEDs
- + are switched off at all times.
- +
- +
- +Name: hifiberry-dacplusadcpro
- +Info: Configures the HifiBerry DAC+ADC PRO audio card
- +Load: dtoverlay=hifiberry-dacplusadcpro,<param>=<val>
- +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
- + Digital volume control. Enable with
- + "dtoverlay=hifiberry-dacplusadcpro,24db_digital_gain"
- + (The default behaviour is that the Digital
- + volume control is limited to a maximum of
- + 0dB. ie. it can attenuate but not provide
- + gain. For most users, this will be desired
- + as it will prevent clipping. By appending
- + the 24dB_digital_gain parameter, the Digital
- + volume control will allow up to 24dB of
- + gain. If this parameter is enabled, it is the
- + responsibility of the user to ensure that
- + the Digital volume control is set to a value
- + that does not result in clipping/distortion!)
- + slave Force DAC+ADC Pro into slave mode, using Pi as
- + master for bit clock and frame clock.
- + leds_off If set to 'true' the onboard indicator LEDs
- + are switched off at all times.
- +
- +
- +Name: hifiberry-dacplusdsp
- +Info: Configures the HifiBerry DAC+DSP audio card
- +Load: dtoverlay=hifiberry-dacplusdsp
- +Params: <None>
- +
- +
- +Name: hifiberry-dacplushd
- +Info: Configures the HifiBerry DAC+ HD audio card
- +Load: dtoverlay=hifiberry-dacplushd
- +Params: <None>
- +
- +
- +Name: hifiberry-digi
- +Info: Configures the HifiBerry Digi and Digi+ audio card
- +Load: dtoverlay=hifiberry-digi
- +Params: <None>
- +
- +
- +Name: hifiberry-digi-pro
- +Info: Configures the HifiBerry Digi+ Pro audio card
- +Load: dtoverlay=hifiberry-digi-pro
- +Params: <None>
- +
- +
- +Name: highperi
- +Info: Enables "High Peripheral" mode
- +Load: dtoverlay=highperi
- +Params: <None>
- +
- +
- +Name: hy28a
- +Info: HY28A - 2.8" TFT LCD Display Module by HAOYU Electronics
- + Default values match Texy's display shield
- +Load: dtoverlay=hy28a,<param>=<val>
- +Params: speed Display SPI bus speed
- +
- + rotate Display rotation {0,90,180,270}
- +
- + fps Delay between frame updates
- +
- + debug Debug output level {0-7}
- +
- + xohms Touchpanel sensitivity (X-plate resistance)
- +
- + resetgpio GPIO used to reset controller
- +
- + ledgpio GPIO used to control backlight
- +
- +
- +Name: hy28b
- +Info: HY28B - 2.8" TFT LCD Display Module by HAOYU Electronics
- + Default values match Texy's display shield
- +Load: dtoverlay=hy28b,<param>=<val>
- +Params: speed Display SPI bus speed
- +
- + rotate Display rotation {0,90,180,270}
- +
- + fps Delay between frame updates
- +
- + debug Debug output level {0-7}
- +
- + xohms Touchpanel sensitivity (X-plate resistance)
- +
- + resetgpio GPIO used to reset controller
- +
- + ledgpio GPIO used to control backlight
- +
- +
- +Name: hy28b-2017
- +Info: HY28B 2017 version - 2.8" TFT LCD Display Module by HAOYU Electronics
- + Default values match Texy's display shield
- +Load: dtoverlay=hy28b-2017,<param>=<val>
- +Params: speed Display SPI bus speed
- +
- + rotate Display rotation {0,90,180,270}
- +
- + fps Delay between frame updates
- +
- + debug Debug output level {0-7}
- +
- + xohms Touchpanel sensitivity (X-plate resistance)
- +
- + resetgpio GPIO used to reset controller
- +
- + ledgpio GPIO used to control backlight
- +
- +
- +Name: i-sabre-q2m
- +Info: Configures the Audiophonics I-SABRE Q2M DAC
- +Load: dtoverlay=i-sabre-q2m
- +Params: <None>
- +
- +
- +Name: i2c-bcm2708
- +Info: Fall back to the i2c_bcm2708 driver for the i2c_arm bus.
- +Load: dtoverlay=i2c-bcm2708
- +Params: <None>
- +
- +
- +Name: i2c-gpio
- +Info: Adds support for software i2c controller on gpio pins
- +Load: dtoverlay=i2c-gpio,<param>=<val>
- +Params: i2c_gpio_sda GPIO used for I2C data (default "23")
- +
- + i2c_gpio_scl GPIO used for I2C clock (default "24")
- +
- + i2c_gpio_delay_us Clock delay in microseconds
- + (default "2" = ~100kHz)
- +
- + bus Set to a unique, non-zero value if wanting
- + multiple i2c-gpio busses. If set, will be used
- + as the preferred bus number (/dev/i2c-<n>). If
- + not set, the default value is 0, but the bus
- + number will be dynamically assigned - probably
- + 3.
- +
- +
- +Name: i2c-mux
- +Info: Adds support for a number of I2C bus multiplexers on i2c_arm
- +Load: dtoverlay=i2c-mux,<param>=<val>
- +Params: pca9542 Select the NXP PCA9542 device
- +
- + pca9545 Select the NXP PCA9545 device
- +
- + pca9548 Select the NXP PCA9548 device
- +
- + addr Change I2C address of the device (default 0x70)
- +
- +
- +[ The i2c-mux-pca9548a overlay has been deleted. See i2c-mux. ]
- +
- +
- +Name: i2c-pwm-pca9685a
- +Info: Adds support for an NXP PCA9685A I2C PWM controller on i2c_arm
- +Load: dtoverlay=i2c-pwm-pca9685a,<param>=<val>
- +Params: addr I2C address of PCA9685A (default 0x40)
- +
- +
- +Name: i2c-rtc
- +Info: Adds support for a number of I2C Real Time Clock devices
- +Load: dtoverlay=i2c-rtc,<param>=<val>
- +Params: abx80x Select one of the ABx80x family:
- + AB0801, AB0803, AB0804, AB0805,
- + AB1801, AB1803, AB1804, AB1805
- +
- + bq32000 Select the TI BQ32000 device
- +
- + ds1307 Select the DS1307 device
- +
- + ds1339 Select the DS1339 device
- +
- + ds1340 Select the DS1340 device
- +
- + ds3231 Select the DS3231 device
- +
- + m41t62 Select the M41T62 device
- +
- + mcp7940x Select the MCP7940x device
- +
- + mcp7941x Select the MCP7941x device
- +
- + pcf2127 Select the PCF2127 device
- +
- + pcf2129 Select the PCF2129 device
- +
- + pcf85063 Select the PCF85063 device
- +
- + pcf85063a Select the PCF85063A device
- +
- + pcf8523 Select the PCF8523 device
- +
- + pcf85363 Select the PCF85363 device
- +
- + pcf8563 Select the PCF8563 device
- +
- + rv1805 Select the Micro Crystal RV1805 device
- +
- + rv3028 Select the Micro Crystal RV3028 device
- +
- + sd3078 Select the ZXW Shenzhen whwave SD3078 device
- +
- + s35390a Select the ABLIC S35390A device
- +
- + i2c0 Choose the I2C0 bus on GPIOs 0&1
- +
- + i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
- +
- + addr Sets the address for the RTC. Note that the
- + device must be configured to use the specified
- + address.
- +
- + trickle-diode-disable Do not use the internal trickle charger diode
- + (BQ32000 only)
- +
- + trickle-diode-type Diode type for trickle charge - "standard" or
- + "schottky" (ABx80x and RV1805 only)
- +
- + trickle-resistor-ohms Resistor value for trickle charge (DS1339,
- + ABx80x, RV1805, RV3028)
- +
- + wakeup-source Specify that the RTC can be used as a wakeup
- + source
- +
- + backup-switchover-mode Backup power supply switch mode. Must be 0 for
- + off or 1 for Vdd < VBackup (RV3028 only)
- +
- +
- +Name: i2c-rtc-gpio
- +Info: Adds support for a number of I2C Real Time Clock devices
- + using the software i2c controller
- +Load: dtoverlay=i2c-rtc-gpio,<param>=<val>
- +Params: abx80x Select one of the ABx80x family:
- + AB0801, AB0803, AB0804, AB0805,
- + AB1801, AB1803, AB1804, AB1805
- +
- + bq32000 Select the TI BQ32000 device
- +
- + ds1307 Select the DS1307 device
- +
- + ds1339 Select the DS1339 device
- +
- + ds1340 Select the DS1340 device
- +
- + ds3231 Select the DS3231 device
- +
- + m41t62 Select the M41T62 device
- +
- + mcp7940x Select the MCP7940x device
- +
- + mcp7941x Select the MCP7941x device
- +
- + pcf2127 Select the PCF2127 device
- +
- + pcf2129 Select the PCF2129 device
- +
- + pcf85063 Select the PCF85063 device
- +
- + pcf85063a Select the PCF85063A device
- +
- + pcf8523 Select the PCF8523 device
- +
- + pcf85363 Select the PCF85363 device
- +
- + pcf8563 Select the PCF8563 device
- +
- + rv1805 Select the Micro Crystal RV1805 device
- +
- + rv3028 Select the Micro Crystal RV3028 device
- +
- + sd3078 Select the ZXW Shenzhen whwave SD3078 device
- +
- + s35390a Select the ABLIC S35390A device
- +
- + addr Sets the address for the RTC. Note that the
- + device must be configured to use the specified
- + address.
- +
- + trickle-diode-disable Do not use the internal trickle charger diode
- + (BQ32000 only)
- +
- + trickle-diode-type Diode type for trickle charge - "standard" or
- + "schottky" (ABx80x and RV1805 only)
- +
- + trickle-resistor-ohms Resistor value for trickle charge (DS1339,
- + ABx80x, RV1805, RV3028)
- +
- + wakeup-source Specify that the RTC can be used as a wakeup
- + source
- +
- + backup-switchover-mode Backup power supply switch mode. Must be 0 for
- + off or 1 for Vdd < VBackup (RV3028 only)
- +
- + i2c_gpio_sda GPIO used for I2C data (default "23")
- +
- + i2c_gpio_scl GPIO used for I2C clock (default "24")
- +
- + i2c_gpio_delay_us Clock delay in microseconds
- + (default "2" = ~100kHz)
- +
- +
- +Name: i2c-sensor
- +Info: Adds support for a number of I2C barometric pressure, temperature,
- + light level and chemical sensors on i2c_arm
- +Load: dtoverlay=i2c-sensor,<param>=<val>
- +Params: addr Set the address for the BH1750, BME280, BME680,
- + BMP280, CCS811, DS1621, HDC100X, LM75, SHT3x or
- + TMP102
- +
- + bh1750 Select the Rohm BH1750 ambient light sensor
- + Valid addresses 0x23 or 0x5c, default 0x23
- +
- + bme280 Select the Bosch Sensortronic BME280
- + Valid addresses 0x76-0x77, default 0x76
- +
- + bme680 Select the Bosch Sensortronic BME680
- + Valid addresses 0x76-0x77, default 0x76
- +
- + bmp085 Select the Bosch Sensortronic BMP085
- +
- + bmp180 Select the Bosch Sensortronic BMP180
- +
- + bmp280 Select the Bosch Sensortronic BMP280
- + Valid addresses 0x76-0x77, default 0x76
- +
- + ccs811 Select the AMS CCS811 digital gas sensor
- + Valid addresses 0x5a-0x5b, default 0x5b
- +
- + ds1621 Select the Dallas Semiconductors DS1621 temp
- + sensor. Valid addresses 0x48-0x4f, default 0x48
- +
- + hdc100x Select the Texas Instruments HDC100x temp sensor
- + Valid addresses 0x40-0x43, default 0x40
- +
- + htu21 Select the HTU21 temperature and humidity sensor
- +
- + lm75 Select the Maxim LM75 temperature sensor
- + Valid addresses 0x48-0x4f, default 0x4f
- +
- + lm75addr Deprecated - use addr parameter instead
- +
- + max17040 Select the Maxim Integrated MAX17040 battery
- + monitor
- +
- + sht3x Select the Sensiron SHT3x temperature and
- + humidity sensor. Valid addresses 0x44-0x45,
- + default 0x44
- +
- + si7020 Select the Silicon Labs Si7013/20/21 humidity/
- + temperature sensor
- +
- + sps30 Select the Sensirion SPS30 particulate matter
- + sensor. Fixed address 0x69.
- +
- + sgp30 Select the Sensirion SGP30 VOC sensor.
- + Fixed address 0x58.
- +
- + tmp102 Select the Texas Instruments TMP102 temp sensor
- + Valid addresses 0x48-0x4b, default 0x48
- +
- + tsl4531 Select the AMS TSL4531 digital ambient light
- + sensor
- +
- + veml6070 Select the Vishay VEML6070 ultraviolet light
- + sensor
- +
- +
- +Name: i2c0
- +Info: Change i2c0 pin usage. Not all pin combinations are usable on all
- + platforms - platforms other then Compute Modules can only use this
- + to disable transaction combining.
- + Do NOT use in conjunction with dtparam=i2c_vc=on. From the 5.4 kernel
- + onwards the base DT includes the use of i2c_mux_pinctrl to expose two
- + muxings of BSC0 - GPIOs 0&1, and whichever combination is used for the
- + camera and display connectors. This overlay disables that mux and
- + configures /dev/i2c0 to point at whichever set of pins is requested.
- + dtparam=i2c_vc=on will try and enable the mux, so combining the two
- + will cause conflicts.
- +Load: dtoverlay=i2c0,<param>=<val>
- +Params: pins_0_1 Use pins 0 and 1 (default)
- + pins_28_29 Use pins 28 and 29
- + pins_44_45 Use pins 44 and 45
- + pins_46_47 Use pins 46 and 47
- + combine Allow transactions to be combined (default
- + "yes")
- +
- +
- +Name: i2c0-bcm2708
- +Info: Deprecated, legacy version of i2c0.
- +Load: <Deprecated>
- +
- +
- +Name: i2c1
- +Info: Change i2c1 pin usage. Not all pin combinations are usable on all
- + platforms - platforms other then Compute Modules can only use this
- + to disable transaction combining.
- +Load: dtoverlay=i2c1,<param>=<val>
- +Params: pins_2_3 Use pins 2 and 3 (default)
- + pins_44_45 Use pins 44 and 45
- + combine Allow transactions to be combined (default
- + "yes")
- +
- +
- +Name: i2c1-bcm2708
- +Info: Deprecated, legacy version of i2c1.
- +Load: <Deprecated>
- +
- +
- +Name: i2c3
- +Info: Enable the i2c3 bus. BCM2711 only.
- +Load: dtoverlay=i2c3,<param>
- +Params: pins_2_3 Use GPIOs 2 and 3
- + pins_4_5 Use GPIOs 4 and 5 (default)
- + baudrate Set the baudrate for the interface (default
- + "100000")
- +
- +
- +Name: i2c4
- +Info: Enable the i2c4 bus. BCM2711 only.
- +Load: dtoverlay=i2c4,<param>
- +Params: pins_6_7 Use GPIOs 6 and 7
- + pins_8_9 Use GPIOs 8 and 9 (default)
- + baudrate Set the baudrate for the interface (default
- + "100000")
- +
- +
- +Name: i2c5
- +Info: Enable the i2c5 bus. BCM2711 only.
- +Load: dtoverlay=i2c5,<param>
- +Params: pins_10_11 Use GPIOs 10 and 11
- + pins_12_13 Use GPIOs 12 and 13 (default)
- + baudrate Set the baudrate for the interface (default
- + "100000")
- +
- +
- +Name: i2c6
- +Info: Enable the i2c6 bus. BCM2711 only.
- +Load: dtoverlay=i2c6,<param>
- +Params: pins_0_1 Use GPIOs 0 and 1
- + pins_22_23 Use GPIOs 22 and 23 (default)
- + baudrate Set the baudrate for the interface (default
- + "100000")
- +
- +
- +Name: i2s-gpio28-31
- +Info: move I2S function block to GPIO 28 to 31
- +Load: dtoverlay=i2s-gpio28-31
- +Params: <None>
- +
- +
- +Name: ilitek251x
- +Info: Enables I2C connected Ilitek 251x multiple touch controller using
- + GPIO 4 (pin 7 on GPIO header) for interrupt.
- +Load: dtoverlay=ilitek251x,<param>=<val>
- +Params: interrupt GPIO used for interrupt (default 4)
- + sizex Touchscreen size x, horizontal resolution of
- + touchscreen (in pixels)
- + sizey Touchscreen size y, vertical resolution of
- + touchscreen (in pixels)
- +
- +
- +Name: imx219
- +Info: Sony IMX219 camera module.
- + Uses Unicam 1, which is the standard camera connector on most Pi
- + variants.
- +Load: dtoverlay=imx219,<param>=<val>
- +Params: rotation Mounting rotation of the camera sensor (0 or
- + 180, default 180)
- + orientation Sensor orientation (0 = front, 1 = rear,
- + 2 = external, default external)
- +
- +
- +Name: imx290
- +Info: Sony IMX290 camera module.
- + Uses Unicam 1, which is the standard camera connector on most Pi
- + variants. NB This currently uses 4 CSI2 data lanes and therefore will
- + only work on a CM.
- +Load: dtoverlay=imx290,<param>
- +Params: 4lane Enable 4 CSI2 lanes. This requires a Compute
- + Module (1, 3, or 4).
- + clock-frequency Sets the clock frequency to match that used on
- + the board.
- + Modules from Vision Components use 37.125MHz
- + (the default), whilst those from Innomaker use
- + 74.25MHz.
- + mono Denote that the module is a mono sensor.
- + orientation Sensor orientation (0 = front, 1 = rear,
- + 2 = external, default external)
- + rotation Mounting rotation of the camera sensor (0 or
- + 180, default 0)
- +
- +
- +Name: imx378
- +Info: Sony IMX378 camera module.
- + Uses Unicam 1, which is the standard camera connector on most Pi
- + variants.
- +Load: dtoverlay=imx378,<param>=<val>
- +Params: rotation Mounting rotation of the camera sensor (0 or
- + 180, default 180)
- + orientation Sensor orientation (0 = front, 1 = rear,
- + 2 = external, default external)
- +
- +
- +Name: imx477
- +Info: Sony IMX477 camera module.
- + Uses Unicam 1, which is the standard camera connector on most Pi
- + variants.
- +Load: dtoverlay=imx477,<param>=<val>
- +Params: rotation Mounting rotation of the camera sensor (0 or
- + 180, default 180)
- + orientation Sensor orientation (0 = front, 1 = rear,
- + 2 = external, default external)
- +
- +
- +Name: iqaudio-codec
- +Info: Configures the IQaudio Codec audio card
- +Load: dtoverlay=iqaudio-codec
- +Params: <None>
- +
- +
- +Name: iqaudio-dac
- +Info: Configures the IQaudio DAC audio card
- +Load: dtoverlay=iqaudio-dac,<param>
- +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
- + Digital volume control. Enable with
- + "dtoverlay=iqaudio-dac,24db_digital_gain"
- + (The default behaviour is that the Digital
- + volume control is limited to a maximum of
- + 0dB. ie. it can attenuate but not provide
- + gain. For most users, this will be desired
- + as it will prevent clipping. By appending
- + the 24db_digital_gain parameter, the Digital
- + volume control will allow up to 24dB of
- + gain. If this parameter is enabled, it is the
- + responsibility of the user to ensure that
- + the Digital volume control is set to a value
- + that does not result in clipping/distortion!)
- +
- +
- +Name: iqaudio-dacplus
- +Info: Configures the IQaudio DAC+ audio card
- +Load: dtoverlay=iqaudio-dacplus,<param>=<val>
- +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
- + Digital volume control. Enable with
- + "dtoverlay=iqaudio-dacplus,24db_digital_gain"
- + (The default behaviour is that the Digital
- + volume control is limited to a maximum of
- + 0dB. ie. it can attenuate but not provide
- + gain. For most users, this will be desired
- + as it will prevent clipping. By appending
- + the 24db_digital_gain parameter, the Digital
- + volume control will allow up to 24dB of
- + gain. If this parameter is enabled, it is the
- + responsibility of the user to ensure that
- + the Digital volume control is set to a value
- + that does not result in clipping/distortion!)
- + auto_mute_amp If specified, unmute/mute the IQaudIO amp when
- + starting/stopping audio playback.
- + unmute_amp If specified, unmute the IQaudIO amp once when
- + the DAC driver module loads.
- +
- +
- +Name: iqaudio-digi-wm8804-audio
- +Info: Configures the IQAudIO Digi WM8804 audio card
- +Load: dtoverlay=iqaudio-digi-wm8804-audio,<param>=<val>
- +Params: card_name Override the default, "IQAudIODigi", card name.
- + dai_name Override the default, "IQAudIO Digi", dai name.
- + dai_stream_name Override the default, "IQAudIO Digi HiFi",
- + dai stream name.
- +
- +
- +Name: irs1125
- +Info: Infineon irs1125 TOF camera module.
- + Uses Unicam 1, which is the standard camera connector on most Pi
- + variants.
- +Load: dtoverlay=irs1125
- +Params: <None>
- +
- +
- +Name: jedec-spi-nor
- +Info: Adds support for JEDEC-compliant SPI NOR flash devices. (Note: The
- + "jedec,spi-nor" kernel driver was formerly known as "m25p80".)
- +Load: dtoverlay=jedec-spi-nor,<param>=<val>
- +Params: flash-spi<n>-<m> Enables flash device on SPI<n>, CS#<m>.
- + flash-fastr-spi<n>-<m> Enables flash device with fast read capability
- + on SPI<n>, CS#<m>.
- +
- +
- +Name: justboom-both
- +Info: Simultaneous usage of an justboom-dac and justboom-digi based
- + card
- +Load: dtoverlay=justboom-both,<param>=<val>
- +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
- + Digital volume control. Enable with
- + "dtoverlay=justboom-dac,24db_digital_gain"
- + (The default behaviour is that the Digital
- + volume control is limited to a maximum of
- + 0dB. ie. it can attenuate but not provide
- + gain. For most users, this will be desired
- + as it will prevent clipping. By appending
- + the 24dB_digital_gain parameter, the Digital
- + volume control will allow up to 24dB of
- + gain. If this parameter is enabled, it is the
- + responsibility of the user to ensure that
- + the Digital volume control is set to a value
- + that does not result in clipping/distortion!)
- +
- +
- +Name: justboom-dac
- +Info: Configures the JustBoom DAC HAT, Amp HAT, DAC Zero and Amp Zero audio
- + cards
- +Load: dtoverlay=justboom-dac,<param>=<val>
- +Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
- + Digital volume control. Enable with
- + "dtoverlay=justboom-dac,24db_digital_gain"
- + (The default behaviour is that the Digital
- + volume control is limited to a maximum of
- + 0dB. ie. it can attenuate but not provide
- + gain. For most users, this will be desired
- + as it will prevent clipping. By appending
- + the 24dB_digital_gain parameter, the Digital
- + volume control will allow up to 24dB of
- + gain. If this parameter is enabled, it is the
- + responsibility of the user to ensure that
- + the Digital volume control is set to a value
- + that does not result in clipping/distortion!)
- +
- +
- +Name: justboom-digi
- +Info: Configures the JustBoom Digi HAT and Digi Zero audio cards
- +Load: dtoverlay=justboom-digi
- +Params: <None>
- +
- +
- +Name: lirc-rpi
- +Info: This overlay has been deprecated and removed - see gpio-ir
- +Load: <Deprecated>
- +
- +
- +Name: ltc294x
- +Info: Adds support for the ltc294x family of battery gauges
- +Load: dtoverlay=ltc294x,<param>=<val>
- +Params: ltc2941 Select the ltc2941 device
- +
- + ltc2942 Select the ltc2942 device
- +
- + ltc2943 Select the ltc2943 device
- +
- + ltc2944 Select the ltc2944 device
- +
- + resistor-sense The sense resistor value in milli-ohms.
- + Can be a 32-bit negative value when the battery
- + has been connected to the wrong end of the
- + resistor.
- +
- + prescaler-exponent Range and accuracy of the gauge. The value is
- + programmed into the chip only if it differs
- + from the current setting.
- + For LTC2941 only:
- + - Default value is 128
- + - the exponent is in the range 0-7 (default 7)
- + See the datasheet for more information.
- +
- +
- +Name: max98357a
- +Info: Configures the Maxim MAX98357A I2S DAC
- +Load: dtoverlay=max98357a,<param>=<val>
- +Params: no-sdmode Driver does not manage the state of the DAC's
- + SD_MODE pin (i.e. chip is always on).
- + sdmode-pin integer, GPIO pin connected to the SD_MODE input
- + of the DAC (default GPIO4 if parameter omitted).
- +
- +
- +Name: maxtherm
- +Info: Configure a MAX6675, MAX31855 or MAX31856 thermocouple as an IIO device.
- +
- + For devices on spi1 or spi2, the interfaces should be enabled
- + with one of the spi1-1/2/3cs and/or spi2-1/2/3cs overlays.
- + The overlay expects to disable the relevant spidev node, so also using
- + e.g. cs0_spidev=off is unnecessary.
- +
- + Example:
- + MAX31855 on /dev/spidev0.0
- + dtoverlay=maxtherm,spi0-0,max31855
- + MAX31856 using a type J thermocouple on /dev/spidev2.1
- + dtoverlay=spi2-2cs
- + dtoverlay=maxtherm,spi2-1,max31856,type_j
- +
- +Load: dtoverlay=maxtherm,<param>=<val>
- +Params: spi<n>-<m> Configure device at spi<n>, cs<m>
- + (boolean, required)
- + max6675 Enable support for the MAX6675 (default)
- + max31855 Enable support for the MAX31855
- + max31855e Enable support for the MAX31855E
- + max31855j Enable support for the MAX31855J
- + max31855k Enable support for the MAX31855K
- + max31855n Enable support for the MAX31855N
- + max31855r Enable support for the MAX31855R
- + max31855s Enable support for the MAX31855S
- + max31855t Enable support for the MAX31855T
- + max31856 Enable support for the MAX31856 (with type K)
- + type_b Select a type B sensor for max31856
- + type_e Select a type E sensor for max31856
- + type_j Select a type J sensor for max31856
- + type_k Select a type K sensor for max31856
- + type_n Select a type N sensor for max31856
- + type_r Select a type R sensor for max31856
- + type_s Select a type S sensor for max31856
- + type_t Select a type T sensor for max31856
- +
- +
- +Name: mbed-dac
- +Info: Configures the mbed AudioCODEC (TLV320AIC23B)
- +Load: dtoverlay=mbed-dac
- +Params: <None>
- +
- +
- +Name: mcp23017
- +Info: Configures the MCP23017 I2C GPIO expander
- +Load: dtoverlay=mcp23017,<param>=<val>
- +Params: gpiopin Gpio pin connected to the INTA output of the
- + MCP23017 (default: 4)
- +
- + addr I2C address of the MCP23017 (default: 0x20)
- +
- + mcp23008 Configure an MCP23008 instead.
- + noints Disable the interrupt GPIO line.
- +
- +
- +Name: mcp23s17
- +Info: Configures the MCP23S08/17 SPI GPIO expanders.
- + If devices are present on SPI1 or SPI2, those interfaces must be enabled
- + with one of the spi1-1/2/3cs and/or spi2-1/2/3cs overlays.
- + If interrupts are enabled for a device on a given CS# on a SPI bus, that
- + device must be the only one present on that SPI bus/CS#.
- +Load: dtoverlay=mcp23s17,<param>=<val>
- +Params: s08-spi<n>-<m>-present 4-bit integer, bitmap indicating MCP23S08
- + devices present on SPI<n>, CS#<m>
- +
- + s17-spi<n>-<m>-present 8-bit integer, bitmap indicating MCP23S17
- + devices present on SPI<n>, CS#<m>
- +
- + s08-spi<n>-<m>-int-gpio integer, enables interrupts on a single
- + MCP23S08 device on SPI<n>, CS#<m>, specifies
- + the GPIO pin to which INT output of MCP23S08
- + is connected.
- +
- + s17-spi<n>-<m>-int-gpio integer, enables mirrored interrupts on a
- + single MCP23S17 device on SPI<n>, CS#<m>,
- + specifies the GPIO pin to which either INTA
- + or INTB output of MCP23S17 is connected.
- +
- +
- +Name: mcp2515-can0
- +Info: Configures the MCP2515 CAN controller on spi0.0
- +Load: dtoverlay=mcp2515-can0,<param>=<val>
- +Params: oscillator Clock frequency for the CAN controller (Hz)
- +
- + spimaxfrequency Maximum SPI frequence (Hz)
- +
- + interrupt GPIO for interrupt signal
- +
- +
- +Name: mcp2515-can1
- +Info: Configures the MCP2515 CAN controller on spi0.1
- +Load: dtoverlay=mcp2515-can1,<param>=<val>
- +Params: oscillator Clock frequency for the CAN controller (Hz)
- +
- + spimaxfrequency Maximum SPI frequence (Hz)
- +
- + interrupt GPIO for interrupt signal
- +
- +
- +Name: mcp251xfd
- +Info: Configures the MCP251XFD CAN controller family
- + For devices on spi1 or spi2, the interfaces should be enabled
- + with one of the spi1-1/2/3cs and/or spi2-1/2/3cs overlays.
- +Load: dtoverlay=mcp251xfd,<param>=<val>
- +Params: spi<n>-<m> Configure device at spi<n>, cs<m>
- + (boolean, required)
- +
- + oscillator Clock frequency for the CAN controller (Hz)
- +
- + speed Maximum SPI frequence (Hz)
- +
- + interrupt GPIO for interrupt signal
- +
- + rx_interrupt GPIO for RX interrupt signal (nINT1) (optional)
- +
- + xceiver_enable GPIO for CAN transceiver enable (optional)
- +
- + xceiver_active_high specifiy if CAN transceiver enable pin is
- + active high (optional, default: active low)
- +
- +
- +Name: mcp3008
- +Info: Configures MCP3008 A/D converters
- + For devices on spi1 or spi2, the interfaces should be enabled
- + with one of the spi1-1/2/3cs and/or spi2-1/2/3cs overlays.
- +Load: dtoverlay=mcp3008,<param>[=<val>]
- +Params: spi<n>-<m>-present boolean, configure device at spi<n>, cs<m>
- + spi<n>-<m>-speed integer, set the spi bus speed for this device
- +
- +
- +Name: mcp3202
- +Info: Configures MCP3202 A/D converters
- + For devices on spi1 or spi2, the interfaces should be enabled
- + with one of the spi1-1/2/3cs and/or spi2-1/2/3cs overlays.
- +Load: dtoverlay=mcp3202,<param>[=<val>]
- +Params: spi<n>-<m>-present boolean, configure device at spi<n>, cs<m>
- + spi<n>-<m>-speed integer, set the spi bus speed for this device
- +
- +
- +Name: mcp342x
- +Info: Overlay for activation of Microchip MCP3421-3428 ADCs over I2C
- +Load: dtoverlay=mcp342x,<param>=<val>
- +Params: addr I2C bus address of device, for devices with
- + addresses that are configurable, e.g. by
- + hardware links (default=0x68)
- + mcp3421 The device is an MCP3421
- + mcp3422 The device is an MCP3422
- + mcp3423 The device is an MCP3423
- + mcp3424 The device is an MCP3424
- + mcp3425 The device is an MCP3425
- + mcp3426 The device is an MCP3426
- + mcp3427 The device is an MCP3427
- + mcp3428 The device is an MCP3428
- +
- +
- +Name: media-center
- +Info: Media Center HAT - 2.83" Touch Display + extras by Pi Supply
- +Load: dtoverlay=media-center,<param>=<val>
- +Params: speed Display SPI bus speed
- + rotate Display rotation {0,90,180,270}
- + fps Delay between frame updates
- + xohms Touchpanel sensitivity (X-plate resistance)
- + swapxy Swap x and y axis
- + backlight Change backlight GPIO pin {e.g. 12, 18}
- + gpio_out_pin GPIO for output (default "17")
- + gpio_in_pin GPIO for input (default "18")
- + gpio_in_pull Pull up/down/off on the input pin
- + (default "down")
- + sense Override the IR receive auto-detection logic:
- + "0" = force active-high
- + "1" = force active-low
- + "-1" = use auto-detection
- + (default "-1")
- + softcarrier Turn the software carrier "on" or "off"
- + (default "on")
- + invert "on" = invert the output pin (default "off")
- + debug "on" = enable additional debug messages
- + (default "off")
- +
- +
- +Name: merus-amp
- +Info: Configures the merus-amp audio card
- +Load: dtoverlay=merus-amp
- +Params: <None>
- +
- +
- +Name: midi-uart0
- +Info: Configures UART0 (ttyAMA0) so that a requested 38.4kbaud actually gets
- + 31.25kbaud, the frequency required for MIDI
- +Load: dtoverlay=midi-uart0
- +Params: <None>
- +
- +
- +Name: midi-uart1
- +Info: Configures UART1 (ttyS0) so that a requested 38.4kbaud actually gets
- + 31.25kbaud, the frequency required for MIDI
- +Load: dtoverlay=midi-uart1
- +Params: <None>
- +
- +
- +Name: midi-uart2
- +Info: Configures UART2 (ttyAMA1) so that a requested 38.4kbaud actually gets
- + 31.25kbaud, the frequency required for MIDI
- +Load: dtoverlay=midi-uart2
- +Params: <None>
- +
- +
- +Name: midi-uart3
- +Info: Configures UART3 (ttyAMA2) so that a requested 38.4kbaud actually gets
- + 31.25kbaud, the frequency required for MIDI
- +Load: dtoverlay=midi-uart3
- +Params: <None>
- +
- +
- +Name: midi-uart4
- +Info: Configures UART4 (ttyAMA3) so that a requested 38.4kbaud actually gets
- + 31.25kbaud, the frequency required for MIDI
- +Load: dtoverlay=midi-uart4
- +Params: <None>
- +
- +
- +Name: midi-uart5
- +Info: Configures UART5 (ttyAMA4) so that a requested 38.4kbaud actually gets
- + 31.25kbaud, the frequency required for MIDI
- +Load: dtoverlay=midi-uart5
- +Params: <None>
- +
- +
- +Name: minipitft13
- +Info: Overlay for AdaFruit Mini Pi 1.3" TFT via SPI using fbtft driver.
- +Load: dtoverlay=minipitft13,<param>=<val>
- +Params: speed SPI bus speed (default 32000000)
- + rotate Display rotation (0, 90, 180 or 270; default 0)
- + width Display width (default 240)
- + height Display height (default 240)
- + fps Delay between frame updates (default 25)
- + debug Debug output level (0-7; default 0)
- +
- +
- +Name: miniuart-bt
- +Info: Switch the onboard Bluetooth function on Pi 3B, 3B+, 3A+, 4B and Zero W
- + to use the mini-UART (ttyS0) and restore UART0/ttyAMA0 over GPIOs 14 &
- + 15. Note that this may reduce the maximum usable baudrate.
- + N.B. It is also necessary to edit /lib/systemd/system/hciuart.service
- + and replace ttyAMA0 with ttyS0, unless using Raspbian or another
- + distribution with udev rules that create /dev/serial0 and /dev/serial1,
- + in which case use /dev/serial1 instead because it will always be
- + correct. Furthermore, you must also set core_freq and core_freq_min to
- + the same value in config.txt or the miniuart will not work.
- +Load: dtoverlay=miniuart-bt,<param>=<val>
- +Params: krnbt Set to "on" to enable autoprobing of Bluetooth
- + driver without need of hciattach/btattach
- +
- +
- +Name: mmc
- +Info: Selects the bcm2835-mmc SD/MMC driver, optionally with overclock
- +Load: dtoverlay=mmc,<param>=<val>
- +Params: overclock_50 Clock (in MHz) to use when the MMC framework
- + requests 50MHz
- +
- +
- +Name: mpu6050
- +Info: Overlay for i2c connected mpu6050 imu
- +Load: dtoverlay=mpu6050,<param>=<val>
- +Params: interrupt GPIO pin for interrupt (default 4)
- + addr I2C address of the device (default 0x68)
- +
- +
- +Name: mz61581
- +Info: MZ61581 display by Tontec
- +Load: dtoverlay=mz61581,<param>=<val>
- +Params: speed Display SPI bus speed
- +
- + rotate Display rotation {0,90,180,270}
- +
- + fps Delay between frame updates
- +
- + txbuflen Transmit buffer length (default 32768)
- +
- + debug Debug output level {0-7}
- +
- + xohms Touchpanel sensitivity (X-plate resistance)
- +
- +
- +Name: ov5647
- +Info: Omnivision OV5647 camera module.
- + Uses Unicam 1, which is the standard camera connector on most Pi
- + variants.
- +Load: dtoverlay=ov5647,<param>=<val>
- +Params: rotation Mounting rotation of the camera sensor (0 or
- + 180, default 0)
- + orientation Sensor orientation (0 = front, 1 = rear,
- + 2 = external, default external)
- +
- +
- +Name: ov7251
- +Info: Omnivision OV7251 camera module.
- + Uses Unicam 1, which is the standard camera connector on most Pi
- + variants.
- +Load: dtoverlay=ov7251,<param>=<val>
- +Params: rotation Mounting rotation of the camera sensor (0 or
- + 180, default 0)
- + orientation Sensor orientation (0 = front, 1 = rear,
- + 2 = external, default external)
- +
- +
- +Name: ov9281
- +Info: Omnivision OV9281 camera module.
- + Uses Unicam 1, which is the standard camera connector on most Pi
- + variants.
- +Load: dtoverlay=ov9281,<param>=<val>
- +Params: rotation Mounting rotation of the camera sensor (0 or
- + 180, default 0)
- + orientation Sensor orientation (0 = front, 1 = rear,
- + 2 = external, default external)
- +
- +
- +Name: papirus
- +Info: PaPiRus ePaper Screen by Pi Supply (both HAT and pHAT)
- +Load: dtoverlay=papirus,<param>=<val>
- +Params: panel Display panel (required):
- + 1.44": e1144cs021
- + 2.0": e2200cs021
- + 2.7": e2271cs021
- +
- + speed Display SPI bus speed
- +
- +
- +Name: pca953x
- +Info: TI PCA953x family of I2C GPIO expanders. Default is for NXP PCA9534.
- +Load: dtoverlay=pca953x,<param>=<val>
- +Params: addr I2C address of expander. Default 0x20.
- + pca6416 Select the NXP PCA6416 (16 bit)
- + pca9505 Select the NXP PCA9505 (40 bit)
- + pca9535 Select the NXP PCA9535 (16 bit)
- + pca9536 Select the NXP PCA9536 or TI PCA9536 (4 bit)
- + pca9537 Select the NXP PCA9537 (4 bit)
- + pca9538 Select the NXP PCA9538 (8 bit)
- + pca9539 Select the NXP PCA9539 (16 bit)
- + pca9554 Select the NXP PCA9554 (8 bit)
- + pca9555 Select the NXP PCA9555 (16 bit)
- + pca9556 Select the NXP PCA9556 (8 bit)
- + pca9557 Select the NXP PCA9557 (8 bit)
- + pca9574 Select the NXP PCA9574 (8 bit)
- + pca9575 Select the NXP PCA9575 (16 bit)
- + pca9698 Select the NXP PCA9698 (40 bit)
- + pca16416 Select the NXP PCA16416 (16 bit)
- + pca16524 Select the NXP PCA16524 (24 bit)
- + pca19555a Select the NXP PCA19555A (16 bit)
- + max7310 Select the Maxim MAX7310 (8 bit)
- + max7312 Select the Maxim MAX7312 (16 bit)
- + max7313 Select the Maxim MAX7313 (16 bit)
- + max7315 Select the Maxim MAX7315 (8 bit)
- + pca6107 Select the TI PCA6107 (8 bit)
- + tca6408 Select the TI TCA6408 (8 bit)
- + tca6416 Select the TI TCA6416 (16 bit)
- + tca6424 Select the TI TCA6424 (24 bit)
- + tca9539 Select the TI TCA9539 (16 bit)
- + tca9554 Select the TI TCA9554 (8 bit)
- + cat9554 Select the Onnn CAT9554 (8 bit)
- + pca9654 Select the Onnn PCA9654 (8 bit)
- + xra1202 Select the Exar XRA1202 (8 bit)
- +
- +
- +Name: pcie-32bit-dma
- +Info: Force PCIe config to support 32bit DMA addresses at the expense of
- + having to bounce buffers.
- +Load: dtoverlay=pcie-32bit-dma
- +Params: <None>
- +
- +
- +[ The pcf2127-rtc overlay has been deleted. See i2c-rtc. ]
- +
- +
- +[ The pcf8523-rtc overlay has been deleted. See i2c-rtc. ]
- +
- +
- +[ The pcf8563-rtc overlay has been deleted. See i2c-rtc. ]
- +
- +
- +Name: pi3-act-led
- +Info: This overlay has been renamed act-led, keeping pi3-act-led as an alias
- + for backwards compatibility.
- +Load: <Deprecated>
- +
- +
- +Name: pi3-disable-bt
- +Info: This overlay has been renamed disable-bt, keeping pi3-disable-bt as an
- + alias for backwards compatibility.
- +Load: <Deprecated>
- +
- +
- +Name: pi3-disable-wifi
- +Info: This overlay has been renamed disable-wifi, keeping pi3-disable-wifi as
- + an alias for backwards compatibility.
- +Load: <Deprecated>
- +
- +
- +Name: pi3-miniuart-bt
- +Info: This overlay has been renamed miniuart-bt, keeping pi3-miniuart-bt as
- + an alias for backwards compatibility.
- +Load: <Deprecated>
- +
- +
- +Name: pibell
- +Info: Configures the pibell audio card.
- +Load: dtoverlay=pibell,<param>=<val>
- +Params: alsaname Set the name as it appears in ALSA (default
- + "PiBell")
- +
- +
- +Name: pifacedigital
- +Info: Configures the PiFace Digital mcp23s17 GPIO port expander.
- +Load: dtoverlay=pifacedigital,<param>=<val>
- +Params: spi-present-mask 8-bit integer, bitmap indicating MCP23S17 SPI0
- + CS0 address. PiFace Digital supports addresses
- + 0-3, which can be configured with JP1 and JP2.
- +
- +
- +Name: pifi-40
- +Info: Configures the PiFi 40W stereo amplifier
- +Load: dtoverlay=pifi-40
- +Params: <None>
- +
- +
- +Name: pifi-dac-hd
- +Info: Configures the PiFi DAC HD
- +Load: dtoverlay=pifi-dac-hd
- +Params: <None>
- +
- +
- +Name: pifi-dac-zero
- +Info: Configures the PiFi DAC Zero
- +Load: dtoverlay=pifi-dac-zero
- +Params: <None>
- +
- +
- +Name: pifi-mini-210
- +Info: Configures the PiFi Mini stereo amplifier
- +Load: dtoverlay=pifi-mini-210
- +Params: <None>
- +
- +
- +Name: piglow
- +Info: Configures the PiGlow by pimoroni.com
- +Load: dtoverlay=piglow
- +Params: <None>
- +
- +
- +Name: piscreen
- +Info: PiScreen display by OzzMaker.com
- +Load: dtoverlay=piscreen,<param>=<val>
- +Params: speed Display SPI bus speed
- +
- + rotate Display rotation {0,90,180,270}
- +
- + fps Delay between frame updates
- +
- + debug Debug output level {0-7}
- +
- + xohms Touchpanel sensitivity (X-plate resistance)
- +
- +
- +Name: piscreen2r
- +Info: PiScreen 2 with resistive TP display by OzzMaker.com
- +Load: dtoverlay=piscreen2r,<param>=<val>
- +Params: speed Display SPI bus speed
- +
- + rotate Display rotation {0,90,180,270}
- +
- + fps Delay between frame updates
- +
- + debug Debug output level {0-7}
- +
- + xohms Touchpanel sensitivity (X-plate resistance)
- +
- +
- +Name: pisound
- +Info: Configures the Blokas Labs pisound card
- +Load: dtoverlay=pisound
- +Params: <None>
- +
- +
- +Name: pitft22
- +Info: Adafruit PiTFT 2.2" screen
- +Load: dtoverlay=pitft22,<param>=<val>
- +Params: speed Display SPI bus speed
- +
- + rotate Display rotation {0,90,180,270}
- +
- + fps Delay between frame updates
- +
- + debug Debug output level {0-7}
- +
- +
- +Name: pitft28-capacitive
- +Info: Adafruit PiTFT 2.8" capacitive touch screen
- +Load: dtoverlay=pitft28-capacitive,<param>=<val>
- +Params: speed Display SPI bus speed
- +
- + rotate Display rotation {0,90,180,270}
- +
- + fps Delay between frame updates
- +
- + debug Debug output level {0-7}
- +
- + touch-sizex Touchscreen size x (default 240)
- +
- + touch-sizey Touchscreen size y (default 320)
- +
- + touch-invx Touchscreen inverted x axis
- +
- + touch-invy Touchscreen inverted y axis
- +
- + touch-swapxy Touchscreen swapped x y axis
- +
- +
- +Name: pitft28-resistive
- +Info: Adafruit PiTFT 2.8" resistive touch screen
- +Load: dtoverlay=pitft28-resistive,<param>=<val>
- +Params: speed Display SPI bus speed
- +
- + rotate Display rotation {0,90,180,270}
- +
- + fps Delay between frame updates
- +
- + debug Debug output level {0-7}
- +
- +
- +Name: pitft35-resistive
- +Info: Adafruit PiTFT 3.5" resistive touch screen
- +Load: dtoverlay=pitft35-resistive,<param>=<val>
- +Params: speed Display SPI bus speed
- +
- + rotate Display rotation {0,90,180,270}
- +
- + fps Delay between frame updates
- +
- + debug Debug output level {0-7}
- +
- +
- +Name: pps-gpio
- +Info: Configures the pps-gpio (pulse-per-second time signal via GPIO).
- +Load: dtoverlay=pps-gpio,<param>=<val>
- +Params: gpiopin Input GPIO (default "18")
- + assert_falling_edge When present, assert is indicated by a falling
- + edge, rather than by a rising edge (default
- + off)
- + capture_clear Generate clear events on the trailing edge
- + (default off)
- +
- +
- +Name: pwm
- +Info: Configures a single PWM channel
- + Legal pin,function combinations for each channel:
- + PWM0: 12,4(Alt0) 18,2(Alt5) 40,4(Alt0) 52,5(Alt1)
- + PWM1: 13,4(Alt0) 19,2(Alt5) 41,4(Alt0) 45,4(Alt0) 53,5(Alt1)
- + N.B.:
- + 1) Pin 18 is the only one available on all platforms, and
- + it is the one used by the I2S audio interface.
- + Pins 12 and 13 might be better choices on an A+, B+ or Pi2.
- + 2) The onboard analogue audio output uses both PWM channels.
- + 3) So be careful mixing audio and PWM.
- + 4) Currently the clock must have been enabled and configured
- + by other means.
- +Load: dtoverlay=pwm,<param>=<val>
- +Params: pin Output pin (default 18) - see table
- + func Pin function (default 2 = Alt5) - see above
- + clock PWM clock frequency (informational)
- +
- +
- +Name: pwm-2chan
- +Info: Configures both PWM channels
- + Legal pin,function combinations for each channel:
- + PWM0: 12,4(Alt0) 18,2(Alt5) 40,4(Alt0) 52,5(Alt1)
- + PWM1: 13,4(Alt0) 19,2(Alt5) 41,4(Alt0) 45,4(Alt0) 53,5(Alt1)
- + N.B.:
- + 1) Pin 18 is the only one available on all platforms, and
- + it is the one used by the I2S audio interface.
- + Pins 12 and 13 might be better choices on an A+, B+ or Pi2.
- + 2) The onboard analogue audio output uses both PWM channels.
- + 3) So be careful mixing audio and PWM.
- + 4) Currently the clock must have been enabled and configured
- + by other means.
- +Load: dtoverlay=pwm-2chan,<param>=<val>
- +Params: pin Output pin (default 18) - see table
- + pin2 Output pin for other channel (default 19)
- + func Pin function (default 2 = Alt5) - see above
- + func2 Function for pin2 (default 2 = Alt5)
- + clock PWM clock frequency (informational)
- +
- +
- +Name: pwm-ir-tx
- +Info: Use GPIO pin as pwm-assisted infrared transmitter output.
- + This is an alternative to "gpio-ir-tx". pwm-ir-tx makes use
- + of PWM0 to reduce the CPU load during transmission compared to
- + gpio-ir-tx which uses bit-banging.
- + Legal pin,function combinations are:
- + 12,4(Alt0) 18,2(Alt5) 40,4(Alt0) 52,5(Alt1)
- +Load: dtoverlay=pwm-ir-tx,<param>=<val>
- +Params: gpio_pin Output GPIO (default 18)
- +
- + func Pin function (default 2 = Alt5)
- +
- +
- +Name: qca7000
- +Info: in-tech's Evaluation Board for PLC Stamp micro
- + This uses spi0 and a separate GPIO interrupt to connect the QCA7000.
- +Load: dtoverlay=qca7000,<param>=<val>
- +Params: int_pin GPIO pin for interrupt signal (default 23)
- +
- + speed SPI bus speed (default 12 MHz)
- +
- +
- +Name: qca7000-uart0
- +Info: in-tech's Evaluation Board for PLC Stamp micro (UART)
- + This uses uart0/ttyAMA0 over GPIOs 14 & 15 to connect the QCA7000.
- + But it requires disabling of onboard Bluetooth on
- + Pi 3B, 3B+, 3A+, 4B and Zero W.
- +Load: dtoverlay=qca7000-uart0,<param>=<val>
- +Params: baudrate Set the baudrate for the UART (default
- + "115200")
- +
- +
- +Name: rotary-encoder
- +Info: Overlay for GPIO connected rotary encoder.
- +Load: dtoverlay=rotary-encoder,<param>=<val>
- +Params: pin_a GPIO connected to rotary encoder channel A
- + (default 4).
- + pin_b GPIO connected to rotary encoder channel B
- + (default 17).
- + relative_axis register a relative axis rather than an
- + absolute one. Relative axis will only
- + generate +1/-1 events on the input device,
- + hence no steps need to be passed.
- + linux_axis the input subsystem axis to map to this
- + rotary encoder. Defaults to 0 (ABS_X / REL_X)
- + rollover Automatic rollover when the rotary value
- + becomes greater than the specified steps or
- + smaller than 0. For absolute axis only.
- + steps-per-period Number of steps (stable states) per period.
- + The values have the following meaning:
- + 1: Full-period mode (default)
- + 2: Half-period mode
- + 4: Quarter-period mode
- + steps Number of steps in a full turnaround of the
- + encoder. Only relevant for absolute axis.
- + Defaults to 24 which is a typical value for
- + such devices.
- + wakeup Boolean, rotary encoder can wake up the
- + system.
- + encoding String, the method used to encode steps.
- + Supported are "gray" (the default and more
- + common) and "binary".
- +
- +
- +Name: rpi-backlight
- +Info: Raspberry Pi official display backlight driver
- +Load: dtoverlay=rpi-backlight
- +Params: <None>
- +
- +
- +Name: rpi-cirrus-wm5102
- +Info: Configures the Cirrus Logic Audio Card
- +Load: dtoverlay=rpi-cirrus-wm5102
- +Params: <None>
- +
- +
- +Name: rpi-dac
- +Info: Configures the RPi DAC audio card
- +Load: dtoverlay=rpi-dac
- +Params: <None>
- +
- +
- +Name: rpi-display
- +Info: RPi-Display - 2.8" Touch Display by Watterott
- +Load: dtoverlay=rpi-display,<param>=<val>
- +Params: speed Display SPI bus speed
- + rotate Display rotation {0,90,180,270}
- + fps Delay between frame updates
- + debug Debug output level {0-7}
- + xohms Touchpanel sensitivity (X-plate resistance)
- + swapxy Swap x and y axis
- + backlight Change backlight GPIO pin {e.g. 12, 18}
- +
- +
- +Name: rpi-ft5406
- +Info: Official Raspberry Pi display touchscreen
- +Load: dtoverlay=rpi-ft5406,<param>=<val>
- +Params: touchscreen-size-x Touchscreen X resolution (default 800)
- + touchscreen-size-y Touchscreen Y resolution (default 600);
- + touchscreen-inverted-x Invert touchscreen X coordinates (default 0);
- + touchscreen-inverted-y Invert touchscreen Y coordinates (default 0);
- + touchscreen-swapped-x-y Swap X and Y cordinates (default 0);
- +
- +
- +Name: rpi-poe
- +Info: Raspberry Pi PoE HAT fan
- +Load: dtoverlay=rpi-poe,<param>[=<val>]
- +Params: poe_fan_temp0 Temperature (in millicelcius) at which the fan
- + turns on (default 40000)
- + poe_fan_temp0_hyst Temperature delta (in millicelcius) at which
- + the fan turns off (default 2000)
- + poe_fan_temp1 Temperature (in millicelcius) at which the fan
- + speeds up (default 45000)
- + poe_fan_temp1_hyst Temperature delta (in millicelcius) at which
- + the fan slows down (default 2000)
- + poe_fan_temp2 Temperature (in millicelcius) at which the fan
- + speeds up (default 50000)
- + poe_fan_temp2_hyst Temperature delta (in millicelcius) at which
- + the fan slows down (default 2000)
- + poe_fan_temp3 Temperature (in millicelcius) at which the fan
- + speeds up (default 55000)
- + poe_fan_temp3_hyst Temperature delta (in millicelcius) at which
- + the fan slows down (default 5000)
- +
- +
- +Name: rpi-poe-plus
- +Info: Raspberry Pi PoE+ HAT fan
- +Load: dtoverlay=rpi-poe-plus,<param>[=<val>]
- +Params: poe_fan_temp0 Temperature (in millicelcius) at which the fan
- + turns on (default 40000)
- + poe_fan_temp0_hyst Temperature delta (in millicelcius) at which
- + the fan turns off (default 2000)
- + poe_fan_temp1 Temperature (in millicelcius) at which the fan
- + speeds up (default 45000)
- + poe_fan_temp1_hyst Temperature delta (in millicelcius) at which
- + the fan slows down (default 2000)
- + poe_fan_temp2 Temperature (in millicelcius) at which the fan
- + speeds up (default 50000)
- + poe_fan_temp2_hyst Temperature delta (in millicelcius) at which
- + the fan slows down (default 2000)
- + poe_fan_temp3 Temperature (in millicelcius) at which the fan
- + speeds up (default 55000)
- + poe_fan_temp3_hyst Temperature delta (in millicelcius) at which
- + the fan slows down (default 5000)
- +
- +
- +Name: rpi-proto
- +Info: Configures the RPi Proto audio card
- +Load: dtoverlay=rpi-proto
- +Params: <None>
- +
- +
- +Name: rpi-sense
- +Info: Raspberry Pi Sense HAT
- +Load: dtoverlay=rpi-sense
- +Params: <None>
- +
- +
- +Name: rpi-tv
- +Info: Raspberry Pi TV HAT
- +Load: dtoverlay=rpi-tv
- +Params: <None>
- +
- +
- +Name: rpivid-v4l2
- +Info: Load the V4L2 stateless video decoder driver for the HEVC block,
- + disabling the memory mapped devices in the process.
- +Load: dtoverlay=rpivid-v4l2
- +Params: <None>
- +
- +
- +Name: rra-digidac1-wm8741-audio
- +Info: Configures the Red Rocks Audio DigiDAC1 soundcard
- +Load: dtoverlay=rra-digidac1-wm8741-audio
- +Params: <None>
- +
- +
- +Name: sainsmart18
- +Info: Overlay for the SPI-connected Sainsmart 1.8" display (based on the
- + ST7735R chip).
- +Load: dtoverlay=sainsmart18,<param>=<val>
- +Params: rotate Display rotation {0,90,180,270}
- + speed SPI bus speed in Hz (default 4000000)
- + fps Display frame rate in Hz
- + bgr Enable BGR mode (default off)
- + debug Debug output level {0-7}
- + dc_pin GPIO pin for D/C (default 24)
- + reset_pin GPIO pin for RESET (default 25)
- +
- +
- +Name: sc16is750-i2c
- +Info: Overlay for the NXP SC16IS750 UART with I2C Interface
- + Enables the chip on I2C1 at 0x48 (or the "addr" parameter value). To
- + select another address, please refer to table 10 in reference manual.
- +Load: dtoverlay=sc16is750-i2c,<param>=<val>
- +Params: int_pin GPIO used for IRQ (default 24)
- + addr Address (default 0x48)
- + xtal On-board crystal frequency (default 14745600)
- +
- +
- +Name: sc16is752-i2c
- +Info: Overlay for the NXP SC16IS752 dual UART with I2C Interface
- + Enables the chip on I2C1 at 0x48 (or the "addr" parameter value). To
- + select another address, please refer to table 10 in reference manual.
- +Load: dtoverlay=sc16is752-i2c,<param>=<val>
- +Params: int_pin GPIO used for IRQ (default 24)
- + addr Address (default 0x48)
- + xtal On-board crystal frequency (default 14745600)
- +
- +
- +Name: sc16is752-spi0
- +Info: Overlay for the NXP SC16IS752 Dual UART with SPI Interface
- + Enables the chip on SPI0.
- +Load: dtoverlay=sc16is752-spi0,<param>=<val>
- +Params: int_pin GPIO used for IRQ (default 24)
- + xtal On-board crystal frequency (default 14745600)
- +
- +
- +Name: sc16is752-spi1
- +Info: Overlay for the NXP SC16IS752 Dual UART with SPI Interface
- + Enables the chip on SPI1.
- + N.B.: spi1 is only accessible on devices with a 40pin header, eg:
- + A+, B+, Zero and PI2 B; as well as the Compute Module.
- +
- +Load: dtoverlay=sc16is752-spi1,<param>=<val>
- +Params: int_pin GPIO used for IRQ (default 24)
- + xtal On-board crystal frequency (default 14745600)
- +
- +
- +Name: sdhost
- +Info: Selects the bcm2835-sdhost SD/MMC driver, optionally with overclock.
- + N.B. This overlay is designed for situations where the mmc driver is
- + the default, so it disables the other (mmc) interface - this will kill
- + WLAN on a Pi3. If this isn't what you want, either use the sdtweak
- + overlay or the new sd_* dtparams of the base DTBs.
- +Load: dtoverlay=sdhost,<param>=<val>
- +Params: overclock_50 Clock (in MHz) to use when the MMC framework
- + requests 50MHz
- +
- + force_pio Disable DMA support (default off)
- +
- + pio_limit Number of blocks above which to use DMA
- + (default 1)
- +
- + debug Enable debug output (default off)
- +
- +
- +Name: sdio
- +Info: Selects the bcm2835-sdhost SD/MMC driver, optionally with overclock,
- + and enables SDIO via GPIOs 22-27. An example of use in 1-bit mode is
- + "dtoverlay=sdio,bus_width=1,gpios_22_25"
- +Load: dtoverlay=sdio,<param>=<val>
- +Params: sdio_overclock SDIO Clock (in MHz) to use when the MMC
- + framework requests 50MHz
- +
- + poll_once Disable SDIO-device polling every second
- + (default on: polling once at boot-time)
- +
- + bus_width Set the SDIO host bus width (default 4 bits)
- +
- + gpios_22_25 Select GPIOs 22-25 for 1-bit mode. Must be used
- + with bus_width=1. This replaces the sdio-1bit
- + overlay, which is now deprecated.
- +
- + gpios_34_37 Select GPIOs 34-37 for 1-bit mode. Must be used
- + with bus_width=1.
- +
- + gpios_34_39 Select GPIOs 34-39 for 4-bit mode. Must be used
- + with bus_width=4 (the default).
- +
- +
- +Name: sdio-1bit
- +Info: This overlay is now deprecated. Use
- + "dtoverlay=sdio,bus_width=1,gpios_22_25" instead.
- +Load: <Deprecated>
- +
- +
- +Name: sdtweak
- +Info: This overlay is now deprecated. Use the sd_* dtparams in the
- + base DTB, e.g. "dtoverlay=sdtweak,poll_once" becomes
- + "dtparam=sd_poll_once".
- +Load: <Deprecated>
- +
- +
- +Name: seeed-can-fd-hat-v1
- +Info: Overlay for Seeed Studio CAN BUS FD HAT with two CAN FD
- + channels without RTC. Use this overlay if your HAT has no
- + battery holder.
- + https://www.seeedstudio.com/2-Channel-CAN-BUS-FD-Shield-for-Raspberry-Pi-p-4072.html
- +Load: dtoverlay=seeed-can-fd-hat-v1
- +Params: <None>
- +
- +
- +Name: seeed-can-fd-hat-v2
- +Info: Overlay for Seeed Studio CAN BUS FD HAT with two CAN FD
- + channels and an RTC. Use this overlay if your HAT has a
- + battery holder.
- + https://www.seeedstudio.com/CAN-BUS-FD-HAT-for-Raspberry-Pi-p-4742.html
- +Load: dtoverlay=seeed-can-fd-hat-v2
- +Params: <None>
- +
- +
- +Name: sh1106-spi
- +Info: Overlay for SH1106 OLED via SPI using fbtft staging driver.
- +Load: dtoverlay=sh1106-spi,<param>=<val>
- +Params: speed SPI bus speed (default 4000000)
- + rotate Display rotation (0, 90, 180 or 270; default 0)
- + fps Delay between frame updates (default 25)
- + debug Debug output level (0-7; default 0)
- + dc_pin GPIO pin for D/C (default 24)
- + reset_pin GPIO pin for RESET (default 25)
- + height Display height (32 or 64; default 64)
- +
- +
- +Name: si446x-spi0
- +Info: Overlay for Si446x UHF Transceiver via SPI using si446x driver.
- + The driver is currently out-of-tree at
- + https://github.com/sunipkmukherjee/silabs.git
- +Load: dtoverlay=si446x-spi0,<param>=<val>
- +Params: speed SPI bus speed (default 4000000)
- + int_pin GPIO pin for interrupts (default 17)
- + reset_pin GPIO pin for RESET (default 27)
- +
- +
- +Name: smi
- +Info: Enables the Secondary Memory Interface peripheral. Uses GPIOs 2-25!
- +Load: dtoverlay=smi
- +Params: <None>
- +
- +
- +Name: smi-dev
- +Info: Enables the userspace interface for the SMI driver
- +Load: dtoverlay=smi-dev
- +Params: <None>
- +
- +
- +Name: smi-nand
- +Info: Enables access to NAND flash via the SMI interface
- +Load: dtoverlay=smi-nand
- +Params: <None>
- +
- +
- +Name: spi-gpio35-39
- +Info: Move SPI function block to GPIO 35 to 39
- +Load: dtoverlay=spi-gpio35-39
- +Params: <None>
- +
- +
- +Name: spi-gpio40-45
- +Info: Move SPI function block to GPIOs 40 to 45
- +Load: dtoverlay=spi-gpio40-45
- +Params: <None>
- +
- +
- +Name: spi-rtc
- +Info: Adds support for a number of SPI Real Time Clock devices
- +Load: dtoverlay=spi-rtc,<param>=<val>
- +Params: ds3232 Select the DS3232 device
- + ds3234 Select the DS3234 device
- + pcf2123 Select the PCF2123 device
- +
- + spi0_0 Use spi0.0 (default)
- + spi0_1 Use spi0.1
- + spi1_0 Use spi1.0
- + spi1_1 Use spi1.1
- + spi2_0 Use spi2.0
- + spi2_1 Use spi2.1
- + cs_high This device requires an active-high CS
- +
- +
- +Name: spi0-1cs
- +Info: Only use one CS pin for SPI0
- +Load: dtoverlay=spi0-1cs,<param>=<val>
- +Params: cs0_pin GPIO pin for CS0 (default 8)
- + no_miso Don't claim and use the MISO pin (9), freeing
- + it for other uses.
- +
- +
- +Name: spi0-2cs
- +Info: Change the CS pins for SPI0
- +Load: dtoverlay=spi0-2cs,<param>=<val>
- +Params: cs0_pin GPIO pin for CS0 (default 8)
- + cs1_pin GPIO pin for CS1 (default 7)
- + no_miso Don't claim and use the MISO pin (9), freeing
- + it for other uses.
- +
- +
- +Name: spi0-cs
- +Info: This overlay has been renamed spi0-2cs, keeping spi0-cs as an
- + alias for backwards compatibility.
- +Load: <Deprecated>
- +
- +
- +Name: spi0-hw-cs
- +Info: This overlay has been deprecated and removed because it is no longer
- + necessary and has been seen to prevent spi0 from working.
- +Load: <Deprecated>
- +
- +
- +Name: spi1-1cs
- +Info: Enables spi1 with a single chip select (CS) line and associated spidev
- + dev node. The gpio pin number for the CS line and spidev device node
- + creation are configurable.
- + N.B.: spi1 is only accessible on devices with a 40pin header, eg:
- + A+, B+, Zero and PI2 B; as well as the Compute Module.
- +Load: dtoverlay=spi1-1cs,<param>=<val>
- +Params: cs0_pin GPIO pin for CS0 (default 18 - BCM SPI1_CE0).
- + cs0_spidev Set to 'disabled' to stop the creation of a
- + userspace device node /dev/spidev1.0 (default
- + is 'okay' or enabled).
- +
- +
- +Name: spi1-2cs
- +Info: Enables spi1 with two chip select (CS) lines and associated spidev
- + dev nodes. The gpio pin numbers for the CS lines and spidev device node
- + creation are configurable.
- + N.B.: spi1 is only accessible on devices with a 40pin header, eg:
- + A+, B+, Zero and PI2 B; as well as the Compute Module.
- +Load: dtoverlay=spi1-2cs,<param>=<val>
- +Params: cs0_pin GPIO pin for CS0 (default 18 - BCM SPI1_CE0).
- + cs1_pin GPIO pin for CS1 (default 17 - BCM SPI1_CE1).
- + cs0_spidev Set to 'disabled' to stop the creation of a
- + userspace device node /dev/spidev1.0 (default
- + is 'okay' or enabled).
- + cs1_spidev Set to 'disabled' to stop the creation of a
- + userspace device node /dev/spidev1.1 (default
- + is 'okay' or enabled).
- +
- +
- +Name: spi1-3cs
- +Info: Enables spi1 with three chip select (CS) lines and associated spidev
- + dev nodes. The gpio pin numbers for the CS lines and spidev device node
- + creation are configurable.
- + N.B.: spi1 is only accessible on devices with a 40pin header, eg:
- + A+, B+, Zero and PI2 B; as well as the Compute Module.
- +Load: dtoverlay=spi1-3cs,<param>=<val>
- +Params: cs0_pin GPIO pin for CS0 (default 18 - BCM SPI1_CE0).
- + cs1_pin GPIO pin for CS1 (default 17 - BCM SPI1_CE1).
- + cs2_pin GPIO pin for CS2 (default 16 - BCM SPI1_CE2).
- + cs0_spidev Set to 'disabled' to stop the creation of a
- + userspace device node /dev/spidev1.0 (default
- + is 'okay' or enabled).
- + cs1_spidev Set to 'disabled' to stop the creation of a
- + userspace device node /dev/spidev1.1 (default
- + is 'okay' or enabled).
- + cs2_spidev Set to 'disabled' to stop the creation of a
- + userspace device node /dev/spidev1.2 (default
- + is 'okay' or enabled).
- +
- +
- +Name: spi2-1cs
- +Info: Enables spi2 with a single chip select (CS) line and associated spidev
- + dev node. The gpio pin number for the CS line and spidev device node
- + creation are configurable.
- + N.B.: spi2 is only accessible with the Compute Module.
- +Load: dtoverlay=spi2-1cs,<param>=<val>
- +Params: cs0_pin GPIO pin for CS0 (default 43 - BCM SPI2_CE0).
- + cs0_spidev Set to 'disabled' to stop the creation of a
- + userspace device node /dev/spidev2.0 (default
- + is 'okay' or enabled).
- +
- +
- +Name: spi2-2cs
- +Info: Enables spi2 with two chip select (CS) lines and associated spidev
- + dev nodes. The gpio pin numbers for the CS lines and spidev device node
- + creation are configurable.
- + N.B.: spi2 is only accessible with the Compute Module.
- +Load: dtoverlay=spi2-2cs,<param>=<val>
- +Params: cs0_pin GPIO pin for CS0 (default 43 - BCM SPI2_CE0).
- + cs1_pin GPIO pin for CS1 (default 44 - BCM SPI2_CE1).
- + cs0_spidev Set to 'disabled' to stop the creation of a
- + userspace device node /dev/spidev2.0 (default
- + is 'okay' or enabled).
- + cs1_spidev Set to 'disabled' to stop the creation of a
- + userspace device node /dev/spidev2.1 (default
- + is 'okay' or enabled).
- +
- +
- +Name: spi2-3cs
- +Info: Enables spi2 with three chip select (CS) lines and associated spidev
- + dev nodes. The gpio pin numbers for the CS lines and spidev device node
- + creation are configurable.
- + N.B.: spi2 is only accessible with the Compute Module.
- +Load: dtoverlay=spi2-3cs,<param>=<val>
- +Params: cs0_pin GPIO pin for CS0 (default 43 - BCM SPI2_CE0).
- + cs1_pin GPIO pin for CS1 (default 44 - BCM SPI2_CE1).
- + cs2_pin GPIO pin for CS2 (default 45 - BCM SPI2_CE2).
- + cs0_spidev Set to 'disabled' to stop the creation of a
- + userspace device node /dev/spidev2.0 (default
- + is 'okay' or enabled).
- + cs1_spidev Set to 'disabled' to stop the creation of a
- + userspace device node /dev/spidev2.1 (default
- + is 'okay' or enabled).
- + cs2_spidev Set to 'disabled' to stop the creation of a
- + userspace device node /dev/spidev2.2 (default
- + is 'okay' or enabled).
- +
- +
- +Name: spi3-1cs
- +Info: Enables spi3 with a single chip select (CS) line and associated spidev
- + dev node. The gpio pin number for the CS line and spidev device node
- + creation are configurable. BCM2711 only.
- +Load: dtoverlay=spi3-1cs,<param>=<val>
- +Params: cs0_pin GPIO pin for CS0 (default 0 - BCM SPI3_CE0).
- + cs0_spidev Set to 'off' to prevent the creation of a
- + userspace device node /dev/spidev3.0 (default
- + is 'on' or enabled).
- +
- +
- +Name: spi3-2cs
- +Info: Enables spi3 with two chip select (CS) lines and associated spidev
- + dev nodes. The gpio pin numbers for the CS lines and spidev device node
- + creation are configurable. BCM2711 only.
- +Load: dtoverlay=spi3-2cs,<param>=<val>
- +Params: cs0_pin GPIO pin for CS0 (default 0 - BCM SPI3_CE0).
- + cs1_pin GPIO pin for CS1 (default 24 - BCM SPI3_CE1).
- + cs0_spidev Set to 'off' to prevent the creation of a
- + userspace device node /dev/spidev3.0 (default
- + is 'on' or enabled).
- + cs1_spidev Set to 'off' to prevent the creation of a
- + userspace device node /dev/spidev3.1 (default
- + is 'on' or enabled).
- +
- +
- +Name: spi4-1cs
- +Info: Enables spi4 with a single chip select (CS) line and associated spidev
- + dev node. The gpio pin number for the CS line and spidev device node
- + creation are configurable. BCM2711 only.
- +Load: dtoverlay=spi4-1cs,<param>=<val>
- +Params: cs0_pin GPIO pin for CS0 (default 4 - BCM SPI4_CE0).
- + cs0_spidev Set to 'off' to prevent the creation of a
- + userspace device node /dev/spidev4.0 (default
- + is 'on' or enabled).
- +
- +
- +Name: spi4-2cs
- +Info: Enables spi4 with two chip select (CS) lines and associated spidev
- + dev nodes. The gpio pin numbers for the CS lines and spidev device node
- + creation are configurable. BCM2711 only.
- +Load: dtoverlay=spi4-2cs,<param>=<val>
- +Params: cs0_pin GPIO pin for CS0 (default 4 - BCM SPI4_CE0).
- + cs1_pin GPIO pin for CS1 (default 25 - BCM SPI4_CE1).
- + cs0_spidev Set to 'off' to prevent the creation of a
- + userspace device node /dev/spidev4.0 (default
- + is 'on' or enabled).
- + cs1_spidev Set to 'off' to prevent the creation of a
- + userspace device node /dev/spidev4.1 (default
- + is 'on' or enabled).
- +
- +
- +Name: spi5-1cs
- +Info: Enables spi5 with a single chip select (CS) line and associated spidev
- + dev node. The gpio pin numbers for the CS lines and spidev device node
- + creation are configurable. BCM2711 only.
- +Load: dtoverlay=spi5-1cs,<param>=<val>
- +Params: cs0_pin GPIO pin for CS0 (default 12 - BCM SPI5_CE0).
- + cs0_spidev Set to 'off' to prevent the creation of a
- + userspace device node /dev/spidev5.0 (default
- + is 'on' or enabled).
- +
- +
- +Name: spi5-2cs
- +Info: Enables spi5 with two chip select (CS) lines and associated spidev
- + dev nodes. The gpio pin numbers for the CS lines and spidev device node
- + creation are configurable. BCM2711 only.
- +Load: dtoverlay=spi5-2cs,<param>=<val>
- +Params: cs0_pin GPIO pin for CS0 (default 12 - BCM SPI5_CE0).
- + cs1_pin GPIO pin for CS1 (default 26 - BCM SPI5_CE1).
- + cs0_spidev Set to 'off' to prevent the creation of a
- + userspace device node /dev/spidev5.0 (default
- + is 'on' or enabled).
- + cs1_spidev Set to 'off' to prevent the creation of a
- + userspace device node /dev/spidev5.1 (default
- + is 'on' or enabled).
- +
- +
- +Name: spi6-1cs
- +Info: Enables spi6 with a single chip select (CS) line and associated spidev
- + dev node. The gpio pin number for the CS line and spidev device node
- + creation are configurable. BCM2711 only.
- +Load: dtoverlay=spi6-1cs,<param>=<val>
- +Params: cs0_pin GPIO pin for CS0 (default 18 - BCM SPI6_CE0).
- + cs0_spidev Set to 'off' to prevent the creation of a
- + userspace device node /dev/spidev6.0 (default
- + is 'on' or enabled).
- +
- +
- +Name: spi6-2cs
- +Info: Enables spi6 with two chip select (CS) lines and associated spidev
- + dev nodes. The gpio pin numbers for the CS lines and spidev device node
- + creation are configurable. BCM2711 only.
- +Load: dtoverlay=spi6-2cs,<param>=<val>
- +Params: cs0_pin GPIO pin for CS0 (default 18 - BCM SPI6_CE0).
- + cs1_pin GPIO pin for CS1 (default 27 - BCM SPI6_CE1).
- + cs0_spidev Set to 'off' to prevent the creation of a
- + userspace device node /dev/spidev6.0 (default
- + is 'on' or enabled).
- + cs1_spidev Set to 'off' to prevent the creation of a
- + userspace device node /dev/spidev6.1 (default
- + is 'on' or enabled).
- +
- +
- +Name: ssd1306
- +Info: Overlay for activation of SSD1306 over I2C OLED display framebuffer.
- +Load: dtoverlay=ssd1306,<param>=<val>
- +Params: address Location in display memory of first character.
- + (default=0)
- + width Width of display. (default=128)
- + height Height of display. (default=64)
- + offset virtual channel a. (default=0)
- + normal Has no effect on displays tested. (default=not
- + set)
- + sequential Set this if every other scan line is missing.
- + (default=not set)
- + remapped Set this if display is garbled. (default=not
- + set)
- + inverted Set this if display is inverted and mirrored.
- + (default=not set)
- +
- + Examples:
- + Typical usage for 128x64 display: dtoverlay=ssd1306,inverted
- +
- + Typical usage for 128x32 display: dtoverlay=ssd1306,inverted,sequential
- +
- + i2c_baudrate=400000 will speed up the display.
- +
- + i2c_baudrate=1000000 seems to work even though it's not officially
- + supported by the hardware, and is faster still.
- +
- + For more information refer to the device datasheet at:
- + https://cdn-shop.adafruit.com/datasheets/SSD1306.pdf
- +
- +
- +Name: ssd1306-spi
- +Info: Overlay for SSD1306 OLED via SPI using fbtft staging driver.
- +Load: dtoverlay=ssd1306-spi,<param>=<val>
- +Params: speed SPI bus speed (default 10000000)
- + rotate Display rotation (0, 90, 180 or 270; default 0)
- + fps Delay between frame updates (default 25)
- + debug Debug output level (0-7; default 0)
- + dc_pin GPIO pin for D/C (default 24)
- + reset_pin GPIO pin for RESET (default 25)
- + height Display height (32 or 64; default 64)
- +
- +
- +Name: ssd1331-spi
- +Info: Overlay for SSD1331 OLED via SPI using fbtft staging driver.
- +Load: dtoverlay=ssd1331-spi,<param>=<val>
- +Params: speed SPI bus speed (default 4500000)
- + rotate Display rotation (0, 90, 180 or 270; default 0)
- + fps Delay between frame updates (default 25)
- + debug Debug output level (0-7; default 0)
- + dc_pin GPIO pin for D/C (default 24)
- + reset_pin GPIO pin for RESET (default 25)
- +
- +
- +Name: ssd1351-spi
- +Info: Overlay for SSD1351 OLED via SPI using fbtft staging driver.
- +Load: dtoverlay=ssd1351-spi,<param>=<val>
- +Params: speed SPI bus speed (default 4500000)
- + rotate Display rotation (0, 90, 180 or 270; default 0)
- + fps Delay between frame updates (default 25)
- + debug Debug output level (0-7; default 0)
- + dc_pin GPIO pin for D/C (default 24)
- + reset_pin GPIO pin for RESET (default 25)
- +
- +
- +Name: superaudioboard
- +Info: Configures the SuperAudioBoard sound card
- +Load: dtoverlay=superaudioboard,<param>=<val>
- +Params: gpiopin GPIO pin for codec reset
- +
- +
- +Name: sx150x
- +Info: Configures the Semtech SX150X I2C GPIO expanders.
- +Load: dtoverlay=sx150x,<param>=<val>
- +Params: sx150<x>-<n>-<m> Enables SX150X device on I2C#<n> with slave
- + address <m>. <x> may be 1-9. <n> may be 0 or 1.
- + Permissible values of <m> (which is denoted in
- + hex) depend on the device variant. For SX1501,
- + SX1502, SX1504 and SX1505, <m> may be 20 or 21.
- + For SX1503 and SX1506, <m> may be 20. For
- + SX1507 and SX1509, <m> may be 3E, 3F, 70 or 71.
- + For SX1508, <m> may be 20, 21, 22 or 23.
- +
- + sx150<x>-<n>-<m>-int-gpio
- + Integer, enables interrupts on SX150X device on
- + I2C#<n> with slave address <m>, specifies
- + the GPIO pin to which NINT output of SX150X is
- + connected.
- +
- +
- +Name: tc358743
- +Info: Toshiba TC358743 HDMI to CSI-2 bridge chip.
- + Uses Unicam 1, which is the standard camera connector on most Pi
- + variants.
- +Load: dtoverlay=tc358743,<param>=<val>
- +Params: 4lane Use 4 lanes (only applicable to Compute Modules
- + CAM1 connector).
- +
- + link-frequency Set the link frequency. Only values of 297000000
- + (574Mbit/s) and 486000000 (972Mbit/s - default)
- + are supported by the driver.
- +
- +
- +Name: tc358743-audio
- +Info: Used in combination with the tc358743-fast overlay to route the audio
- + from the TC358743 over I2S to the Pi.
- + Wiring is LRCK/WFS to GPIO 19, BCK/SCK to GPIO 18, and DATA/SD to GPIO
- + 20.
- +Load: dtoverlay=tc358743-audio,<param>=<val>
- +Params: card-name Override the default, "tc358743", card name.
- +
- +
- +Name: tinylcd35
- +Info: 3.5" Color TFT Display by www.tinylcd.com
- + Options: Touch, RTC, keypad
- +Load: dtoverlay=tinylcd35,<param>=<val>
- +Params: speed Display SPI bus speed
- +
- + rotate Display rotation {0,90,180,270}
- +
- + fps Delay between frame updates
- +
- + debug Debug output level {0-7}
- +
- + touch Enable touch panel
- +
- + touchgpio Touch controller IRQ GPIO
- +
- + xohms Touchpanel: Resistance of X-plate in ohms
- +
- + rtc-pcf PCF8563 Real Time Clock
- +
- + rtc-ds DS1307 Real Time Clock
- +
- + keypad Enable keypad
- +
- + Examples:
- + Display with touchpanel, PCF8563 RTC and keypad:
- + dtoverlay=tinylcd35,touch,rtc-pcf,keypad
- + Old touch display:
- + dtoverlay=tinylcd35,touch,touchgpio=3
- +
- +
- +Name: tpm-slb9670
- +Info: Enables support for Infineon SLB9670 Trusted Platform Module add-on
- + boards, which can be used as a secure key storage and hwrng,
- + available as "Iridium SLB9670" by Infineon and "LetsTrust TPM" by pi3g.
- +Load: dtoverlay=tpm-slb9670
- +Params: <None>
- +
- +
- +Name: uart0
- +Info: Change the pin usage of uart0
- +Load: dtoverlay=uart0,<param>=<val>
- +Params: txd0_pin GPIO pin for TXD0 (14, 32 or 36 - default 14)
- +
- + rxd0_pin GPIO pin for RXD0 (15, 33 or 37 - default 15)
- +
- + pin_func Alternative pin function - 4(Alt0) for 14&15,
- + 7(Alt3) for 32&33, 6(Alt2) for 36&37
- +
- +
- +Name: uart1
- +Info: Change the pin usage of uart1
- +Load: dtoverlay=uart1,<param>=<val>
- +Params: txd1_pin GPIO pin for TXD1 (14, 32 or 40 - default 14)
- +
- + rxd1_pin GPIO pin for RXD1 (15, 33 or 41 - default 15)
- +
- +
- +Name: uart2
- +Info: Enable uart 2 on GPIOs 0-3. BCM2711 only.
- +Load: dtoverlay=uart2,<param>
- +Params: ctsrts Enable CTS/RTS on GPIOs 2-3 (default off)
- +
- +
- +Name: uart3
- +Info: Enable uart 3 on GPIOs 4-7. BCM2711 only.
- +Load: dtoverlay=uart3,<param>
- +Params: ctsrts Enable CTS/RTS on GPIOs 6-7 (default off)
- +
- +
- +Name: uart4
- +Info: Enable uart 4 on GPIOs 8-11. BCM2711 only.
- +Load: dtoverlay=uart4,<param>
- +Params: ctsrts Enable CTS/RTS on GPIOs 10-11 (default off)
- +
- +
- +Name: uart5
- +Info: Enable uart 5 on GPIOs 12-15. BCM2711 only.
- +Load: dtoverlay=uart5,<param>
- +Params: ctsrts Enable CTS/RTS on GPIOs 14-15 (default off)
- +
- +
- +Name: udrc
- +Info: Configures the NW Digital Radio UDRC Hat
- +Load: dtoverlay=udrc,<param>=<val>
- +Params: alsaname Name of the ALSA audio device (default "udrc")
- +
- +
- +Name: ugreen-dabboard
- +Info: Configures the ugreen-dabboard I2S overlay
- + This is a simple overlay based on the simple-audio-card and the dmic
- + codec. It has the speciality that it is configured to use the codec
- + as a master I2S device. It works for example with the Si468x DAB
- + receiver on the uGreen DABBoard.
- +Load: dtoverlay=ugreen-dabboard,<param>=<val>
- +Params: card-name Override the default, "dabboard", card name.
- +
- +
- +Name: upstream
- +Info: Allow usage of downstream .dtb with upstream kernel. Comprises the
- + vc4-kms-v3d and dwc2 overlays.
- +Load: dtoverlay=upstream
- +Params: <None>
- +
- +
- +Name: upstream-aux-interrupt
- +Info: This overlay has been deprecated and removed because it is no longer
- + necessary.
- +Load: <Deprecated>
- +
- +
- +Name: upstream-pi4
- +Info: Allow usage of downstream .dtb with upstream kernel on Pi 4. Comprises
- + the vc4-kms-v3d-pi4 and dwc2 overlays.
- +Load: dtoverlay=upstream-pi4
- +Params: <None>
- +
- +
- +Name: vc4-fkms-v3d
- +Info: Enable Eric Anholt's DRM VC4 V3D driver on top of the dispmanx
- + display stack.
- +Load: dtoverlay=vc4-fkms-v3d,<param>
- +Params: cma-512 CMA is 512MB (needs 1GB)
- + cma-448 CMA is 448MB (needs 1GB)
- + cma-384 CMA is 384MB (needs 1GB)
- + cma-320 CMA is 320MB (needs 1GB)
- + cma-256 CMA is 256MB (needs 1GB)
- + cma-192 CMA is 192MB (needs 1GB)
- + cma-128 CMA is 128MB
- + cma-96 CMA is 96MB
- + cma-64 CMA is 64MB
- + cma-size CMA size in bytes, 4MB aligned
- + cma-default Use upstream's default value
- +
- +
- +Name: vc4-fkms-v3d-pi4
- +Info: Enable Eric Anholt's DRM VC4 V3D driver on top of the dispmanx
- + display stack.
- +Load: dtoverlay=vc4-fkms-v3d-pi4,<param>
- +Params: cma-512 CMA is 512MB (needs 1GB)
- + cma-448 CMA is 448MB (needs 1GB)
- + cma-384 CMA is 384MB (needs 1GB)
- + cma-320 CMA is 320MB (needs 1GB)
- + cma-256 CMA is 256MB (needs 1GB)
- + cma-192 CMA is 192MB (needs 1GB)
- + cma-128 CMA is 128MB
- + cma-96 CMA is 96MB
- + cma-64 CMA is 64MB
- + cma-size CMA size in bytes, 4MB aligned
- + cma-default Use upstream's default value
- +
- +
- +Name: vc4-kms-dpi-at056tn53v1
- +Info: Enable an Innolux 5.6in VGA TFT connected to DPI interface under KMS.
- + Requires vc4-kms-v3d to be loaded.
- +Load: dtoverlay=vc4-kms-dpi-at056tn53v1
- +Params: <None>
- +
- +
- +Name: vc4-kms-dsi-7inch
- +Info: Enable the Raspberry Pi DSI 7" screen.
- + Includes the edt-ft5406 for the touchscreen element.
- + Requires vc4-kms-v3d to be loaded.
- +Load: dtoverlay=vc4-kms-dsi-7inch,<param>=<val>
- +Params: sizex Touchscreen size x (default 800)
- + sizey Touchscreen size y (default 480)
- + invx Touchscreen inverted x axis
- + invy Touchscreen inverted y axis
- + swapxy Touchscreen swapped x y axis
- + disable_touch Disables the touch screen overlay driver
- +
- +
- +Name: vc4-kms-dsi-lt070me05000
- +Info: Enable a JDI LT070ME05000 DSI display on DSI1.
- + Note that this is a 4 lane DSI device, so it will only work on a Compute
- + Module.
- + Requires vc4-kms-v3d to be loaded.
- +Load: dtoverlay=vc4-kms-dsi-lt070me05000,<param>
- +Params: reset GPIO for the reset signal (default 17)
- + enable GPIO for the enable signal (default 4)
- + dcdc-en GPIO for the DC-DC converter enable (default 5)
- +
- +
- +Name: vc4-kms-dsi-lt070me05000-v2
- +Info: Enable a JDI LT070ME05000 DSI display on DSI1 using Harlab's V2
- + interface board.
- + Note that this is a 4 lane DSI device, so it will only work on a Compute
- + Module.
- + Requires vc4-kms-v3d to be loaded.
- +Load: dtoverlay=vc4-kms-dsi-lt070me05000-v2
- +Params: <None>
- +
- +
- +Name: vc4-kms-kippah-7inch
- +Info: Enable the Adafruit DPI Kippah with the 7" Ontat panel attached.
- + Requires vc4-kms-v3d to be loaded.
- +Load: dtoverlay=vc4-kms-kippah-7inch
- +Params: <None>
- +
- +
- +Name: vc4-kms-v3d
- +Info: Enable Eric Anholt's DRM VC4 HDMI/HVS/V3D driver.
- +Load: dtoverlay=vc4-kms-v3d,<param>
- +Params: cma-512 CMA is 512MB (needs 1GB)
- + cma-448 CMA is 448MB (needs 1GB)
- + cma-384 CMA is 384MB (needs 1GB)
- + cma-320 CMA is 320MB (needs 1GB)
- + cma-256 CMA is 256MB (needs 1GB)
- + cma-192 CMA is 192MB (needs 1GB)
- + cma-128 CMA is 128MB
- + cma-96 CMA is 96MB
- + cma-64 CMA is 64MB
- + cma-size CMA size in bytes, 4MB aligned
- + cma-default Use upstream's default value
- + audio Enable or disable audio over HDMI (default "on")
- + noaudio Disable all HDMI audio (default "off")
- + nocomposite Disable the composite video output (default
- + "off")
- +
- +
- +Name: vc4-kms-v3d-pi4
- +Info: Enable Eric Anholt's DRM VC4 HDMI/HVS/V3D driver for Pi4.
- +Load: dtoverlay=vc4-kms-v3d-pi4,<param>
- +Params: cma-512 CMA is 512MB
- + cma-448 CMA is 448MB
- + cma-384 CMA is 384MB
- + cma-320 CMA is 320MB
- + cma-256 CMA is 256MB
- + cma-192 CMA is 192MB
- + cma-128 CMA is 128MB
- + cma-96 CMA is 96MB
- + cma-64 CMA is 64MB
- + cma-size CMA size in bytes, 4MB aligned
- + cma-default Use upstream's default value
- + audio Enable or disable audio over HDMI0 (default
- + "on")
- + audio1 Enable or disable audio over HDMI1 (default
- + "on")
- + noaudio Disable all HDMI audio (default "off")
- + composite Enable the composite output (disables all other
- + outputs)
- +
- +
- +Name: vc4-kms-vga666
- +Info: Enable the VGA666 (resistor ladder ADC) for the vc4-kms-v3d driver.
- + Requires vc4-kms-v3d to be loaded.
- +Load: dtoverlay=vc4-kms-vga666,<param>
- +Params: ddc Enables GPIOs 0&1 as the I2C to read the EDID
- + from the display. NB These are NOT 5V tolerant
- + GPIOs, therefore level shifters are required.
- +
- +
- +Name: vga666
- +Info: Overlay for the Fen Logic VGA666 board
- + This uses GPIOs 2-21 (so no I2C), and activates the output 2-3 seconds
- + after the kernel has started.
- + NOT for use with vc4-kms-v3d.
- +Load: dtoverlay=vga666
- +Params: <None>
- +
- +
- +Name: w1-gpio
- +Info: Configures the w1-gpio Onewire interface module.
- + Use this overlay if you *don't* need a GPIO to drive an external pullup.
- +Load: dtoverlay=w1-gpio,<param>=<val>
- +Params: gpiopin GPIO for I/O (default "4")
- + pullup Now enabled by default (ignored)
- +
- +
- +Name: w1-gpio-pullup
- +Info: Configures the w1-gpio Onewire interface module.
- + Use this overlay if you *do* need a GPIO to drive an external pullup.
- +Load: dtoverlay=w1-gpio-pullup,<param>=<val>
- +Params: gpiopin GPIO for I/O (default "4")
- + extpullup GPIO for external pullup (default "5")
- + pullup Now enabled by default (ignored)
- +
- +
- +Name: w5500
- +Info: Overlay for the Wiznet W5500 Ethernet Controller on SPI0
- +Load: dtoverlay=w5500,<param>=<val>
- +Params: int_pin GPIO used for INT (default 25)
- +
- + speed SPI bus speed (default 30000000)
- +
- + cs SPI bus Chip Select (default 0)
- +
- +
- +Name: wittypi
- +Info: Configures the wittypi RTC module.
- +Load: dtoverlay=wittypi,<param>=<val>
- +Params: led_gpio GPIO for LED (default "17")
- + led_trigger Choose which activity the LED tracks (default
- + "default-on")
- +
- +
- +Name: wm8960-soundcard
- +Info: Overlay for the Waveshare wm8960 soundcard
- +Load: dtoverlay=wm8960-soundcard,<param>=<val>
- +Params: alsaname Changes the card name in ALSA
- + compatible Changes the codec compatibility
- +
- +
- +Troubleshooting
- +===============
- +
- +If you are experiencing problems that you think are DT-related, enable DT
- +diagnostic output by adding this to /boot/config.txt:
- +
- + dtdebug=on
- +
- +and rebooting. Then run:
- +
- + sudo vcdbg log msg
- +
- +and look for relevant messages.
- +
- +Further reading
- +===============
- +
- +This is only meant to be a quick introduction to the subject of Device Tree on
- +Raspberry Pi. There is a more complete explanation here:
- +
- +http://www.raspberrypi.org/documentation/configuration/device-tree.md
- diff --git a/arch/arm/boot/dts/overlays/act-led-overlay.dts b/arch/arm/boot/dts/overlays/act-led-overlay.dts
- new file mode 100644
- index 000000000000..2f4bbb407f89
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/act-led-overlay.dts
- @@ -0,0 +1,27 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/* Pi3 uses a GPIO expander to drive the LEDs which can only be accessed
- + from the VPU. There is a special driver for this with a separate DT node,
- + which has the unfortunate consequence of breaking the act_led_gpio and
- + act_led_activelow dtparams.
- +
- + This overlay changes the GPIO controller back to the standard one and
- + restores the dtparams.
- +*/
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&act_led>;
- + frag0: __overlay__ {
- + gpios = <&gpio 0 0>;
- + };
- + };
- +
- + __overrides__ {
- + gpio = <&frag0>,"gpios:4";
- + activelow = <&frag0>,"gpios:8";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/adafruit18-overlay.dts b/arch/arm/boot/dts/overlays/adafruit18-overlay.dts
- new file mode 100644
- index 000000000000..e1ce94a8cd3e
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/adafruit18-overlay.dts
- @@ -0,0 +1,55 @@
- +/*
- + * Device Tree overlay for Adafruit 1.8" TFT LCD with ST7735R chip 160x128
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + af18: adafruit18@0 {
- + compatible = "fbtft,adafruit18";
- + reg = <0>;
- + pinctrl-names = "default";
- + spi-max-frequency = <40000000>;
- + rotate = <90>;
- + buswidth = <8>;
- + fps = <50>;
- + height = <160>;
- + width = <128>;
- + reset-gpios = <&gpio 25 1>;
- + dc-gpios = <&gpio 24 0>;
- + led-gpios = <&gpio 18 0>;
- + debug = <0>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + green = <&af18>, "compatible=fbtft,adafruit18_green";
- + speed = <&af18>,"spi-max-frequency:0";
- + rotate = <&af18>,"rotate:0";
- + fps = <&af18>,"fps:0";
- + bgr = <&af18>,"bgr?";
- + debug = <&af18>,"debug:0";
- + dc_pin = <&af18>,"dc-gpios:4";
- + reset_pin = <&af18>,"reset-gpios:4";
- + led_pin = <&af18>,"led-gpios:4";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/adau1977-adc-overlay.dts b/arch/arm/boot/dts/overlays/adau1977-adc-overlay.dts
- new file mode 100644
- index 000000000000..298488e19156
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/adau1977-adc-overlay.dts
- @@ -0,0 +1,40 @@
- +// Definitions for ADAU1977 ADC
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c>;
- +
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + adau1977: codec@11 {
- + compatible = "adi,adau1977";
- + reg = <0x11>;
- + reset-gpios = <&gpio 5 0>;
- + AVDD-supply = <&vdd_3v3_reg>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "adi,adau1977-adc";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/adau7002-simple-overlay.dts b/arch/arm/boot/dts/overlays/adau7002-simple-overlay.dts
- new file mode 100644
- index 000000000000..5fed769d2526
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/adau7002-simple-overlay.dts
- @@ -0,0 +1,52 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + adau7002_codec: adau7002-codec {
- + #sound-dai-cells = <0>;
- + compatible = "adi,adau7002";
- +/* IOVDD-supply = <&supply>;*/
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + sound_overlay: __overlay__ {
- + compatible = "simple-audio-card";
- + simple-audio-card,format = "i2s";
- + simple-audio-card,name = "adau7002";
- + simple-audio-card,bitclock-slave = <&dailink0_slave>;
- + simple-audio-card,frame-slave = <&dailink0_slave>;
- + simple-audio-card,widgets =
- + "Microphone", "Microphone Jack";
- + simple-audio-card,routing =
- + "PDM_DAT", "Microphone Jack";
- + status = "okay";
- + simple-audio-card,cpu {
- + sound-dai = <&i2s>;
- + };
- + dailink0_slave: simple-audio-card,codec {
- + sound-dai = <&adau7002_codec>;
- + };
- + };
- + };
- +
- +
- + __overrides__ {
- + card-name = <&sound_overlay>,"simple-audio-card,name";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/ads1015-overlay.dts b/arch/arm/boot/dts/overlays/ads1015-overlay.dts
- new file mode 100644
- index 000000000000..dc1764613a8b
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/ads1015-overlay.dts
- @@ -0,0 +1,98 @@
- +/*
- + * 2016 - Erik Sejr
- + */
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- + /* ----------- ADS1015 ------------ */
- + fragment@0 {
- + target = <&i2c_arm>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- + ads1015: ads1015@48 {
- + compatible = "ti,ads1015";
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + reg = <0x48>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&ads1015>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + channel_a: channel_a {
- + reg = <4>;
- + ti,gain = <2>;
- + ti,datarate = <4>;
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&ads1015>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + channel_b: channel_b {
- + reg = <5>;
- + ti,gain = <2>;
- + ti,datarate = <4>;
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&ads1015>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + channel_c: channel_c {
- + reg = <6>;
- + ti,gain = <2>;
- + ti,datarate = <4>;
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&ads1015>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + channel_d: channel_d {
- + reg = <7>;
- + ti,gain = <2>;
- + ti,datarate = <4>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + addr = <&ads1015>,"reg:0";
- + cha_enable = <0>,"=1";
- + cha_cfg = <&channel_a>,"reg:0";
- + cha_gain = <&channel_a>,"ti,gain:0";
- + cha_datarate = <&channel_a>,"ti,datarate:0";
- + chb_enable = <0>,"=2";
- + chb_cfg = <&channel_b>,"reg:0";
- + chb_gain = <&channel_b>,"ti,gain:0";
- + chb_datarate = <&channel_b>,"ti,datarate:0";
- + chc_enable = <0>,"=3";
- + chc_cfg = <&channel_c>,"reg:0";
- + chc_gain = <&channel_c>,"ti,gain:0";
- + chc_datarate = <&channel_c>,"ti,datarate:0";
- + chd_enable = <0>,"=4";
- + chd_cfg = <&channel_d>,"reg:0";
- + chd_gain = <&channel_d>,"ti,gain:0";
- + chd_datarate = <&channel_d>,"ti,datarate:0";
- + };
- +
- +};
- diff --git a/arch/arm/boot/dts/overlays/ads1115-overlay.dts b/arch/arm/boot/dts/overlays/ads1115-overlay.dts
- new file mode 100644
- index 000000000000..e44ced704ee2
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/ads1115-overlay.dts
- @@ -0,0 +1,103 @@
- +/*
- + * TI ADS1115 multi-channel ADC overlay
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c_arm>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + ads1115: ads1115@48 {
- + compatible = "ti,ads1115";
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + reg = <0x48>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&ads1115>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + channel_a: channel_a {
- + reg = <4>;
- + ti,gain = <1>;
- + ti,datarate = <7>;
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&ads1115>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + channel_b: channel_b {
- + reg = <5>;
- + ti,gain = <1>;
- + ti,datarate = <7>;
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&ads1115>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + channel_c: channel_c {
- + reg = <6>;
- + ti,gain = <1>;
- + ti,datarate = <7>;
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&ads1115>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + channel_d: channel_d {
- + reg = <7>;
- + ti,gain = <1>;
- + ti,datarate = <7>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + addr = <&ads1115>,"reg:0";
- + cha_enable = <0>,"=1";
- + cha_cfg = <&channel_a>,"reg:0";
- + cha_gain = <&channel_a>,"ti,gain:0";
- + cha_datarate = <&channel_a>,"ti,datarate:0";
- + chb_enable = <0>,"=2";
- + chb_cfg = <&channel_b>,"reg:0";
- + chb_gain = <&channel_b>,"ti,gain:0";
- + chb_datarate = <&channel_b>,"ti,datarate:0";
- + chc_enable = <0>,"=3";
- + chc_cfg = <&channel_c>,"reg:0";
- + chc_gain = <&channel_c>,"ti,gain:0";
- + chc_datarate = <&channel_c>,"ti,datarate:0";
- + chd_enable = <0>,"=4";
- + chd_cfg = <&channel_d>,"reg:0";
- + chd_gain = <&channel_d>,"ti,gain:0";
- + chd_datarate = <&channel_d>,"ti,datarate:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/ads7846-overlay.dts b/arch/arm/boot/dts/overlays/ads7846-overlay.dts
- new file mode 100644
- index 000000000000..1c5c9b6bb6ff
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/ads7846-overlay.dts
- @@ -0,0 +1,89 @@
- +/*
- + * Generic Device Tree overlay for the ADS7846 touch controller
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&spidev1>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target = <&gpio>;
- + __overlay__ {
- + ads7846_pins: ads7846_pins {
- + brcm,pins = <255>; /* illegal default value */
- + brcm,function = <0>; /* in */
- + brcm,pull = <0>; /* none */
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + ads7846: ads7846@1 {
- + compatible = "ti,ads7846";
- + reg = <1>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&ads7846_pins>;
- +
- + spi-max-frequency = <2000000>;
- + interrupts = <255 2>; /* high-to-low edge triggered */
- + interrupt-parent = <&gpio>;
- + pendown-gpio = <&gpio 255 0>;
- +
- + /* driver defaults */
- + ti,x-min = /bits/ 16 <0>;
- + ti,y-min = /bits/ 16 <0>;
- + ti,x-max = /bits/ 16 <0x0FFF>;
- + ti,y-max = /bits/ 16 <0x0FFF>;
- + ti,pressure-min = /bits/ 16 <0>;
- + ti,pressure-max = /bits/ 16 <0xFFFF>;
- + ti,x-plate-ohms = /bits/ 16 <400>;
- + };
- + };
- + };
- + __overrides__ {
- + cs = <&ads7846>,"reg:0";
- + speed = <&ads7846>,"spi-max-frequency:0";
- + penirq = <&ads7846_pins>,"brcm,pins:0", /* REQUIRED */
- + <&ads7846>,"interrupts:0",
- + <&ads7846>,"pendown-gpio:4";
- + penirq_pull = <&ads7846_pins>,"brcm,pull:0";
- + swapxy = <&ads7846>,"ti,swap-xy?";
- + xmin = <&ads7846>,"ti,x-min;0";
- + ymin = <&ads7846>,"ti,y-min;0";
- + xmax = <&ads7846>,"ti,x-max;0";
- + ymax = <&ads7846>,"ti,y-max;0";
- + pmin = <&ads7846>,"ti,pressure-min;0";
- + pmax = <&ads7846>,"ti,pressure-max;0";
- + xohms = <&ads7846>,"ti,x-plate-ohms;0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/adv7282m-overlay.dts b/arch/arm/boot/dts/overlays/adv7282m-overlay.dts
- new file mode 100644
- index 000000000000..5d85dfd0595c
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/adv7282m-overlay.dts
- @@ -0,0 +1,65 @@
- +// SPDX-License-Identifier: GPL-2.0-only
- +// Definitions for Analog Devices ADV7282-M video to CSI2 bridge on VC I2C bus
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c_csi_dsi>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + adv728x: adv728x@21 {
- + compatible = "adi,adv7282-m";
- + reg = <0x21>;
- + status = "okay";
- + clock-frequency = <24000000>;
- + port {
- + adv728x_0: endpoint {
- + remote-endpoint = <&csi1_ep>;
- + clock-lanes = <0>;
- + data-lanes = <1>;
- + link-frequencies =
- + /bits/ 64 <297000000>;
- +
- + mclk-frequency = <12000000>;
- + };
- + };
- + };
- + };
- + };
- + fragment@1 {
- + target = <&csi1>;
- + __overlay__ {
- + status = "okay";
- +
- + port {
- + csi1_ep: endpoint {
- + remote-endpoint = <&adv728x_0>;
- + data-lanes = <1>;
- + };
- + };
- + };
- + };
- + fragment@2 {
- + target = <&i2c0if>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@3 {
- + target = <&i2c0mux>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + addr = <&adv728x>,"reg:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/adv728x-m-overlay.dts b/arch/arm/boot/dts/overlays/adv728x-m-overlay.dts
- new file mode 100644
- index 000000000000..ea392e886984
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/adv728x-m-overlay.dts
- @@ -0,0 +1,37 @@
- +// SPDX-License-Identifier: GPL-2.0-only
- +// Definitions for Analog Devices ADV728[0|1|2]-M video to CSI2 bridges on VC
- +// I2C bus
- +
- +#include "adv7282m-overlay.dts"
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + // Fragment numbers deliberately high to avoid conflicts with the
- + // included adv7282m overlay file.
- +
- + fragment@101 {
- + target = <&adv728x>;
- + __dormant__ {
- + compatible = "adi,adv7280-m";
- + };
- + };
- + fragment@102 {
- + target = <&adv728x>;
- + __dormant__ {
- + compatible = "adi,adv7281-m";
- + };
- + };
- + fragment@103 {
- + target = <&adv728x>;
- + __dormant__ {
- + compatible = "adi,adv7281-ma";
- + };
- + };
- +
- + __overrides__ {
- + adv7280m = <0>, "+101";
- + adv7281m = <0>, "+102";
- + adv7281ma = <0>, "+103";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/akkordion-iqdacplus-overlay.dts b/arch/arm/boot/dts/overlays/akkordion-iqdacplus-overlay.dts
- new file mode 100644
- index 000000000000..82f9b3734fb1
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/akkordion-iqdacplus-overlay.dts
- @@ -0,0 +1,49 @@
- +// Definitions for Digital Dreamtime Akkordion using IQaudIO DAC+ or DACZero
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + pcm5122@4c {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm5122";
- + reg = <0x4c>;
- + AVDD-supply = <&vdd_3v3_reg>;
- + DVDD-supply = <&vdd_3v3_reg>;
- + CPVDD-supply = <&vdd_3v3_reg>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + frag2: __overlay__ {
- + compatible = "iqaudio,iqaudio-dac";
- + card_name = "Akkordion";
- + dai_name = "IQaudIO DAC";
- + dai_stream_name = "IQaudIO DAC HiFi";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + 24db_digital_gain = <&frag2>,"iqaudio,24db_digital_gain?";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/allo-boss-dac-pcm512x-audio-overlay.dts b/arch/arm/boot/dts/overlays/allo-boss-dac-pcm512x-audio-overlay.dts
- new file mode 100644
- index 000000000000..873cb2fab52b
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/allo-boss-dac-pcm512x-audio-overlay.dts
- @@ -0,0 +1,59 @@
- +/*
- + * Definitions for Allo Boss DAC board
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + boss_osc: boss_osc {
- + compatible = "allo,dac-clk";
- + #clock-cells = <0>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + pcm5122@4d {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm5122";
- + clocks = <&boss_osc>;
- + reg = <0x4d>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&sound>;
- + boss_dac: __overlay__ {
- + compatible = "allo,boss-dac";
- + i2s-controller = <&i2s>;
- + mute-gpios = <&gpio 6 1>;
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + 24db_digital_gain = <&boss_dac>,"allo,24db_digital_gain?";
- + slave = <&boss_dac>,"allo,slave?";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/allo-boss2-dac-audio-overlay.dts b/arch/arm/boot/dts/overlays/allo-boss2-dac-audio-overlay.dts
- new file mode 100644
- index 000000000000..a6adfb495eb9
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/allo-boss2-dac-audio-overlay.dts
- @@ -0,0 +1,57 @@
- +/* * Definitions for Allo Boss2 DAC boards
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + #sound-dai-cells = <0>;
- + status = "okay";
- + cpu_port: port {
- + cpu_endpoint: endpoint {
- + remote-endpoint = <&codec_endpoint>;
- + bitclock-master = <&codec_endpoint>;
- + frame-master = <&codec_endpoint>;
- + dai-format = "i2s";
- + };
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- + allo-cs43130@30 {
- + #sound-dai-cells = <0>;
- + compatible = "allo,allo-cs43198";
- + clock44-gpio = <&gpio 5 0>;
- + clock48-gpio = <&gpio 6 0>;
- + reg = <0x30>;
- + port {
- + codec_endpoint: endpoint {
- + remote-endpoint = <&cpu_endpoint>;
- + };
- + };
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + boss2_dac: __overlay__ {
- + compatible = "audio-graph-card";
- + label = "Allo Boss2";
- + dais = <&cpu_port>;
- + status = "okay";
- + };
- + };
- +};
- +
- diff --git a/arch/arm/boot/dts/overlays/allo-digione-overlay.dts b/arch/arm/boot/dts/overlays/allo-digione-overlay.dts
- new file mode 100644
- index 000000000000..ea018ace34d4
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/allo-digione-overlay.dts
- @@ -0,0 +1,44 @@
- +// Definitions for Allo DigiOne
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + wm8804@3b {
- + #sound-dai-cells = <0>;
- + compatible = "wlf,wm8804";
- + reg = <0x3b>;
- + PVDD-supply = <&vdd_3v3_reg>;
- + DVDD-supply = <&vdd_3v3_reg>;
- + status = "okay";
- + wlf,reset-gpio = <&gpio 17 0>;
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "allo,allo-digione";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + clock44-gpio = <&gpio 5 0>;
- + clock48-gpio = <&gpio 6 0>;
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/allo-katana-dac-audio-overlay.dts b/arch/arm/boot/dts/overlays/allo-katana-dac-audio-overlay.dts
- new file mode 100644
- index 000000000000..b25fd681f09f
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/allo-katana-dac-audio-overlay.dts
- @@ -0,0 +1,57 @@
- +/*
- + * Definitions for Allo Katana DAC boards
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + #sound-dai-cells = <0>;
- + status = "okay";
- + cpu_port: port {
- + cpu_endpoint: endpoint {
- + remote-endpoint = <&codec_endpoint>;
- + bitclock-master = <&codec_endpoint>;
- + frame-master = <&codec_endpoint>;
- + dai-format = "i2s";
- + };
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + allo-katana-codec@30 {
- + #sound-dai-cells = <0>;
- + compatible = "allo,allo-katana-codec";
- + reg = <0x30>;
- + port {
- + codec_endpoint: endpoint {
- + remote-endpoint = <&cpu_endpoint>;
- + };
- + };
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + katana_dac: __overlay__ {
- + compatible = "audio-graph-card";
- + label = "Allo Katana";
- + dais = <&cpu_port>;
- + status = "okay";
- + };
- + };
- +};
- +
- diff --git a/arch/arm/boot/dts/overlays/allo-piano-dac-pcm512x-audio-overlay.dts b/arch/arm/boot/dts/overlays/allo-piano-dac-pcm512x-audio-overlay.dts
- new file mode 100644
- index 000000000000..bfc66da6295a
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/allo-piano-dac-pcm512x-audio-overlay.dts
- @@ -0,0 +1,54 @@
- +/*
- + * Definitions for Allo Piano DAC (2.0/2.1) boards
- + *
- + * NB. The Piano DAC 2.1 board contains 2x TI PCM5142 DAC's. One DAC is stereo
- + * (left/right) and the other provides a subwoofer output, using DSP on the
- + * chip for digital high/low pass crossover.
- + * The initial support for this hardware, that doesn't require any codec driver
- + * modifications, uses only one DAC chip for stereo (left/right) output, the
- + * chip with 0x4c slave address. The other chip at 0x4d is currently ignored!
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + pcm5142@4c {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm5142";
- + reg = <0x4c>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + piano_dac: __overlay__ {
- + compatible = "allo,piano-dac";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + 24db_digital_gain =
- + <&piano_dac>,"allo,24db_digital_gain?";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/allo-piano-dac-plus-pcm512x-audio-overlay.dts b/arch/arm/boot/dts/overlays/allo-piano-dac-plus-pcm512x-audio-overlay.dts
- new file mode 100644
- index 000000000000..d47a35def4f7
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/allo-piano-dac-plus-pcm512x-audio-overlay.dts
- @@ -0,0 +1,57 @@
- +// Definitions for Piano DAC
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + allo_pcm5122_4c: pcm5122@4c {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm5122";
- + reg = <0x4c>;
- + sound-name-prefix = "Main";
- + status = "okay";
- + };
- + allo_pcm5122_4d: pcm5122@4d {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm5122";
- + reg = <0x4d>;
- + sound-name-prefix = "Sub";
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + piano_dac: __overlay__ {
- + compatible = "allo,piano-dac-plus";
- + audio-codec = <&allo_pcm5122_4c &allo_pcm5122_4d>;
- + i2s-controller = <&i2s>;
- + mute1-gpios = <&gpio 6 1>;
- + mute2-gpios = <&gpio 25 1>;
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + 24db_digital_gain =
- + <&piano_dac>,"allo,24db_digital_gain?";
- + glb_mclk =
- + <&piano_dac>,"allo,glb_mclk?";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/anyspi-overlay.dts b/arch/arm/boot/dts/overlays/anyspi-overlay.dts
- new file mode 100755
- index 000000000000..87523dcca318
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/anyspi-overlay.dts
- @@ -0,0 +1,205 @@
- +/*
- + * Universal device tree overlay for SPI devices
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spidev0>;
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev1>;
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target-path = "spi1/spidev@0";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target-path = "spi1/spidev@1";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@4 {
- + target-path = "spi1/spidev@2";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@5 {
- + target-path = "spi2/spidev@0";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@6 {
- + target-path = "spi2/spidev@1";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@7 {
- + target-path = "spi2/spidev@2";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@8 {
- + target = <&spi0>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + anyspi_00: anyspi@0 {
- + reg = <0>;
- + spi-max-frequency = <500000>;
- + };
- + };
- + };
- +
- + fragment@9 {
- + target = <&spi0>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + anyspi_01: anyspi@1 {
- + reg = <1>;
- + spi-max-frequency = <500000>;
- + };
- + };
- + };
- +
- + fragment@10 {
- + target = <&spi1>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + anyspi_10: anyspi@0 {
- + reg = <0>;
- + spi-max-frequency = <500000>;
- + };
- + };
- + };
- +
- + fragment@11 {
- + target = <&spi1>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + anyspi_11: anyspi@1 {
- + reg = <1>;
- + spi-max-frequency = <500000>;
- + };
- + };
- + };
- +
- + fragment@12 {
- + target = <&spi1>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + anyspi_12: anyspi@2 {
- + reg = <2>;
- + spi-max-frequency = <500000>;
- + };
- + };
- + };
- +
- + fragment@13 {
- + target = <&spi2>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + anyspi_20: anyspi@0 {
- + reg = <0>;
- + spi-max-frequency = <500000>;
- + };
- + };
- + };
- +
- + fragment@14 {
- + target = <&spi2>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + anyspi_21: anyspi@1 {
- + reg = <1>;
- + spi-max-frequency = <500000>;
- + };
- + };
- + };
- +
- + fragment@15 {
- + target = <&spi2>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + anyspi_22: anyspi@2 {
- + reg = <2>;
- + spi-max-frequency = <500000>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + spi0-0 = <0>, "+0+8";
- + spi0-1 = <0>, "+1+9";
- + spi1-0 = <0>, "+2+10";
- + spi1-1 = <0>, "+3+11";
- + spi1-2 = <0>, "+4+12";
- + spi2-0 = <0>, "+5+13";
- + spi2-1 = <0>, "+6+14";
- + spi2-2 = <0>, "+7+15";
- + dev = <&anyspi_00>,"compatible",
- + <&anyspi_01>,"compatible",
- + <&anyspi_10>,"compatible",
- + <&anyspi_11>,"compatible",
- + <&anyspi_12>,"compatible",
- + <&anyspi_20>,"compatible",
- + <&anyspi_21>,"compatible",
- + <&anyspi_22>,"compatible";
- + speed = <&anyspi_00>, "spi-max-frequency:0",
- + <&anyspi_01>, "spi-max-frequency:0",
- + <&anyspi_10>, "spi-max-frequency:0",
- + <&anyspi_11>, "spi-max-frequency:0",
- + <&anyspi_12>, "spi-max-frequency:0",
- + <&anyspi_20>, "spi-max-frequency:0",
- + <&anyspi_21>, "spi-max-frequency:0",
- + <&anyspi_22>, "spi-max-frequency:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/apds9960-overlay.dts b/arch/arm/boot/dts/overlays/apds9960-overlay.dts
- new file mode 100644
- index 000000000000..c216932278ab
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/apds9960-overlay.dts
- @@ -0,0 +1,57 @@
- +// Definitions for APDS-9960 ambient light and gesture sensor
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c1>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + apds9960_pins: apds9960_pins@39 {
- + brcm,pins = <4>;
- + brcm,function = <0>;
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + apds9960: apds@39 {
- + compatible = "avago,apds9960";
- + reg = <0x39>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&i2c1>;
- + __overlay__ {
- + apds9960_irq: apds@39 {
- + #interrupt-cells=<2>;
- + interrupt-parent = <&gpio>;
- + interrupts = <4 1>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + gpiopin = <&apds9960_pins>,"brcm,pins:0",
- + <&apds9960_irq>,"interrupts:0";
- + noints = <0>,"!1!3";
- + };
- +};
- +
- diff --git a/arch/arm/boot/dts/overlays/applepi-dac-overlay.dts b/arch/arm/boot/dts/overlays/applepi-dac-overlay.dts
- new file mode 100644
- index 000000000000..4769296ec9d6
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/applepi-dac-overlay.dts
- @@ -0,0 +1,57 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "simple-audio-card";
- + simple-audio-card,name = "ApplePi-DAC";
- +
- + status = "okay";
- +
- + playback_link: simple-audio-card,dai-link@1 {
- + format = "i2s";
- +
- + p_cpu_dai: cpu {
- + sound-dai = <&i2s>;
- + dai-tdm-slot-num = <2>;
- + dai-tdm-slot-width = <32>;
- + };
- +
- + p_codec_dai: codec {
- + sound-dai = <&codec_out>;
- + };
- + };
- + };
- + };
- +
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + codec_out: pcm1794a-codec {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm1794a";
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2s>;
- + __overlay__ {
- + #sound-dai-cells = <0>;
- + status = "okay";
- + };
- + };
- +};
- +
- +/*
- + Written by: Leonid Ayzenshtat
- + Company: Orchard Audio (www.orchardaudio.com)
- +
- + compile with:
- + dtc -@ -H epapr -O dtb -o ApplePi-DAC.dtbo -W no-unit_address_vs_reg ApplePi-DAC.dts
- +*/
- diff --git a/arch/arm/boot/dts/overlays/at86rf233-overlay.dts b/arch/arm/boot/dts/overlays/at86rf233-overlay.dts
- new file mode 100644
- index 000000000000..5a3f4571ee78
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/at86rf233-overlay.dts
- @@ -0,0 +1,57 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/* Overlay for Atmel AT86RF233 IEEE 802.15.4 WPAN transceiver on spi0.0 */
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + status = "okay";
- +
- + lowpan0: at86rf233@0 {
- + compatible = "atmel,at86rf233";
- + reg = <0>;
- + interrupt-parent = <&gpio>;
- + interrupts = <23 4>; /* active high */
- + reset-gpio = <&gpio 24 1>;
- + sleep-gpio = <&gpio 25 1>;
- + spi-max-frequency = <3000000>;
- + xtal-trim = /bits/ 8 <0xf>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&gpio>;
- + __overlay__ {
- + lowpan0_pins: lowpan0_pins {
- + brcm,pins = <23 24 25>;
- + brcm,function = <0 1 1>; /* in out out */
- + };
- + };
- + };
- +
- + __overrides__ {
- + interrupt = <&lowpan0>, "interrupts:0",
- + <&lowpan0_pins>, "brcm,pins:0";
- + reset = <&lowpan0>, "reset-gpio:4",
- + <&lowpan0_pins>, "brcm,pins:4";
- + sleep = <&lowpan0>, "sleep-gpio:4",
- + <&lowpan0_pins>, "brcm,pins:8";
- + speed = <&lowpan0>, "spi-max-frequency:0";
- + trim = <&lowpan0>, "xtal-trim.0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/audioinjector-addons-overlay.dts b/arch/arm/boot/dts/overlays/audioinjector-addons-overlay.dts
- new file mode 100644
- index 000000000000..57a66eac8e9b
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/audioinjector-addons-overlay.dts
- @@ -0,0 +1,60 @@
- +// Definitions for audioinjector.net audio add on soundcard
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + cs42448_mclk: codec-mclk {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-frequency = <49152000>;
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + cs42448: cs42448@48 {
- + #sound-dai-cells = <0>;
- + compatible = "cirrus,cs42448";
- + reg = <0x48>;
- + clocks = <&cs42448_mclk>;
- + clock-names = "mclk";
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&sound>;
- + snd: __overlay__ {
- + compatible = "ai,audioinjector-octo-soundcard";
- + mult-gpios = <&gpio 27 0>, <&gpio 22 0>, <&gpio 23 0>,
- + <&gpio 24 0>;
- + reset-gpios = <&gpio 5 0>;
- + i2s-controller = <&i2s>;
- + codec = <&cs42448>;
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + non-stop-clocks = <&snd>, "non-stop-clocks?";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/audioinjector-isolated-soundcard-overlay.dts b/arch/arm/boot/dts/overlays/audioinjector-isolated-soundcard-overlay.dts
- new file mode 100644
- index 000000000000..63e05cf9665d
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/audioinjector-isolated-soundcard-overlay.dts
- @@ -0,0 +1,55 @@
- +// Definitions for audioinjector.net audio isolated soundcard
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + cs4272_mclk: codec-mclk {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-frequency = <24576000>;
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + cs4272: cs4271@10 {
- + #sound-dai-cells = <0>;
- + compatible = "cirrus,cs4271";
- + reg = <0x10>;
- + reset-gpio = <&gpio 5 0>;
- + clocks = <&cs4272_mclk>;
- + clock-names = "mclk";
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&sound>;
- + snd: __overlay__ {
- + compatible = "ai,audioinjector-isolated-soundcard";
- + mute-gpios = <&gpio 17 0>;
- + i2s-controller = <&i2s>;
- + codec = <&cs4272>;
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/audioinjector-ultra-overlay.dts b/arch/arm/boot/dts/overlays/audioinjector-ultra-overlay.dts
- new file mode 100644
- index 000000000000..fb4a4678a17a
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/audioinjector-ultra-overlay.dts
- @@ -0,0 +1,71 @@
- +// Definitions for audioinjector.net audio add on soundcard
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + cs4265: cs4265@4e {
- + #sound-dai-cells = <0>;
- + compatible = "cirrus,cs4265";
- + reg = <0x4e>;
- + reset-gpios = <&gpio 5 0>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "simple-audio-card";
- + i2s-controller = <&i2s>;
- + status = "okay";
- +
- + simple-audio-card,name = "audioinjector-ultra";
- +
- + simple-audio-card,widgets =
- + "Line", "OUTPUTS",
- + "Line", "INPUTS";
- +
- + simple-audio-card,routing =
- + "OUTPUTS","LINEOUTL",
- + "OUTPUTS","LINEOUTR",
- + "OUTPUTS","SPDIFOUT",
- + "LINEINL","INPUTS",
- + "LINEINR","INPUTS",
- + "MICL","INPUTS",
- + "MICR","INPUTS";
- +
- + simple-audio-card,format = "i2s";
- +
- + simple-audio-card,bitclock-master = <&sound_master>;
- + simple-audio-card,frame-master = <&sound_master>;
- +
- + simple-audio-card,cpu {
- + sound-dai = <&i2s>;
- + dai-tdm-slot-num = <2>;
- + dai-tdm-slot-width = <32>;
- + };
- +
- + sound_master: simple-audio-card,codec {
- + sound-dai = <&cs4265>;
- + system-clock-frequency = <12288000>;
- + };
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/audioinjector-wm8731-audio-overlay.dts b/arch/arm/boot/dts/overlays/audioinjector-wm8731-audio-overlay.dts
- new file mode 100644
- index 000000000000..68f4427d86c3
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/audioinjector-wm8731-audio-overlay.dts
- @@ -0,0 +1,39 @@
- +// Definitions for audioinjector.net audio add on soundcard
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + wm8731@1a {
- + #sound-dai-cells = <0>;
- + compatible = "wlf,wm8731";
- + reg = <0x1a>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "ai,audioinjector-pi-soundcard";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/audiosense-pi-overlay.dts b/arch/arm/boot/dts/overlays/audiosense-pi-overlay.dts
- new file mode 100644
- index 000000000000..81af26374d92
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/audiosense-pi-overlay.dts
- @@ -0,0 +1,82 @@
- +// Definitions for audiosense add on soundcard
- +/dts-v1/;
- +/plugin/;
- +#include <dt-bindings/pinctrl/bcm2835.h>
- +#include <dt-bindings/gpio/gpio.h>
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + codec_reg_1v8: codec-reg-1v8 {
- + compatible = "regulator-fixed";
- + regulator-name = "tlv320aic3204_1v8";
- + regulator-min-microvolt = <1800000>;
- + regulator-max-microvolt = <1800000>;
- + regulator-always-on;
- + };
- +
- + /* audio external oscillator */
- + codec_osc: codec_osc {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-frequency = <12000000>; /* 12 MHz */
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&gpio>;
- + __overlay__ {
- + codec_rst: codec-rst {
- + brcm,pins = <26>;
- + brcm,function = <BCM2835_FSEL_GPIO_OUT>;
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + codec: tlv320aic32x4@18 {
- + #sound-dai-cells = <0>;
- + compatible = "ti,tlv320aic32x4";
- + reg = <0x18>;
- +
- + clocks = <&codec_osc>;
- + clock-names = "mclk";
- +
- + iov-supply = <&vdd_3v3_reg>;
- + ldoin-supply = <&vdd_3v3_reg>;
- +
- + gpio-controller;
- + #gpio-cells = <2>;
- + reset-gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
- +
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "as,audiosense-pi";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/audremap-overlay.dts b/arch/arm/boot/dts/overlays/audremap-overlay.dts
- new file mode 100644
- index 000000000000..7324890ead86
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/audremap-overlay.dts
- @@ -0,0 +1,42 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&audio_pins>;
- + frag0: __overlay__ {
- + };
- + };
- +
- + fragment@1 {
- + target = <&audio_pins>;
- + __overlay__ {
- + brcm,pins = < 12 13 >;
- + brcm,function = < 4 >; /* alt0 alt0 */
- + };
- + };
- +
- + fragment@2 {
- + target = <&audio_pins>;
- + __dormant__ {
- + brcm,pins = < 18 19 >;
- + brcm,function = < 2 >; /* alt5 alt5 */
- + };
- + };
- +
- + fragment@3 {
- + target = <&audio>;
- + __overlay__ {
- + brcm,disable-headphones = <0>;
- + };
- + };
- +
- + __overrides__ {
- + swap_lr = <&frag0>, "swap_lr?";
- + enable_jack = <&frag0>, "enable_jack?";
- + pins_12_13 = <0>,"+1-2";
- + pins_18_19 = <0>,"-1+2";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/balena-fin-overlay.dts b/arch/arm/boot/dts/overlays/balena-fin-overlay.dts
- new file mode 100644
- index 000000000000..e7ead7cdf5f5
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/balena-fin-overlay.dts
- @@ -0,0 +1,125 @@
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/gpio/gpio.h>
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&mmcnr>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&sdio_pins>;
- + bus-width = <4>;
- + brcm,overclock-50 = <35>;
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + sdio_pins: sdio_pins {
- + brcm,pins = <34 35 36 37 38 39>;
- + brcm,function = <7>; /* ALT3 = SD1 */
- + brcm,pull = <0 2 2 2 2 2>;
- + };
- +
- + power_ctrl_pins: power_ctrl_pins {
- + brcm,pins = <40>;
- + brcm,function = <1>; // out
- + };
- + };
- + };
- +
- + fragment@2 {
- + target-path = "/";
- + __overlay__ {
- + // We should switch to mmc-pwrseq-sd8787 after making it
- + // compatible with sd8887
- + // Currently that module requires two GPIOs to function since it
- + // targets a slightly different chip
- + power_ctrl: power_ctrl {
- + compatible = "gpio-poweroff";
- + gpios = <&gpio 40 1>;
- + force;
- + pinctrl-names = "default";
- + pinctrl-0 = <&power_ctrl_pins>;
- + };
- +
- + i2c_soft: i2c@0 {
- + compatible = "i2c-gpio";
- + gpios = <&gpio 43 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) /* sda */
- + &gpio 42 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) /* scl */>;
- + i2c-gpio,delay-us = <5>;
- + i2c-gpio,scl-open-drain;
- + i2c-gpio,sda-open-drain;
- + #address-cells = <1>;
- + #size-cells = <0>;
- + };
- +
- + sd8xxx-wlan {
- + drvdbg = <0x6>;
- + drv_mode = <0x1>;
- + cfg80211_wext = <0xf>;
- + sta_name = "wlan";
- + wfd_name = "p2p";
- + cal_data_cfg = "none";
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&i2c_soft>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + gpio_expander: gpio_expander@20 {
- + compatible = "nxp,pca9554";
- + gpio-controller;
- + #gpio-cells = <2>;
- + reg = <0x20>;
- + status = "okay";
- + };
- +
- + // rtc clock
- + ds1307: ds1307@68 {
- + compatible = "dallas,ds1307";
- + reg = <0x68>;
- + status = "okay";
- + };
- +
- + // RGB LEDs (>= v1.1.0)
- + pca9633: pca9633@62 {
- + compatible = "nxp,pca9633";
- + reg = <0x62>;
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + red@0 {
- + label = "red";
- + reg = <0>;
- + linux,default-trigger = "none";
- + };
- + green@1 {
- + label = "green";
- + reg = <1>;
- + linux,default-trigger = "none";
- + };
- + blue@2 {
- + label = "blue";
- + reg = <2>;
- + linux,default-trigger = "none";
- + };
- + unused@3 {
- + label = "unused";
- + reg = <3>;
- + linux,default-trigger = "none";
- + };
- + };
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/cap1106-overlay.dts b/arch/arm/boot/dts/overlays/cap1106-overlay.dts
- new file mode 100644
- index 000000000000..0a585e725f84
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/cap1106-overlay.dts
- @@ -0,0 +1,52 @@
- +// Overlay for cap1106 from Microchip Semiconductor
- +// add CONFIG_KEYBOARD_CAP11XX=y
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- + fragment@0 {
- + target = <&i2c1>;
- + __overlay__{
- + status = "okay";
- + cap1106: cap1106@28 {
- + compatible = "microchip,cap1106";
- + pinctrl-0 = <&cap1106_pins>;
- + pinctrl-names = "default";
- + interrupt-parent = <&gpio>;
- + interrupts = <4 2>;
- + reg = <0x28>;
- + autorepeat;
- + microchip,sensor-gain = <2>;
- +
- + linux,keycodes = <2>, /* KEY_1 */
- + <3>, /* KEY_2 */
- + <4>, /* KEY_3 */
- + <5>, /* KEY_4 */
- + <6>, /* KEY_5 */
- + <7>; /* KEY_6 */
- +
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + };
- + };
- + };
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + cap1106_pins: cap1106_pins {
- + brcm,pins = <4>;
- + brcm,function = <0>; /* in */
- + brcm,pull = <0>; /* none */
- + };
- + };
- + };
- +
- + __overrides__ {
- + int_pin = <&cap1106>, "interrupts:0",
- + <&cap1106_pins>, "brcm,pins:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/chipdip-dac-overlay.dts b/arch/arm/boot/dts/overlays/chipdip-dac-overlay.dts
- new file mode 100644
- index 000000000000..09c7417b4707
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/chipdip-dac-overlay.dts
- @@ -0,0 +1,46 @@
- +/*
- + * Device Tree overlay for ChipDip DAC
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + spdif-transmitter {
- + #address-cells = <0>;
- + #size-cells = <0>;
- + #sound-dai-cells = <0>;
- + compatible = "linux,spdif-dit";
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "chipdip,chipdip-dac";
- + i2s-controller = <&i2s>;
- + sr0-gpios = <&gpio 5 0>;
- + sr1-gpios = <&gpio 6 0>;
- + sr2-gpios = <&gpio 12 0>;
- + res0-gpios = <&gpio 24 0>;
- + res1-gpios = <&gpio 27 0>;
- + mute-gpios = <&gpio 4 0>;
- + sdwn-gpios = <&gpio 13 0>;
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/cma-overlay.dts b/arch/arm/boot/dts/overlays/cma-overlay.dts
- new file mode 100644
- index 000000000000..1d87c599f909
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/cma-overlay.dts
- @@ -0,0 +1,36 @@
- +/*
- + * cma.dts
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&cma>;
- + frag0: __overlay__ {
- + /*
- + * The default size when using this overlay is 256 MB
- + * and should be kept as is for backwards
- + * compatibility.
- + */
- + size = <0x10000000>;
- + };
- + };
- +
- + __overrides__ {
- + cma-512 = <&frag0>,"size:0=",<0x20000000>;
- + cma-448 = <&frag0>,"size:0=",<0x1c000000>;
- + cma-384 = <&frag0>,"size:0=",<0x18000000>;
- + cma-320 = <&frag0>,"size:0=",<0x14000000>;
- + cma-256 = <&frag0>,"size:0=",<0x10000000>;
- + cma-192 = <&frag0>,"size:0=",<0xC000000>;
- + cma-128 = <&frag0>,"size:0=",<0x8000000>;
- + cma-96 = <&frag0>,"size:0=",<0x6000000>;
- + cma-64 = <&frag0>,"size:0=",<0x4000000>;
- + cma-size = <&frag0>,"size:0"; /* in bytes, 4MB aligned */
- + cma-default = <0>,"-0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/dht11-overlay.dts b/arch/arm/boot/dts/overlays/dht11-overlay.dts
- new file mode 100644
- index 000000000000..6feeeb402493
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/dht11-overlay.dts
- @@ -0,0 +1,41 @@
- +/*
- + * Overlay for the DHT11/21/22 humidity/temperature sensor modules.
- + */
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- +
- + dht11: dht11@0 {
- + compatible = "dht11";
- + pinctrl-names = "default";
- + pinctrl-0 = <&dht11_pins>;
- + gpios = <&gpio 4 0>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + dht11_pins: dht11_pins@0 {
- + brcm,pins = <4>;
- + brcm,function = <0>; // in
- + brcm,pull = <0>; // off
- + };
- + };
- + };
- +
- + __overrides__ {
- + gpiopin = <&dht11_pins>,"brcm,pins:0",
- + <&dht11_pins>, "reg:0",
- + <&dht11>,"gpios:4",
- + <&dht11>,"reg:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/dionaudio-loco-overlay.dts b/arch/arm/boot/dts/overlays/dionaudio-loco-overlay.dts
- new file mode 100644
- index 000000000000..d863e5c167cc
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/dionaudio-loco-overlay.dts
- @@ -0,0 +1,39 @@
- +// Definitions for Dion Audio LOCO DAC-AMP
- +
- +/*
- + * PCM5242 DAC (in hardware mode) and TPA3118 AMP.
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + pcm5102a-codec {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm5102a";
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "dionaudio,loco-pcm5242-tpa3118";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/dionaudio-loco-v2-overlay.dts b/arch/arm/boot/dts/overlays/dionaudio-loco-v2-overlay.dts
- new file mode 100644
- index 000000000000..dfb8922a654b
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/dionaudio-loco-v2-overlay.dts
- @@ -0,0 +1,49 @@
- +/*
- + * Definitions for Dion Audio LOCO-V2 DAC-AMP
- + * eg. dtoverlay=dionaudio-loco-v2
- + *
- + * PCM5242 DAC (in software mode) and TPA3255 AMP.
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&sound>;
- + frag0: __overlay__ {
- + compatible = "dionaudio,dionaudio-loco-v2";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + pcm5122@4c {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm5122";
- + reg = <0x4d>;
- + status = "okay";
- + };
- + };
- + };
- +
- + __overrides__ {
- + 24db_digital_gain = <&frag0>,"dionaudio,24db_digital_gain?";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/disable-bt-overlay.dts b/arch/arm/boot/dts/overlays/disable-bt-overlay.dts
- new file mode 100644
- index 000000000000..d5a66e5d76a9
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/disable-bt-overlay.dts
- @@ -0,0 +1,64 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/* Disable Bluetooth and restore UART0/ttyAMA0 over GPIOs 14 & 15.
- + To disable the systemd service that initialises the modem so it doesn't use
- + the UART:
- +
- + sudo systemctl disable hciuart
- +*/
- +
- +#include <dt-bindings/gpio/gpio.h>
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&uart1>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@1 {
- + target = <&uart0>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart0_pins>;
- + status = "okay";
- + };
- + };
- +
- + fragment@2 {
- + target = <&bt>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target = <&uart0_pins>;
- + __overlay__ {
- + brcm,pins;
- + brcm,function;
- + brcm,pull;
- + };
- + };
- +
- + fragment@4 {
- + target = <&bt_pins>;
- + __overlay__ {
- + brcm,pins;
- + brcm,function;
- + brcm,pull;
- + };
- + };
- +
- + fragment@5 {
- + target-path = "/aliases";
- + __overlay__ {
- + serial0 = "/soc/serial@7e201000";
- + serial1 = "/soc/serial@7e215040";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/disable-wifi-overlay.dts b/arch/arm/boot/dts/overlays/disable-wifi-overlay.dts
- new file mode 100644
- index 000000000000..75e046463900
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/disable-wifi-overlay.dts
- @@ -0,0 +1,20 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&mmc>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@1 {
- + target = <&mmcnr>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/dpi18-overlay.dts b/arch/arm/boot/dts/overlays/dpi18-overlay.dts
- new file mode 100644
- index 000000000000..4abe5be744db
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/dpi18-overlay.dts
- @@ -0,0 +1,39 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + // There is no DPI driver module, but we need a platform device
- + // node (that doesn't already use pinctrl) to hang the pinctrl
- + // reference on - leds will do
- +
- + fragment@0 {
- + target = <&fb>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&dpi18_pins>;
- + };
- + };
- +
- + fragment@1 {
- + target = <&vc4>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&dpi18_pins>;
- + };
- + };
- +
- + fragment@2 {
- + target = <&gpio>;
- + __overlay__ {
- + dpi18_pins: dpi18_pins {
- + brcm,pins = <0 1 2 3 4 5 6 7 8 9 10 11
- + 12 13 14 15 16 17 18 19 20
- + 21>;
- + brcm,function = <6>; /* alt2 */
- + brcm,pull = <0>; /* no pull */
- + };
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/dpi18cpadhi-overlay.dts b/arch/arm/boot/dts/overlays/dpi18cpadhi-overlay.dts
- new file mode 100644
- index 000000000000..50c88a1ed299
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/dpi18cpadhi-overlay.dts
- @@ -0,0 +1,26 @@
- +/*
- + * dpi18cpadhi-overlay.dts
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&fb>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&dpi_18bit_cpadhi_gpio0>;
- + };
- + };
- +
- + fragment@1 {
- + target = <&vc4>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&dpi_18bit_cpadhi_gpio0>;
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/dpi24-overlay.dts b/arch/arm/boot/dts/overlays/dpi24-overlay.dts
- new file mode 100644
- index 000000000000..44335cc81277
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/dpi24-overlay.dts
- @@ -0,0 +1,39 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + // There is no DPI driver module, but we need a platform device
- + // node (that doesn't already use pinctrl) to hang the pinctrl
- + // reference on - leds will do
- +
- + fragment@0 {
- + target = <&fb>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&dpi24_pins>;
- + };
- + };
- +
- + fragment@1 {
- + target = <&vc4>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&dpi24_pins>;
- + };
- + };
- +
- + fragment@2 {
- + target = <&gpio>;
- + __overlay__ {
- + dpi24_pins: dpi24_pins {
- + brcm,pins = <0 1 2 3 4 5 6 7 8 9 10 11
- + 12 13 14 15 16 17 18 19 20
- + 21 22 23 24 25 26 27>;
- + brcm,function = <6>; /* alt2 */
- + brcm,pull = <0>; /* no pull */
- + };
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/draws-overlay.dts b/arch/arm/boot/dts/overlays/draws-overlay.dts
- new file mode 100644
- index 000000000000..d18187d7f343
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/draws-overlay.dts
- @@ -0,0 +1,208 @@
- +#include <dt-bindings/clock/bcm2835.h>
- +/*
- + * Device tree overlay for the DRAWS Hardware
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + regulators {
- + compatible = "simple-bus";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + udrc0_ldoin: udrc0_ldoin {
- + compatible = "regulator-fixed";
- + regulator-name = "ldoin";
- + regulator-min-microvolt = <3300000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-always-on;
- + };
- +
- + sc16is752_clk: sc16is752_draws_clk {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-frequency = <1843200>;
- + };
- + };
- +
- + pps: pps {
- + compatible = "pps-gpio";
- + pinctrl-names = "default";
- + pinctrl-0 = <&pps_pins>;
- + gpios = <&gpio 7 0>;
- + status = "okay";
- + };
- +
- + iio-hwmon {
- + compatible = "iio-hwmon";
- + status = "okay";
- + io-channels = <&tla2024 4>, <&tla2024 5>, <&tla2024 6>,
- + <&tla2024 7>;
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c_arm>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + tlv320aic32x4: tlv320aic32x4@18 {
- + compatible = "ti,tlv320aic32x4";
- + reg = <0x18>;
- + #sound-dai-cells = <0>;
- + status = "okay";
- +
- + clocks = <&clocks BCM2835_CLOCK_GP0>;
- + clock-names = "mclk";
- + assigned-clocks = <&clocks BCM2835_CLOCK_GP0>;
- + assigned-clock-rates = <25000000>;
- +
- + pinctrl-names = "default";
- + pinctrl-0 = <&gpclk0_pin &aic3204_reset>;
- +
- + reset-gpios = <&gpio 13 0>;
- +
- + iov-supply = <&udrc0_ldoin>;
- + ldoin-supply = <&udrc0_ldoin>;
- + };
- +
- + sc16is752: sc16is752@50 {
- + compatible = "nxp,sc16is752";
- + reg = <0x50>;
- + clocks = <&sc16is752_clk>;
- + interrupt-parent = <&gpio>;
- + interrupts = <17 2>; /* IRQ_TYPE_EDGE_FALLING */
- +
- + pinctrl-names = "default";
- + pinctrl-0 = <&sc16is752_irq>;
- + };
- +
- + tla2024: tla2024@48 {
- + compatible = "ti,ads1015";
- + reg = <0x48>;
- + #address-cells = <1>;
- + #size-cells = <0>;
- + #io-channel-cells = <1>;
- +
- + adc_ch4: channel@4 {
- + reg = <4>;
- + ti,gain = <1>;
- + ti,datarate = <4>;
- + };
- +
- + adc_ch5: channel@5 {
- + reg = <5>;
- + ti,gain = <1>;
- + ti,datarate = <4>;
- + };
- +
- + adc_ch6: channel@6 {
- + reg = <6>;
- + ti,gain = <2>;
- + ti,datarate = <4>;
- + };
- +
- + adc_ch7: channel@7 {
- + reg = <7>;
- + ti,gain = <2>;
- + ti,datarate = <4>;
- + };
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&sound>;
- + snd: __overlay__ {
- + compatible = "simple-audio-card";
- + i2s-controller = <&i2s>;
- + status = "okay";
- +
- + simple-audio-card,name = "draws";
- + simple-audio-card,format = "i2s";
- +
- + simple-audio-card,bitclock-master = <&dailink0_master>;
- + simple-audio-card,frame-master = <&dailink0_master>;
- +
- + simple-audio-card,widgets =
- + "Line", "Line In",
- + "Line", "Line Out";
- +
- + simple-audio-card,routing =
- + "IN1_R", "Line In",
- + "IN1_L", "Line In",
- + "CM_L", "Line In",
- + "CM_R", "Line In",
- + "Line Out", "LOR",
- + "Line Out", "LOL";
- +
- + dailink0_master: simple-audio-card,cpu {
- + sound-dai = <&i2s>;
- + };
- +
- + simple-audio-card,codec {
- + sound-dai = <&tlv320aic32x4>;
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&gpio>;
- + __overlay__ {
- + gpclk0_pin: gpclk0_pin {
- + brcm,pins = <4>;
- + brcm,function = <4>;
- + };
- +
- + aic3204_reset: aic3204_reset {
- + brcm,pins = <13>;
- + brcm,function = <1>;
- + brcm,pull = <1>;
- + };
- +
- + aic3204_gpio: aic3204_gpio {
- + brcm,pins = <26>;
- + };
- +
- + sc16is752_irq: sc16is752_irq {
- + brcm,pins = <17>;
- + brcm,function = <0>;
- + brcm,pull = <2>;
- + };
- +
- + pps_pins: pps_pins {
- + brcm,pins = <7>;
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + draws_adc_ch4_gain = <&adc_ch4>,"ti,gain:0";
- + draws_adc_ch4_datarate = <&adc_ch4>,"ti,datarate:0";
- + draws_adc_ch5_gain = <&adc_ch5>,"ti,gain:0";
- + draws_adc_ch5_datarate = <&adc_ch5>,"ti,datarate:0";
- + draws_adc_ch6_gain = <&adc_ch6>,"ti,gain:0";
- + draws_adc_ch6_datarate = <&adc_ch6>,"ti,datarate:0";
- + draws_adc_ch7_gain = <&adc_ch7>,"ti,gain:0";
- + draws_adc_ch7_datarate = <&adc_ch7>,"ti,datarate:0";
- + alsaname = <&snd>, "simple-audio-card,name";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/dwc-otg-overlay.dts b/arch/arm/boot/dts/overlays/dwc-otg-overlay.dts
- new file mode 100644
- index 000000000000..78c5e9f85048
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/dwc-otg-overlay.dts
- @@ -0,0 +1,14 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&usb>;
- + __overlay__ {
- + compatible = "brcm,bcm2708-usb";
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/dwc2-overlay.dts b/arch/arm/boot/dts/overlays/dwc2-overlay.dts
- new file mode 100644
- index 000000000000..0d83e344ad97
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/dwc2-overlay.dts
- @@ -0,0 +1,26 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&usb>;
- + #address-cells = <1>;
- + #size-cells = <1>;
- + dwc2_usb: __overlay__ {
- + compatible = "brcm,bcm2835-usb";
- + dr_mode = "otg";
- + g-np-tx-fifo-size = <32>;
- + g-rx-fifo-size = <558>;
- + g-tx-fifo-size = <512 512 512 512 512 256 256>;
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + dr_mode = <&dwc2_usb>, "dr_mode";
- + g-np-tx-fifo-size = <&dwc2_usb>,"g-np-tx-fifo-size:0";
- + g-rx-fifo-size = <&dwc2_usb>,"g-rx-fifo-size:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/edt-ft5406-overlay.dts b/arch/arm/boot/dts/overlays/edt-ft5406-overlay.dts
- new file mode 100644
- index 000000000000..f82b4d0e5047
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/edt-ft5406-overlay.dts
- @@ -0,0 +1,10 @@
- +/*
- + * Device Tree overlay for EDT 5406 touchscreen controller, as used on the
- + * Raspberry Pi 7" panel
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +#include "edt-ft5406.dtsi"
- diff --git a/arch/arm/boot/dts/overlays/edt-ft5406.dtsi b/arch/arm/boot/dts/overlays/edt-ft5406.dtsi
- new file mode 100644
- index 000000000000..0473ff17f19f
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/edt-ft5406.dtsi
- @@ -0,0 +1,55 @@
- +/*
- + * Device Tree overlay for an EDT FT5406 touchscreen
- + *
- + * Note that this is included from vc4-kms-dsi-7inch, hence the
- + * fragment numbers not starting at 0.
- + */
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@10 {
- + target = <&ft5406>;
- + __overlay__ {
- + touchscreen-inverted-x;
- + };
- + };
- +
- + fragment@11 {
- + target = <&ft5406>;
- + __overlay__ {
- + touchscreen-inverted-y;
- + };
- + };
- +
- + fragment@12 {
- + target = <&i2c_csi_dsi>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- + ft5406: ts@38 {
- + compatible = "edt,edt-ft5406";
- + reg = <0x38>;
- +
- + touchscreen-size-x = < 800 >;
- + touchscreen-size-y = < 480 >;
- + };
- + };
- + };
- +
- + fragment@13 {
- + target = <&i2c0if>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + sizex = <&ft5406>,"touchscreen-size-x:0";
- + sizey = <&ft5406>,"touchscreen-size-y:0";
- + invx = <0>, "-10";
- + invy = <0>, "-11";
- + swapxy = <&ft5406>,"touchscreen-swapped-x-y?";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/enc28j60-overlay.dts b/arch/arm/boot/dts/overlays/enc28j60-overlay.dts
- new file mode 100644
- index 000000000000..7af5c2e607ea
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/enc28j60-overlay.dts
- @@ -0,0 +1,53 @@
- +// Overlay for the Microchip ENC28J60 Ethernet Controller
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + status = "okay";
- +
- + eth1: enc28j60@0{
- + compatible = "microchip,enc28j60";
- + reg = <0>; /* CE0 */
- + pinctrl-names = "default";
- + pinctrl-0 = <ð1_pins>;
- + interrupt-parent = <&gpio>;
- + interrupts = <25 0x2>; /* falling edge */
- + spi-max-frequency = <12000000>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&gpio>;
- + __overlay__ {
- + eth1_pins: eth1_pins {
- + brcm,pins = <25>;
- + brcm,function = <0>; /* in */
- + brcm,pull = <0>; /* none */
- + };
- + };
- + };
- +
- + __overrides__ {
- + int_pin = <ð1>, "interrupts:0",
- + <ð1_pins>, "brcm,pins:0";
- + speed = <ð1>, "spi-max-frequency:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/enc28j60-spi2-overlay.dts b/arch/arm/boot/dts/overlays/enc28j60-spi2-overlay.dts
- new file mode 100644
- index 000000000000..17cb5b8fa485
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/enc28j60-spi2-overlay.dts
- @@ -0,0 +1,47 @@
- +// Overlay for the Microchip ENC28J60 Ethernet Controller - SPI2 Compute Module
- +// Interrupt pin: 39
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi2>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + status = "okay";
- +
- + eth1: enc28j60@0{
- + compatible = "microchip,enc28j60";
- + reg = <0>; /* CE0 */
- + pinctrl-names = "default";
- + pinctrl-0 = <ð1_pins>;
- + interrupt-parent = <&gpio>;
- + interrupts = <39 0x2>; /* falling edge */
- + spi-max-frequency = <12000000>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + eth1_pins: eth1_pins {
- + brcm,pins = <39>;
- + brcm,function = <0>; /* in */
- + brcm,pull = <0>; /* none */
- + };
- + };
- + };
- +
- + __overrides__ {
- + int_pin = <ð1>, "interrupts:0",
- + <ð1_pins>, "brcm,pins:0";
- + speed = <ð1>, "spi-max-frequency:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/exc3000-overlay.dts b/arch/arm/boot/dts/overlays/exc3000-overlay.dts
- new file mode 100644
- index 000000000000..6f087fb20661
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/exc3000-overlay.dts
- @@ -0,0 +1,48 @@
- +// Device tree overlay for I2C connected EETI EXC3000 multiple touch controller
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&gpio>;
- + __overlay__ {
- + exc3000_pins: exc3000_pins {
- + brcm,pins = <4>; // interrupt
- + brcm,function = <0>; // in
- + brcm,pull = <2>; // pull-up
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + exc3000: exc3000@2a {
- + compatible = "eeti,exc3000";
- + reg = <0x2a>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&exc3000_pins>;
- + interrupt-parent = <&gpio>;
- + interrupts = <4 8>; // active low level-sensitive
- + touchscreen-size-x = <4096>;
- + touchscreen-size-y = <4096>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + interrupt = <&exc3000_pins>,"brcm,pins:0",
- + <&exc3000>,"interrupts:0";
- + sizex = <&exc3000>,"touchscreen-size-x:0";
- + sizey = <&exc3000>,"touchscreen-size-y:0";
- + invx = <&exc3000>,"touchscreen-inverted-x?";
- + invy = <&exc3000>,"touchscreen-inverted-y?";
- + swapxy = <&exc3000>,"touchscreen-swapped-x-y?";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/fe-pi-audio-overlay.dts b/arch/arm/boot/dts/overlays/fe-pi-audio-overlay.dts
- new file mode 100644
- index 000000000000..743f14ae5768
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/fe-pi-audio-overlay.dts
- @@ -0,0 +1,70 @@
- +// Definitions for Fe-Pi Audio
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + sgtl5000_mclk: sgtl5000_mclk {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-frequency = <12288000>;
- + clock-output-names = "sgtl5000-mclk";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&soc>;
- + __overlay__ {
- + reg_1v8: reg_1v8@0 {
- + compatible = "regulator-fixed";
- + regulator-name = "1V8";
- + regulator-min-microvolt = <1800000>;
- + regulator-max-microvolt = <1800000>;
- + regulator-always-on;
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + sgtl5000@0a {
- + #sound-dai-cells = <0>;
- + compatible = "fsl,sgtl5000";
- + reg = <0x0a>;
- + clocks = <&sgtl5000_mclk>;
- + micbias-resistor-k-ohms = <2>;
- + micbias-voltage-m-volts = <3000>;
- + VDDA-supply = <&vdd_3v3_reg>;
- + VDDIO-supply = <&vdd_3v3_reg>;
- + VDDD-supply = <®_1v8>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@4 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "fe-pi,fe-pi-audio";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/fsm-demo-overlay.dts b/arch/arm/boot/dts/overlays/fsm-demo-overlay.dts
- new file mode 100644
- index 000000000000..e9944f5cd258
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/fsm-demo-overlay.dts
- @@ -0,0 +1,104 @@
- +// Demo overlay for the gpio-fsm driver
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/gpio/gpio-fsm.h>
- +
- +#define BUTTON1 GF_IP(0)
- +#define BUTTON2 GF_SW(0)
- +#define RED GF_OP(0) // GPIO7
- +#define AMBER GF_OP(1) // GPIO8
- +#define GREEN GF_OP(2) // GPIO25
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + fsm_demo: fsm-demo {
- + compatible = "rpi,gpio-fsm";
- +
- + debug = <0>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + num-swgpios = <1>;
- + gpio-line-names = "button2";
- + input-gpios = <&gpio 6 1>; // BUTTON1 (active-low)
- + output-gpios = <&gpio 7 0>, // RED
- + <&gpio 8 0>, // AMBER
- + <&gpio 25 0>; // GREEN
- + shutdown-timeout-ms = <2000>;
- +
- + start {
- + start_state;
- + set = <RED 1>, <AMBER 0>, <GREEN 0>;
- + start2 = <GF_DELAY 250>;
- + };
- +
- + start2 {
- + set = <RED 0>, <AMBER 1>;
- + go = <GF_DELAY 250>;
- + };
- +
- + go {
- + set = <RED 0>, <AMBER 0>, <GREEN 1>;
- + ready_wait = <BUTTON1 0>;
- + shutdown1 = <GF_SHUTDOWN 0>;
- + };
- +
- + ready_wait {
- + // Clear the soft GPIO
- + set = <BUTTON2 0>;
- + ready = <GF_DELAY 1000>;
- + shutdown1 = <GF_SHUTDOWN 0>;
- + };
- +
- + ready {
- + stopping = <BUTTON1 1>, <BUTTON2 1>;
- + shutdown1 = <GF_SHUTDOWN 0>;
- + };
- +
- + stopping {
- + set = <GREEN 0>, <AMBER 1>;
- + stopped = <GF_DELAY 1000>;
- + };
- +
- + stopped {
- + set = <AMBER 0>, <RED 1>;
- + get_set = <GF_DELAY 3000>;
- + shutdown1 = <GF_SHUTDOWN 0>;
- + };
- +
- + get_set {
- + set = <AMBER 1>;
- + go = <GF_DELAY 1000>;
- + };
- +
- + shutdown1 {
- + set = <RED 0>, <AMBER 0>, <GREEN 1>;
- + shutdown2 = <GF_SHUTDOWN 250>;
- + };
- +
- + shutdown2 {
- + set = <AMBER 1>, <GREEN 0>;
- + shutdown3 = <GF_SHUTDOWN 250>;
- + };
- +
- + shutdown3 {
- + set = <RED 1>, <AMBER 0>;
- + shutdown4 = <GF_SHUTDOWN 250>;
- + };
- +
- + shutdown4 {
- + shutdown_state;
- + set = <RED 0>, <AMBER 0>, <GREEN 0>;
- + };
- + };
- + };
- + };
- +
- + __overrides__ {
- + fsm_debug = <&fsm_demo>,"debug:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/ghost-amp-overlay.dts b/arch/arm/boot/dts/overlays/ghost-amp-overlay.dts
- new file mode 100644
- index 000000000000..7509e00679c8
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/ghost-amp-overlay.dts
- @@ -0,0 +1,145 @@
- +// Overlay for the PCM5122-based Ghost amplifier using gpio-fsm
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/gpio/gpio-fsm.h>
- +
- +#define ENABLE GF_SW(0)
- +#define FAULT GF_IP(0) // GPIO5
- +#define RELAY1 GF_OP(0) // GPIO22
- +#define RELAY2 GF_OP(1) // GPIO23
- +#define RELAYSSR GF_OP(2) // GPIO24
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + pcm5122@4c {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm5122";
- + reg = <0x4c>;
- + AVDD-supply = <&vdd_3v3_reg>;
- + DVDD-supply = <&vdd_3v3_reg>;
- + CPVDD-supply = <&vdd_3v3_reg>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + iqaudio_dac: __overlay__ {
- + compatible = "iqaudio,iqaudio-dac";
- + i2s-controller = <&i2s>;
- + mute-gpios = <& 0 0>;
- + iqaudio-dac,auto-mute-amp;
- + status = "okay";
- + };
- + };
- +
- + fragment@3 {
- + target-path = "/";
- + __overlay__ {
- + amp: ghost-amp {
- + compatible = "rpi,gpio-fsm";
- + pinctrl-names = "default";
- + pinctrl-0 = <&ghost_amp_pins>;
- +
- + debug = <0>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + num-swgpios = <1>;
- + gpio-line-names = "enable";
- + input-gpios = <&gpio 5 1>; // FAULT (active low)
- + output-gpios = <&gpio 22 0>, // RELAY1
- + <&gpio 23 0>, // RELAY2
- + <&gpio 24 0>; // RELAYSSR
- + shutdown-timeout-ms = <1000>;
- +
- + amp_off {
- + start_state;
- + shutdown_state;
- +
- + set = <RELAYSSR 0>,
- + <RELAY2 0>,
- + <RELAY1 0>;
- + amp_on_1 = <ENABLE 1>;
- + fault = <FAULT 1>;
- + };
- +
- + amp_on_1 {
- + set = <RELAY1 1>;
- + amp_on_2 = <GF_DELAY 1000>;
- + amp_off = <GF_SHUTDOWN 0>;
- + fault = <FAULT 1>;
- + };
- +
- + amp_on_2 {
- + set = <RELAY2 1>;
- + amp_on_wait = <ENABLE 0>;
- + amp_on = <GF_DELAY 1>;
- + fault = <FAULT 1>;
- + };
- +
- + amp_on {
- + set = <RELAYSSR 1>;
- + amp_on_wait = <ENABLE 0>;
- + fault = <FAULT 1>;
- + };
- +
- + amp_on_wait {
- + set = <RELAYSSR 0>;
- + amp_off_1 = <GF_DELAY (30*60*1000)>,
- + <GF_SHUTDOWN 0>;
- + amp_on = <ENABLE 1>;
- + fault = <FAULT 1>;
- + };
- +
- + amp_off_1 {
- + set = <RELAY2 0>;
- + amp_on = <ENABLE 1>;
- + amp_off = <GF_DELAY 100>;
- + fault = <FAULT 1>;
- + };
- +
- + // Keep this a distinct state to prevent
- + // changes and for the diagnostic output
- + fault {
- + set = <RELAYSSR 0>,
- + <RELAY2 0>,
- + <RELAY1 0>;
- + amp_off = <FAULT 0>;
- + shutdown_state;
- + };
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&gpio>;
- + __overlay__ {
- + ghost_amp_pins: ghost_amp_pins {
- + brcm,pins = <5 22 23 24>;
- + brcm,function = <0 1 1 1>; /* in out out out */
- + brcm,pull = <2 0 0 0>; /* up none none none */
- + };
- + };
- + };
- +
- + __overrides__ {
- + fsm_debug = <&>,"debug:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/goodix-overlay.dts b/arch/arm/boot/dts/overlays/goodix-overlay.dts
- new file mode 100644
- index 000000000000..8571527de49a
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/goodix-overlay.dts
- @@ -0,0 +1,46 @@
- +// Device tree overlay for I2C connected Goodix gt9271 multiple touch controller
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&gpio>;
- + __overlay__ {
- + goodix_pins: goodix_pins {
- + brcm,pins = <4 17>; // interrupt and reset
- + brcm,function = <0 0>; // in
- + brcm,pull = <2 2>; // pull-up
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + gt9271: gt9271@14 {
- + compatible = "goodix,gt9271";
- + reg = <0x14>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&goodix_pins>;
- + interrupt-parent = <&gpio>;
- + interrupts = <4 2>; // high-to-low edge triggered
- + irq-gpios = <&gpio 4 0>; // Pin7 on GPIO header
- + reset-gpios = <&gpio 17 0>; // Pin11 on GPIO header
- + };
- + };
- + };
- +
- + __overrides__ {
- + interrupt = <&goodix_pins>,"brcm,pins:0",
- + <>9271>,"interrupts:0",
- + <>9271>,"irq-gpios:4";
- + reset = <&goodix_pins>,"brcm,pins:4",
- + <>9271>,"reset-gpios:4";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/googlevoicehat-soundcard-overlay.dts b/arch/arm/boot/dts/overlays/googlevoicehat-soundcard-overlay.dts
- new file mode 100644
- index 000000000000..e443be1f9a0e
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/googlevoicehat-soundcard-overlay.dts
- @@ -0,0 +1,49 @@
- +// Definitions for Google voiceHAT v1 soundcard overlay
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + googlevoicehat_pins: googlevoicehat_pins {
- + brcm,pins = <16>;
- + brcm,function = <1>; /* out */
- + brcm,pull = <0>; /* up */
- + };
- + };
- + };
- +
- +
- + fragment@2 {
- + target-path = "/";
- + __overlay__ {
- + voicehat-codec {
- + #sound-dai-cells = <0>;
- + compatible = "google,voicehat";
- + pinctrl-names = "default";
- + pinctrl-0 = <&googlevoicehat_pins>;
- + sdmode-gpios= <&gpio 16 0>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "googlevoicehat,googlevoicehat-soundcard";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/gpio-fan-overlay.dts b/arch/arm/boot/dts/overlays/gpio-fan-overlay.dts
- new file mode 100644
- index 000000000000..77a7bbb41e3b
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/gpio-fan-overlay.dts
- @@ -0,0 +1,79 @@
- +/*
- + * Overlay for the Raspberry Pi GPIO Fan @ BCM GPIO12.
- + * References:
- + * - https://www.raspberrypi.org/forums/viewtopic.php?f=107&p=1367135#p1365084
- + *
- + * Optional parameters:
- + * - "gpiopin" - BCM number of the pin driving the fan, default 12 (GPIO12);
- + * - "temp" - CPU temperature at which fan is started in millicelsius, default 55000;
- + *
- + * Requires:
- + * - kernel configurations: CONFIG_SENSORS_GPIO_FAN=m;
- + * - kernel rebuild;
- + * - N-MOSFET connected to gpiopin, 2N7002-[https://en.wikipedia.org/wiki/2N7000];
- + * - DC Fan connected to N-MOSFET Drain terminal, a 12V fan is working fine and quite silently;
- + * [https://www.tme.eu/en/details/ee40101s1-999-a/dc12v-fans/sunon/ee40101s1-1000u-999/]
- + *
- + * ┌─────────────────────┐
- + * │Fan negative terminal│
- + * └┬────────────────────┘
- + * │D
- + * G │──┘
- + * [GPIO12]──────┤ │<─┐ 2N7002
- + * │──┤
- + * │S
- + * ─┴─
- + * GND
- + *
- + * Build:
- + * - `sudo dtc -W no-unit_address_vs_reg -@ -I dts -O dtb -o /boot/overlays/gpio-fan.dtbo gpio-fan-overlay.dts`
- + * Activate:
- + * - sudo nano /boot/config.txt add "dtoverlay=gpio-fan" or "dtoverlay=gpio-fan,gpiopin=12,temp=45000"
- + * or
- + * - sudo sh -c 'printf "\n# Enable PI GPIO-Fan Default\ndtoverlay=gpio-fan\n" >> /boot/config.txt'
- + * - sudo sh -c 'printf "\n# Enable PI GPIO-Fan Custom\ndtoverlay=gpio-fan,gpiopin=12,temp=45000\n" >> /boot/config.txt'
- + *
- + */
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + fan0: gpio-fan@0 {
- + compatible = "gpio-fan";
- + gpios = <&gpio 12 0>;
- + gpio-fan,speed-map = <0 0>,
- + <5000 1>;
- + #cooling-cells = <2>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&cpu_thermal>;
- + polling-delay = <2000>; /* milliseconds */
- + __overlay__ {
- + trips {
- + cpu_hot: trip-point@0 {
- + temperature = <55000>; /* (millicelsius) Fan started at 55°C */
- + hysteresis = <10000>; /* (millicelsius) Fan stopped at 45°C */
- + type = "active";
- + };
- + };
- + cooling-maps {
- + map0 {
- + trip = <&cpu_hot>;
- + cooling-device = <&fan0 1 1>;
- + };
- + };
- + };
- + };
- + __overrides__ {
- + gpiopin = <&fan0>,"gpios:4", <&fan0>,"brcm,pins:0";
- + temp = <&cpu_hot>,"temperature:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/gpio-ir-overlay.dts b/arch/arm/boot/dts/overlays/gpio-ir-overlay.dts
- new file mode 100644
- index 000000000000..162b6ce07dc9
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/gpio-ir-overlay.dts
- @@ -0,0 +1,49 @@
- +// Definitions for ir-gpio module
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + gpio_ir: ir-receiver@12 {
- + compatible = "gpio-ir-receiver";
- + pinctrl-names = "default";
- + pinctrl-0 = <&gpio_ir_pins>;
- +
- + // pin number, high or low
- + gpios = <&gpio 18 1>;
- +
- + // parameter for keymap name
- + linux,rc-map-name = "rc-rc6-mce";
- +
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + gpio_ir_pins: gpio_ir_pins@12 {
- + brcm,pins = <18>; // pin 18
- + brcm,function = <0>; // in
- + brcm,pull = <2>; // up
- + };
- + };
- + };
- +
- + __overrides__ {
- + // parameters
- + gpio_pin = <&gpio_ir>,"gpios:4", // pin number
- + <&gpio_ir>,"reg:0",
- + <&gpio_ir_pins>,"brcm,pins:0",
- + <&gpio_ir_pins>,"reg:0";
- + gpio_pull = <&gpio_ir_pins>,"brcm,pull:0"; // pull-up/down state
- + invert = <&gpio_ir>,"gpios:8"; // 0 = active high input
- +
- + rc-map-name = <&gpio_ir>,"linux,rc-map-name"; // default rc map
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/gpio-ir-tx-overlay.dts b/arch/arm/boot/dts/overlays/gpio-ir-tx-overlay.dts
- new file mode 100644
- index 000000000000..3625431b7560
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/gpio-ir-tx-overlay.dts
- @@ -0,0 +1,36 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&gpio>;
- + __overlay__ {
- + gpio_ir_tx_pins: gpio_ir_tx_pins@12 {
- + brcm,pins = <18>;
- + brcm,function = <1>; // out
- + };
- + };
- + };
- +
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + gpio_ir_tx: gpio-ir-transmitter@12 {
- + compatible = "gpio-ir-tx";
- + pinctrl-names = "default";
- + pinctrl-0 = <&gpio_ir_tx_pins>;
- + gpios = <&gpio 18 0>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + gpio_pin = <&gpio_ir_tx>, "gpios:4", // pin number
- + <&gpio_ir_tx>, "reg:0",
- + <&gpio_ir_tx_pins>, "brcm,pins:0",
- + <&gpio_ir_tx_pins>, "reg:0";
- + invert = <&gpio_ir_tx>, "gpios:8"; // 1 = active low
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/gpio-key-overlay.dts b/arch/arm/boot/dts/overlays/gpio-key-overlay.dts
- new file mode 100644
- index 000000000000..2e7253d1d0ab
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/gpio-key-overlay.dts
- @@ -0,0 +1,48 @@
- +// Definitions for gpio-key module
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + // Configure the gpio pin controller
- + target = <&gpio>;
- + __overlay__ {
- + pin_state: button_pins@0 {
- + brcm,pins = <3>; // gpio number
- + brcm,function = <0>; // 0 = input, 1 = output
- + brcm,pull = <2>; // 0 = none, 1 = pull down, 2 = pull up
- + };
- + };
- + };
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + button: button@0 {
- + compatible = "gpio-keys";
- + pinctrl-names = "default";
- + pinctrl-0 = <&pin_state>;
- + status = "okay";
- +
- + key: key {
- + linux,code = <116>;
- + gpios = <&gpio 3 1>;
- + label = "KEY_POWER";
- + };
- + };
- + };
- + };
- +
- + __overrides__ {
- + gpio = <&key>,"gpios:4",
- + <&button>,"reg:0",
- + <&pin_state>,"brcm,pins:0",
- + <&pin_state>,"reg:0";
- + label = <&key>,"label";
- + keycode = <&key>,"linux,code:0";
- + gpio_pull = <&pin_state>,"brcm,pull:0";
- + active_low = <&key>,"gpios:8";
- + };
- +
- +};
- diff --git a/arch/arm/boot/dts/overlays/gpio-led-overlay.dts b/arch/arm/boot/dts/overlays/gpio-led-overlay.dts
- new file mode 100755
- index 000000000000..d8e9d53f1b61
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/gpio-led-overlay.dts
- @@ -0,0 +1,97 @@
- +// SPDX-License-Identifier: GPL-2.0-or-later
- +/*
- + * gpio-led - generic connection of kernel's LED framework to the RPI's GPIO.
- + * Copyright (C) 2021 House Gordon Software Company Ltd. <[email protected]>
- + *
- + * Based on information from:
- + * https://mjoldfield.com/atelier/2017/03/rpi-devicetree.html
- + * https://www.raspberrypi.org/documentation/configuration/device-tree.md
- + * https://www.kernel.org/doc/html/latest/leds/index.html
- + *
- + * compile with:
- + * dtc -@ -Hepapr -I dts -O dtb -o gpio-led.dtbo gpio-led-overlay.dts
- + *
- + * There will be some warnings (can be ignored):
- + * Warning (label_is_string): /__overrides__:label: property is not a string
- + * Warning (unit_address_vs_reg): /fragment@0/__overlay__/led_pins@0:
- + * node has a unit name, but no reg property
- + * Warning (unit_address_vs_reg): /fragment@1/__overlay__/leds@0:
- + * node has a unit name, but no reg property
- + * Warning (gpios_property): /__overrides__: Missing property
- + * '#gpio-cells' in node /fragment@1/__overlay__/leds@0/led
- + * or bad phandle (referred from gpio[0])
- + *
- + * Typical electrical connection is:
- + * RPI-GPIO.19 -> LED -> 300ohm resister -> RPI-GND
- + * The GPIO pin number can be changed with the 'gpio=' parameter.
- + *
- + * Test from user-space with:
- + * # if nothing is shown, the overlay file isn't found in /boot/overlays
- + * dtoverlay -a | grep gpio-led
- + *
- + * # Load the overlay
- + * dtoverlay gpio-led label=moo gpio=19
- + *
- + * # if nothing is shown, the overlay wasn't loaded successfully
- + * dtoverlay -l | grep gpio-led
- + *
- + * echo 1 > /sys/class/leds/moo/brightness
- + * echo 0 > /sys/class/leds/moo/brightness
- + * echo cpu > /sys/class/leds/moo/trigger
- + * echo heartbeat > /sys/class/leds/moo/trigger
- + *
- + * # unload the overlay
- + * dtoverlay -r gpio-led
- + *
- + * To load in /boot/config.txt add lines such as:
- + * dtoverlay=gpio-led,gpio=19,label=heart,trigger=heartbeat
- + * dtoverlay=gpio-led,gpio=26,label=brain,trigger=cpu
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + // Configure the gpio pin controller
- + target = <&gpio>;
- + __overlay__ {
- + led_pin: led_pins@19 {
- + brcm,pins = <19>; // gpio number
- + brcm,function = <1>; // 0 = input, 1 = output
- + brcm,pull = <0>; // 0 = none, 1 = pull down, 2 = pull up
- + };
- + };
- + };
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + leds: leds@0 {
- + compatible = "gpio-leds";
- + pinctrl-names = "default";
- + pinctrl-0 = <&led_pin>;
- + status = "okay";
- +
- + led: led {
- + label = "myled1";
- + gpios = <&gpio 19 0>;
- + linux,default-trigger = "none";
- + };
- + };
- + };
- + };
- +
- + __overrides__ {
- + gpio = <&led>,"gpios:4",
- + <&leds>,"reg:0",
- + <&led_pin>,"brcm,pins:0",
- + <&led_pin>,"reg:0";
- + label = <&led>,"label";
- + active_low = <&led>,"gpios:8";
- + trigger = <&led>,"linux,default-trigger";
- + };
- +
- +};
- +
- diff --git a/arch/arm/boot/dts/overlays/gpio-no-bank0-irq-overlay.dts b/arch/arm/boot/dts/overlays/gpio-no-bank0-irq-overlay.dts
- new file mode 100755
- index 000000000000..96cbe80820b7
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/gpio-no-bank0-irq-overlay.dts
- @@ -0,0 +1,14 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + // Configure the gpio pin controller
- + target = <&gpio>;
- + __overlay__ {
- + interrupts = <255 255>, <2 18>;
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/gpio-no-irq-overlay.dts b/arch/arm/boot/dts/overlays/gpio-no-irq-overlay.dts
- new file mode 100644
- index 000000000000..55f9bff3a8f6
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/gpio-no-irq-overlay.dts
- @@ -0,0 +1,14 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + // Configure the gpio pin controller
- + target = <&gpio>;
- + __overlay__ {
- + interrupts;
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/gpio-poweroff-overlay.dts b/arch/arm/boot/dts/overlays/gpio-poweroff-overlay.dts
- new file mode 100644
- index 000000000000..416aa2bc797a
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/gpio-poweroff-overlay.dts
- @@ -0,0 +1,37 @@
- +// Definitions for gpio-poweroff module
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + power_ctrl: power_ctrl {
- + compatible = "gpio-poweroff";
- + gpios = <&gpio 26 0>;
- + force;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + power_ctrl_pins: power_ctrl_pins {
- + brcm,pins = <26>;
- + brcm,function = <1>; // out
- + };
- + };
- + };
- +
- + __overrides__ {
- + gpiopin = <&power_ctrl>,"gpios:4",
- + <&power_ctrl_pins>,"brcm,pins:0";
- + active_low = <&power_ctrl>,"gpios:8";
- + input = <&power_ctrl>,"input?";
- + export = <&power_ctrl>,"export?";
- + timeout_ms = <&power_ctrl>,"timeout-ms:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/gpio-shutdown-overlay.dts b/arch/arm/boot/dts/overlays/gpio-shutdown-overlay.dts
- new file mode 100644
- index 000000000000..da148064aedd
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/gpio-shutdown-overlay.dts
- @@ -0,0 +1,86 @@
- +// Definitions for gpio-poweroff module
- +/dts-v1/;
- +/plugin/;
- +
- +// This overlay sets up an input device that generates KEY_POWER events
- +// when a given GPIO pin changes. It defaults to using GPIO3, which can
- +// also be used to wake up (start) the Rpi again after shutdown.
- +// Raspberry Pi 1 Model B rev 1 can be wake up only by GPIO1 pin, so for
- +// these boards change default GPIO pin to 1 via gpio_pin parameter. Since
- +// wakeup is active-low, this defaults to active-low with a pullup
- +// enabled, but all of this can be changed using overlay parameters (but
- +// note that GPIO3 has an external pullup on at least some boards).
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + // Configure the gpio pin controller
- + target = <&gpio>;
- + __overlay__ {
- + // Define a pinctrl state, that sets up the gpio
- + // as an input with a pullup enabled. This does
- + // not take effect by itself, only when referenced
- + // by a "pinctrl client", as is done below. See:
- + // https://www.kernel.org/doc/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
- + // https://www.kernel.org/doc/Documentation/devicetree/bindings/pinctrl/brcm,bcm2835-gpio.txt
- + pin_state: shutdown_button_pins@3 {
- + brcm,pins = <3>; // gpio number
- + brcm,function = <0>; // 0 = input, 1 = output
- + brcm,pull = <2>; // 0 = none, 1 = pull down, 2 = pull up
- + };
- + };
- + };
- + fragment@1 {
- + // Add a new device to the /soc devicetree node
- + target-path = "/soc";
- + __overlay__ {
- + shutdown_button: shutdown_button@3 {
- + // Let the gpio-keys driver handle this device. See:
- + // https://www.kernel.org/doc/Documentation/devicetree/bindings/input/gpio-keys.txt
- + compatible = "gpio-keys";
- +
- + // Declare a single pinctrl state (referencing the one declared above) and name it
- + // default, so it is activated automatically.
- + pinctrl-names = "default";
- + pinctrl-0 = <&pin_state>;
- +
- + // Enable this device
- + status = "okay";
- +
- + // Define a single key, called "shutdown" that monitors the gpio and sends KEY_POWER
- + // (keycode 116, see
- + // https://github.com/torvalds/linux/blob/v4.12/include/uapi/linux/input-event-codes.h#L190)
- + button: shutdown {
- + label = "shutdown";
- + linux,code = <116>; // KEY_POWER
- + gpios = <&gpio 3 1>;
- + debounce-interval = <100>; // ms
- + };
- + };
- + };
- + };
- +
- + // This defines parameters that can be specified when loading
- + // the overlay. Each foo = line specifies one parameter, named
- + // foo. The rest of the specification gives properties where the
- + // parameter value is inserted into (changing the values above
- + // or adding new ones).
- + __overrides__ {
- + // Allow overriding the GPIO number.
- + gpio_pin = <&button>,"gpios:4",
- + <&shutdown_button>,"reg:0",
- + <&pin_state>,"reg:0",
- + <&pin_state>,"brcm,pins:0";
- +
- + // Allow changing the internal pullup/down state. 0 = none, 1 = pulldown, 2 = pullup
- + // Note that GPIO3 and GPIO2 are the I2c pins and have an external pullup (at least
- + // on some boards). Same applies for GPIO1 on Raspberry Pi 1 Model B rev 1.
- + gpio_pull = <&pin_state>,"brcm,pull:0";
- +
- + // Allow setting the active_low flag. 0 = active high, 1 = active low
- + active_low = <&button>,"gpios:8";
- + debounce = <&button>,"debounce-interval:0";
- + };
- +
- +};
- diff --git a/arch/arm/boot/dts/overlays/hd44780-lcd-overlay.dts b/arch/arm/boot/dts/overlays/hd44780-lcd-overlay.dts
- new file mode 100644
- index 000000000000..ee726669ff51
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/hd44780-lcd-overlay.dts
- @@ -0,0 +1,46 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + lcd_screen: auxdisplay {
- + compatible = "hit,hd44780";
- +
- + data-gpios = <&gpio 6 0>,
- + <&gpio 13 0>,
- + <&gpio 19 0>,
- + <&gpio 26 0>;
- + enable-gpios = <&gpio 21 0>;
- + rs-gpios = <&gpio 20 0>;
- +
- + display-height-chars = <2>;
- + display-width-chars = <16>;
- + };
- +
- + };
- + };
- +
- + fragment@1 {
- + target = <&lcd_screen>;
- + __dormant__ {
- + backlight-gpios = <&gpio 12 0>;
- + };
- + };
- +
- + __overrides__ {
- + pin_d4 = <&lcd_screen>,"data-gpios:4";
- + pin_d5 = <&lcd_screen>,"data-gpios:16";
- + pin_d6 = <&lcd_screen>,"data-gpios:28";
- + pin_d7 = <&lcd_screen>,"data-gpios:40";
- + pin_en = <&lcd_screen>,"enable-gpios:4";
- + pin_rs = <&lcd_screen>,"rs-gpios:4";
- + pin_bl = <0>,"+1", <&lcd_screen>,"backlight-gpios:4";
- + display_height = <&lcd_screen>,"display-height-chars:0";
- + display_width = <&lcd_screen>,"display-width-chars:0";
- + };
- +
- +};
- diff --git a/arch/arm/boot/dts/overlays/hdmi-backlight-hwhack-gpio-overlay.dts b/arch/arm/boot/dts/overlays/hdmi-backlight-hwhack-gpio-overlay.dts
- new file mode 100644
- index 000000000000..50b9a2665c80
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/hdmi-backlight-hwhack-gpio-overlay.dts
- @@ -0,0 +1,47 @@
- +/*
- + * Devicetree overlay for GPIO based backlight on/off capability.
- + *
- + * Use this if you have one of those HDMI displays whose backlight cannot be
- + * controlled via DPMS over HDMI and plan to do a little soldering to use an
- + * RPi gpio pin for on/off switching.
- + *
- + * See: https://www.waveshare.com/wiki/7inch_HDMI_LCD_(C)#Backlight_Control
- + *
- + */
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + hdmi_backlight_hwhack_gpio_pins: hdmi_backlight_hwhack_gpio_pins {
- + brcm,pins = <17>;
- + brcm,function = <1>; /* out */
- + };
- + };
- + };
- +
- + fragment@2 {
- + target-path = "/";
- + __overlay__ {
- + hdmi_backlight_hwhack_gpio: hdmi_backlight_hwhack_gpio {
- + compatible = "gpio-backlight";
- +
- + pinctrl-names = "default";
- + pinctrl-0 = <&hdmi_backlight_hwhack_gpio_pins>;
- +
- + gpios = <&gpio 17 0>;
- + default-on;
- + };
- + };
- + };
- +
- + __overrides__ {
- + gpio_pin = <&hdmi_backlight_hwhack_gpio>,"gpios:4",
- + <&hdmi_backlight_hwhack_gpio_pins>,"brcm,pins:0";
- + active_low = <&hdmi_backlight_hwhack_gpio>,"gpios:8";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/hifiberry-amp-overlay.dts b/arch/arm/boot/dts/overlays/hifiberry-amp-overlay.dts
- new file mode 100644
- index 000000000000..142518ab348b
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/hifiberry-amp-overlay.dts
- @@ -0,0 +1,39 @@
- +// Definitions for HiFiBerry Amp/Amp+
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + tas5713@1b {
- + #sound-dai-cells = <0>;
- + compatible = "ti,tas5713";
- + reg = <0x1b>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "hifiberry,hifiberry-amp";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/hifiberry-amp100-overlay.dts b/arch/arm/boot/dts/overlays/hifiberry-amp100-overlay.dts
- new file mode 100644
- index 000000000000..ebdef55d6110
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/hifiberry-amp100-overlay.dts
- @@ -0,0 +1,64 @@
- +// Definitions for HiFiBerry AMP100
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + dacpro_osc: dacpro_osc {
- + compatible = "hifiberry,dacpro-clk";
- + #clock-cells = <0>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + pcm5122@4d {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm5122";
- + reg = <0x4d>;
- + clocks = <&dacpro_osc>;
- + AVDD-supply = <&vdd_3v3_reg>;
- + DVDD-supply = <&vdd_3v3_reg>;
- + CPVDD-supply = <&vdd_3v3_reg>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&sound>;
- + hifiberry_dacplus: __overlay__ {
- + compatible = "hifiberry,hifiberry-dacplus";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + mute-gpio = <&gpio 4 0>;
- + reset-gpio = <&gpio 17 0x11>;
- + };
- + };
- +
- + __overrides__ {
- + 24db_digital_gain =
- + <&hifiberry_dacplus>,"hifiberry,24db_digital_gain?";
- + slave = <&hifiberry_dacplus>,"hifiberry-dacplus,slave?";
- + leds_off = <&hifiberry_dacplus>,"hifiberry-dacplus,leds_off?";
- + mute_ext_ctl = <&hifiberry_dacplus>,"hifiberry-dacplus,mute_ext_ctl:0";
- + auto_mute = <&hifiberry_dacplus>,"hifiberry-dacplus,auto_mute?";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/hifiberry-dac-overlay.dts b/arch/arm/boot/dts/overlays/hifiberry-dac-overlay.dts
- new file mode 100644
- index 000000000000..ea8a6c8f36c0
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/hifiberry-dac-overlay.dts
- @@ -0,0 +1,34 @@
- +// Definitions for HiFiBerry DAC
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + pcm5102a-codec {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm5102a";
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "hifiberry,hifiberry-dac";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts b/arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts
- new file mode 100644
- index 000000000000..ff19015ba656
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts
- @@ -0,0 +1,65 @@
- +// Definitions for HiFiBerry DAC+
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + dacpro_osc: dacpro_osc {
- + compatible = "hifiberry,dacpro-clk";
- + #clock-cells = <0>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + pcm5122@4d {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm5122";
- + reg = <0x4d>;
- + clocks = <&dacpro_osc>;
- + AVDD-supply = <&vdd_3v3_reg>;
- + DVDD-supply = <&vdd_3v3_reg>;
- + CPVDD-supply = <&vdd_3v3_reg>;
- + status = "okay";
- + };
- + hpamp: hpamp@60 {
- + compatible = "ti,tpa6130a2";
- + reg = <0x60>;
- + status = "disabled";
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&sound>;
- + hifiberry_dacplus: __overlay__ {
- + compatible = "hifiberry,hifiberry-dacplus";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + 24db_digital_gain =
- + <&hifiberry_dacplus>,"hifiberry,24db_digital_gain?";
- + slave = <&hifiberry_dacplus>,"hifiberry-dacplus,slave?";
- + leds_off = <&hifiberry_dacplus>,"hifiberry-dacplus,leds_off?";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/hifiberry-dacplusadc-overlay.dts b/arch/arm/boot/dts/overlays/hifiberry-dacplusadc-overlay.dts
- new file mode 100644
- index 000000000000..540563dec10f
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/hifiberry-dacplusadc-overlay.dts
- @@ -0,0 +1,72 @@
- +// Definitions for HiFiBerry DAC+ADC
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + dacpro_osc: dacpro_osc {
- + compatible = "hifiberry,dacpro-clk";
- + #clock-cells = <0>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + pcm_codec: pcm5122@4d {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm5122";
- + reg = <0x4d>;
- + clocks = <&dacpro_osc>;
- + AVDD-supply = <&vdd_3v3_reg>;
- + DVDD-supply = <&vdd_3v3_reg>;
- + CPVDD-supply = <&vdd_3v3_reg>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@3 {
- + target-path = "/";
- + __overlay__ {
- + dmic {
- + #sound-dai-cells = <0>;
- + compatible = "dmic-codec";
- + num-channels = <2>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&sound>;
- + hifiberry_dacplusadc: __overlay__ {
- + compatible = "hifiberry,hifiberry-dacplusadc";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + 24db_digital_gain =
- + <&hifiberry_dacplusadc>,"hifiberry,24db_digital_gain?";
- + slave = <&hifiberry_dacplusadc>,"hifiberry-dacplusadc,slave?";
- + leds_off = <&hifiberry_dacplusadc>,"hifiberry-dacplusadc,leds_off?";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/hifiberry-dacplusadcpro-overlay.dts b/arch/arm/boot/dts/overlays/hifiberry-dacplusadcpro-overlay.dts
- new file mode 100644
- index 000000000000..cafa2ccd7ff7
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/hifiberry-dacplusadcpro-overlay.dts
- @@ -0,0 +1,65 @@
- +// Definitions for HiFiBerry DAC+ADC PRO
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + dacpro_osc: dacpro_osc {
- + compatible = "hifiberry,dacpro-clk";
- + #clock-cells = <0>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + hb_dac: pcm5122@4d {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm5122";
- + reg = <0x4d>;
- + clocks = <&dacpro_osc>;
- + status = "okay";
- + };
- + hb_adc: pcm186x@4a {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm1863";
- + reg = <0x4a>;
- + clocks = <&dacpro_osc>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&sound>;
- + hifiberry_dacplusadcpro: __overlay__ {
- + compatible = "hifiberry,hifiberry-dacplusadcpro";
- + audio-codec = <&hb_dac &hb_adc>;
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + 24db_digital_gain =
- + <&hifiberry_dacplusadcpro>,"hifiberry-dacplusadcpro,24db_digital_gain?";
- + slave = <&hifiberry_dacplusadcpro>,"hifiberry-dacplusadcpro,slave?";
- + leds_off = <&hifiberry_dacplusadcpro>,"hifiberry-dacplusadcpro,leds_off?";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/hifiberry-dacplusdsp-overlay.dts b/arch/arm/boot/dts/overlays/hifiberry-dacplusdsp-overlay.dts
- new file mode 100644
- index 000000000000..63432e8b983f
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/hifiberry-dacplusdsp-overlay.dts
- @@ -0,0 +1,34 @@
- +// Definitions for hifiberry DAC+DSP soundcard overlay
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + dacplusdsp-codec {
- + #sound-dai-cells = <0>;
- + compatible = "hifiberry,dacplusdsp";
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "hifiberrydacplusdsp,hifiberrydacplusdsp-soundcard";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/hifiberry-dacplushd-overlay.dts b/arch/arm/boot/dts/overlays/hifiberry-dacplushd-overlay.dts
- new file mode 100644
- index 000000000000..c5583e010339
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/hifiberry-dacplushd-overlay.dts
- @@ -0,0 +1,106 @@
- +// Definitions for HiFiBerry DAC+ HD
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/gpio/gpio.h>
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + dachd_osc: pll_dachd_osc {
- + compatible = "hifiberry,dachd-clk";
- + #clock-cells = <0>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + pcm1792a@4c {
- + compatible = "ti,pcm1792a";
- + #sound-dai-cells = <0>;
- + #clock-cells = <0>;
- + clocks = <&dachd_osc>;
- + reg = <0x4c>;
- + status = "okay";
- + };
- + pll: pll@62 {
- + compatible = "hifiberry,dachd-clk";
- + #clock-cells = <0>;
- + reg = <0x62>;
- + clocks = <&dachd_osc>;
- + status = "okay";
- + common_pll_regs = [
- + 02 53 03 00 07 20 0F 00
- + 10 0D 11 1D 12 0D 13 8C
- + 14 8C 15 8C 16 8C 17 8C
- + 18 2A 1C 00 1D 0F 1F 00
- + 2A 00 2C 00 2F 00 30 00
- + 31 00 32 00 34 00 37 00
- + 38 00 39 00 3A 00 3B 01
- + 3E 00 3F 00 40 00 41 00
- + 5A 00 5B 00 95 00 96 00
- + 97 00 98 00 99 00 9A 00
- + 9B 00 A2 00 A3 00 A4 00
- + B7 92 ];
- + 192k_pll_regs = [
- + 1A 0C 1B 35 1E F0 20 09
- + 21 50 2B 02 2D 10 2E 40
- + 33 01 35 22 36 80 3C 22
- + 3D 46 ];
- + 96k_pll_regs = [
- + 1A 0C 1B 35 1E F0 20 09
- + 21 50 2B 02 2D 10 2E 40
- + 33 01 35 47 36 00 3C 32
- + 3D 46 ];
- + 48k_pll_regs = [
- + 1A 0C 1B 35 1E F0 20 09
- + 21 50 2B 02 2D 10 2E 40
- + 33 01 35 90 36 00 3C 42
- + 3D 46 ];
- + 176k4_pll_regs = [
- + 1A 3D 1B 09 1E F3 20 13
- + 21 75 2B 04 2D 11 2E E0
- + 33 02 35 25 36 C0 3C 22
- + 3D 7A ];
- + 88k2_pll_regs = [
- + 1A 3D 1B 09 1E F3 20 13
- + 21 75 2B 04 2D 11 2E E0
- + 33 01 35 4D 36 80 3C 32
- + 3D 7A ];
- + 44k1_pll_regs = [
- + 1A 3D 1B 09 1E F3 20 13
- + 21 75 2B 04 2D 11 2E E0
- + 33 01 35 9D 36 00 3C 42
- + 3D 7A ];
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "hifiberry,hifiberry-dacplushd";
- + i2s-controller = <&i2s>;
- + clocks = <&pll 0>;
- + reset-gpio = <&gpio 16 GPIO_ACTIVE_LOW>;
- + status = "okay";
- + };
- + };
- +
- +};
- diff --git a/arch/arm/boot/dts/overlays/hifiberry-digi-overlay.dts b/arch/arm/boot/dts/overlays/hifiberry-digi-overlay.dts
- new file mode 100644
- index 000000000000..a2309a50e8d8
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/hifiberry-digi-overlay.dts
- @@ -0,0 +1,41 @@
- +// Definitions for HiFiBerry Digi
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + wm8804@3b {
- + #sound-dai-cells = <0>;
- + compatible = "wlf,wm8804";
- + reg = <0x3b>;
- + PVDD-supply = <&vdd_3v3_reg>;
- + DVDD-supply = <&vdd_3v3_reg>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "hifiberry,hifiberry-digi";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/hifiberry-digi-pro-overlay.dts b/arch/arm/boot/dts/overlays/hifiberry-digi-pro-overlay.dts
- new file mode 100644
- index 000000000000..83de602e76ba
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/hifiberry-digi-pro-overlay.dts
- @@ -0,0 +1,43 @@
- +// Definitions for HiFiBerry Digi Pro
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + wm8804@3b {
- + #sound-dai-cells = <0>;
- + compatible = "wlf,wm8804";
- + reg = <0x3b>;
- + PVDD-supply = <&vdd_3v3_reg>;
- + DVDD-supply = <&vdd_3v3_reg>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "hifiberry,hifiberry-digi";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + clock44-gpio = <&gpio 5 0>;
- + clock48-gpio = <&gpio 6 0>;
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/highperi-overlay.dts b/arch/arm/boot/dts/overlays/highperi-overlay.dts
- new file mode 100644
- index 000000000000..46cb76c2d34f
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/highperi-overlay.dts
- @@ -0,0 +1,63 @@
- +/*
- + * highperi.dts
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2711";
- +
- + fragment@0 {
- + target = <&soc>;
- + #address-cells = <2>;
- + #size-cells = <1>;
- +
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <1>;
- + ranges = <0x7c000000 0x4 0x7c000000 0x04000000>,
- + <0x40000000 0x4 0xc0000000 0x00800000>;
- + };
- + };
- +
- + fragment@1 {
- + target = <&scb>;
- + #address-cells = <2>;
- + #size-cells = <1>;
- +
- + __overlay__ {
- + #address-cells = <2>;
- + #size-cells = <2>;
- + ranges = <0x0 0x7c000000 0x4 0x7c000000 0x0 0x04000000>,
- + <0x0 0x40000000 0x4 0xc0000000 0x0 0x00800000>,
- + <0x6 0x00000000 0x6 0x00000000 0x0 0x40000000>;
- + dma-ranges = <0x0 0x00000000 0x0 0x00000000 0x2 0x00000000>;
- + };
- + };
- +
- + fragment@2 {
- + target = <&v3dbus>;
- + #address-cells = <2>;
- + #size-cells = <1>;
- +
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <2>;
- + ranges = <0x7c500000 0x4 0x7c500000 0x0 0x03300000>,
- + <0x40000000 0x4 0xc0000000 0x0 0x00800000>;
- + };
- + };
- +
- + fragment@3 {
- + target = <&emmc2bus>;
- + #address-cells = <2>;
- + #size-cells = <1>;
- +
- + __overlay__ {
- + #address-cells = <2>;
- + #size-cells = <1>;
- + ranges = <0x0 0x7e000000 0x4 0x7e000000 0x01800000>;
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/hy28a-overlay.dts b/arch/arm/boot/dts/overlays/hy28a-overlay.dts
- new file mode 100644
- index 000000000000..5843a5e9c86a
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/hy28a-overlay.dts
- @@ -0,0 +1,93 @@
- +/*
- + * Device Tree overlay for HY28A display
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&spidev1>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target = <&gpio>;
- + __overlay__ {
- + hy28a_pins: hy28a_pins {
- + brcm,pins = <17 25 18>;
- + brcm,function = <0 1 1>; /* in out out */
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + hy28a: hy28a@0{
- + compatible = "ilitek,ili9320";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&hy28a_pins>;
- +
- + spi-max-frequency = <32000000>;
- + spi-cpol;
- + spi-cpha;
- + rotate = <270>;
- + bgr;
- + fps = <50>;
- + buswidth = <8>;
- + startbyte = <0x70>;
- + reset-gpios = <&gpio 25 1>;
- + led-gpios = <&gpio 18 1>;
- + debug = <0>;
- + };
- +
- + hy28a_ts: hy28a-ts@1 {
- + compatible = "ti,ads7846";
- + reg = <1>;
- +
- + spi-max-frequency = <2000000>;
- + interrupts = <17 2>; /* high-to-low edge triggered */
- + interrupt-parent = <&gpio>;
- + pendown-gpio = <&gpio 17 0>;
- + ti,x-plate-ohms = /bits/ 16 <100>;
- + ti,pressure-max = /bits/ 16 <255>;
- + };
- + };
- + };
- + __overrides__ {
- + speed = <&hy28a>,"spi-max-frequency:0";
- + rotate = <&hy28a>,"rotate:0";
- + fps = <&hy28a>,"fps:0";
- + debug = <&hy28a>,"debug:0";
- + xohms = <&hy28a_ts>,"ti,x-plate-ohms;0";
- + resetgpio = <&hy28a>,"reset-gpios:4",
- + <&hy28a_pins>, "brcm,pins:4";
- + ledgpio = <&hy28a>,"led-gpios:4",
- + <&hy28a_pins>, "brcm,pins:8";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/hy28b-2017-overlay.dts b/arch/arm/boot/dts/overlays/hy28b-2017-overlay.dts
- new file mode 100644
- index 000000000000..95bfb1eadc20
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/hy28b-2017-overlay.dts
- @@ -0,0 +1,152 @@
- +/*
- + * Device Tree overlay for HY28b display shield by Texy.
- + * Modified for 2017 version with ILI9325 D chip
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&spidev1>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target = <&gpio>;
- + __overlay__ {
- + hy28b_pins: hy28b_pins {
- + brcm,pins = <17 25 18>;
- + brcm,function = <0 1 1>; /* in out out */
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + hy28b: hy28b@0{
- + compatible = "ilitek,ili9325";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&hy28b_pins>;
- +
- + spi-max-frequency = <48000000>;
- + spi-cpol;
- + spi-cpha;
- + rotate = <270>;
- + bgr;
- + fps = <50>;
- + buswidth = <8>;
- + startbyte = <0x70>;
- + reset-gpios = <&gpio 25 1>;
- + led-gpios = <&gpio 18 1>;
- +
- + init = <0x10000e5 0x78F0
- + 0x1000001 0x0100
- + 0x1000002 0x0700
- + 0x1000003 0x1030
- + 0x1000004 0x0000
- + 0x1000008 0x0207
- + 0x1000009 0x0000
- + 0x100000a 0x0000
- + 0x100000c 0x0000
- + 0x100000d 0x0000
- + 0x100000f 0x0000
- + 0x1000010 0x0000
- + 0x1000011 0x0007
- + 0x1000012 0x0000
- + 0x1000013 0x0000
- + 0x1000007 0x0001
- + 0x2000032
- + 0x2000032
- + 0x2000032
- + 0x2000032
- + 0x1000010 0x1090
- + 0x1000011 0x0227
- + 0x2000032
- + 0x1000012 0x001f
- + 0x2000032
- + 0x1000013 0x1500
- + 0x1000029 0x0027
- + 0x100002b 0x000d
- + 0x2000032
- + 0x1000020 0x0000
- + 0x1000021 0x0000
- + 0x2000032
- + 0x1000030 0x0000
- + 0x1000031 0x0707
- + 0x1000032 0x0307
- + 0x1000035 0x0200
- + 0x1000036 0x0008
- + 0x1000037 0x0004
- + 0x1000038 0x0000
- + 0x1000039 0x0707
- + 0x100003c 0x0002
- + 0x100003d 0x1d04
- + 0x1000050 0x0000
- + 0x1000051 0x00ef
- + 0x1000052 0x0000
- + 0x1000053 0x013f
- + 0x1000060 0xa700
- + 0x1000061 0x0001
- + 0x100006a 0x0000
- + 0x1000080 0x0000
- + 0x1000081 0x0000
- + 0x1000082 0x0000
- + 0x1000083 0x0000
- + 0x1000084 0x0000
- + 0x1000085 0x0000
- + 0x1000090 0x0010
- + 0x1000092 0x0600
- + 0x1000007 0x0133>;
- + debug = <0>;
- + };
- +
- + hy28b_ts: hy28b-ts@1 {
- + compatible = "ti,ads7846";
- + reg = <1>;
- +
- + spi-max-frequency = <2000000>;
- + interrupts = <17 2>; /* high-to-low edge triggered */
- + interrupt-parent = <&gpio>;
- + pendown-gpio = <&gpio 17 0>;
- + ti,x-plate-ohms = /bits/ 16 <100>;
- + ti,pressure-max = /bits/ 16 <255>;
- + };
- + };
- + };
- + __overrides__ {
- + speed = <&hy28b>,"spi-max-frequency:0";
- + rotate = <&hy28b>,"rotate:0";
- + fps = <&hy28b>,"fps:0";
- + debug = <&hy28b>,"debug:0";
- + xohms = <&hy28b_ts>,"ti,x-plate-ohms;0";
- + resetgpio = <&hy28b>,"reset-gpios:4",
- + <&hy28b_pins>, "brcm,pins:4";
- + ledgpio = <&hy28b>,"led-gpios:4",
- + <&hy28b_pins>, "brcm,pins:8";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/hy28b-overlay.dts b/arch/arm/boot/dts/overlays/hy28b-overlay.dts
- new file mode 100644
- index 000000000000..9edd0848d555
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/hy28b-overlay.dts
- @@ -0,0 +1,148 @@
- +/*
- + * Device Tree overlay for HY28b display shield by Texy
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&spidev1>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target = <&gpio>;
- + __overlay__ {
- + hy28b_pins: hy28b_pins {
- + brcm,pins = <17 25 18>;
- + brcm,function = <0 1 1>; /* in out out */
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + hy28b: hy28b@0{
- + compatible = "ilitek,ili9325";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&hy28b_pins>;
- +
- + spi-max-frequency = <48000000>;
- + spi-cpol;
- + spi-cpha;
- + rotate = <270>;
- + bgr;
- + fps = <50>;
- + buswidth = <8>;
- + startbyte = <0x70>;
- + reset-gpios = <&gpio 25 1>;
- + led-gpios = <&gpio 18 1>;
- +
- + gamma = "04 1F 4 7 7 0 7 7 6 0\n0F 00 1 7 4 0 0 0 6 7";
- +
- + init = <0x10000e7 0x0010
- + 0x1000000 0x0001
- + 0x1000001 0x0100
- + 0x1000002 0x0700
- + 0x1000003 0x1030
- + 0x1000004 0x0000
- + 0x1000008 0x0207
- + 0x1000009 0x0000
- + 0x100000a 0x0000
- + 0x100000c 0x0001
- + 0x100000d 0x0000
- + 0x100000f 0x0000
- + 0x1000010 0x0000
- + 0x1000011 0x0007
- + 0x1000012 0x0000
- + 0x1000013 0x0000
- + 0x2000032
- + 0x1000010 0x1590
- + 0x1000011 0x0227
- + 0x2000032
- + 0x1000012 0x009c
- + 0x2000032
- + 0x1000013 0x1900
- + 0x1000029 0x0023
- + 0x100002b 0x000e
- + 0x2000032
- + 0x1000020 0x0000
- + 0x1000021 0x0000
- + 0x2000032
- + 0x1000050 0x0000
- + 0x1000051 0x00ef
- + 0x1000052 0x0000
- + 0x1000053 0x013f
- + 0x1000060 0xa700
- + 0x1000061 0x0001
- + 0x100006a 0x0000
- + 0x1000080 0x0000
- + 0x1000081 0x0000
- + 0x1000082 0x0000
- + 0x1000083 0x0000
- + 0x1000084 0x0000
- + 0x1000085 0x0000
- + 0x1000090 0x0010
- + 0x1000092 0x0000
- + 0x1000093 0x0003
- + 0x1000095 0x0110
- + 0x1000097 0x0000
- + 0x1000098 0x0000
- + 0x1000007 0x0133
- + 0x1000020 0x0000
- + 0x1000021 0x0000
- + 0x2000064>;
- + debug = <0>;
- + };
- +
- + hy28b_ts: hy28b-ts@1 {
- + compatible = "ti,ads7846";
- + reg = <1>;
- +
- + spi-max-frequency = <2000000>;
- + interrupts = <17 2>; /* high-to-low edge triggered */
- + interrupt-parent = <&gpio>;
- + pendown-gpio = <&gpio 17 0>;
- + ti,x-plate-ohms = /bits/ 16 <100>;
- + ti,pressure-max = /bits/ 16 <255>;
- + };
- + };
- + };
- + __overrides__ {
- + speed = <&hy28b>,"spi-max-frequency:0";
- + rotate = <&hy28b>,"rotate:0";
- + fps = <&hy28b>,"fps:0";
- + debug = <&hy28b>,"debug:0";
- + xohms = <&hy28b_ts>,"ti,x-plate-ohms;0";
- + resetgpio = <&hy28b>,"reset-gpios:4",
- + <&hy28b_pins>, "brcm,pins:4";
- + ledgpio = <&hy28b>,"led-gpios:4",
- + <&hy28b_pins>, "brcm,pins:8";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/i-sabre-q2m-overlay.dts b/arch/arm/boot/dts/overlays/i-sabre-q2m-overlay.dts
- new file mode 100644
- index 000000000000..0c4cff354674
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/i-sabre-q2m-overlay.dts
- @@ -0,0 +1,39 @@
- +// Definitions for I-Sabre Q2M
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&sound>;
- + frag0: __overlay__ {
- + compatible = "audiophonics,i-sabre-q2m";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + i-sabre-codec@48 {
- + #sound-dai-cells = <0>;
- + compatible = "audiophonics,i-sabre-codec";
- + reg = <0x48>;
- + status = "okay";
- + };
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/i2c-bcm2708-overlay.dts b/arch/arm/boot/dts/overlays/i2c-bcm2708-overlay.dts
- new file mode 100644
- index 000000000000..8204b6b3aef8
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/i2c-bcm2708-overlay.dts
- @@ -0,0 +1,13 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c_arm>;
- + __overlay__ {
- + compatible = "brcm,bcm2708-i2c";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts b/arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts
- new file mode 100644
- index 000000000000..63231b5d7c0c
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts
- @@ -0,0 +1,47 @@
- +// Overlay for i2c_gpio bitbanging host bus.
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/gpio/gpio.h>
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- +
- + __overlay__ {
- + i2c_gpio: i2c@0 {
- + reg = <0xffffffff>;
- + compatible = "i2c-gpio";
- + gpios = <&gpio 23 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) /* sda */
- + &gpio 24 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) /* scl */
- + >;
- + i2c-gpio,delay-us = <2>; /* ~100 kHz */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target-path = "/aliases";
- + __overlay__ {
- + i2c_gpio = "/i2c@0";
- + };
- + };
- +
- + fragment@2 {
- + target-path = "/__symbols__";
- + __overlay__ {
- + i2c_gpio = "/i2c@0";
- + };
- + };
- +
- + __overrides__ {
- + i2c_gpio_sda = <&i2c_gpio>,"gpios:4";
- + i2c_gpio_scl = <&i2c_gpio>,"gpios:16";
- + i2c_gpio_delay_us = <&i2c_gpio>,"i2c-gpio,delay-us:0";
- + bus = <&i2c_gpio>, "reg:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/i2c-mux-overlay.dts b/arch/arm/boot/dts/overlays/i2c-mux-overlay.dts
- new file mode 100644
- index 000000000000..112aed91ecb2
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/i2c-mux-overlay.dts
- @@ -0,0 +1,139 @@
- +// Umbrella I2C Mux overlay
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + pca9542: mux@70 {
- + compatible = "nxp,pca9542";
- + reg = <0x70>;
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + i2c@0 {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + reg = <0>;
- + };
- + i2c@1 {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + reg = <1>;
- + };
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + pca9545: mux@70 {
- + compatible = "nxp,pca9545";
- + reg = <0x70>;
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + i2c@0 {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + reg = <0>;
- + };
- + i2c@1 {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + reg = <1>;
- + };
- + i2c@2 {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + reg = <2>;
- + };
- + i2c@3 {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + reg = <3>;
- + };
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + pca9548: mux@70 {
- + compatible = "nxp,pca9548";
- + reg = <0x70>;
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + i2c@0 {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + reg = <0>;
- + };
- + i2c@1 {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + reg = <1>;
- + };
- + i2c@2 {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + reg = <2>;
- + };
- + i2c@3 {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + reg = <3>;
- + };
- + i2c@4 {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + reg = <4>;
- + };
- + i2c@5 {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + reg = <5>;
- + };
- + i2c@6 {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + reg = <6>;
- + };
- + i2c@7 {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + reg = <7>;
- + };
- + };
- + };
- + };
- +
- + __overrides__ {
- + pca9542 = <0>, "+0";
- + pca9545 = <0>, "+1";
- + pca9548 = <0>, "+2";
- +
- + addr = <&pca9542>,"reg:0",
- + <&pca9545>,"reg:0",
- + <&pca9548>,"reg:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/i2c-pwm-pca9685a-overlay.dts b/arch/arm/boot/dts/overlays/i2c-pwm-pca9685a-overlay.dts
- new file mode 100644
- index 000000000000..9bb16465a50e
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/i2c-pwm-pca9685a-overlay.dts
- @@ -0,0 +1,26 @@
- +// Definitions for NXP PCA9685A I2C PWM controller on ARM I2C bus.
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c_arm>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + pca: pca@40 {
- + compatible = "nxp,pca9685-pwm";
- + #pwm-cells = <2>;
- + reg = <0x40>;
- + status = "okay";
- + };
- + };
- + };
- + __overrides__ {
- + addr = <&pca>,"reg:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/i2c-rtc-common.dtsi b/arch/arm/boot/dts/overlays/i2c-rtc-common.dtsi
- new file mode 100644
- index 000000000000..7f749fc2d802
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/i2c-rtc-common.dtsi
- @@ -0,0 +1,323 @@
- +// Definitions for several I2C based Real Time Clocks
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2cbus>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + abx80x: abx80x@69 {
- + compatible = "abracon,abx80x";
- + reg = <0x69>;
- + abracon,tc-diode = "standard";
- + abracon,tc-resistor = <0>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2cbus>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + ds1307: ds1307@68 {
- + compatible = "dallas,ds1307";
- + reg = <0x68>;
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2cbus>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + ds1339: ds1339@68 {
- + compatible = "dallas,ds1339";
- + trickle-resistor-ohms = <0>;
- + reg = <0x68>;
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&i2cbus>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + ds3231: ds3231@68 {
- + compatible = "maxim,ds3231";
- + reg = <0x68>;
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&i2cbus>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + mcp7940x: mcp7940x@6f {
- + compatible = "microchip,mcp7940x";
- + reg = <0x6f>;
- + };
- + };
- + };
- +
- + fragment@5 {
- + target = <&i2cbus>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + mcp7941x: mcp7941x@6f {
- + compatible = "microchip,mcp7941x";
- + reg = <0x6f>;
- + };
- + };
- + };
- +
- + fragment@6 {
- + target = <&i2cbus>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + pcf2127@51 {
- + compatible = "nxp,pcf2127";
- + reg = <0x51>;
- + };
- + };
- + };
- +
- + fragment@7 {
- + target = <&i2cbus>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + pcf8523: pcf8523@68 {
- + compatible = "nxp,pcf8523";
- + reg = <0x68>;
- + };
- + };
- + };
- +
- + fragment@8 {
- + target = <&i2cbus>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + pcf8563: pcf8563@51 {
- + compatible = "nxp,pcf8563";
- + reg = <0x51>;
- + };
- + };
- + };
- +
- + fragment@9 {
- + target = <&i2cbus>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + m41t62: m41t62@68 {
- + compatible = "st,m41t62";
- + reg = <0x68>;
- + };
- + };
- + };
- +
- + fragment@10 {
- + target = <&i2cbus>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + rv3028: rv3028@52 {
- + compatible = "microcrystal,rv3028";
- + reg = <0x52>;
- + };
- + };
- + };
- +
- + fragment@11 {
- + target = <&i2cbus>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + pcf2129@51 {
- + compatible = "nxp,pcf2129";
- + reg = <0x51>;
- + };
- + };
- + };
- +
- + fragment@12 {
- + target = <&i2cbus>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + pcf85363@51 {
- + compatible = "nxp,pcf85363";
- + reg = <0x51>;
- + };
- + };
- + };
- +
- + fragment@13 {
- + target = <&i2cbus>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + rv1805: rv1805@69 {
- + compatible = "microcrystal,rv1805";
- + reg = <0x69>;
- + abracon,tc-diode = "standard";
- + abracon,tc-resistor = <0>;
- + };
- + };
- + };
- +
- + fragment@14 {
- + target = <&i2cbus>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sd3078: sd3078@32 {
- + compatible = "whwave,sd3078";
- + reg = <0x32>;
- + };
- + };
- + };
- +
- + fragment@15 {
- + target = <&i2cbus>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + pcf85063@51 {
- + compatible = "nxp,pcf85063";
- + reg = <0x51>;
- + };
- + };
- + };
- +
- + fragment@16 {
- + target = <&i2cbus>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + pcf85063a@51 {
- + compatible = "nxp,pcf85063a";
- + reg = <0x51>;
- + };
- + };
- + };
- +
- + fragment@17 {
- + target = <&i2cbus>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + ds1340: ds1340@68 {
- + compatible = "dallas,ds1340";
- + trickle-resistor-ohms = <0>;
- + reg = <0x68>;
- + };
- + };
- + };
- +
- + fragment@18 {
- + target = <&i2cbus>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + s35390a: s35390a@30 {
- + compatible = "ablic,s35390a";
- + reg = <0x30>;
- + };
- + };
- + };
- +
- + fragment@19 {
- + target = <&i2cbus>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + bq32000: bq32000@68 {
- + compatible = "ti,bq32000";
- + trickle-resistor-ohms = <0>;
- + reg = <0x68>;
- + };
- + };
- + };
- +
- +
- + __overrides__ {
- + abx80x = <0>,"+0";
- + ds1307 = <0>,"+1";
- + ds1339 = <0>,"+2";
- + ds1340 = <0>,"+17";
- + ds3231 = <0>,"+3";
- + mcp7940x = <0>,"+4";
- + mcp7941x = <0>,"+5";
- + pcf2127 = <0>,"+6";
- + pcf8523 = <0>,"+7";
- + pcf8563 = <0>,"+8";
- + m41t62 = <0>,"+9";
- + rv3028 = <0>,"+10";
- + pcf2129 = <0>,"+11";
- + pcf85363 = <0>,"+12";
- + rv1805 = <0>,"+13";
- + sd3078 = <0>,"+14";
- + pcf85063 = <0>,"+15";
- + pcf85063a = <0>,"+16";
- + s35390a = <0>,"+18";
- + bq32000 = <0>,"+19";
- +
- + addr = <&abx80x>, "reg:0",
- + <&ds1307>, "reg:0",
- + <&ds1339>, "reg:0",
- + <&ds3231>, "reg:0",
- + <&mcp7940x>, "reg:0",
- + <&mcp7941x>, "reg:0",
- + <&pcf8523>, "reg:0",
- + <&pcf8563>, "reg:0",
- + <&m41t62>, "reg:0",
- + <&rv1805>, "reg:0",
- + <&s35390a>, "reg:0";
- + trickle-diode-disable = <&bq32000>,"trickle-diode-disable?";
- + trickle-diode-type = <&abx80x>,"abracon,tc-diode",
- + <&rv1805>,"abracon,tc-diode";
- + trickle-resistor-ohms = <&ds1339>,"trickle-resistor-ohms:0",
- + <&ds1340>,"trickle-resistor-ohms:0",
- + <&abx80x>,"abracon,tc-resistor:0",
- + <&rv3028>,"trickle-resistor-ohms:0",
- + <&rv1805>,"abracon,tc-resistor:0",
- + <&bq32000>,"abracon,tc-resistor:0";
- + backup-switchover-mode = <&rv3028>,"backup-switchover-mode:0";
- + wakeup-source = <&ds1339>,"wakeup-source?",
- + <&ds3231>,"wakeup-source?",
- + <&mcp7940x>,"wakeup-source?",
- + <&mcp7941x>,"wakeup-source?",
- + <&m41t62>,"wakeup-source?";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/i2c-rtc-gpio-overlay.dts b/arch/arm/boot/dts/overlays/i2c-rtc-gpio-overlay.dts
- new file mode 100644
- index 000000000000..c83480c1c327
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/i2c-rtc-gpio-overlay.dts
- @@ -0,0 +1,31 @@
- +// Definitions for several I2C based Real Time Clocks
- +// Available through i2c-gpio
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/gpio/gpio.h>
- +
- +#include "i2c-rtc-common.dtsi"
- +
- +/ {
- + fragment@100 {
- + target-path = "/";
- + __overlay__ {
- + i2cbus: i2c-gpio-rtc@0 {
- + compatible = "i2c-gpio";
- + gpios = <&gpio 23 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) /* sda */
- + &gpio 24 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) /* scl */
- + >;
- + i2c-gpio,delay-us = <2>; /* ~100 kHz */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + i2c_gpio_sda = <&i2cbus>,"gpios:4";
- + i2c_gpio_scl = <&i2cbus>,"gpios:16";
- + i2c_gpio_delay_us = <&i2cbus>,"i2c-gpio,delay-us:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts b/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
- new file mode 100644
- index 000000000000..1eae9e1a5c96
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
- @@ -0,0 +1,34 @@
- +// Definitions for several I2C based Real Time Clocks
- +/dts-v1/;
- +/plugin/;
- +
- +#include "i2c-rtc-common.dtsi"
- +
- +/ {
- + frag100: fragment@100 {
- + target = <&i2c_arm>;
- + i2cbus: __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@101 {
- + target = <&i2c0if>;
- + __dormant__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@102 {
- + target = <&i2c0mux>;
- + __dormant__ {
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + i2c0 = <&frag100>, "target:0=",<&i2c0>;
- + i2c_csi_dsi = <&frag100>, "target:0=",<&i2c_csi_dsi>,
- + <0>,"+101+102";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts b/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
- new file mode 100755
- index 000000000000..b05b0fa91942
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
- @@ -0,0 +1,320 @@
- +// Definitions for I2C based sensors using the Industrial IO or HWMON interface.
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + bme280: bme280@76 {
- + compatible = "bosch,bme280";
- + reg = <0x76>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + bmp085: bmp085@77 {
- + compatible = "bosch,bmp085";
- + reg = <0x77>;
- + default-oversampling = <3>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + bmp180: bmp180@77 {
- + compatible = "bosch,bmp180";
- + reg = <0x77>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + bmp280: bmp280@76 {
- + compatible = "bosch,bmp280";
- + reg = <0x76>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + htu21: htu21@40 {
- + compatible = "htu21";
- + reg = <0x40>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@5 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + lm75: lm75@4f {
- + compatible = "lm75";
- + reg = <0x4f>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@6 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + si7020: si7020@40 {
- + compatible = "si7020";
- + reg = <0x40>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@7 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + tmp102: tmp102@48 {
- + compatible = "ti,tmp102";
- + reg = <0x48>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@8 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + hdc100x: hdc100x@40 {
- + compatible = "hdc100x";
- + reg = <0x40>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@9 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + tsl4531: tsl4531@29 {
- + compatible = "tsl4531";
- + reg = <0x29>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@10 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + veml6070: veml6070@38 {
- + compatible = "veml6070";
- + reg = <0x38>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@11 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + sht3x: sht3x@44 {
- + compatible = "sht3x";
- + reg = <0x44>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@12 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + ds1621: ds1621@48 {
- + compatible = "ds1621";
- + reg = <0x48>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@13 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + max17040: max17040@36 {
- + compatible = "maxim,max17040";
- + reg = <0x36>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@14 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + bme680: bme680@76 {
- + compatible = "bosch,bme680";
- + reg = <0x76>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@15 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + sps30: sps30@69 {
- + compatible = "sensirion,sps30";
- + reg = <0x69>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@16 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + sgp30: sgp30@58 {
- + compatible = "sensirion,sgp30";
- + reg = <0x58>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@17 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + ccs811: ccs811@5b {
- + compatible = "ccs811";
- + reg = <0x5b>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@18 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + bh1750: bh1750@23 {
- + compatible = "bh1750";
- + reg = <0x23>;
- + status = "okay";
- + };
- + };
- + };
- +
- + __overrides__ {
- + addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
- + <&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
- + <&ds1621>,"reg:0", <&bme680>,"reg:0", <&ccs811>,"reg:0",
- + <&bh1750>,"reg:0";
- + bme280 = <0>,"+0";
- + bmp085 = <0>,"+1";
- + bmp180 = <0>,"+2";
- + bmp280 = <0>,"+3";
- + htu21 = <0>,"+4";
- + lm75 = <0>,"+5";
- + lm75addr = <&lm75>,"reg:0";
- + si7020 = <0>,"+6";
- + tmp102 = <0>,"+7";
- + hdc100x = <0>,"+8";
- + tsl4531 = <0>,"+9";
- + veml6070 = <0>,"+10";
- + sht3x = <0>,"+11";
- + ds1621 = <0>,"+12";
- + max17040 = <0>,"+13";
- + bme680 = <0>,"+14";
- + sps30 = <0>,"+15";
- + sgp30 = <0>,"+16";
- + ccs811 = <0>, "+17";
- + bh1750 = <0>, "+18";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/i2c0-overlay.dts b/arch/arm/boot/dts/overlays/i2c0-overlay.dts
- new file mode 100644
- index 000000000000..46bf1bf2dc5c
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/i2c0-overlay.dts
- @@ -0,0 +1,83 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c0if>;
- + __overlay__ {
- + status = "okay";
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c0_pins>;
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c0_pins>;
- + pins1: __overlay__ {
- + brcm,pins = <0 1>;
- + brcm,function = <4>; /* alt0 */
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c0_pins>;
- + pins2: __dormant__ {
- + brcm,pins = <28 29>;
- + brcm,function = <4>; /* alt0 */
- + };
- + };
- +
- + fragment@3 {
- + target = <&i2c0_pins>;
- + pins3: __dormant__ {
- + brcm,pins = <44 45>;
- + brcm,function = <5>; /* alt1 */
- + };
- + };
- +
- + fragment@4 {
- + target = <&i2c0_pins>;
- + pins4: __dormant__ {
- + brcm,pins = <46 47>;
- + brcm,function = <4>; /* alt0 */
- + };
- + };
- +
- + fragment@5 {
- + target = <&i2c0>;
- + __dormant__ {
- + compatible = "brcm,bcm2708-i2c";
- + };
- + };
- +
- + fragment@6 {
- + target = <&i2c0mux>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@7 {
- + target-path = "/aliases";
- + __overlay__ {
- + i2c0 = "/soc/i2c@7e205000";
- + };
- + };
- +
- + fragment@8 {
- + target-path = "/__symbols__";
- + __overlay__ {
- + i2c0 = "/soc/i2c@7e205000";
- + };
- + };
- +
- + __overrides__ {
- + pins_0_1 = <0>,"+1-2-3-4";
- + pins_28_29 = <0>,"-1+2-3-4";
- + pins_44_45 = <0>,"-1-2+3-4";
- + pins_46_47 = <0>,"-1-2-3+4";
- + combine = <0>, "!5";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/i2c1-overlay.dts b/arch/arm/boot/dts/overlays/i2c1-overlay.dts
- new file mode 100644
- index 000000000000..addaed73e665
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/i2c1-overlay.dts
- @@ -0,0 +1,44 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c1>;
- + __overlay__ {
- + status = "okay";
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins>;
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1_pins>;
- + pins1: __overlay__ {
- + brcm,pins = <2 3>;
- + brcm,function = <4>; /* alt 0 */
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c1_pins>;
- + pins2: __dormant__ {
- + brcm,pins = <44 45>;
- + brcm,function = <6>; /* alt 2 */
- + };
- + };
- +
- + fragment@3 {
- + target = <&i2c1>;
- + __dormant__ {
- + compatible = "brcm,bcm2708-i2c";
- + };
- + };
- +
- + __overrides__ {
- + pins_2_3 = <0>,"=1!2";
- + pins_44_45 = <0>,"!1=2";
- + combine = <0>, "!3";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/i2c3-overlay.dts b/arch/arm/boot/dts/overlays/i2c3-overlay.dts
- new file mode 100644
- index 000000000000..e24a1df21f99
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/i2c3-overlay.dts
- @@ -0,0 +1,36 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2711";
- +
- + fragment@0 {
- + target = <&i2c3>;
- + frag0: __overlay__ {
- + status = "okay";
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c3_pins>;
- + clock-frequency = <100000>;
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c3_pins>;
- + __dormant__ {
- + brcm,pins = <2 3>;
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c3_pins>;
- + __overlay__ {
- + brcm,pins = <4 5>;
- + };
- + };
- +
- + __overrides__ {
- + pins_2_3 = <0>,"=1!2";
- + pins_4_5 = <0>,"!1=2";
- + baudrate = <&frag0>, "clock-frequency:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/i2c4-overlay.dts b/arch/arm/boot/dts/overlays/i2c4-overlay.dts
- new file mode 100644
- index 000000000000..14c7f4d1da4c
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/i2c4-overlay.dts
- @@ -0,0 +1,36 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2711";
- +
- + fragment@0 {
- + target = <&i2c4>;
- + frag0: __overlay__ {
- + status = "okay";
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c4_pins>;
- + clock-frequency = <100000>;
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c4_pins>;
- + __dormant__ {
- + brcm,pins = <6 7>;
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c4_pins>;
- + __overlay__ {
- + brcm,pins = <8 9>;
- + };
- + };
- +
- + __overrides__ {
- + pins_6_7 = <0>,"=1!2";
- + pins_8_9 = <0>,"!1=2";
- + baudrate = <&frag0>, "clock-frequency:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/i2c5-overlay.dts b/arch/arm/boot/dts/overlays/i2c5-overlay.dts
- new file mode 100644
- index 000000000000..7953621112de
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/i2c5-overlay.dts
- @@ -0,0 +1,36 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2711";
- +
- + fragment@0 {
- + target = <&i2c5>;
- + frag0: __overlay__ {
- + status = "okay";
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c5_pins>;
- + clock-frequency = <100000>;
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c5_pins>;
- + __dormant__ {
- + brcm,pins = <10 11>;
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c5_pins>;
- + __overlay__ {
- + brcm,pins = <12 13>;
- + };
- + };
- +
- + __overrides__ {
- + pins_10_11 = <0>,"=1!2";
- + pins_12_13 = <0>,"!1=2";
- + baudrate = <&frag0>, "clock-frequency:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/i2c6-overlay.dts b/arch/arm/boot/dts/overlays/i2c6-overlay.dts
- new file mode 100644
- index 000000000000..555305a7ee1f
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/i2c6-overlay.dts
- @@ -0,0 +1,36 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2711";
- +
- + fragment@0 {
- + target = <&i2c6>;
- + frag0: __overlay__ {
- + status = "okay";
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c6_pins>;
- + clock-frequency = <100000>;
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c6_pins>;
- + __dormant__ {
- + brcm,pins = <0 1>;
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c6_pins>;
- + __overlay__ {
- + brcm,pins = <22 23>;
- + };
- + };
- +
- + __overrides__ {
- + pins_0_1 = <0>,"=1!2";
- + pins_22_23 = <0>,"!1=2";
- + baudrate = <&frag0>, "clock-frequency:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/i2s-gpio28-31-overlay.dts b/arch/arm/boot/dts/overlays/i2s-gpio28-31-overlay.dts
- new file mode 100644
- index 000000000000..cf43094c6ff4
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/i2s-gpio28-31-overlay.dts
- @@ -0,0 +1,18 @@
- +/*
- + * Device tree overlay to move i2s to gpio 28 to 31 on CM
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s_pins>;
- + __overlay__ {
- + brcm,pins = <28 29 30 31>;
- + brcm,function = <6>; /* alt2 */
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/ilitek251x-overlay.dts b/arch/arm/boot/dts/overlays/ilitek251x-overlay.dts
- new file mode 100644
- index 000000000000..551aba591d26
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/ilitek251x-overlay.dts
- @@ -0,0 +1,45 @@
- +// Device tree overlay for I2C connected Ilitek multiple touch controller
- +/dts-v1/;
- +/plugin/;
- +
- + / {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&gpio>;
- + __overlay__ {
- + ili251x_pins: ili251x_pins {
- + brcm,pins = <4>; // interrupt
- + brcm,function = <0>; // in
- + brcm,pull = <2>; // pull-up //
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + ili251x: ili251x@41 {
- + compatible = "ilitek,ili251x";
- + reg = <0x41>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&ili251x_pins>;
- + interrupt-parent = <&gpio>;
- + interrupts = <4 8>; // high-to-low edge triggered
- + touchscreen-size-x = <16384>;
- + touchscreen-size-y = <9600>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + interrupt = <&ili251x_pins>,"brcm,pins:0",
- + <&ili251x>,"interrupts:0";
- + sizex = <&ili251x>,"touchscreen-size-x:0";
- + sizey = <&ili251x>,"touchscreen-size-y:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/imx219-overlay.dts b/arch/arm/boot/dts/overlays/imx219-overlay.dts
- new file mode 100644
- index 000000000000..0c065bf09f54
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/imx219-overlay.dts
- @@ -0,0 +1,115 @@
- +// SPDX-License-Identifier: GPL-2.0-only
- +// Definitions for IMX219 camera module on VC I2C bus
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/gpio/gpio.h>
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c_csi_dsi>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + imx219: imx219@10 {
- + compatible = "sony,imx219";
- + reg = <0x10>;
- + status = "okay";
- +
- + clocks = <&imx219_clk>;
- + clock-names = "xclk";
- +
- + VANA-supply = <&cam1_reg>; /* 2.8v */
- + VDIG-supply = <&imx219_vdig>; /* 1.8v */
- + VDDL-supply = <&imx219_vddl>; /* 1.2v */
- +
- + rotation = <180>;
- + orientation = <2>;
- +
- + port {
- + imx219_0: endpoint {
- + remote-endpoint = <&csi1_ep>;
- + clock-lanes = <0>;
- + data-lanes = <1 2>;
- + clock-noncontinuous;
- + link-frequencies =
- + /bits/ 64 <456000000>;
- + };
- + };
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&csi1>;
- + __overlay__ {
- + status = "okay";
- +
- + port {
- + csi1_ep: endpoint {
- + remote-endpoint = <&imx219_0>;
- + clock-lanes = <0>;
- + data-lanes = <1 2>;
- + clock-noncontinuous;
- + };
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c0if>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@3 {
- + target-path="/";
- + __overlay__ {
- + imx219_vdig: fixedregulator@1 {
- + compatible = "regulator-fixed";
- + regulator-name = "imx219_vdig";
- + regulator-min-microvolt = <1800000>;
- + regulator-max-microvolt = <1800000>;
- + };
- + imx219_vddl: fixedregulator@2 {
- + compatible = "regulator-fixed";
- + regulator-name = "imx219_vddl";
- + regulator-min-microvolt = <1200000>;
- + regulator-max-microvolt = <1200000>;
- + };
- +
- + imx219_clk: camera-clk {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-frequency = <24000000>;
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&i2c0mux>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@5 {
- + target = <&cam1_reg>;
- + __overlay__ {
- + status = "okay";
- + regulator-name = "imx219_vana";
- + regulator-min-microvolt = <2800000>;
- + regulator-max-microvolt = <2800000>;
- + };
- + };
- +
- + __overrides__ {
- + rotation = <&imx219>,"rotation:0";
- + orientation = <&imx219>,"orientation:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/imx290-overlay.dts b/arch/arm/boot/dts/overlays/imx290-overlay.dts
- new file mode 100644
- index 000000000000..e536aa7f9e33
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/imx290-overlay.dts
- @@ -0,0 +1,32 @@
- +// SPDX-License-Identifier: GPL-2.0-only
- +// Definitions for IMX290 camera module on VC I2C bus
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/gpio/gpio.h>
- +#include "imx290_327-overlay.dtsi"
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + // Fragment numbers deliberately high to avoid conflicts with the
- + // included imx290_327 overlay file.
- +
- + fragment@101 {
- + target = <&imx290>;
- + __overlay__ {
- + compatible = "sony,imx290";
- + };
- + };
- +
- + fragment@102 {
- + target = <&imx290>;
- + __dormant__ {
- + compatible = "sony,imx290-mono";
- + };
- + };
- +
- + __overrides__ {
- + mono = <0>, "-101+102";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/imx290_327-overlay.dtsi b/arch/arm/boot/dts/overlays/imx290_327-overlay.dtsi
- new file mode 100644
- index 000000000000..d4a5ed6dbbcf
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/imx290_327-overlay.dtsi
- @@ -0,0 +1,144 @@
- +// SPDX-License-Identifier: GPL-2.0-only
- +// Partial definitions for IMX290 or IMX327 camera module on VC I2C bus
- +// The compatible string should be set in an overlay that then includes this one
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/gpio/gpio.h>
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c_csi_dsi>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + imx290: imx290@1a {
- + reg = <0x1a>;
- + status = "okay";
- +
- + clocks = <&imx290_clk>;
- + clock-names = "xclk";
- + clock-frequency = <37125000>;
- +
- + rotation = <0>;
- + orientation = <2>;
- +
- + vdda-supply = <&cam1_reg>; /* 2.8v */
- + vdddo-supply = <&imx290_vdddo>; /* 1.8v */
- + vddd-supply = <&imx290_vddd>; /* 1.5v */
- +
- + port {
- + imx290_0: endpoint {
- + remote-endpoint = <&csi1_ep>;
- + clock-lanes = <0>;
- + };
- + };
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&csi1>;
- + __overlay__ {
- + status = "okay";
- +
- + port {
- + csi1_ep: endpoint {
- + remote-endpoint = <&imx290_0>;
- + };
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c0if>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@3 {
- + target-path="/";
- + __overlay__ {
- + imx290_vdddo: fixedregulator@1 {
- + compatible = "regulator-fixed";
- + regulator-name = "imx290_vdddo";
- + regulator-min-microvolt = <1800000>;
- + regulator-max-microvolt = <1800000>;
- + };
- + imx290_vddd: fixedregulator@2 {
- + compatible = "regulator-fixed";
- + regulator-name = "imx290_vddd";
- + regulator-min-microvolt = <1500000>;
- + regulator-max-microvolt = <1500000>;
- + };
- +
- + imx290_clk: camera-clk {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-frequency = <37125000>;
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&i2c0mux>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@5 {
- + target = <&cam1_reg>;
- + __overlay__ {
- + status = "okay";
- + regulator-name = "imx290_vdda";
- + regulator-min-microvolt = <2800000>;
- + regulator-max-microvolt = <2800000>;
- + };
- + };
- +
- + fragment@6 {
- + target = <&imx290_0>;
- + __overlay__ {
- + data-lanes = <1 2>;
- + link-frequencies =
- + /bits/ 64 <445500000 297000000>;
- + };
- + };
- +
- + fragment@7 {
- + target = <&imx290_0>;
- + __dormant__ {
- + data-lanes = <1 2 3 4>;
- + link-frequencies =
- + /bits/ 64 <222750000 148500000>;
- + };
- + };
- +
- + fragment@8 {
- + target = <&csi1_ep>;
- + __overlay__ {
- + data-lanes = <1 2>;
- + };
- + };
- +
- + fragment@9 {
- + target = <&csi1_ep>;
- + __dormant__ {
- + data-lanes = <1 2 3 4>;
- + };
- + };
- +
- + __overrides__ {
- + 4lane = <0>, "-6+7-8+9";
- + clock-frequency = <&imx290_clk>,"clock-frequency:0",
- + <&imx290>,"clock-frequency:0";
- + rotation = <&imx290>,"rotation:0";
- + orientation = <&imx290>,"orientation:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/imx378-overlay.dts b/arch/arm/boot/dts/overlays/imx378-overlay.dts
- new file mode 100644
- index 000000000000..74c7288d12f5
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/imx378-overlay.dts
- @@ -0,0 +1,10 @@
- +// SPDX-License-Identifier: GPL-2.0-only
- +// Definitions for IMX378 camera module on VC I2C bus
- +/dts-v1/;
- +/plugin/;
- +
- +#include "imx477_378-overlay.dtsi"
- +
- +&imx477 {
- + compatible = "sony,imx378";
- +};
- diff --git a/arch/arm/boot/dts/overlays/imx477-overlay.dts b/arch/arm/boot/dts/overlays/imx477-overlay.dts
- new file mode 100644
- index 000000000000..ca315d120e6b
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/imx477-overlay.dts
- @@ -0,0 +1,10 @@
- +// SPDX-License-Identifier: GPL-2.0-only
- +// Definitions for IMX477 camera module on VC I2C bus
- +/dts-v1/;
- +/plugin/;
- +
- +#include "imx477_378-overlay.dtsi"
- +
- +&imx477 {
- + compatible = "sony,imx477";
- +};
- diff --git a/arch/arm/boot/dts/overlays/imx477_378-overlay.dtsi b/arch/arm/boot/dts/overlays/imx477_378-overlay.dtsi
- new file mode 100644
- index 000000000000..bb9a9acdbbd7
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/imx477_378-overlay.dtsi
- @@ -0,0 +1,110 @@
- +// SPDX-License-Identifier: GPL-2.0-only
- +// Definitions for IMX477 camera module on VC I2C bus
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c_csi_dsi>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + imx477: imx477@1a {
- + reg = <0x1a>;
- + status = "okay";
- +
- + clocks = <&imx477_clk>;
- + clock-names = "xclk";
- +
- + VANA-supply = <&cam1_reg>; /* 2.8v */
- + VDIG-supply = <&imx477_vdig>; /* 1.05v */
- + VDDL-supply = <&imx477_vddl>; /* 1.8v */
- +
- + rotation = <180>;
- + orientation = <2>;
- +
- + port {
- + imx477_0: endpoint {
- + remote-endpoint = <&csi1_ep>;
- + clock-lanes = <0>;
- + data-lanes = <1 2>;
- + clock-noncontinuous;
- + link-frequencies =
- + /bits/ 64 <450000000>;
- + };
- + };
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&csi1>;
- + __overlay__ {
- + status = "okay";
- +
- + port {
- + csi1_ep: endpoint {
- + remote-endpoint = <&imx477_0>;
- + clock-lanes = <0>;
- + data-lanes = <1 2>;
- + clock-noncontinuous;
- + };
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c0if>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@3 {
- + target-path="/";
- + __overlay__ {
- + imx477_vdig: fixedregulator@0 {
- + compatible = "regulator-fixed";
- + regulator-name = "imx477_vdig";
- + regulator-min-microvolt = <1050000>;
- + regulator-max-microvolt = <1050000>;
- + };
- + imx477_vddl: fixedregulator@1 {
- + compatible = "regulator-fixed";
- + regulator-name = "imx477_vddl";
- + regulator-min-microvolt = <1800000>;
- + regulator-max-microvolt = <1800000>;
- + };
- + imx477_clk: camera-clk {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-frequency = <24000000>;
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&i2c0mux>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@5 {
- + target = <&cam1_reg>;
- + __overlay__ {
- + status = "okay";
- + regulator-name = "imx477_vana";
- + startup-delay-us = <300000>;
- + regulator-min-microvolt = <2800000>;
- + regulator-max-microvolt = <2800000>;
- + };
- + };
- +
- + __overrides__ {
- + rotation = <&imx477>,"rotation:0";
- + orientation = <&imx477>,"orientation:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/iqaudio-codec-overlay.dts b/arch/arm/boot/dts/overlays/iqaudio-codec-overlay.dts
- new file mode 100644
- index 000000000000..9110f5d34298
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/iqaudio-codec-overlay.dts
- @@ -0,0 +1,42 @@
- +// Definitions for IQaudIO CODEC
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + da2713@1a {
- + #sound-dai-cells = <0>;
- + compatible = "dlg,da7213";
- + reg = <0x1a>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + iqaudio_dac: __overlay__ {
- + compatible = "iqaudio,iqaudio-codec";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/iqaudio-dac-overlay.dts b/arch/arm/boot/dts/overlays/iqaudio-dac-overlay.dts
- new file mode 100644
- index 000000000000..24073cadd0ef
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/iqaudio-dac-overlay.dts
- @@ -0,0 +1,46 @@
- +// Definitions for IQaudIO DAC
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + pcm5122@4c {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm5122";
- + reg = <0x4c>;
- + AVDD-supply = <&vdd_3v3_reg>;
- + DVDD-supply = <&vdd_3v3_reg>;
- + CPVDD-supply = <&vdd_3v3_reg>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + frag2: __overlay__ {
- + compatible = "iqaudio,iqaudio-dac";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + 24db_digital_gain = <&frag2>,"iqaudio,24db_digital_gain?";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/iqaudio-dacplus-overlay.dts b/arch/arm/boot/dts/overlays/iqaudio-dacplus-overlay.dts
- new file mode 100644
- index 000000000000..7c70b25e58d7
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/iqaudio-dacplus-overlay.dts
- @@ -0,0 +1,49 @@
- +// Definitions for IQaudIO DAC+
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + pcm5122@4c {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm5122";
- + reg = <0x4c>;
- + AVDD-supply = <&vdd_3v3_reg>;
- + DVDD-supply = <&vdd_3v3_reg>;
- + CPVDD-supply = <&vdd_3v3_reg>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + iqaudio_dac: __overlay__ {
- + compatible = "iqaudio,iqaudio-dac";
- + i2s-controller = <&i2s>;
- + mute-gpios = <&gpio 22 0>;
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + 24db_digital_gain = <&iqaudio_dac>,"iqaudio,24db_digital_gain?";
- + auto_mute_amp = <&iqaudio_dac>,"iqaudio-dac,auto-mute-amp?";
- + unmute_amp = <&iqaudio_dac>,"iqaudio-dac,unmute-amp?";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/iqaudio-digi-wm8804-audio-overlay.dts b/arch/arm/boot/dts/overlays/iqaudio-digi-wm8804-audio-overlay.dts
- new file mode 100644
- index 000000000000..ee54095c869b
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/iqaudio-digi-wm8804-audio-overlay.dts
- @@ -0,0 +1,47 @@
- +// Definitions for IQAudIO Digi WM8804 audio board
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + wm8804@3b {
- + #sound-dai-cells = <0>;
- + compatible = "wlf,wm8804";
- + reg = <0x3b>;
- + status = "okay";
- + DVDD-supply = <&vdd_3v3_reg>;
- + PVDD-supply = <&vdd_3v3_reg>;
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + wm8804_digi: __overlay__ {
- + compatible = "iqaudio,wm8804-digi";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + card_name = <&wm8804_digi>,"wm8804-digi,card-name";
- + dai_name = <&wm8804_digi>,"wm8804-digi,dai-name";
- + dai_stream_name = <&wm8804_digi>,"wm8804-digi,dai-stream-name";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/irs1125-overlay.dts b/arch/arm/boot/dts/overlays/irs1125-overlay.dts
- new file mode 100644
- index 000000000000..e926e18e71fc
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/irs1125-overlay.dts
- @@ -0,0 +1,85 @@
- +// SPDX-License-Identifier: GPL-2.0-only
- +// Definitions for IRS1125 camera module on VC I2C bus
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c_csi_dsi>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + irs1125: irs1125@3D {
- + compatible = "infineon,irs1125";
- + reg = <0x3D>;
- + status = "okay";
- +
- + pwdn-gpios = <&gpio 5 0>;
- + clocks = <&irs1125_clk>;
- +
- + port {
- + irs1125_0: endpoint {
- + remote-endpoint = <&csi1_ep>;
- + clock-lanes = <0>;
- + data-lanes = <1 2>;
- + clock-noncontinuous;
- + link-frequencies =
- + /bits/ 64 <297000000>;
- + };
- + };
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&csi1>;
- + __overlay__ {
- + status = "okay";
- +
- + port {
- + csi1_ep: endpoint {
- + remote-endpoint = <&irs1125_0>;
- + data-lanes = <1 2>;
- + clock-noncontinuous;
- + };
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c0if>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@3 {
- + target = <&i2c0mux>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@4 {
- + target-path="/__overrides__";
- + __overlay__ {
- + cam0-pwdn-ctrl = <&irs1125>,"pwdn-gpios:0";
- + cam0-pwdn = <&irs1125>,"pwdn-gpios:4";
- + };
- + };
- +
- + fragment@5 {
- + target-path = "/";
- + __overlay__ {
- + irs1125_clk: camera-clk {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-frequency = <26000000>;
- + };
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/jedec-spi-nor-overlay.dts b/arch/arm/boot/dts/overlays/jedec-spi-nor-overlay.dts
- new file mode 100644
- index 000000000000..585c7dbcdf7f
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/jedec-spi-nor-overlay.dts
- @@ -0,0 +1,309 @@
- +// Overlay for JEDEC SPI-NOR Flash Devices (aka m25p80)
- +
- +// dtparams:
- +// flash-spi<n>-<m> - Enables flash device on SPI<n>, CS#<m>.
- +// flash-fastr-spi<n>-<m> - Enables flash device with fast read capability on SPI<n>, CS#<m>.
- +//
- +// If devices are present on SPI1 or SPI2, those interfaces must be enabled with one of the spi1-1/2/3cs and/or spi2-1/2/3cs overlays.
- +//
- +// Example: A single flash device with fast read capability on SPI0, CS#0:
- +// dtoverlay=jedec-spi-nor:flash-fastr-spi0-0
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + // disable spi-dev on spi0.0
- + fragment@0 {
- + target = <&spidev0>;
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + // disable spi-dev on spi0.1
- + fragment@1 {
- + target = <&spidev1>;
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + // disable spi-dev on spi1.0
- + fragment@2 {
- + target-path = "spi1/spidev@0";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + // disable spi-dev on spi1.1
- + fragment@3 {
- + target-path = "spi1/spidev@1";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + // disable spi-dev on spi1.2
- + fragment@4 {
- + target-path = "spi1/spidev@2";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + // disable spi-dev on spi2.0
- + fragment@5 {
- + target-path = "spi2/spidev@0";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + // disable spi-dev on spi2.1
- + fragment@6 {
- + target-path = "spi2/spidev@1";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + // disable spi-dev on spi2.2
- + fragment@7 {
- + target-path = "spi2/spidev@2";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + // enable flash on spi0.0
- + fragment@8 {
- + target = <&spi0>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi_nor_00: spi_nor@0 {
- + #address-cells = <1>;
- + #size-cells = <1>;
- + compatible = "jedec,spi-nor";
- + reg = <0>;
- + spi-max-frequency = <500000>;
- + };
- + };
- + };
- +
- + // enable flash on spi0.1
- + fragment@9 {
- + target = <&spi0>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi_nor_01: spi_nor@1 {
- + #address-cells = <1>;
- + #size-cells = <1>;
- + compatible = "jedec,spi-nor";
- + reg = <1>;
- + spi-max-frequency = <500000>;
- + };
- + };
- + };
- +
- + // enable flash on spi1.0
- + fragment@10 {
- + target = <&spi1>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi_nor_10: spi_nor@0 {
- + #address-cells = <1>;
- + #size-cells = <1>;
- + compatible = "jedec,spi-nor";
- + reg = <0>;
- + spi-max-frequency = <500000>;
- + };
- + };
- + };
- +
- + // enable flash on spi1.1
- + fragment@11 {
- + target = <&spi1>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi_nor_11: spi_nor@1 {
- + #address-cells = <1>;
- + #size-cells = <1>;
- + compatible = "jedec,spi-nor";
- + reg = <1>;
- + spi-max-frequency = <500000>;
- + };
- + };
- + };
- +
- + // enable flash on spi1.2
- + fragment@12 {
- + target = <&spi1>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi_nor_12: spi_nor@2 {
- + #address-cells = <1>;
- + #size-cells = <1>;
- + compatible = "jedec,spi-nor";
- + reg = <2>;
- + spi-max-frequency = <500000>;
- + };
- + };
- + };
- +
- + // enable flash on spi2.0
- + fragment@13 {
- + target = <&spi2>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi_nor_20: spi_nor@0 {
- + #address-cells = <1>;
- + #size-cells = <1>;
- + compatible = "jedec,spi-nor";
- + reg = <0>;
- + spi-max-frequency = <500000>;
- + };
- + };
- + };
- +
- + // enable flash on spi2.1
- + fragment@14 {
- + target = <&spi2>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi_nor_21: spi_nor@1 {
- + #address-cells = <1>;
- + #size-cells = <1>;
- + compatible = "jedec,spi-nor";
- + reg = <1>;
- + spi-max-frequency = <500000>;
- + };
- + };
- + };
- +
- + // enable flash on spi2.2
- + fragment@15 {
- + target = <&spi2>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi_nor_22: spi_nor@2 {
- + #address-cells = <1>;
- + #size-cells = <1>;
- + compatible = "jedec,spi-nor";
- + reg = <2>;
- + spi-max-frequency = <500000>;
- + };
- + };
- + };
- +
- + // Enable fast read for device on spi0.0.
- + // Use default active low interrupt signalling.
- + fragment@16 {
- + target = <&spi_nor_00>;
- + __dormant__ {
- + m25p,fast-read;
- + };
- + };
- +
- + // Enable fast read for device on spi0.1.
- + // Use default active low interrupt signalling.
- + fragment@17 {
- + target = <&spi_nor_01>;
- + __dormant__ {
- + m25p,fast-read;
- + };
- + };
- +
- + // Enable fast read for device on spi1.0.
- + // Use default active low interrupt signalling.
- + fragment@18 {
- + target = <&spi_nor_10>;
- + __dormant__ {
- + m25p,fast-read;
- + };
- + };
- +
- + // Enable fast read for device on spi1.1.
- + // Use default active low interrupt signalling.
- + fragment@19 {
- + target = <&spi_nor_11>;
- + __dormant__ {
- + m25p,fast-read;
- + };
- + };
- +
- + // Enable fast read for device on spi1.2.
- + // Use default active low interrupt signalling.
- + fragment@20 {
- + target = <&spi_nor_12>;
- + __dormant__ {
- + m25p,fast-read;
- + };
- + };
- +
- + // Enable fast read for device on spi2.0.
- + // Use default active low interrupt signalling.
- + fragment@21 {
- + target = <&spi_nor_20>;
- + __dormant__ {
- + m25p,fast-read;
- + };
- + };
- +
- + // Enable fast read for device on spi2.1.
- + // Use default active low interrupt signalling.
- + fragment@22 {
- + target = <&spi_nor_21>;
- + __dormant__ {
- + m25p,fast-read;
- + };
- + };
- +
- + // Enable fast read for device on spi2.2.
- + // Use default active low interrupt signalling.
- + fragment@23 {
- + target = <&spi_nor_22>;
- + __dormant__ {
- + m25p,fast-read;
- + };
- + };
- +
- + __overrides__ {
- + flash-spi0-0 = <0>,"+0+8";
- + flash-spi0-1 = <0>,"+1+9";
- + flash-spi1-0 = <0>,"+2+10";
- + flash-spi1-1 = <0>,"+3+11";
- + flash-spi1-2 = <0>,"+4+12";
- + flash-spi2-0 = <0>,"+5+13";
- + flash-spi2-1 = <0>,"+6+14";
- + flash-spi2-2 = <0>,"+7+15";
- + flash-fastr-spi0-0 = <0>,"+0+8+16";
- + flash-fastr-spi0-1 = <0>,"+1+9+17";
- + flash-fastr-spi1-0 = <0>,"+2+10+18";
- + flash-fastr-spi1-1 = <0>,"+3+11+19";
- + flash-fastr-spi1-2 = <0>,"+4+12+20";
- + flash-fastr-spi2-0 = <0>,"+5+13+21";
- + flash-fastr-spi2-1 = <0>,"+6+14+22";
- + flash-fastr-spi2-2 = <0>,"+7+15+23";
- + };
- +};
- +
- diff --git a/arch/arm/boot/dts/overlays/justboom-both-overlay.dts b/arch/arm/boot/dts/overlays/justboom-both-overlay.dts
- new file mode 100644
- index 000000000000..9c42670631c0
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/justboom-both-overlay.dts
- @@ -0,0 +1,65 @@
- +// SPDX-License-Identifier: GPL-2.0
- +// Definitions for JustBoom Both (Digi+DAC)
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + wm8804@3b {
- + #sound-dai-cells = <0>;
- + compatible = "wlf,wm8804";
- + reg = <0x3b>;
- + PVDD-supply = <&vdd_3v3_reg>;
- + DVDD-supply = <&vdd_3v3_reg>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + pcm5122@4d {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm5122";
- + reg = <0x4d>;
- + AVDD-supply = <&vdd_3v3_reg>;
- + DVDD-supply = <&vdd_3v3_reg>;
- + CPVDD-supply = <&vdd_3v3_reg>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&sound>;
- + frag3: __overlay__ {
- + compatible = "justboom,justboom-both";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + 24db_digital_gain = <&frag3>,"justboom,24db_digital_gain?";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/justboom-dac-overlay.dts b/arch/arm/boot/dts/overlays/justboom-dac-overlay.dts
- new file mode 100644
- index 000000000000..d00515dca419
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/justboom-dac-overlay.dts
- @@ -0,0 +1,46 @@
- +// Definitions for JustBoom DAC
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + pcm5122@4d {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm5122";
- + reg = <0x4d>;
- + AVDD-supply = <&vdd_3v3_reg>;
- + DVDD-supply = <&vdd_3v3_reg>;
- + CPVDD-supply = <&vdd_3v3_reg>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + frag2: __overlay__ {
- + compatible = "justboom,justboom-dac";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + 24db_digital_gain = <&frag2>,"justboom,24db_digital_gain?";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/justboom-digi-overlay.dts b/arch/arm/boot/dts/overlays/justboom-digi-overlay.dts
- new file mode 100644
- index 000000000000..e73336029c54
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/justboom-digi-overlay.dts
- @@ -0,0 +1,41 @@
- +// Definitions for JustBoom Digi
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + wm8804@3b {
- + #sound-dai-cells = <0>;
- + compatible = "wlf,wm8804";
- + reg = <0x3b>;
- + PVDD-supply = <&vdd_3v3_reg>;
- + DVDD-supply = <&vdd_3v3_reg>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "justboom,justboom-digi";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/ltc294x-overlay.dts b/arch/arm/boot/dts/overlays/ltc294x-overlay.dts
- new file mode 100644
- index 000000000000..6d971f3649ca
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/ltc294x-overlay.dts
- @@ -0,0 +1,86 @@
- +/dts-v1/;
- +/plugin/;
- +
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + ltc2941: ltc2941@64 {
- + compatible = "lltc,ltc2941";
- + reg = <0x64>;
- + lltc,resistor-sense = <50>;
- + lltc,prescaler-exponent = <7>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + ltc2942: ltc2942@64 {
- + compatible = "lltc,ltc2942";
- + reg = <0x64>;
- + lltc,resistor-sense = <50>;
- + lltc,prescaler-exponent = <7>;
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + ltc2943: ltc2943@64 {
- + compatible = "lltc,ltc2943";
- + reg = <0x64>;
- + lltc,resistor-sense = <50>;
- + lltc,prescaler-exponent = <7>;
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&i2c_arm>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + ltc2944: ltc2944@64 {
- + compatible = "lltc,ltc2944";
- + reg = <0x64>;
- + lltc,resistor-sense = <50>;
- + lltc,prescaler-exponent = <7>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + ltc2941 = <0>,"+0";
- + ltc2942 = <0>,"+1";
- + ltc2943 = <0>,"+2";
- + ltc2944 = <0>,"+3";
- + resistor-sense = <<c2941>, "lltc,resistor-sense:0",
- + <<c2942>, "lltc,resistor-sense:0",
- + <<c2943>, "lltc,resistor-sense:0",
- + <<c2944>, "lltc,resistor-sense:0";
- + prescaler-exponent = <<c2941>, "lltc,prescaler-exponent:0",
- + <<c2942>, "lltc,prescaler-exponent:0",
- + <<c2943>, "lltc,prescaler-exponent:0",
- + <<c2944>, "lltc,prescaler-exponent:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/max98357a-overlay.dts b/arch/arm/boot/dts/overlays/max98357a-overlay.dts
- new file mode 100644
- index 000000000000..9e2afb05b7cb
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/max98357a-overlay.dts
- @@ -0,0 +1,84 @@
- +// Overlay for Maxim MAX98357A audio DAC
- +
- +// dtparams:
- +// no-sdmode - SD_MODE pin not managed by driver.
- +// sdmode-pin - Specify GPIO pin to which SD_MODE is connected (default 4).
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + /* Enable I2S */
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + /* DAC whose SD_MODE pin is managed by driver (via GPIO pin) */
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + max98357a_dac: max98357a {
- + compatible = "maxim,max98357a";
- + #sound-dai-cells = <0>;
- + sdmode-gpios = <&gpio 4 0>; /* 2nd word overwritten by sdmode-pin parameter */
- + status = "okay";
- + };
- + };
- + };
- +
- + /* DAC whose SD_MODE pin is not managed by driver */
- + fragment@2 {
- + target-path = "/";
- + __dormant__ {
- + max98357a_nsd: max98357a {
- + compatible = "maxim,max98357a";
- + #sound-dai-cells = <0>;
- + status = "okay";
- + };
- + };
- + };
- +
- + /* Soundcard connecting I2S to DAC with SD_MODE */
- + fragment@3 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "simple-audio-card";
- + simple-audio-card,format = "i2s";
- + simple-audio-card,name = "MAX98357A";
- + status = "okay";
- + simple-audio-card,cpu {
- + sound-dai = <&i2s>;
- + };
- + simple-audio-card,codec {
- + sound-dai = <&max98357a_dac>;
- + };
- + };
- + };
- +
- + /* Soundcard connecting I2S to DAC without SD_MODE */
- + fragment@4 {
- + target = <&sound>;
- + __dormant__ {
- + compatible = "simple-audio-card";
- + simple-audio-card,format = "i2s";
- + simple-audio-card,name = "MAX98357A";
- + status = "okay";
- + simple-audio-card,cpu {
- + sound-dai = <&i2s>;
- + };
- + simple-audio-card,codec {
- + sound-dai = <&max98357a_nsd>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + no-sdmode = <0>,"-1+2-3+4";
- + sdmode-pin = <&max98357a_dac>,"sdmode-gpios:4";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/maxtherm-overlay.dts b/arch/arm/boot/dts/overlays/maxtherm-overlay.dts
- new file mode 100644
- index 000000000000..9964e246c14f
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/maxtherm-overlay.dts
- @@ -0,0 +1,186 @@
- +/*
- + * Universal device tree overlay for SPI devices
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/iio/temperature/thermocouple.h>
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spidev0>;
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev1>;
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target-path = "spi1/spidev@0";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target-path = "spi1/spidev@1";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@4 {
- + target-path = "spi1/spidev@2";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@5 {
- + target-path = "spi2/spidev@0";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@6 {
- + target-path = "spi2/spidev@1";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@7 {
- + target-path = "spi2/spidev@2";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + maxfrag: fragment@8 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + max: maxtherm@0 {
- + compatible = "maxim,max6675";
- + reg = <0>;
- + spi-max-frequency = <500000>;
- + };
- + };
- + };
- +
- + fragment@9 {
- + target = <&max>;
- + __dormant__ {
- + compatible = "maxim,max31855e", "maxim,max31855";
- + };
- + };
- +
- + fragment@10 {
- + target = <&max>;
- + __dormant__ {
- + compatible = "maxim,max31855j", "maxim,max31855";
- + };
- + };
- +
- + fragment@11 {
- + target = <&max>;
- + __dormant__ {
- + compatible = "maxim,max31855k", "maxim,max31855";
- + };
- + };
- +
- + fragment@12 {
- + target = <&max>;
- + __dormant__ {
- + compatible = "maxim,max31855n", "maxim,max31855";
- + };
- + };
- +
- + fragment@13 {
- + target = <&max>;
- + __dormant__ {
- + compatible = "maxim,max31855r", "maxim,max31855";
- + };
- + };
- +
- + fragment@14 {
- + target = <&max>;
- + __dormant__ {
- + compatible = "maxim,max31855s", "maxim,max31855";
- + };
- + };
- +
- + fragment@15 {
- + target = <&max>;
- + __dormant__ {
- + compatible = "maxim,max31855t", "maxim,max31855";
- + };
- + };
- +
- + fragment@16 {
- + target = <&max>;
- + __dormant__ {
- + compatible = "maxim,max31856";
- + spi-cpha;
- + thermocouple-type = <THERMOCOUPLE_TYPE_K>;
- + };
- + };
- +
- + __overrides__ {
- + spi0-0 = <0>, "+0",
- + <&maxfrag>,"target:0=",<&spi0>,
- + <&max>,"reg:0=0";
- + spi0-1 = <0>, "+1",
- + <&maxfrag>,"target:0=",<&spi0>,
- + <&max>,"reg:0=1";
- + spi1-0 = <0>, "+2",
- + <&maxfrag>,"target:0=",<&spi1>,
- + <&max>,"reg:0=0";
- + spi1-1 = <0>, "+3",
- + <&maxfrag>,"target:0=",<&spi1>,
- + <&max>,"reg:0=1";
- + spi1-2 = <0>, "+4",
- + <&maxfrag>,"target:0=",<&spi1>,
- + <&max>,"reg:0=2";
- + spi2-0 = <0>, "+5",
- + <&maxfrag>,"target:0=",<&spi2>,
- + <&max>,"reg:0=0";
- + spi2-1 = <0>, "+6",
- + <&maxfrag>,"target:0=",<&spi2>,
- + <&max>,"reg:0=1";
- + spi2-2 = <0>, "+7",
- + <&maxfrag>,"target:0=",<&spi2>,
- + <&max>,"reg:0=2";
- + max6675 = <&max>,"compatible=maxim,max6675";
- + max31855 = <&max>,"compatible=maxim,max31855";
- + max31855e = <0>,"+9";
- + max31855j = <0>,"+10";
- + max31855k = <0>,"+11";
- + max31855n = <0>,"+12";
- + max31855r = <0>,"+13";
- + max31855s = <0>,"+14";
- + max31855t = <0>,"+15";
- + max31856 = <0>,"+16";
- + type_b = <&max>,"thermocouple-type:0=",<THERMOCOUPLE_TYPE_B>;
- + type_e = <&max>,"thermocouple-type:0=",<THERMOCOUPLE_TYPE_E>;
- + type_j = <&max>,"thermocouple-type:0=",<THERMOCOUPLE_TYPE_J>;
- + type_k = <&max>,"thermocouple-type:0=",<THERMOCOUPLE_TYPE_K>;
- + type_n = <&max>,"thermocouple-type:0=",<THERMOCOUPLE_TYPE_N>;
- + type_r = <&max>,"thermocouple-type:0=",<THERMOCOUPLE_TYPE_R>;
- + type_s = <&max>,"thermocouple-type:0=",<THERMOCOUPLE_TYPE_S>;
- + type_t = <&max>,"thermocouple-type:0=",<THERMOCOUPLE_TYPE_T>;
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/mbed-dac-overlay.dts b/arch/arm/boot/dts/overlays/mbed-dac-overlay.dts
- new file mode 100644
- index 000000000000..840dd9b31db4
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/mbed-dac-overlay.dts
- @@ -0,0 +1,64 @@
- +// Definitions for mbed DAC
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + tlv320aic23: codec@1a {
- + #sound-dai-cells = <0>;
- + reg = <0x1a>;
- + compatible = "ti,tlv320aic23";
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "simple-audio-card";
- + i2s-controller = <&i2s>;
- + status = "okay";
- +
- + simple-audio-card,name = "mbed-DAC";
- +
- + simple-audio-card,widgets =
- + "Microphone", "Mic Jack",
- + "Line", "Line In",
- + "Headphone", "Headphone Jack";
- +
- + simple-audio-card,routing =
- + "Headphone Jack", "LHPOUT",
- + "Headphone Jack", "RHPOUT",
- + "LLINEIN", "Line In",
- + "RLINEIN", "Line In",
- + "MICIN", "Mic Jack";
- +
- + simple-audio-card,format = "i2s";
- +
- + simple-audio-card,cpu {
- + sound-dai = <&i2s>;
- + };
- +
- + sound_master: simple-audio-card,codec {
- + sound-dai = <&tlv320aic23>;
- + system-clock-frequency = <12288000>;
- + };
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/mcp23017-overlay.dts b/arch/arm/boot/dts/overlays/mcp23017-overlay.dts
- new file mode 100644
- index 000000000000..c546d8ba7e6d
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/mcp23017-overlay.dts
- @@ -0,0 +1,69 @@
- +// Definitions for MCP23017 Gpio Extender from Microchip Semiconductor
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c1>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + mcp23017_pins: mcp23017_pins@20 {
- + brcm,pins = <4>;
- + brcm,function = <0>;
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + mcp23017: mcp@20 {
- + compatible = "microchip,mcp23017";
- + reg = <0x20>;
- + gpio-controller;
- + #gpio-cells = <2>;
- +
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&mcp23017>;
- + __dormant__ {
- + compatible = "microchip,mcp23008";
- + };
- + };
- +
- + fragment@4 {
- + target = <&mcp23017>;
- + mcp23017_irq: __overlay__ {
- + #interrupt-cells=<2>;
- + interrupt-parent = <&gpio>;
- + interrupts = <4 2>;
- + interrupt-controller;
- + microchip,irq-mirror;
- + };
- + };
- +
- + __overrides__ {
- + gpiopin = <&mcp23017_pins>,"brcm,pins:0",
- + <&mcp23017_irq>,"interrupts:0";
- + addr = <&mcp23017>,"reg:0", <&mcp23017_pins>,"reg:0";
- + mcp23008 = <0>,"=3";
- + noints = <0>,"!1!4";
- + };
- +};
- +
- diff --git a/arch/arm/boot/dts/overlays/mcp23s17-overlay.dts b/arch/arm/boot/dts/overlays/mcp23s17-overlay.dts
- new file mode 100644
- index 000000000000..484d64b225fb
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/mcp23s17-overlay.dts
- @@ -0,0 +1,732 @@
- +// Overlay for MCP23S08/17 GPIO Extenders from Microchip Semiconductor
- +
- +// dtparams:
- +// s08-spi<n>-<m>-present - 4-bit integer, bitmap indicating MCP23S08 devices present on SPI<n>, CS#<m>.
- +// s17-spi<n>-<m>-present - 8-bit integer, bitmap indicating MCP23S17 devices present on SPI<n>, CS#<m>.
- +// s08-spi<n>-<m>-int-gpio - integer, enables interrupts on a single MCP23S08 device on SPI<n>, CS#<m>, specifies the GPIO pin to which INT output is connected.
- +// s17-spi<n>-<m>-int-gpio - integer, enables mirrored interrupts on a single MCP23S17 device on SPI<n>, CS#<m>, specifies the GPIO pin to which either INTA or INTB output is connected.
- +//
- +// If devices are present on SPI1 or SPI2, those interfaces must be enabled with one of the spi1-1/2/3cs and/or spi2-1/2/3cs overlays.
- +// If interrupts are enabled for a device on a given CS# on a SPI bus, that device must be the only one present on that SPI bus/CS#.
- +//
- +// Example 1: A single MCP23S17 device on SPI0, CS#0 with its SPI addr set to 0 and INTA output connected to GPIO25:
- +// dtoverlay=mcp23s17:s17-spi0-0-present=1,s17-spi0-0-int-gpio=25
- +//
- +// Example 2: Two MCP23S08 devices on SPI1, CS#0 with their addrs set to 2 and 3. Three MCP23S17 devices on SPI1, CS#1 with their addrs set to 0, 1 and 7:
- +// dtoverlay=spi1-2cs
- +// dtoverlay=mcp23s17:s08-spi1-0-present=12,s17-spi1-1-present=131
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + // disable spi-dev on spi0.0
- + fragment@0 {
- + target = <&spidev0>;
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + // disable spi-dev on spi0.1
- + fragment@1 {
- + target = <&spidev1>;
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + // disable spi-dev on spi1.0
- + fragment@2 {
- + target-path = "spi1/spidev@0";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + // disable spi-dev on spi1.1
- + fragment@3 {
- + target-path = "spi1/spidev@1";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + // disable spi-dev on spi1.2
- + fragment@4 {
- + target-path = "spi1/spidev@2";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + // disable spi-dev on spi2.0
- + fragment@5 {
- + target-path = "spi2/spidev@0";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + // disable spi-dev on spi2.1
- + fragment@6 {
- + target-path = "spi2/spidev@1";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + // disable spi-dev on spi2.2
- + fragment@7 {
- + target-path = "spi2/spidev@2";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + // enable one or more mcp23s08s on spi0.0
- + fragment@8 {
- + target = <&spi0>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + mcp23s08_00: mcp23s08@0 {
- + compatible = "microchip,mcp23s08";
- + gpio-controller;
- + #gpio-cells = <2>;
- + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi0-0-present parameter */
- + reg = <0>;
- + spi-max-frequency = <500000>;
- + status = "okay";
- + #interrupt-cells=<2>;
- + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi0-0-int-gpio parameter */
- + };
- + };
- + };
- +
- + // enable one or more mcp23s08s on spi0.1
- + fragment@9 {
- + target = <&spi0>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + mcp23s08_01: mcp23s08@1 {
- + compatible = "microchip,mcp23s08";
- + gpio-controller;
- + #gpio-cells = <2>;
- + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi0-1-present parameter */
- + reg = <1>;
- + spi-max-frequency = <500000>;
- + status = "okay";
- + #interrupt-cells=<2>;
- + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi0-1-int-gpio parameter */
- + };
- + };
- + };
- +
- + // enable one or more mcp23s08s on spi1.0
- + fragment@10 {
- + target = <&spi1>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + mcp23s08_10: mcp23s08@0 {
- + compatible = "microchip,mcp23s08";
- + gpio-controller;
- + #gpio-cells = <2>;
- + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi1-0-present parameter */
- + reg = <0>;
- + spi-max-frequency = <500000>;
- + status = "okay";
- + #interrupt-cells=<2>;
- + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi1-0-int-gpio parameter */
- + };
- + };
- + };
- +
- + // enable one or more mcp23s08s on spi1.1
- + fragment@11 {
- + target = <&spi1>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + mcp23s08_11: mcp23s08@1 {
- + compatible = "microchip,mcp23s08";
- + gpio-controller;
- + #gpio-cells = <2>;
- + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi1-1-present parameter */
- + reg = <1>;
- + spi-max-frequency = <500000>;
- + status = "okay";
- + #interrupt-cells=<2>;
- + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi1-1-int-gpio parameter */
- + };
- + };
- + };
- +
- + // enable one or more mcp23s08s on spi1.2
- + fragment@12 {
- + target = <&spi1>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + mcp23s08_12: mcp23s08@2 {
- + compatible = "microchip,mcp23s08";
- + gpio-controller;
- + #gpio-cells = <2>;
- + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi1-2-present parameter */
- + reg = <2>;
- + spi-max-frequency = <500000>;
- + status = "okay";
- + #interrupt-cells=<2>;
- + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi1-2-int-gpio parameter */
- + };
- + };
- + };
- +
- + // enable one or more mcp23s08s on spi2.0
- + fragment@13 {
- + target = <&spi2>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + mcp23s08_20: mcp23s08@0 {
- + compatible = "microchip,mcp23s08";
- + gpio-controller;
- + #gpio-cells = <2>;
- + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi2-0-present parameter */
- + reg = <0>;
- + spi-max-frequency = <500000>;
- + status = "okay";
- + #interrupt-cells=<2>;
- + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi2-0-int-gpio parameter */
- + };
- + };
- + };
- +
- + // enable one or more mcp23s08s on spi2.1
- + fragment@14 {
- + target = <&spi2>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + mcp23s08_21: mcp23s08@1 {
- + compatible = "microchip,mcp23s08";
- + gpio-controller;
- + #gpio-cells = <2>;
- + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi2-1-present parameter */
- + reg = <1>;
- + spi-max-frequency = <500000>;
- + status = "okay";
- + #interrupt-cells=<2>;
- + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi2-1-int-gpio parameter */
- + };
- + };
- + };
- +
- + // enable one or more mcp23s08s on spi2.2
- + fragment@15 {
- + target = <&spi2>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + mcp23s08_22: mcp23s08@2 {
- + compatible = "microchip,mcp23s08";
- + gpio-controller;
- + #gpio-cells = <2>;
- + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s08-spi2-2-present parameter */
- + reg = <2>;
- + spi-max-frequency = <500000>;
- + status = "okay";
- + #interrupt-cells=<2>;
- + interrupts = <0 2>; /* 1st word overwritten by mcp23s08-spi2-2-int-gpio parameter */
- + };
- + };
- + };
- +
- + // enable one or more mcp23s17s on spi0.0
- + fragment@16 {
- + target = <&spi0>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + mcp23s17_00: mcp23s17@0 {
- + compatible = "microchip,mcp23s17";
- + gpio-controller;
- + #gpio-cells = <2>;
- + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi0-0-present parameter */
- + reg = <0>;
- + spi-max-frequency = <500000>;
- + status = "okay";
- + #interrupt-cells=<2>;
- + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi0-0-int-gpio parameter */
- + };
- + };
- + };
- +
- + // enable one or more mcp23s17s on spi0.1
- + fragment@17 {
- + target = <&spi0>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + mcp23s17_01: mcp23s17@1 {
- + compatible = "microchip,mcp23s17";
- + gpio-controller;
- + #gpio-cells = <2>;
- + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi0-1-present parameter */
- + reg = <1>;
- + spi-max-frequency = <500000>;
- + status = "okay";
- + #interrupt-cells=<2>;
- + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi0-1-int-gpio parameter */
- + };
- + };
- + };
- +
- + // enable one or more mcp23s17s on spi1.0
- + fragment@18 {
- + target = <&spi1>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + mcp23s17_10: mcp23s17@0 {
- + compatible = "microchip,mcp23s17";
- + gpio-controller;
- + #gpio-cells = <2>;
- + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi1-0-present parameter */
- + reg = <0>;
- + spi-max-frequency = <500000>;
- + status = "okay";
- + #interrupt-cells=<2>;
- + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi1-0-int-gpio parameter */
- + };
- + };
- + };
- +
- + // enable one or more mcp23s17s on spi1.1
- + fragment@19 {
- + target = <&spi1>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + mcp23s17_11: mcp23s17@1 {
- + compatible = "microchip,mcp23s17";
- + gpio-controller;
- + #gpio-cells = <2>;
- + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi1-1-present parameter */
- + reg = <1>;
- + spi-max-frequency = <500000>;
- + status = "okay";
- + #interrupt-cells=<2>;
- + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi1-1-int-gpio parameter */
- + };
- + };
- + };
- +
- + // enable one or more mcp23s17s on spi1.2
- + fragment@20 {
- + target = <&spi1>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + mcp23s17_12: mcp23s17@2 {
- + compatible = "microchip,mcp23s17";
- + gpio-controller;
- + #gpio-cells = <2>;
- + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi1-2-present parameter */
- + reg = <2>;
- + spi-max-frequency = <500000>;
- + status = "okay";
- + #interrupt-cells=<2>;
- + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi1-2-int-gpio parameter */
- + };
- + };
- + };
- +
- + // enable one or more mcp23s17s on spi2.0
- + fragment@21 {
- + target = <&spi2>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + mcp23s17_20: mcp23s17@0 {
- + compatible = "microchip,mcp23s17";
- + gpio-controller;
- + #gpio-cells = <2>;
- + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi2-0-present parameter */
- + reg = <0>;
- + spi-max-frequency = <500000>;
- + status = "okay";
- + #interrupt-cells=<2>;
- + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi2-0-int-gpio parameter */
- + };
- + };
- + };
- +
- + // enable one or more mcp23s17s on spi2.1
- + fragment@22 {
- + target = <&spi2>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + mcp23s17_21: mcp23s17@1 {
- + compatible = "microchip,mcp23s17";
- + gpio-controller;
- + #gpio-cells = <2>;
- + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi2-1-present parameter */
- + reg = <1>;
- + spi-max-frequency = <500000>;
- + status = "okay";
- + #interrupt-cells=<2>;
- + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi2-1-int-gpio parameter */
- + };
- + };
- + };
- +
- + // enable one or more mcp23s17s on spi2.2
- + fragment@23 {
- + target = <&spi2>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + mcp23s17_22: mcp23s17@2 {
- + compatible = "microchip,mcp23s17";
- + gpio-controller;
- + #gpio-cells = <2>;
- + microchip,spi-present-mask = <0x00>; /* overwritten by mcp23s17-spi2-2-present parameter */
- + reg = <2>;
- + spi-max-frequency = <500000>;
- + status = "okay";
- + #interrupt-cells=<2>;
- + interrupts = <0 2>; /* 1st word overwritten by mcp23s17-spi2-2-int-gpio parameter */
- + };
- + };
- + };
- +
- + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi0.0 as a input with no pull-up/down
- + fragment@24 {
- + target = <&gpio>;
- + __dormant__ {
- + spi0_0_int_pins: spi0_0_int_pins {
- + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi0-0-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi0.1 as a input with no pull-up/down
- + fragment@25 {
- + target = <&gpio>;
- + __dormant__ {
- + spi0_1_int_pins: spi0_1_int_pins {
- + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi0-1-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi1.0 as a input with no pull-up/down
- + fragment@26 {
- + target = <&gpio>;
- + __dormant__ {
- + spi1_0_int_pins: spi1_0_int_pins {
- + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi1-0-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi1.1 as a input with no pull-up/down
- + fragment@27 {
- + target = <&gpio>;
- + __dormant__ {
- + spi1_1_int_pins: spi1_1_int_pins {
- + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi1-1-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi1.2 as a input with no pull-up/down
- + fragment@28 {
- + target = <&gpio>;
- + __dormant__ {
- + spi1_2_int_pins: spi1_2_int_pins {
- + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi1-2-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi2.0 as a input with no pull-up/down
- + fragment@29 {
- + target = <&gpio>;
- + __dormant__ {
- + spi2_0_int_pins: spi2_0_int_pins {
- + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi2-0-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi2.1 as a input with no pull-up/down
- + fragment@30 {
- + target = <&gpio>;
- + __dormant__ {
- + spi2_1_int_pins: spi2_1_int_pins {
- + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi2-1-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + // Configure GPIO pin connected to INT(A/B) output of mcp23s08/17 on spi2.2 as a input with no pull-up/down
- + fragment@31 {
- + target = <&gpio>;
- + __dormant__ {
- + spi2_2_int_pins: spi2_2_int_pins {
- + brcm,pins = <0>; /* overwritten by mcp23s08/17-spi2-2-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + // Enable interrupts for a mcp23s08 on spi0.0.
- + // Use default active low interrupt signalling.
- + fragment@32 {
- + target = <&mcp23s08_00>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + };
- + };
- +
- + // Enable interrupts for a mcp23s08 on spi0.1.
- + // Use default active low interrupt signalling.
- + fragment@33 {
- + target = <&mcp23s08_01>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + };
- + };
- +
- + // Enable interrupts for a mcp23s08 on spi1.0.
- + // Use default active low interrupt signalling.
- + fragment@34 {
- + target = <&mcp23s08_10>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + };
- + };
- +
- + // Enable interrupts for a mcp23s08 on spi1.1.
- + // Use default active low interrupt signalling.
- + fragment@35 {
- + target = <&mcp23s08_11>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + };
- + };
- +
- + // Enable interrupts for a mcp23s08 on spi1.2.
- + // Use default active low interrupt signalling.
- + fragment@36 {
- + target = <&mcp23s08_12>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + };
- + };
- +
- + // Enable interrupts for a mcp23s08 on spi2.0.
- + // Use default active low interrupt signalling.
- + fragment@37 {
- + target = <&mcp23s08_20>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + };
- + };
- +
- + // Enable interrupts for a mcp23s08 on spi2.1.
- + // Use default active low interrupt signalling.
- + fragment@38 {
- + target = <&mcp23s08_21>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + };
- + };
- +
- + // Enable interrupts for a mcp23s08 on spi2.2.
- + // Use default active low interrupt signalling.
- + fragment@39 {
- + target = <&mcp23s08_22>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + };
- + };
- +
- + // Enable interrupts for a mcp23s17 on spi0.0.
- + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
- + // Use default active low interrupt signalling.
- + fragment@40 {
- + target = <&mcp23s17_00>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + microchip,irq-mirror;
- + };
- + };
- +
- + // Enable interrupts for a mcp23s17 on spi0.1.
- + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
- + // Configure INTA/B outputs of mcp23s08/17 as active low.
- + fragment@41 {
- + target = <&mcp23s17_01>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + microchip,irq-mirror;
- + };
- + };
- +
- + // Enable interrupts for a mcp23s17 on spi1.0.
- + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
- + // Configure INTA/B outputs of mcp23s08/17 as active low.
- + fragment@42 {
- + target = <&mcp23s17_10>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + microchip,irq-mirror;
- + };
- + };
- +
- + // Enable interrupts for a mcp23s17 on spi1.1.
- + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
- + // Configure INTA/B outputs of mcp23s08/17 as active low.
- + fragment@43 {
- + target = <&mcp23s17_11>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + microchip,irq-mirror;
- + };
- + };
- +
- + // Enable interrupts for a mcp23s17 on spi1.2.
- + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
- + // Configure INTA/B outputs of mcp23s08/17 as active low.
- + fragment@44 {
- + target = <&mcp23s17_12>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + microchip,irq-mirror;
- + };
- + };
- +
- + // Enable interrupts for a mcp23s17 on spi2.0.
- + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
- + // Configure INTA/B outputs of mcp23s08/17 as active low.
- + fragment@45 {
- + target = <&mcp23s17_20>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + microchip,irq-mirror;
- + };
- + };
- +
- + // Enable interrupts for a mcp23s17 on spi2.1.
- + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
- + // Configure INTA/B outputs of mcp23s08/17 as active low.
- + fragment@46 {
- + target = <&mcp23s17_21>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + microchip,irq-mirror;
- + };
- + };
- +
- + // Enable interrupts for a mcp23s17 on spi2.2.
- + // Enable mirroring so that either INTA or INTB output of mcp23s17 can be connected to the GPIO pin.
- + // Configure INTA/B outputs of mcp23s08/17 as active low.
- + fragment@47 {
- + target = <&mcp23s17_22>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + microchip,irq-mirror;
- + };
- + };
- +
- + __overrides__ {
- + s08-spi0-0-present = <0>,"+0+8", <&mcp23s08_00>,"microchip,spi-present-mask:0";
- + s08-spi0-1-present = <0>,"+1+9", <&mcp23s08_01>,"microchip,spi-present-mask:0";
- + s08-spi1-0-present = <0>,"+2+10", <&mcp23s08_10>,"microchip,spi-present-mask:0";
- + s08-spi1-1-present = <0>,"+3+11", <&mcp23s08_11>,"microchip,spi-present-mask:0";
- + s08-spi1-2-present = <0>,"+4+12", <&mcp23s08_12>,"microchip,spi-present-mask:0";
- + s08-spi2-0-present = <0>,"+5+13", <&mcp23s08_20>,"microchip,spi-present-mask:0";
- + s08-spi2-1-present = <0>,"+6+14", <&mcp23s08_21>,"microchip,spi-present-mask:0";
- + s08-spi2-2-present = <0>,"+7+15", <&mcp23s08_22>,"microchip,spi-present-mask:0";
- + s17-spi0-0-present = <0>,"+0+16", <&mcp23s17_00>,"microchip,spi-present-mask:0";
- + s17-spi0-1-present = <0>,"+1+17", <&mcp23s17_01>,"microchip,spi-present-mask:0";
- + s17-spi1-0-present = <0>,"+2+18", <&mcp23s17_10>,"microchip,spi-present-mask:0";
- + s17-spi1-1-present = <0>,"+3+19", <&mcp23s17_11>,"microchip,spi-present-mask:0";
- + s17-spi1-2-present = <0>,"+4+20", <&mcp23s17_12>,"microchip,spi-present-mask:0";
- + s17-spi2-0-present = <0>,"+5+21", <&mcp23s17_20>,"microchip,spi-present-mask:0";
- + s17-spi2-1-present = <0>,"+6+22", <&mcp23s17_21>,"microchip,spi-present-mask:0";
- + s17-spi2-2-present = <0>,"+7+23", <&mcp23s17_22>,"microchip,spi-present-mask:0";
- + s08-spi0-0-int-gpio = <0>,"+24+32", <&spi0_0_int_pins>,"brcm,pins:0", <&mcp23s08_00>,"interrupts:0";
- + s08-spi0-1-int-gpio = <0>,"+25+33", <&spi0_1_int_pins>,"brcm,pins:0", <&mcp23s08_01>,"interrupts:0";
- + s08-spi1-0-int-gpio = <0>,"+26+34", <&spi1_0_int_pins>,"brcm,pins:0", <&mcp23s08_10>,"interrupts:0";
- + s08-spi1-1-int-gpio = <0>,"+27+35", <&spi1_1_int_pins>,"brcm,pins:0", <&mcp23s08_11>,"interrupts:0";
- + s08-spi1-2-int-gpio = <0>,"+28+36", <&spi1_2_int_pins>,"brcm,pins:0", <&mcp23s08_12>,"interrupts:0";
- + s08-spi2-0-int-gpio = <0>,"+29+37", <&spi2_0_int_pins>,"brcm,pins:0", <&mcp23s08_20>,"interrupts:0";
- + s08-spi2-1-int-gpio = <0>,"+30+38", <&spi2_1_int_pins>,"brcm,pins:0", <&mcp23s08_21>,"interrupts:0";
- + s08-spi2-2-int-gpio = <0>,"+31+39", <&spi2_2_int_pins>,"brcm,pins:0", <&mcp23s08_22>,"interrupts:0";
- + s17-spi0-0-int-gpio = <0>,"+24+40", <&spi0_0_int_pins>,"brcm,pins:0", <&mcp23s17_00>,"interrupts:0";
- + s17-spi0-1-int-gpio = <0>,"+25+41", <&spi0_1_int_pins>,"brcm,pins:0", <&mcp23s17_01>,"interrupts:0";
- + s17-spi1-0-int-gpio = <0>,"+26+42", <&spi1_0_int_pins>,"brcm,pins:0", <&mcp23s17_10>,"interrupts:0";
- + s17-spi1-1-int-gpio = <0>,"+27+43", <&spi1_1_int_pins>,"brcm,pins:0", <&mcp23s17_11>,"interrupts:0";
- + s17-spi1-2-int-gpio = <0>,"+28+44", <&spi1_2_int_pins>,"brcm,pins:0", <&mcp23s17_12>,"interrupts:0";
- + s17-spi2-0-int-gpio = <0>,"+29+45", <&spi2_0_int_pins>,"brcm,pins:0", <&mcp23s17_20>,"interrupts:0";
- + s17-spi2-1-int-gpio = <0>,"+30+46", <&spi2_1_int_pins>,"brcm,pins:0", <&mcp23s17_21>,"interrupts:0";
- + s17-spi2-2-int-gpio = <0>,"+31+47", <&spi2_2_int_pins>,"brcm,pins:0", <&mcp23s17_22>,"interrupts:0";
- + };
- +};
- +
- diff --git a/arch/arm/boot/dts/overlays/mcp2515-can0-overlay.dts b/arch/arm/boot/dts/overlays/mcp2515-can0-overlay.dts
- new file mode 100755
- index 000000000000..46f143d809cc
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/mcp2515-can0-overlay.dts
- @@ -0,0 +1,73 @@
- +/*
- + * Device tree overlay for mcp251x/can0 on spi0.0
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- + /* disable spi-dev for spi0.0 */
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + /* the interrupt pin of the can-controller */
- + fragment@2 {
- + target = <&gpio>;
- + __overlay__ {
- + can0_pins: can0_pins {
- + brcm,pins = <25>;
- + brcm,function = <0>; /* input */
- + };
- + };
- + };
- +
- + /* the clock/oscillator of the can-controller */
- + fragment@3 {
- + target-path = "/";
- + __overlay__ {
- + /* external oscillator of mcp2515 on SPI0.0 */
- + can0_osc: can0_osc {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-frequency = <16000000>;
- + };
- + };
- + };
- +
- + /* the spi config of the can-controller itself binding everything together */
- + fragment@4 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + can0: mcp2515@0 {
- + reg = <0>;
- + compatible = "microchip,mcp2515";
- + pinctrl-names = "default";
- + pinctrl-0 = <&can0_pins>;
- + spi-max-frequency = <10000000>;
- + interrupt-parent = <&gpio>;
- + interrupts = <25 8>; /* IRQ_TYPE_LEVEL_LOW */
- + clocks = <&can0_osc>;
- + };
- + };
- + };
- + __overrides__ {
- + oscillator = <&can0_osc>,"clock-frequency:0";
- + spimaxfrequency = <&can0>,"spi-max-frequency:0";
- + interrupt = <&can0_pins>,"brcm,pins:0",<&can0>,"interrupts:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/mcp2515-can1-overlay.dts b/arch/arm/boot/dts/overlays/mcp2515-can1-overlay.dts
- new file mode 100644
- index 000000000000..0a8dd576818e
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/mcp2515-can1-overlay.dts
- @@ -0,0 +1,73 @@
- +/*
- + * Device tree overlay for mcp251x/can1 on spi0.1 edited by petit_miner
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- + /* disable spi-dev for spi0.1 */
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev1>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + /* the interrupt pin of the can-controller */
- + fragment@2 {
- + target = <&gpio>;
- + __overlay__ {
- + can1_pins: can1_pins {
- + brcm,pins = <25>;
- + brcm,function = <0>; /* input */
- + };
- + };
- + };
- +
- + /* the clock/oscillator of the can-controller */
- + fragment@3 {
- + target-path = "/";
- + __overlay__ {
- + /* external oscillator of mcp2515 on spi0.1 */
- + can1_osc: can1_osc {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-frequency = <16000000>;
- + };
- + };
- + };
- +
- + /* the spi config of the can-controller itself binding everything together */
- + fragment@4 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + can1: mcp2515@1 {
- + reg = <1>;
- + compatible = "microchip,mcp2515";
- + pinctrl-names = "default";
- + pinctrl-0 = <&can1_pins>;
- + spi-max-frequency = <10000000>;
- + interrupt-parent = <&gpio>;
- + interrupts = <25 8>; /* IRQ_TYPE_LEVEL_LOW */
- + clocks = <&can1_osc>;
- + };
- + };
- + };
- + __overrides__ {
- + oscillator = <&can1_osc>,"clock-frequency:0";
- + spimaxfrequency = <&can1>,"spi-max-frequency:0";
- + interrupt = <&can1_pins>,"brcm,pins:0",<&can1>,"interrupts:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/mcp251xfd-overlay.dts b/arch/arm/boot/dts/overlays/mcp251xfd-overlay.dts
- new file mode 100644
- index 000000000000..65c861bbd340
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/mcp251xfd-overlay.dts
- @@ -0,0 +1,226 @@
- +// SPDX-License-Identifier: (GPL-2.0 OR MIT)
- +
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/gpio/gpio.h>
- +#include <dt-bindings/interrupt-controller/irq.h>
- +#include <dt-bindings/pinctrl/bcm2835.h>
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spidev0>;
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev1>;
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target-path = "spi1/spidev@0";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target-path = "spi1/spidev@1";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@4 {
- + target-path = "spi1/spidev@2";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@5 {
- + target-path = "spi2/spidev@0";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@6 {
- + target-path = "spi2/spidev@1";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@7 {
- + target-path = "spi2/spidev@2";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@8 {
- + target = <&gpio>;
- + __overlay__ {
- + mcp251xfd_pins: mcp251xfd_pins {
- + brcm,pins = <25>;
- + brcm,function = <BCM2835_FSEL_GPIO_IN>;
- + };
- + };
- + };
- +
- + fragment@9 {
- + target-path = "/clocks";
- + __overlay__ {
- + clk_mcp251xfd_osc: mcp251xfd-osc {
- + #clock-cells = <0>;
- + compatible = "fixed-clock";
- + clock-frequency = <40000000>;
- + };
- + };
- + };
- +
- + mcp251xfd_frag: fragment@10 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + mcp251xfd: mcp251xfd@0 {
- + compatible = "microchip,mcp251xfd";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&mcp251xfd_pins>;
- + spi-max-frequency = <20000000>;
- + interrupt-parent = <&gpio>;
- + interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
- + clocks = <&clk_mcp251xfd_osc>;
- + };
- + };
- + };
- +
- + fragment@11 {
- + target = <&mcp251xfd>;
- + mcp251xfd_rx_int_gpios: __dormant__ {
- + microchip,rx-int-gpios = <&gpio 255 GPIO_ACTIVE_LOW>;
- + };
- + };
- +
- + fragment@12 {
- + target = <&gpio>;
- + __dormant__ {
- + mcp251xfd_xceiver_pins: mcp251xfd_xceiver_pins {
- + brcm,pins = <255>;
- + brcm,function = <BCM2835_FSEL_GPIO_OUT>;
- + };
- + };
- + };
- +
- + fragment@13 {
- + target-path = "/";
- + __dormant__ {
- + reg_mcp251xfd_xceiver: reg_mcp251xfd_xceiver {
- + compatible = "regulator-fixed";
- + regulator-name = "mcp251xfd_xceiver";
- + regulator-min-microvolt = <3300000>;
- + regulator-max-microvolt = <3300000>;
- + gpio = <&gpio 4 GPIO_ACTIVE_HIGH>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&mcp251xfd_xceiver_pins>;
- + };
- + };
- + };
- +
- + fragment@14 {
- + target = <&mcp251xfd>;
- + __dormant__ {
- + xceiver-supply = <®_mcp251xfd_xceiver>;
- + };
- + };
- +
- + __overrides__ {
- + spi0-0 = <0>, "+0",
- + <&mcp251xfd_frag>, "target:0=", <&spi0>,
- + <&mcp251xfd>, "reg:0=0",
- + <&mcp251xfd_pins>, "name=mcp251xfd_spi0_0_pins",
- + <&clk_mcp251xfd_osc>, "name=mcp251xfd-spi0-0-osc",
- + <&mcp251xfd_xceiver_pins>, "name=mcp251xfd_spi0_0_xceiver_pins",
- + <®_mcp251xfd_xceiver>, "name=reg-mcp251xfd-spi0-0-xceiver",
- + <®_mcp251xfd_xceiver>, "regulator-name=mcp251xfd-spi0-0-xceiver";
- + spi0-1 = <0>, "+1",
- + <&mcp251xfd_frag>, "target:0=", <&spi0>,
- + <&mcp251xfd>, "reg:0=1",
- + <&mcp251xfd_pins>, "name=mcp251xfd_spi0_1_pins",
- + <&clk_mcp251xfd_osc>, "name=mcp251xfd-spi0-1-osc",
- + <&mcp251xfd_xceiver_pins>, "name=mcp251xfd_spi0_1_xceiver_pins",
- + <®_mcp251xfd_xceiver>, "name=reg-mcp251xfd-spi0-1-xceiver",
- + <®_mcp251xfd_xceiver>, "regulator-name=mcp251xfd-spi0-1-xceiver";
- + spi1-0 = <0>, "+2",
- + <&mcp251xfd_frag>, "target:0=", <&spi1>,
- + <&mcp251xfd>, "reg:0=0",
- + <&mcp251xfd_pins>, "name=mcp251xfd_spi1_0_pins",
- + <&clk_mcp251xfd_osc>, "name=mcp251xfd-spi1-0-osc",
- + <&mcp251xfd_xceiver_pins>, "name=mcp251xfd_spi1_0_xceiver_pins",
- + <®_mcp251xfd_xceiver>, "name=reg-mcp251xfd-spi1-0-xceiver",
- + <®_mcp251xfd_xceiver>, "regulator-name=mcp251xfd-spi1-0-xceiver";
- + spi1-1 = <0>, "+3",
- + <&mcp251xfd_frag>, "target:0=", <&spi1>,
- + <&mcp251xfd>, "reg:0=1",
- + <&mcp251xfd_pins>, "name=mcp251xfd_spi1_1_pins",
- + <&clk_mcp251xfd_osc>, "name=mcp251xfd-spi1-1-osc",
- + <&mcp251xfd_xceiver_pins>, "name=mcp251xfd_spi1_1_xceiver_pins",
- + <®_mcp251xfd_xceiver>, "name=reg-mcp251xfd-spi1-1-xceiver",
- + <®_mcp251xfd_xceiver>, "regulator-name=mcp251xfd-spi1-1-xceiver";
- + spi1-2 = <0>, "+4",
- + <&mcp251xfd_frag>, "target:0=", <&spi1>,
- + <&mcp251xfd>, "reg:0=2",
- + <&mcp251xfd_pins>, "name=mcp251xfd_spi1_2_pins",
- + <&clk_mcp251xfd_osc>, "name=mcp251xfd-spi1-2-osc",
- + <&mcp251xfd_xceiver_pins>, "name=mcp251xfd_spi1_2_xceiver_pins",
- + <®_mcp251xfd_xceiver>, "name=reg-mcp251xfd-spi1-2-xceiver",
- + <®_mcp251xfd_xceiver>, "regulator-name=mcp251xfd-spi1-2-xceiver";
- + spi2-0 = <0>, "+5",
- + <&mcp251xfd_frag>, "target:0=", <&spi2>,
- + <&mcp251xfd>, "reg:0=0",
- + <&mcp251xfd_pins>, "name=mcp251xfd_spi2_0_pins",
- + <&clk_mcp251xfd_osc>, "name=mcp251xfd-spi2-0-osc",
- + <&mcp251xfd_xceiver_pins>, "name=mcp251xfd_spi2_0_xceiver_pins",
- + <®_mcp251xfd_xceiver>, "name=reg-mcp251xfd-spi2-0-xceiver",
- + <®_mcp251xfd_xceiver>, "regulator-name=mcp251xfd-spi2-0-xceiver";
- + spi2-1 = <0>, "+6",
- + <&mcp251xfd_frag>, "target:0=", <&spi2>,
- + <&mcp251xfd>, "reg:0=1",
- + <&mcp251xfd_pins>, "name=mcp251xfd_spi2_1_pins",
- + <&clk_mcp251xfd_osc>, "name=mcp251xfd-spi2-1-osc",
- + <&mcp251xfd_xceiver_pins>, "name=mcp251xfd_spi2_1_xceiver_pins",
- + <®_mcp251xfd_xceiver>, "name=reg-mcp251xfd-spi2-1-xceiver",
- + <®_mcp251xfd_xceiver>, "regulator-name=mcp251xfd-spi2-1-xceiver";
- + spi2-2 = <0>, "+7",
- + <&mcp251xfd_frag>, "target:0=", <&spi2>,
- + <&mcp251xfd>, "reg:0=2",
- + <&mcp251xfd_pins>, "name=mcp251xfd_spi2_2_pins",
- + <&clk_mcp251xfd_osc>, "name=mcp251xfd-spi2-2-osc",
- + <&mcp251xfd_xceiver_pins>, "name=mcp251xfd_spi2_2_xceiver_pins",
- + <®_mcp251xfd_xceiver>, "name=reg-mcp251xfd-spi2-2-xceiver",
- + <®_mcp251xfd_xceiver>, "regulator-name=mcp251xfd-spi2-2-xceiver";
- + oscillator = <&clk_mcp251xfd_osc>, "clock-frequency:0";
- + speed = <&mcp251xfd>, "spi-max-frequency:0";
- + interrupt = <&mcp251xfd_pins>, "brcm,pins:0",
- + <&mcp251xfd>, "interrupts:0";
- + rx_interrupt = <0>, "+11",
- + <&mcp251xfd_pins>, "brcm,pins:4",
- + <&mcp251xfd_rx_int_gpios>, "microchip,rx-int-gpios:4";
- + xceiver_enable = <0>, "+12+13+14",
- + <&mcp251xfd_xceiver_pins>, "brcm,pins:0",
- + <®_mcp251xfd_xceiver>, "gpio:4";
- + xceiver_active_high = <®_mcp251xfd_xceiver>, "enable-active-high?";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/mcp3008-overlay.dts b/arch/arm/boot/dts/overlays/mcp3008-overlay.dts
- new file mode 100755
- index 000000000000..957fdb9310af
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/mcp3008-overlay.dts
- @@ -0,0 +1,205 @@
- +/*
- + * Device tree overlay for Microchip mcp3008 10-Bit A/D Converters
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spidev0>;
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev1>;
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target-path = "spi1/spidev@0";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target-path = "spi1/spidev@1";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@4 {
- + target-path = "spi1/spidev@2";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@5 {
- + target-path = "spi2/spidev@0";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@6 {
- + target-path = "spi2/spidev@1";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@7 {
- + target-path = "spi2/spidev@2";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@8 {
- + target = <&spi0>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + mcp3008_00: mcp3008@0 {
- + compatible = "microchip,mcp3008";
- + reg = <0>;
- + spi-max-frequency = <1600000>;
- + };
- + };
- + };
- +
- + fragment@9 {
- + target = <&spi0>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + mcp3008_01: mcp3008@1 {
- + compatible = "microchip,mcp3008";
- + reg = <1>;
- + spi-max-frequency = <1600000>;
- + };
- + };
- + };
- +
- + fragment@10 {
- + target = <&spi1>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + mcp3008_10: mcp3008@0 {
- + compatible = "microchip,mcp3008";
- + reg = <0>;
- + spi-max-frequency = <1600000>;
- + };
- + };
- + };
- +
- + fragment@11 {
- + target = <&spi1>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + mcp3008_11: mcp3008@1 {
- + compatible = "microchip,mcp3008";
- + reg = <1>;
- + spi-max-frequency = <1600000>;
- + };
- + };
- + };
- +
- + fragment@12 {
- + target = <&spi1>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + mcp3008_12: mcp3008@2 {
- + compatible = "microchip,mcp3008";
- + reg = <2>;
- + spi-max-frequency = <1600000>;
- + };
- + };
- + };
- +
- + fragment@13 {
- + target = <&spi2>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + mcp3008_20: mcp3008@0 {
- + compatible = "microchip,mcp3008";
- + reg = <0>;
- + spi-max-frequency = <1600000>;
- + };
- + };
- + };
- +
- + fragment@14 {
- + target = <&spi2>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + mcp3008_21: mcp3008@1 {
- + compatible = "microchip,mcp3008";
- + reg = <1>;
- + spi-max-frequency = <1600000>;
- + };
- + };
- + };
- +
- + fragment@15 {
- + target = <&spi2>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + mcp3008_22: mcp3008@2 {
- + compatible = "microchip,mcp3008";
- + reg = <2>;
- + spi-max-frequency = <1600000>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + spi0-0-present = <0>, "+0+8";
- + spi0-1-present = <0>, "+1+9";
- + spi1-0-present = <0>, "+2+10";
- + spi1-1-present = <0>, "+3+11";
- + spi1-2-present = <0>, "+4+12";
- + spi2-0-present = <0>, "+5+13";
- + spi2-1-present = <0>, "+6+14";
- + spi2-2-present = <0>, "+7+15";
- + spi0-0-speed = <&mcp3008_00>, "spi-max-frequency:0";
- + spi0-1-speed = <&mcp3008_01>, "spi-max-frequency:0";
- + spi1-0-speed = <&mcp3008_10>, "spi-max-frequency:0";
- + spi1-1-speed = <&mcp3008_11>, "spi-max-frequency:0";
- + spi1-2-speed = <&mcp3008_12>, "spi-max-frequency:0";
- + spi2-0-speed = <&mcp3008_20>, "spi-max-frequency:0";
- + spi2-1-speed = <&mcp3008_21>, "spi-max-frequency:0";
- + spi2-2-speed = <&mcp3008_22>, "spi-max-frequency:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/mcp3202-overlay.dts b/arch/arm/boot/dts/overlays/mcp3202-overlay.dts
- new file mode 100755
- index 000000000000..8e4e9f60f285
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/mcp3202-overlay.dts
- @@ -0,0 +1,205 @@
- +/*
- + * Device tree overlay for Microchip mcp3202 12-Bit A/D Converters
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spidev0>;
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev1>;
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target-path = "spi1/spidev@0";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target-path = "spi1/spidev@1";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@4 {
- + target-path = "spi1/spidev@2";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@5 {
- + target-path = "spi2/spidev@0";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@6 {
- + target-path = "spi2/spidev@1";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@7 {
- + target-path = "spi2/spidev@2";
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@8 {
- + target = <&spi0>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + mcp3202_00: mcp3202@0 {
- + compatible = "mcp3202";
- + reg = <0>;
- + spi-max-frequency = <1600000>;
- + };
- + };
- + };
- +
- + fragment@9 {
- + target = <&spi0>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + mcp3202_01: mcp3202@1 {
- + compatible = "mcp3202";
- + reg = <1>;
- + spi-max-frequency = <1600000>;
- + };
- + };
- + };
- +
- + fragment@10 {
- + target = <&spi1>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + mcp3202_10: mcp3202@0 {
- + compatible = "mcp3202";
- + reg = <0>;
- + spi-max-frequency = <1600000>;
- + };
- + };
- + };
- +
- + fragment@11 {
- + target = <&spi1>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + mcp3202_11: mcp3202@1 {
- + compatible = "mcp3202";
- + reg = <1>;
- + spi-max-frequency = <1600000>;
- + };
- + };
- + };
- +
- + fragment@12 {
- + target = <&spi1>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + mcp3202_12: mcp3202@2 {
- + compatible = "mcp3202";
- + reg = <2>;
- + spi-max-frequency = <1600000>;
- + };
- + };
- + };
- +
- + fragment@13 {
- + target = <&spi2>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + mcp3202_20: mcp3202@0 {
- + compatible = "mcp3202";
- + reg = <0>;
- + spi-max-frequency = <1600000>;
- + };
- + };
- + };
- +
- + fragment@14 {
- + target = <&spi2>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + mcp3202_21: mcp3202@1 {
- + compatible = "mcp3202";
- + reg = <1>;
- + spi-max-frequency = <1600000>;
- + };
- + };
- + };
- +
- + fragment@15 {
- + target = <&spi2>;
- + __dormant__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + mcp3202_22: mcp3202@2 {
- + compatible = "mcp3202";
- + reg = <2>;
- + spi-max-frequency = <1600000>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + spi0-0-present = <0>, "+0+8";
- + spi0-1-present = <0>, "+1+9";
- + spi1-0-present = <0>, "+2+10";
- + spi1-1-present = <0>, "+3+11";
- + spi1-2-present = <0>, "+4+12";
- + spi2-0-present = <0>, "+5+13";
- + spi2-1-present = <0>, "+6+14";
- + spi2-2-present = <0>, "+7+15";
- + spi0-0-speed = <&mcp3202_00>, "spi-max-frequency:0";
- + spi0-1-speed = <&mcp3202_01>, "spi-max-frequency:0";
- + spi1-0-speed = <&mcp3202_10>, "spi-max-frequency:0";
- + spi1-1-speed = <&mcp3202_11>, "spi-max-frequency:0";
- + spi1-2-speed = <&mcp3202_12>, "spi-max-frequency:0";
- + spi2-0-speed = <&mcp3202_20>, "spi-max-frequency:0";
- + spi2-1-speed = <&mcp3202_21>, "spi-max-frequency:0";
- + spi2-2-speed = <&mcp3202_22>, "spi-max-frequency:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/mcp342x-overlay.dts b/arch/arm/boot/dts/overlays/mcp342x-overlay.dts
- new file mode 100644
- index 000000000000..714eca5a4b5e
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/mcp342x-overlay.dts
- @@ -0,0 +1,164 @@
- +// Overlay for MCP3421-8 ADCs from Microchip Semiconductor
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + status = "okay";
- +
- + mcp3421: mcp@68 {
- + reg = <0x68>;
- + compatible = "microchip,mcp3421";
- +
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + status = "okay";
- +
- + mcp3422: mcp@68 {
- + reg = <0x68>;
- + compatible = "microchip,mcp3422";
- +
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + status = "okay";
- +
- + mcp3423: mcp@68 {
- + reg = <0x68>;
- + compatible = "microchip,mcp3423";
- +
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + status = "okay";
- +
- + mcp3424: mcp@68 {
- + reg = <0x68>;
- + compatible = "microchip,mcp3424";
- +
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + status = "okay";
- +
- + mcp3425: mcp@68 {
- + reg = <0x68>;
- + compatible = "microchip,mcp3425","mcp3425";
- +
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@5 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + status = "okay";
- +
- + mcp3426: mcp@68 {
- + reg = <0x68>;
- + compatible = "microchip,mcp3426";
- +
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@6 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + status = "okay";
- +
- + mcp3427: mcp@68 {
- + reg = <0x68>;
- + compatible = "microchip,mcp3427";
- +
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@7 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + status = "okay";
- +
- + mcp3428: mcp@68 {
- + reg = <0x68>;
- + compatible = "microchip,mcp3428";
- +
- + status = "okay";
- + };
- + };
- + };
- +
- + __overrides__ {
- + addr = <&mcp3421>,"reg:0",
- + <&mcp3422>,"reg:0",
- + <&mcp3423>,"reg:0",
- + <&mcp3424>,"reg:0",
- + <&mcp3425>,"reg:0",
- + <&mcp3426>,"reg:0",
- + <&mcp3427>,"reg:0",
- + <&mcp3428>,"reg:0";
- + mcp3421 = <0>,"=0";
- + mcp3422 = <0>,"=1";
- + mcp3423 = <0>,"=2";
- + mcp3424 = <0>,"=3";
- + mcp3425 = <0>,"=4";
- + mcp3426 = <0>,"=5";
- + mcp3427 = <0>,"=6";
- + mcp3428 = <0>,"=7";
- + };
- +};
- +
- diff --git a/arch/arm/boot/dts/overlays/media-center-overlay.dts b/arch/arm/boot/dts/overlays/media-center-overlay.dts
- new file mode 100644
- index 000000000000..1b56963f4f16
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/media-center-overlay.dts
- @@ -0,0 +1,134 @@
- +/*
- + * Device Tree overlay for Media Center HAT by Pi Supply
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- +
- + spidev@0{
- + status = "disabled";
- + };
- +
- + spidev@1{
- + status = "disabled";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + rpi_display_pins: rpi_display_pins {
- + brcm,pins = <12 23 24 25>;
- + brcm,function = <1 1 1 0>; /* out out out in */
- + brcm,pull = <0 0 0 2>; /* - - - up */
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + rpidisplay: rpi-display@0{
- + compatible = "ilitek,ili9341";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&rpi_display_pins>;
- +
- + spi-max-frequency = <32000000>;
- + rotate = <90>;
- + bgr;
- + fps = <30>;
- + buswidth = <8>;
- + reset-gpios = <&gpio 23 1>;
- + dc-gpios = <&gpio 24 0>;
- + led-gpios = <&gpio 12 0>;
- + debug = <0>;
- + };
- +
- + rpidisplay_ts: rpi-display-ts@1 {
- + compatible = "ti,ads7846";
- + reg = <1>;
- +
- + spi-max-frequency = <2000000>;
- + interrupts = <25 2>; /* high-to-low edge triggered */
- + interrupt-parent = <&gpio>;
- + pendown-gpio = <&gpio 25 1>;
- + ti,x-plate-ohms = /bits/ 16 <60>;
- + ti,pressure-max = /bits/ 16 <255>;
- + };
- + };
- + };
- +
- + fragment@3 {
- + target-path = "/";
- + __overlay__ {
- + lirc_rpi: lirc_rpi {
- + compatible = "rpi,lirc-rpi";
- + pinctrl-names = "default";
- + pinctrl-0 = <&lirc_pins>;
- + status = "okay";
- +
- + // Override autodetection of IR receiver circuit
- + // (0 = active high, 1 = active low, -1 = no override )
- + rpi,sense = <0xffffffff>;
- +
- + // Software carrier
- + // (0 = off, 1 = on)
- + rpi,softcarrier = <1>;
- +
- + // Invert output
- + // (0 = off, 1 = on)
- + rpi,invert = <0>;
- +
- + // Enable debugging messages
- + // (0 = off, 1 = on)
- + rpi,debug = <0>;
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&gpio>;
- + __overlay__ {
- + lirc_pins: lirc_pins {
- + brcm,pins = <6 5>;
- + brcm,function = <1 0>; // out in
- + brcm,pull = <0 1>; // off down
- + };
- + };
- + };
- +
- + __overrides__ {
- + speed = <&rpidisplay>,"spi-max-frequency:0";
- + rotate = <&rpidisplay>,"rotate:0";
- + fps = <&rpidisplay>,"fps:0";
- + debug = <&rpidisplay>,"debug:0",
- + <&lirc_rpi>,"rpi,debug:0";
- + xohms = <&rpidisplay_ts>,"ti,x-plate-ohms;0";
- + swapxy = <&rpidisplay_ts>,"ti,swap-xy?";
- + backlight = <&rpidisplay>,"led-gpios:4",
- + <&rpi_display_pins>,"brcm,pins:0";
- +
- + gpio_out_pin = <&lirc_pins>,"brcm,pins:0";
- + gpio_in_pin = <&lirc_pins>,"brcm,pins:4";
- + gpio_in_pull = <&lirc_pins>,"brcm,pull:4";
- +
- + sense = <&lirc_rpi>,"rpi,sense:0";
- + softcarrier = <&lirc_rpi>,"rpi,softcarrier:0";
- + invert = <&lirc_rpi>,"rpi,invert:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/merus-amp-overlay.dts b/arch/arm/boot/dts/overlays/merus-amp-overlay.dts
- new file mode 100644
- index 000000000000..4501fbdc253d
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/merus-amp-overlay.dts
- @@ -0,0 +1,60 @@
- +// SPDX-License-Identifier: GPL-2.0-only
- +// Definitions for Infineon Merus-Amp
- +/dts-v1/;
- +/plugin/;
- +#include <dt-bindings/pinctrl/bcm2835.h>
- +#include <dt-bindings/gpio/gpio.h>
- +
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + merus_amp_pins: merus_amp_pins {
- + brcm,pins = <23>;
- + brcm,function = <0>; /* in */
- + brcm,pull = <2>; /* up */
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + merus_amp: ma120x0p@20 {
- + #sound-dai-cells = <0>;
- + compatible = "ma,ma120x0p";
- + reg = <0x20>;
- + status = "okay";
- + pinctrl-names = "default";
- + pinctrl-0 = <&merus_amp_pins>;
- + enable_gp-gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
- + mute_gp-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
- + booster_gp-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
- + error_gp-gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "merus,merus-amp";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/midi-uart0-overlay.dts b/arch/arm/boot/dts/overlays/midi-uart0-overlay.dts
- new file mode 100644
- index 000000000000..f7e44d29e101
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/midi-uart0-overlay.dts
- @@ -0,0 +1,36 @@
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/clock/bcm2835.h>
- +
- +/*
- + * Fake a higher clock rate to get a larger divisor, and thereby a lower
- + * baudrate. The real clock is 48MHz, which we scale so that requesting
- + * 38.4kHz results in an actual 31.25kHz.
- + *
- + * 48000000*38400/31250 = 58982400
- + */
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + midi_clk: midi_clk {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-output-names = "uart0_pclk";
- + clock-frequency = <58982400>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&uart0>;
- + __overlay__ {
- + clocks = <&midi_clk>,
- + <&clocks BCM2835_CLOCK_VPU>;
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/midi-uart1-overlay.dts b/arch/arm/boot/dts/overlays/midi-uart1-overlay.dts
- new file mode 100644
- index 000000000000..e0bc410acbff
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/midi-uart1-overlay.dts
- @@ -0,0 +1,43 @@
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/clock/bcm2835-aux.h>
- +
- +/*
- + * Fake a higher clock rate to get a larger divisor, and thereby a lower
- + * baudrate. The real clock is 48MHz, which we scale so that requesting
- + * 38.4kHz results in an actual 31.25kHz.
- + *
- + * 48000000*38400/31250 = 58982400
- + */
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/clocks";
- + __overlay__ {
- + midi_clk: clock@5 {
- + compatible = "fixed-factor-clock";
- + #clock-cells = <0>;
- + clocks = <&aux BCM2835_AUX_CLOCK_UART>;
- + clock-mult = <38400>;
- + clock-div = <31250>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&uart1>;
- + __overlay__ {
- + clocks = <&midi_clk>;
- + };
- + };
- +
- + fragment@2 {
- + target = <&aux>;
- + __overlay__ {
- + clock-output-names = "aux_uart", "aux_spi1", "aux_spi2";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/midi-uart2-overlay.dts b/arch/arm/boot/dts/overlays/midi-uart2-overlay.dts
- new file mode 100644
- index 000000000000..66f3092e9a74
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/midi-uart2-overlay.dts
- @@ -0,0 +1,37 @@
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/clock/bcm2835.h>
- +
- +/*
- + * Fake a higher clock rate to get a larger divisor, and thereby a lower
- + * baudrate. The real clock is 48MHz, which we scale so that requesting
- + * 38.4kHz results in an actual 31.25kHz.
- + *
- + * 48000000*38400/31250 = 58982400
- + */
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + midi_clk: midi_clk2 {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-output-names = "uart2_pclk";
- + clock-frequency = <58982400>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&uart2>;
- + __overlay__ {
- + clocks = <&midi_clk>,
- + <&clocks BCM2835_CLOCK_VPU>;
- + };
- + };
- +};
- +
- diff --git a/arch/arm/boot/dts/overlays/midi-uart3-overlay.dts b/arch/arm/boot/dts/overlays/midi-uart3-overlay.dts
- new file mode 100644
- index 000000000000..55c6cb94f963
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/midi-uart3-overlay.dts
- @@ -0,0 +1,38 @@
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/clock/bcm2835.h>
- +
- +/*
- + * Fake a higher clock rate to get a larger divisor, and thereby a lower
- + * baudrate. The real clock is 48MHz, which we scale so that requesting
- + * 38.4kHz results in an actual 31.25kHz.
- + *
- + * 48000000*38400/31250 = 58982400
- + */
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + midi_clk: midi_clk3 {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-output-names = "uart3_pclk";
- + clock-frequency = <58982400>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&uart3>;
- + __overlay__ {
- + clocks = <&midi_clk>,
- + <&clocks BCM2835_CLOCK_VPU>;
- + };
- + };
- +};
- +
- +
- diff --git a/arch/arm/boot/dts/overlays/midi-uart4-overlay.dts b/arch/arm/boot/dts/overlays/midi-uart4-overlay.dts
- new file mode 100644
- index 000000000000..5819df1a6b2e
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/midi-uart4-overlay.dts
- @@ -0,0 +1,38 @@
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/clock/bcm2835.h>
- +
- +/*
- + * Fake a higher clock rate to get a larger divisor, and thereby a lower
- + * baudrate. The real clock is 48MHz, which we scale so that requesting
- + * 38.4kHz results in an actual 31.25kHz.
- + *
- + * 48000000*38400/31250 = 58982400
- + */
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + midi_clk: midi_clk4 {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-output-names = "uart4_pclk";
- + clock-frequency = <58982400>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&uart4>;
- + __overlay__ {
- + clocks = <&midi_clk>,
- + <&clocks BCM2835_CLOCK_VPU>;
- + };
- + };
- +};
- +
- +
- diff --git a/arch/arm/boot/dts/overlays/midi-uart5-overlay.dts b/arch/arm/boot/dts/overlays/midi-uart5-overlay.dts
- new file mode 100644
- index 000000000000..a1d37f7103ff
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/midi-uart5-overlay.dts
- @@ -0,0 +1,38 @@
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/clock/bcm2835.h>
- +
- +/*
- + * Fake a higher clock rate to get a larger divisor, and thereby a lower
- + * baudrate. The real clock is 48MHz, which we scale so that requesting
- + * 38.4kHz results in an actual 31.25kHz.
- + *
- + * 48000000*38400/31250 = 58982400
- + */
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + midi_clk: midi_clk5 {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-output-names = "uart5_pclk";
- + clock-frequency = <58982400>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&uart5>;
- + __overlay__ {
- + clocks = <&midi_clk>,
- + <&clocks BCM2835_CLOCK_VPU>;
- + };
- + };
- +};
- +
- +
- diff --git a/arch/arm/boot/dts/overlays/minipitft13-overlay.dts b/arch/arm/boot/dts/overlays/minipitft13-overlay.dts
- new file mode 100644
- index 000000000000..b1a0a2a41f72
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/minipitft13-overlay.dts
- @@ -0,0 +1,70 @@
- +/*
- + * Device Tree overlay for Adafruit Mini PiTFT 1.3" and 1.5" 240x240 Display
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- +
- + spidev@0{
- + status = "disabled";
- + };
- +
- + spidev@1{
- + status = "disabled";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + pitft_pins: pitft_pins {
- + brcm,pins = <25>;
- + brcm,function = <1>; /* out */
- + brcm,pull = <0>; /* none */
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + pitft: pitft@0 {
- + compatible = "fbtft,minipitft13";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&pitft_pins>;
- + spi-max-frequency = <32000000>;
- + rotate = <0>;
- + width = <240>;
- + height = <240>;
- + buswidth = <8>;
- + dc-gpios = <&gpio 25 0>;
- + led-gpios = <&gpio 26 0>;
- + debug = <0>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + speed = <&pitft>,"spi-max-frequency:0";
- + rotate = <&pitft>,"rotate:0";
- + width = <&pitft>,"width:0";
- + height = <&pitft>,"height:0";
- + fps = <&pitft>,"fps:0";
- + debug = <&pitft>,"debug:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/miniuart-bt-overlay.dts b/arch/arm/boot/dts/overlays/miniuart-bt-overlay.dts
- new file mode 100644
- index 000000000000..da49f14a0940
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/miniuart-bt-overlay.dts
- @@ -0,0 +1,93 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/* Switch Pi3 Bluetooth function to use the mini-UART (ttyS0) and restore
- + UART0/ttyAMA0 over GPIOs 14 & 15. Note that this may reduce the maximum
- + usable baudrate.
- +
- + It is also necessary to edit /lib/systemd/system/hciuart.service and
- + replace ttyAMA0 with ttyS0, unless you have a system with udev rules
- + that create /dev/serial0 and /dev/serial1, in which case use /dev/serial1
- + instead because it will always be correct.
- +
- + If cmdline.txt uses the alias serial0 to refer to the user-accessable port
- + then the firmware will replace with the appropriate port whether or not
- + this overlay is used.
- +*/
- +
- +#include <dt-bindings/gpio/gpio.h>
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&uart0>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart0_pins>;
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&bt>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&uart1>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart1_pins &bt_pins &fake_bt_cts>;
- + status = "okay";
- + };
- + };
- +
- + fragment@3 {
- + target = <&uart0_pins>;
- + __overlay__ {
- + brcm,pins;
- + brcm,function;
- + brcm,pull;
- + };
- + };
- +
- + fragment@4 {
- + target = <&uart1_pins>;
- + __overlay__ {
- + brcm,pins = <32 33>;
- + brcm,function = <2>; /* alt5=UART1 */
- + brcm,pull = <0 2>;
- + };
- + };
- +
- + fragment@5 {
- + target = <&gpio>;
- + __overlay__ {
- + fake_bt_cts: fake_bt_cts {
- + brcm,pins = <31>;
- + brcm,function = <1>; /* output */
- + };
- + };
- + };
- +
- + fragment@6 {
- + target-path = "/aliases";
- + __overlay__ {
- + serial0 = "/soc/serial@7e201000";
- + serial1 = "/soc/serial@7e215040";
- + };
- + };
- +
- + fragment@7 {
- + target = <&minibt>;
- + minibt_frag: __overlay__ {
- + };
- + };
- +
- + __overrides__ {
- + krnbt = <&minibt_frag>,"status";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/mmc-overlay.dts b/arch/arm/boot/dts/overlays/mmc-overlay.dts
- new file mode 100644
- index 000000000000..c1a2f691aa1e
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/mmc-overlay.dts
- @@ -0,0 +1,46 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&mmc>;
- + frag0: __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&mmc_pins>;
- + bus-width = <4>;
- + brcm,overclock-50 = <0>;
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + mmc_pins: mmc_pins {
- + brcm,pins = <48 49 50 51 52 53>;
- + brcm,function = <7>; /* alt3 */
- + brcm,pull = <0 2 2 2 2 2>;
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sdhost>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target = <&mmcnr>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + __overrides__ {
- + overclock_50 = <&frag0>,"brcm,overclock-50:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/mpu6050-overlay.dts b/arch/arm/boot/dts/overlays/mpu6050-overlay.dts
- new file mode 100644
- index 000000000000..1b4c06535687
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/mpu6050-overlay.dts
- @@ -0,0 +1,29 @@
- +// Definitions for MPU6050
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- + clock-frequency = <400000>;
- +
- + mpu6050: mpu6050@68 {
- + compatible = "invensense,mpu6050";
- + reg = <0x68>;
- + interrupt-parent = <&gpio>;
- + interrupts = <4 1>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + interrupt = <&mpu6050>,"interrupts:0";
- + addr = <&mpu6050>,"reg:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/mz61581-overlay.dts b/arch/arm/boot/dts/overlays/mz61581-overlay.dts
- new file mode 100644
- index 000000000000..6e00e8b2ddf2
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/mz61581-overlay.dts
- @@ -0,0 +1,117 @@
- +/*
- + * Device Tree overlay for MZ61581-PI-EXT 2014.12.28 by Tontec
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&spidev1>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target = <&gpio>;
- + __overlay__ {
- + mz61581_pins: mz61581_pins {
- + brcm,pins = <4 15 18 25>;
- + brcm,function = <0 1 1 1>; /* in out out out */
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + mz61581: mz61581@0{
- + compatible = "samsung,s6d02a1";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&mz61581_pins>;
- +
- + spi-max-frequency = <128000000>;
- + spi-cpol;
- + spi-cpha;
- +
- + width = <320>;
- + height = <480>;
- + rotate = <270>;
- + bgr;
- + fps = <30>;
- + buswidth = <8>;
- + txbuflen = <32768>;
- +
- + reset-gpios = <&gpio 15 1>;
- + dc-gpios = <&gpio 25 0>;
- + led-gpios = <&gpio 18 0>;
- +
- + init = <0x10000b0 00
- + 0x1000011
- + 0x20000ff
- + 0x10000b3 0x02 0x00 0x00 0x00
- + 0x10000c0 0x13 0x3b 0x00 0x02 0x00 0x01 0x00 0x43
- + 0x10000c1 0x08 0x16 0x08 0x08
- + 0x10000c4 0x11 0x07 0x03 0x03
- + 0x10000c6 0x00
- + 0x10000c8 0x03 0x03 0x13 0x5c 0x03 0x07 0x14 0x08 0x00 0x21 0x08 0x14 0x07 0x53 0x0c 0x13 0x03 0x03 0x21 0x00
- + 0x1000035 0x00
- + 0x1000036 0xa0
- + 0x100003a 0x55
- + 0x1000044 0x00 0x01
- + 0x10000d0 0x07 0x07 0x1d 0x03
- + 0x10000d1 0x03 0x30 0x10
- + 0x10000d2 0x03 0x14 0x04
- + 0x1000029
- + 0x100002c>;
- +
- + /* This is a workaround to make sure the init sequence slows down and doesn't fail */
- + debug = <3>;
- + };
- +
- + mz61581_ts: mz61581_ts@1 {
- + compatible = "ti,ads7846";
- + reg = <1>;
- +
- + spi-max-frequency = <2000000>;
- + interrupts = <4 2>; /* high-to-low edge triggered */
- + interrupt-parent = <&gpio>;
- + pendown-gpio = <&gpio 4 0>;
- +
- + ti,x-plate-ohms = /bits/ 16 <60>;
- + ti,pressure-max = /bits/ 16 <255>;
- + };
- + };
- + };
- + __overrides__ {
- + speed = <&mz61581>, "spi-max-frequency:0";
- + rotate = <&mz61581>, "rotate:0";
- + fps = <&mz61581>, "fps:0";
- + txbuflen = <&mz61581>, "txbuflen:0";
- + debug = <&mz61581>, "debug:0";
- + xohms = <&mz61581_ts>,"ti,x-plate-ohms;0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/ov5647-overlay.dts b/arch/arm/boot/dts/overlays/ov5647-overlay.dts
- new file mode 100644
- index 000000000000..d7ed4703c9b0
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/ov5647-overlay.dts
- @@ -0,0 +1,94 @@
- +// SPDX-License-Identifier: GPL-2.0-only
- +// Definitions for OV5647 camera module on VC I2C bus
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c_csi_dsi>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + ov5647: ov5647@36 {
- + compatible = "ovti,ov5647";
- + reg = <0x36>;
- + status = "okay";
- +
- + pwdn-gpios = <&gpio 41 1>, <&gpio 32 1>;
- + clocks = <&ov5647_clk>;
- +
- + rotation = <0>;
- + orientation = <2>;
- +
- + port {
- + ov5647_0: endpoint {
- + remote-endpoint = <&csi1_ep>;
- + clock-lanes = <0>;
- + data-lanes = <1 2>;
- + clock-noncontinuous;
- + link-frequencies =
- + /bits/ 64 <297000000>;
- + };
- + };
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&csi1>;
- + __overlay__ {
- + status = "okay";
- +
- + port {
- + csi1_ep: endpoint {
- + remote-endpoint = <&ov5647_0>;
- + data-lanes = <1 2>;
- + };
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c0if>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@3 {
- + target = <&i2c0mux>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@4 {
- + target-path="/__overrides__";
- + __overlay__ {
- + cam0-pwdn-ctrl = <&ov5647>,"pwdn-gpios:0";
- + cam0-pwdn = <&ov5647>,"pwdn-gpios:4";
- + cam0-led-ctrl = <&ov5647>,"pwdn-gpios:12";
- + cam0-led = <&ov5647>,"pwdn-gpios:16";
- + };
- + };
- +
- + fragment@5 {
- + target-path = "/";
- + __overlay__ {
- + ov5647_clk: camera-clk {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-frequency = <25000000>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + rotation = <&ov5647>,"rotation:0";
- + orientation = <&ov5647>,"orientation:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/ov7251-overlay.dts b/arch/arm/boot/dts/overlays/ov7251-overlay.dts
- new file mode 100644
- index 000000000000..09dbeda39d06
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/ov7251-overlay.dts
- @@ -0,0 +1,113 @@
- +// SPDX-License-Identifier: GPL-2.0-only
- +// Definitions for OV7251 camera module on VC I2C bus
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/gpio/gpio.h>
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c_csi_dsi>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + ov7251: ov7251@60 {
- + compatible = "ovti,ov7251";
- + reg = <0x60>;
- + status = "okay";
- +
- + clocks = <&ov7251_clk>;
- + clock-names = "xclk";
- + clock-frequency = <24000000>;
- +
- + vdddo-supply = <&ov7251_dovdd>;
- + vdda-supply = <&cam1_reg>;
- + vddd-supply = <&ov7251_dvdd>;
- +
- + rotation = <0>;
- + orientation = <2>;
- +
- + port {
- + ov7251_0: endpoint {
- + remote-endpoint = <&csi1_ep>;
- + clock-lanes = <0>;
- + data-lanes = <1>;
- + clock-noncontinuous;
- + link-frequencies =
- + /bits/ 64 <456000000>;
- + };
- + };
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&csi1>;
- + __overlay__ {
- + status = "okay";
- +
- + port {
- + csi1_ep: endpoint {
- + remote-endpoint = <&ov7251_0>;
- + data-lanes = <1>;
- + };
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c0if>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@3 {
- + target-path="/";
- + __overlay__ {
- + ov7251_dovdd: fixedregulator@1 {
- + compatible = "regulator-fixed";
- + regulator-name = "ov7251_dovdd";
- + regulator-min-microvolt = <1800000>;
- + regulator-max-microvolt = <1800000>;
- + };
- + ov7251_dvdd: fixedregulator@2 {
- + compatible = "regulator-fixed";
- + regulator-name = "ov7251_dvdd";
- + regulator-min-microvolt = <1200000>;
- + regulator-max-microvolt = <1200000>;
- + };
- + ov7251_clk: ov7251-clk {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-frequency = <24000000>;
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&i2c0mux>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@5 {
- + target = <&cam1_reg>;
- + __overlay__ {
- + status = "okay";
- + regulator-name = "ov7251_avdd";
- + regulator-min-microvolt = <2800000>;
- + regulator-max-microvolt = <2800000>;
- + };
- + };
- +
- + __overrides__ {
- + rotation = <&ov7251>,"rotation:0";
- + orientation = <&ov7251>,"orientation:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/ov9281-overlay.dts b/arch/arm/boot/dts/overlays/ov9281-overlay.dts
- new file mode 100644
- index 000000000000..277236c03358
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/ov9281-overlay.dts
- @@ -0,0 +1,113 @@
- +// SPDX-License-Identifier: GPL-2.0-only
- +// Definitions for OV9281 camera module on VC I2C bus
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/gpio/gpio.h>
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c_csi_dsi>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + ov9281: ov9281@60 {
- + compatible = "ovti,ov9281";
- + reg = <0x60>;
- + status = "okay";
- +
- + clocks = <&ov9281_clk>;
- + clock-names = "xvclk";
- +
- + avdd-supply = <&cam1_reg>;
- + dovdd-supply = <&ov9281_dovdd>;
- + dvdd-supply = <&ov9281_dvdd>;
- +
- + rotation = <0>;
- + orientation = <2>;
- +
- + port {
- + ov9281_0: endpoint {
- + remote-endpoint = <&csi1_ep>;
- + clock-lanes = <0>;
- + data-lanes = <1 2>;
- + clock-noncontinuous;
- + link-frequencies =
- + /bits/ 64 <400000000>;
- + };
- + };
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&csi1>;
- + __overlay__ {
- + status = "okay";
- +
- + port {
- + csi1_ep: endpoint {
- + remote-endpoint = <&ov9281_0>;
- + data-lanes = <1 2>;
- + clock-noncontinuous;
- + };
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c0if>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@3 {
- + target-path="/";
- + __overlay__ {
- + ov9281_dovdd: fixedregulator@1 {
- + compatible = "regulator-fixed";
- + regulator-name = "ov9281_dovdd";
- + regulator-min-microvolt = <1800000>;
- + regulator-max-microvolt = <1800000>;
- + };
- + ov9281_dvdd: fixedregulator@2 {
- + compatible = "regulator-fixed";
- + regulator-name = "ov9281_dvdd";
- + regulator-min-microvolt = <1200000>;
- + regulator-max-microvolt = <1200000>;
- + };
- + ov9281_clk: ov9281-clk {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-frequency = <24000000>;
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&i2c0mux>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@5 {
- + target = <&cam1_reg>;
- + __overlay__ {
- + status = "okay";
- + regulator-name = "ov9281_avdd";
- + regulator-min-microvolt = <2800000>;
- + regulator-max-microvolt = <2800000>;
- + };
- + };
- +
- + __overrides__ {
- + rotation = <&ov9281>,"rotation:0";
- + orientation = <&ov9281>,"orientation:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/overlay_map.dts b/arch/arm/boot/dts/overlays/overlay_map.dts
- new file mode 100644
- index 000000000000..bc6e3bce22c7
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/overlay_map.dts
- @@ -0,0 +1,158 @@
- +/dts-v1/;
- +
- +/ {
- + bmp085_i2c-sensor {
- + deprecated = "use i2c-sensor,bmp085";
- + };
- +
- + highperi {
- + bcm2711;
- + };
- +
- + i2c0-bcm2708 {
- + deprecated = "use i2c0";
- + };
- +
- + i2c1-bcm2708 {
- + deprecated = "use i2c1";
- + };
- +
- + i2c3 {
- + bcm2711;
- + };
- +
- + i2c4 {
- + bcm2711;
- + };
- +
- + i2c5 {
- + bcm2711;
- + };
- +
- + i2c6 {
- + bcm2711;
- + };
- +
- + lirc-rpi {
- + deprecated = "use gpio-ir";
- + };
- +
- + pcie-32bit-dma {
- + bcm2711;
- + };
- +
- + pi3-act-led {
- + renamed = "act-led";
- + };
- +
- + pi3-disable-bt {
- + renamed = "disable-bt";
- + };
- +
- + pi3-disable-wifi {
- + renamed = "disable-wifi";
- + };
- +
- + pi3-miniuart-bt {
- + renamed = "miniuart-bt";
- + };
- +
- + rpivid-v4l2 {
- + bcm2711;
- + };
- +
- + sdio-1bit {
- + deprecated = "use sdio,bus_width=1,gpios_22_25";
- + };
- +
- + sdtweak {
- + deprecated = "use 'dtparam=sd_poll_once' etc.";
- + };
- +
- + spi0-cs {
- + renamed = "spi0-2cs";
- + };
- +
- + spi0-hw-cs {
- + deprecated = "no longer necessary";
- + };
- +
- + spi3-1cs {
- + bcm2711;
- + };
- +
- + spi3-2cs {
- + bcm2711;
- + };
- +
- + spi4-1cs {
- + bcm2711;
- + };
- +
- + spi4-2cs {
- + bcm2711;
- + };
- +
- + spi5-1cs {
- + bcm2711;
- + };
- +
- + spi5-2cs {
- + bcm2711;
- + };
- +
- + spi6-1cs {
- + bcm2711;
- + };
- +
- + spi6-2cs {
- + bcm2711;
- + };
- +
- + uart2 {
- + bcm2711;
- + };
- +
- + uart3 {
- + bcm2711;
- + };
- +
- + uart4 {
- + bcm2711;
- + };
- +
- + uart5 {
- + bcm2711;
- + };
- +
- + upstream {
- + bcm2835;
- + bcm2711 = "upstream-pi4";
- + };
- +
- + upstream-aux-interrupt {
- + deprecated = "no longer necessary";
- + };
- +
- + upstream-pi4 {
- + bcm2711;
- + };
- +
- + vc4-fkms-v3d {
- + bcm2835;
- + bcm2711 = "vc4-fkms-v3d-pi4";
- + };
- +
- + vc4-fkms-v3d-pi4 {
- + bcm2711;
- + };
- +
- + vc4-kms-v3d {
- + bcm2835;
- + bcm2711 = "vc4-kms-v3d-pi4";
- + };
- +
- + vc4-kms-v3d-pi4 {
- + bcm2711;
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/papirus-overlay.dts b/arch/arm/boot/dts/overlays/papirus-overlay.dts
- new file mode 100644
- index 000000000000..7b6bcfd49c86
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/papirus-overlay.dts
- @@ -0,0 +1,89 @@
- +/* PaPiRus ePaper Screen by Pi Supply */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c_arm>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + display_temp: lm75@48 {
- + compatible = "lm75b";
- + reg = <0x48>;
- + status = "okay";
- + #thermal-sensor-cells = <0>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + thermal-zones {
- + display {
- + polling-delay-passive = <0>;
- + polling-delay = <0>;
- + thermal-sensors = <&display_temp>;
- + };
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- +
- + spidev@0{
- + status = "disabled";
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&gpio>;
- + __overlay__ {
- + repaper_pins: repaper_pins {
- + brcm,pins = <14 15 23 24 25>;
- + brcm,function = <1 1 1 1 0>; /* out out out out in */
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + repaper: repaper@0{
- + compatible = "not_set";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&repaper_pins>;
- +
- + spi-max-frequency = <8000000>;
- +
- + panel-on-gpios = <&gpio 23 0>;
- + border-gpios = <&gpio 14 0>;
- + discharge-gpios = <&gpio 15 0>;
- + reset-gpios = <&gpio 24 0>;
- + busy-gpios = <&gpio 25 0>;
- +
- + repaper-thermal-zone = "display";
- + };
- + };
- + };
- +
- + __overrides__ {
- + panel = <&repaper>, "compatible";
- + speed = <&repaper>, "spi-max-frequency:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/pca953x-overlay.dts b/arch/arm/boot/dts/overlays/pca953x-overlay.dts
- new file mode 100644
- index 000000000000..8b6ee44665ce
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/pca953x-overlay.dts
- @@ -0,0 +1,240 @@
- +// Definitions for NXP PCA953x family of I2C GPIO controllers on ARM I2C bus.
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c_arm>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + pca: pca@20 {
- + compatible = "nxp,pca9534";
- + reg = <0x20>;
- + gpio-controller;
- + #gpio-cells = <2>;
- +
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "nxp,pca6416";
- + };
- + };
- + fragment@2 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "nxp,pca9505";
- + };
- + };
- + fragment@3 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "nxp,pca9535";
- + };
- + };
- + fragment@4 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "nxp,pca9536";
- + };
- + };
- + fragment@5 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "nxp,pca9537";
- + };
- + };
- + fragment@6 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "nxp,pca9538";
- + };
- + };
- + fragment@7 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "nxp,pca9539";
- + };
- + };
- + fragment@8 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "nxp,pca9554";
- + };
- + };
- + fragment@9 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "nxp,pca9555";
- + };
- + };
- + fragment@10 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "nxp,pca9556";
- + };
- + };
- + fragment@11 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "nxp,pca9557";
- + };
- + };
- + fragment@12 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "nxp,pca9574";
- + };
- + };
- + fragment@13 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "nxp,pca9575";
- + };
- + };
- + fragment@14 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "nxp,pca9698";
- + };
- + };
- + fragment@15 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "nxp,pca16416";
- + };
- + };
- + fragment@16 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "nxp,pca16524";
- + };
- + };
- + fragment@17 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "nxp,pca19555a";
- + };
- + };
- + fragment@18 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "maxim,max7310";
- + };
- + };
- + fragment@19 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "maxim,max7312";
- + };
- + };
- + fragment@20 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "maxim,max7313";
- + };
- + };
- + fragment@21 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "maxim,max7315";
- + };
- + };
- + fragment@22 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "ti,pca6107";
- + };
- + };
- + fragment@23 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "ti,tca6408";
- + };
- + };
- + fragment@24 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "ti,tca6416";
- + };
- + };
- + fragment@25 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "ti,tca6424";
- + };
- + };
- + fragment@26 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "ti,tca9539";
- + };
- + };
- + fragment@27 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "ti,tca9554";
- + };
- + };
- + fragment@28 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "onnn,cat9554";
- + };
- + };
- + fragment@29 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "onnn,pca9654";
- + };
- + };
- + fragment@30 {
- + target = <&pca>;
- + __dormant__ {
- + compatible = "exar,xra1202";
- + };
- + };
- +
- + __overrides__ {
- + addr = <&pca>,"reg:0";
- + pca6416 = <0>, "+1";
- + pca9505 = <0>, "+2";
- + pca9535 = <0>, "+3";
- + pca9536 = <0>, "+4";
- + pca9537 = <0>, "+5";
- + pca9538 = <0>, "+6";
- + pca9539 = <0>, "+7";
- + pca9554 = <0>, "+8";
- + pca9555 = <0>, "+9";
- + pca9556 = <0>, "+10";
- + pca9557 = <0>, "+11";
- + pca9574 = <0>, "+12";
- + pca9575 = <0>, "+13";
- + pca9698 = <0>, "+14";
- + pca16416 = <0>, "+15";
- + pca16524 = <0>, "+16";
- + pca19555a = <0>, "+17";
- + max7310 = <0>, "+18";
- + max7312 = <0>, "+19";
- + max7313 = <0>, "+20";
- + max7315 = <0>, "+21";
- + pca6107 = <0>, "+22";
- + tca6408 = <0>, "+23";
- + tca6416 = <0>, "+24";
- + tca6424 = <0>, "+25";
- + tca9539 = <0>, "+26";
- + tca9554 = <0>, "+27";
- + cat9554 = <0>, "+28";
- + pca9654 = <0>, "+29";
- + xra1202 = <0>, "+30";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/pcie-32bit-dma-overlay.dts b/arch/arm/boot/dts/overlays/pcie-32bit-dma-overlay.dts
- new file mode 100644
- index 000000000000..cca3e83721b7
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/pcie-32bit-dma-overlay.dts
- @@ -0,0 +1,18 @@
- +/*
- + * pcie-32bit-dma-overlay.dts
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2711";
- +
- + fragment@0 {
- + target-path = "/aliases";
- + __overlay__ {
- + pcie0 = "";
- + };
- + };
- +
- +};
- diff --git a/arch/arm/boot/dts/overlays/pibell-overlay.dts b/arch/arm/boot/dts/overlays/pibell-overlay.dts
- new file mode 100644
- index 000000000000..9333a9b09772
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/pibell-overlay.dts
- @@ -0,0 +1,81 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + codec_out: spdif-transmitter {
- + #address-cells = <0>;
- + #size-cells = <0>;
- + #sound-dai-cells = <0>;
- + compatible = "linux,spdif-dit";
- + status = "okay";
- + };
- +
- + codec_in: card-codec {
- + #sound-dai-cells = <0>;
- + compatible = "invensense,ics43432";
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2s>;
- + __overlay__ {
- + #sound-dai-cells = <0>;
- + status = "okay";
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + snd: __overlay__ {
- + compatible = "simple-audio-card";
- + simple-audio-card,name = "PiBell";
- +
- + status="okay";
- +
- + capture_link: simple-audio-card,dai-link@0 {
- + format = "i2s";
- +
- + r_cpu_dai: cpu {
- + sound-dai = <&i2s>;
- +
- +/* example TDM slot configuration
- + dai-tdm-slot-num = <2>;
- + dai-tdm-slot-width = <32>;
- +*/
- + };
- +
- + r_codec_dai: codec {
- + sound-dai = <&codec_in>;
- + };
- + };
- +
- + playback_link: simple-audio-card,dai-link@1 {
- + format = "i2s";
- +
- + p_cpu_dai: cpu {
- + sound-dai = <&i2s>;
- +
- +/* example TDM slot configuration
- + dai-tdm-slot-num = <2>;
- + dai-tdm-slot-width = <32>;
- +*/
- + };
- +
- + p_codec_dai: codec {
- + sound-dai = <&codec_out>;
- + };
- + };
- + };
- + };
- +
- + __overrides__ {
- + alsaname = <&snd>, "simple-audio-card,name";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/pifacedigital-overlay.dts b/arch/arm/boot/dts/overlays/pifacedigital-overlay.dts
- new file mode 100644
- index 000000000000..532a858683d6
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/pifacedigital-overlay.dts
- @@ -0,0 +1,144 @@
- +// SPDX-License-Identifier: GPL-2.0-only
- +/*
- + * PiFace Digital, Device Tree Overlay.
- + * Copyright (C) 2020 Thomas Preston <[email protected]>
- + *
- + * The PiFace Digital is a convenient breakout board for the Microchip mcp23s17
- + * SPI GPIO port expander.
- + *
- + * The first eight GPIOs 0..7 (bank A) are connected to eight output terminals
- + * and LEDs, plus two relays on the first two outputs. These output loads are
- + * active-high.
- + *
- + * The next eight GPIOs 8..15 (bank B) are connected to eight input terminals
- + * with four on-board switches connecting them to ground. Inputs devices are
- + * therefore expected to bridge terminals to ground, so the mcp23s17 pullups are
- + * activated for GPIO bank B.
- + *
- + * On PiFace Digital, the mcp23s17 is connected to the Raspberry Pi's SPI0 CS0
- + * bus. Each SPI bus supports up to eight addressable child devices. The PiFace
- + * Digital only supports addresses 0-4, which can be configured by jumpers JP1
- + * and JP2.
- + *
- + * You can tell the driver about these jumper configurations with the
- + * spi-present-mask bitmask:
- + *
- + * | JP1 | JP2 | dtoverlay line in /boot/config.txt |
- + * | --- | --- | ------------------------------------------ |
- + * | 0 | 0 | dtoverlay=pifacedigital |
- + * | 0 | 0 | dtoverlay=pifacedigital:spi-present-mask=1 |
- + * | 0 | 1 | dtoverlay=pifacedigital:spi-present-mask=2 |
- + * | 1 | 0 | dtoverlay=pifacedigital:spi-present-mask=4 |
- + * | 1 | 1 | dtoverlay=pifacedigital:spi-present-mask=8 |
- + *
- + * # Example
- + * Set the dtoverlay config in /boot/config.txt and power off the Raspberry Pi:
- + *
- + * $ grep pifacedigital /boot/config.txt
- + * dtoverlay=pifacedigital
- + * $ sudo systemctl poweroff
- + *
- + * Attach the PiFace Digital and power on the Raspberry Pi.
- + * Then use the libgpiod tools to query the device:
- + *
- + * $ sudo apt install gpiod
- + * $ gpiodetect | grep mcp23s17
- + * gpiochip2 [mcp23s17.0] (16 lines)
- + *
- + * Set GPIO outputs 0, 2 and 5:
- + *
- + * $ gpioset gpiochip2 0=1 2=1 5=1
- + *
- + * Get GPIO status (input GPIO 8..15 are high, because they are active-low):
- + *
- + * $ gpioget gpiochip2 {8..15}
- + * 1 1 1 1 1 1 1 1
- + *
- + * And even monitor interrupts:
- + *
- + * $ gpiomon gpiochip2 {8..15}
- + * event: FALLING EDGE offset: 11 timestamp: [1597361662.926741667]
- + * event: RISING EDGE offset: 11 timestamp: [1597361663.062555051]
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + /* Disable exposing /dev/spidev0.0 */
- + fragment@0 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + /* Add the PiFace Digital device node to the spi0.0 device. */
- + fragment@1 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + pfdigital: pifacedigital@0 {
- + compatible = "microchip,mcp23s17";
- + reg = <0>;
- +
- + /* Set devices present with 8-bit mask. */
- + microchip,spi-present-mask = <0x01>;
- + spi-max-frequency = <500000>;
- +
- + gpio-controller;
- + #gpio-cells = <2>;
- +
- + /* This device can pass through interrupts. */
- + interrupt-controller;
- + #interrupt-cells = <2>;
- +
- + /* INTB is connected to GPIO 25.
- + * 0x8 active-low level-sensitive
- + */
- + interrupts = <25 0x8>;
- + interrupt-parent = <&gpio>;
- +
- + /* Configure pull-ups on bank B GPIOs */
- + pinctrl-0 = <&pfdigital_irq &pfdigital_pullups>;
- + pinctrl-names = "default";
- + pfdigital_pullups: pinmux {
- + pins =
- + "gpio8",
- + "gpio9",
- + "gpio10",
- + "gpio11",
- + "gpio12",
- + "gpio13",
- + "gpio14",
- + "gpio15";
- + bias-pull-up;
- + };
- + };
- + };
- + };
- +
- + /* PiFace Digital mcp23s17 INTB pin is connected to GPIO 25. The INTB
- + * pin is configured active-low (0 on interrupt), so expect to see
- + * FALLING_EDGE when inputs are bridged to ground (switch is pressed).
- + */
- + fragment@3 {
- + target = <&gpio>;
- + __overlay__ {
- + pfdigital_irq: pifacedigital_irq {
- + brcm,pins = <25>;
- + brcm,function = <0>; /* input */
- + };
- + };
- + };
- +
- + __overrides__ {
- + spi-present-mask = <&pfdigital>, "microchip,spi-present-mask:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/pifi-40-overlay.dts b/arch/arm/boot/dts/overlays/pifi-40-overlay.dts
- new file mode 100644
- index 000000000000..51a20e54977f
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/pifi-40-overlay.dts
- @@ -0,0 +1,50 @@
- +// Definitions for PiFi-40 Amp
- +/dts-v1/;
- +/plugin/;
- +#include <dt-bindings/gpio/gpio.h>
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + tas5711l: audio-codec@1a {
- + compatible = "ti,tas5711";
- + reg = <0x1a>;
- + #sound-dai-cells = <0>;
- + sound-name-prefix = "Left";
- + status = "okay";
- + };
- +
- + tas5711r: audio-codec@1b {
- + compatible = "ti,tas5711";
- + reg = <0x1b>;
- + #sound-dai-cells = <0>;
- + sound-name-prefix = "Right";
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + pifi_40: __overlay__ {
- + compatible = "pifi,pifi-40";
- + audio-codec = <&tas5711l &tas5711r>;
- + i2s-controller = <&i2s>;
- + pdn-gpios = <&gpio 23 1>;
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/pifi-dac-hd-overlay.dts b/arch/arm/boot/dts/overlays/pifi-dac-hd-overlay.dts
- new file mode 100644
- index 000000000000..67f50db7861a
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/pifi-dac-hd-overlay.dts
- @@ -0,0 +1,49 @@
- +// Overlay for PiFi-DAC-HD
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells =<0>;
- +
- + pcm5142: pcm5142@4c {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm5142";
- + reg = <0x4c>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "simple-audio-card";
- + simple-audio-card,name = "PiFi-DAC-HD";
- + status = "okay";
- +
- + simple-audio-card,dai-link@1 {
- + format = "i2s";
- + cpu {
- + sound-dai = <&i2s>;
- + };
- + codec {
- + sound-dai = <&pcm5142>;
- + };
- + };
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/pifi-dac-zero-overlay.dts b/arch/arm/boot/dts/overlays/pifi-dac-zero-overlay.dts
- new file mode 100644
- index 000000000000..645ea74cb435
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/pifi-dac-zero-overlay.dts
- @@ -0,0 +1,49 @@
- +// Overlay for PiFi-DAC-Zero
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "simple-audio-card";
- + simple-audio-card,name = "PiFi-DAC-Zero";
- + status = "okay";
- +
- + simple-audio-card,dai-link@1 {
- + format = "i2s";
- +
- + cpu {
- + sound-dai = <&i2s>;
- + dai-tdm-slot-num = <2>;
- + dai-tdm-slot-width = <32>;
- + };
- +
- + codec {
- + sound-dai = <&codec_out>;
- + };
- + };
- + };
- + };
- +
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + codec_out: pcm5102a-codec {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm5102a";
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2s>;
- + __overlay__ {
- + #sound-dai-cells = <0>;
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/pifi-mini-210-overlay.dts b/arch/arm/boot/dts/overlays/pifi-mini-210-overlay.dts
- new file mode 100644
- index 000000000000..963597d611b5
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/pifi-mini-210-overlay.dts
- @@ -0,0 +1,42 @@
- +// Definitions for PiFi Mini 210
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + tas5711@1a {
- + #sound-dai-cells = <0>;
- + compatible = "ti,tas5711";
- + reg = <0x1a>;
- + status = "okay";
- + pdn-gpios = <&gpio 23 1>;
- + reset-gpios = <&gpio 24 1>;
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "pifi,pifi-mini-210";
- + i2s-controller = <&i2s>;
- +
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/piglow-overlay.dts b/arch/arm/boot/dts/overlays/piglow-overlay.dts
- new file mode 100644
- index 000000000000..075bceef158c
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/piglow-overlay.dts
- @@ -0,0 +1,97 @@
- +// Definitions for SN3218 LED driver from Si-En Technology on PiGlow
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c_arm>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + sn3218@54 {
- + compatible = "si-en,sn3218";
- + reg = <0x54>;
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + led@1 {
- + reg = <1>;
- + label = "piglow:red:led1";
- + };
- + led@2 {
- + reg = <2>;
- + label = "piglow:orange:led2";
- + };
- + led@3 {
- + reg = <3>;
- + label = "piglow:yellow:led3";
- + };
- + led@4 {
- + reg = <4>;
- + label = "piglow:green:led4";
- + };
- + led@5 {
- + reg = <5>;
- + label = "piglow:blue:led5";
- + };
- + led@6 {
- + reg = <6>;
- + label = "piglow:green:led6";
- + };
- + led@7 {
- + reg = <7>;
- + label = "piglow:red:led7";
- + };
- + led@8 {
- + reg = <8>;
- + label = "piglow:orange:led8";
- + };
- + led@9 {
- + reg = <9>;
- + label = "piglow:yellow:led9";
- + };
- + led@10 {
- + reg = <10>;
- + label = "piglow:white:led10";
- + };
- + led@11 {
- + reg = <11>;
- + label = "piglow:white:led11";
- + };
- + led@12 {
- + reg = <12>;
- + label = "piglow:blue:led12";
- + };
- + led@13 {
- + reg = <13>;
- + label = "piglow:white:led13";
- + };
- + led@14 {
- + reg = <14>;
- + label = "piglow:green:led14";
- + };
- + led@15 {
- + reg = <15>;
- + label = "piglow:blue:led15";
- + };
- + led@16 {
- + reg = <16>;
- + label = "piglow:yellow:led16";
- + };
- + led@17 {
- + reg = <17>;
- + label = "piglow:orange:led17";
- + };
- + led@18 {
- + reg = <18>;
- + label = "piglow:red:led18";
- + };
- + };
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/piscreen-overlay.dts b/arch/arm/boot/dts/overlays/piscreen-overlay.dts
- new file mode 100644
- index 000000000000..1ac75a248fab
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/piscreen-overlay.dts
- @@ -0,0 +1,102 @@
- +/*
- + * Device Tree overlay for PiScreen 3.5" display shield by Ozzmaker
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&spidev1>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target = <&gpio>;
- + __overlay__ {
- + piscreen_pins: piscreen_pins {
- + brcm,pins = <17 25 24 22>;
- + brcm,function = <0 1 1 1>; /* in out out out */
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + piscreen: piscreen@0{
- + compatible = "ilitek,ili9486";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&piscreen_pins>;
- +
- + spi-max-frequency = <24000000>;
- + rotate = <270>;
- + bgr;
- + fps = <30>;
- + buswidth = <8>;
- + regwidth = <16>;
- + reset-gpios = <&gpio 25 1>;
- + dc-gpios = <&gpio 24 0>;
- + led-gpios = <&gpio 22 0>;
- + debug = <0>;
- +
- + init = <0x10000b0 0x00
- + 0x1000011
- + 0x20000ff
- + 0x100003a 0x55
- + 0x1000036 0x28
- + 0x10000c2 0x44
- + 0x10000c5 0x00 0x00 0x00 0x00
- + 0x10000e0 0x0f 0x1f 0x1c 0x0c 0x0f 0x08 0x48 0x98 0x37 0x0a 0x13 0x04 0x11 0x0d 0x00
- + 0x10000e1 0x0f 0x32 0x2e 0x0b 0x0d 0x05 0x47 0x75 0x37 0x06 0x10 0x03 0x24 0x20 0x00
- + 0x10000e2 0x0f 0x32 0x2e 0x0b 0x0d 0x05 0x47 0x75 0x37 0x06 0x10 0x03 0x24 0x20 0x00
- + 0x1000011
- + 0x1000029>;
- + };
- +
- + piscreen_ts: piscreen-ts@1 {
- + compatible = "ti,ads7846";
- + reg = <1>;
- +
- + spi-max-frequency = <2000000>;
- + interrupts = <17 2>; /* high-to-low edge triggered */
- + interrupt-parent = <&gpio>;
- + pendown-gpio = <&gpio 17 0>;
- + ti,swap-xy;
- + ti,x-plate-ohms = /bits/ 16 <100>;
- + ti,pressure-max = /bits/ 16 <255>;
- + };
- + };
- + };
- + __overrides__ {
- + speed = <&piscreen>,"spi-max-frequency:0";
- + rotate = <&piscreen>,"rotate:0";
- + fps = <&piscreen>,"fps:0";
- + debug = <&piscreen>,"debug:0";
- + xohms = <&piscreen_ts>,"ti,x-plate-ohms;0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/piscreen2r-overlay.dts b/arch/arm/boot/dts/overlays/piscreen2r-overlay.dts
- new file mode 100644
- index 000000000000..9d2b51101969
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/piscreen2r-overlay.dts
- @@ -0,0 +1,106 @@
- + /*
- + * Device Tree overlay for PiScreen2 3.5" TFT with resistive touch by Ozzmaker.com
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&spidev1>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target = <&gpio>;
- + __overlay__ {
- + piscreen2_pins: piscreen2_pins {
- + brcm,pins = <17 25 24 22>;
- + brcm,function = <0 1 1 1>; /* in out out out */
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + piscreen2: piscreen2@0{
- + compatible = "ilitek,ili9486";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&piscreen2_pins>;
- + bgr;
- + spi-max-frequency = <64000000>;
- + rotate = <90>;
- + fps = <30>;
- + buswidth = <8>;
- + regwidth = <16>;
- + txbuflen = <32768>;
- + reset-gpios = <&gpio 25 1>;
- + dc-gpios = <&gpio 24 0>;
- + led-gpios = <&gpio 22 0>;
- + debug = <0>;
- +
- + init = <0x10000b0 0x00
- + 0x1000011
- + 0x20000ff
- + 0x100003a 0x55
- + 0x1000036 0x28
- + 0x10000c0 0x11 0x09
- + 0x10000c1 0x41
- + 0x10000c5 0x00 0x00 0x00 0x00
- + 0x10000b6 0x00 0x02
- + 0x10000f7 0xa9 0x51 0x2c 0x2
- + 0x10000be 0x00 0x04
- + 0x10000e9 0x00
- + 0x1000011
- + 0x1000029>;
- +
- + };
- +
- + piscreen2_ts: piscreen2-ts@1 {
- + compatible = "ti,ads7846";
- + reg = <1>;
- +
- + spi-max-frequency = <2000000>;
- + interrupts = <17 2>; /* high-to-low edge triggered */
- + interrupt-parent = <&gpio>;
- + pendown-gpio = <&gpio 17 0>;
- + ti,swap-xy;
- + ti,x-plate-ohms = /bits/ 16 <100>;
- + ti,pressure-max = /bits/ 16 <255>;
- + };
- + };
- + };
- + __overrides__ {
- + speed = <&piscreen2>,"spi-max-frequency:0";
- + rotate = <&piscreen2>,"rotate:0";
- + fps = <&piscreen2>,"fps:0";
- + debug = <&piscreen2>,"debug:0";
- + xohms = <&piscreen2_ts>,"ti,x-plate-ohms;0";
- + };
- +};
- +
- diff --git a/arch/arm/boot/dts/overlays/pisound-overlay.dts b/arch/arm/boot/dts/overlays/pisound-overlay.dts
- new file mode 100644
- index 000000000000..49efb2b768fb
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/pisound-overlay.dts
- @@ -0,0 +1,120 @@
- +/*
- + * Pisound Linux kernel module.
- + * Copyright (C) 2016-2017 Vilniaus Blokas UAB, https://blokas.io/pisound
- + *
- + * This program 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; version 2 of the
- + * License.
- + *
- + * This program 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.
- + *
- + * You should have received a copy of the GNU General Public License
- + * along with this program; if not, write to the Free Software
- + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/gpio/gpio.h>
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&spidev1>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@3 {
- + target = <&spi0>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + pisound_spi: pisound_spi@0{
- + compatible = "blokaslabs,pisound-spi";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi0_pins>;
- + spi-max-frequency = <1000000>;
- + };
- + };
- + };
- +
- + fragment@4 {
- + target-path = "/";
- + __overlay__ {
- + pcm5102a-codec {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm5102a";
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@5 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "blokaslabs,pisound";
- + i2s-controller = <&i2s>;
- + status = "okay";
- +
- + pinctrl-0 = <&pisound_button_pins>;
- +
- + osr-gpios =
- + <&gpio 13 GPIO_ACTIVE_HIGH>,
- + <&gpio 26 GPIO_ACTIVE_HIGH>,
- + <&gpio 16 GPIO_ACTIVE_HIGH>;
- +
- + reset-gpios =
- + <&gpio 12 GPIO_ACTIVE_HIGH>,
- + <&gpio 24 GPIO_ACTIVE_HIGH>;
- +
- + data_available-gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
- +
- + button-gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
- + };
- + };
- +
- + fragment@6 {
- + target = <&gpio>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&pisound_button_pins>;
- +
- + pisound_button_pins: pisound_button_pins {
- + brcm,pins = <17>;
- + brcm,function = <0>; // Input
- + brcm,pull = <2>; // Pull-Up
- + };
- + };
- + };
- +
- + fragment@7 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/pitft22-overlay.dts b/arch/arm/boot/dts/overlays/pitft22-overlay.dts
- new file mode 100644
- index 000000000000..589ad13795b1
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/pitft22-overlay.dts
- @@ -0,0 +1,69 @@
- +/*
- + * Device Tree overlay for pitft by Adafruit
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- +
- + spidev@0{
- + status = "disabled";
- + };
- +
- + spidev@1{
- + status = "disabled";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + pitft_pins: pitft_pins {
- + brcm,pins = <25>;
- + brcm,function = <1>; /* out */
- + brcm,pull = <0>; /* none */
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + pitft: pitft@0{
- + compatible = "ilitek,ili9340";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&pitft_pins>;
- +
- + spi-max-frequency = <32000000>;
- + rotate = <90>;
- + fps = <25>;
- + bgr;
- + buswidth = <8>;
- + dc-gpios = <&gpio 25 0>;
- + debug = <0>;
- + };
- +
- + };
- + };
- +
- + __overrides__ {
- + speed = <&pitft>,"spi-max-frequency:0";
- + rotate = <&pitft>,"rotate:0";
- + fps = <&pitft>,"fps:0";
- + debug = <&pitft>,"debug:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/pitft28-capacitive-overlay.dts b/arch/arm/boot/dts/overlays/pitft28-capacitive-overlay.dts
- new file mode 100644
- index 000000000000..33901ee1db7a
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/pitft28-capacitive-overlay.dts
- @@ -0,0 +1,91 @@
- +/*
- + * Device Tree overlay for Adafruit PiTFT 2.8" capacitive touch screen
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&gpio>;
- + __overlay__ {
- + pitft_pins: pitft_pins {
- + brcm,pins = <24 25>;
- + brcm,function = <0 1>; /* in out */
- + brcm,pull = <2 0>; /* pullup none */
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + pitft: pitft@0{
- + compatible = "ilitek,ili9340";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&pitft_pins>;
- +
- + spi-max-frequency = <32000000>;
- + rotate = <90>;
- + fps = <25>;
- + bgr;
- + buswidth = <8>;
- + dc-gpios = <&gpio 25 0>;
- + debug = <0>;
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&i2c1>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + ft6236: ft6236@38 {
- + compatible = "focaltech,ft6236";
- + reg = <0x38>;
- +
- + interrupt-parent = <&gpio>;
- + interrupts = <24 2>;
- + touchscreen-size-x = <240>;
- + touchscreen-size-y = <320>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + speed = <&pitft>,"spi-max-frequency:0";
- + rotate = <&pitft>,"rotate:0";
- + fps = <&pitft>,"fps:0";
- + debug = <&pitft>,"debug:0";
- + touch-sizex = <&ft6236>,"touchscreen-size-x?";
- + touch-sizey = <&ft6236>,"touchscreen-size-y?";
- + touch-invx = <&ft6236>,"touchscreen-inverted-x?";
- + touch-invy = <&ft6236>,"touchscreen-inverted-y?";
- + touch-swapxy = <&ft6236>,"touchscreen-swapped-x-y?";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/pitft28-resistive-overlay.dts b/arch/arm/boot/dts/overlays/pitft28-resistive-overlay.dts
- new file mode 100644
- index 000000000000..4a4a3f44c29d
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/pitft28-resistive-overlay.dts
- @@ -0,0 +1,119 @@
- +/*
- + * Device Tree overlay for Adafruit PiTFT 2.8" resistive touch screen
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&spidev1>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target = <&gpio>;
- + __overlay__ {
- + pitft_pins: pitft_pins {
- + brcm,pins = <24 25>;
- + brcm,function = <0 1>; /* in out */
- + brcm,pull = <2 0>; /* pullup none */
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + pitft: pitft@0{
- + compatible = "ilitek,ili9340";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&pitft_pins>;
- +
- + spi-max-frequency = <32000000>;
- + rotate = <90>;
- + fps = <25>;
- + bgr;
- + buswidth = <8>;
- + dc-gpios = <&gpio 25 0>;
- + debug = <0>;
- + };
- +
- + pitft_ts@1 {
- + compatible = "st,stmpe610";
- + reg = <1>;
- +
- + spi-max-frequency = <500000>;
- + irq-gpio = <&gpio 24 0x2>; /* IRQF_TRIGGER_FALLING */
- + interrupts = <24 2>; /* high-to-low edge triggered */
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- +
- + stmpe_touchscreen {
- + compatible = "st,stmpe-ts";
- + st,sample-time = <4>;
- + st,mod-12b = <1>;
- + st,ref-sel = <0>;
- + st,adc-freq = <2>;
- + st,ave-ctrl = <3>;
- + st,touch-det-delay = <4>;
- + st,settling = <2>;
- + st,fraction-z = <7>;
- + st,i-drive = <0>;
- + };
- +
- + stmpe_gpio: stmpe_gpio {
- + #gpio-cells = <2>;
- + compatible = "st,stmpe-gpio";
- + /*
- + * only GPIO2 is wired/available
- + * and it is wired to the backlight
- + */
- + st,norequest-mask = <0x7b>;
- + };
- + };
- + };
- + };
- +
- + fragment@5 {
- + target-path = "/soc";
- + __overlay__ {
- + backlight {
- + compatible = "gpio-backlight";
- + gpios = <&stmpe_gpio 2 0>;
- + default-on;
- + };
- + };
- + };
- +
- + __overrides__ {
- + speed = <&pitft>,"spi-max-frequency:0";
- + rotate = <&pitft>,"rotate:0";
- + fps = <&pitft>,"fps:0";
- + debug = <&pitft>,"debug:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/pitft35-resistive-overlay.dts b/arch/arm/boot/dts/overlays/pitft35-resistive-overlay.dts
- new file mode 100644
- index 000000000000..37629f18a740
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/pitft35-resistive-overlay.dts
- @@ -0,0 +1,119 @@
- +/*
- + * Device Tree overlay for Adafruit PiTFT 3.5" resistive touch screen
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&spidev1>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target = <&gpio>;
- + __overlay__ {
- + pitft_pins: pitft_pins {
- + brcm,pins = <24 25>;
- + brcm,function = <0 1>; /* in out */
- + brcm,pull = <2 0>; /* pullup none */
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + pitft: pitft@0{
- + compatible = "himax,hx8357d", "adafruit,yx350hv15";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&pitft_pins>;
- +
- + spi-max-frequency = <32000000>;
- + rotate = <90>;
- + fps = <25>;
- + bgr;
- + buswidth = <8>;
- + dc-gpios = <&gpio 25 0>;
- + debug = <0>;
- + };
- +
- + pitft_ts@1 {
- + compatible = "st,stmpe610";
- + reg = <1>;
- +
- + spi-max-frequency = <500000>;
- + irq-gpio = <&gpio 24 0x2>; /* IRQF_TRIGGER_FALLING */
- + interrupts = <24 2>; /* high-to-low edge triggered */
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- +
- + stmpe_touchscreen {
- + compatible = "st,stmpe-ts";
- + st,sample-time = <4>;
- + st,mod-12b = <1>;
- + st,ref-sel = <0>;
- + st,adc-freq = <2>;
- + st,ave-ctrl = <3>;
- + st,touch-det-delay = <4>;
- + st,settling = <2>;
- + st,fraction-z = <7>;
- + st,i-drive = <0>;
- + };
- +
- + stmpe_gpio: stmpe_gpio {
- + #gpio-cells = <2>;
- + compatible = "st,stmpe-gpio";
- + /*
- + * only GPIO2 is wired/available
- + * and it is wired to the backlight
- + */
- + st,norequest-mask = <0x7b>;
- + };
- + };
- + };
- + };
- +
- + fragment@5 {
- + target-path = "/soc";
- + __overlay__ {
- + backlight {
- + compatible = "gpio-backlight";
- + gpios = <&stmpe_gpio 2 0>;
- + default-on;
- + };
- + };
- + };
- +
- + __overrides__ {
- + speed = <&pitft>,"spi-max-frequency:0";
- + rotate = <&pitft>,"rotate:0";
- + fps = <&pitft>,"fps:0";
- + debug = <&pitft>,"debug:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/pps-gpio-overlay.dts b/arch/arm/boot/dts/overlays/pps-gpio-overlay.dts
- new file mode 100644
- index 000000000000..524a1c1d3670
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/pps-gpio-overlay.dts
- @@ -0,0 +1,38 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + pps: pps@12 {
- + compatible = "pps-gpio";
- + pinctrl-names = "default";
- + pinctrl-0 = <&pps_pins>;
- + gpios = <&gpio 18 0>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + pps_pins: pps_pins@12 {
- + brcm,pins = <18>;
- + brcm,function = <0>; // in
- + brcm,pull = <0>; // off
- + };
- + };
- + };
- +
- + __overrides__ {
- + gpiopin = <&pps>,"gpios:4",
- + <&pps>,"reg:0",
- + <&pps_pins>,"brcm,pins:0",
- + <&pps_pins>,"reg:0";
- + assert_falling_edge = <&pps>,"assert-falling-edge?";
- + capture_clear = <&pps>,"capture-clear?";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/pwm-2chan-overlay.dts b/arch/arm/boot/dts/overlays/pwm-2chan-overlay.dts
- new file mode 100644
- index 000000000000..4ddbbfa04065
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/pwm-2chan-overlay.dts
- @@ -0,0 +1,49 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/*
- +This is the 2-channel overlay - only use it if you need both channels.
- +
- +Legal pin,function combinations for each channel:
- + PWM0: 12,4(Alt0) 18,2(Alt5) 40,4(Alt0) 52,5(Alt1)
- + PWM1: 13,4(Alt0) 19,2(Alt5) 41,4(Alt0) 45,4(Alt0) 53,5(Alt1)
- +
- +N.B.:
- + 1) Pin 18 is the only one available on all platforms, and
- + it is the one used by the I2S audio interface.
- + Pins 12 and 13 might be better choices on an A+, B+ or Pi2.
- + 2) The onboard analogue audio output uses both PWM channels.
- + 3) So be careful mixing audio and PWM.
- +*/
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&gpio>;
- + __overlay__ {
- + pwm_pins: pwm_pins {
- + brcm,pins = <18 19>;
- + brcm,function = <2 2>; /* Alt5 */
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&pwm>;
- + frag1: __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&pwm_pins>;
- + assigned-clock-rates = <100000000>;
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + pin = <&pwm_pins>,"brcm,pins:0";
- + pin2 = <&pwm_pins>,"brcm,pins:4";
- + func = <&pwm_pins>,"brcm,function:0";
- + func2 = <&pwm_pins>,"brcm,function:4";
- + clock = <&frag1>,"assigned-clock-rates:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/pwm-ir-tx-overlay.dts b/arch/arm/boot/dts/overlays/pwm-ir-tx-overlay.dts
- new file mode 100644
- index 000000000000..119caf746b3b
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/pwm-ir-tx-overlay.dts
- @@ -0,0 +1,40 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&gpio>;
- + __overlay__ {
- + pwm0_pins: pwm0_pins {
- + brcm,pins = <18>;
- + brcm,function = <2>; /* Alt5 */
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&pwm>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&pwm0_pins>;
- + status = "okay";
- + };
- + };
- +
- + fragment@2 {
- + target-path = "/";
- + __overlay__ {
- + pwm-ir-transmitter {
- + compatible = "pwm-ir-tx";
- + pwms = <&pwm 0 100>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + gpio_pin = <&pwm0_pins>, "brcm,pins:0";
- + func = <&pwm0_pins>,"brcm,function:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/pwm-overlay.dts b/arch/arm/boot/dts/overlays/pwm-overlay.dts
- new file mode 100644
- index 000000000000..92876ab3bc8c
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/pwm-overlay.dts
- @@ -0,0 +1,45 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/*
- +Legal pin,function combinations for each channel:
- + PWM0: 12,4(Alt0) 18,2(Alt5) 40,4(Alt0) 52,5(Alt1)
- + PWM1: 13,4(Alt0) 19,2(Alt5) 41,4(Alt0) 45,4(Alt0) 53,5(Alt1)
- +
- +N.B.:
- + 1) Pin 18 is the only one available on all platforms, and
- + it is the one used by the I2S audio interface.
- + Pins 12 and 13 might be better choices on an A+, B+ or Pi2.
- + 2) The onboard analogue audio output uses both PWM channels.
- + 3) So be careful mixing audio and PWM.
- +*/
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&gpio>;
- + __overlay__ {
- + pwm_pins: pwm_pins {
- + brcm,pins = <18>;
- + brcm,function = <2>; /* Alt5 */
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&pwm>;
- + frag1: __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&pwm_pins>;
- + assigned-clock-rates = <100000000>;
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + pin = <&pwm_pins>,"brcm,pins:0";
- + func = <&pwm_pins>,"brcm,function:0";
- + clock = <&frag1>,"assigned-clock-rates:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/qca7000-overlay.dts b/arch/arm/boot/dts/overlays/qca7000-overlay.dts
- new file mode 100644
- index 000000000000..f695f36024fa
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/qca7000-overlay.dts
- @@ -0,0 +1,55 @@
- +// Overlay for the Qualcomm Atheros QCA7000 on PLC Stamp micro EVK
- +// Visit: https://in-tech-smartcharging.com/products/evaluation-tools/plc-stamp-micro-2-evaluation-board for details
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + status = "okay";
- +
- + eth1: qca7000@0 {
- + compatible = "qca,qca7000";
- + reg = <0>; /* CE0 */
- + pinctrl-names = "default";
- + pinctrl-0 = <ð1_pins>;
- + interrupt-parent = <&gpio>;
- + interrupts = <23 0x1>; /* rising edge */
- + spi-max-frequency = <12000000>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&gpio>;
- + __overlay__ {
- + eth1_pins: eth1_pins {
- + brcm,pins = <23>;
- + brcm,function = <0>; /* in */
- + brcm,pull = <0>; /* none */
- + };
- + };
- + };
- +
- + __overrides__ {
- + int_pin = <ð1>, "interrupts:0",
- + <ð1_pins>, "brcm,pins:0";
- + speed = <ð1>, "spi-max-frequency:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/qca7000-uart0-overlay.dts b/arch/arm/boot/dts/overlays/qca7000-uart0-overlay.dts
- new file mode 100644
- index 000000000000..5dee70853289
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/qca7000-uart0-overlay.dts
- @@ -0,0 +1,46 @@
- +// Overlay for the Qualcomm Atheros QCA7000 on PLC Stamp micro EVK
- +// Visit: https://in-tech-smartcharging.com/products/evaluation-tools/plc-stamp-micro-2-evaluation-board for details
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&uart0>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart0_pins>;
- + status = "okay";
- +
- + eth2: qca7000 {
- + compatible = "qca,qca7000";
- + current-speed = <115200>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + uart0_pins: uart0_pins {
- + brcm,pins = <14 15>;
- + brcm,function = <4>; /* alt0 */
- + brcm,pull = <0 2>;
- + };
- + };
- + };
- +
- + fragment@2 {
- + target-path = "/aliases";
- + __overlay__ {
- + serial0 = "/soc/serial@7e201000";
- + serial1 = "/soc/serial@7e215040";
- + };
- + };
- +
- + __overrides__ {
- + baudrate = <ð2>, "current-speed:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/rotary-encoder-overlay.dts b/arch/arm/boot/dts/overlays/rotary-encoder-overlay.dts
- new file mode 100644
- index 000000000000..ea1d952734e9
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/rotary-encoder-overlay.dts
- @@ -0,0 +1,59 @@
- +// Device tree overlay for GPIO connected rotary encoder.
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&gpio>;
- + __overlay__ {
- + rotary_pins: rotary_pins@4 {
- + brcm,pins = <4 17>; /* gpio 4 17 */
- + brcm,function = <0 0>; /* input */
- + brcm,pull = <2 2>; /* pull-up */
- + };
- +
- + };
- + };
- +
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + rotary: rotary@4 {
- + compatible = "rotary-encoder";
- + status = "okay";
- + pinctrl-names = "default";
- + pinctrl-0 = <&rotary_pins>;
- + gpios = <&gpio 4 0>, <&gpio 17 0>;
- + linux,axis = <0>; /* REL_X */
- + rotary-encoder,encoding = "gray";
- + rotary-encoder,steps = <24>; /* 24 default */
- + rotary-encoder,steps-per-period = <1>; /* corresponds to full period mode. See README */
- + };
- + };
- +
- + };
- +
- + __overrides__ {
- + pin_a = <&rotary>,"gpios:4",
- + <&rotary_pins>,"brcm,pins:0",
- + /* modify reg values to allow multiple instantiation */
- + <&rotary>,"reg:0",
- + <&rotary_pins>,"reg:0";
- + pin_b = <&rotary>,"gpios:16",
- + <&rotary_pins>,"brcm,pins:4";
- + relative_axis = <&rotary>,"rotary-encoder,relative-axis?";
- + linux_axis = <&rotary>,"linux,axis:0";
- + rollover = <&rotary>,"rotary-encoder,rollover?";
- + steps-per-period = <&rotary>,"rotary-encoder,steps-per-period:0";
- + steps = <&rotary>,"rotary-encoder,steps:0";
- + wakeup = <&rotary>,"wakeup-source?";
- + encoding = <&rotary>,"rotary-encoder,encoding";
- + /* legacy parameters*/
- + rotary0_pin_a = <&rotary>,"gpios:4",
- + <&rotary_pins>,"brcm,pins:0";
- + rotary0_pin_b = <&rotary>,"gpios:16",
- + <&rotary_pins>,"brcm,pins:4";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/rpi-backlight-overlay.dts b/arch/arm/boot/dts/overlays/rpi-backlight-overlay.dts
- new file mode 100644
- index 000000000000..cac5e44c6ec5
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/rpi-backlight-overlay.dts
- @@ -0,0 +1,21 @@
- +/*
- + * Devicetree overlay for mailbox-driven Raspberry Pi DSI Display
- + * backlight controller
- + */
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + rpi_backlight: rpi_backlight {
- + compatible = "raspberrypi,rpi-backlight";
- + firmware = <&firmware>;
- + status = "okay";
- + };
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/rpi-cirrus-wm5102-overlay.dts b/arch/arm/boot/dts/overlays/rpi-cirrus-wm5102-overlay.dts
- new file mode 100644
- index 000000000000..ed0c2745399f
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/rpi-cirrus-wm5102-overlay.dts
- @@ -0,0 +1,172 @@
- +// Definitions for the Cirrus Logic Audio Card
- +/dts-v1/;
- +/plugin/;
- +#include <dt-bindings/pinctrl/bcm2835.h>
- +#include <dt-bindings/gpio/gpio.h>
- +#include <dt-bindings/mfd/arizona.h>
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + wlf_5102_pins: wlf_5102_pins {
- + brcm,pins = <17 22 27>;
- + brcm,function = <
- + BCM2835_FSEL_GPIO_OUT
- + BCM2835_FSEL_GPIO_OUT
- + BCM2835_FSEL_GPIO_IN
- + >;
- + };
- + wlf_8804_pins: wlf_8804_pins {
- + brcm,pins = <8>;
- + brcm,function = <BCM2835_FSEL_GPIO_OUT>;
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&spi0_cs_pins>;
- + __overlay__ {
- + brcm,pins = <7>;
- + brcm,function = <BCM2835_FSEL_GPIO_OUT>;
- + };
- + };
- +
- +
- + fragment@3 {
- + target-path = "/";
- + __overlay__ {
- + rpi_cirrus_reg_1v8: rpi_cirrus_reg_1v8 {
- + compatible = "regulator-fixed";
- + regulator-name = "RPi-Cirrus 1v8";
- + regulator-min-microvolt = <1800000>;
- + regulator-max-microvolt = <1800000>;
- + regulator-always-on;
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@5 {
- + target = <&spidev1>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@6 {
- + target = <&spi0>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- + cs-gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
- +
- + wm5102@0{
- + compatible = "wlf,wm5102";
- + reg = <0>;
- +
- + pinctrl-names = "default";
- + pinctrl-0 = <&wlf_5102_pins>;
- +
- + spi-max-frequency = <500000>;
- +
- + interrupt-parent = <&gpio>;
- + interrupts = <27 8>;
- + interrupt-controller;
- + #interrupt-cells = <2>;
- +
- + gpio-controller;
- + #gpio-cells = <2>;
- +
- + LDOVDD-supply = <&rpi_cirrus_reg_1v8>;
- + AVDD-supply = <&rpi_cirrus_reg_1v8>;
- + DBVDD1-supply = <&rpi_cirrus_reg_1v8>;
- + DBVDD2-supply = <&vdd_3v3_reg>;
- + DBVDD3-supply = <&vdd_3v3_reg>;
- + CPVDD-supply = <&rpi_cirrus_reg_1v8>;
- + SPKVDDL-supply = <&vdd_5v0_reg>;
- + SPKVDDR-supply = <&vdd_5v0_reg>;
- + DCVDD-supply = <&arizona_ldo1>;
- +
- + reset-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
- + wlf,ldoena = <&gpio 22 GPIO_ACTIVE_HIGH>;
- + wlf,gpio-defaults = <
- + ARIZONA_GP_DEFAULT
- + ARIZONA_GP_DEFAULT
- + ARIZONA_GP_DEFAULT
- + ARIZONA_GP_DEFAULT
- + ARIZONA_GP_DEFAULT
- + >;
- + wlf,micd-configs = <0 1 0>;
- + wlf,dmic-ref = <
- + ARIZONA_DMIC_MICVDD
- + ARIZONA_DMIC_MICBIAS2
- + ARIZONA_DMIC_MICVDD
- + ARIZONA_DMIC_MICVDD
- + >;
- + wlf,inmode = <
- + ARIZONA_INMODE_DIFF
- + ARIZONA_INMODE_DMIC
- + ARIZONA_INMODE_SE
- + ARIZONA_INMODE_DIFF
- + >;
- + status = "okay";
- +
- + arizona_ldo1: ldo1 {
- + regulator-name = "LDO1";
- + // default constraints as in
- + // arizona-ldo1.c
- + regulator-min-microvolt = <1200000>;
- + regulator-max-microvolt = <1800000>;
- + };
- + };
- + };
- + };
- +
- + fragment@7 {
- + target = <&i2c1>;
- + __overlay__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + wm8804@3b {
- + compatible = "wlf,wm8804";
- + reg = <0x3b>;
- + status = "okay";
- +
- + pinctrl-names = "default";
- + pinctrl-0 = <&wlf_8804_pins>;
- +
- + PVDD-supply = <&vdd_3v3_reg>;
- + DVDD-supply = <&vdd_3v3_reg>;
- + wlf,reset-gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
- + };
- + };
- + };
- +
- + fragment@8 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "wlf,rpi-cirrus";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/rpi-dac-overlay.dts b/arch/arm/boot/dts/overlays/rpi-dac-overlay.dts
- new file mode 100644
- index 000000000000..07a915342702
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/rpi-dac-overlay.dts
- @@ -0,0 +1,34 @@
- +// Definitions for RPi DAC
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + pcm1794a-codec {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm1794a";
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "rpi,rpi-dac";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/rpi-display-overlay.dts b/arch/arm/boot/dts/overlays/rpi-display-overlay.dts
- new file mode 100644
- index 000000000000..de87432ff2be
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/rpi-display-overlay.dts
- @@ -0,0 +1,91 @@
- +/*
- + * Device Tree overlay for rpi-display by Watterott
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&spidev1>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target = <&gpio>;
- + __overlay__ {
- + rpi_display_pins: rpi_display_pins {
- + brcm,pins = <18 23 24 25>;
- + brcm,function = <1 1 1 0>; /* out out out in */
- + brcm,pull = <0 0 0 2>; /* - - - up */
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + rpidisplay: rpi-display@0{
- + compatible = "ilitek,ili9341";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&rpi_display_pins>;
- +
- + spi-max-frequency = <32000000>;
- + rotate = <270>;
- + bgr;
- + fps = <30>;
- + buswidth = <8>;
- + reset-gpios = <&gpio 23 1>;
- + dc-gpios = <&gpio 24 0>;
- + led-gpios = <&gpio 18 0>;
- + debug = <0>;
- + };
- +
- + rpidisplay_ts: rpi-display-ts@1 {
- + compatible = "ti,ads7846";
- + reg = <1>;
- +
- + spi-max-frequency = <2000000>;
- + interrupts = <25 2>; /* high-to-low edge triggered */
- + interrupt-parent = <&gpio>;
- + pendown-gpio = <&gpio 25 1>;
- + ti,x-plate-ohms = /bits/ 16 <60>;
- + ti,pressure-max = /bits/ 16 <255>;
- + };
- + };
- + };
- + __overrides__ {
- + speed = <&rpidisplay>,"spi-max-frequency:0";
- + rotate = <&rpidisplay>,"rotate:0";
- + fps = <&rpidisplay>,"fps:0";
- + debug = <&rpidisplay>,"debug:0";
- + xohms = <&rpidisplay_ts>,"ti,x-plate-ohms;0";
- + swapxy = <&rpidisplay_ts>,"ti,swap-xy?";
- + backlight = <&rpidisplay>,"led-gpios:4",
- + <&rpi_display_pins>,"brcm,pins:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts b/arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts
- new file mode 100644
- index 000000000000..8483c4f4b2eb
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts
- @@ -0,0 +1,25 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/soc/firmware";
- + __overlay__ {
- + ts: touchscreen {
- + compatible = "raspberrypi,firmware-ts";
- + touchscreen-size-x = <800>;
- + touchscreen-size-y = <480>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + touchscreen-size-x = <&ts>,"touchscreen-size-x:0";
- + touchscreen-size-y = <&ts>,"touchscreen-size-y:0";
- + touchscreen-inverted-x = <&ts>,"touchscreen-inverted-x?";
- + touchscreen-inverted-y = <&ts>,"touchscreen-inverted-y?";
- + touchscreen-swapped-x-y = <&ts>,"touchscreen-swapped-x-y?";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/rpi-poe-overlay.dts b/arch/arm/boot/dts/overlays/rpi-poe-overlay.dts
- new file mode 100644
- index 000000000000..1eeac4854db4
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/rpi-poe-overlay.dts
- @@ -0,0 +1,102 @@
- +/*
- + * Overlay for the Raspberry Pi POE HAT.
- + */
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&firmware>;
- + __overlay__ {
- + fwpwm: pwm {
- + compatible = "raspberrypi,firmware-poe-pwm";
- + #pwm-cells = <2>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + fan: pwm-fan {
- + compatible = "pwm-fan";
- + cooling-levels = <0 1 10 100 255>;
- + #cooling-cells = <2>;
- + pwms = <&fwpwm 0 80000>;
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&cpu_thermal>;
- + __overlay__ {
- + trips {
- + trip0: trip0 {
- + temperature = <40000>;
- + hysteresis = <2000>;
- + type = "active";
- + };
- + trip1: trip1 {
- + temperature = <45000>;
- + hysteresis = <2000>;
- + type = "active";
- + };
- + trip2: trip2 {
- + temperature = <50000>;
- + hysteresis = <2000>;
- + type = "active";
- + };
- + trip3: trip3 {
- + temperature = <55000>;
- + hysteresis = <5000>;
- + type = "active";
- + };
- + };
- + cooling-maps {
- + map0 {
- + trip = <&trip0>;
- + cooling-device = <&fan 0 1>;
- + };
- + map1 {
- + trip = <&trip1>;
- + cooling-device = <&fan 1 2>;
- + };
- + map2 {
- + trip = <&trip2>;
- + cooling-device = <&fan 2 3>;
- + };
- + map3 {
- + trip = <&trip3>;
- + cooling-device = <&fan 3 4>;
- + };
- + };
- + };
- + };
- +
- + fragment@3 {
- + target-path = "/__overrides__";
- + __overlay__ {
- + poe_fan_temp0 = <&trip0>,"temperature:0";
- + poe_fan_temp0_hyst = <&trip0>,"hysteresis:0";
- + poe_fan_temp1 = <&trip1>,"temperature:0";
- + poe_fan_temp1_hyst = <&trip1>,"hysteresis:0";
- + poe_fan_temp2 = <&trip2>,"temperature:0";
- + poe_fan_temp2_hyst = <&trip2>,"hysteresis:0";
- + poe_fan_temp3 = <&trip3>,"temperature:0";
- + poe_fan_temp3_hyst = <&trip3>,"hysteresis:0";
- + };
- + };
- +
- + __overrides__ {
- + poe_fan_temp0 = <&trip0>,"temperature:0";
- + poe_fan_temp0_hyst = <&trip0>,"hysteresis:0";
- + poe_fan_temp1 = <&trip1>,"temperature:0";
- + poe_fan_temp1_hyst = <&trip1>,"hysteresis:0";
- + poe_fan_temp2 = <&trip2>,"temperature:0";
- + poe_fan_temp2_hyst = <&trip2>,"hysteresis:0";
- + poe_fan_temp3 = <&trip3>,"temperature:0";
- + poe_fan_temp3_hyst = <&trip3>,"hysteresis:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/rpi-poe-plus-overlay.dts b/arch/arm/boot/dts/overlays/rpi-poe-plus-overlay.dts
- new file mode 100644
- index 000000000000..011f92ad33f3
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/rpi-poe-plus-overlay.dts
- @@ -0,0 +1,23 @@
- +// SPDX-License-Identifier: (GPL-2.0 OR MIT)
- +// Overlay for the Raspberry Pi PoE+ HAT.
- +
- +#include "rpi-poe-overlay.dts"
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@10 {
- + target-path = "/";
- + __overlay__ {
- + rpi_poe_power_supply: rpi-poe-power-supply {
- + compatible = "raspberrypi,rpi-poe-power-supply";
- + firmware = <&firmware>;
- + status = "okay";
- + };
- + };
- + };
- +};
- +
- +&fan {
- + cooling-levels = <0 32 64 128 255>;
- +};
- diff --git a/arch/arm/boot/dts/overlays/rpi-proto-overlay.dts b/arch/arm/boot/dts/overlays/rpi-proto-overlay.dts
- new file mode 100644
- index 000000000000..9cda044a0f62
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/rpi-proto-overlay.dts
- @@ -0,0 +1,39 @@
- +// Definitions for Rpi-Proto
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + wm8731@1a {
- + #sound-dai-cells = <0>;
- + compatible = "wlf,wm8731";
- + reg = <0x1a>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "rpi,rpi-proto";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/rpi-sense-overlay.dts b/arch/arm/boot/dts/overlays/rpi-sense-overlay.dts
- new file mode 100644
- index 000000000000..89d8d2ea6b2e
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/rpi-sense-overlay.dts
- @@ -0,0 +1,47 @@
- +// rpi-sense HAT
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + rpi-sense@46 {
- + compatible = "rpi,rpi-sense";
- + reg = <0x46>;
- + keys-int-gpios = <&gpio 23 1>;
- + status = "okay";
- + };
- +
- + lsm9ds1-magn@1c {
- + compatible = "st,lsm9ds1-magn";
- + reg = <0x1c>;
- + status = "okay";
- + };
- +
- + lsm9ds1-accel6a {
- + compatible = "st,lsm9ds1-accel";
- + reg = <0x6a>;
- + status = "okay";
- + };
- +
- + lps25h-press@5c {
- + compatible = "st,lps25h-press";
- + reg = <0x5c>;
- + status = "okay";
- + };
- +
- + hts221-humid@5f {
- + compatible = "st,hts221-humid", "st,hts221";
- + reg = <0x5f>;
- + status = "okay";
- + };
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/rpi-tv-overlay.dts b/arch/arm/boot/dts/overlays/rpi-tv-overlay.dts
- new file mode 100644
- index 000000000000..3c97a545d820
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/rpi-tv-overlay.dts
- @@ -0,0 +1,34 @@
- +// rpi-tv HAT
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + status = "okay";
- +
- + cxd2880@0 {
- + compatible = "sony,cxd2880";
- + reg = <0>; /* CE0 */
- + spi-max-frequency = <50000000>;
- + status = "okay";
- + };
- + };
- + };
- +
- +};
- diff --git a/arch/arm/boot/dts/overlays/rpivid-v4l2-overlay.dts b/arch/arm/boot/dts/overlays/rpivid-v4l2-overlay.dts
- new file mode 100644
- index 000000000000..bdd1c0e5a915
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/rpivid-v4l2-overlay.dts
- @@ -0,0 +1,50 @@
- +// SPDX-License-Identifier: GPL-2.0-only
- +// Definitions for Raspberry Pi video decode engine
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/interrupt-controller/arm-gic.h>
- +
- +/{
- + compatible = "brcm,bcm2711";
- +
- + fragment@0 {
- + target = <&scb>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <2>;
- + #size-cells = <2>;
- +
- + codec@7eb10000 {
- + compatible = "raspberrypi,rpivid-vid-decoder";
- + reg = <0x0 0x7eb10000 0x0 0x1000>, /* INTC */
- + <0x0 0x7eb00000 0x0 0x10000>; /* HEVC */
- + reg-names = "intc",
- + "hevc";
- +
- + interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
- +
- + clocks = <&firmware_clocks 11>;
- + clock-names = "hevc";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&scb>;
- + __overlay__ {
- + hevc-decoder@7eb00000 {
- + status = "disabled";
- + };
- + rpivid-local-intc@7eb10000 {
- + status = "disabled";
- + };
- + h264-decoder@7eb20000 {
- + status = "disabled";
- + };
- + vp9-decoder@7eb30000 {
- + status = "disabled";
- + };
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/rra-digidac1-wm8741-audio-overlay.dts b/arch/arm/boot/dts/overlays/rra-digidac1-wm8741-audio-overlay.dts
- new file mode 100644
- index 000000000000..87e9a326eff1
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/rra-digidac1-wm8741-audio-overlay.dts
- @@ -0,0 +1,49 @@
- +// Definitions for RRA DigiDAC1 Audio card
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + wm8804@3b {
- + #sound-dai-cells = <0>;
- + compatible = "wlf,wm8804";
- + reg = <0x3b>;
- + status = "okay";
- + PVDD-supply = <&vdd_3v3_reg>;
- + DVDD-supply = <&vdd_3v3_reg>;
- + };
- +
- + wm8742: wm8741@1a {
- + compatible = "wlf,wm8741";
- + reg = <0x1a>;
- + status = "okay";
- + AVDD-supply = <&vdd_5v0_reg>;
- + DVDD-supply = <&vdd_3v3_reg>;
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "rra,digidac1-soundcard";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/sainsmart18-overlay.dts b/arch/arm/boot/dts/overlays/sainsmart18-overlay.dts
- new file mode 100644
- index 000000000000..c51f1c030a55
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/sainsmart18-overlay.dts
- @@ -0,0 +1,52 @@
- +/*
- + * Device Tree overlay for the Sainsmart 1.8" TFT LCD with ST7735R chip 160x128
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + ss18: sainsmart18@0 {
- + compatible = "fbtft,sainsmart18";
- + reg = <0>;
- + pinctrl-names = "default";
- + spi-max-frequency = <40000000>;
- + rotate = <90>;
- + buswidth = <8>;
- + fps = <50>;
- + height = <160>;
- + width = <128>;
- + reset-gpios = <&gpio 25 1>;
- + dc-gpios = <&gpio 24 0>;
- + debug = <0>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + speed = <&ss18>,"spi-max-frequency:0";
- + rotate = <&ss18>,"rotate:0";
- + fps = <&ss18>,"fps:0";
- + bgr = <&ss18>,"bgr?";
- + debug = <&ss18>,"debug:0";
- + dc_pin = <&ss18>,"dc-gpios:4";
- + reset_pin = <&ss18>,"reset-gpios:4";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/sc16is750-i2c-overlay.dts b/arch/arm/boot/dts/overlays/sc16is750-i2c-overlay.dts
- new file mode 100644
- index 000000000000..04d74d62897b
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/sc16is750-i2c-overlay.dts
- @@ -0,0 +1,43 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c_arm>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + sc16is750: sc16is750@48 {
- + compatible = "nxp,sc16is750";
- + reg = <0x48>; /* i2c address */
- + clocks = <&sc16is750_clk>;
- + interrupt-parent = <&gpio>;
- + interrupts = <24 2>; /* IRQ_TYPE_EDGE_FALLING */
- + gpio-controller;
- + #gpio-cells = <2>;
- + i2c-max-frequency = <400000>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + sc16is750_clk: sc16is750_i2c_clk@48 {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-frequency = <14745600>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + int_pin = <&sc16is750>,"interrupts:0";
- + addr = <&sc16is750>,"reg:0", <&sc16is750_clk>,"name";
- + xtal = <&sc16is750_clk>,"clock-frequency:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/sc16is752-i2c-overlay.dts b/arch/arm/boot/dts/overlays/sc16is752-i2c-overlay.dts
- new file mode 100644
- index 000000000000..da05e981314c
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/sc16is752-i2c-overlay.dts
- @@ -0,0 +1,43 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c_arm>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + sc16is752: sc16is752@48 {
- + compatible = "nxp,sc16is752";
- + reg = <0x48>; /* i2c address */
- + clocks = <&sc16is752_clk>;
- + interrupt-parent = <&gpio>;
- + interrupts = <24 2>; /* IRQ_TYPE_EDGE_FALLING */
- + gpio-controller;
- + #gpio-cells = <2>;
- + i2c-max-frequency = <400000>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + sc16is752_clk: sc16is752_i2c_clk@48 {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-frequency = <14745600>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + int_pin = <&sc16is752>,"interrupts:0";
- + addr = <&sc16is752>,"reg:0",<&sc16is752_clk>,"name";
- + xtal = <&sc16is752_clk>,"clock-frequency:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/sc16is752-spi0-overlay.dts b/arch/arm/boot/dts/overlays/sc16is752-spi0-overlay.dts
- new file mode 100644
- index 000000000000..a49a04722b99
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/sc16is752-spi0-overlay.dts
- @@ -0,0 +1,49 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + sc16is752: sc16is752@0 {
- + compatible = "nxp,sc16is752";
- + reg = <0>; /* CE0 */
- + clocks = <&sc16is752_clk>;
- + interrupt-parent = <&gpio>;
- + interrupts = <24 2>; /* IRQ_TYPE_EDGE_FALLING */
- + gpio-controller;
- + #gpio-cells = <2>;
- + spi-max-frequency = <4000000>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target-path = "/";
- + __overlay__ {
- + sc16is752_clk: sc16is752_spi0_0_clk {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-frequency = <14745600>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + int_pin = <&sc16is752>,"interrupts:0";
- + xtal = <&sc16is752_clk>,"clock-frequency:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/sc16is752-spi1-overlay.dts b/arch/arm/boot/dts/overlays/sc16is752-spi1-overlay.dts
- new file mode 100644
- index 000000000000..730c6e8cd614
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/sc16is752-spi1-overlay.dts
- @@ -0,0 +1,67 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&gpio>;
- + __overlay__ {
- + spi1_pins: spi1_pins {
- + brcm,pins = <19 20 21>;
- + brcm,function = <3>; /* alt4 */
- + };
- +
- + spi1_cs_pins: spi1_cs_pins {
- + brcm,pins = <18>;
- + brcm,function = <1>; /* output */
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi1_pins &spi1_cs_pins>;
- + cs-gpios = <&gpio 18 1>;
- + status = "okay";
- +
- + sc16is752: sc16is752@0 {
- + compatible = "nxp,sc16is752";
- + reg = <0>; /* CE0 */
- + clocks = <&sc16is752_clk>;
- + interrupt-parent = <&gpio>;
- + interrupts = <24 2>; /* IRQ_TYPE_EDGE_FALLING */
- + gpio-controller;
- + #gpio-cells = <2>;
- + spi-max-frequency = <4000000>;
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&aux>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@3 {
- + target-path = "/";
- + __overlay__ {
- + sc16is752_clk: sc16is752_spi1_0_clk {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-frequency = <14745600>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + int_pin = <&sc16is752>,"interrupts:0";
- + xtal = <&sc16is752_clk>,"clock-frequency:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/sdhost-overlay.dts b/arch/arm/boot/dts/overlays/sdhost-overlay.dts
- new file mode 100644
- index 000000000000..0b72b4eeac88
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/sdhost-overlay.dts
- @@ -0,0 +1,38 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/* Provide backwards compatible aliases for the old sdhost dtparams. */
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&sdhost>;
- + frag0: __overlay__ {
- + brcm,overclock-50 = <0>;
- + brcm,pio-limit = <1>;
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&mmc>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&mmcnr>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + __overrides__ {
- + overclock_50 = <&frag0>,"brcm,overclock-50:0";
- + force_pio = <&frag0>,"brcm,force-pio?";
- + pio_limit = <&frag0>,"brcm,pio-limit:0";
- + debug = <&frag0>,"brcm,debug?";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/sdio-overlay.dts b/arch/arm/boot/dts/overlays/sdio-overlay.dts
- new file mode 100644
- index 000000000000..873e49056379
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/sdio-overlay.dts
- @@ -0,0 +1,77 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/* Enable SDIO from MMC interface via various GPIO groups */
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&mmcnr>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@1 {
- + target = <&mmc>;
- + sdio_ovl: __overlay__ {
- + pinctrl-0 = <&sdio_ovl_pins>;
- + pinctrl-names = "default";
- + non-removable;
- + bus-width = <4>;
- + status = "okay";
- + };
- + };
- +
- + fragment@2 {
- + target = <&gpio>;
- + __overlay__ {
- + sdio_ovl_pins: sdio_ovl_pins {
- + brcm,pins = <22 23 24 25 26 27>;
- + brcm,function = <7>; /* ALT3 = SD1 */
- + brcm,pull = <0 2 2 2 2 2>;
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&sdio_ovl_pins>;
- + __dormant__ {
- + brcm,pins = <22 23 24 25>;
- + brcm,pull = <0 2 2 2>;
- + };
- + };
- +
- + fragment@4 {
- + target = <&sdio_ovl_pins>;
- + __dormant__ {
- + brcm,pins = <34 35 36 37>;
- + brcm,pull = <0 2 2 2>;
- + };
- + };
- +
- + fragment@5 {
- + target = <&sdio_ovl_pins>;
- + __dormant__ {
- + brcm,pins = <34 35 36 37 38 39>;
- + brcm,pull = <0 2 2 2 2 2>;
- + };
- + };
- +
- + fragment@6 {
- + target-path = "/aliases";
- + __overlay__ {
- + mmc1 = "/soc/mmc@7e300000";
- + };
- + };
- +
- + __overrides__ {
- + poll_once = <&sdio_ovl>,"non-removable?";
- + bus_width = <&sdio_ovl>,"bus-width:0";
- + sdio_overclock = <&sdio_ovl>,"brcm,overclock-50:0";
- + gpios_22_25 = <0>,"=3";
- + gpios_34_37 = <0>,"=4";
- + gpios_34_39 = <0>,"=5";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/seeed-can-fd-hat-v1-overlay.dts b/arch/arm/boot/dts/overlays/seeed-can-fd-hat-v1-overlay.dts
- new file mode 100644
- index 000000000000..210d027a073e
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/seeed-can-fd-hat-v1-overlay.dts
- @@ -0,0 +1,138 @@
- +// redo: ovmerge -c spi1-1cs-overlay.dts,cs0_pin=18,cs0_spidev=false mcp251xfd-overlay.dts,spi0-0,interrupt=25 mcp251xfd-overlay.dts,spi1-0,interrupt=24
- +
- +// Device tree overlay for https://www.seeedstudio.com/2-Channel-CAN-BUS-FD-Shield-for-Raspberry-Pi-p-4072.html
- +
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/gpio/gpio.h>
- +#include <dt-bindings/interrupt-controller/irq.h>
- +#include <dt-bindings/pinctrl/bcm2835.h>
- +
- +/ {
- + compatible = "brcm,bcm2835";
- + fragment@0 {
- + target = <&gpio>;
- + __overlay__ {
- + spi1_pins: spi1_pins {
- + brcm,pins = <19 20 21>;
- + brcm,function = <3>;
- + };
- + spi1_cs_pins: spi1_cs_pins {
- + brcm,pins = <18>;
- + brcm,function = <1>;
- + };
- + };
- + };
- + fragment@1 {
- + target = <&spi1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi1_pins &spi1_cs_pins>;
- + cs-gpios = <&gpio 18 1>;
- + status = "okay";
- + spidev@0 {
- + compatible = "spidev";
- + reg = <0>;
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "disabled";
- + };
- + };
- + };
- + fragment@2 {
- + target = <&aux>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@3 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- + fragment@4 {
- + target = <&gpio>;
- + __overlay__ {
- + mcp251xfd_pins: mcp251xfd_spi0_0_pins {
- + brcm,pins = <25>;
- + brcm,function = <BCM2835_FSEL_GPIO_IN>;
- + };
- + };
- + };
- + fragment@5 {
- + target-path = "/clocks";
- + __overlay__ {
- + clk_mcp251xfd_osc: mcp251xfd-spi0-0-osc {
- + #clock-cells = <0>;
- + compatible = "fixed-clock";
- + clock-frequency = <40000000>;
- + };
- + };
- + };
- + fragment@6 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + mcp251xfd@0 {
- + compatible = "microchip,mcp251xfd";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&mcp251xfd_pins>;
- + spi-max-frequency = <20000000>;
- + interrupt-parent = <&gpio>;
- + interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
- + clocks = <&clk_mcp251xfd_osc>;
- + };
- + };
- + };
- + fragment@7 {
- + target-path = "spi1/spidev@0";
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- + fragment@8 {
- + target = <&gpio>;
- + __overlay__ {
- + mcp251xfd_pins_1: mcp251xfd_spi1_0_pins {
- + brcm,pins = <24>;
- + brcm,function = <BCM2835_FSEL_GPIO_IN>;
- + };
- + };
- + };
- + fragment@9 {
- + target-path = "/clocks";
- + __overlay__ {
- + clk_mcp251xfd_osc_1: mcp251xfd-spi1-0-osc {
- + #clock-cells = <0>;
- + compatible = "fixed-clock";
- + clock-frequency = <40000000>;
- + };
- + };
- + };
- + fragment@10 {
- + target = <&spi1>;
- + __overlay__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + mcp251xfd@0 {
- + compatible = "microchip,mcp251xfd";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&mcp251xfd_pins_1>;
- + spi-max-frequency = <20000000>;
- + interrupt-parent = <&gpio>;
- + interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
- + clocks = <&clk_mcp251xfd_osc_1>;
- + };
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/seeed-can-fd-hat-v2-overlay.dts b/arch/arm/boot/dts/overlays/seeed-can-fd-hat-v2-overlay.dts
- new file mode 100644
- index 000000000000..e843d0b19745
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/seeed-can-fd-hat-v2-overlay.dts
- @@ -0,0 +1,117 @@
- +// redo: ovmerge -c mcp251xfd-overlay.dts,spi0-0,interrupt=25 mcp251xfd-overlay.dts,spi0-1,interrupt=24 i2c-rtc-overlay.dts,pcf85063
- +
- +// Device tree overlay for https://www.seeedstudio.com/CAN-BUS-FD-HAT-for-Raspberry-Pi-p-4742.html
- +
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/gpio/gpio.h>
- +#include <dt-bindings/interrupt-controller/irq.h>
- +#include <dt-bindings/pinctrl/bcm2835.h>
- +
- +/ {
- + compatible = "brcm,bcm2835";
- + fragment@0 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + mcp251xfd_pins: mcp251xfd_spi0_0_pins {
- + brcm,pins = <25>;
- + brcm,function = <BCM2835_FSEL_GPIO_IN>;
- + };
- + };
- + };
- + fragment@2 {
- + target-path = "/clocks";
- + __overlay__ {
- + clk_mcp251xfd_osc: mcp251xfd-spi0-0-osc {
- + #clock-cells = <0>;
- + compatible = "fixed-clock";
- + clock-frequency = <40000000>;
- + };
- + };
- + };
- + fragment@3 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + mcp251xfd@0 {
- + compatible = "microchip,mcp251xfd";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&mcp251xfd_pins>;
- + spi-max-frequency = <20000000>;
- + interrupt-parent = <&gpio>;
- + interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
- + clocks = <&clk_mcp251xfd_osc>;
- + };
- + };
- + };
- + fragment@4 {
- + target = <&spidev1>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- + fragment@5 {
- + target = <&gpio>;
- + __overlay__ {
- + mcp251xfd_pins_1: mcp251xfd_spi0_1_pins {
- + brcm,pins = <24>;
- + brcm,function = <BCM2835_FSEL_GPIO_IN>;
- + };
- + };
- + };
- + fragment@6 {
- + target-path = "/clocks";
- + __overlay__ {
- + clk_mcp251xfd_osc_1: mcp251xfd-spi0-1-osc {
- + #clock-cells = <0>;
- + compatible = "fixed-clock";
- + clock-frequency = <40000000>;
- + };
- + };
- + };
- + fragment@7 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + mcp251xfd@1 {
- + compatible = "microchip,mcp251xfd";
- + reg = <1>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&mcp251xfd_pins_1>;
- + spi-max-frequency = <20000000>;
- + interrupt-parent = <&gpio>;
- + interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
- + clocks = <&clk_mcp251xfd_osc_1>;
- + };
- + };
- + };
- + fragment@8 {
- + target = <&i2cbus>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + pcf85063@51 {
- + compatible = "nxp,pcf85063";
- + reg = <0x51>;
- + };
- + };
- + };
- + fragment@9 {
- + target = <&i2c_arm>;
- + i2cbus: __overlay__ {
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/sh1106-spi-overlay.dts b/arch/arm/boot/dts/overlays/sh1106-spi-overlay.dts
- new file mode 100644
- index 000000000000..57a0cc9b1741
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/sh1106-spi-overlay.dts
- @@ -0,0 +1,84 @@
- +/*
- + * Device Tree overlay for SH1106 based SPI OLED display
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&spidev1>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target = <&gpio>;
- + __overlay__ {
- + sh1106_pins: sh1106_pins {
- + brcm,pins = <25 24>;
- + brcm,function = <1 1>; /* out out */
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sh1106: sh1106@0{
- + compatible = "sinowealth,sh1106";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sh1106_pins>;
- +
- + spi-max-frequency = <4000000>;
- + bgr = <0>;
- + bpp = <1>;
- + rotate = <0>;
- + fps = <25>;
- + buswidth = <8>;
- + reset-gpios = <&gpio 25 1>;
- + dc-gpios = <&gpio 24 0>;
- + debug = <0>;
- +
- + sinowealth,height = <64>;
- + sinowealth,width = <128>;
- + sinowealth,page-offset = <0>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + speed = <&sh1106>,"spi-max-frequency:0";
- + rotate = <&sh1106>,"rotate:0";
- + fps = <&sh1106>,"fps:0";
- + debug = <&sh1106>,"debug:0";
- + dc_pin = <&sh1106>,"dc-gpios:4",
- + <&sh1106_pins>,"brcm,pins:4";
- + reset_pin = <&sh1106>,"reset-gpios:4",
- + <&sh1106_pins>,"brcm,pins:0";
- + height = <&sh1106>,"sinowealth,height:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/si446x-spi0-overlay.dts b/arch/arm/boot/dts/overlays/si446x-spi0-overlay.dts
- new file mode 100644
- index 000000000000..90495f0941fb
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/si446x-spi0-overlay.dts
- @@ -0,0 +1,53 @@
- +// Overlay for the SiLabs Si446X Controller - SPI0
- +// Default Interrupt Pin: 17
- +// Default SDN Pin: 27
- +/dts-v1/;
- +/plugin/;
- +
- + / {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + // needed to avoid dtc warning
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + status = "okay";
- +
- + uhf0: si446x@0{
- + compatible = "silabs,si446x";
- + reg = <0>; // CE0
- + pinctrl-names = "default";
- + pinctrl-0 = <&uhf0_pins>;
- + interrupt-parent = <&gpio>;
- + interrupts = <17 0x2>; // falling edge
- + spi-max-frequency = <4000000>;
- + sdn_pin = <27>;
- + irq_pin = <17>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + uhf0_pins: uhf0_pins {
- + brcm,pins = <17 27>;
- + brcm,function = <0 1>; // in, out
- + brcm,pull = <2 0>; // high, none
- + };
- + };
- + };
- +
- + __overrides__ {
- + int_pin = <&uhf0>, "interrupts:0",
- + <&uhf0>, "irq_pin:0",
- + <&uhf0_pins>, "brcm,pins:0";
- + reset_pin = <&uhf0>, "sdn_pin:0",
- + <&uhf0_pins>, "brcm,pins:4";
- + speed = <&uhf0>, "spi-max-frequency:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/smi-dev-overlay.dts b/arch/arm/boot/dts/overlays/smi-dev-overlay.dts
- new file mode 100644
- index 000000000000..bafab6c92506
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/smi-dev-overlay.dts
- @@ -0,0 +1,20 @@
- +// Description: Overlay to enable character device interface for SMI.
- +// Author: Luke Wren <[email protected]>
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&soc>;
- + __overlay__ {
- + smi_dev {
- + compatible = "brcm,bcm2835-smi-dev";
- + smi_handle = <&smi>;
- + status = "okay";
- + };
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/smi-nand-overlay.dts b/arch/arm/boot/dts/overlays/smi-nand-overlay.dts
- new file mode 100644
- index 000000000000..ae1e50329d66
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/smi-nand-overlay.dts
- @@ -0,0 +1,66 @@
- +// Description: Overlay to enable NAND flash through
- +// the secondary memory interface
- +// Author: Luke Wren
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&smi>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&smi_pins>;
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&soc>;
- + __overlay__ {
- + nand: flash@0 {
- + compatible = "brcm,bcm2835-smi-nand";
- + smi_handle = <&smi>;
- + #address-cells = <1>;
- + #size-cells = <1>;
- + status = "okay";
- +
- + partition@0 {
- + label = "stage2";
- + // 128k
- + reg = <0 0x20000>;
- + read-only;
- + };
- + partition@1 {
- + label = "firmware";
- + // 16M
- + reg = <0x20000 0x1000000>;
- + read-only;
- + };
- + partition@2 {
- + label = "root";
- + // 2G (will need to use 64 bit for >=4G)
- + reg = <0x1020000 0x80000000>;
- + };
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&gpio>;
- + __overlay__ {
- + smi_pins: smi_pins {
- + brcm,pins = <0 1 2 3 4 5 6 7 8 9 10 11
- + 12 13 14 15>;
- + /* Alt 1: SMI */
- + brcm,function = <5 5 5 5 5 5 5 5 5 5 5
- + 5 5 5 5 5>;
- + /* /CS, /WE and /OE are pulled high, as they are
- + generally active low signals */
- + brcm,pull = <2 2 2 2 2 2 2 2 0 0 0 0 0 0 0 0>;
- + };
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/smi-overlay.dts b/arch/arm/boot/dts/overlays/smi-overlay.dts
- new file mode 100644
- index 000000000000..bb8c7830df23
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/smi-overlay.dts
- @@ -0,0 +1,37 @@
- +// Description: Overlay to enable the secondary memory interface peripheral
- +// Author: Luke Wren
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&smi>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&smi_pins>;
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + smi_pins: smi_pins {
- + /* Don't configure the top two address bits, as
- + these are already used as ID_SD and ID_SC */
- + brcm,pins = <2 3 4 5 6 7 8 9 10 11 12 13 14 15
- + 16 17 18 19 20 21 22 23 24 25>;
- + /* Alt 1: SMI */
- + brcm,function = <5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
- + 5 5 5 5 5 5 5 5 5>;
- + /* /CS, /WE and /OE are pulled high, as they are
- + generally active low signals */
- + brcm,pull = <2 2 2 2 2 2 0 0 0 0 0 0 0 0 0 0 0
- + 0 0 0 0 0 0 0>;
- + };
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/spi-gpio35-39-overlay.dts b/arch/arm/boot/dts/overlays/spi-gpio35-39-overlay.dts
- new file mode 100644
- index 000000000000..a132b8637c31
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/spi-gpio35-39-overlay.dts
- @@ -0,0 +1,31 @@
- +/*
- + * Device tree overlay to move spi0 to gpio 35 to 39 on CM
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + cs-gpios = <&gpio 36 1>, <&gpio 35 1>;
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi0_cs_pins>;
- + __overlay__ {
- + brcm,pins = <36 35>;
- + };
- + };
- +
- + fragment@2 {
- + target = <&spi0_pins>;
- + __overlay__ {
- + brcm,pins = <37 38 39>;
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/spi-gpio40-45-overlay.dts b/arch/arm/boot/dts/overlays/spi-gpio40-45-overlay.dts
- new file mode 100644
- index 000000000000..9ebcaf1b5ea0
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/spi-gpio40-45-overlay.dts
- @@ -0,0 +1,36 @@
- +/*
- + * Boot EEPROM overlay
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + cs-gpios = <&gpio 43 1>, <&gpio 44 1>, <&gpio 45 1>;
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi0_cs_pins>;
- + __overlay__ {
- + brcm,pins = <45 44 43>;
- + brcm,function = <1>; /* output */
- + status = "okay";
- + };
- + };
- +
- + fragment@2 {
- + target = <&spi0_pins>;
- + __overlay__ {
- + brcm,pins = <40 41 42>;
- + brcm,function = <3>; /* alt4 */
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/spi-rtc-overlay.dts b/arch/arm/boot/dts/overlays/spi-rtc-overlay.dts
- new file mode 100644
- index 000000000000..51b7fec281c0
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/spi-rtc-overlay.dts
- @@ -0,0 +1,75 @@
- +// Definitions for several SPI-based Real Time Clocks
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&rtc>;
- + __dormant__ {
- + compatible = "maxim,ds3232";
- + };
- + };
- +
- + fragment@1 {
- + target = <&rtc>;
- + __dormant__ {
- + compatible = "maxim,ds3234";
- + };
- + };
- +
- + fragment@2 {
- + target = <&rtc>;
- + __dormant__ {
- + compatible = "nxp,rtc-pcf2123";
- + };
- + };
- +
- + spidev: fragment@100 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + frag101: fragment@101 {
- + target = <&spi0>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + rtc: rtc@0 {
- + reg = <0>;
- + spi-max-frequency = <5000000>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + spi0_0 = <&spidev>, "target:0=",<&spidev0>,
- + <&frag101>, "target:0=",<&spi0>,
- + <&rtc>, "reg:0=0";
- + spi0_1 = <&spidev>, "target:0=",<&spidev1>,
- + <&frag101>, "target:0=",<&spi0>,
- + <&rtc>, "reg:0=1";
- + spi1_0 = <0>,"-100",
- + <&frag101>, "target:0=",<&spi1>,
- + <&rtc>, "reg:0=0";
- + spi1_1 = <0>,"-100",
- + <&frag101>, "target:0=",<&spi1>,
- + <&rtc>, "reg:0=1";
- + spi2_0 = <0>,"-100",
- + <&frag101>, "target:0=",<&spi2>,
- + <&rtc>, "reg:0=0";
- + spi2_1 = <0>,"-100",
- + <&frag101>, "target:0=",<&spi2>,
- + <&rtc>, "reg:0=1";
- + cs_high = <&rtc>, "spi-cs-high?";
- +
- + ds3232 = <0>,"+0";
- + ds3234 = <0>,"+1";
- + pcf2123 = <0>,"+2";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/spi0-1cs-overlay.dts b/arch/arm/boot/dts/overlays/spi0-1cs-overlay.dts
- new file mode 100644
- index 000000000000..e6eb66e2076a
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/spi0-1cs-overlay.dts
- @@ -0,0 +1,42 @@
- +/dts-v1/;
- +/plugin/;
- +
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0_cs_pins>;
- + frag0: __overlay__ {
- + brcm,pins = <8>;
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi0>;
- + frag1: __overlay__ {
- + cs-gpios = <&gpio 8 1>;
- + status = "okay";
- + };
- + };
- +
- + fragment@2 {
- + target = <&spidev1>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target = <&spi0_pins>;
- + __dormant__ {
- + brcm,pins = <10 11>;
- + };
- + };
- +
- + __overrides__ {
- + cs0_pin = <&frag0>,"brcm,pins:0",
- + <&frag1>,"cs-gpios:4";
- + no_miso = <0>,"=3";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/spi0-2cs-overlay.dts b/arch/arm/boot/dts/overlays/spi0-2cs-overlay.dts
- new file mode 100644
- index 000000000000..df6519537c3a
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/spi0-2cs-overlay.dts
- @@ -0,0 +1,37 @@
- +/dts-v1/;
- +/plugin/;
- +
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0_cs_pins>;
- + frag0: __overlay__ {
- + brcm,pins = <8 7>;
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi0>;
- + frag1: __overlay__ {
- + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
- + status = "okay";
- + };
- + };
- +
- + fragment@2 {
- + target = <&spi0_pins>;
- + __dormant__ {
- + brcm,pins = <10 11>;
- + };
- + };
- +
- + __overrides__ {
- + cs0_pin = <&frag0>,"brcm,pins:0",
- + <&frag1>,"cs-gpios:4";
- + cs1_pin = <&frag0>,"brcm,pins:4",
- + <&frag1>,"cs-gpios:16";
- + no_miso = <0>,"=2";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/spi1-1cs-overlay.dts b/arch/arm/boot/dts/overlays/spi1-1cs-overlay.dts
- new file mode 100644
- index 000000000000..ea2794bc5fd5
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/spi1-1cs-overlay.dts
- @@ -0,0 +1,57 @@
- +/dts-v1/;
- +/plugin/;
- +
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&gpio>;
- + __overlay__ {
- + spi1_pins: spi1_pins {
- + brcm,pins = <19 20 21>;
- + brcm,function = <3>; /* alt4 */
- + };
- +
- + spi1_cs_pins: spi1_cs_pins {
- + brcm,pins = <18>;
- + brcm,function = <1>; /* output */
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi1>;
- + frag1: __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi1_pins &spi1_cs_pins>;
- + cs-gpios = <&gpio 18 1>;
- + status = "okay";
- +
- + spidev1_0: spidev@0 {
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&aux>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + cs0_pin = <&spi1_cs_pins>,"brcm,pins:0",
- + <&frag1>,"cs-gpios:4";
- + cs0_spidev = <&spidev1_0>,"status";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/spi1-2cs-overlay.dts b/arch/arm/boot/dts/overlays/spi1-2cs-overlay.dts
- new file mode 100644
- index 000000000000..dab34ee79ae2
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/spi1-2cs-overlay.dts
- @@ -0,0 +1,69 @@
- +/dts-v1/;
- +/plugin/;
- +
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&gpio>;
- + __overlay__ {
- + spi1_pins: spi1_pins {
- + brcm,pins = <19 20 21>;
- + brcm,function = <3>; /* alt4 */
- + };
- +
- + spi1_cs_pins: spi1_cs_pins {
- + brcm,pins = <18 17>;
- + brcm,function = <1>; /* output */
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi1>;
- + frag1: __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi1_pins &spi1_cs_pins>;
- + cs-gpios = <&gpio 18 1>, <&gpio 17 1>;
- + status = "okay";
- +
- + spidev1_0: spidev@0 {
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- +
- + spidev1_1: spidev@1 {
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&aux>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + cs0_pin = <&spi1_cs_pins>,"brcm,pins:0",
- + <&frag1>,"cs-gpios:4";
- + cs1_pin = <&spi1_cs_pins>,"brcm,pins:4",
- + <&frag1>,"cs-gpios:16";
- + cs0_spidev = <&spidev1_0>,"status";
- + cs1_spidev = <&spidev1_1>,"status";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/spi1-3cs-overlay.dts b/arch/arm/boot/dts/overlays/spi1-3cs-overlay.dts
- new file mode 100644
- index 000000000000..bc7e7d04324b
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/spi1-3cs-overlay.dts
- @@ -0,0 +1,81 @@
- +/dts-v1/;
- +/plugin/;
- +
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&gpio>;
- + __overlay__ {
- + spi1_pins: spi1_pins {
- + brcm,pins = <19 20 21>;
- + brcm,function = <3>; /* alt4 */
- + };
- +
- + spi1_cs_pins: spi1_cs_pins {
- + brcm,pins = <18 17 16>;
- + brcm,function = <1>; /* output */
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi1>;
- + frag1: __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi1_pins &spi1_cs_pins>;
- + cs-gpios = <&gpio 18 1>, <&gpio 17 1>, <&gpio 16 1>;
- + status = "okay";
- +
- + spidev1_0: spidev@0 {
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- +
- + spidev1_1: spidev@1 {
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- +
- + spidev1_2: spidev@2 {
- + compatible = "spidev";
- + reg = <2>; /* CE2 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&aux>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + cs0_pin = <&spi1_cs_pins>,"brcm,pins:0",
- + <&frag1>,"cs-gpios:4";
- + cs1_pin = <&spi1_cs_pins>,"brcm,pins:4",
- + <&frag1>,"cs-gpios:16";
- + cs2_pin = <&spi1_cs_pins>,"brcm,pins:8",
- + <&frag1>,"cs-gpios:28";
- + cs0_spidev = <&spidev1_0>,"status";
- + cs1_spidev = <&spidev1_1>,"status";
- + cs2_spidev = <&spidev1_2>,"status";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/spi2-1cs-overlay.dts b/arch/arm/boot/dts/overlays/spi2-1cs-overlay.dts
- new file mode 100644
- index 000000000000..2a29750462af
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/spi2-1cs-overlay.dts
- @@ -0,0 +1,57 @@
- +/dts-v1/;
- +/plugin/;
- +
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&gpio>;
- + __overlay__ {
- + spi2_pins: spi2_pins {
- + brcm,pins = <40 41 42>;
- + brcm,function = <3>; /* alt4 */
- + };
- +
- + spi2_cs_pins: spi2_cs_pins {
- + brcm,pins = <43>;
- + brcm,function = <1>; /* output */
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi2>;
- + frag1: __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi2_pins &spi2_cs_pins>;
- + cs-gpios = <&gpio 43 1>;
- + status = "okay";
- +
- + spidev2_0: spidev@0 {
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&aux>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + cs0_pin = <&spi2_cs_pins>,"brcm,pins:0",
- + <&frag1>,"cs-gpios:4";
- + cs0_spidev = <&spidev2_0>,"status";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/spi2-2cs-overlay.dts b/arch/arm/boot/dts/overlays/spi2-2cs-overlay.dts
- new file mode 100644
- index 000000000000..642678fc9ddd
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/spi2-2cs-overlay.dts
- @@ -0,0 +1,69 @@
- +/dts-v1/;
- +/plugin/;
- +
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&gpio>;
- + __overlay__ {
- + spi2_pins: spi2_pins {
- + brcm,pins = <40 41 42>;
- + brcm,function = <3>; /* alt4 */
- + };
- +
- + spi2_cs_pins: spi2_cs_pins {
- + brcm,pins = <43 44>;
- + brcm,function = <1>; /* output */
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi2>;
- + frag1: __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi2_pins &spi2_cs_pins>;
- + cs-gpios = <&gpio 43 1>, <&gpio 44 1>;
- + status = "okay";
- +
- + spidev2_0: spidev@0 {
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- +
- + spidev2_1: spidev@1 {
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&aux>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + cs0_pin = <&spi2_cs_pins>,"brcm,pins:0",
- + <&frag1>,"cs-gpios:4";
- + cs1_pin = <&spi2_cs_pins>,"brcm,pins:4",
- + <&frag1>,"cs-gpios:16";
- + cs0_spidev = <&spidev2_0>,"status";
- + cs1_spidev = <&spidev2_1>,"status";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/spi2-3cs-overlay.dts b/arch/arm/boot/dts/overlays/spi2-3cs-overlay.dts
- new file mode 100644
- index 000000000000..28d40c6c3c37
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/spi2-3cs-overlay.dts
- @@ -0,0 +1,81 @@
- +/dts-v1/;
- +/plugin/;
- +
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&gpio>;
- + __overlay__ {
- + spi2_pins: spi2_pins {
- + brcm,pins = <40 41 42>;
- + brcm,function = <3>; /* alt4 */
- + };
- +
- + spi2_cs_pins: spi2_cs_pins {
- + brcm,pins = <43 44 45>;
- + brcm,function = <1>; /* output */
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi2>;
- + frag1: __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi2_pins &spi2_cs_pins>;
- + cs-gpios = <&gpio 43 1>, <&gpio 44 1>, <&gpio 45 1>;
- + status = "okay";
- +
- + spidev2_0: spidev@0 {
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- +
- + spidev2_1: spidev@1 {
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- +
- + spidev2_2: spidev@2 {
- + compatible = "spidev";
- + reg = <2>; /* CE2 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&aux>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + cs0_pin = <&spi2_cs_pins>,"brcm,pins:0",
- + <&frag1>,"cs-gpios:4";
- + cs1_pin = <&spi2_cs_pins>,"brcm,pins:4",
- + <&frag1>,"cs-gpios:16";
- + cs2_pin = <&spi2_cs_pins>,"brcm,pins:8",
- + <&frag1>,"cs-gpios:28";
- + cs0_spidev = <&spidev2_0>,"status";
- + cs1_spidev = <&spidev2_1>,"status";
- + cs2_spidev = <&spidev2_2>,"status";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/spi3-1cs-overlay.dts b/arch/arm/boot/dts/overlays/spi3-1cs-overlay.dts
- new file mode 100644
- index 000000000000..335af8637051
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/spi3-1cs-overlay.dts
- @@ -0,0 +1,44 @@
- +/dts-v1/;
- +/plugin/;
- +
- +
- +/ {
- + compatible = "brcm,bcm2711";
- +
- + fragment@0 {
- + target = <&spi3_cs_pins>;
- + frag0: __overlay__ {
- + brcm,pins = <0>;
- + brcm,function = <1>; /* output */
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi3>;
- + frag1: __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi3_pins &spi3_cs_pins>;
- + cs-gpios = <&gpio 0 1>;
- + status = "okay";
- +
- + spidev3_0: spidev@0 {
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- + };
- + };
- +
- + __overrides__ {
- + cs0_pin = <&frag0>,"brcm,pins:0",
- + <&frag1>,"cs-gpios:4";
- + cs0_spidev = <&spidev3_0>,"status";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/spi3-2cs-overlay.dts b/arch/arm/boot/dts/overlays/spi3-2cs-overlay.dts
- new file mode 100644
- index 000000000000..ce65da27f767
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/spi3-2cs-overlay.dts
- @@ -0,0 +1,56 @@
- +/dts-v1/;
- +/plugin/;
- +
- +
- +/ {
- + compatible = "brcm,bcm2711";
- +
- + fragment@0 {
- + target = <&spi3_cs_pins>;
- + frag0: __overlay__ {
- + brcm,pins = <0 24>;
- + brcm,function = <1>; /* output */
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi3>;
- + frag1: __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi3_pins &spi3_cs_pins>;
- + cs-gpios = <&gpio 0 1>, <&gpio 24 1>;
- + status = "okay";
- +
- + spidev3_0: spidev@0 {
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- +
- + spidev3_1: spidev@1 {
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- + };
- + };
- +
- + __overrides__ {
- + cs0_pin = <&frag0>,"brcm,pins:0",
- + <&frag1>,"cs-gpios:4";
- + cs1_pin = <&frag0>,"brcm,pins:4",
- + <&frag1>,"cs-gpios:16";
- + cs0_spidev = <&spidev3_0>,"status";
- + cs1_spidev = <&spidev3_1>,"status";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/spi4-1cs-overlay.dts b/arch/arm/boot/dts/overlays/spi4-1cs-overlay.dts
- new file mode 100644
- index 000000000000..85d70b40352b
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/spi4-1cs-overlay.dts
- @@ -0,0 +1,44 @@
- +/dts-v1/;
- +/plugin/;
- +
- +
- +/ {
- + compatible = "brcm,bcm2711";
- +
- + fragment@0 {
- + target = <&spi4_cs_pins>;
- + frag0: __overlay__ {
- + brcm,pins = <4>;
- + brcm,function = <1>; /* output */
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi4>;
- + frag1: __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi4_pins &spi4_cs_pins>;
- + cs-gpios = <&gpio 4 1>;
- + status = "okay";
- +
- + spidev4_0: spidev@0 {
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- + };
- + };
- +
- + __overrides__ {
- + cs0_pin = <&frag0>,"brcm,pins:0",
- + <&frag1>,"cs-gpios:4";
- + cs0_spidev = <&spidev4_0>,"status";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/spi4-2cs-overlay.dts b/arch/arm/boot/dts/overlays/spi4-2cs-overlay.dts
- new file mode 100644
- index 000000000000..8bc2215a6a7e
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/spi4-2cs-overlay.dts
- @@ -0,0 +1,56 @@
- +/dts-v1/;
- +/plugin/;
- +
- +
- +/ {
- + compatible = "brcm,bcm2711";
- +
- + fragment@0 {
- + target = <&spi4_cs_pins>;
- + frag0: __overlay__ {
- + brcm,pins = <4 25>;
- + brcm,function = <1>; /* output */
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi4>;
- + frag1: __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi4_pins &spi4_cs_pins>;
- + cs-gpios = <&gpio 4 1>, <&gpio 25 1>;
- + status = "okay";
- +
- + spidev4_0: spidev@0 {
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- +
- + spidev4_1: spidev@1 {
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- + };
- + };
- +
- + __overrides__ {
- + cs0_pin = <&frag0>,"brcm,pins:0",
- + <&frag1>,"cs-gpios:4";
- + cs1_pin = <&frag0>,"brcm,pins:4",
- + <&frag1>,"cs-gpios:16";
- + cs0_spidev = <&spidev4_0>,"status";
- + cs1_spidev = <&spidev4_1>,"status";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/spi5-1cs-overlay.dts b/arch/arm/boot/dts/overlays/spi5-1cs-overlay.dts
- new file mode 100644
- index 000000000000..c0f8cb8510ee
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/spi5-1cs-overlay.dts
- @@ -0,0 +1,44 @@
- +/dts-v1/;
- +/plugin/;
- +
- +
- +/ {
- + compatible = "brcm,bcm2711";
- +
- + fragment@0 {
- + target = <&spi5_cs_pins>;
- + frag0: __overlay__ {
- + brcm,pins = <12>;
- + brcm,function = <1>; /* output */
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi5>;
- + frag1: __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi5_pins &spi5_cs_pins>;
- + cs-gpios = <&gpio 12 1>;
- + status = "okay";
- +
- + spidev5_0: spidev@0 {
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- + };
- + };
- +
- + __overrides__ {
- + cs0_pin = <&frag0>,"brcm,pins:0",
- + <&frag1>,"cs-gpios:4";
- + cs0_spidev = <&spidev5_0>,"status";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/spi5-2cs-overlay.dts b/arch/arm/boot/dts/overlays/spi5-2cs-overlay.dts
- new file mode 100644
- index 000000000000..7758b9c00b4e
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/spi5-2cs-overlay.dts
- @@ -0,0 +1,56 @@
- +/dts-v1/;
- +/plugin/;
- +
- +
- +/ {
- + compatible = "brcm,bcm2711";
- +
- + fragment@0 {
- + target = <&spi5_cs_pins>;
- + frag0: __overlay__ {
- + brcm,pins = <12 26>;
- + brcm,function = <1>; /* output */
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi5>;
- + frag1: __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi5_pins &spi5_cs_pins>;
- + cs-gpios = <&gpio 12 1>, <&gpio 26 1>;
- + status = "okay";
- +
- + spidev5_0: spidev@0 {
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- +
- + spidev5_1: spidev@1 {
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- + };
- + };
- +
- + __overrides__ {
- + cs0_pin = <&frag0>,"brcm,pins:0",
- + <&frag1>,"cs-gpios:4";
- + cs1_pin = <&frag0>,"brcm,pins:4",
- + <&frag1>,"cs-gpios:16";
- + cs0_spidev = <&spidev5_0>,"status";
- + cs1_spidev = <&spidev5_1>,"status";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/spi6-1cs-overlay.dts b/arch/arm/boot/dts/overlays/spi6-1cs-overlay.dts
- new file mode 100644
- index 000000000000..8c8a953eca01
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/spi6-1cs-overlay.dts
- @@ -0,0 +1,44 @@
- +/dts-v1/;
- +/plugin/;
- +
- +
- +/ {
- + compatible = "brcm,bcm2711";
- +
- + fragment@0 {
- + target = <&spi6_cs_pins>;
- + frag0: __overlay__ {
- + brcm,pins = <18>;
- + brcm,function = <1>; /* output */
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi6>;
- + frag1: __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi6_pins &spi6_cs_pins>;
- + cs-gpios = <&gpio 18 1>;
- + status = "okay";
- +
- + spidev6_0: spidev@0 {
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- + };
- + };
- +
- + __overrides__ {
- + cs0_pin = <&frag0>,"brcm,pins:0",
- + <&frag1>,"cs-gpios:4";
- + cs0_spidev = <&spidev6_0>,"status";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/spi6-2cs-overlay.dts b/arch/arm/boot/dts/overlays/spi6-2cs-overlay.dts
- new file mode 100644
- index 000000000000..2ff897f21aed
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/spi6-2cs-overlay.dts
- @@ -0,0 +1,56 @@
- +/dts-v1/;
- +/plugin/;
- +
- +
- +/ {
- + compatible = "brcm,bcm2711";
- +
- + fragment@0 {
- + target = <&spi6_cs_pins>;
- + frag0: __overlay__ {
- + brcm,pins = <18 27>;
- + brcm,function = <1>; /* output */
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi6>;
- + frag1: __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi6_pins &spi6_cs_pins>;
- + cs-gpios = <&gpio 18 1>, <&gpio 27 1>;
- + status = "okay";
- +
- + spidev6_0: spidev@0 {
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- +
- + spidev6_1: spidev@1 {
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <125000000>;
- + status = "okay";
- + };
- + };
- + };
- +
- + __overrides__ {
- + cs0_pin = <&frag0>,"brcm,pins:0",
- + <&frag1>,"cs-gpios:4";
- + cs1_pin = <&frag0>,"brcm,pins:4",
- + <&frag1>,"cs-gpios:16";
- + cs0_spidev = <&spidev6_0>,"status";
- + cs1_spidev = <&spidev6_1>,"status";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/ssd1306-overlay.dts b/arch/arm/boot/dts/overlays/ssd1306-overlay.dts
- new file mode 100644
- index 000000000000..84cf10e489d3
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/ssd1306-overlay.dts
- @@ -0,0 +1,36 @@
- +// Overlay for SSD1306 128x64 and 128x32 OLED displays
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c1>;
- + __overlay__ {
- + status = "okay";
- +
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + ssd1306: oled@3c{
- + compatible = "solomon,ssd1306fb-i2c";
- + reg = <0x3c>;
- + solomon,width = <128>;
- + solomon,height = <64>;
- + solomon,page-offset = <0>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + address = <&ssd1306>,"reg:0";
- + width = <&ssd1306>,"solomon,width:0";
- + height = <&ssd1306>,"solomon,height:0";
- + offset = <&ssd1306>,"solomon,page-offset:0";
- + normal = <&ssd1306>,"solomon,segment-no-remap?";
- + sequential = <&ssd1306>,"solomon,com-seq?";
- + remapped = <&ssd1306>,"solomon,com-lrremap?";
- + inverted = <&ssd1306>,"solomon,com-invdir?";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/ssd1306-spi-overlay.dts b/arch/arm/boot/dts/overlays/ssd1306-spi-overlay.dts
- new file mode 100644
- index 000000000000..ffc90c7cecf6
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/ssd1306-spi-overlay.dts
- @@ -0,0 +1,84 @@
- +/*
- + * Device Tree overlay for SSD1306 based SPI OLED display
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&spidev1>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target = <&gpio>;
- + __overlay__ {
- + ssd1306_pins: ssd1306_pins {
- + brcm,pins = <25 24>;
- + brcm,function = <1 1>; /* out out */
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + ssd1306: ssd1306@0{
- + compatible = "solomon,ssd1306";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&ssd1306_pins>;
- +
- + spi-max-frequency = <10000000>;
- + bgr = <0>;
- + bpp = <1>;
- + rotate = <0>;
- + fps = <25>;
- + buswidth = <8>;
- + reset-gpios = <&gpio 25 1>;
- + dc-gpios = <&gpio 24 0>;
- + debug = <0>;
- +
- + solomon,height = <64>;
- + solomon,width = <128>;
- + solomon,page-offset = <0>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + speed = <&ssd1306>,"spi-max-frequency:0";
- + rotate = <&ssd1306>,"rotate:0";
- + fps = <&ssd1306>,"fps:0";
- + debug = <&ssd1306>,"debug:0";
- + dc_pin = <&ssd1306>,"dc-gpios:4",
- + <&ssd1306_pins>,"brcm,pins:4";
- + reset_pin = <&ssd1306>,"reset-gpios:4",
- + <&ssd1306_pins>,"brcm,pins:0";
- + height = <&ssd1306>,"solomon,height:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/ssd1331-spi-overlay.dts b/arch/arm/boot/dts/overlays/ssd1331-spi-overlay.dts
- new file mode 100644
- index 000000000000..9fd5ebf2feda
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/ssd1331-spi-overlay.dts
- @@ -0,0 +1,83 @@
- +/*
- + * Device Tree overlay for SSD1331 based SPI OLED display
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&spidev1>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target = <&gpio>;
- + __overlay__ {
- + ssd1331_pins: ssd1331_pins {
- + brcm,pins = <25 24>;
- + brcm,function = <1 1>; /* out out */
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + ssd1331: ssd1331@0{
- + compatible = "solomon,ssd1331";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&ssd1331_pins>;
- +
- + spi-max-frequency = <4500000>;
- + bgr = <0>;
- + bpp = <16>;
- + rotate = <0>;
- + fps = <25>;
- + buswidth = <8>;
- + reset-gpios = <&gpio 25 1>;
- + dc-gpios = <&gpio 24 0>;
- + debug = <0>;
- +
- + solomon,height = <64>;
- + solomon,width = <96>;
- + solomon,page-offset = <0>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + speed = <&ssd1331>,"spi-max-frequency:0";
- + rotate = <&ssd1331>,"rotate:0";
- + fps = <&ssd1331>,"fps:0";
- + debug = <&ssd1331>,"debug:0";
- + dc_pin = <&ssd1331>,"dc-gpios:4",
- + <&ssd1331_pins>,"brcm,pins:4";
- + reset_pin = <&ssd1331>,"reset-gpios:4",
- + <&ssd1331_pins>,"brcm,pins:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/ssd1351-spi-overlay.dts b/arch/arm/boot/dts/overlays/ssd1351-spi-overlay.dts
- new file mode 100644
- index 000000000000..ffc872c60648
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/ssd1351-spi-overlay.dts
- @@ -0,0 +1,83 @@
- +/*
- + * Device Tree overlay for SSD1351 based SPI OLED display
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&spidev1>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target = <&gpio>;
- + __overlay__ {
- + ssd1351_pins: ssd1351_pins {
- + brcm,pins = <25 24>;
- + brcm,function = <1 1>; /* out out */
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + ssd1351: ssd1351@0{
- + compatible = "solomon,ssd1351";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&ssd1351_pins>;
- +
- + spi-max-frequency = <4500000>;
- + bgr = <0>;
- + bpp = <16>;
- + rotate = <0>;
- + fps = <25>;
- + buswidth = <8>;
- + reset-gpios = <&gpio 25 1>;
- + dc-gpios = <&gpio 24 0>;
- + debug = <0>;
- +
- + solomon,height = <128>;
- + solomon,width = <128>;
- + solomon,page-offset = <0>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + speed = <&ssd1351>,"spi-max-frequency:0";
- + rotate = <&ssd1351>,"rotate:0";
- + fps = <&ssd1351>,"fps:0";
- + debug = <&ssd1351>,"debug:0";
- + dc_pin = <&ssd1351>,"dc-gpios:4",
- + <&ssd1351_pins>,"brcm,pins:4";
- + reset_pin = <&ssd1351>,"reset-gpios:4",
- + <&ssd1351_pins>,"brcm,pins:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/superaudioboard-overlay.dts b/arch/arm/boot/dts/overlays/superaudioboard-overlay.dts
- new file mode 100755
- index 000000000000..bad61535981e
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/superaudioboard-overlay.dts
- @@ -0,0 +1,73 @@
- +// Definitions for SuperAudioBoard
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "simple-audio-card";
- + i2s-controller = <&i2s>;
- + status = "okay";
- +
- + simple-audio-card,name = "SuperAudioBoard";
- +
- + simple-audio-card,widgets =
- + "Line", "Line In",
- + "Line", "Line Out";
- +
- + simple-audio-card,routing =
- + "Line Out","AOUTA+",
- + "Line Out","AOUTA-",
- + "Line Out","AOUTB+",
- + "Line Out","AOUTB-",
- + "AINA","Line In",
- + "AINB","Line In";
- +
- + simple-audio-card,format = "i2s";
- +
- + simple-audio-card,bitclock-master = <&sound_master>;
- + simple-audio-card,frame-master = <&sound_master>;
- +
- + simple-audio-card,cpu {
- + sound-dai = <&i2s>;
- + dai-tdm-slot-num = <2>;
- + dai-tdm-slot-width = <32>;
- + };
- +
- + sound_master: simple-audio-card,codec {
- + sound-dai = <&cs4271>;
- + system-clock-frequency = <24576000>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + cs4271: cs4271@10 {
- + #sound-dai-cells = <0>;
- + compatible = "cirrus,cs4271";
- + reg = <0x10>;
- + status = "okay";
- + reset-gpio = <&gpio 26 0>; /* Pin 26, active high */
- + };
- + };
- + };
- + __overrides__ {
- + gpiopin = <&cs4271>,"reset-gpio:4";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/sx150x-overlay.dts b/arch/arm/boot/dts/overlays/sx150x-overlay.dts
- new file mode 100644
- index 000000000000..1d1069345da2
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/sx150x-overlay.dts
- @@ -0,0 +1,1706 @@
- +// Definitions for SX150x I2C GPIO Expanders from Semtech
- +
- +// dtparams:
- +// sx150<x>-<n>-<m> - Enables SX150X device on I2C#<n> with slave address <m>. <x> may be 1-9.
- +// <n> may be 0 or 1. Permissible values of <m> (which is denoted in hex)
- +// depend on the device variant.
- +// For SX1501, SX1502, SX1504 and SX1505, <m> may be 20 or 21.
- +// For SX1503 and SX1506, <m> may be 20.
- +// For SX1507 and SX1509, <m> may be 3E, 3F, 70 or 71.
- +// For SX1508, <m> may be 20, 21, 22 or 23.
- +// sx150<x>-<n>-<m>-int-gpio - Integer, enables interrupts on SX150X device on I2C#<n> with slave address <m>,
- +// specifies the GPIO pin to which NINT output of SX150X is connected.
- +//
- +//
- +// Example 1: A single SX1505 device on I2C#1 with its slave address set to 0x20 and NINT output connected to GPIO25:
- +// dtoverlay=sx150x:sx1505-1-20,sx1505-1-20-int-gpio=25
- +//
- +// Example 2: Two SX1507 devices on I2C#0 with their slave addresses set to 0x3E and 0x70 (interrupts not used):
- +// dtoverlay=sx150x:sx1507-0-3E,sx1507-0-70
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + // Enable I2C#0 interface
- + fragment@0 {
- + target = <&i2c0>;
- + __dormant__ {
- + status = "okay";
- + };
- + };
- +
- + // Enable I2C#1 interface
- + fragment@1 {
- + target = <&i2c1>;
- + __dormant__ {
- + status = "okay";
- + };
- + };
- +
- + // Enable a SX1501 on I2C#0 at slave addr 0x20
- + fragment@2 {
- + target = <&i2c0>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1501_0_20: sx150x@20 {
- + compatible = "semtech,sx1501q";
- + reg = <0x20>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1501-0-20-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1501 on I2C#1 at slave addr 0x20
- + fragment@3 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1501_1_20: sx150x@20 {
- + compatible = "semtech,sx1501q";
- + reg = <0x20>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1501-1-20-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1501 on I2C#0 at slave addr 0x21
- + fragment@4 {
- + target = <&i2c0>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1501_0_21: sx150x@21 {
- + compatible = "semtech,sx1501q";
- + reg = <0x21>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1501-0-21-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1501 on I2C#1 at slave addr 0x21
- + fragment@5 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1501_1_21: sx150x@21 {
- + compatible = "semtech,sx1501q";
- + reg = <0x21>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1501-1-21-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1502 on I2C#0 at slave addr 0x20
- + fragment@6 {
- + target = <&i2c0>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1502_0_20: sx150x@20 {
- + compatible = "semtech,sx1502q";
- + reg = <0x20>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1502-0-20-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1502 on I2C#1 at slave addr 0x20
- + fragment@7 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1502_1_20: sx150x@20 {
- + compatible = "semtech,sx1502q";
- + reg = <0x20>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1502-1-20-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1502 on I2C#0 at slave addr 0x21
- + fragment@8 {
- + target = <&i2c0>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1502_0_21: sx150x@21 {
- + compatible = "semtech,sx1502q";
- + reg = <0x21>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1502-0-21-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1502 on I2C#1 at slave addr 0x21
- + fragment@9 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1502_1_21: sx150x@21 {
- + compatible = "semtech,sx1502q";
- + reg = <0x21>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1501-1-21-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1503 on I2C#0 at slave addr 0x20
- + fragment@10 {
- + target = <&i2c0>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1503_0_20: sx150x@20 {
- + compatible = "semtech,sx1503q";
- + reg = <0x20>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1503-0-20-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1503 on I2C#1 at slave addr 0x20
- + fragment@11 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1503_1_20: sx150x@20 {
- + compatible = "semtech,sx1503q";
- + reg = <0x20>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1503-1-20-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1504 on I2C#0 at slave addr 0x20
- + fragment@12 {
- + target = <&i2c0>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1504_0_20: sx150x@20 {
- + compatible = "semtech,sx1504q";
- + reg = <0x20>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1504-0-20-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1504 on I2C#1 at slave addr 0x20
- + fragment@13 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1504_1_20: sx150x@20 {
- + compatible = "semtech,sx1504q";
- + reg = <0x20>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1504-1-20-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1504 on I2C#0 at slave addr 0x21
- + fragment@14 {
- + target = <&i2c0>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1504_0_21: sx150x@21 {
- + compatible = "semtech,sx1504q";
- + reg = <0x21>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1504-0-21-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1504 on I2C#1 at slave addr 0x21
- + fragment@15 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1504_1_21: sx150x@21 {
- + compatible = "semtech,sx1504q";
- + reg = <0x21>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1504-1-20-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1505 on I2C#0 at slave addr 0x20
- + fragment@16 {
- + target = <&i2c0>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1505_0_20: sx150x@20 {
- + compatible = "semtech,sx1505q";
- + reg = <0x20>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1505-0-20-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1505 on I2C#1 at slave addr 0x20
- + fragment@17 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1505_1_20: sx150x@20 {
- + compatible = "semtech,sx1505q";
- + reg = <0x20>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1505-1-20-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1505 on I2C#0 at slave addr 0x21
- + fragment@18 {
- + target = <&i2c0>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1505_0_21: sx150x@21 {
- + compatible = "semtech,sx1505q";
- + reg = <0x21>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1505-0-21-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1505 on I2C#1 at slave addr 0x21
- + fragment@19 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1505_1_21: sx150x@21 {
- + compatible = "semtech,sx1505q";
- + reg = <0x21>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1505-1-21-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1506 on I2C#0 at slave addr 0x20
- + fragment@20 {
- + target = <&i2c0>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1506_0_20: sx150x@20 {
- + compatible = "semtech,sx1506q";
- + reg = <0x20>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1506-0-20-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1506 on I2C#1 at slave addr 0x20
- + fragment@21 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1506_1_20: sx150x@20 {
- + compatible = "semtech,sx1506q";
- + reg = <0x20>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1506-1-20-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1507 on I2C#0 at slave addr 0x3E
- + fragment@22 {
- + target = <&i2c0>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1507_0_3E: sx150x@3E {
- + compatible = "semtech,sx1507q";
- + reg = <0x3E>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1507_0_3E-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1507 on I2C#1 at slave addr 0x3E
- + fragment@23 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1507_1_3E: sx150x@3E {
- + compatible = "semtech,sx1507q";
- + reg = <0x3E>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1507_1_3E-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1507 on I2C#0 at slave addr 0x3F
- + fragment@24 {
- + target = <&i2c0>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1507_0_3F: sx150x@3F {
- + compatible = "semtech,sx1507q";
- + reg = <0x3F>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1507_0_3F-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1507 on I2C#1 at slave addr 0x3F
- + fragment@25 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1507_1_3F: sx150x@3F {
- + compatible = "semtech,sx1507q";
- + reg = <0x3F>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1507_1_3F-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1507 on I2C#0 at slave addr 0x70
- + fragment@26 {
- + target = <&i2c0>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1507_0_70: sx150x@70 {
- + compatible = "semtech,sx1507q";
- + reg = <0x70>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1507-0-70-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1507 on I2C#1 at slave addr 0x70
- + fragment@27 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1507_1_70: sx150x@70 {
- + compatible = "semtech,sx1507q";
- + reg = <0x70>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1507-1-70-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1507 on I2C#0 at slave addr 0x71
- + fragment@28 {
- + target = <&i2c0>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1507_0_71: sx150x@71 {
- + compatible = "semtech,sx1507q";
- + reg = <0x71>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1507-0-71-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1507 on I2C#1 at slave addr 0x71
- + fragment@29 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1507_1_71: sx150x@71 {
- + compatible = "semtech,sx1507q";
- + reg = <0x71>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1507-1-71-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1508 on I2C#0 at slave addr 0x20
- + fragment@30 {
- + target = <&i2c0>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1508_0_20: sx150x@20 {
- + compatible = "semtech,sx1508q";
- + reg = <0x20>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1508-0-20-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1508 on I2C#1 at slave addr 0x20
- + fragment@31 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1508_1_20: sx150x@20 {
- + compatible = "semtech,sx1508q";
- + reg = <0x20>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1508-1-20-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1508 on I2C#0 at slave addr 0x21
- + fragment@32 {
- + target = <&i2c0>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1508_0_21: sx150x@21 {
- + compatible = "semtech,sx1508q";
- + reg = <0x21>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1508-0-21-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1508 on I2C#1 at slave addr 0x21
- + fragment@33 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1508_1_21: sx150x@21 {
- + compatible = "semtech,sx1508q";
- + reg = <0x21>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1508-1-21-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1508 on I2C#0 at slave addr 0x22
- + fragment@34 {
- + target = <&i2c0>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1508_0_22: sx150x@22 {
- + compatible = "semtech,sx1508q";
- + reg = <0x22>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1508-0-22-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1508 on I2C#1 at slave addr 0x22
- + fragment@35 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1508_1_22: sx150x@22 {
- + compatible = "semtech,sx1508q";
- + reg = <0x22>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1508-1-22-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1508 on I2C#0 at slave addr 0x23
- + fragment@36 {
- + target = <&i2c0>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1508_0_23: sx150x@23 {
- + compatible = "semtech,sx1508q";
- + reg = <0x23>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1508-0-23-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1508 on I2C#1 at slave addr 0x23
- + fragment@37 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1508_1_23: sx150x@23 {
- + compatible = "semtech,sx1508q";
- + reg = <0x23>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1508-1-23-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1509 on I2C#0 at slave addr 0x3E
- + fragment@38 {
- + target = <&i2c0>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1509_0_3E: sx150x@3E {
- + compatible = "semtech,sx1509q";
- + reg = <0x3E>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1509_0_3E-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1509 on I2C#1 at slave addr 0x3E
- + fragment@39 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1509_1_3E: sx150x@3E {
- + compatible = "semtech,sx1509q";
- + reg = <0x3E>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1509_1_3E-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1509 on I2C#0 at slave addr 0x3F
- + fragment@40 {
- + target = <&i2c0>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1509_0_3F: sx150x@3F {
- + compatible = "semtech,sx1509q";
- + reg = <0x3F>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1509_0_3F-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1509 on I2C#1 at slave addr 0x3F
- + fragment@41 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1509_1_3F: sx150x@3F {
- + compatible = "semtech,sx1509q";
- + reg = <0x3F>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1509_1_3F-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1509 on I2C#0 at slave addr 0x70
- + fragment@42 {
- + target = <&i2c0>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1509_0_70: sx150x@70 {
- + compatible = "semtech,sx1509q";
- + reg = <0x70>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1509-0-70-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1509 on I2C#1 at slave addr 0x70
- + fragment@43 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1509_1_70: sx150x@70 {
- + compatible = "semtech,sx1509q";
- + reg = <0x70>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1509-1-70-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1509 on I2C#0 at slave addr 0x71
- + fragment@44 {
- + target = <&i2c0>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1509_0_71: sx150x@71 {
- + compatible = "semtech,sx1509q";
- + reg = <0x71>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1509-0-71-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable a SX1509 on I2C#1 at slave addr 0x71
- + fragment@45 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + sx1509_1_71: sx150x@71 {
- + compatible = "semtech,sx1509q";
- + reg = <0x71>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + #interrupt-cells = <2>;
- + interrupts = <25 2>; /* 1st word overwritten by sx1509-1-71-int-gpio parameter
- + 2nd word is 2 for falling-edge triggered */
- + status = "okay";
- + };
- + };
- + };
- +
- + // Enable interrupts for a SX1501 on I2C#0 at slave addr 0x20
- + fragment@46 {
- + target = <&sx1501_0_20>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_0_20_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1501 on I2C#1 at slave addr 0x20
- + fragment@47 {
- + target = <&sx1501_1_20>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_1_20_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1501 on I2C#0 at slave addr 0x21
- + fragment@48 {
- + target = <&sx1501_0_21>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_0_21_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1501 on I2C#1 at slave addr 0x21
- + fragment@49 {
- + target = <&sx1501_1_21>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_1_21_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1502 on I2C#0 at slave addr 0x20
- + fragment@50 {
- + target = <&sx1502_0_20>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_0_20_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1502 on I2C#1 at slave addr 0x20
- + fragment@51 {
- + target = <&sx1502_1_20>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_1_20_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1502 on I2C#0 at slave addr 0x21
- + fragment@52 {
- + target = <&sx1502_0_21>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_0_21_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1502 on I2C#1 at slave addr 0x21
- + fragment@53 {
- + target = <&sx1502_1_21>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_1_21_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1503 on I2C#0 at slave addr 0x20
- + fragment@54 {
- + target = <&sx1503_0_20>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_0_20_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1503 on I2C#1 at slave addr 0x20
- + fragment@55 {
- + target = <&sx1503_1_20>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_1_20_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1504 on I2C#0 at slave addr 0x20
- + fragment@56 {
- + target = <&sx1504_0_20>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_0_20_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1504 on I2C#1 at slave addr 0x20
- + fragment@57 {
- + target = <&sx1504_1_20>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_1_20_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1504 on I2C#0 at slave addr 0x21
- + fragment@58 {
- + target = <&sx1504_0_21>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_0_21_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1504 on I2C#1 at slave addr 0x21
- + fragment@59 {
- + target = <&sx1504_1_21>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_1_21_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1505 on I2C#0 at slave addr 0x20
- + fragment@60 {
- + target = <&sx1505_0_20>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_0_20_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1505 on I2C#1 at slave addr 0x20
- + fragment@61 {
- + target = <&sx1505_1_20>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_1_20_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1505 on I2C#0 at slave addr 0x21
- + fragment@62 {
- + target = <&sx1505_0_21>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_0_21_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1505 on I2C#1 at slave addr 0x21
- + fragment@63 {
- + target = <&sx1505_1_21>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_1_21_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1506 on I2C#0 at slave addr 0x20
- + fragment@64 {
- + target = <&sx1506_0_20>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_0_20_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1506 on I2C#1 at slave addr 0x20
- + fragment@65 {
- + target = <&sx1506_1_20>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_1_20_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1507 on I2C#0 at slave addr 0x3E
- + fragment@66 {
- + target = <&sx1507_0_3E>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_0_3E_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1507 on I2C#1 at slave addr 0x3E
- + fragment@67 {
- + target = <&sx1507_1_3E>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_1_3E_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1507 on I2C#0 at slave addr 0x3F
- + fragment@68 {
- + target = <&sx1507_0_3F>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_0_3F_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1507 on I2C#1 at slave addr 0x3F
- + fragment@69 {
- + target = <&sx1507_1_3F>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_1_3F_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1507 on I2C#0 at slave addr 0x70
- + fragment@70 {
- + target = <&sx1507_0_70>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_1_70_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1507 on I2C#1 at slave addr 0x70
- + fragment@71 {
- + target = <&sx1507_1_70>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_1_70_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1507 on I2C#0 at slave addr 0x71
- + fragment@72 {
- + target = <&sx1507_0_71>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_0_71_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1507 on I2C#1 at slave addr 0x71
- + fragment@73 {
- + target = <&sx1507_1_71>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_1_71_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1508 on I2C#0 at slave addr 0x20
- + fragment@74 {
- + target = <&sx1508_0_20>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_0_20_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1508 on I2C#1 at slave addr 0x20
- + fragment@75 {
- + target = <&sx1508_1_20>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_1_20_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1508 on I2C#0 at slave addr 0x21
- + fragment@76 {
- + target = <&sx1508_0_21>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_0_21_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1508 on I2C#1 at slave addr 0x21
- + fragment@77 {
- + target = <&sx1508_1_21>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_1_21_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1508 on I2C#0 at slave addr 0x22
- + fragment@78 {
- + target = <&sx1508_0_22>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_0_22_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1508 on I2C#1 at slave addr 0x22
- + fragment@79 {
- + target = <&sx1508_1_22>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_1_22_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1508 on I2C#0 at slave addr 0x23
- + fragment@80 {
- + target = <&sx1508_0_23>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_0_23_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1508 on I2C#1 at slave addr 0x23
- + fragment@81 {
- + target = <&sx1508_1_23>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_1_23_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1509 on I2C#0 at slave addr 0x3E
- + fragment@82 {
- + target = <&sx1509_0_3E>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_0_3E_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1509 on I2C#1 at slave addr 0x3E
- + fragment@83 {
- + target = <&sx1509_1_3E>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_1_3E_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1509 on I2C#0 at slave addr 0x3F
- + fragment@84 {
- + target = <&sx1509_0_3F>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_0_3F_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1509 on I2C#1 at slave addr 0x3F
- + fragment@85 {
- + target = <&sx1509_1_3F>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_1_3F_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1509 on I2C#0 at slave addr 0x70
- + fragment@86 {
- + target = <&sx1509_0_70>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_0_70_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1509 on I2C#1 at slave addr 0x70
- + fragment@87 {
- + target = <&sx1509_1_70>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_1_70_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1509 on I2C#0 at slave addr 0x71
- + fragment@88 {
- + target = <&sx1509_0_71>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_0_71_pins>;
- + };
- + };
- +
- + // Enable interrupts for a SX1509 on I2C#1 at slave addr 0x71
- + fragment@89 {
- + target = <&sx1509_1_71>;
- + __dormant__ {
- + interrupt-parent = <&gpio>;
- + interrupt-controller;
- + pinctrl-names = "default";
- + pinctrl-0 = <&sx150x_1_71_pins>;
- + };
- + };
- +
- + // Configure GPIO pin connected to NINT output of a SX150x on I2C#0 interface at slave addr 0x20
- + // Configure as a input with no pull-up/down
- + fragment@90 {
- + target = <&gpio>;
- + __dormant__ {
- + sx150x_0_20_pins: sx150x_0_20_pins {
- + brcm,pins = <0>; /* overwritten by sx150x-0-20-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + // Configure GPIO pin connected to NINT output of a SX150x on I2C#1 interface at slave addr 0x20
- + // Configure as a input with no pull-up/down
- + fragment@91 {
- + target = <&gpio>;
- + __dormant__ {
- + sx150x_1_20_pins: sx150x_1_20_pins {
- + brcm,pins = <0>; /* overwritten by sx150x-1-20-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + // Configure GPIO pin connected to NINT output of a SX150x on I2C#0 interface at slave addr 0x21
- + // Configure as a input with no pull-up/down
- + fragment@92 {
- + target = <&gpio>;
- + __dormant__ {
- + sx150x_0_21_pins: sx150x_0_21_pins {
- + brcm,pins = <0>; /* overwritten by sx150x-0-21-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + // Configure GPIO pin connected to NINT output of a SX150x on I2C#1 interface at slave addr 0x21
- + // Configure as a input with no pull-up/down
- + fragment@93 {
- + target = <&gpio>;
- + __dormant__ {
- + sx150x_1_21_pins: sx150x_1_21_pins {
- + brcm,pins = <0>; /* overwritten by sx150x-1-21-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + // Configure GPIO pin connected to NINT output of a SX150x on I2C#0 interface at slave addr 0x22
- + // Configure as a input with no pull-up/down
- + fragment@94 {
- + target = <&gpio>;
- + __dormant__ {
- + sx150x_0_22_pins: sx150x_0_22_pins {
- + brcm,pins = <0>; /* overwritten by sx150x-0-22-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + // Configure GPIO pin connected to NINT output of a SX150x on I2C#1 interface at slave addr 0x22
- + // Configure as a input with no pull-up/down
- + fragment@95 {
- + target = <&gpio>;
- + __dormant__ {
- + sx150x_1_22_pins: sx150x_1_22_pins {
- + brcm,pins = <0>; /* overwritten by sx150x-1-22-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + // Configure GPIO pin connected to NINT output of a SX150x on I2C#0 interface at slave addr 0x23
- + // Configure as a input with no pull-up/down
- + fragment@96 {
- + target = <&gpio>;
- + __dormant__ {
- + sx150x_0_23_pins: sx150x_0_23_pins {
- + brcm,pins = <0>; /* overwritten by sx150x-0-23-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + // Configure GPIO pin connected to NINT output of a SX150x on I2C#1 interface at slave addr 0x23
- + // Configure as a input with no pull-up/down
- + fragment@97 {
- + target = <&gpio>;
- + __dormant__ {
- + sx150x_1_23_pins: sx150x_1_23_pins {
- + brcm,pins = <0>; /* overwritten by sx150x-1-23-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + // Configure GPIO pin connected to NINT output of a SX150x on I2C#0 interface at slave addr 0x3E
- + // Configure as a input with no pull-up/down
- + fragment@98 {
- + target = <&gpio>;
- + __dormant__ {
- + sx150x_0_3E_pins: sx150x_0_3E_pins {
- + brcm,pins = <0>; /* overwritten by sx150x-0-3E-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + // Configure GPIO pin connected to NINT output of a SX150x on I2C#1 interface at slave addr 0x3E
- + // Configure as a input with no pull-up/down
- + fragment@99 {
- + target = <&gpio>;
- + __dormant__ {
- + sx150x_1_3E_pins: sx150x_1_3E_pins {
- + brcm,pins = <0>; /* overwritten by sx150x-1-3E-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + // Configure GPIO pin connected to NINT output of a SX150x on I2C#0 interface at slave addr 0x3F
- + // Configure as a input with no pull-up/down
- + fragment@100 {
- + target = <&gpio>;
- + __dormant__ {
- + sx150x_0_3F_pins: sx150x_0_3F_pins {
- + brcm,pins = <0>; /* overwritten by sx150x-0-3F-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + // Configure GPIO pin connected to NINT output of a SX150x on I2C#1 interface at slave addr 0x3F
- + // Configure as a input with no pull-up/down
- + fragment@101 {
- + target = <&gpio>;
- + __dormant__ {
- + sx150x_1_3F_pins: sx150x_1_3F_pins {
- + brcm,pins = <0>; /* overwritten by sx150x-1-3F-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + // Configure GPIO pin connected to NINT output of a SX150x on I2C#0 interface at slave addr 0x70
- + // Configure as a input with no pull-up/down
- + fragment@102 {
- + target = <&gpio>;
- + __dormant__ {
- + sx150x_0_70_pins: sx150x_0_70_pins {
- + brcm,pins = <0>; /* overwritten by sx150x-0-70-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + // Configure GPIO pin connected to NINT output of a SX150x on I2C#1 interface at slave addr 0x70
- + // Configure as a input with no pull-up/down
- + fragment@103 {
- + target = <&gpio>;
- + __dormant__ {
- + sx150x_1_70_pins: sx150x_1_70_pins {
- + brcm,pins = <0>; /* overwritten by sx150x-1-70-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + // Configure GPIO pin connected to NINT output of a SX150x on I2C#0 interface at slave addr 0x71
- + // Configure as a input with no pull-up/down
- + fragment@104 {
- + target = <&gpio>;
- + __dormant__ {
- + sx150x_0_71_pins: sx150x_0_71_pins {
- + brcm,pins = <0>; /* overwritten by sx150x-0-71-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + // Configure GPIO pin connected to NINT output of a SX150x on I2C#1 interface at slave addr 0x71
- + // Configure as a input with no pull-up/down
- + fragment@105 {
- + target = <&gpio>;
- + __dormant__ {
- + sx150x_1_71_pins: sx150x_1_71_pins {
- + brcm,pins = <0>; /* overwritten by sx150x-1-71-int-gpio parameter */
- + brcm,function = <0>;
- + brcm,pull = <0>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + sx1501-0-20 = <0>,"+0+2";
- + sx1501-1-20 = <0>,"+1+3";
- + sx1501-0-21 = <0>,"+0+4";
- + sx1501-1-21 = <0>,"+1+5";
- + sx1502-0-20 = <0>,"+0+6";
- + sx1502-1-20 = <0>,"+1+7";
- + sx1502-0-21 = <0>,"+0+8";
- + sx1502-1-21 = <0>,"+1+9";
- + sx1503-0-20 = <0>,"+0+10";
- + sx1503-1-20 = <0>,"+1+11";
- + sx1504-0-20 = <0>,"+0+12";
- + sx1504-1-20 = <0>,"+1+13";
- + sx1504-0-21 = <0>,"+0+14";
- + sx1504-1-21 = <0>,"+1+15";
- + sx1505-0-20 = <0>,"+0+16";
- + sx1505-1-20 = <0>,"+1+17";
- + sx1505-0-21 = <0>,"+0+18";
- + sx1505-1-21 = <0>,"+1+19";
- + sx1506-0-20 = <0>,"+0+20";
- + sx1506-1-20 = <0>,"+1+21";
- + sx1507-0-3E = <0>,"+0+22";
- + sx1507-1-3E = <0>,"+1+23";
- + sx1507-0-3F = <0>,"+0+24";
- + sx1507-1-3F = <0>,"+1+25";
- + sx1507-0-70 = <0>,"+0+26";
- + sx1507-1-70 = <0>,"+1+27";
- + sx1507-0-71 = <0>,"+0+28";
- + sx1507-1-71 = <0>,"+1+29";
- + sx1508-0-20 = <0>,"+0+30";
- + sx1508-1-20 = <0>,"+1+31";
- + sx1508-0-21 = <0>,"+0+32";
- + sx1508-1-21 = <0>,"+1+33";
- + sx1508-0-22 = <0>,"+0+34";
- + sx1508-1-22 = <0>,"+1+35";
- + sx1508-0-23 = <0>,"+0+36";
- + sx1508-1-23 = <0>,"+1+37";
- + sx1509-0-3E = <0>,"+0+38";
- + sx1509-1-3E = <0>,"+1+39";
- + sx1509-0-3F = <0>,"+0+40";
- + sx1509-1-3F = <0>,"+1+41";
- + sx1509-0-70 = <0>,"+0+42";
- + sx1509-1-70 = <0>,"+1+43";
- + sx1509-0-71 = <0>,"+0+44";
- + sx1509-1-71 = <0>,"+1+45";
- + sx1501-0-20-int-gpio = <0>,"+46+90", <&sx150x_0_20_pins>,"brcm,pins:0", <&sx1501_0_20>,"interrupts:0";
- + sx1501-1-20-int-gpio = <0>,"+47+91", <&sx150x_1_20_pins>,"brcm,pins:0", <&sx1501_1_20>,"interrupts:0";
- + sx1501-0-21-int-gpio = <0>,"+48+92", <&sx150x_0_21_pins>,"brcm,pins:0", <&sx1501_0_21>,"interrupts:0";
- + sx1501-1-21-int-gpio = <0>,"+49+93", <&sx150x_1_21_pins>,"brcm,pins:0", <&sx1501_1_21>,"interrupts:0";
- + sx1502-0-20-int-gpio = <0>,"+50+90", <&sx150x_0_20_pins>,"brcm,pins:0", <&sx1502_0_20>,"interrupts:0";
- + sx1502-1-20-int-gpio = <0>,"+51+91", <&sx150x_1_20_pins>,"brcm,pins:0", <&sx1502_1_20>,"interrupts:0";
- + sx1502-0-21-int-gpio = <0>,"+52+92", <&sx150x_0_21_pins>,"brcm,pins:0", <&sx1502_0_21>,"interrupts:0";
- + sx1502-1-21-int-gpio = <0>,"+53+93", <&sx150x_1_21_pins>,"brcm,pins:0", <&sx1502_1_21>,"interrupts:0";
- + sx1503-0-20-int-gpio = <0>,"+54+90", <&sx150x_0_20_pins>,"brcm,pins:0", <&sx1503_0_20>,"interrupts:0";
- + sx1503-1-20-int-gpio = <0>,"+55+91", <&sx150x_1_20_pins>,"brcm,pins:0", <&sx1503_1_20>,"interrupts:0";
- + sx1504-0-20-int-gpio = <0>,"+56+90", <&sx150x_0_20_pins>,"brcm,pins:0", <&sx1504_0_20>,"interrupts:0";
- + sx1504-1-20-int-gpio = <0>,"+57+91", <&sx150x_1_20_pins>,"brcm,pins:0", <&sx1504_1_20>,"interrupts:0";
- + sx1504-0-21-int-gpio = <0>,"+58+92", <&sx150x_0_21_pins>,"brcm,pins:0", <&sx1504_0_21>,"interrupts:0";
- + sx1504-1-21-int-gpio = <0>,"+59+93", <&sx150x_1_21_pins>,"brcm,pins:0", <&sx1504_1_21>,"interrupts:0";
- + sx1505-0-20-int-gpio = <0>,"+60+90", <&sx150x_0_20_pins>,"brcm,pins:0", <&sx1505_0_20>,"interrupts:0";
- + sx1505-1-20-int-gpio = <0>,"+61+91", <&sx150x_1_20_pins>,"brcm,pins:0", <&sx1505_1_20>,"interrupts:0";
- + sx1505-0-21-int-gpio = <0>,"+62+92", <&sx150x_0_21_pins>,"brcm,pins:0", <&sx1505_0_21>,"interrupts:0";
- + sx1505-1-21-int-gpio = <0>,"+63+93", <&sx150x_1_21_pins>,"brcm,pins:0", <&sx1505_1_21>,"interrupts:0";
- + sx1506-0-20-int-gpio = <0>,"+64+90", <&sx150x_0_20_pins>,"brcm,pins:0", <&sx1506_0_20>,"interrupts:0";
- + sx1506-1-20-int-gpio = <0>,"+65+91", <&sx150x_1_20_pins>,"brcm,pins:0", <&sx1506_1_20>,"interrupts:0";
- + sx1507-0-3E-int-gpio = <0>,"+66+98", <&sx150x_0_3E_pins>,"brcm,pins:0", <&sx1507_0_3E>,"interrupts:0";
- + sx1507-1-3E-int-gpio = <0>,"+67+99", <&sx150x_1_3E_pins>,"brcm,pins:0", <&sx1507_1_3E>,"interrupts:0";
- + sx1507-0-3F-int-gpio = <0>,"+68+100", <&sx150x_0_3F_pins>,"brcm,pins:0", <&sx1507_0_3F>,"interrupts:0";
- + sx1507-1-3F-int-gpio = <0>,"+69+101", <&sx150x_1_3F_pins>,"brcm,pins:0", <&sx1507_1_3F>,"interrupts:0";
- + sx1507-0-70-int-gpio = <0>,"+60+102", <&sx150x_0_70_pins>,"brcm,pins:0", <&sx1507_0_70>,"interrupts:0";
- + sx1507-1-70-int-gpio = <0>,"+71+103", <&sx150x_1_70_pins>,"brcm,pins:0", <&sx1507_1_70>,"interrupts:0";
- + sx1507-0-71-int-gpio = <0>,"+72+104", <&sx150x_0_71_pins>,"brcm,pins:0", <&sx1507_0_71>,"interrupts:0";
- + sx1507-1-71-int-gpio = <0>,"+73+105", <&sx150x_1_71_pins>,"brcm,pins:0", <&sx1507_1_71>,"interrupts:0";
- + sx1508-0-20-int-gpio = <0>,"+74+90", <&sx150x_0_20_pins>,"brcm,pins:0", <&sx1508_0_20>,"interrupts:0";
- + sx1508-1-20-int-gpio = <0>,"+75+91", <&sx150x_1_20_pins>,"brcm,pins:0", <&sx1508_1_20>,"interrupts:0";
- + sx1508-0-21-int-gpio = <0>,"+76+92", <&sx150x_0_21_pins>,"brcm,pins:0", <&sx1508_0_21>,"interrupts:0";
- + sx1508-1-21-int-gpio = <0>,"+77+93", <&sx150x_1_21_pins>,"brcm,pins:0", <&sx1508_1_21>,"interrupts:0";
- + sx1508-0-22-int-gpio = <0>,"+78+94", <&sx150x_0_22_pins>,"brcm,pins:0", <&sx1508_0_22>,"interrupts:0";
- + sx1508-1-22-int-gpio = <0>,"+79+95", <&sx150x_1_22_pins>,"brcm,pins:0", <&sx1508_1_22>,"interrupts:0";
- + sx1508-0-23-int-gpio = <0>,"+80+96", <&sx150x_0_23_pins>,"brcm,pins:0", <&sx1508_0_23>,"interrupts:0";
- + sx1508-1-23-int-gpio = <0>,"+81+97", <&sx150x_1_23_pins>,"brcm,pins:0", <&sx1508_1_23>,"interrupts:0";
- + sx1509-0-3E-int-gpio = <0>,"+82+98", <&sx150x_0_3E_pins>,"brcm,pins:0", <&sx1509_0_3E>,"interrupts:0";
- + sx1509-1-3E-int-gpio = <0>,"+83+99", <&sx150x_1_3E_pins>,"brcm,pins:0", <&sx1509_1_3E>,"interrupts:0";
- + sx1509-0-3F-int-gpio = <0>,"+84+100", <&sx150x_0_3F_pins>,"brcm,pins:0", <&sx1509_0_3F>,"interrupts:0";
- + sx1509-1-3F-int-gpio = <0>,"+85+101", <&sx150x_1_3F_pins>,"brcm,pins:0", <&sx1509_1_3F>,"interrupts:0";
- + sx1509-0-70-int-gpio = <0>,"+86+102", <&sx150x_0_70_pins>,"brcm,pins:0", <&sx1509_0_70>,"interrupts:0";
- + sx1509-1-70-int-gpio = <0>,"+87+103", <&sx150x_1_70_pins>,"brcm,pins:0", <&sx1509_1_70>,"interrupts:0";
- + sx1509-0-71-int-gpio = <0>,"+88+104", <&sx150x_0_71_pins>,"brcm,pins:0", <&sx1509_0_71>,"interrupts:0";
- + sx1509-1-71-int-gpio = <0>,"+89+105", <&sx150x_1_71_pins>,"brcm,pins:0", <&sx1509_1_71>,"interrupts:0";
- + };
- +};
- +
- diff --git a/arch/arm/boot/dts/overlays/tc358743-audio-overlay.dts b/arch/arm/boot/dts/overlays/tc358743-audio-overlay.dts
- new file mode 100644
- index 000000000000..047695bb0c71
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/tc358743-audio-overlay.dts
- @@ -0,0 +1,52 @@
- +// SPDX-License-Identifier: GPL-2.0-only
- +// Definitions to add I2S audio from the Toshiba TC358743 HDMI to CSI2 bridge.
- +// Requires tc358743 overlay to have been loaded to actually function.
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + tc358743_codec: tc358743-codec {
- + #sound-dai-cells = <0>;
- + compatible = "linux,spdif-dir";
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + sound_overlay: __overlay__ {
- + compatible = "simple-audio-card";
- + simple-audio-card,format = "i2s";
- + simple-audio-card,name = "tc358743";
- + simple-audio-card,bitclock-master = <&dailink0_slave>;
- + simple-audio-card,frame-master = <&dailink0_slave>;
- + status = "okay";
- +
- + simple-audio-card,cpu {
- + sound-dai = <&i2s>;
- + dai-tdm-slot-num = <2>;
- + dai-tdm-slot-width = <32>;
- + };
- + dailink0_slave: simple-audio-card,codec {
- + sound-dai = <&tc358743_codec>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + card-name = <&sound_overlay>,"simple-audio-card,name";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/tc358743-overlay.dts b/arch/arm/boot/dts/overlays/tc358743-overlay.dts
- new file mode 100644
- index 000000000000..a1f8af36d2e7
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/tc358743-overlay.dts
- @@ -0,0 +1,107 @@
- +// SPDX-License-Identifier: GPL-2.0-only
- +// Definitions for Toshiba TC358743 HDMI to CSI2 bridge on VC I2C bus
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c_csi_dsi>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + tc358743@0f {
- + compatible = "toshiba,tc358743";
- + reg = <0x0f>;
- + status = "okay";
- +
- + clocks = <&tc358743_clk>;
- + clock-names = "refclk";
- +
- + port {
- + tc358743: endpoint {
- + remote-endpoint = <&csi1_ep>;
- + clock-lanes = <0>;
- + clock-noncontinuous;
- + link-frequencies =
- + /bits/ 64 <486000000>;
- + };
- + };
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&csi1>;
- + __overlay__ {
- + status = "okay";
- +
- + port {
- + csi1_ep: endpoint {
- + remote-endpoint = <&tc358743>;
- + };
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&tc358743>;
- + __overlay__ {
- + data-lanes = <1 2>;
- + };
- + };
- +
- + fragment@3 {
- + target = <&tc358743>;
- + __dormant__ {
- + data-lanes = <1 2 3 4>;
- + };
- + };
- +
- + fragment@4 {
- + target = <&i2c0if>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@5 {
- + target = <&i2c0mux>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@6 {
- + target-path = "/";
- + __overlay__ {
- + tc358743_clk: bridge-clk {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-frequency = <27000000>;
- + };
- + };
- + };
- +
- + fragment@7 {
- + target = <&csi1_ep>;
- + __overlay__ {
- + data-lanes = <1 2>;
- + };
- + };
- +
- + fragment@8 {
- + target = <&csi1_ep>;
- + __dormant__ {
- + data-lanes = <1 2 3 4>;
- + };
- + };
- +
- + __overrides__ {
- + 4lane = <0>, "-2+3-7+8";
- + link-frequency = <&tc358743>,"link-frequencies#0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/tinylcd35-overlay.dts b/arch/arm/boot/dts/overlays/tinylcd35-overlay.dts
- new file mode 100644
- index 000000000000..a102b09e3ab5
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/tinylcd35-overlay.dts
- @@ -0,0 +1,222 @@
- +/*
- + * tinylcd35-overlay.dts
- + *
- + * -------------------------------------------------
- + * www.tinlylcd.com
- + * -------------------------------------------------
- + * Device---Driver-----BUS GPIO's
- + * display tinylcd35 spi0.0 25 24 18
- + * touch ads7846 spi0.1 5
- + * rtc ds1307 i2c1-0068
- + * rtc pcf8563 i2c1-0051
- + * keypad gpio-keys --------- 17 22 27 23 28
- + *
- + *
- + * TinyLCD.com 3.5 inch TFT
- + *
- + * Version 001
- + * 5/3/2015 -- Noralf Trønnes Initial Device tree framework
- + * 10/3/2015 -- [email protected] added ds1307 support.
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&spidev1>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target = <&gpio>;
- + __overlay__ {
- + tinylcd35_pins: tinylcd35_pins {
- + brcm,pins = <25 24 18>;
- + brcm,function = <1>; /* out */
- + };
- + tinylcd35_ts_pins: tinylcd35_ts_pins {
- + brcm,pins = <5>;
- + brcm,function = <0>; /* in */
- + };
- + keypad_pins: keypad_pins {
- + brcm,pins = <4 17 22 23 27>;
- + brcm,function = <0>; /* in */
- + brcm,pull = <1>; /* down */
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + tinylcd35: tinylcd35@0{
- + compatible = "neosec,tinylcd";
- + reg = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&tinylcd35_pins>,
- + <&tinylcd35_ts_pins>;
- +
- + spi-max-frequency = <48000000>;
- + rotate = <270>;
- + fps = <20>;
- + bgr;
- + buswidth = <8>;
- + reset-gpios = <&gpio 25 1>;
- + dc-gpios = <&gpio 24 0>;
- + led-gpios = <&gpio 18 0>;
- + debug = <0>;
- +
- + init = <0x10000B0 0x80
- + 0x10000C0 0x0A 0x0A
- + 0x10000C1 0x01 0x01
- + 0x10000C2 0x33
- + 0x10000C5 0x00 0x42 0x80
- + 0x10000B1 0xD0 0x11
- + 0x10000B4 0x02
- + 0x10000B6 0x00 0x22 0x3B
- + 0x10000B7 0x07
- + 0x1000036 0x58
- + 0x10000F0 0x36 0xA5 0xD3
- + 0x10000E5 0x80
- + 0x10000E5 0x01
- + 0x10000B3 0x00
- + 0x10000E5 0x00
- + 0x10000F0 0x36 0xA5 0x53
- + 0x10000E0 0x00 0x35 0x33 0x00 0x00 0x00 0x00 0x35 0x33 0x00 0x00 0x00
- + 0x100003A 0x55
- + 0x1000011
- + 0x2000001
- + 0x1000029>;
- + };
- +
- + tinylcd35_ts: tinylcd35_ts@1 {
- + compatible = "ti,ads7846";
- + reg = <1>;
- + status = "disabled";
- +
- + spi-max-frequency = <2000000>;
- + interrupts = <5 2>; /* high-to-low edge triggered */
- + interrupt-parent = <&gpio>;
- + pendown-gpio = <&gpio 5 0>;
- + ti,x-plate-ohms = /bits/ 16 <100>;
- + ti,pressure-max = /bits/ 16 <255>;
- + };
- + };
- + };
- +
- + /* RTC */
- +
- + fragment@5 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + status = "okay";
- +
- + pcf8563: pcf8563@51 {
- + compatible = "nxp,pcf8563";
- + reg = <0x51>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@6 {
- + target = <&i2c1>;
- + __dormant__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + status = "okay";
- +
- + ds1307: ds1307@68 {
- + compatible = "dallas,ds1307";
- + reg = <0x68>;
- + status = "okay";
- + };
- + };
- + };
- +
- + /*
- + * Values for input event code is found under the
- + * 'Keys and buttons' heading in include/uapi/linux/input.h
- + */
- + fragment@7 {
- + target-path = "/soc";
- + __overlay__ {
- + keypad: keypad {
- + compatible = "gpio-keys";
- + pinctrl-names = "default";
- + pinctrl-0 = <&keypad_pins>;
- + status = "disabled";
- + autorepeat;
- +
- + button@17 {
- + label = "GPIO KEY_UP";
- + linux,code = <103>;
- + gpios = <&gpio 17 0>;
- + };
- + button@22 {
- + label = "GPIO KEY_DOWN";
- + linux,code = <108>;
- + gpios = <&gpio 22 0>;
- + };
- + button@27 {
- + label = "GPIO KEY_LEFT";
- + linux,code = <105>;
- + gpios = <&gpio 27 0>;
- + };
- + button@23 {
- + label = "GPIO KEY_RIGHT";
- + linux,code = <106>;
- + gpios = <&gpio 23 0>;
- + };
- + button@4 {
- + label = "GPIO KEY_ENTER";
- + linux,code = <28>;
- + gpios = <&gpio 4 0>;
- + };
- + };
- + };
- + };
- +
- + __overrides__ {
- + speed = <&tinylcd35>,"spi-max-frequency:0";
- + rotate = <&tinylcd35>,"rotate:0";
- + fps = <&tinylcd35>,"fps:0";
- + debug = <&tinylcd35>,"debug:0";
- + touch = <&tinylcd35_ts>,"status";
- + touchgpio = <&tinylcd35_ts_pins>,"brcm,pins:0",
- + <&tinylcd35_ts>,"interrupts:0",
- + <&tinylcd35_ts>,"pendown-gpio:4";
- + xohms = <&tinylcd35_ts>,"ti,x-plate-ohms;0";
- + rtc-pcf = <0>,"=5";
- + rtc-ds = <0>,"=6";
- + keypad = <&keypad>,"status";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/tpm-slb9670-overlay.dts b/arch/arm/boot/dts/overlays/tpm-slb9670-overlay.dts
- new file mode 100644
- index 000000000000..e69188503ca3
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/tpm-slb9670-overlay.dts
- @@ -0,0 +1,44 @@
- +/*
- + * Device Tree overlay for the Infineon SLB9670 Trusted Platform Module add-on
- + * boards, which can be used as a secure key storage and hwrng.
- + * available as "Iridium SLB9670" by Infineon and "LetsTrust TPM" by pi3g.
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev1>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + slb9670: slb9670@1 {
- + compatible = "infineon,slb9670";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <32000000>;
- + status = "okay";
- + };
- +
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/uart0-overlay.dts b/arch/arm/boot/dts/overlays/uart0-overlay.dts
- new file mode 100755
- index 000000000000..73d563bbaabf
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/uart0-overlay.dts
- @@ -0,0 +1,32 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&uart0>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart0_pins>;
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + uart0_pins: uart0_pins {
- + brcm,pins = <14 15>;
- + brcm,function = <4>; /* alt0 */
- + brcm,pull = <0 2>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + txd0_pin = <&uart0_pins>,"brcm,pins:0";
- + rxd0_pin = <&uart0_pins>,"brcm,pins:4";
- + pin_func = <&uart0_pins>,"brcm,function:0";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/uart1-overlay.dts b/arch/arm/boot/dts/overlays/uart1-overlay.dts
- new file mode 100644
- index 000000000000..986d725a2652
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/uart1-overlay.dts
- @@ -0,0 +1,38 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&uart1>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart1_pins>;
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + uart1_pins: uart1_pins {
- + brcm,pins = <14 15>;
- + brcm,function = <2>; /* alt5 */
- + brcm,pull = <0 2>;
- + };
- + };
- + };
- +
- + fragment@2 {
- + target-path = "/chosen";
- + __overlay__ {
- + bootargs = "8250.nr_uarts=1";
- + };
- + };
- +
- + __overrides__ {
- + txd1_pin = <&uart1_pins>,"brcm,pins:0";
- + rxd1_pin = <&uart1_pins>,"brcm,pins:4";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/uart2-overlay.dts b/arch/arm/boot/dts/overlays/uart2-overlay.dts
- new file mode 100644
- index 000000000000..9face240aca1
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/uart2-overlay.dts
- @@ -0,0 +1,27 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2711";
- +
- + fragment@0 {
- + target = <&uart2>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart2_pins>;
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&uart2_pins>;
- + __dormant__ {
- + brcm,pins = <0 1 2 3>;
- + brcm,pull = <0 2 2 0>;
- + };
- + };
- +
- + __overrides__ {
- + ctsrts = <0>,"=1";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/uart3-overlay.dts b/arch/arm/boot/dts/overlays/uart3-overlay.dts
- new file mode 100644
- index 000000000000..ae9f9fe5ea1d
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/uart3-overlay.dts
- @@ -0,0 +1,27 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2711";
- +
- + fragment@0 {
- + target = <&uart3>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart3_pins>;
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&uart3_pins>;
- + __dormant__ {
- + brcm,pins = <4 5 6 7>;
- + brcm,pull = <0 2 2 0>;
- + };
- + };
- +
- + __overrides__ {
- + ctsrts = <0>,"=1";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/uart4-overlay.dts b/arch/arm/boot/dts/overlays/uart4-overlay.dts
- new file mode 100644
- index 000000000000..ac004ffbadbf
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/uart4-overlay.dts
- @@ -0,0 +1,27 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2711";
- +
- + fragment@0 {
- + target = <&uart4>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart4_pins>;
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&uart4_pins>;
- + __dormant__ {
- + brcm,pins = <8 9 10 11>;
- + brcm,pull = <0 2 2 0>;
- + };
- + };
- +
- + __overrides__ {
- + ctsrts = <0>,"=1";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/uart5-overlay.dts b/arch/arm/boot/dts/overlays/uart5-overlay.dts
- new file mode 100644
- index 000000000000..04eaf376effe
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/uart5-overlay.dts
- @@ -0,0 +1,27 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2711";
- +
- + fragment@0 {
- + target = <&uart5>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&uart5_pins>;
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&uart5_pins>;
- + __dormant__ {
- + brcm,pins = <12 13 14 15>;
- + brcm,pull = <0 2 2 0>;
- + };
- + };
- +
- + __overrides__ {
- + ctsrts = <0>,"=1";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/udrc-overlay.dts b/arch/arm/boot/dts/overlays/udrc-overlay.dts
- new file mode 100644
- index 000000000000..ae7c37996894
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/udrc-overlay.dts
- @@ -0,0 +1,128 @@
- +#include <dt-bindings/clock/bcm2835.h>
- +/*
- + * Device tree overlay for the Universal Digital Radio Controller
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + clocks = <&clocks BCM2835_CLOCK_PCM>;
- + clock-names = "pcm";
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + regulators {
- + compatible = "simple-bus";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + udrc0_ldoin: udrc0_ldoin {
- + compatible = "regulator-fixed";
- + regulator-name = "ldoin";
- + regulator-min-microvolt = <3300000>;
- + regulator-max-microvolt = <3300000>;
- + regulator-always-on;
- + };
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- + clocks = <&clocks BCM2835_CLOCK_VPU>;
- + clock-frequency = <400000>;
- +
- + tlv320aic32x4: tlv320aic32x4@18 {
- + compatible = "ti,tlv320aic32x4";
- + #sound-dai-cells = <0>;
- + reg = <0x18>;
- + status = "okay";
- +
- + clocks = <&clocks BCM2835_CLOCK_GP0>;
- + clock-names = "mclk";
- + assigned-clocks = <&clocks BCM2835_CLOCK_GP0>;
- + assigned-clock-rates = <25000000>;
- +
- + pinctrl-names = "default";
- + pinctrl-0 = <&gpclk0_pin &aic3204_reset>;
- +
- + reset-gpios = <&gpio 13 0>;
- +
- + iov-supply = <&udrc0_ldoin>;
- + ldoin-supply = <&udrc0_ldoin>;
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&sound>;
- + snd: __overlay__ {
- + compatible = "simple-audio-card";
- + i2s-controller = <&i2s>;
- + status = "okay";
- +
- + simple-audio-card,name = "udrc";
- + simple-audio-card,format = "i2s";
- +
- + simple-audio-card,bitclock-master = <&dailink0_master>;
- + simple-audio-card,frame-master = <&dailink0_master>;
- +
- + simple-audio-card,widgets =
- + "Line", "Line In",
- + "Line", "Line Out";
- +
- + simple-audio-card,routing =
- + "IN1_R", "Line In",
- + "IN1_L", "Line In",
- + "CM_L", "Line In",
- + "CM_R", "Line In",
- + "Line Out", "LOR",
- + "Line Out", "LOL";
- +
- + dailink0_master: simple-audio-card,cpu {
- + sound-dai = <&i2s>;
- + };
- +
- + simple-audio-card,codec {
- + sound-dai = <&tlv320aic32x4>;
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&gpio>;
- + __overlay__ {
- + gpclk0_pin: gpclk0_pin {
- + brcm,pins = <4>;
- + brcm,function = <4>;
- + };
- +
- + aic3204_reset: aic3204_reset {
- + brcm,pins = <13>;
- + brcm,function = <1>;
- + brcm,pull = <1>;
- + };
- +
- + aic3204_gpio: aic3204_gpio {
- + brcm,pins = <26>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + alsaname = <&snd>, "simple-audio-card,name";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/ugreen-dabboard-overlay.dts b/arch/arm/boot/dts/overlays/ugreen-dabboard-overlay.dts
- new file mode 100644
- index 000000000000..fc8d9b118068
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/ugreen-dabboard-overlay.dts
- @@ -0,0 +1,49 @@
- +// Definitions for the ugreen dabboard I2S
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + dmic_codec: dmic-codec {
- + #sound-dai-cells = <0>;
- + compatible = "dmic-codec";
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sound>;
- + sound_overlay: __overlay__ {
- + compatible = "simple-audio-card";
- + simple-audio-card,format = "i2s";
- + simple-audio-card,name = "dabboard";
- + simple-audio-card,bitclock-master = <&dailink0_slave>;
- + simple-audio-card,frame-master = <&dailink0_slave>;
- + simple-audio-card,widgets = "Microphone", "Microphone Jack";
- + status = "okay";
- + simple-audio-card,cpu {
- + sound-dai = <&i2s>;
- + };
- + dailink0_slave: simple-audio-card,codec {
- + #sound-dai-cells = <0>;
- + sound-dai = <&dmic_codec>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + card-name = <&sound_overlay>,"simple-audio-card,name";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/upstream-overlay.dts b/arch/arm/boot/dts/overlays/upstream-overlay.dts
- new file mode 100644
- index 000000000000..7c4071a7cb27
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/upstream-overlay.dts
- @@ -0,0 +1,101 @@
- +// redo: ovmerge -c vc4-kms-v3d-overlay.dts,cma-default dwc2-overlay.dts,dr_mode=otg
- +
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/clock/bcm2835.h>
- +
- +/ {
- + compatible = "brcm,bcm2835";
- + fragment@0 {
- + target = <&i2c2>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@1 {
- + target = <&fb>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- + fragment@2 {
- + target = <&pixelvalve0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@3 {
- + target = <&pixelvalve1>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@4 {
- + target = <&pixelvalve2>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@5 {
- + target = <&hvs>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@6 {
- + target = <&hdmi>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@7 {
- + target = <&v3d>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@8 {
- + target = <&vc4>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@9 {
- + target = <&clocks>;
- + __overlay__ {
- + claim-clocks = <BCM2835_PLLD_DSI0 BCM2835_PLLD_DSI1 BCM2835_PLLH_AUX BCM2835_PLLH_PIX>;
- + };
- + };
- + fragment@10 {
- + target = <&vec>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@11 {
- + target = <&txp>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@12 {
- + target = <&audio>;
- + __overlay__ {
- + brcm,disable-hdmi;
- + };
- + };
- + fragment@13 {
- + target = <&usb>;
- + #address-cells = <1>;
- + #size-cells = <1>;
- + __overlay__ {
- + compatible = "brcm,bcm2835-usb";
- + dr_mode = "otg";
- + g-np-tx-fifo-size = <32>;
- + g-rx-fifo-size = <558>;
- + g-tx-fifo-size = <512 512 512 512 512 256 256>;
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/upstream-pi4-overlay.dts b/arch/arm/boot/dts/overlays/upstream-pi4-overlay.dts
- new file mode 100644
- index 000000000000..f4328634542e
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/upstream-pi4-overlay.dts
- @@ -0,0 +1,137 @@
- +// redo: ovmerge -c vc4-kms-v3d-pi4-overlay.dts,cma-default dwc2-overlay.dts,dr_mode=otg
- +
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/clock/bcm2835.h>
- +
- +/ {
- + compatible = "brcm,bcm2711";
- + fragment@0 {
- + target = <&ddc0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@1 {
- + target = <&ddc1>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@2 {
- + target = <&hdmi0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@3 {
- + target = <&hdmi1>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@4 {
- + target = <&hvs>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@5 {
- + target = <&pixelvalve0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@6 {
- + target = <&pixelvalve1>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@7 {
- + target = <&pixelvalve2>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@8 {
- + target = <&pixelvalve3>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@9 {
- + target = <&pixelvalve4>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@10 {
- + target = <&v3d>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@11 {
- + target = <&vc4>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@12 {
- + target = <&txp>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@13 {
- + target = <&fb>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- + fragment@14 {
- + target = <&firmwarekms>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- + fragment@15 {
- + target = <&vec>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- + fragment@16 {
- + target = <&audio>;
- + __overlay__ {
- + brcm,disable-hdmi;
- + };
- + };
- + fragment@17 {
- + target = <&dvp>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@18 {
- + target = <&aon_intr>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@19 {
- + target = <&usb>;
- + #address-cells = <1>;
- + #size-cells = <1>;
- + __overlay__ {
- + compatible = "brcm,bcm2835-usb";
- + dr_mode = "otg";
- + g-np-tx-fifo-size = <32>;
- + g-rx-fifo-size = <558>;
- + g-tx-fifo-size = <512 512 512 512 512 256 256>;
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/vc4-fkms-v3d-overlay.dts b/arch/arm/boot/dts/overlays/vc4-fkms-v3d-overlay.dts
- new file mode 100644
- index 000000000000..ca344492bed8
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/vc4-fkms-v3d-overlay.dts
- @@ -0,0 +1,40 @@
- +/*
- + * vc4-fkms-v3d-overlay.dts
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +#include "cma-overlay.dts"
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@1 {
- + target = <&fb>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&firmwarekms>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@3 {
- + target = <&v3d>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@4 {
- + target = <&vc4>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/vc4-fkms-v3d-pi4-overlay.dts b/arch/arm/boot/dts/overlays/vc4-fkms-v3d-pi4-overlay.dts
- new file mode 100644
- index 000000000000..7792ead0cbb3
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/vc4-fkms-v3d-pi4-overlay.dts
- @@ -0,0 +1,44 @@
- +/*
- + * vc4-fkms-v3d-overlay.dts
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +#include "cma-overlay.dts"
- +
- +&frag0 {
- + size = <((320-4)*1024*1024)>;
- +};
- +
- +/ {
- + compatible = "brcm,bcm2711";
- +
- + fragment@1 {
- + target = <&fb>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&firmwarekms>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@3 {
- + target = <&v3d>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@4 {
- + target = <&vc4>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/vc4-kms-dpi-at056tn53v1-overlay.dts b/arch/arm/boot/dts/overlays/vc4-kms-dpi-at056tn53v1-overlay.dts
- new file mode 100644
- index 000000000000..f7181c9828bf
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/vc4-kms-dpi-at056tn53v1-overlay.dts
- @@ -0,0 +1,44 @@
- +/*
- + * vc4-kms-dpi-at056tn53v1-overlay.dts
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/gpio/gpio.h>
- +#include <dt-bindings/pinctrl/bcm2835.h>
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + panel: panel {
- + compatible = "innolux,at056tn53v1", "simple-panel";
- +
- + port {
- + panel_in: endpoint {
- + remote-endpoint = <&dpi_out>;
- + };
- + };
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&dpi>;
- + __overlay__ {
- + status = "okay";
- +
- + pinctrl-names = "default";
- + pinctrl-0 = <&dpi_18bit_cpadhi_gpio0>;
- +
- + port {
- + dpi_out: endpoint {
- + remote-endpoint = <&panel_in>;
- + };
- + };
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/vc4-kms-dsi-7inch-overlay.dts b/arch/arm/boot/dts/overlays/vc4-kms-dsi-7inch-overlay.dts
- new file mode 100644
- index 000000000000..ecd3bef3d65a
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/vc4-kms-dsi-7inch-overlay.dts
- @@ -0,0 +1,118 @@
- +/*
- + * Device Tree overlay for RaspberryPi 7" Touchscreen panel
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +#include "edt-ft5406.dtsi"
- +
- +/ {
- + /* No compatible as it will have come from edt-ft5406.dtsi */
- +
- + fragment@0 {
- + target = <&dsi1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- + port {
- + dsi_out: endpoint {
- + remote-endpoint = <&bridge_in>;
- + };
- + };
- + bridge@0 {
- + reg = <0>;
- + compatible = "toshiba,tc358762";
- + vddc-supply = <®_bridge>;
- + ports {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + port@0 {
- + reg = <0>;
- + bridge_in: endpoint {
- + remote-endpoint = <&dsi_out>;
- + };
- + };
- +
- + port@1 {
- + reg = <1>;
- + bridge_out: endpoint {
- + remote-endpoint = <&panel_in>;
- + };
- + };
- + };
- + };
- + };
- + };
- +
- + fragment@1 {
- + target-path = "/";
- + __overlay__ {
- + panel_disp1: panel_disp1@0 {
- + reg = <0>;
- + compatible = "raspberrypi,7inch-dsi", "simple-panel";
- + backlight = <®_display>;
- + power-supply = <®_display>;
- +
- + port {
- + panel_in: endpoint {
- + remote-endpoint = <&bridge_out>;
- + };
- + };
- + };
- +
- + reg_bridge: reg_bridge@0 {
- + reg = <0>;
- + compatible = "regulator-fixed";
- + regulator-name = "bridge_reg";
- + gpio = <®_display 0 0>;
- + vin-supply = <®_display>;
- + enable-active-high;
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&i2c_csi_dsi>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + reg_display: reg_display@45 {
- + compatible = "raspberrypi,7inch-touchscreen-panel-regulator";
- + reg = <0x45>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&i2c0if>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@4 {
- + target = <&i2c0mux>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- + fragment@5 {
- + target = <&ft5406>;
- + __overlay__ {
- + vcc-supply = <®_display>;
- + reset-gpio = <®_display 1 1>;
- + };
- + };
- +
- + __overrides__ {
- + disable_touch = <0>, "-10-11-12-13";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/vc4-kms-dsi-lt070me05000-overlay.dts b/arch/arm/boot/dts/overlays/vc4-kms-dsi-lt070me05000-overlay.dts
- new file mode 100644
- index 000000000000..d7b8f6713804
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/vc4-kms-dsi-lt070me05000-overlay.dts
- @@ -0,0 +1,69 @@
- +/*
- + * Device Tree overlay to connect a JDI LT070ME05000 DSI panel to DSI1.
- + * This uses 4 DSI data lanes, so can only be used with a Compute Module.
- + *
- + * Credit to forum user gizmomouse on
- + * https://www.raspberrypi.org/forums/viewtopic.php?f=98&t=253912 and
- + * Andrey Vostrukhin of Harlab for the overlay.
- + *
- + * Refer to https://github.com/harlab/CM4_LCD_LT070ME05000 for schematics and
- + * other documentation.
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&dsi1>;
- + __overlay__{
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + port {
- + dsi_out_port:endpoint {
- + remote-endpoint = <&panel_dsi_port>;
- + };
- + };
- +
- + lt070me05000:lt070me05000@0 {
- + compatible = "jdi,lt070me05000";
- + status = "okay";
- + reg = <0>;
- + reset-gpios = <&gpio 17 1>; // LCD RST
- + enable-gpios = <&gpio 4 0>; // LCD Enable
- + dcdc-en-gpios = <&gpio 5 0>; // LCD DC-DC Enable
- + port {
- + panel_dsi_port: endpoint {
- + remote-endpoint = <&dsi_out_port>;
- + };
- + };
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + lt070me05000_pins: lt070me05000_pins {
- + brcm,pins = <4 5 17>;
- + brcm,function = <1 1 1>; // out
- + brcm,pull = <0 0 0>; // off
- + };
- + };
- +
- + };
- +
- + __overrides__ {
- + reset = <<070me05000_pins>,"brcm,pins:8",
- + <<070me05000>,"reset-gpios:4";
- +
- + enable = <<070me05000_pins>,"brcm,pins:0",
- + <<070me05000>,"enable-gpios:4";
- +
- + dcdc-en = <<070me05000_pins>,"brcm,pins:4",
- + <<070me05000>,"dcdc-en-gpios:4";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/vc4-kms-dsi-lt070me05000-v2-overlay.dts b/arch/arm/boot/dts/overlays/vc4-kms-dsi-lt070me05000-v2-overlay.dts
- new file mode 100644
- index 000000000000..5dcd0f2243e2
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/vc4-kms-dsi-lt070me05000-v2-overlay.dts
- @@ -0,0 +1,64 @@
- +/*
- + * Device Tree overlay to connect a JDI LT070ME05000 DSI panel to DSI1.
- + * This uses 4 DSI data lanes, so can only be used with a Compute Module.
- + *
- + * The overlay is for V2 of Harlab's interface board that uses a PCA9536 to
- + * handle the panel's control GPIOs instead of wiring it back to Pi GPIOs.
- + *
- + * Credit to Andrey Vostrukhin of Harlab for the overlay.
- + *
- + * Refer to https://github.com/harlab/CM4_LCD_LT070ME05000 for schematics and
- + * other documentation.
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2c_csi_dsi>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + pca: pca@41 {
- + compatible = "nxp,pca9536";
- + reg = <0x41>;
- + gpio-controller;
- + #gpio-cells = <2>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&dsi1>;
- + __overlay__{
- + status = "okay";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + port {
- + dsi_out_port:endpoint {
- + remote-endpoint = <&panel_dsi_port>;
- + };
- + };
- +
- + lt070me05000:lt070me05000@0 {
- + compatible = "jdi,lt070me05000";
- + status = "okay";
- + reg = <0>;
- + reset-gpios = <&pca 0 1>;
- + enable-gpios = <&pca 2 0>;
- + dcdc-en-gpios = <&pca 1 0>;
- + port {
- + panel_dsi_port: endpoint {
- + remote-endpoint = <&dsi_out_port>;
- + };
- + };
- + };
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/vc4-kms-kippah-7inch-overlay.dts b/arch/arm/boot/dts/overlays/vc4-kms-kippah-7inch-overlay.dts
- new file mode 100644
- index 000000000000..b03394844abd
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/vc4-kms-kippah-7inch-overlay.dts
- @@ -0,0 +1,43 @@
- +/*
- + * vc4-kms-v3d-overlay.dts
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/pinctrl/bcm2835.h>
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + panel: panel {
- + compatible = "ontat,yx700wv03", "simple-panel";
- +
- + port {
- + panel_in: endpoint {
- + remote-endpoint = <&dpi_out>;
- + };
- + };
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&dpi>;
- + __overlay__ {
- + status = "okay";
- +
- + pinctrl-names = "default";
- + pinctrl-0 = <&dpi_18bit_gpio0>;
- +
- + port {
- + dpi_out: endpoint@0 {
- + remote-endpoint = <&panel_in>;
- + };
- + };
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dts b/arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dts
- new file mode 100644
- index 000000000000..5a4efdeed663
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dts
- @@ -0,0 +1,123 @@
- +/*
- + * vc4-kms-v3d-overlay.dts
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/clock/bcm2835.h>
- +
- +#include "cma-overlay.dts"
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@1 {
- + target = <&i2c2>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@2 {
- + target = <&fb>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@3 {
- + target = <&pixelvalve0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@4 {
- + target = <&pixelvalve1>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@5 {
- + target = <&pixelvalve2>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@6 {
- + target = <&hvs>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@7 {
- + target = <&hdmi>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@8 {
- + target = <&v3d>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@9 {
- + target = <&vc4>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@10 {
- + target = <&clocks>;
- + __overlay__ {
- + claim-clocks = <
- + BCM2835_PLLD_DSI0
- + BCM2835_PLLD_DSI1
- + BCM2835_PLLH_AUX
- + BCM2835_PLLH_PIX
- + >;
- + };
- + };
- +
- + fragment@11 {
- + target = <&vec>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@12 {
- + target = <&txp>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@13 {
- + target = <&hdmi>;
- + __dormant__ {
- + dmas;
- + };
- + };
- +
- + fragment@14 {
- + target = <&audio>;
- + __overlay__ {
- + brcm,disable-hdmi;
- + };
- + };
- +
- + __overrides__ {
- + audio = <0>,"!13", <0>,"=14";
- + noaudio = <0>,"=13", <0>,"!14";
- + nocomposite = <0>, "!11";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/vc4-kms-v3d-pi4-overlay.dts b/arch/arm/boot/dts/overlays/vc4-kms-v3d-pi4-overlay.dts
- new file mode 100644
- index 000000000000..4285e12a4e53
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/vc4-kms-v3d-pi4-overlay.dts
- @@ -0,0 +1,197 @@
- +/*
- + * vc4-kms-v3d-pi4-overlay.dts
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/clock/bcm2835.h>
- +
- +#include "cma-overlay.dts"
- +
- +&frag0 {
- + size = <((320-4)*1024*1024)>;
- +};
- +
- +/ {
- + compatible = "brcm,bcm2711";
- +
- + fragment@1 {
- + target = <&ddc0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@2 {
- + target = <&ddc1>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@3 {
- + target = <&hdmi0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@4 {
- + target = <&hdmi1>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@5 {
- + target = <&hvs>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@6 {
- + target = <&pixelvalve0>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@7 {
- + target = <&pixelvalve1>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@8 {
- + target = <&pixelvalve2>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@9 {
- + target = <&pixelvalve3>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@10 {
- + target = <&pixelvalve4>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@11 {
- + target = <&v3d>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@12 {
- + target = <&vc4>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@13 {
- + target = <&txp>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@14 {
- + target = <&fb>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@15 {
- + target = <&firmwarekms>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@16 {
- + target = <&vec>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@17 {
- + target = <&hdmi0>;
- + __dormant__ {
- + dmas;
- + };
- + };
- +
- + fragment@18 {
- + target = <&hdmi1>;
- + __dormant__ {
- + dmas;
- + };
- + };
- +
- + fragment@19 {
- + target = <&audio>;
- + __overlay__ {
- + brcm,disable-hdmi;
- + };
- + };
- +
- + fragment@20 {
- + target = <&dvp>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@21 {
- + target = <&pixelvalve3>;
- + __dormant__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@22 {
- + target = <&vec>;
- + __dormant__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@23 {
- + target = <&aon_intr>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + audio = <0>,"!17";
- + audio1 = <0>,"!18";
- + noaudio = <0>,"=17", <0>,"=18", <0>,"!19";
- + composite = <0>, "!1",
- + <0>, "!2",
- + <0>, "!3",
- + <0>, "!4",
- + <0>, "!6",
- + <0>, "!7",
- + <0>, "!8",
- + <0>, "!9",
- + <0>, "!10",
- + <0>, "!16",
- + <0>, "=21",
- + <0>, "=22";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/vc4-kms-vga666-overlay.dts b/arch/arm/boot/dts/overlays/vc4-kms-vga666-overlay.dts
- new file mode 100644
- index 000000000000..6e787099e861
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/vc4-kms-vga666-overlay.dts
- @@ -0,0 +1,100 @@
- +/*
- + * vc4-kms-vga666-overlay.dts
- + * Configures a FenLogic or similar VGA666 DPI adapter when using the
- + * vc4-kms-v3d driver.
- + * If a suitable I2C level shifter is connected to GPIOs 0&1 and the VGA
- + * ID1/SDA (pin 12) and ID3/SCL (pin 15) lines, then there is the option to
- + * enable reading the EDID from the display.
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +#include <dt-bindings/pinctrl/bcm2835.h>
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + vga_connector: vga_connector {
- + compatible = "vga-connector";
- + label = "vga";
- +
- + port {
- + vga_con_in: endpoint {
- + remote-endpoint = <&vga666_out>;
- + };
- + };
- + };
- +
- + vga_dac {
- + compatible = "dumb-vga-dac";
- +
- + ports {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + port@0 {
- + reg = <0>;
- +
- + vga666_in: endpoint {
- + remote-endpoint = <&dpi_out>;
- + };
- + };
- +
- + port@1 {
- + reg = <1>;
- +
- + vga666_out: endpoint {
- + remote-endpoint = <&vga_con_in>;
- + };
- + };
- + };
- + };
- +
- + };
- + };
- +
- + fragment@1 {
- + target = <&dpi>;
- + __overlay__ {
- + status = "okay";
- +
- + pinctrl-names = "default";
- + pinctrl-0 = <&dpi_18bit_gpio2>;
- +
- + port {
- + dpi_out: endpoint@0 {
- + remote-endpoint = <&vga666_in>;
- + };
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&vga_connector>;
- + __dormant__ {
- + ddc-i2c-bus = <&i2c_vc>;
- + };
- + };
- +
- + fragment@3 {
- + target = <&i2c0if>;
- + __dormant__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@4 {
- + target = <&i2c0mux>;
- + __dormant__ {
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + ddc = <0>,"=2", <0>,"=3", <0>,"=4";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/vga666-overlay.dts b/arch/arm/boot/dts/overlays/vga666-overlay.dts
- new file mode 100644
- index 000000000000..a4968d180a5d
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/vga666-overlay.dts
- @@ -0,0 +1,30 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2835";
- +
- + // There is no VGA driver module, but we need a platform device
- + // node (that doesn't already use pinctrl) to hang the pinctrl
- + // reference on - leds will do
- +
- + fragment@0 {
- + target = <&leds>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&vga666_pins>;
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + vga666_pins: vga666_pins {
- + brcm,pins = <2 3 4 5 6 7 8 9 10 11 12
- + 13 14 15 16 17 18 19 20 21>;
- + brcm,function = <6>; /* alt2 */
- + brcm,pull = <0>; /* no pull */
- + };
- + };
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/w1-gpio-overlay.dts b/arch/arm/boot/dts/overlays/w1-gpio-overlay.dts
- new file mode 100644
- index 000000000000..f44e325bc1f2
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/w1-gpio-overlay.dts
- @@ -0,0 +1,40 @@
- +// Definitions for w1-gpio module (without external pullup)
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- +
- + w1: onewire@0 {
- + compatible = "w1-gpio";
- + pinctrl-names = "default";
- + pinctrl-0 = <&w1_pins>;
- + gpios = <&gpio 4 0>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + w1_pins: w1_pins@0 {
- + brcm,pins = <4>;
- + brcm,function = <0>; // in (initially)
- + brcm,pull = <0>; // off
- + };
- + };
- + };
- +
- + __overrides__ {
- + gpiopin = <&w1>,"gpios:4",
- + <&w1>,"reg:0",
- + <&w1_pins>,"brcm,pins:0",
- + <&w1_pins>,"reg:0";
- + pullup; // Silently ignore unneeded parameter
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/w1-gpio-pullup-overlay.dts b/arch/arm/boot/dts/overlays/w1-gpio-pullup-overlay.dts
- new file mode 100644
- index 000000000000..953c6a1aeab9
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/w1-gpio-pullup-overlay.dts
- @@ -0,0 +1,42 @@
- +// Definitions for w1-gpio module (with external pullup)
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- +
- + w1: onewire@0 {
- + compatible = "w1-gpio";
- + pinctrl-names = "default";
- + pinctrl-0 = <&w1_pins>;
- + gpios = <&gpio 4 0>, <&gpio 5 1>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + w1_pins: w1_pins@0 {
- + brcm,pins = <4 5>;
- + brcm,function = <0 1>; // in out
- + brcm,pull = <0 0>; // off off
- + };
- + };
- + };
- +
- + __overrides__ {
- + gpiopin = <&w1>,"gpios:4",
- + <&w1>,"reg:0",
- + <&w1_pins>,"brcm,pins:0",
- + <&w1_pins>,"reg:0";
- + extpullup = <&w1>,"gpios:16",
- + <&w1_pins>,"brcm,pins:4";
- + pullup; // Silently ignore unneeded parameter
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/w5500-overlay.dts b/arch/arm/boot/dts/overlays/w5500-overlay.dts
- new file mode 100644
- index 000000000000..4d3e66296753
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/w5500-overlay.dts
- @@ -0,0 +1,63 @@
- +// Overlay for the Wiznet w5500 Ethernet Controller
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&spidev0>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@1 {
- + target = <&spidev1>;
- + __dormant__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@2 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + status = "okay";
- +
- + eth1: w5500@0{
- + compatible = "wiznet,w5500";
- + reg = <0>; /* CE0 */
- + pinctrl-names = "default";
- + pinctrl-0 = <ð1_pins>;
- + interrupt-parent = <&gpio>;
- + interrupts = <25 0x8>;
- + spi-max-frequency = <30000000>;
- +// local-mac-address = [aa bb cc dd ee ff];
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@3 {
- + target = <&gpio>;
- + __overlay__ {
- + eth1_pins: eth1_pins {
- + brcm,pins = <25>;
- + brcm,function = <0>; /* in */
- + brcm,pull = <0>; /* none */
- + };
- + };
- + };
- +
- + __overrides__ {
- + int_pin = <ð1>, "interrupts:0",
- + <ð1_pins>, "brcm,pins:0";
- + speed = <ð1>, "spi-max-frequency:0";
- + cs = <ð1>, "reg:0",
- + <0>, "!0=1";
- + };
- +};
- diff --git a/arch/arm/boot/dts/overlays/wittypi-overlay.dts b/arch/arm/boot/dts/overlays/wittypi-overlay.dts
- new file mode 100644
- index 000000000000..71ce806186de
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/wittypi-overlay.dts
- @@ -0,0 +1,44 @@
- +/*
- + * Device Tree overlay for Witty Pi extension board by UUGear
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- +
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&leds>;
- + __overlay__ {
- + compatible = "gpio-leds";
- + wittypi_led: wittypi_led {
- + label = "wittypi_led";
- + linux,default-trigger = "default-on";
- + gpios = <&gpio 17 0>;
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + rtc: ds1337@68 {
- + compatible = "dallas,ds1337";
- + reg = <0x68>;
- + wakeup-source;
- + };
- + };
- + };
- +
- + __overrides__ {
- + led_gpio = <&wittypi_led>,"gpios:4";
- + led_trigger = <&wittypi_led>,"linux,default-trigger";
- + };
- +
- +};
- diff --git a/arch/arm/boot/dts/overlays/wm8960-soundcard-overlay.dts b/arch/arm/boot/dts/overlays/wm8960-soundcard-overlay.dts
- new file mode 100644
- index 000000000000..289fa4dacdf1
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/wm8960-soundcard-overlay.dts
- @@ -0,0 +1,82 @@
- +// Definitions for Waveshare WM8960 https://github.com/waveshare/WM8960-Audio-HAT
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target-path="/";
- + __overlay__ {
- + wm8960_mclk: wm8960_mclk {
- + compatible = "fixed-clock";
- + #clock-cells = <0>;
- + clock-frequency = <12288000>;
- + };
- + };
- + };
- + fragment@2 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + wm8960: wm8960 {
- + compatible = "wlf,wm8960";
- + reg = <0x1a>;
- + #sound-dai-cells = <0>;
- + AVDD-supply = <&vdd_5v0_reg>;
- + DVDD-supply = <&vdd_3v3_reg>;
- + };
- + };
- + };
- +
- +
- + fragment@3 {
- + target = <&sound>;
- + slave_overlay: __overlay__ {
- + compatible = "simple-audio-card";
- + simple-audio-card,format = "i2s";
- + simple-audio-card,name = "wm8960-soundcard";
- + status = "okay";
- +
- + simple-audio-card,widgets =
- + "Microphone", "Mic Jack",
- + "Line", "Line In",
- + "Line", "Line Out",
- + "Speaker", "Speaker",
- + "Headphone", "Headphone Jack";
- + simple-audio-card,routing =
- + "Headphone Jack", "HP_L",
- + "Headphone Jack", "HP_R",
- + "Speaker", "SPK_LP",
- + "Speaker", "SPK_LN",
- + "LINPUT1", "Mic Jack",
- + "LINPUT3", "Mic Jack",
- + "RINPUT1", "Mic Jack",
- + "RINPUT2", "Mic Jack";
- +
- + simple-audio-card,cpu {
- + sound-dai = <&i2s>;
- + };
- + dailink0_slave: simple-audio-card,codec {
- + sound-dai = <&wm8960>;
- + clocks = <&wm8960_mclk>;
- + clock-names = "mclk";
- + };
- + };
- + };
- +
- + __overrides__ {
- + alsaname = <&slave_overlay>,"simple-audio-card,name";
- + compatible = <&wm8960>,"compatible";
- + };
- +};
- diff --git a/arch/arm64/boot/dts/Makefile b/arch/arm64/boot/dts/Makefile
- index 639e01a4d855..becca30ad4fe 100644
- --- a/arch/arm64/boot/dts/Makefile
- +++ b/arch/arm64/boot/dts/Makefile
- @@ -30,3 +30,5 @@ subdir-y += synaptics
- subdir-y += ti
- subdir-y += toshiba
- subdir-y += xilinx
- +
- +subdir-y += overlays
- diff --git a/arch/arm64/boot/dts/broadcom/Makefile b/arch/arm64/boot/dts/broadcom/Makefile
- index 11eae3e3a944..5a90727064ee 100644
- --- a/arch/arm64/boot/dts/broadcom/Makefile
- +++ b/arch/arm64/boot/dts/broadcom/Makefile
- @@ -5,7 +5,19 @@ dtb-$(CONFIG_ARCH_BCM2835) += bcm2711-rpi-400.dtb \
- bcm2837-rpi-3-b.dtb \
- bcm2837-rpi-3-b-plus.dtb \
- bcm2837-rpi-cm3-io3.dtb
- +dtb-$(CONFIG_ARCH_BCM2835) += bcm2710-rpi-2-b.dtb
- +dtb-$(CONFIG_ARCH_BCM2835) += bcm2710-rpi-3-b.dtb
- +dtb-$(CONFIG_ARCH_BCM2835) += bcm2710-rpi-3-b-plus.dtb
- +dtb-$(CONFIG_ARCH_BCM2835) += bcm2711-rpi-4-b.dtb
- +dtb-$(CONFIG_ARCH_BCM2835) += bcm2711-rpi-400.dtb
- +dtb-$(CONFIG_ARCH_BCM2835) += bcm2710-rpi-cm3.dtb
- +dtb-$(CONFIG_ARCH_BCM2835) += bcm2711-rpi-cm4.dtb
-
- subdir-y += bcmbca
- subdir-y += northstar2
- subdir-y += stingray
- +
- +# Enable fixups to support overlays on BCM2835 platforms
- +ifeq ($(CONFIG_ARCH_BCM2835),y)
- + DTC_FLAGS += -@
- +endif
- diff --git a/arch/arm64/boot/dts/broadcom/bcm2710-rpi-2-b.dts b/arch/arm64/boot/dts/broadcom/bcm2710-rpi-2-b.dts
- new file mode 100644
- index 000000000000..36ecea71f0ef
- --- /dev/null
- +++ b/arch/arm64/boot/dts/broadcom/bcm2710-rpi-2-b.dts
- @@ -0,0 +1 @@
- +#include "../../../../arm/boot/dts/bcm2710-rpi-2-b.dts"
- diff --git a/arch/arm64/boot/dts/broadcom/bcm2710-rpi-3-b-plus.dts b/arch/arm64/boot/dts/broadcom/bcm2710-rpi-3-b-plus.dts
- new file mode 100644
- index 000000000000..22fc6a82f2a9
- --- /dev/null
- +++ b/arch/arm64/boot/dts/broadcom/bcm2710-rpi-3-b-plus.dts
- @@ -0,0 +1 @@
- +#include "../../../../arm/boot/dts/bcm2710-rpi-3-b-plus.dts"
- diff --git a/arch/arm64/boot/dts/broadcom/bcm2710-rpi-3-b.dts b/arch/arm64/boot/dts/broadcom/bcm2710-rpi-3-b.dts
- new file mode 100644
- index 000000000000..4cacc5b72ae3
- --- /dev/null
- +++ b/arch/arm64/boot/dts/broadcom/bcm2710-rpi-3-b.dts
- @@ -0,0 +1 @@
- +#include "../../../../arm/boot/dts/bcm2710-rpi-3-b.dts"
- diff --git a/arch/arm64/boot/dts/broadcom/bcm2710-rpi-cm3.dts b/arch/arm64/boot/dts/broadcom/bcm2710-rpi-cm3.dts
- new file mode 100644
- index 000000000000..e1e13784cff6
- --- /dev/null
- +++ b/arch/arm64/boot/dts/broadcom/bcm2710-rpi-cm3.dts
- @@ -0,0 +1 @@
- +#include "../../../../arm/boot/dts/bcm2710-rpi-cm3.dts"
- diff --git a/arch/arm64/boot/dts/broadcom/bcm2711-rpi-4-b.dts b/arch/arm64/boot/dts/broadcom/bcm2711-rpi-4-b.dts
- index d24c53682e44..bf69a4b0b172 100644
- --- a/arch/arm64/boot/dts/broadcom/bcm2711-rpi-4-b.dts
- +++ b/arch/arm64/boot/dts/broadcom/bcm2711-rpi-4-b.dts
- @@ -1,2 +1 @@
- -// SPDX-License-Identifier: GPL-2.0
- -#include "arm/bcm2711-rpi-4-b.dts"
- +#include "../../../../arm/boot/dts/bcm2711-rpi-4-b.dts"
- diff --git a/arch/arm64/boot/dts/broadcom/bcm2711-rpi-400.dts b/arch/arm64/boot/dts/broadcom/bcm2711-rpi-400.dts
- index b9000f58beb5..90c2b5a195d4 100644
- --- a/arch/arm64/boot/dts/broadcom/bcm2711-rpi-400.dts
- +++ b/arch/arm64/boot/dts/broadcom/bcm2711-rpi-400.dts
- @@ -1,2 +1 @@
- -// SPDX-License-Identifier: GPL-2.0
- -#include "arm/bcm2711-rpi-400.dts"
- +#include "../../../../arm/boot/dts/bcm2711-rpi-400.dts"
- diff --git a/arch/arm64/boot/dts/broadcom/bcm2711-rpi-cm4.dts b/arch/arm64/boot/dts/broadcom/bcm2711-rpi-cm4.dts
- new file mode 100644
- index 000000000000..8064a58155f1
- --- /dev/null
- +++ b/arch/arm64/boot/dts/broadcom/bcm2711-rpi-cm4.dts
- @@ -0,0 +1 @@
- +#include "../../../../arm/boot/dts/bcm2711-rpi-cm4.dts"
- diff --git a/arch/arm64/boot/dts/broadcom/bcm283x-rpi-csi1-2lane.dtsi b/arch/arm64/boot/dts/broadcom/bcm283x-rpi-csi1-2lane.dtsi
- new file mode 120000
- index 000000000000..e5c400284467
- --- /dev/null
- +++ b/arch/arm64/boot/dts/broadcom/bcm283x-rpi-csi1-2lane.dtsi
- @@ -0,0 +1 @@
- +../../../../arm/boot/dts/bcm283x-rpi-csi1-2lane.dtsi
- \ No newline at end of file
- diff --git a/arch/arm64/boot/dts/broadcom/bcm283x-rpi-lan7515.dtsi b/arch/arm64/boot/dts/broadcom/bcm283x-rpi-lan7515.dtsi
- new file mode 120000
- index 000000000000..fc4c05bbe7fd
- --- /dev/null
- +++ b/arch/arm64/boot/dts/broadcom/bcm283x-rpi-lan7515.dtsi
- @@ -0,0 +1 @@
- +../../../../arm/boot/dts/bcm283x-rpi-lan7515.dtsi
- \ No newline at end of file
- diff --git a/arch/arm64/boot/dts/overlays b/arch/arm64/boot/dts/overlays
- new file mode 120000
- index 000000000000..ded08646b6f6
- --- /dev/null
- +++ b/arch/arm64/boot/dts/overlays
- @@ -0,0 +1 @@
- +../../../arm/boot/dts/overlays
- \ No newline at end of file
- diff --git a/scripts/Makefile.dtbinst b/scripts/Makefile.dtbinst
- index 190d781e84f4..84c46c081218 100644
- --- a/scripts/Makefile.dtbinst
- +++ b/scripts/Makefile.dtbinst
- @@ -18,9 +18,10 @@ include $(srctree)/scripts/Kbuild.include
- include $(src)/Makefile
-
- dtbs := $(addprefix $(dst)/, $(dtb-y) $(if $(CONFIG_OF_ALL_DTBS),$(dtb-)))
- +dtbos := $(addprefix $(dst)/, $(dtbo-y) $(if $(CONFIG_OF_ALL_DTBS),$(dtb-)))
- subdirs := $(addprefix $(obj)/, $(subdir-y) $(subdir-m))
-
- -__dtbs_install: $(dtbs) $(subdirs)
- +__dtbs_install: $(dtbs) $(dtbos) $(subdirs)
- @:
-
- quiet_cmd_dtb_install = INSTALL $@
- diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
- index 0a8a4689c3eb..dff7d1ef5ff4 100644
- --- a/scripts/Makefile.lib
- +++ b/scripts/Makefile.lib
- @@ -300,6 +300,7 @@ DTC_FLAGS += -Wno-interrupt_provider
- ifeq ($(findstring 1,$(KBUILD_EXTRA_WARN)),)
- DTC_FLAGS += -Wno-unit_address_vs_reg \
- -Wno-unit_address_format \
- + -Wno-gpios_property \
- -Wno-avoid_unnecessary_addr_size \
- -Wno-alias_paths \
- -Wno-graph_child_address \
- @@ -373,6 +374,18 @@ endef
- $(obj)/%.dt.yaml: $(src)/%.dts $(DTC) $(DT_TMP_SCHEMA) FORCE
- $(call if_changed_rule,dtc)
-
- +quiet_cmd_dtco = DTCO $@
- +cmd_dtco = mkdir -p $(dir ${dtc-tmp}) ; \
- + $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
- + $(DTC) -@ -H epapr -O dtb -o $@ -b 0 \
- + -i $(dir $<) $(DTC_FLAGS) \
- + -Wno-interrupts_property \
- + -d $(depfile).dtc.tmp $(dtc-tmp) ; \
- + cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)
- +
- +$(obj)/%.dtbo: $(src)/%-overlay.dts FORCE
- + $(call if_changed_dep,dtco)
- +
- dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)
-
- # Bzip2
- --
- 2.30.2
|