1/*
2 * Copyright (c) 2024 STMicroelectronics
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <st/c0/stm32c031.dtsi>
8
9/ {
10	soc {
11		compatible = "st,stm32c071", "st,stm32c0", "simple-bus";
12
13		timers2: timers@40000000  {
14			compatible = "st,stm32-timers";
15			reg = <0x40000000 0x400>;
16			clocks = <&rcc STM32_CLOCK(APB1, 0U)>;
17			resets = <&rctl STM32_RESET(APB1L, 0U)>;
18			interrupts = <15 0>;
19			interrupt-names = "global";
20			st,prescaler = <0>;
21			status = "disabled";
22
23			pwm {
24				compatible = "st,stm32-pwm";
25				status = "disabled";
26				#pwm-cells = <3>;
27			};
28
29			counter {
30				compatible = "st,stm32-counter";
31				status = "disabled";
32			};
33		};
34
35		i2c2: i2c@40005800 {
36			compatible = "st,stm32-i2c-v2";
37			clock-frequency = <I2C_BITRATE_STANDARD>;
38			#address-cells = <1>;
39			#size-cells = <0>;
40			reg = <0x40005800 0x400>;
41			clocks = <&rcc STM32_CLOCK(APB1, 22U)>;
42			interrupts = <24 0>;
43			interrupt-names = "global";
44			status = "disabled";
45		};
46
47		spi2: spi@40003800 {
48			compatible = "st,stm32-spi-fifo", "st,stm32-spi";
49			#address-cells = <1>;
50			#size-cells = <0>;
51			reg = <0x40003800 0x400>;
52			clocks = <&rcc STM32_CLOCK(APB1, 14U)>;
53			interrupts = <26 0>;
54			interrupt-names = "global";
55			status = "disabled";
56		};
57
58		dma1: dma@40020000 {
59			interrupts = <9 0 10 0 10 0 11 0 11 0>;
60			dma-requests = <5>;
61		};
62
63		dmamux1: dmamux@40020800 {
64			dma-channels = <5>;
65		};
66	};
67};
68