Skip to content

Commit 9783a70

Browse files
str4t0mcfriedt
authored andcommitted
dts: arm: st: stm32h5: fix line features sai, can, eth
Fix peripheral availability per h5 line. Some peripherals are not available on the entry level lines of the stm32h5 series: - fdcan2 only on SoCs >= H523, but not on h562 - sai only on >= H562 - ethernet only on >= H563 Signed-off-by: Thomas Stranger <[email protected]>
1 parent d20e15f commit 9783a70

File tree

4 files changed

+71
-58
lines changed

4 files changed

+71
-58
lines changed

dts/arm/st/h5/stm32h5.dtsi

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -544,28 +544,6 @@
544544
status = "disabled";
545545
};
546546

547-
ethernet@40028000 {
548-
reg = <0x40028000 0x8000>;
549-
compatible = "st,stm32-ethernet-controller";
550-
clock-names = "stm-eth";
551-
clocks = <&rcc STM32_CLOCK(AHB1, 19)>;
552-
553-
mac: ethernet {
554-
compatible = "st,stm32h7-ethernet", "st,stm32-ethernet";
555-
interrupts = <106 0>;
556-
clock-names = "mac-clk-tx", "mac-clk-rx";
557-
clocks = <&rcc STM32_CLOCK(AHB1, 20)>,
558-
<&rcc STM32_CLOCK(AHB1, 21)>;
559-
status = "disabled";
560-
};
561-
562-
mdio: mdio {
563-
compatible = "st,stm32-mdio";
564-
#address-cells = <1>;
565-
#size-cells = <0>;
566-
status = "disabled";
567-
};
568-
};
569547

570548
gpdma1: dma@40020000 {
571549
compatible = "st,stm32u5-dma";
@@ -639,30 +617,6 @@
639617
status = "disabled";
640618
};
641619

642-
sai1_a: sai1@40015404 {
643-
compatible = "st,stm32-sai";
644-
#address-cells = <1>;
645-
#size-cells = <0>;
646-
reg = <0x40015404 0x20>;
647-
clocks = <&rcc STM32_CLOCK(APB2, 21)>,
648-
<&rcc STM32_SRC_PLL2_P SAI1_SEL(0)>;
649-
dmas = <&gpdma1 1 53 (STM32_DMA_MODE_NORMAL | STM32_DMA_PRIORITY_HIGH |
650-
STM32_DMA_16BITS)>;
651-
status = "disabled";
652-
};
653-
654-
sai1_b: sai1@40015424 {
655-
compatible = "st,stm32-sai";
656-
#address-cells = <1>;
657-
#size-cells = <0>;
658-
reg = <0x40015424 0x20>;
659-
clocks = <&rcc STM32_CLOCK(APB2, 21)>,
660-
<&rcc STM32_SRC_PLL2_P SAI1_SEL(0)>;
661-
dmas = <&gpdma1 0 54 (STM32_DMA_MODE_NORMAL | STM32_DMA_PRIORITY_HIGH |
662-
STM32_DMA_16BITS)>;
663-
status = "disabled";
664-
};
665-
666620
usb: usb@40016000 {
667621
compatible = "st,stm32-usb";
668622
reg = <0x40016000 0x400>;

dts/arm/st/h5/stm32h523.dtsi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,17 @@
2424
clocks = <&rcc STM32_CLOCK(AHB4, 16)>;
2525
status = "disabled";
2626
};
27+
28+
fdcan2: can@4000a800 {
29+
compatible = "st,stm32-fdcan";
30+
reg = <0x4000a800 0x400>, <0x4000ac00 0x6a0>;
31+
reg-names = "m_can", "message_ram";
32+
interrupts = <109 0>, <110 0>;
33+
interrupt-names = "int0", "int1";
34+
/* common clock FDCAN 1 & 2 */
35+
clocks = <&rcc STM32_CLOCK(APB1_2, 9)>;
36+
bosch,mram-cfg = <0x350 28 8 3 3 0 3 3>;
37+
status = "disabled";
38+
};
2739
};
2840
};

