1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564 |
- From 4dc11d58769fda62ef7cff1ab506d4c68c232270 Mon Sep 17 00:00:00 2001
- From: notro <notro@tronnes.org>
- Date: Wed, 9 Jul 2014 14:46:08 +0200
- Subject: [PATCH 051/381] BCM2708: Add core Device Tree support
- Add the bare minimum needed to boot BCM2708 from a Device Tree.
- Signed-off-by: Noralf Tronnes <notro@tronnes.org>
- 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 notro@tronnes.org
- 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 <hias@horus.com>
- 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 <hias@horus.com>
- 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 <patrick.boettcher@posteo.de>
- 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
- ---
- arch/arm/boot/dts/Makefile | 30 +
- arch/arm/boot/dts/bcm2708-rpi-b-plus.dts | 145 +++++
- arch/arm/boot/dts/bcm2708-rpi-b.dts | 135 +++++
- arch/arm/boot/dts/bcm2708-rpi-cm.dts | 102 ++++
- arch/arm/boot/dts/bcm2708-rpi-cm.dtsi | 40 ++
- arch/arm/boot/dts/bcm2708.dtsi | 40 ++
- arch/arm/boot/dts/bcm2708_common.dtsi | 347 +++++++++++
- arch/arm/boot/dts/bcm2709-rpi-2-b.dts | 145 +++++
- arch/arm/boot/dts/bcm2709.dtsi | 102 ++++
- arch/arm/boot/dts/bcm2835-rpi-cm.dts | 93 +++
- arch/arm/boot/dts/bcm2835-rpi-cm.dtsi | 30 +
- arch/arm/boot/dts/overlays/Makefile | 69 +++
- arch/arm/boot/dts/overlays/README | 648 +++++++++++++++++++++
- arch/arm/boot/dts/overlays/ads7846-overlay.dts | 83 +++
- .../dts/overlays/bmp085_i2c-sensor-overlay.dts | 23 +
- arch/arm/boot/dts/overlays/dht11-overlay.dts | 39 ++
- arch/arm/boot/dts/overlays/enc28j60-overlay.dts | 50 ++
- .../boot/dts/overlays/gpio-poweroff-overlay.dts | 34 ++
- .../boot/dts/overlays/hifiberry-amp-overlay.dts | 39 ++
- .../boot/dts/overlays/hifiberry-dac-overlay.dts | 34 ++
- .../dts/overlays/hifiberry-dacplus-overlay.dts | 39 ++
- .../boot/dts/overlays/hifiberry-digi-overlay.dts | 39 ++
- arch/arm/boot/dts/overlays/hy28a-overlay.dts | 87 +++
- arch/arm/boot/dts/overlays/hy28b-overlay.dts | 142 +++++
- arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts | 55 ++
- arch/arm/boot/dts/overlays/i2s-mmap-overlay.dts | 13 +
- arch/arm/boot/dts/overlays/iqaudio-dac-overlay.dts | 39 ++
- .../boot/dts/overlays/iqaudio-dacplus-overlay.dts | 39 ++
- arch/arm/boot/dts/overlays/lirc-rpi-overlay.dts | 57 ++
- .../arm/boot/dts/overlays/mcp2515-can0-overlay.dts | 69 +++
- .../arm/boot/dts/overlays/mcp2515-can1-overlay.dts | 69 +++
- arch/arm/boot/dts/overlays/mmc-overlay.dts | 39 ++
- arch/arm/boot/dts/overlays/mz61581-overlay.dts | 111 ++++
- arch/arm/boot/dts/overlays/piscreen-overlay.dts | 96 +++
- .../dts/overlays/pitft28-resistive-overlay.dts | 115 ++++
- arch/arm/boot/dts/overlays/pps-gpio-overlay.dts | 34 ++
- arch/arm/boot/dts/overlays/pwm-2chan-overlay.dts | 46 ++
- arch/arm/boot/dts/overlays/pwm-overlay.dts | 42 ++
- arch/arm/boot/dts/overlays/raspidac3-overlay.dts | 45 ++
- arch/arm/boot/dts/overlays/rpi-dac-overlay.dts | 34 ++
- arch/arm/boot/dts/overlays/rpi-display-overlay.dts | 82 +++
- arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts | 17 +
- arch/arm/boot/dts/overlays/rpi-proto-overlay.dts | 39 ++
- arch/arm/boot/dts/overlays/rpi-sense-overlay.dts | 47 ++
- arch/arm/boot/dts/overlays/sdhost-overlay.dts | 29 +
- arch/arm/boot/dts/overlays/sdio-overlay.dts | 32 +
- arch/arm/boot/dts/overlays/smi-dev-overlay.dts | 18 +
- arch/arm/boot/dts/overlays/smi-nand-overlay.dts | 69 +++
- arch/arm/boot/dts/overlays/smi-overlay.dts | 37 ++
- .../boot/dts/overlays/spi-gpio35-39-overlay.dts | 31 +
- arch/arm/boot/dts/overlays/tinylcd35-overlay.dts | 216 +++++++
- arch/arm/boot/dts/overlays/uart1-overlay.dts | 38 ++
- arch/arm/boot/dts/overlays/vga666-overlay.dts | 30 +
- arch/arm/boot/dts/overlays/w1-gpio-overlay.dts | 39 ++
- .../boot/dts/overlays/w1-gpio-pullup-overlay.dts | 41 ++
- 55 files changed, 4203 insertions(+)
- create mode 100644 arch/arm/boot/dts/bcm2708-rpi-b-plus.dts
- create mode 100644 arch/arm/boot/dts/bcm2708-rpi-b.dts
- create mode 100755 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.dtsi
- create mode 100644 arch/arm/boot/dts/bcm2708_common.dtsi
- create mode 100644 arch/arm/boot/dts/bcm2709-rpi-2-b.dts
- create mode 100644 arch/arm/boot/dts/bcm2709.dtsi
- create mode 100644 arch/arm/boot/dts/bcm2835-rpi-cm.dts
- create mode 100644 arch/arm/boot/dts/bcm2835-rpi-cm.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/ads7846-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/bmp085_i2c-sensor-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/dht11-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/enc28j60-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/gpio-poweroff-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/hifiberry-amp-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-digi-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/hy28a-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/hy28b-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/i2s-mmap-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/lirc-rpi-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/mmc-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/mz61581-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/piscreen-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/pitft28-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-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/raspidac3-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-proto-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/rpi-sense-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/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/tinylcd35-overlay.dts
- create mode 100644 arch/arm/boot/dts/overlays/uart1-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
- --- a/arch/arm/boot/dts/Makefile
- +++ b/arch/arm/boot/dts/Makefile
- @@ -1,5 +1,25 @@
- ifeq ($(CONFIG_OF),y)
-
- +dtb-$(CONFIG_ARCH_BCM2708) += bcm2708-rpi-b.dtb
- +dtb-$(CONFIG_ARCH_BCM2708) += bcm2708-rpi-b-plus.dtb
- +dtb-$(CONFIG_ARCH_BCM2708) += bcm2708-rpi-cm.dtb
- +dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-cm.dtb
- +dtb-$(CONFIG_ARCH_BCM2709) += bcm2709-rpi-2-b.dtb
- +
- +# Raspberry Pi
- +ifeq ($(CONFIG_ARCH_BCM2708),y)
- + RPI_DT_OVERLAYS=y
- +endif
- +ifeq ($(CONFIG_ARCH_BCM2709),y)
- + RPI_DT_OVERLAYS=y
- +endif
- +ifeq ($(CONFIG_ARCH_BCM2835),y)
- + RPI_DT_OVERLAYS=y
- +endif
- +ifeq ($(RPI_DT_OVERLAYS),y)
- + dts-dirs += overlays
- +endif
- +
- dtb-$(CONFIG_ARCH_ALPINE) += \
- alpine-db.dtb
- dtb-$(CONFIG_MACH_ASM9260) += \
- @@ -777,10 +797,20 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \
- mt8127-moose.dtb \
- mt8135-evbp1.dtb
- dtb-$(CONFIG_ARCH_ZX) += zx296702-ad1.dtb
- +
- +targets += dtbs dtbs_install
- +targets += $(dtb-y)
- +
- endif
-
- dtstree := $(srctree)/$(src)
- dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))
-
- always := $(dtb-y)
- +subdir-y := $(dts-dirs)
- clean-files := *.dtb
- +
- +# Enable fixups to support overlays on BCM2708 platforms
- +ifeq ($(RPI_DT_OVERLAYS),y)
- + DTC_FLAGS ?= -@
- +endif
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2708-rpi-b-plus.dts
- @@ -0,0 +1,145 @@
- +/dts-v1/;
- +
- +#include "bcm2708.dtsi"
- +
- +/ {
- + compatible = "brcm,bcm2708";
- + model = "Raspberry Pi Model B+";
- +};
- +
- +&gpio {
- + sdhost_pins: sdhost_pins {
- + brcm,pins = <48 49 50 51 52 53>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + 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 */
- + };
- +};
- +
- +&sdhost {
- + pinctrl-names = "default";
- + pinctrl-0 = <&sdhost_pins>;
- + bus-width = <4>;
- + status = "okay";
- +};
- +
- +&fb {
- + status = "okay";
- +};
- +
- +&uart0 {
- + status = "okay";
- +};
- +
- +&spi0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
- + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
- +
- + spidev@0{
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <500000>;
- + };
- +
- + spidev@1{
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <500000>;
- + };
- +};
- +
- +&i2c0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c0_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +&i2c2 {
- + clock-frequency = <100000>;
- +};
- +
- +&i2s {
- + #sound-dai-cells = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2s_pins>;
- +};
- +
- +&random {
- + status = "okay";
- +};
- +
- +&leds {
- + act_led: act {
- + label = "led0";
- + linux,default-trigger = "mmc0";
- + gpios = <&gpio 47 0>;
- + };
- +
- + pwr_led: pwr {
- + label = "led1";
- + linux,default-trigger = "input";
- + gpios = <&gpio 35 0>;
- + };
- +};
- +
- +/ {
- + __overrides__ {
- + uart0 = <&uart0>,"status";
- + uart0_clkrate = <&clk_uart0>,"clock-frequency:0";
- + i2s = <&i2s>,"status";
- + spi = <&spi0>,"status";
- + i2c0 = <&i2c0>,"status";
- + i2c1 = <&i2c1>,"status";
- + i2c2_iknowwhatimdoing = <&i2c2>,"status";
- + i2c0_baudrate = <&i2c0>,"clock-frequency:0";
- + i2c1_baudrate = <&i2c1>,"clock-frequency:0";
- + i2c2_baudrate = <&i2c2>,"clock-frequency:0";
- + core_freq = <&clk_core>,"clock-frequency:0";
- +
- + 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";
- +
- + audio = <&audio>,"status";
- + watchdog = <&watchdog>,"status";
- + random = <&random>,"status";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2708-rpi-b.dts
- @@ -0,0 +1,135 @@
- +/dts-v1/;
- +
- +#include "bcm2708.dtsi"
- +
- +/ {
- + compatible = "brcm,bcm2708";
- + model = "Raspberry Pi Model B";
- +};
- +
- +&gpio {
- + sdhost_pins: sdhost_pins {
- + brcm,pins = <48 49 50 51 52 53>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + 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 */
- + };
- +};
- +
- +&sdhost {
- + pinctrl-names = "default";
- + pinctrl-0 = <&sdhost_pins>;
- + bus-width = <4>;
- + status = "okay";
- +};
- +
- +&fb {
- + status = "okay";
- +};
- +
- +&uart0 {
- + status = "okay";
- +};
- +
- +&spi0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
- + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
- +
- + spidev@0{
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <500000>;
- + };
- +
- + spidev@1{
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <500000>;
- + };
- +};
- +
- +&i2c0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c0_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +&i2c2 {
- + clock-frequency = <100000>;
- +};
- +
- +&i2s {
- + #sound-dai-cells = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2s_pins>;
- +};
- +
- +&random {
- + status = "okay";
- +};
- +
- +&leds {
- + act_led: act {
- + label = "led0";
- + linux,default-trigger = "mmc0";
- + gpios = <&gpio 16 1>;
- + };
- +};
- +
- +/ {
- + __overrides__ {
- + uart0 = <&uart0>,"status";
- + uart0_clkrate = <&clk_uart0>,"clock-frequency:0";
- + i2s = <&i2s>,"status";
- + spi = <&spi0>,"status";
- + i2c0 = <&i2c0>,"status";
- + i2c1 = <&i2c1>,"status";
- + i2c2_iknowwhatimdoing = <&i2c2>,"status";
- + i2c0_baudrate = <&i2c0>,"clock-frequency:0";
- + i2c1_baudrate = <&i2c1>,"clock-frequency:0";
- + i2c2_baudrate = <&i2c2>,"clock-frequency:0";
- + core_freq = <&clk_core>,"clock-frequency:0";
- +
- + act_led_gpio = <&act_led>,"gpios:4";
- + act_led_activelow = <&act_led>,"gpios:8";
- + act_led_trigger = <&act_led>,"linux,default-trigger";
- +
- + audio = <&audio>,"status";
- + watchdog = <&watchdog>,"status";
- + random = <&random>,"status";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2708-rpi-cm.dts
- @@ -0,0 +1,102 @@
- +/dts-v1/;
- +
- +#include "bcm2708-rpi-cm.dtsi"
- +
- +/ {
- + model = "Raspberry Pi Compute Module";
- +};
- +
- +&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 */
- + };
- +};
- +
- +&spi0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
- + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
- +
- + spidev@0{
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <500000>;
- + };
- +
- + spidev@1{
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <500000>;
- + };
- +};
- +
- +&i2c0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c0_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +&i2c2 {
- + clock-frequency = <100000>;
- +};
- +
- +&i2s {
- + #sound-dai-cells = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2s_pins>;
- +};
- +
- +&random {
- + status = "okay";
- +};
- +
- +/ {
- + __overrides__ {
- + uart0 = <&uart0>,"status";
- + uart0_clkrate = <&clk_uart0>,"clock-frequency:0";
- + i2s = <&i2s>,"status";
- + spi = <&spi0>,"status";
- + i2c0 = <&i2c0>,"status";
- + i2c1 = <&i2c1>,"status";
- + i2c2_iknowwhatimdoing = <&i2c2>,"status";
- + i2c0_baudrate = <&i2c0>,"clock-frequency:0";
- + i2c1_baudrate = <&i2c1>,"clock-frequency:0";
- + i2c2_baudrate = <&i2c2>,"clock-frequency:0";
- + core_freq = <&clk_core>,"clock-frequency:0";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2708-rpi-cm.dtsi
- @@ -0,0 +1,40 @@
- +#include "bcm2708.dtsi"
- +
- +&gpio {
- + sdhost_pins: sdhost_pins {
- + brcm,pins = <48 49 50 51 52 53>;
- + brcm,function = <4>; /* alt0 */
- + };
- +};
- +
- +&leds {
- + act_led: act {
- + label = "led0";
- + linux,default-trigger = "mmc0";
- + gpios = <&gpio 47 0>;
- + };
- +};
- +
- +&sdhost {
- + pinctrl-names = "default";
- + pinctrl-0 = <&sdhost_pins>;
- + bus-width = <4>;
- + non-removable;
- + status = "okay";
- +};
- +
- +&fb {
- + status = "okay";
- +};
- +
- +/ {
- + __overrides__ {
- + act_led_gpio = <&act_led>,"gpios:4";
- + act_led_activelow = <&act_led>,"gpios:8";
- + act_led_trigger = <&act_led>,"linux,default-trigger";
- +
- + audio = <&audio>,"status";
- + watchdog = <&watchdog>,"status";
- + random = <&random>,"status";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2708.dtsi
- @@ -0,0 +1,40 @@
- +#include "bcm2708_common.dtsi"
- +
- +/ {
- + compatible = "brcm,bcm2708";
- + model = "BCM2708";
- +
- + chosen {
- + /* No padding required - the boot loader can do that. */
- + bootargs = "";
- + };
- +
- + soc {
- + ranges = <0x7e000000 0x20000000 0x01000000>;
- +
- + timer@7e003000 {
- + compatible = "brcm,bcm2835-system-timer";
- + reg = <0x7e003000 0x1000>;
- + interrupts = <1 0>, <1 1>, <1 2>, <1 3>;
- + clock-frequency = <1000000>;
- + };
- +
- + arm-pmu {
- + compatible = "arm,arm1176-pmu";
- + };
- +
- + gpiomem {
- + compatible = "brcm,bcm2835-gpiomem";
- + reg = <0x7e200000 0x1000>;
- + status = "okay";
- + };
- + };
- +};
- +
- +&intc {
- + compatible = "brcm,bcm2835-armctrl-ic";
- +};
- +
- +&watchdog {
- + status = "okay";
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2708_common.dtsi
- @@ -0,0 +1,347 @@
- +#include "skeleton.dtsi"
- +
- +/ {
- + interrupt-parent = <&intc>;
- +
- + aliases {
- + audio = &audio;
- + sound = &sound;
- + soc = &soc;
- + dma = &dma;
- + intc = &intc;
- + watchdog = &watchdog;
- + random = &random;
- + mailbox = &mailbox;
- + gpio = &gpio;
- + uart0 = &uart0;
- + sdhost = &sdhost;
- + i2s = &i2s;
- + spi0 = &spi0;
- + i2c0 = &i2c0;
- + uart1 = &uart1;
- + mmc = &mmc;
- + i2c1 = &i2c1;
- + i2c2 = &i2c2;
- + usb = &usb;
- + leds = &leds;
- + fb = &fb;
- + vchiq = &vchiq;
- + thermal = &thermal;
- + clocks = &clocks;
- + };
- +
- + /* Onboard audio */
- + audio: audio {
- + compatible = "brcm,bcm2835-audio";
- + brcm,pwm-channels = <8>;
- + status = "disabled";
- + };
- +
- + /* External sound card */
- + sound: sound {
- + };
- +
- + soc: soc {
- + compatible = "simple-bus";
- + #address-cells = <1>;
- + #size-cells = <1>;
- +
- + dma: dma@7e007000 {
- + compatible = "brcm,bcm2835-dma";
- + reg = <0x7e007000 0xf00>;
- + interrupts = <1 16>,
- + <1 17>,
- + <1 18>,
- + <1 19>,
- + <1 20>,
- + <1 21>,
- + <1 22>,
- + <1 23>,
- + <1 24>,
- + <1 25>,
- + <1 26>,
- + <1 27>;
- +
- + #dma-cells = <1>;
- + brcm,dma-channel-mask = <0x0f35>;
- + };
- +
- + intc: interrupt-controller@7e00b200 {
- + compatible = "brcm,bcm2708-armctrl-ic";
- + reg = <0x7e00b200 0x200>;
- + interrupt-controller;
- + #interrupt-cells = <2>;
- + };
- +
- + mailbox: mailbox@7e00b800 {
- + compatible = "brcm,bcm2835-mbox";
- + reg = <0x7e00b880 0x40>;
- + interrupts = <0 1>;
- + #mbox-cells = <0>;
- + };
- +
- + watchdog: watchdog@7e100000 {
- + compatible = "brcm,bcm2835-pm-wdt";
- + reg = <0x7e100000 0x28>;
- + status = "disabled";
- + };
- +
- + cprman: cprman@7e101000 {
- + compatible = "brcm,bcm2835-cprman";
- + #clock-cells = <1>;
- + reg = <0x7e101000 0x2000>;
- +
- + /* CPRMAN derives everything from the platform's
- + * oscillator.
- + */
- + clocks = <&clk_osc>;
- + status = "disabled";
- + };
- +
- + random: rng@7e104000 {
- + compatible = "brcm,bcm2835-rng";
- + reg = <0x7e104000 0x10>;
- + status = "disabled";
- + };
- +
- + gpio: gpio@7e200000 {
- + compatible = "brcm,bcm2835-gpio";
- + reg = <0x7e200000 0xb4>;
- + interrupts = <2 17>, <2 18>;
- +
- + gpio-controller;
- + #gpio-cells = <2>;
- +
- + interrupt-controller;
- + #interrupt-cells = <2>;
- + };
- +
- + uart0: uart@7e201000 {
- + compatible = "arm,pl011", "arm,primecell";
- + reg = <0x7e201000 0x1000>;
- + interrupts = <2 25>;
- + clocks = <&clk_uart0 &clk_apb_p>;
- + clock-names = "uartclk","apb_pclk";
- + arm,primecell-periphid = <0x00241011>; // For an explanation, see
- + // https://github.com/raspberrypi/linux/commit/13731d862cf5219216533a3b0de052cee4cc5038
- + status = "disabled";
- + };
- +
- + sdhost: sdhost@7e202000 {
- + compatible = "brcm,bcm2835-sdhost";
- + reg = <0x7e202000 0x100>;
- + interrupts = <2 24>;
- + clocks = <&clk_core>;
- + dmas = <&dma 13>,
- + <&dma 13>;
- + dma-names = "tx", "rx";
- + brcm,pio-limit = <1>;
- + status = "disabled";
- + };
- +
- + i2s: i2s@7e203000 {
- + compatible = "brcm,bcm2835-i2s";
- + reg = <0x7e203000 0x24>,
- + <0x7e101098 0x08>;
- +
- + dmas = <&dma 2>, <&dma 3>;
- + dma-names = "tx", "rx";
- + status = "disabled";
- + };
- +
- + spi0: spi@7e204000 {
- + compatible = "brcm,bcm2835-spi";
- + reg = <0x7e204000 0x1000>;
- + interrupts = <2 22>;
- + clocks = <&clk_core>;
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "disabled";
- + /* the dma channels */
- + dmas = <&dma 6>, <&dma 7>;
- + dma-names = "tx", "rx";
- + /* the chipselects used - <0> means native GPIO
- + * add more gpios if necessary as <&gpio 6 1>
- + * (but do not forget to make them output!)
- + */
- + cs-gpios = <0>, <0>;
- + };
- +
- + i2c0: i2c@7e205000 {
- + compatible = "brcm,bcm2708-i2c";
- + reg = <0x7e205000 0x1000>;
- + interrupts = <2 21>;
- + clocks = <&clk_core>;
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "disabled";
- + };
- +
- + pwm: pwm@7e20c000 {
- + compatible = "brcm,bcm2835-pwm";
- + reg = <0x7e20c000 0x28>;
- + clocks = <&clk_pwm>;
- + #pwm-cells = <2>;
- + status = "disabled";
- + };
- +
- + uart1: uart@7e215040 {
- + compatible = "brcm,bcm2835-aux-uart", "ns16550";
- + reg = <0x7e215040 0x40>;
- + interrupts = <1 29>;
- + clocks = <&clk_uart1>;
- + reg-shift = <2>;
- + no-loopback-test;
- + status = "disabled";
- + };
- +
- + mmc: mmc@7e300000 {
- + compatible = "brcm,bcm2835-mmc";
- + reg = <0x7e300000 0x100>;
- + interrupts = <2 30>;
- + clocks = <&clk_mmc>;
- + dmas = <&dma 11>,
- + <&dma 11>;
- + dma-names = "tx", "rx";
- + status = "disabled";
- + };
- +
- + i2c1: i2c@7e804000 {
- + compatible = "brcm,bcm2708-i2c";
- + reg = <0x7e804000 0x1000>;
- + interrupts = <2 21>;
- + clocks = <&clk_core>;
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "disabled";
- + };
- +
- + i2c2: i2c@7e805000 {
- + // Beware - this is shared with the HDMI module.
- + // Careless use may break (really) your display.
- + // Caveat emptor.
- + compatible = "brcm,bcm2708-i2c";
- + reg = <0x7e805000 0x1000>;
- + interrupts = <2 21>;
- + clocks = <&clk_core>;
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "disabled";
- + };
- +
- + smi: smi@7e600000 {
- + compatible = "brcm,bcm2835-smi";
- + reg = <0x7e600000 0x44>, <0x7e1010b0 0x8>;
- + interrupts = <2 16>;
- + brcm,smi-clock-source = <6>;
- + brcm,smi-clock-divisor = <4>;
- + dmas = <&dma 4>;
- + dma-names = "rx-tx";
- + status = "disabled";
- + };
- +
- + usb: usb@7e980000 {
- + compatible = "brcm,bcm2708-usb";
- + reg = <0x7e980000 0x10000>,
- + <0x7e006000 0x1000>;
- + interrupts = <2 0>,
- + <1 9>;
- + };
- +
- + firmware: firmware {
- + compatible = "raspberrypi,bcm2835-firmware";
- + mboxes = <&mailbox>;
- + };
- +
- + leds: leds {
- + compatible = "gpio-leds";
- + };
- +
- + fb: fb {
- + compatible = "brcm,bcm2708-fb";
- + firmware = <&firmware>;
- + status = "disabled";
- + };
- +
- + vchiq: vchiq {
- + compatible = "brcm,bcm2835-vchiq";
- + reg = <0x7e00b840 0xf>;
- + interrupts = <0 2>;
- + cache-line-size = <32>;
- + firmware = <&firmware>;
- + };
- +
- + thermal: thermal {
- + compatible = "brcm,bcm2835-thermal";
- + firmware = <&firmware>;
- + };
- + };
- +
- + clocks: clocks {
- + compatible = "simple-bus";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + clk_core: clock@0 {
- + compatible = "fixed-clock";
- + reg = <0>;
- + #clock-cells = <0>;
- + clock-output-names = "core";
- + clock-frequency = <250000000>;
- + };
- +
- + clk_mmc: clock@1 {
- + compatible = "fixed-clock";
- + reg = <1>;
- + #clock-cells = <0>;
- + clock-output-names = "mmc";
- + clock-frequency = <250000000>;
- + };
- +
- + clk_uart0: clock@2 {
- + compatible = "fixed-clock";
- + reg = <2>;
- + #clock-cells = <0>;
- + clock-output-names = "uart0_pclk";
- + clock-frequency = <3000000>;
- + };
- +
- + clk_apb_p: clock@3 {
- + compatible = "fixed-clock";
- + reg = <3>;
- + #clock-cells = <0>;
- + clock-output-names = "apb_pclk";
- + clock-frequency = <126000000>;
- + };
- +
- + clk_pwm: clock@4 {
- + compatible = "fixed-clock";
- + reg = <4>;
- + #clock-cells = <0>;
- + clock-output-names = "pwm";
- + clock-frequency = <100000000>;
- + };
- +
- + clk_uart1: clock@5 {
- + compatible = "fixed-factor-clock";
- + reg = <5>;
- + clocks = <&clk_core>;
- + #clock-cells = <0>;
- + clock-div = <1>;
- + clock-mult = <2>;
- + };
- +
- + /* The oscillator is the root of the clock tree. */
- + clk_osc: clock@6 {
- + compatible = "fixed-clock";
- + reg = <6>;
- + #clock-cells = <0>;
- + clock-output-names = "osc";
- + clock-frequency = <19200000>;
- + };
- + };
- +
- + __overrides__ {
- + cache_line_size = <&vchiq>, "cache-line-size:0";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2709-rpi-2-b.dts
- @@ -0,0 +1,145 @@
- +/dts-v1/;
- +
- +#include "bcm2709.dtsi"
- +
- +/ {
- + compatible = "brcm,bcm2709";
- + model = "Raspberry Pi 2 Model B";
- +};
- +
- +&gpio {
- + sdhost_pins: sdhost_pins {
- + brcm,pins = <48 49 50 51 52 53>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + 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 */
- + };
- +};
- +
- +&sdhost {
- + pinctrl-names = "default";
- + pinctrl-0 = <&sdhost_pins>;
- + bus-width = <4>;
- + status = "okay";
- +};
- +
- +&fb {
- + status = "okay";
- +};
- +
- +&uart0 {
- + status = "okay";
- +};
- +
- +&spi0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
- + cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
- +
- + spidev@0{
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <500000>;
- + };
- +
- + spidev@1{
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <500000>;
- + };
- +};
- +
- +&i2c0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c0_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +&i2c2 {
- + clock-frequency = <100000>;
- +};
- +
- +&i2s {
- + #sound-dai-cells = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2s_pins>;
- +};
- +
- +&random {
- + status = "okay";
- +};
- +
- +&leds {
- + act_led: act {
- + label = "led0";
- + linux,default-trigger = "mmc0";
- + gpios = <&gpio 47 0>;
- + };
- +
- + pwr_led: pwr {
- + label = "led1";
- + linux,default-trigger = "input";
- + gpios = <&gpio 35 0>;
- + };
- +};
- +
- +/ {
- + __overrides__ {
- + uart0 = <&uart0>,"status";
- + uart0_clkrate = <&clk_uart0>,"clock-frequency:0";
- + i2s = <&i2s>,"status";
- + spi = <&spi0>,"status";
- + i2c0 = <&i2c0>,"status";
- + i2c1 = <&i2c1>,"status";
- + i2c2_iknowwhatimdoing = <&i2c2>,"status";
- + i2c0_baudrate = <&i2c0>,"clock-frequency:0";
- + i2c1_baudrate = <&i2c1>,"clock-frequency:0";
- + i2c2_baudrate = <&i2c2>,"clock-frequency:0";
- + core_freq = <&clk_core>,"clock-frequency:0";
- +
- + 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";
- +
- + audio = <&audio>,"status";
- + watchdog = <&watchdog>,"status";
- + random = <&random>,"status";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2709.dtsi
- @@ -0,0 +1,102 @@
- +#include "bcm2708_common.dtsi"
- +
- +/ {
- + compatible = "brcm,bcm2709";
- + model = "BCM2709";
- +
- + chosen {
- + /* No padding required - the boot loader can do that. */
- + bootargs = "";
- + };
- +
- + soc {
- + ranges = <0x7e000000 0x3f000000 0x01000000>,
- + <0x40000000 0x40000000 0x00040000>;
- +
- + local_intc: local_intc {
- + compatible = "brcm,bcm2836-l1-intc";
- + reg = <0x40000000 0x100>;
- + interrupt-controller;
- + #interrupt-cells = <1>;
- + interrupt-parent = <&local_intc>;
- + };
- +
- + arm-pmu {
- + compatible = "arm,cortex-a7-pmu";
- + interrupt-parent = <&local_intc>;
- + interrupts = <9>;
- + };
- +
- + gpiomem {
- + compatible = "brcm,bcm2835-gpiomem";
- + reg = <0x7e200000 0x1000>;
- + status = "okay";
- + };
- +
- + timer {
- + compatible = "arm,armv7-timer";
- + clock-frequency = <19200000>;
- + interrupt-parent = <&local_intc>;
- + interrupts = <0>, // PHYS_SECURE_PPI
- + <1>, // PHYS_NONSECURE_PPI
- + <3>, // VIRT_PPI
- + <2>; // HYP_PPI
- + always-on;
- + };
- +
- + syscon@40000000 {
- + compatible = "brcm,bcm2836-arm-local", "syscon";
- + reg = <0x40000000 0x100>;
- + };
- + };
- +
- + cpus: cpus {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + v7_cpu0: cpu@0 {
- + device_type = "cpu";
- + compatible = "arm,cortex-a7";
- + reg = <0xf00>;
- + clock-frequency = <800000000>;
- + };
- +
- + v7_cpu1: cpu@1 {
- + device_type = "cpu";
- + compatible = "arm,cortex-a7";
- + reg = <0xf01>;
- + clock-frequency = <800000000>;
- + };
- +
- + v7_cpu2: cpu@2 {
- + device_type = "cpu";
- + compatible = "arm,cortex-a7";
- + reg = <0xf02>;
- + clock-frequency = <800000000>;
- + };
- +
- + v7_cpu3: cpu@3 {
- + device_type = "cpu";
- + compatible = "arm,cortex-a7";
- + reg = <0xf03>;
- + clock-frequency = <800000000>;
- + };
- + };
- +
- + __overrides__ {
- + arm_freq = <&v7_cpu0>, "clock-frequency:0",
- + <&v7_cpu1>, "clock-frequency:0",
- + <&v7_cpu2>, "clock-frequency:0",
- + <&v7_cpu3>, "clock-frequency:0";
- + };
- +};
- +
- +&watchdog {
- + status = "okay";
- +};
- +
- +&intc {
- + compatible = "brcm,bcm2836-armctrl-ic";
- + interrupt-parent = <&local_intc>;
- + interrupts = <8>;
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2835-rpi-cm.dts
- @@ -0,0 +1,93 @@
- +/dts-v1/;
- +
- +#include "bcm2835-rpi-cm.dtsi"
- +
- +/ {
- + model = "Raspberry Pi Compute Module";
- +};
- +
- +&uart0 {
- + status = "okay";
- +};
- +
- +&gpio {
- + spi0_pins: spi0_pins {
- + brcm,pins = <7 8 9 10 11>;
- + brcm,function = <4>; /* alt0 */
- + };
- +
- + 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 */
- + };
- +};
- +
- +&spi0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&spi0_pins>;
- +
- + spidev@0{
- + compatible = "spidev";
- + reg = <0>; /* CE0 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <500000>;
- + };
- +
- + spidev@1{
- + compatible = "spidev";
- + reg = <1>; /* CE1 */
- + #address-cells = <1>;
- + #size-cells = <0>;
- + spi-max-frequency = <500000>;
- + };
- +};
- +
- +&i2c0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c0_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +&i2c1 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c1_pins>;
- + clock-frequency = <100000>;
- +};
- +
- +&i2c2 {
- + clock-frequency = <100000>;
- +};
- +
- +&i2s {
- + #sound-dai-cells = <0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2s_pins>;
- +};
- +
- +/ {
- + __overrides__ {
- + uart0 = <&uart0>,"status";
- + uart0_clkrate = <&clk_uart0>,"clock-frequency:0";
- + uart1_clkrate = <&uart1>,"clock-frequency:0";
- + i2s = <&i2s>,"status";
- + spi = <&spi0>,"status";
- + i2c0 = <&i2c0>,"status";
- + i2c1 = <&i2c1>,"status";
- + i2c2_iknowwhatimdoing = <&i2c2>,"status";
- + i2c0_baudrate = <&i2c0>,"clock-frequency:0";
- + i2c1_baudrate = <&i2c1>,"clock-frequency:0";
- + i2c2_baudrate = <&i2c2>,"clock-frequency:0";
- + core_freq = <&clk_core>,"clock-frequency:0";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/bcm2835-rpi-cm.dtsi
- @@ -0,0 +1,30 @@
- +#include "bcm2835.dtsi"
- +
- +&leds {
- + act_led: act {
- + label = "led0";
- + linux,default-trigger = "mmc0";
- + gpios = <&gpio 47 0>;
- + };
- +};
- +
- +&mmc {
- + status = "okay";
- + bus-width = <4>;
- +};
- +
- +&fb {
- + status = "okay";
- +};
- +
- +/ {
- + __overrides__ {
- + act_led_gpio = <&act_led>,"gpios:4";
- + act_led_activelow = <&act_led>,"gpios:8";
- + act_led_trigger = <&act_led>,"linux,default-trigger";
- +
- + audio = <&audio>,"status";
- + watchdog = <&watchdog>,"status";
- + random = <&random>,"status";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/Makefile
- @@ -0,0 +1,69 @@
- +ifeq ($(CONFIG_OF),y)
- +
- +# Overlays for the Raspberry Pi platform
- +
- +ifeq ($(CONFIG_ARCH_BCM2708),y)
- + RPI_DT_OVERLAYS=y
- +endif
- +ifeq ($(CONFIG_ARCH_BCM2709),y)
- + RPI_DT_OVERLAYS=y
- +endif
- +ifeq ($(CONFIG_ARCH_BCM2835),y)
- + RPI_DT_OVERLAYS=y
- +endif
- +
- +dtb-$(RPI_DT_OVERLAYS) += ads7846-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += bmp085_i2c-sensor-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += dht11-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += enc28j60-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += gpio-poweroff-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += hifiberry-amp-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += hifiberry-dac-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += hifiberry-dacplus-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += hifiberry-digi-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += hy28a-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += hy28b-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += i2c-rtc-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += i2s-mmap-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += iqaudio-dac-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += iqaudio-dacplus-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += lirc-rpi-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += mcp2515-can0-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += mcp2515-can1-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += mmc-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += mz61581-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += piscreen-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += pitft28-resistive-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += pps-gpio-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += pwm-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += pwm-2chan-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += raspidac3-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += rpi-dac-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += rpi-display-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += rpi-ft5406-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += rpi-proto-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += rpi-sense-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += sdhost-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += sdio-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += smi-dev-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += smi-nand-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += smi-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += spi-gpio35-39-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += tinylcd35-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += uart1-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += vga666-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += w1-gpio-overlay.dtb
- +dtb-$(RPI_DT_OVERLAYS) += w1-gpio-pullup-overlay.dtb
- +
- +targets += dtbs dtbs_install
- +targets += $(dtb-y)
- +
- +endif
- +
- +always := $(dtb-y)
- +clean-files := *.dtb
- +
- +# Enable fixups to support overlays on BCM2708 platforms
- +ifeq ($(RPI_DT_OVERLAYS),y)
- + DTC_FLAGS ?= -@
- +endif
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/README
- @@ -0,0 +1,648 @@
- +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).
- +
- +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" directive. As an example, consider the
- +popular lirc-rpi module, the Linux Infrared Remote Control driver. In the
- +pre-DT world this would be loaded from /etc/modules, with an explicit
- +"modprobe lirc-rpi" command, or programmatically by lircd. With DT enabled,
- +this becomes a line in config.txt:
- +
- + dtoverlay=lirc-rpi
- +
- +This causes the file /boot/overlays/lirc-rpi-overlay.dtb to be loaded. By
- +default it will use GPIOs 17 (out) and 18 (in), but this can be modified using
- +DT parameters:
- +
- + dtoverlay=lirc-rpi,gpio_out_pin=17,gpio_in_pin=13
- +
- +Parameters always have default values, although in some cases (e.g. "w1-gpio")
- +it is necessary to provided multiple overlays in order to get the desired
- +behaviour. See the list of overlays below for a description of the parameters and their defaults.
- +
- +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:
- + audio Set to "on" to enable the onboard ALSA audio
- + interface (default "off")
- +
- + 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")
- +
- + spi Set to "on" to enable the spi interfaces
- + (default "off")
- +
- + random Set to "on" to enable the hardware random
- + number generator (default "on")
- +
- + uart0 Set to "off" to disable uart0 (default "on")
- +
- + 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")
- +
- + 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)
- +
- + 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: 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: bmp085_i2c-sensor
- +Info: Configures the BMP085/BMP180 digital barometric pressure and temperature
- + sensors from Bosch Sensortec
- +Load: dtoverlay=bmp085_i2c-sensor
- +Params: <None>
- +
- +
- +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)
- +
- +
- +[ The ds1307-rtc overlay has been deleted. See i2c-rtc. ]
- +
- +
- +Name: enc28j60
- +Info: Overlay for the Microchip ENC28J60 Ethernet Controller (SPI)
- +Load: dtoverlay=enc28j60,<param>=<val>
- +Params: int_pin GPIO used for INT (default 25)
- +
- + speed SPI bus speed (default 12000000)
- +
- +
- +Name: gpio-poweroff
- +Info: Drives a GPIO high or low on reboot
- +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.
- +
- +
- +Name: hifiberry-amp
- +Info: Configures the HifiBerry Amp and Amp+ audio cards
- +Load: dtoverlay=hifiberry-amp
- +Params: <None>
- +
- +
- +Name: hifiberry-dac
- +Info: Configures the HifiBerry DAC audio card
- +Load: dtoverlay=hifiberry-dac
- +Params: <None>
- +
- +
- +Name: hifiberry-dacplus
- +Info: Configures the HifiBerry DAC+ audio card
- +Load: dtoverlay=hifiberry-dacplus
- +Params: <None>
- +
- +
- +Name: hifiberry-digi
- +Info: Configures the HifiBerry Digi audio card
- +Load: dtoverlay=hifiberry-digi
- +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: i2c-rtc
- +Info: Adds support for a number of I2C Real Time Clock devices
- +Load: dtoverlay=i2c-rtc,<param>
- +Params: ds1307 Select the DS1307 device
- +
- + ds3231 Select the DS3231 device
- +
- + mcp7941x Select the MCP7941x device
- +
- + pcf2127 Select the PCF2127 device
- +
- + pcf8523 Select the PCF8523 device
- +
- + pcf8563 Select the PCF8563 device
- +
- +
- +Name: i2s-mmap
- +Info: Enables mmap support in the bcm2708-i2s driver
- +Load: dtoverlay=i2s-mmap
- +Params: <None>
- +
- +
- +Name: iqaudio-dac
- +Info: Configures the IQaudio DAC audio card
- +Load: dtoverlay=iqaudio-dac
- +Params: <None>
- +
- +
- +Name: iqaudio-dacplus
- +Info: Configures the IQaudio DAC+ audio card
- +Load: dtoverlay=iqaudio-dacplus
- +Params: <None>
- +
- +
- +Name: lirc-rpi
- +Info: Configures lirc-rpi (Linux Infrared Remote Control for Raspberry Pi)
- + Consult the module documentation for more details.
- +Load: dtoverlay=lirc-rpi,<param>=<val>,...
- +Params: 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: 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: 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
- + force_pio Disable DMA support
- +
- +
- +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)
- +
- +
- +[ 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: 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: 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: 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")
- +
- +
- +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: raspidac3
- +Info: Configures the RaspiDAV Rev.3x audio card
- +Load: dtoverlay=raspidac3
- +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)
- +
- +
- +Name: rpi-ft5406
- +Info: Official Raspberry Pi display touchscreen
- +Load: dtoverlay=rpi-ft5406
- +Params: <None>
- +
- +
- +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: sdhost
- +Info: Selects the bcm2835-sdhost SD/MMC driver, optionally with overclock
- +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.
- +Load: dtoverlay=sdio,<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)
- +
- + poll_once Disable SDIO-device polling every second
- + (default on: polling once at boot-time)
- +
- +
- +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: 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: uart1
- +Info: Enable uart1 in place of uart0
- +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: 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.
- +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 Non-zero, "on", or "y" to enable the parasitic
- + power (2-wire, power-on-data) feature
- +
- +
- +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")
- +
- + pullup Non-zero, "on", or "y" to enable the parasitic
- + power (2-wire, power-on-data) feature
- +
- + extpullup GPIO for external pullup (default "5")
- +
- +
- +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
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/ads7846-overlay.dts
- @@ -0,0 +1,83 @@
- +/*
- + * Generic Device Tree overlay for the ADS7846 touch controller
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- +
- + spidev@0{
- + status = "disabled";
- + };
- +
- + spidev@1{
- + status = "disabled";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + ads7846_pins: ads7846_pins {
- + brcm,pins = <255>; /* illegal default value */
- + brcm,function = <0>; /* in */
- + brcm,pull = <0>; /* none */
- + };
- + };
- + };
- +
- + fragment@2 {
- + 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";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/bmp085_i2c-sensor-overlay.dts
- @@ -0,0 +1,23 @@
- +// Definitions for BMP085/BMP180 digital barometric pressure and temperature sensors from Bosch Sensortec
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2708";
- +
- + fragment@0 {
- + target = <&i2c_arm>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + bmp085@77 {
- + compatible = "bosch,bmp085";
- + reg = <0x77>;
- + default-oversampling = <3>;
- + status = "okay";
- + };
- + };
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/dht11-overlay.dts
- @@ -0,0 +1,39 @@
- +/*
- + * Overlay for the DHT11/21/22 humidity/temperature sensor modules.
- + */
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2708";
- +
- + 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 {
- + brcm,pins = <4>;
- + brcm,function = <0>; // in
- + brcm,pull = <0>; // off
- + };
- + };
- + };
- +
- + __overrides__ {
- + gpiopin = <&dht11_pins>,"brcm,pins:0",
- + <&dht11>,"gpios:4";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/enc28j60-overlay.dts
- @@ -0,0 +1,50 @@
- +// Overlay for the Microchip ENC28J60 Ethernet Controller
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2708";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + /* needed to avoid dtc warning */
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + status = "okay";
- +
- + spidev@0{
- + status = "disabled";
- + };
- +
- + 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 = <&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";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/gpio-poweroff-overlay.dts
- @@ -0,0 +1,34 @@
- +// Definitions for gpio-poweroff module
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2708";
- +
- + 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";
- + };
- +};
- --- /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,bcm2708";
- +
- + fragment@0 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "hifiberry,hifiberry-amp";
- + 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";
- +
- + tas5713@1b {
- + #sound-dai-cells = <0>;
- + compatible = "ti,tas5713";
- + reg = <0x1b>;
- + status = "okay";
- + };
- + };
- + };
- +};
- --- /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,bcm2708";
- +
- + fragment@0 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "hifiberry,hifiberry-dac";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@2 {
- + target-path = "/";
- + __overlay__ {
- + pcm5102a-codec {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm5102a";
- + status = "okay";
- + };
- + };
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts
- @@ -0,0 +1,39 @@
- +// Definitions for HiFiBerry DAC+
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2708";
- +
- + fragment@0 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "hifiberry,hifiberry-dacplus";
- + 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@4d {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm5122";
- + reg = <0x4d>;
- + status = "okay";
- + };
- + };
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/hifiberry-digi-overlay.dts
- @@ -0,0 +1,39 @@
- +// Definitions for HiFiBerry Digi
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2708";
- +
- + fragment@0 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "hifiberry,hifiberry-digi";
- + 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";
- +
- + wm8804@3b {
- + #sound-dai-cells = <0>;
- + compatible = "wlf,wm8804";
- + reg = <0x3b>;
- + status = "okay";
- + };
- + };
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/hy28a-overlay.dts
- @@ -0,0 +1,87 @@
- +/*
- + * Device Tree overlay for HY28A display
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- +
- + spidev@0{
- + status = "disabled";
- + };
- +
- + spidev@1{
- + status = "disabled";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + hy28a_pins: hy28a_pins {
- + brcm,pins = <17 25 18>;
- + brcm,function = <0 1 1>; /* in out out */
- + };
- + };
- + };
- +
- + fragment@2 {
- + 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 0>;
- + 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:1";
- + ledgpio = <&hy28a>,"led-gpios:4",
- + <&hy28a_pins>, "brcm,pins:2";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/hy28b-overlay.dts
- @@ -0,0 +1,142 @@
- +/*
- + * Device Tree overlay for HY28b display shield by Texy
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- +
- + spidev@0{
- + status = "disabled";
- + };
- +
- + spidev@1{
- + status = "disabled";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + hy28b_pins: hy28b_pins {
- + brcm,pins = <17 25 18>;
- + brcm,function = <0 1 1>; /* in out out */
- + };
- + };
- + };
- +
- + fragment@2 {
- + 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 0>;
- + 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:1";
- + ledgpio = <&hy28b>,"led-gpios:4",
- + <&hy28b_pins>, "brcm,pins:2";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
- @@ -0,0 +1,55 @@
- +// Definitions for several I2C based Real Time Clocks
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2708";
- +
- + fragment@0 {
- + target = <&i2c_arm>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + status = "okay";
- +
- + ds1307: ds1307@68 {
- + compatible = "maxim,ds1307";
- + reg = <0x68>;
- + status = "disable";
- + };
- + mcp7941x: mcp7941x@6f {
- + compatible = "microchip,mcp7941x";
- + reg = <0x6f>;
- + status = "disable";
- + };
- + ds3231: ds3231@68 {
- + compatible = "maxim,ds3231";
- + reg = <0x68>;
- + status = "disable";
- + };
- + pcf2127: pcf2127@51 {
- + compatible = "nxp,pcf2127";
- + reg = <0x51>;
- + status = "disable";
- + };
- + pcf8523: pcf8523@68 {
- + compatible = "nxp,pcf8523";
- + reg = <0x68>;
- + status = "disable";
- + };
- + pcf8563: pcf8563@51 {
- + compatible = "nxp,pcf8563";
- + reg = <0x51>;
- + status = "disable";
- + };
- + };
- + };
- + __overrides__ {
- + ds1307 = <&ds1307>,"status";
- + ds3231 = <&ds3231>,"status";
- + mcp7941x = <&mcp7941x>,"status";
- + pcf2127 = <&pcf2127>,"status";
- + pcf8523 = <&pcf8523>,"status";
- + pcf8563 = <&pcf8563>,"status";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/i2s-mmap-overlay.dts
- @@ -0,0 +1,13 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2708";
- +
- + fragment@0 {
- + target = <&i2s>;
- + __overlay__ {
- + brcm,enable-mmap;
- + };
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/iqaudio-dac-overlay.dts
- @@ -0,0 +1,39 @@
- +// Definitions for IQaudIO DAC
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2708";
- +
- + fragment@0 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "iqaudio,iqaudio-dac";
- + 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 = <0x4c>;
- + status = "okay";
- + };
- + };
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/iqaudio-dacplus-overlay.dts
- @@ -0,0 +1,39 @@
- +// Definitions for IQaudIO DAC+
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2708";
- +
- + fragment@0 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "iqaudio,iqaudio-dac";
- + 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 = <0x4c>;
- + status = "okay";
- + };
- + };
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/lirc-rpi-overlay.dts
- @@ -0,0 +1,57 @@
- +// Definitions for lirc-rpi module
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2708";
- +
- + fragment@0 {
- + 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@1 {
- + target = <&gpio>;
- + __overlay__ {
- + lirc_pins: lirc_pins {
- + brcm,pins = <17 18>;
- + brcm,function = <1 0>; // out in
- + brcm,pull = <0 1>; // off down
- + };
- + };
- + };
- +
- + __overrides__ {
- + 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";
- + debug = <&lirc_rpi>,"rpi,debug:0";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/mcp2515-can0-overlay.dts
- @@ -0,0 +1,69 @@
- +/*
- + * Device tree overlay for mcp251x/can0 on spi0.0
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
- + /* disable spi-dev for spi0.0 */
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + spidev@0{
- + status = "disabled";
- + };
- + };
- + };
- +
- + /* the interrupt pin of the can-controller */
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + can0_pins: can0_pins {
- + brcm,pins = <25>;
- + brcm,function = <0>; /* input */
- + };
- + };
- + };
- +
- + /* the clock/oscillator of the can-controller */
- + fragment@2 {
- + target-path = "/clocks";
- + __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@3 {
- + 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 0x2>;
- + 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";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/mcp2515-can1-overlay.dts
- @@ -0,0 +1,69 @@
- +/*
- + * Device tree overlay for mcp251x/can1 on spi0.1 edited by petit_miner
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
- + /* disable spi-dev for spi0.1 */
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- + spidev@1{
- + status = "disabled";
- + };
- + };
- + };
- +
- + /* the interrupt pin of the can-controller */
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + can1_pins: can1_pins {
- + brcm,pins = <25>;
- + brcm,function = <0>; /* input */
- + };
- + };
- + };
- +
- + /* the clock/oscillator of the can-controller */
- + fragment@2 {
- + target-path = "/clocks";
- + __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@3 {
- + 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 0x2>;
- + 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";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/mmc-overlay.dts
- @@ -0,0 +1,39 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2708";
- +
- + 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 */
- + };
- + };
- + };
- +
- + fragment@2 {
- + target = <&sdhost>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + __overrides__ {
- + overclock_50 = <&frag0>,"brcm,overclock-50:0";
- + force_pio = <&frag0>,"brcm,force-pio?";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/mz61581-overlay.dts
- @@ -0,0 +1,111 @@
- +/*
- + * Device Tree overlay for MZ61581-PI-EXT 2014.12.28 by Tontec
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- +
- + spidev@0{
- + status = "disabled";
- + };
- +
- + spidev@1{
- + status = "disabled";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + mz61581_pins: mz61581_pins {
- + brcm,pins = <4 15 18 25>;
- + brcm,function = <0 1 1 1>; /* in out out out */
- + };
- + };
- + };
- +
- + fragment@2 {
- + 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 0>;
- + 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";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/piscreen-overlay.dts
- @@ -0,0 +1,96 @@
- +/*
- + * Device Tree overlay for PiScreen 3.5" display shield by Ozzmaker
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- +
- + spidev@0{
- + status = "disabled";
- + };
- +
- + spidev@1{
- + status = "disabled";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + piscreen_pins: piscreen_pins {
- + brcm,pins = <17 25 24 22>;
- + brcm,function = <0 1 1 1>; /* in out out out */
- + };
- + };
- + };
- +
- + fragment@2 {
- + 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 0>;
- + dc-gpios = <&gpio 24 0>;
- + led-gpios = <&gpio 22 1>;
- + 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";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/pitft28-resistive-overlay.dts
- @@ -0,0 +1,115 @@
- +/*
- + * Device Tree overlay for Adafruit PiTFT 2.8" resistive touch screen
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
- +
- + 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 = <24 25>;
- + brcm,function = <0 1>; /* in out */
- + brcm,pull = <2 0>; /* pullup 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>;
- + };
- +
- + pitft_ts@1 {
- + #address-cells = <1>;
- + #size-cells = <0>;
- + 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@3 {
- + 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";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/pps-gpio-overlay.dts
- @@ -0,0 +1,34 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2708";
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + pps: pps {
- + 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 {
- + brcm,pins = <18>;
- + brcm,function = <0>; // in
- + brcm,pull = <0>; // off
- + };
- + };
- + };
- +
- + __overrides__ {
- + gpiopin = <&pps>,"gpios:4",
- + <&pps_pins>,"brcm,pins:0";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/pwm-2chan-overlay.dts
- @@ -0,0 +1,46 @@
- +/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.
- +*/
- +
- +/ {
- + fragment@0 {
- + target = <&gpio>;
- + __overlay__ {
- + pwm_pins: pwm_pins {
- + brcm,pins = <18 19>;
- + brcm,function = <2 2>; /* Alt5 */
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&pwm>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&pwm_pins>;
- + 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 = <&clk_pwm>,"clock-frequency:0";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/pwm-overlay.dts
- @@ -0,0 +1,42 @@
- +/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.
- +*/
- +
- +/ {
- + fragment@0 {
- + target = <&gpio>;
- + __overlay__ {
- + pwm_pins: pwm_pins {
- + brcm,pins = <18>;
- + brcm,function = <2>; /* Alt5 */
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&pwm>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&pwm_pins>;
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + pin = <&pwm_pins>,"brcm,pins:0";
- + func = <&pwm_pins>,"brcm,function:0";
- + clock = <&clk_pwm>,"clock-frequency:0";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/raspidac3-overlay.dts
- @@ -0,0 +1,45 @@
- +// Definitions for RaspiDACv3
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2708";
- +
- + fragment@0 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "jg,raspidacv3";
- + 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 = <0x4c>;
- + status = "okay";
- + };
- +
- + tpa6130a2: tpa6130a2@60 {
- + compatible = "ti,tpa6130a2";
- + reg = <0x60>;
- + status = "okay";
- + };
- + };
- + };
- +};
- --- /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,bcm2708";
- +
- + fragment@0 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "rpi,rpi-dac";
- + i2s-controller = <&i2s>;
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&i2s>;
- + __overlay__ {
- + status = "okay";
- + };
- + };
- +
- + fragment@2 {
- + target-path = "/";
- + __overlay__ {
- + pcm1794a-codec {
- + #sound-dai-cells = <0>;
- + compatible = "ti,pcm1794a";
- + status = "okay";
- + };
- + };
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/rpi-display-overlay.dts
- @@ -0,0 +1,82 @@
- +/*
- + * Device Tree overlay for rpi-display by Watterott
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
- +
- + 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 = <18 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 = <270>;
- + bgr;
- + fps = <30>;
- + buswidth = <8>;
- + reset-gpios = <&gpio 23 0>;
- + dc-gpios = <&gpio 24 0>;
- + led-gpios = <&gpio 18 1>;
- + 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 0>;
- + 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";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts
- @@ -0,0 +1,17 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2708";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- + rpi_ft5406: rpi_ft5406 {
- + compatible = "rpi,rpi-ft5406";
- + firmware = <&firmware>;
- + status = "okay";
- + };
- + };
- + };
- +};
- --- /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,bcm2708";
- +
- + fragment@0 {
- + target = <&sound>;
- + __overlay__ {
- + compatible = "rpi,rpi-proto";
- + 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";
- +
- + wm8731@1a {
- + #sound-dai-cells = <0>;
- + compatible = "wlf,wm8731";
- + reg = <0x1a>;
- + status = "okay";
- + };
- + };
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/rpi-sense-overlay.dts
- @@ -0,0 +1,47 @@
- +// rpi-sense HAT
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2708", "brcm,bcm2709";
- +
- + 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";
- + reg = <0x5f>;
- + status = "okay";
- + };
- + };
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/sdhost-overlay.dts
- @@ -0,0 +1,29 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2708";
- +
- + fragment@0 {
- + target = <&mmc>;
- + __overlay__ {
- + status = "disabled";
- + };
- + };
- +
- + fragment@1 {
- + target = <&sdhost>;
- + frag1: __overlay__ {
- + brcm,overclock-50 = <0>;
- + brcm,pio-limit = <1>;
- + status = "okay";
- + };
- + };
- +
- + __overrides__ {
- + overclock_50 = <&frag1>,"brcm,overclock-50:0";
- + force_pio = <&frag1>,"brcm,force-pio?";
- + pio_limit = <&frag1>,"brcm,pio-limit:0";
- + debug = <&frag1>,"brcm,debug?";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/sdio-overlay.dts
- @@ -0,0 +1,32 @@
- +/* Enable SDIO from MMC interface via GPIOs 22-27. Includes sdhost overlay. */
- +
- +/include/ "sdhost-overlay.dts"
- +
- +/{
- + compatible = "brcm,bcm2708";
- +
- + fragment@3 {
- + target = <&mmc>;
- + sdio_mmc: __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&sdio_pins>;
- + non-removable;
- + status = "okay";
- + };
- + };
- +
- + fragment@4 {
- + target = <&gpio>;
- + __overlay__ {
- + sdio_pins: sdio_pins {
- + brcm,pins = <22 23 24 25 26 27>;
- + brcm,function = <7 7 7 7 7 7>; /* ALT3 = SD1 */
- + brcm,pull = <0 2 2 2 2 2>;
- + };
- + };
- + };
- +
- + __overrides__ {
- + poll_once = <&sdio_mmc>,"non-removable?";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/smi-dev-overlay.dts
- @@ -0,0 +1,18 @@
- +// Description: Overlay to enable character device interface for SMI.
- +// Author: Luke Wren <luke@raspberrypi.org>
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + fragment@0 {
- + target = <&soc>;
- + __overlay__ {
- + smi_dev {
- + compatible = "brcm,bcm2835-smi-dev";
- + smi_handle = <&smi>;
- + status = "okay";
- + };
- + };
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/smi-nand-overlay.dts
- @@ -0,0 +1,69 @@
- +// Description: Overlay to enable NAND flash through
- +// the secondary memory interface
- +// Author: Luke Wren
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2708";
- +
- + fragment@0 {
- + target = <&smi>;
- + __overlay__ {
- + pinctrl-names = "default";
- + pinctrl-0 = <&smi_pins>;
- + status = "okay";
- + };
- + };
- +
- + fragment@1 {
- + target = <&soc>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <1>;
- +
- + 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>;
- + };
- + };
- + };
- +};
- --- /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,bcm2708";
- +
- + 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 0: 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>;
- + };
- + };
- + };
- +};
- --- /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", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + cs-gpios = <&gpio 36 1>, <&gpio 35 1>;
- + };
- + };
- +
- + fragment@1 {
- + target = <&spi0_cs_pins>;
- + __overlay__ {
- + bcrm,pins = <36 35>;
- + };
- + };
- +
- + fragment@2 {
- + target = <&spi0_pins>;
- + __overlay__ {
- + bcrm,pins = <37 38 39>;
- + };
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/tinylcd35-overlay.dts
- @@ -0,0 +1,216 @@
- +/*
- + * 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 -- tinylcd@gmail.com added ds1307 support.
- + *
- + */
- +
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
- +
- + fragment@0 {
- + target = <&spi0>;
- + __overlay__ {
- + status = "okay";
- +
- + spidev@0{
- + status = "disabled";
- + };
- +
- + spidev@1{
- + status = "disabled";
- + };
- + };
- + };
- +
- + fragment@1 {
- + 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@2 {
- + 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 0>;
- + dc-gpios = <&gpio 24 0>;
- + led-gpios = <&gpio 18 1>;
- + 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@3 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + pcf8563: pcf8563@51 {
- + compatible = "nxp,pcf8563";
- + reg = <0x51>;
- + status = "disabled";
- + };
- + };
- + };
- +
- + fragment@4 {
- + target = <&i2c1>;
- + __overlay__ {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + ds1307: ds1307@68 {
- + compatible = "maxim,ds1307";
- + reg = <0x68>;
- + status = "disabled";
- + };
- + };
- + };
- +
- + /*
- + * Values for input event code is found under the
- + * 'Keys and buttons' heading in include/uapi/linux/input.h
- + */
- + fragment@5 {
- + target-path = "/soc";
- + __overlay__ {
- + keypad: keypad {
- + compatible = "gpio-keys";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + 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 = <&i2c1>,"status",
- + <&pcf8563>,"status";
- + rtc-ds = <&i2c1>,"status",
- + <&ds1307>,"status";
- + keypad = <&keypad>,"status";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/uart1-overlay.dts
- @@ -0,0 +1,38 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2708";
- +
- + 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";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/vga666-overlay.dts
- @@ -0,0 +1,30 @@
- +/dts-v1/;
- +/plugin/;
- +
- +/{
- + compatible = "brcm,bcm2708";
- +
- + // 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 */
- + };
- + };
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/w1-gpio-overlay.dts
- @@ -0,0 +1,39 @@
- +// Definitions for w1-gpio module (without external pullup)
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2708";
- +
- + fragment@0 {
- + target-path = "/";
- + __overlay__ {
- +
- + w1: onewire@0 {
- + compatible = "w1-gpio";
- + pinctrl-names = "default";
- + pinctrl-0 = <&w1_pins>;
- + gpios = <&gpio 4 0>;
- + rpi,parasitic-power = <0>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + w1_pins: w1_pins {
- + brcm,pins = <4>;
- + brcm,function = <0>; // in (initially)
- + brcm,pull = <0>; // off
- + };
- + };
- + };
- +
- + __overrides__ {
- + gpiopin = <&w1>,"gpios:4",
- + <&w1_pins>,"brcm,pins:0";
- + pullup = <&w1>,"rpi,parasitic-power:0";
- + };
- +};
- --- /dev/null
- +++ b/arch/arm/boot/dts/overlays/w1-gpio-pullup-overlay.dts
- @@ -0,0 +1,41 @@
- +// Definitions for w1-gpio module (with external pullup)
- +/dts-v1/;
- +/plugin/;
- +
- +/ {
- + compatible = "brcm,bcm2708";
- +
- + 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>;
- + rpi,parasitic-power = <0>;
- + status = "okay";
- + };
- + };
- + };
- +
- + fragment@1 {
- + target = <&gpio>;
- + __overlay__ {
- + w1_pins: w1_pins {
- + brcm,pins = <4 5>;
- + brcm,function = <0 1>; // in out
- + brcm,pull = <0 0>; // off off
- + };
- + };
- + };
- +
- + __overrides__ {
- + gpiopin = <&w1>,"gpios:4",
- + <&w1_pins>,"brcm,pins:0";
- + extpullup = <&w1>,"gpios:16",
- + <&w1_pins>,"brcm,pins:4";
- + pullup = <&w1>,"rpi,parasitic-power:0";
- + };
- +};
|