[arm64] Enable configs for MediaTek MT8173 and MT8183 Chromebooks
This enables kernel configs that are necessary for MT8173 and MT8183 Chromebooks, based on ChromiumOS configs I tried to explore in Debian bug #1034159, tested on three that I have:
-
Acer Chromebook 314 (CB314-2H, CB314-2HT) ("Google Cozmo", mt8183-kukui-jacuzzi-cozmo.dts)
-
Lenovo 300e Chromebook 2nd Gen MTK ("Google Hana/Sycamore360", mt8173-elm-hana.dts)
-
ASUS Chromebook C202XA ("Google Hana/Telesu", mt8173-elm-hana-rev7.dts)
There's some problems with the module dependencies / probe ordering, I needed a modprobe.conf to get things working:
## Hana
softdep mtk_smi pre: mtk-pmic-wrap
softdep mtk_iommu pre: mtk-smi
softdep mediatek-drm pre: mtk_iommu clk_mt8173_mm
## Cozmo
softdep mt6397 pre: mtk-pmic-wrap
softdep mt6358-regulator pre: mt6397
softdep mtk-smi pre: mt6358-regulator
softdep mtk_iommu pre: mtk-smi
softdep mediatek-drm pre: mtk_iommu
softdep phy_mtk_mipi_dsi_drv pre: nvmem_mtk_efuse
softdep mtk-sd pre: mt6358-regulator
softdep mtu3 pre: mt6358-regulator
Both occasionally fails to boot, and retrying loading i2c_mt65xx
can make things continue so that seems to need something else, but adding softdep i2c_mt65xx pre: clk_mtk8173_pericfg
and softdep da9211_regulator pre: i2c_mt65xx
wasn't enough, so I don't know what. (Converting some things to built-in would help). And I see the keyboard occasionally not working, with cros_ec_keyb
not loaded for some reason.
I also needed some initramfs-tools work to add mtu3
, pwm_mtk_disp
, mediatek_drm
for MODULES=most
, to include the dp-aux
-connected panel-edp
, and to include dependencies based on devlink "supplier"s for MODULES=dep
. I have filed initramfs-tools!85 (merged), initramfs-tools!86 (merged), initramfs-tools!87 (merged) for those.
It also needs some patches, one for corebootfb to stop trying to use a nonexisting framebuffer at zero and two for clk_mt8173_infracfg to properly work as a module, though I could wait for their eventual inclusion in upstream kernel.
I also need to add modules to installer udebs, but doesn't look like it'd be usable with the modprobe weirdness going on. Anyway, feeling kind of burnt out trying to derive all this, so wanted to get this MR out at least.
(Also see !873 (merged) which tries to enable newer MediaTek SoCs, has a lot of common ground with this one. I wasn't sure if I should base this on that.)