dts/arm/st/h5/stm32h562.dtsi

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,30 @@
123123
status = "disabled";
124124
};
125125

126+
sai1_a: sai1@40015404 {
127+
compatible = "st,stm32-sai";
128+
#address-cells = <1>;
129+
#size-cells = <0>;
130+
reg = <0x40015404 0x20>;
131+
clocks = <&rcc STM32_CLOCK(APB2, 21)>,
132+
<&rcc STM32_SRC_PLL2_P SAI1_SEL(0)>;
133+
dmas = <&gpdma1 1 53 (STM32_DMA_MODE_NORMAL | STM32_DMA_PRIORITY_HIGH |
134+
STM32_DMA_16BITS)>;
135+
status = "disabled";
136+
};
137+
138+
sai1_b: sai1@40015424 {
139+
compatible = "st,stm32-sai";
140+
#address-cells = <1>;
141+
#size-cells = <0>;
142+
reg = <0x40015424 0x20>;
143+
clocks = <&rcc STM32_CLOCK(APB2, 21)>,
144+
<&rcc STM32_SRC_PLL2_P SAI1_SEL(0)>;
145+
dmas = <&gpdma1 0 54 (STM32_DMA_MODE_NORMAL | STM32_DMA_PRIORITY_HIGH |
146+
STM32_DMA_16BITS)>;
147+
status = "disabled";
148+
};
149+
126150
uart4: serial@40004c00 {
127151
compatible = "st,stm32-uart";
128152
reg = <0x40004c00 0x400>;
@@ -489,18 +513,6 @@
489513
status = "disabled";
490514
};
491515

492-
fdcan2: can@4000a800 {
493-
compatible = "st,stm32-fdcan";
494-
reg = <0x4000a800 0x400>, <0x4000ac00 0x6a0>;
495-
reg-names = "m_can", "message_ram";
496-
interrupts = <109 0>, <110 0>;
497-
interrupt-names = "int0", "int1";
498-
/* common clock FDCAN 1 & 2 */
499-
clocks = <&rcc STM32_CLOCK(APB1_2, 9)>;
500-
bosch,mram-cfg = <0x350 28 8 3 3 0 3 3>;
501-
status = "disabled";
502-
};
503-
504516
sdmmc1: sdmmc@46008000 {
505517
compatible = "st,stm32-sdmmc";
506518
reg = <0x46008000 0x400>;

dts/arm/st/h5/stm32h563.dtsi

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,40 @@
1919
interrupts = <102 0>;
2020
status = "disabled";
2121
};
22+
23+
ethernet@40028000 {
24+
reg = <0x40028000 0x8000>;
25+
compatible = "st,stm32-ethernet-controller";
26+
clock-names = "stm-eth";
27+
clocks = <&rcc STM32_CLOCK(AHB1, 19)>;
28+
29+
mac: ethernet {
30+
compatible = "st,stm32h7-ethernet", "st,stm32-ethernet";
31+
interrupts = <106 0>;
32+
clock-names = "mac-clk-tx", "mac-clk-rx";
33+
clocks = <&rcc STM32_CLOCK(AHB1, 20)>,
34+
<&rcc STM32_CLOCK(AHB1, 21)>;
35+
status = "disabled";
36+
};
37+
38+
mdio: mdio {
39+
compatible = "st,stm32-mdio";
40+
#address-cells = <1>;
41+
#size-cells = <0>;
42+
status = "disabled";
43+
};
44+
};
45+
46+
fdcan2: can@4000a800 {
47+
compatible = "st,stm32-fdcan";
48+
reg = <0x4000a800 0x400>, <0x4000ac00 0x6a0>;
49+
reg-names = "m_can", "message_ram";
50+
interrupts = <109 0>, <110 0>;
51+
interrupt-names = "int0", "int1";
52+
/* common clock FDCAN 1 & 2 */
53+
clocks = <&rcc STM32_CLOCK(APB1_2, 9)>;
54+
bosch,mram-cfg = <0x350 28 8 3 3 0 3 3>;
55+
status = "disabled";
56+
};
2257
};
2358
};

0 commit comments

Comments
 (0)