dts: stm32: G4: Add adc0 and adc1 nodes

Add adc0 and adc1 nodes for STM32G4X SoC series.

Signed-off-by: Paolo Teti <paolo.teti@gmail.com>
This commit is contained in:
Paolo Teti 2020-04-10 18:29:02 +02:00 committed by Kumar Gala
parent 334a0bd278
commit 563990c9ce
2 changed files with 26 additions and 0 deletions

View file

@ -31,6 +31,29 @@
};
soc {
/*
* Both adc instances cannot be used in parallel right now.
*/
adc0: adc@50000000 {
compatible = "st,stm32-adc";
reg = <0x50000000 0x100>;
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00002000>;
interrupts = <18 0>;
status = "disabled";
label = "ADC_0";
#io-channel-cells = <1>;
};
adc1: adc@50000100 {
compatible = "st,stm32-adc";
reg = <0x50000100 0x100>;
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00002000>;
interrupts = <18 0>;
status = "disabled";
label = "ADC_1";
#io-channel-cells = <1>;
};
flash-controller@40022000 {
compatible = "st,stm32g4-flash-controller";
label = "FLASH_CTRL";

View file

@ -8,6 +8,9 @@
#define DT_NUM_IRQ_PRIO_BITS DT_ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
#define DT_ADC_0_NAME DT_LABEL(DT_INST(0, st_stm32_adc))
#define DT_ADC_1_NAME DT_LABEL(DT_INST(1, st_stm32_adc))
#define DT_FLASH_DEV_NAME DT_LABEL(DT_INST(0, st_stm32g4_flash_controller))
#define DT_RTC_0_NAME DT_LABEL(DT_INST(0, st_stm32_rtc))