public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/6] Add support for STM32 ADC
@ 2018-07-24 14:31 Fabrice Gasnier
  2018-07-24 14:31 ` [U-Boot] [PATCH v2 1/6] clk: add clk_valid() Fabrice Gasnier
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Fabrice Gasnier @ 2018-07-24 14:31 UTC (permalink / raw)
  To: u-boot


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

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2018-08-06  7:44 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-24 14:31 [U-Boot] [PATCH v2 0/6] Add support for STM32 ADC Fabrice Gasnier
2018-07-24 14:31 ` [U-Boot] [PATCH v2 1/6] clk: add clk_valid() Fabrice Gasnier
2018-07-25  2:45   ` Simon Glass
2018-08-04 23:39   ` [U-Boot] [U-Boot,v2,1/6] " Tom Rini
2018-07-24 14:31 ` [U-Boot] [PATCH v2 2/6] dm: adc: uclass: get reference regulator once Fabrice Gasnier
2018-07-25  2:45   ` Simon Glass
2018-08-04 23:39   ` [U-Boot] [U-Boot, v2, " Tom Rini
2018-07-24 14:31 ` [U-Boot] [PATCH v2 3/6] dt-bindings: Document STM32 ADC DT bindings Fabrice Gasnier
2018-08-04 23:40   ` [U-Boot] [U-Boot, v2, " Tom Rini
2018-07-24 14:31 ` [U-Boot] [PATCH v2 4/6] adc: Add driver for STM32 ADC Fabrice Gasnier
2018-08-04 23:40   ` [U-Boot] [U-Boot,v2,4/6] " Tom Rini
2018-07-24 14:31 ` [U-Boot] [PATCH v2 5/6] configs: stm32mp15: enable ADC Fabrice Gasnier
2018-08-04 23:40   ` [U-Boot] [U-Boot,v2,5/6] " Tom Rini
2018-07-24 14:31 ` [U-Boot] [PATCH v2 6/6] ARM: dts: stm32mp157: Add ADC DT node Fabrice Gasnier
2018-07-25  2:45   ` Simon Glass
2018-08-04 23:39   ` [U-Boot] [U-Boot,v2,6/6] " Tom Rini
2018-08-06  7:44     ` Patrice CHOTARD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox