Commit 04d28eb4 authored by Olivier Moysan's avatar Olivier Moysan Committed by Alexandre Torgue

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: default avatarOlivier Moysan <olivier.moysan@foss.st.com>
Signed-off-by: default avatarAlexandre Torgue <alexandre.torgue@foss.st.com>
parent 5364e377
...@@ -1093,6 +1093,8 @@ adc: adc@48003000 { ...@@ -1093,6 +1093,8 @@ adc: adc@48003000 {
adc1: adc@0 { adc1: adc@0 {
compatible = "st,stm32mp1-adc"; compatible = "st,stm32mp1-adc";
#io-channel-cells = <1>; #io-channel-cells = <1>;
#address-cells = <1>;
#size-cells = <0>;
reg = <0x0>; reg = <0x0>;
interrupt-parent = <&adc>; interrupt-parent = <&adc>;
interrupts = <0>; interrupts = <0>;
...@@ -1104,12 +1106,22 @@ adc1: adc@0 { ...@@ -1104,12 +1106,22 @@ adc1: adc@0 {
adc2: adc@100 { adc2: adc@100 {
compatible = "st,stm32mp1-adc"; compatible = "st,stm32mp1-adc";
#io-channel-cells = <1>; #io-channel-cells = <1>;
#address-cells = <1>;
#size-cells = <0>;
reg = <0x100>; reg = <0x100>;
interrupt-parent = <&adc>; interrupt-parent = <&adc>;
interrupts = <1>; interrupts = <1>;
dmas = <&dmamux1 10 0x400 0x01>; dmas = <&dmamux1 10 0x400 0x01>;
dma-names = "rx"; dma-names = "rx";
status = "disabled"; status = "disabled";
channel@13 {
reg = <13>;
label = "vrefint";
};
channel@14 {
reg = <14>;
label = "vddcore";
};
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment