Skip to content

Commit d5282a5

Browse files
charleskeepaxlag-linaro
authored andcommitted
pinctrl: cs42l43: Add support for the cs42l43
The CS42L43 is an audio CODEC with integrated MIPI SoundWire interface (Version 1.2.1 compliant), I2C, SPI, and I2S/TDM interfaces designed for portable applications. It provides a high dynamic range, stereo DAC for headphone output, two integrated Class D amplifiers for loudspeakers, and two ADCs for wired headset microphone input or stereo line input. PDM inputs are provided for digital microphones. Add a basic pinctrl driver which supports driver strength for the various pins, gpios, and pinmux for the 2 multi-function pins. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/20230804104602.395892-5-ckeepax@opensource.cirrus.com Signed-off-by: Lee Jones <lee@kernel.org>
1 parent ace6d14 commit d5282a5

4 files changed

Lines changed: 623 additions & 0 deletions

File tree

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4880,6 +4880,7 @@ L: patches@opensource.cirrus.com
48804880
S: Maintained
48814881
F: Documentation/devicetree/bindings/sound/cirrus,cs*
48824882
F: drivers/mfd/cs42l43*
4883+
F: drivers/pinctrl/cirrus/pinctrl-cs42l43*
48834884
F: include/dt-bindings/sound/cs*
48844885
F: include/linux/mfd/cs42l43*
48854886
F: include/sound/cs*

drivers/pinctrl/cirrus/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2+
config PINCTRL_CS42L43
3+
tristate "Cirrus Logic CS42L43 Pinctrl Driver"
4+
depends on MFD_CS42L43
5+
select GPIOLIB
6+
select PINMUX
7+
select PINCONF
8+
select GENERIC_PINCONF
9+
help
10+
Select this to support the GPIO/Pinctrl functions of the Cirrus
11+
Logic CS42L43 PC CODEC.
12+
213
config PINCTRL_LOCHNAGAR
314
tristate "Cirrus Logic Lochnagar pinctrl driver"
415
depends on MFD_LOCHNAGAR

drivers/pinctrl/cirrus/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
# Cirrus Logic pinctrl drivers
3+
obj-$(CONFIG_PINCTRL_CS42L43) += pinctrl-cs42l43.o
4+
35
obj-$(CONFIG_PINCTRL_LOCHNAGAR) += pinctrl-lochnagar.o
46

57
pinctrl-madera-objs := pinctrl-madera-core.o

0 commit comments

Comments
 (0)