Skip to content

Commit 34b06f8

Browse files
karaanilkartben
authored andcommitted
dts: arm: adi: Add timer nodes to max32657
Add nodes timer0 to timer5. Add pwm and counter subnodes. Signed-off-by: Anıl Kara <anil.kara@analog.com>
1 parent 03f919f commit 34b06f8

File tree

1 file changed

+114
-0
lines changed

1 file changed

+114
-0
lines changed

dts/arm/adi/max32/max32657_common.dtsi

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,120 @@
154154
clock-source = <ADI_MAX32_PRPH_CLK_SRC_PCLK>;
155155
status = "disabled";
156156
};
157+
158+
timer0: timer@10000 {
159+
compatible = "adi,max32-timer";
160+
reg = <0x10000 0x1000>;
161+
interrupts = <4 0>;
162+
status = "disabled";
163+
clocks = <&gcr ADI_MAX32_CLOCK_BUS0 15>;
164+
clock-source = <ADI_MAX32_PRPH_CLK_SRC_PCLK>;
165+
prescaler = <1>;
166+
pwm {
167+
compatible = "adi,max32-pwm";
168+
status = "disabled";
169+
#pwm-cells = <3>;
170+
};
171+
counter {
172+
compatible = "adi,max32-counter";
173+
status = "disabled";
174+
};
175+
};
176+
177+
timer1: timer@11000 {
178+
compatible = "adi,max32-timer";
179+
reg = <0x11000 0x1000>;
180+
interrupts = <5 0>;
181+
status = "disabled";
182+
clocks = <&gcr ADI_MAX32_CLOCK_BUS0 16>;
183+
clock-source = <ADI_MAX32_PRPH_CLK_SRC_PCLK>;
184+
prescaler = <1>;
185+
pwm {
186+
compatible = "adi,max32-pwm";
187+
status = "disabled";
188+
#pwm-cells = <3>;
189+
};
190+
counter {
191+
compatible = "adi,max32-counter";
192+
status = "disabled";
193+
};
194+
};
195+
196+
timer2: timer@12000 {
197+
compatible = "adi,max32-timer";
198+
reg = <0x12000 0x1000>;
199+
interrupts = <6 0>;
200+
status = "disabled";
201+
clocks = <&gcr ADI_MAX32_CLOCK_BUS0 17>;
202+
clock-source = <ADI_MAX32_PRPH_CLK_SRC_PCLK>;
203+
prescaler = <1>;
204+
pwm {
205+
compatible = "adi,max32-pwm";
206+
status = "disabled";
207+
#pwm-cells = <3>;
208+
};
209+
counter {
210+
compatible = "adi,max32-counter";
211+
status = "disabled";
212+
};
213+
};
214+
215+
timer3: timer@13000 {
216+
compatible = "adi,max32-timer";
217+
reg = <0x13000 0x1000>;
218+
interrupts = <7 0>;
219+
status = "disabled";
220+
clocks = <&gcr ADI_MAX32_CLOCK_BUS0 18>;
221+
clock-source = <ADI_MAX32_PRPH_CLK_SRC_PCLK>;
222+
prescaler = <1>;
223+
pwm {
224+
compatible = "adi,max32-pwm";
225+
status = "disabled";
226+
#pwm-cells = <3>;
227+
};
228+
counter {
229+
compatible = "adi,max32-counter";
230+
status = "disabled";
231+
};
232+
};
233+
234+
timer4: timer@14000 {
235+
compatible = "adi,max32-timer";
236+
reg = <0x14000 0x1000>;
237+
interrupts = <8 0>;
238+
status = "disabled";
239+
clocks = <&gcr ADI_MAX32_CLOCK_BUS0 19>;
240+
clock-source = <ADI_MAX32_PRPH_CLK_SRC_PCLK>;
241+
prescaler = <1>;
242+
pwm {
243+
compatible = "adi,max32-pwm";
244+
status = "disabled";
245+
#pwm-cells = <3>;
246+
};
247+
counter {
248+
compatible = "adi,max32-counter";
249+
status = "disabled";
250+
};
251+
};
252+
253+
timer5: timer@15000 {
254+
compatible = "adi,max32-timer";
255+
reg = <0x15000 0x1000>;
256+
interrupts = <9 0>;
257+
status = "disabled";
258+
clocks = <&gcr ADI_MAX32_CLOCK_BUS0 20>;
259+
clock-source = <ADI_MAX32_PRPH_CLK_SRC_PCLK>;
260+
prescaler = <1>;
261+
pwm {
262+
compatible = "adi,max32-pwm";
263+
status = "disabled";
264+
#pwm-cells = <3>;
265+
};
266+
counter {
267+
compatible = "adi,max32-counter";
268+
status = "disabled";
269+
};
270+
};
157271
};
158272

159273
&nvic {

0 commit comments

Comments
 (0)