#
#asahi-dev · 2023-03-04 15:10
marcanthere is a driver for disp0 without DCP
#asahi-dev · 2023-03-04 15:10
marcanH13G is just the soc codename
#asahi-dev · 2023-03-04 15:10
ChaosPrincessapple calls it H13G-DFR, while the primary is H13G-DCP, so looks that way
#asahi-dev · 2023-03-04 15:10
marcanor is this like a much older display controller?
#asahi-dev · 2023-03-04 15:10
marcanoh huh... well then... err... isn't that what DCP drives behind the scenes?
#asahi-dev · 2023-03-04 15:09
ChaosPrincessnah, it looks to be just a copypasted iphone primary display controller
#asahi-dev · 2023-03-04 15:09
ChaosPrincesslol
#asahi-dev · 2023-03-04 15:09
marcanso there's a good chance most of the work will be the MIPI junk
#asahi-dev · 2023-03-04 15:09
marcanI would expect the actual display controller portion to be fairly dumb, if they only intended it for the touch bar (single plane, no scaling, etc.), though who knows
#asahi-dev · 2023-03-04 15:08
ChaosPrincessok, yea, kmb looks okay
#asahi-dev · 2023-03-04 15:08
marcanalyssa: does that sound reasonable?
#asahi-dev · 2023-03-04 15:07
marcanChaosPrincess: ^
#asahi-dev · 2023-03-04 15:05
marcanbut also given MIPI specs are unobtainium, divining MIPI-isms from other drivers is probably a good idea too
#asahi-dev · 2023-03-04 15:05
marcan(1/3 of that is DSI because lol MIPI)
#asahi-dev · 2023-03-04 15:04
marcanwhole driver is ~4400 lines
#asahi-dev · 2023-03-04 15:04
marcaneven smaller, seems to only do MIPI
#asahi-dev · 2023-03-04 15:04
marcankmb? TIL that's a thing
#asahi-dev · 2023-03-04 15:04
marcanoh actually
#asahi-dev · 2023-03-04 15:03
marcanquick search suggests rcar-du for a reasonable driver with MIPI
#asahi-dev · 2023-03-04 15:01
marcanif MIPI panel stuff is involved (which it likely is if this is a bare metal MIPI PHY display controller), you probably want to look at other MIPI drivers and panel stuff for common code, and then you should end up with two drivers (MIPI controller + panel)
#asahi-dev · 2023-03-04 15:01
alyssa(e.g. cirrus)
#asahi-dev · 2023-03-04 15:01
alyssasingle file drm drivers
#asahi-dev · 2023-03-04 15:01
alyssadrm/tiny/
#asahi-dev · 2023-03-04 15:00
alyssabut that's not really an option for something like dcp :p
#asahi-dev · 2023-03-04 15:00
marcanand seems to actively be getting patches
#asahi-dev · 2023-03-04 15:00
alyssathere's also tinydrm
#asahi-dev · 2023-03-04 15:00
marcandriver from 2016, not *too* ancient
#asahi-dev · 2023-03-04 15:00
alyssadisplay only, straightforward hardwarw
#asahi-dev · 2023-03-04 15:00
ChaosPrincessty
#asahi-dev · 2023-03-04 15:00
alyssameson is the way to go, I think
#asahi-dev · 2023-03-04 15:00
chadmedradeon first? the one where every patch is like 400,000 lines of autogenerated register definition headers?
#asahi-dev · 2023-03-04 15:00
alyssameson
#asahi-dev · 2023-03-04 15:00
alyssaoh, i know
#asahi-dev · 2023-03-04 14:59
alyssaradeon is the worst choice
#asahi-dev · 2023-03-04 14:59
marcanokay yeah dcp is a bad choice and radeon is worse
#asahi-dev · 2023-03-04 14:59
ChaosPrincessoh, i tried to go for radeon at first, and dcp was much simplier in comparison :P
#asahi-dev · 2023-03-04 14:59
marcanI was going to suggest one of the more recentish bare metal mipi/whatever drivers
#asahi-dev · 2023-03-04 14:59
alyssa(vc4 is a combined display+3D driver, except then v3d is 3D-only and uses vc4 as the display half on the newer raspberry pis)
#asahi-dev · 2023-03-04 14:59
alyssatry maybe vc4, just ignore the 3D bits
#asahi-dev · 2023-03-04 14:58
alyssaChaosPrincess: 100%
#asahi-dev · 2023-03-04 14:57
chadmedi gave up trying to read it very very quickly so yes
#asahi-dev · 2023-03-04 14:57
ChaosPrincessand is it a bad choice for studying how to write a drm display driver
#asahi-dev · 2023-03-04 14:57
alyssayes
#asahi-dev · 2023-03-04 14:57
marcanyes.
#asahi-dev · 2023-03-04 14:57
ChaosPrincessis dcp _that_ cursed
#asahi-dev · 2023-03-04 14:56
marcan:D
#asahi-dev · 2023-03-04 14:56
alyssa(~:
#asahi-dev · 2023-03-04 14:56
alyssai responded with what the convention already used for arm socs
#asahi-dev · 2023-03-04 14:56
alyssawhen JANNAU and SVEN started writing the DCP driver and they asked me, a linux gfx veteran, how names should be chosen
#asahi-dev · 2023-03-04 14:55
alyssai mean uhhhhhhhhh

plus ›