Skip to content

mt6572-mainline Cleanup#64

Draft
akku1139 wants to merge 8298 commits into
TeamYogaBlade2:mainlinefrom
mt6572-mainline:cleanup
Draft

mt6572-mainline Cleanup#64
akku1139 wants to merge 8298 commits into
TeamYogaBlade2:mainlinefrom
mt6572-mainline:cleanup

Conversation

@akku1139

Copy link
Copy Markdown
Member

No description provided.

@rva3
rva3 force-pushed the cleanup branch 4 times, most recently from d848523 to 1fc4bba Compare July 14, 2026 12:36
@rva3
rva3 force-pushed the cleanup branch 2 times, most recently from 6605a71 to 3979182 Compare July 20, 2026 09:27
broonie added 22 commits July 21, 2026 14:31
rva3 and others added 8 commits July 22, 2026 12:11
Add a PWM node for general purpose PWM usage with GPIO pins.

Signed-off-by: Roman Vivchar <rva333@protonmail.com>
Add display backlight support using PWM.

Signed-off-by: Roman Vivchar <rva333@protonmail.com>
Add display backlight support using PWM.

Signed-off-by: Custom Firmware <gabin278@gmail.com>
[rva3: adjust commit message, minor DT changes]
Signed-off-by: Roman Vivchar <rva333@protonmail.com>
the patches which were sent to LKML but not merged (yet)
The mt6323 PMIC includes an AUXADC. Register the AUXADC in the mt6323
devices array to allow the corresponding driver to probe using compatible
string.

Tested-by: Ben Grisdale <bengris32@protonmail.ch> # Amazon Echo Dot (2nd Generation)
Reviewed-by: David Lechner <dlechner@baylibre.com>
Acked-by: Lee Jones <lee@kernel.org>
Signed-off-by: Roman Vivchar <rva333@protonmail.com>
Add the devicetree node for the mt6323 AUXADC.

Tested-by: Ben Grisdale <bengris32@protonmail.ch> # Amazon Echo Dot (2nd Generation)
Reviewed-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Roman Vivchar <rva333@protonmail.com>
cannot me merged into mainline
Signed-off-by: rva3 <rva333@protonmail.com>
rva3 and others added 20 commits July 25, 2026 12:20
Document mediatek,mt6323-sound in the audio-codec node, alongside the existing MT6358/MT6397 codecs.

Signed-off-by: Custom Firmware <gabin278@gmail.com>
The MT6572 Audio Front-End: a DL1 playback memif streaming from the on-chip audio SRAM to the MT6323 PMIC codec.

Signed-off-by: Custom Firmware <gabin278@gmail.com>
The machine binding tying the MT6572 AFE to the MT6323 PMIC codec, with standard aux-devs/audio-routing, optional headphone-jack detection and a speaker amplifier.

Signed-off-by: Custom Firmware <gabin278@gmail.com>
The MediaTek mt6323 PMIC includes an accdet (accessory detection) for
headphone jack event reporting.

Add the devicetree binding documentation for the MediaTek mt6323 accdet.

Signed-off-by: Roman Vivchar <rva333@protonmail.com>
If accdet driver is not ready, sound card will be registered without
jack support. Fix this by returning EPROBE_DEFER when accdet is not
probed yet.

Signed-off-by: Roman Vivchar <rva333@protonmail.com>
Some MediaTek boards include additional speaker amplifier. Add support
for parsing aux devs from the devicetree.

Signed-off-by: Roman Vivchar <rva333@protonmail.com>
DAC, headphone output and volume controls on the MT6323 PMIC, reached over the parent MT6397 PMIC-wrapper regmap. The analog register fields are undocumented; the init values come from the stock power-on sequence.

Signed-off-by: Custom Firmware <gabin278@gmail.com>
AFE platform driver (DL1 playback memif + ADDA/PMIC link) plus the mt6572-mt6323 machine driver: a DL1 -> mt6323 dai-link, headphone-jack auto-routing between speaker and headphones, and an optional speaker amplifier via the standard aux-devs/audio-routing bindings. Earpiece and uplink/capture are not yet supported.

Signed-off-by: Custom Firmware <gabin278@gmail.com>
!! TO BE SQUASHED WITH ORIGINAL COMMIT !!

Signed-off-by: Roman Vivchar <rva333@protonmail.com>
The MT6323 has an internal class-D speaker amplifier (SPK_CON) fed by the AUDTOP voice/LCH DAC, separate from the headphone path. Add a "Speaker Driver" output widget with its power sequence and a "Speaker Volume" control for the SPK_CON9 PGA gain.

Signed-off-by: Custom Firmware <gabin278@gmail.com>
we need to cleanup the driver anyway...

Signed-off-by: Roman Vivchar <rva333@protonmail.com>
mt6323 PMIC includes ACCDET hardware block for accessory detection like
headphone jack.

Co-developed-by: Custom Firmware <gabin278@gmail.com>
Signed-off-by: Custom Firmware <gabin278@gmail.com>
Signed-off-by: Roman Vivchar <rva333@protonmail.com>
Add an mt6323-sound MFD cell so the MT6323 ASoC codec driver probes.

Signed-off-by: Custom Firmware <gabin278@gmail.com>
The mt6323 PMIC includes an ACCDET. Register the ACCDET in the mt6323
devices array to allow the corresponding driver to probe using compatible
string.

Signed-off-by: Roman Vivchar <rva333@protonmail.com>
Sub-node of the audsys syscon for the DL1 playback front-end + the on-chip audio SRAM.

Signed-off-by: Custom Firmware <gabin278@gmail.com>
The MT6323 PMIC analog codec (mediatek,mt6323-sound).

Signed-off-by: Custom Firmware <gabin278@gmail.com>
Add an accdet node for accessory detection.

Signed-off-by: Roman Vivchar <rva333@protonmail.com>
Add the MT6572 AFE + MT6323 sound card with the internal class-D speaker and headphone-jack detection on GPIO136, and map GPIO136 to EINT2 in the mt6572 pinctrl so the jack interrupt resolves.

Signed-off-by: Custom Firmware <gabin278@gmail.com>
Add audio support using PMIC codec and speaker amplifier driven by GPIO.

Signed-off-by: Roman Vivchar <rva333@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants