OSDN Git Service

ARM: dts: stm32: add adc internal channels to stm32mp15
authorOlivier Moysan <olivier.moysan@foss.st.com>
Tue, 30 May 2023 12:45:29 +0000 (14:45 +0200)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Fri, 2 Jun 2023 10:24:40 +0000 (12:24 +0200)
commit04d28eb48ff30c059069e27689c4638c8a17134e
tree475cb6f7908b84f0aa6c64117f97b00f5b2abe3a
parent5364e37799c83d405175b2e1e1065c7c247949b3
ARM: dts: stm32: add adc internal channels to stm32mp15

Add STM32 ADC2 internal channels VREFINT and VDDCORE to STM32MP15x SoCs.
VBAT internal channel is not defined by default in SoC DT, and
has be defined in board DT when needed, instead. This avoids unwanted
current consumption on battery, when ADC conversions are performed
on any other channels.

The internal channels are defined in STM32MP15 SoC DT according to the
generic IIO channel bindings. The STM32 driver does not support a mixed
use of legacy and generic channels. When generic channels are defined,
legacy channels are ignored. This involves that the board device trees
using legacy bindings for ADC2, have to be reworked.

Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/stm32mp151.dtsi