ARM: dts: stm32f429 sync with Linux kernel 6.5
Subsystems (2)
cover ARM: dts: stm32f429 sync with Linux kernel 6.5
This series contains my patches on the device tree for stm32f429 platform that have already been merged into the mainline of Linux. Since they applied perfectly, I preferred not to merge them into a single patch, which would have been less readable.
Dario Binacchi (3):
ARM: dts: stm32: add CAN support on stm32f429
ARM: dts: stm32: add pin map for CAN controller on stm32f4
ARM: dts: stm32f429: put can2 in secondary mode
arch/arm/dts/stm32f4-pinctrl.dtsi | 30 ++++++++++++++++++++++++++++++ arch/arm/dts/stm32f429.dtsi | 30 ++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+)
Signature · 1 line
2.34.1
PATCH 1/3 ARM: dts: stm32: add CAN support on stm32f429
commit 7355ad1950f41e755e6dc451834be3b94f82acd4 Linux upstream.
Add support for bxcan (Basic eXtended CAN controller) to STM32F429. The chip contains two CAN peripherals, CAN1 the primary and CAN2 the secondary, that share some of the required logic like clock and filters. This means that the secondary CAN can't be used without the primary CAN.
---
arch/arm/dts/stm32f429.dtsi | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+)
arch/arm/dts/stm32f429.dtsi +29 -0
@@ -321,6 +321,35 @@ status = "disabled"; }; + can1: can@40006400 { + compatible = "st,stm32f4-bxcan"; + reg = <0x40006400 0x200>; + interrupts = <19>, <20>, <21>, <22>; + interrupt-names = "tx", "rx0", "rx1", "sce"; + resets = <&rcc STM32F4_APB1_RESET(CAN1)>; + clocks = <&rcc 0 STM32F4_APB1_CLOCK(CAN1)>; + st,can-primary; + st,gcan = <&gcan>; + status = "disabled"; + }; + + gcan: gcan@40006600 { + compatible = "st,stm32f4-gcan", "syscon"; + reg = <0x40006600 0x200>; + clocks = <&rcc 0 STM32F4_APB1_CLOCK(CAN1)>; + }; + + can2: can@40006800 { + compatible = "st,stm32f4-bxcan"; + reg = <0x40006800 0x200>; + interrupts = <63>, <64>, <65>, <66>; + interrupt-names = "tx", "rx0", "rx1", "sce"; + resets = <&rcc STM32F4_APB1_RESET(CAN2)>; + clocks = <&rcc 0 STM32F4_APB1_CLOCK(CAN2)>; + st,gcan = <&gcan>; + status = "disabled"; + }; + dac: dac@40007400 { compatible = "st,stm32f4-dac-core"; reg = <0x40007400 0x400>;
Signature · 1 line
2.34.1
Re: [PATCH 1/3] ARM: dts: stm32: add CAN support on stm32f429
Quoted 45 lines · Dario Binacchi
commit
7355ad1950f41e755e6dc451834be3b94f82acd4Linux upstream.Add support for bxcan (Basic eXtended CAN controller) to STM32F429. The chip contains two CAN peripherals, CAN1 the primary and CAN2 the secondary, that share some of the required logic like clock and filters. This means that the secondary CAN can't be used without the primary CAN.
Signed-off-by Dario Binacchi <[email protected]>Signed-off-by Marc Kleine-Budde <[email protected]>---
arch/arm/dts/stm32f429.dtsi | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+)arch/arm/dts/stm32f429.dtsi +22
-0@@ -321,6 +321,35 @@ status = "disabled"; }; + can1: can@40006400 { + compatible = "st,stm32f4-bxcan"; + reg = <0x40006400 0x200>; + interrupts = <19>, <20>, <21>, <22>; + interrupt-names = "tx", "rx0", "rx1", "sce"; + resets = <&rcc STM32F4_APB1_RESET(CAN1)>; + clocks = <&rcc 0 STM32F4_APB1_CLOCK(CAN1)>; + st,can-primary; + st,gcan = <&gcan>; + status = "disabled"; + }; + + gcan: gcan@40006600 { + compatible = "st,stm32f4-gcan", "syscon"; + reg = <0x40006600 0x200>; + clocks = <&rcc 0 STM32F4_APB1_CLOCK(CAN1)>; + }; + + can2: can@40006800 { + compatible = "st,stm32f4-bxcan"; + reg = <0x40006800 0x200>; + interrupts = <63>, <64>, <65>, <66>;
arch/arm/dts/stm32f429.dtsi line 355
Quoted 10 lines
arch/arm/dts/stm32f429.dtsi +7
-0+ interrupt-names = "tx", "rx0", "rx1", "sce"; + resets = <&rcc STM32F4_APB1_RESET(CAN2)>; + clocks = <&rcc 0 STM32F4_APB1_CLOCK(CAN2)>; + st,gcan = <&gcan>; + status = "disabled"; + }; + dac: dac@40007400 { compatible = "st,stm32f4-dac-core"; reg = <0x40007400 0x400>;
Thanks
Patrice
Re: [PATCH 1/3] ARM: dts: stm32: add CAN support on stm32f429
In reply to Dario BinacchiQuoted 45 lines · Dario Binacchi
commit
7355ad1950f41e755e6dc451834be3b94f82acd4Linux upstream.Add support for bxcan (Basic eXtended CAN controller) to STM32F429. The chip contains two CAN peripherals, CAN1 the primary and CAN2 the secondary, that share some of the required logic like clock and filters. This means that the secondary CAN can't be used without the primary CAN.
Signed-off-by Dario Binacchi <[email protected]>Signed-off-by Marc Kleine-Budde <[email protected]>---
arch/arm/dts/stm32f429.dtsi | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+)arch/arm/dts/stm32f429.dtsi +22
-0@@ -321,6 +321,35 @@ status = "disabled"; }; + can1: can@40006400 { + compatible = "st,stm32f4-bxcan"; + reg = <0x40006400 0x200>; + interrupts = <19>, <20>, <21>, <22>; + interrupt-names = "tx", "rx0", "rx1", "sce"; + resets = <&rcc STM32F4_APB1_RESET(CAN1)>; + clocks = <&rcc 0 STM32F4_APB1_CLOCK(CAN1)>; + st,can-primary; + st,gcan = <&gcan>; + status = "disabled"; + }; + + gcan: gcan@40006600 { + compatible = "st,stm32f4-gcan", "syscon"; + reg = <0x40006600 0x200>; + clocks = <&rcc 0 STM32F4_APB1_CLOCK(CAN1)>; + }; + + can2: can@40006800 { + compatible = "st,stm32f4-bxcan"; + reg = <0x40006800 0x200>; + interrupts = <63>, <64>, <65>, <66>;
arch/arm/dts/stm32f429.dtsi line 355
Quoted 10 lines
arch/arm/dts/stm32f429.dtsi +7
-0+ interrupt-names = "tx", "rx0", "rx1", "sce"; + resets = <&rcc STM32F4_APB1_RESET(CAN2)>; + clocks = <&rcc 0 STM32F4_APB1_CLOCK(CAN2)>; + st,gcan = <&gcan>; + status = "disabled"; + }; + dac: dac@40007400 { compatible = "st,stm32f4-dac-core"; reg = <0x40007400 0x400>;
Apply on stm32/next
Thanks
Patrice
PATCH 2/3 ARM: dts: stm32: add pin map for CAN controller on stm32f4
In reply to Dario Binacchicommit 559a6e75b4bcf0fc9e41d34865e72cf742f67d8e Linux upstream.
Add pin configurations for using CAN controller on stm32f469-disco board. They are located on the Arduino compatible connector CN5 (CAN1) and on the extension connector CN12 (CAN2).
---
arch/arm/dts/stm32f4-pinctrl.dtsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+)
arch/arm/dts/stm32f4-pinctrl.dtsi +30 -0
@@ -412,6 +412,36 @@ slew-rate = <2>; }; }; + + can1_pins_a: can1-0 { + pins1 { + pinmux = <STM32_PINMUX('B', 9, AF9)>; /* CAN1_TX */ + }; + pins2 { + pinmux = <STM32_PINMUX('B', 8, AF9)>; /* CAN1_RX */ + bias-pull-up; + }; + }; + + can2_pins_a: can2-0 { + pins1 { + pinmux = <STM32_PINMUX('B', 13, AF9)>; /* CAN2_TX */ + }; + pins2 { + pinmux = <STM32_PINMUX('B', 5, AF9)>; /* CAN2_RX */ + bias-pull-up; + }; + }; + + can2_pins_b: can2-1 { + pins1 { + pinmux = <STM32_PINMUX('B', 13, AF9)>; /* CAN2_TX */ + }; + pins2 { + pinmux = <STM32_PINMUX('B', 12, AF9)>; /* CAN2_RX */ + bias-pull-up; + }; + }; }; }; };
Signature · 1 line
2.34.1
Re: [PATCH 2/3] ARM: dts: stm32: add pin map for CAN controller on stm32f4
Quoted 45 lines · Dario Binacchi
commit
559a6e75b4bcf0fc9e41d34865e72cf742f67d8eLinux upstream.Add pin configurations for using CAN controller on stm32f469-disco board. They are located on the Arduino compatible connector CN5 (CAN1) and on the extension connector CN12 (CAN2).
Signed-off-by Dario Binacchi <[email protected]>Signed-off-by Marc Kleine-Budde <[email protected]>---
arch/arm/dts/stm32f4-pinctrl.dtsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+)arch/arm/dts/stm32f4-pinctrl.dtsi +23
-0@@ -412,6 +412,36 @@ slew-rate = <2>; }; }; + + can1_pins_a: can1-0 { + pins1 { + pinmux = <STM32_PINMUX('B', 9, AF9)>; /* CAN1_TX */ + }; + pins2 { + pinmux = <STM32_PINMUX('B', 8, AF9)>; /* CAN1_RX */ + bias-pull-up; + }; + }; + + can2_pins_a: can2-0 { + pins1 { + pinmux = <STM32_PINMUX('B', 13, AF9)>; /* CAN2_TX */ + }; + pins2 { + pinmux = <STM32_PINMUX('B', 5, AF9)>; /* CAN2_RX */ + bias-pull-up; + }; + }; + + can2_pins_b: can2-1 { + pins1 {
arch/arm/dts/stm32f4-pinctrl.dtsi line 447
Quoted 10 lines
arch/arm/dts/stm32f4-pinctrl.dtsi +7
-0+ pinmux = <STM32_PINMUX('B', 13, AF9)>; /* CAN2_TX */ + }; + pins2 { + pinmux = <STM32_PINMUX('B', 12, AF9)>; /* CAN2_RX */ + bias-pull-up; + }; + }; }; }; };
Thanks
Patrice
Re: [PATCH 2/3] ARM: dts: stm32: add pin map for CAN controller on stm32f4
In reply to Dario BinacchiQuoted 45 lines · Dario Binacchi
commit
559a6e75b4bcf0fc9e41d34865e72cf742f67d8eLinux upstream.Add pin configurations for using CAN controller on stm32f469-disco board. They are located on the Arduino compatible connector CN5 (CAN1) and on the extension connector CN12 (CAN2).
Signed-off-by Dario Binacchi <[email protected]>Signed-off-by Marc Kleine-Budde <[email protected]>---
arch/arm/dts/stm32f4-pinctrl.dtsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+)arch/arm/dts/stm32f4-pinctrl.dtsi +23
-0@@ -412,6 +412,36 @@ slew-rate = <2>; }; }; + + can1_pins_a: can1-0 { + pins1 { + pinmux = <STM32_PINMUX('B', 9, AF9)>; /* CAN1_TX */ + }; + pins2 { + pinmux = <STM32_PINMUX('B', 8, AF9)>; /* CAN1_RX */ + bias-pull-up; + }; + }; + + can2_pins_a: can2-0 { + pins1 { + pinmux = <STM32_PINMUX('B', 13, AF9)>; /* CAN2_TX */ + }; + pins2 { + pinmux = <STM32_PINMUX('B', 5, AF9)>; /* CAN2_RX */ + bias-pull-up; + }; + }; + + can2_pins_b: can2-1 { + pins1 {
arch/arm/dts/stm32f4-pinctrl.dtsi line 447
Quoted 10 lines
arch/arm/dts/stm32f4-pinctrl.dtsi +7
-0+ pinmux = <STM32_PINMUX('B', 13, AF9)>; /* CAN2_TX */ + }; + pins2 { + pinmux = <STM32_PINMUX('B', 12, AF9)>; /* CAN2_RX */ + bias-pull-up; + }; + }; }; }; };
Apply on stm32/next
Thanks
Patrice
PATCH 3/3 ARM: dts: stm32f429: put can2 in secondary mode
In reply to Dario Binacchicommit 6b443faa313c519db755ff90be32758fd9c66453 Linux upstream.
This is a preparation patch for the upcoming support to manage CAN peripherals in single configuration.
The addition ensures backwards compatibility.
---
arch/arm/dts/stm32f429.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm/dts/stm32f429.dtsi +1 -0
@@ -346,6 +346,7 @@ interrupt-names = "tx", "rx0", "rx1", "sce"; resets = <&rcc STM32F4_APB1_RESET(CAN2)>; clocks = <&rcc 0 STM32F4_APB1_CLOCK(CAN2)>; + st,can-secondary; st,gcan = <&gcan>; status = "disabled"; };
Signature · 1 line
2.34.1
Re: [PATCH 3/3] ARM: dts: stm32f429: put can2 in secondary mode
Quoted 21 lines · Dario Binacchi
commit
6b443faa313c519db755ff90be32758fd9c66453Linux upstream.This is a preparation patch for the upcoming support to manage CAN peripherals in single configuration.
The addition ensures backwards compatibility.
Signed-off-by Dario Binacchi <[email protected]>Signed-off-by Marc Kleine-Budde <[email protected]>---
arch/arm/dts/stm32f429.dtsi | 1 + 1 file changed, 1 insertion(+)arch/arm/dts/stm32f429.dtsi +0
-0
arch/arm/dts/stm32f429.dtsi line 352
Quoted 7 lines
arch/arm/dts/stm32f429.dtsi +1
-0@@ -346,6 +346,7 @@ interrupt-names = "tx", "rx0", "rx1", "sce"; resets = <&rcc STM32F4_APB1_RESET(CAN2)>; clocks = <&rcc 0 STM32F4_APB1_CLOCK(CAN2)>; + st,can-secondary; st,gcan = <&gcan>; status = "disabled"; };
Thanks
Patrice
Re: [PATCH 3/3] ARM: dts: stm32f429: put can2 in secondary mode
In reply to Dario BinacchiQuoted 21 lines · Dario Binacchi
commit
6b443faa313c519db755ff90be32758fd9c66453Linux upstream.This is a preparation patch for the upcoming support to manage CAN peripherals in single configuration.
The addition ensures backwards compatibility.
Signed-off-by Dario Binacchi <[email protected]>Signed-off-by Marc Kleine-Budde <[email protected]>---
arch/arm/dts/stm32f429.dtsi | 1 + 1 file changed, 1 insertion(+)arch/arm/dts/stm32f429.dtsi +0
-0
arch/arm/dts/stm32f429.dtsi line 352
Quoted 7 lines
arch/arm/dts/stm32f429.dtsi +1
-0@@ -346,6 +346,7 @@ interrupt-names = "tx", "rx0", "rx1", "sce"; resets = <&rcc STM32F4_APB1_RESET(CAN2)>; clocks = <&rcc 0 STM32F4_APB1_CLOCK(CAN2)>; + st,can-secondary; st,gcan = <&gcan>; status = "disabled"; };
Apply on stm32/next
Thanks
Patrice