Skip to content

Commit 422dcaf

Browse files
charleskeepaxLee Jones
authored andcommitted
mfd: lochnagar: Add support for the Cirrus Logic Lochnagar
Lochnagar is an evaluation and development board for Cirrus Logic Smart CODEC and Amp devices. It allows the connection of most Cirrus Logic devices on mini-cards, as well as allowing connection of various application processor systems to provide a full evaluation platform. This driver supports the board controller chip on the Lochnagar board. Audio system topology, clocking and power can all be controlled through the Lochnagar controller chip, allowing the device under test to be used in a variety of possible use cases. As the Lochnagar is a fairly complex device this MFD driver allows the drivers for the various features to be bound in. Initially clocking, regulator and pinctrl will be added as these are necessary to configure the system. But in time at least audio and voltage/current monitoring will also be added. Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
1 parent fdc98f0 commit 422dcaf

7 files changed

Lines changed: 928 additions & 0 deletions

File tree

‎MAINTAINERS‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3700,6 +3700,23 @@ L: netdev@vger.kernel.org
37003700
S: Maintained
37013701
F: drivers/net/ethernet/cirrus/ep93xx_eth.c
37023702

3703+
CIRRUS LOGIC LOCHNAGAR DRIVER
3704+
M: Charles Keepax <ckeepax@opensource.cirrus.com>
3705+
M: Richard Fitzgerald <rf@opensource.cirrus.com>
3706+
L: patches@opensource.cirrus.com
3707+
S: Supported
3708+
F: drivers/clk/clk-lochnagar.c
3709+
F: drivers/mfd/lochnagar-i2c.c
3710+
F: drivers/pinctrl/cirrus/pinctrl-lochnagar.c
3711+
F: drivers/regulator/lochnagar-regulator.c
3712+
F: include/dt-bindings/clk/lochnagar.h
3713+
F: include/dt-bindings/pinctrl/lochnagar.h
3714+
F: include/linux/mfd/lochnagar*
3715+
F: Documentation/devicetree/bindings/mfd/cirrus,lochnagar.txt
3716+
F: Documentation/devicetree/bindings/clock/cirrus,lochnagar.txt
3717+
F: Documentation/devicetree/bindings/pinctrl/cirrus,lochnagar.txt
3718+
F: Documentation/devicetree/bindings/regulator/cirrus,lochnagar.txt
3719+
37033720
CISCO FCOE HBA DRIVER
37043721
M: Satish Kharat <satishkh@cisco.com>
37053722
M: Sesidhar Baddela <sebaddel@cisco.com>

‎drivers/mfd/Kconfig‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1686,6 +1686,14 @@ config MFD_VX855
16861686
VIA VX855/VX875 south bridge. You will need to enable the vx855_spi
16871687
and/or vx855_gpio drivers for this to do anything useful.
16881688

1689+
config MFD_LOCHNAGAR
1690+
bool "Cirrus Logic Lochnagar Audio Development Board"
1691+
select MFD_CORE
1692+
select REGMAP_I2C
1693+
depends on I2C=y && OF
1694+
help
1695+
Support for Cirrus Logic Lochnagar audio development board.
1696+
16891697
config MFD_ARIZONA
16901698
select REGMAP
16911699
select REGMAP_IRQ

‎drivers/mfd/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ obj-$(CONFIG_MFD_T7L66XB) += t7l66xb.o tmio_core.o
3737
obj-$(CONFIG_MFD_TC6387XB) += tc6387xb.o tmio_core.o
3838
obj-$(CONFIG_MFD_TC6393XB) += tc6393xb.o tmio_core.o
3939

40+
obj-$(CONFIG_MFD_LOCHNAGAR) += lochnagar-i2c.o
41+
4042
obj-$(CONFIG_MFD_ARIZONA) += arizona-core.o
4143
obj-$(CONFIG_MFD_ARIZONA) += arizona-irq.o
4244
obj-$(CONFIG_MFD_ARIZONA_I2C) += arizona-i2c.o

0 commit comments

Comments
 (0)