[v2,0/9] ARM: dts: stm32: add adc internal channels on stm32mp15

Message ID 20230530124538.621760-1-olivier.moysan@foss.st.com
Headers
Series ARM: dts: stm32: add adc internal channels on stm32mp15 |

Message

Olivier MOYSAN May 30, 2023, 12:45 p.m. UTC
  Add STM32 ADC2 internal channels VREFINT and VDDCORE to STM32MP15x SoCs.

Add support of vrefint channel by adding access to vrefint calibration
data in OTP.

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

Adopt generic iio bindings on STM32 boards implementing the ADC.

Changes in v2:
- Add patch from https://lore.kernel.org/linux-arm-kernel/20230518020547.487670-1-marex@denx.de/T/
- Change node name from vrefin_cal to vrefin-cal

Marek Vasut (1):
  ARM: dts: stm32: Update to generic ADC channel binding on DHSOM
    systems

Olivier Moysan (8):
  ARM: dts: stm32: add adc internal channels to stm32mp15
  ARM: dts: stm32: add vrefint calibration on stm32mp15
  ARM: dts: stm32: add vrefint support to adc2 on stm32mp15
  ARM: dts: stm32: enable adc on stm32mp15xx-dkx boards
  ARM: dts: stm32: adopt generic iio bindings for adc channels on
    stm32mp157c-ed1
  ARM: dts: stm32: adopt generic iio bindings for adc channels on
    emstamp-argon
  ARM: dts: stm32: adopt generic iio bindings for adc channels on
    dhcor-drc
  ARM: dts: stm32: adopt generic iio bindings for adc channels on
    dhcor-testbench

 arch/arm/boot/dts/stm32mp151.dtsi             | 17 +++++++++
 arch/arm/boot/dts/stm32mp157c-ed1.dts         | 16 ++++++--
 .../boot/dts/stm32mp157c-emstamp-argon.dtsi   |  6 ++-
 arch/arm/boot/dts/stm32mp15xx-dhcom-som.dtsi  | 18 +++++----
 .../boot/dts/stm32mp15xx-dhcor-avenger96.dtsi | 38 +++++++++++++++----
 .../dts/stm32mp15xx-dhcor-drc-compact.dtsi    | 28 ++++++++++++--
 .../boot/dts/stm32mp15xx-dhcor-testbench.dtsi | 28 ++++++++++++--
 arch/arm/boot/dts/stm32mp15xx-dkx.dtsi        | 29 +++++++++-----
 8 files changed, 142 insertions(+), 38 deletions(-)
  

Comments

Marek Vasut May 30, 2023, 1:39 p.m. UTC | #1
On 5/30/23 14:45, Olivier Moysan wrote:
> Add STM32 ADC2 internal channels VREFINT and VDDCORE to STM32MP15x SoCs.
> 
> Add support of vrefint channel by adding access to vrefint calibration
> data in OTP.
> 
> The internal channels are defined in STM32MP15 SoC DT according to
> generic channel bindings. The STM32 driver does not support a mixed use
> of legacy and generic channels. When generic channels are defined,
> legacy channel are ignored. This involves that the board device trees
> using legacy bindings have to be changed to generic bindings.
> 
> Adopt generic iio bindings on STM32 boards implementing the ADC.
> 
> Changes in v2:
> - Add patch from https://lore.kernel.org/linux-arm-kernel/20230518020547.487670-1-marex@denx.de/T/

Thank you
  
Alexandre TORGUE June 2, 2023, 10:31 a.m. UTC | #2
Hi Olivier

On 5/30/23 14:45, Olivier Moysan wrote:
> Add STM32 ADC2 internal channels VREFINT and VDDCORE to STM32MP15x SoCs.
> 
> Add support of vrefint channel by adding access to vrefint calibration
> data in OTP.
> 
> The internal channels are defined in STM32MP15 SoC DT according to
> generic channel bindings. The STM32 driver does not support a mixed use
> of legacy and generic channels. When generic channels are defined,
> legacy channel are ignored. This involves that the board device trees
> using legacy bindings have to be changed to generic bindings.
> 
> Adopt generic iio bindings on STM32 boards implementing the ADC.
> 
> Changes in v2:
> - Add patch from https://lore.kernel.org/linux-arm-kernel/20230518020547.487670-1-marex@denx.de/T/
> - Change node name from vrefin_cal to vrefin-cal
> 
> Marek Vasut (1):
>    ARM: dts: stm32: Update to generic ADC channel binding on DHSOM
>      systems
> 
> Olivier Moysan (8):
>    ARM: dts: stm32: add adc internal channels to stm32mp15
>    ARM: dts: stm32: add vrefint calibration on stm32mp15
>    ARM: dts: stm32: add vrefint support to adc2 on stm32mp15
>    ARM: dts: stm32: enable adc on stm32mp15xx-dkx boards
>    ARM: dts: stm32: adopt generic iio bindings for adc channels on
>      stm32mp157c-ed1
>    ARM: dts: stm32: adopt generic iio bindings for adc channels on
>      emstamp-argon
>    ARM: dts: stm32: adopt generic iio bindings for adc channels on
>      dhcor-drc
>    ARM: dts: stm32: adopt generic iio bindings for adc channels on
>      dhcor-testbench
> 
>   arch/arm/boot/dts/stm32mp151.dtsi             | 17 +++++++++
>   arch/arm/boot/dts/stm32mp157c-ed1.dts         | 16 ++++++--
>   .../boot/dts/stm32mp157c-emstamp-argon.dtsi   |  6 ++-
>   arch/arm/boot/dts/stm32mp15xx-dhcom-som.dtsi  | 18 +++++----
>   .../boot/dts/stm32mp15xx-dhcor-avenger96.dtsi | 38 +++++++++++++++----
>   .../dts/stm32mp15xx-dhcor-drc-compact.dtsi    | 28 ++++++++++++--
>   .../boot/dts/stm32mp15xx-dhcor-testbench.dtsi | 28 ++++++++++++--
>   arch/arm/boot/dts/stm32mp15xx-dkx.dtsi        | 29 +++++++++-----
>   8 files changed, 142 insertions(+), 38 deletions(-)
> 

Series applied on stm32-next.

Regards
Alex