Skip to content

Commit f45eb0f

Browse files
gudnimggalak
authored andcommitted
dts: arm: st: l4: Move timers7 node
TIM7 peripheral was defined for all STM32L4 chips in the device tree when not every chip supports it. This commit moves the node so that only chips which support the peripheral have the node defined. Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
1 parent be16208 commit f45eb0f

File tree

4 files changed

+54
-18
lines changed

4 files changed

+54
-18
lines changed

‎dts/arm/st/l4/stm32l4.dtsi‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -254,24 +254,6 @@
254254
};
255255
};
256256

257-
timers7: timers@40001400 {
258-
compatible = "st,stm32-timers";
259-
reg = <0x40001400 0x400>;
260-
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000020>;
261-
interrupts = <55 0>;
262-
interrupt-names = "global";
263-
status = "disabled";
264-
label = "TIMERS_7";
265-
266-
pwm {
267-
compatible = "st,stm32-pwm";
268-
status = "disabled";
269-
st,prescaler = <10000>;
270-
label = "PWM_7";
271-
#pwm-cells = <3>;
272-
};
273-
};
274-
275257
timers15: timers@40014000 {
276258
compatible = "st,stm32-timers";
277259
reg = <0x40014000 0x400>;

‎dts/arm/st/l4/stm32l432.dtsi‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,24 @@
1919
label = "SPI_3";
2020
};
2121

22+
timers7: timers@40001400 {
23+
compatible = "st,stm32-timers";
24+
reg = <0x40001400 0x400>;
25+
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000020>;
26+
interrupts = <55 0>;
27+
interrupt-names = "global";
28+
status = "disabled";
29+
label = "TIMERS_7";
30+
31+
pwm {
32+
compatible = "st,stm32-pwm";
33+
status = "disabled";
34+
st,prescaler = <10000>;
35+
label = "PWM_7";
36+
#pwm-cells = <3>;
37+
};
38+
};
39+
2240
can1: can@40006400 {
2341
compatible = "st,stm32-can";
2442
#address-cells = <1>;

‎dts/arm/st/l4/stm32l471.dtsi‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,24 @@
163163
};
164164
};
165165

166+
timers7: timers@40001400 {
167+
compatible = "st,stm32-timers";
168+
reg = <0x40001400 0x400>;
169+
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000020>;
170+
interrupts = <55 0>;
171+
interrupt-names = "global";
172+
status = "disabled";
173+
label = "TIMERS_7";
174+
175+
pwm {
176+
compatible = "st,stm32-pwm";
177+
status = "disabled";
178+
st,prescaler = <10000>;
179+
label = "PWM_7";
180+
#pwm-cells = <3>;
181+
};
182+
};
183+
166184
timers8: timers@40013400 {
167185
compatible = "st,stm32-timers";
168186
reg = <0x40013400 0x400>;

‎dts/arm/st/l4/stm32l4r5.dtsi‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,24 @@
186186
};
187187
};
188188

189+
timers7: timers@40001400 {
190+
compatible = "st,stm32-timers";
191+
reg = <0x40001400 0x400>;
192+
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000020>;
193+
interrupts = <55 0>;
194+
interrupt-names = "global";
195+
status = "disabled";
196+
label = "TIMERS_7";
197+
198+
pwm {
199+
compatible = "st,stm32-pwm";
200+
status = "disabled";
201+
st,prescaler = <10000>;
202+
label = "PWM_7";
203+
#pwm-cells = <3>;
204+
};
205+
};
206+
189207
timers8: timers@40013400 {
190208
compatible = "st,stm32-timers";
191209
reg = <0x40013400 0x400>;

0 commit comments

Comments
 (0)