[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240530093410.112716-1-angelogioacchino.delregno@collabora.com>
Date: Thu, 30 May 2024 11:34:06 +0200
From: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
To: jic23@...nel.org
Cc: lars@...afoo.de,
robh@...nel.org,
krzk+dt@...nel.org,
conor+dt@...nel.org,
matthias.bgg@...il.com,
angelogioacchino.delregno@...labora.com,
lee@...nel.org,
andy@...nel.org,
nuno.sa@...log.com,
bigunclemax@...il.com,
dlechner@...libre.com,
marius.cristea@...rochip.com,
marcelo.schmitt@...log.com,
fr0st61te@...il.com,
mitrutzceclan@...il.com,
mike.looijmans@...ic.nl,
marcus.folkesson@...il.com,
linux-iio@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org,
kernel@...labora.com
Subject: [PATCH v1 0/4] MediaTek MT6357/8/9 PMIC Auxiliary ADC support
This series adds support for the Auxiliary ADC IP found on the MediaTek
MT635(x) PMICs, including MT6357, 6358 and 6359, exposing various ADC
channels for accessory detection (usually, on 3.5mm jack), battery
voltage, PMIC temperature, PMIC-integrated voltage regulators, and
others, depending on the PMIC model.
AngeloGioacchino Del Regno (4):
dt-bindings: iio: adc: Add MediaTek MT6359 PMIC AUXADC
iio: adc: Add support for MediaTek MT6357/8/9 Auxiliary ADC
mfd: mt6397-core: Add support for AUXADCs on MT6357/58/59 PMICs
arm64: dts: mediatek: Add ADC node on MT6357, MT6358, MT6359 PMICs
.../iio/adc/mediatek,mt6359-auxadc.yaml | 43 ++
arch/arm64/boot/dts/mediatek/mt6357.dtsi | 5 +
arch/arm64/boot/dts/mediatek/mt6358.dtsi | 5 +
arch/arm64/boot/dts/mediatek/mt6359.dtsi | 5 +
drivers/iio/adc/Kconfig | 12 +
drivers/iio/adc/Makefile | 1 +
drivers/iio/adc/mt6359-auxadc.c | 598 ++++++++++++++++++
drivers/mfd/mt6397-core.c | 10 +
.../iio/adc/mediatek,mt6357-auxadc.h | 21 +
.../iio/adc/mediatek,mt6358-auxadc.h | 22 +
.../iio/adc/mediatek,mt6359-auxadc.h | 22 +
11 files changed, 744 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/adc/mediatek,mt6359-auxadc.yaml
create mode 100644 drivers/iio/adc/mt6359-auxadc.c
create mode 100644 include/dt-bindings/iio/adc/mediatek,mt6357-auxadc.h
create mode 100644 include/dt-bindings/iio/adc/mediatek,mt6358-auxadc.h
create mode 100644 include/dt-bindings/iio/adc/mediatek,mt6359-auxadc.h
--
2.45.1
Powered by blists - more mailing lists