]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: wm8904: get platform data from DT
authorErnest Van Hoecke <ernest.vanhoecke@toradex.com>
Wed, 19 Mar 2025 14:20:58 +0000 (15:20 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 20 Mar 2025 12:42:29 +0000 (12:42 +0000)
commitafe66ef965317381fd2894c2eba144b38b791910
treee286f178f234f7c6303b335a6c064c1dcb928b5f
parentbd552e937fc80faa70007f7a4cbbf7edd5a6629a
ASoC: wm8904: get platform data from DT

Read in optional codec-specific properties from the device tree.

The platform_data structure is not populated when using device trees.
This change parses optional dts properties to populate it.

- wlf,in1l-as-dmicdat1
- wlf,in1r-as-dmicdat2
- wlf,gpio-cfg
- wlf,micbias-cfg
- wlf,drc-cfg-regs
- wlf,drc-cfg-names
- wlf,retune-mobile-cfg-regs
- wlf,retune-mobile-cfg-names
- wlf,retune-mobile-cfg-hz

Datasheet: https://statics.cirrus.com/pubs/proDatasheet/WM8904_Rev4.1.pdf
Signed-off-by: Ernest Van Hoecke <ernest.vanhoecke@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20250319142059.46692-5-francesco@dolcini.it
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/wm8904.h
sound/soc/codecs/wm8904.c