[U-Boot] [PATCH v2 0/6] Add support for STM32 ADC

Fabrice Gasnier fabrice.gasnier at st.com
Tue Jul 24 14:31:27 UTC 2018


This series adds support for STM32 Analog to Digital Converter.
STM32 ADC support is originally based on Linux kernel v4.18-rcs:
- First two patches brings some changes in clk and adc uclass
- Next two patches add STM32 ADC dt-bindings and driver for STM32MP1 and
  STM32H7
- Last patches add config and DT on stm32mp15

Changes in v2:
- add test case for 'clk_valid()', e.g. in test/dm/clk.c and sandbox.
- Update TRUE/FALSE comments to lower case: true/false
- move device_get_supply_regulator() call to pre_probe() routine

Fabrice Gasnier (6):
  clk: add clk_valid()
  dm: adc: uclass: get reference regulator once
  dt-bindings: Document STM32 ADC DT bindings
  adc: Add driver for STM32 ADC
  configs: stm32mp15: enable ADC
  ARM: dts: stm32mp157: Add ADC DT node

 arch/arm/dts/stm32mp157.dtsi                  |  32 ++++
 arch/sandbox/include/asm/clk.h                |   8 +
 configs/stm32mp15_basic_defconfig             |   3 +-
 doc/device-tree-bindings/adc/st,stm32-adc.txt | 141 ++++++++++++++
 drivers/adc/Kconfig                           |  16 ++
 drivers/adc/Makefile                          |   1 +
 drivers/adc/adc-uclass.c                      |  35 ++--
 drivers/adc/stm32-adc-core.c                  | 209 +++++++++++++++++++++
 drivers/adc/stm32-adc-core.h                  |  51 +++++
 drivers/adc/stm32-adc.c                       | 257 ++++++++++++++++++++++++++
 drivers/clk/clk_sandbox_test.c                |  13 ++
 include/clk.h                                 |  10 +
 test/dm/clk.c                                 |   1 +
 13 files changed, 758 insertions(+), 19 deletions(-)
 create mode 100644 doc/device-tree-bindings/adc/st,stm32-adc.txt
 create mode 100644 drivers/adc/stm32-adc-core.c
 create mode 100644 drivers/adc/stm32-adc-core.h
 create mode 100644 drivers/adc/stm32-adc.c

-- 
1.9.1



More information about the U-Boot mailing list