* [PATCH 0/2] m_can support to stm32mp157c
@ 2018-05-15 12:23 Erwan Le Ray
2018-05-15 12:23 ` [PATCH 1/2] ARM: dts: stm32: " Erwan Le Ray
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Erwan Le Ray @ 2018-05-15 12:23 UTC (permalink / raw)
To: Maxime Coquelin, arnd, robh+dt, mark.rutland, linux
Cc: devicetree, bich.hemon, Alexandre Torgue, linux-arm-kernel,
erwan.leray
Add support for the Controller Area Network m_can to STM32MP157C SoC and
activation on stm32mp157c-ev1 board
Bich Hemon (2):
ARM: dts: stm32: m_can support to stm32mp157c
ARM: dts: stm32: m_can activation on stm32mp157c-ev1
arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 13 +++++++++++++
arch/arm/boot/dts/stm32mp157c-ev1.dts | 6 ++++++
arch/arm/boot/dts/stm32mp157c.dtsi | 26 ++++++++++++++++++++++++++
3 files changed, 45 insertions(+)
--
1.9.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] ARM: dts: stm32: m_can support to stm32mp157c
2018-05-15 12:23 [PATCH 0/2] m_can support to stm32mp157c Erwan Le Ray
@ 2018-05-15 12:23 ` Erwan Le Ray
2018-05-15 12:23 ` [PATCH 2/2] ARM: dts: stm32: m_can activation on stm32mp157c-ev1 Erwan Le Ray
2018-06-25 13:58 ` [PATCH 0/2] m_can support to stm32mp157c Alexandre Torgue
2 siblings, 0 replies; 4+ messages in thread
From: Erwan Le Ray @ 2018-05-15 12:23 UTC (permalink / raw)
To: Maxime Coquelin, arnd, robh+dt, mark.rutland, linux
Cc: devicetree, bich.hemon, Alexandre Torgue, linux-arm-kernel,
erwan.leray
Add support for the Controller Area Network m_can to STM32MP157C SoC.
Signed-off-by: Bich Hemon <bich.hemon@st.com>
Signed-off-by: Erwan Le Ray <erwan.leray@st.com>
diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi
index b66f673..12ac73f 100644
--- a/arch/arm/boot/dts/stm32mp157c.dtsi
+++ b/arch/arm/boot/dts/stm32mp157c.dtsi
@@ -556,6 +556,32 @@
};
};
+ m_can1: can@4400e000 {
+ compatible = "bosch,m_can";
+ reg = <0x4400e000 0x400>, <0x44011000 0x2800>;
+ reg-names = "m_can", "message_ram";
+ interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "int0", "int1";
+ clocks = <&rcc CK_HSE>, <&rcc FDCAN_K>;
+ clock-names = "hclk", "cclk";
+ bosch,mram-cfg = <0x0 0 0 32 0 0 2 2>;
+ status = "disabled";
+ };
+
+ m_can2: can@4400f000 {
+ compatible = "bosch,m_can";
+ reg = <0x4400f000 0x400>, <0x44011000 0x2800>;
+ reg-names = "m_can", "message_ram";
+ interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "int0", "int1";
+ clocks = <&rcc CK_HSE>, <&rcc FDCAN_K>;
+ clock-names = "hclk", "cclk";
+ bosch,mram-cfg = <0x0 0 0 32 0 0 2 2>;
+ status = "disabled";
+ };
+
dma1: dma@48000000 {
compatible = "st,stm32-dma";
reg = <0x48000000 0x400>;
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] ARM: dts: stm32: m_can activation on stm32mp157c-ev1
2018-05-15 12:23 [PATCH 0/2] m_can support to stm32mp157c Erwan Le Ray
2018-05-15 12:23 ` [PATCH 1/2] ARM: dts: stm32: " Erwan Le Ray
@ 2018-05-15 12:23 ` Erwan Le Ray
2018-06-25 13:58 ` [PATCH 0/2] m_can support to stm32mp157c Alexandre Torgue
2 siblings, 0 replies; 4+ messages in thread
From: Erwan Le Ray @ 2018-05-15 12:23 UTC (permalink / raw)
To: Maxime Coquelin, arnd, robh+dt, mark.rutland, linux
Cc: devicetree, bich.hemon, Alexandre Torgue, linux-arm-kernel,
erwan.leray
Add activation of the Controller Area Network m_can on stm32mp157c-ev1
board.
Signed-off-by: Bich Hemon <bich.hemon@st.com>
Signed-off-by: Erwan Le Ray <erwan.leray@st.com>
diff --git a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi
index 88e9133..2e4c5e3 100644
--- a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi
+++ b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi
@@ -185,6 +185,19 @@
};
};
+ m_can1_pins_a: m_can1-0 {
+ pins1 {
+ pinmux = <STM32_PINMUX('H', 13, AF9)>; /* CAN1_TX */
+ slew-rate = <1>;
+ drive-push-pull;
+ bias-disable;
+ };
+ pins2 {
+ pinmux = <STM32_PINMUX('I', 9, AF9)>; /* CAN1_RX */
+ bias-disable;
+ };
+ };
+
pwm2_pins_a: pwm2-0 {
pins {
pinmux = <STM32_PINMUX('A', 3, AF1)>; /* TIM2_CH4 */
diff --git a/arch/arm/boot/dts/stm32mp157c-ev1.dts b/arch/arm/boot/dts/stm32mp157c-ev1.dts
index 9382d80..3be73d2 100644
--- a/arch/arm/boot/dts/stm32mp157c-ev1.dts
+++ b/arch/arm/boot/dts/stm32mp157c-ev1.dts
@@ -42,6 +42,12 @@
status = "okay";
};
+&m_can1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&m_can1_pins_a>;
+ status = "okay";
+};
+
&qspi {
pinctrl-names = "default";
pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a &qspi_bk2_pins_a>;
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] m_can support to stm32mp157c
2018-05-15 12:23 [PATCH 0/2] m_can support to stm32mp157c Erwan Le Ray
2018-05-15 12:23 ` [PATCH 1/2] ARM: dts: stm32: " Erwan Le Ray
2018-05-15 12:23 ` [PATCH 2/2] ARM: dts: stm32: m_can activation on stm32mp157c-ev1 Erwan Le Ray
@ 2018-06-25 13:58 ` Alexandre Torgue
2 siblings, 0 replies; 4+ messages in thread
From: Alexandre Torgue @ 2018-06-25 13:58 UTC (permalink / raw)
To: Erwan Le Ray, Maxime Coquelin, arnd, robh+dt, mark.rutland, linux
Cc: devicetree, bich.hemon, linux-arm-kernel
Hi,
On 05/15/2018 02:23 PM, Erwan Le Ray wrote:
> Add support for the Controller Area Network m_can to STM32MP157C SoC and
> activation on stm32mp157c-ev1 board
>
> Bich Hemon (2):
> ARM: dts: stm32: m_can support to stm32mp157c
> ARM: dts: stm32: m_can activation on stm32mp157c-ev1
>
> arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 13 +++++++++++++
> arch/arm/boot/dts/stm32mp157c-ev1.dts | 6 ++++++
> arch/arm/boot/dts/stm32mp157c.dtsi | 26 ++++++++++++++++++++++++++
> 3 files changed, 45 insertions(+)
>
Series applied on stm32-next.
Regards
Alex
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-06-25 13:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-15 12:23 [PATCH 0/2] m_can support to stm32mp157c Erwan Le Ray
2018-05-15 12:23 ` [PATCH 1/2] ARM: dts: stm32: " Erwan Le Ray
2018-05-15 12:23 ` [PATCH 2/2] ARM: dts: stm32: m_can activation on stm32mp157c-ev1 Erwan Le Ray
2018-06-25 13:58 ` [PATCH 0/2] m_can support to stm32mp157c Alexandre Torgue
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).