LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH v1 0/2] Add I2C support for STM32H743
@ 2018-04-20  9:05 Pierre-Yves MORDRET
  2018-04-20  9:05 ` [PATCH v1 1/2] ARM: dts: stm32: Add I2C support for STM32H743 SoC Pierre-Yves MORDRET
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Pierre-Yves MORDRET @ 2018-04-20  9:05 UTC (permalink / raw)
  To: Maxime Coquelin, Alexandre Torgue, Rob Herring, Mark Rutland,
	linux-arm-kernel, devicetree, linux-kernel
  Cc: Pierre-Yves MORDRET

Add I2C support on STM32H743 SoC.
Activate I2C1 on STM32H743I Evaluation Board.
---
  Version history:
     v1:
        * Initial
---

Pierre-Yves MORDRET (2):
  ARM: dts: stm32: Add I2C support for STM32H743 SoC
  ARM: dts: stm32: Add I2C1 support for STM32H743I-EVAL Board

 arch/arm/boot/dts/stm32h743-pinctrl.dtsi | 10 +++++++
 arch/arm/boot/dts/stm32h743.dtsi         | 48 ++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/stm32h743i-eval.dts    |  8 ++++++
 3 files changed, 66 insertions(+)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v1 1/2] ARM: dts: stm32: Add I2C support for STM32H743 SoC
  2018-04-20  9:05 [PATCH v1 0/2] Add I2C support for STM32H743 Pierre-Yves MORDRET
@ 2018-04-20  9:05 ` Pierre-Yves MORDRET
  2018-04-20  9:05 ` [PATCH v1 2/2] ARM: dts: stm32: Add I2C1 support for STM32H743I-EVAL Board Pierre-Yves MORDRET
  2018-05-03 15:38 ` [PATCH v1 0/2] Add I2C support for STM32H743 Alexandre Torgue
  2 siblings, 0 replies; 4+ messages in thread
From: Pierre-Yves MORDRET @ 2018-04-20  9:05 UTC (permalink / raw)
  To: Maxime Coquelin, Alexandre Torgue, Rob Herring, Mark Rutland,
	linux-arm-kernel, devicetree, linux-kernel
  Cc: Pierre-Yves MORDRET

Add I2C support for STM32H743 SoC

Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com>
---
  Version history:
     v1:
        * Initial
---
---
 arch/arm/boot/dts/stm32h743-pinctrl.dtsi | 10 +++++++
 arch/arm/boot/dts/stm32h743.dtsi         | 48 ++++++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+)

diff --git a/arch/arm/boot/dts/stm32h743-pinctrl.dtsi b/arch/arm/boot/dts/stm32h743-pinctrl.dtsi
index 0f15dfb..24be8e6 100644
--- a/arch/arm/boot/dts/stm32h743-pinctrl.dtsi
+++ b/arch/arm/boot/dts/stm32h743-pinctrl.dtsi
@@ -163,6 +163,16 @@
 				#interrupt-cells = <2>;
 			};
 
+			i2c1_pins_a: i2c1@0 {
+				pins {
+					pinmux = <STM32_PINMUX('B', 6, AF4)>, /* I2C1_SCL */
+						 <STM32_PINMUX('B', 7, AF4)>; /* I2C1_SDA */
+					bias-disable;
+					drive-open-drain;
+					slew-rate = <0>;
+				};
+			};
+
 			usart1_pins: usart1@0 {
 				pins1 {
 					pinmux = <STM32_PINMUX('B', 14, AF4)>; /* USART1_TX */
diff --git a/arch/arm/boot/dts/stm32h743.dtsi b/arch/arm/boot/dts/stm32h743.dtsi
index 2bb103e..7b64af0 100644
--- a/arch/arm/boot/dts/stm32h743.dtsi
+++ b/arch/arm/boot/dts/stm32h743.dtsi
@@ -130,6 +130,42 @@
 			clocks = <&rcc USART2_CK>;
 		};
 
+		i2c1: i2c@40005400 {
+			compatible = "st,stm32f7-i2c";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x40005400 0x400>;
+			interrupts = <31>,
+				     <32>;
+			resets = <&rcc STM32H7_APB1L_RESET(I2C1)>;
+			clocks = <&rcc I2C1_CK>;
+			status = "disabled";
+		};
+
+		i2c2: i2c@40005800 {
+			compatible = "st,stm32f7-i2c";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x40005800 0x400>;
+			interrupts = <33>,
+				     <34>;
+			resets = <&rcc STM32H7_APB1L_RESET(I2C2)>;
+			clocks = <&rcc I2C2_CK>;
+			status = "disabled";
+		};
+
+		i2c3: i2c@40005C00 {
+			compatible = "st,stm32f7-i2c";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x40005C00 0x400>;
+			interrupts = <72>,
+				     <73>;
+			resets = <&rcc STM32H7_APB1L_RESET(I2C3)>;
+			clocks = <&rcc I2C3_CK>;
+			status = "disabled";
+		};
+
 		dac: dac@40007400 {
 			compatible = "st,stm32h7-dac-core";
 			reg = <0x40007400 0x400>;
@@ -323,6 +359,18 @@
 			status = "disabled";
 		};
 
+		i2c4: i2c@58001C00 {
+			compatible = "st,stm32f7-i2c";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x58001C00 0x400>;
+			interrupts = <95>,
+				     <96>;
+			resets = <&rcc STM32H7_APB4_RESET(I2C4)>;
+			clocks = <&rcc I2C4_CK>;
+			status = "disabled";
+		};
+
 		lptimer2: timer@58002400 {
 			#address-cells = <1>;
 			#size-cells = <0>;
-- 
2.7.4

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v1 2/2] ARM: dts: stm32: Add I2C1 support for STM32H743I-EVAL Board
  2018-04-20  9:05 [PATCH v1 0/2] Add I2C support for STM32H743 Pierre-Yves MORDRET
  2018-04-20  9:05 ` [PATCH v1 1/2] ARM: dts: stm32: Add I2C support for STM32H743 SoC Pierre-Yves MORDRET
@ 2018-04-20  9:05 ` Pierre-Yves MORDRET
  2018-05-03 15:38 ` [PATCH v1 0/2] Add I2C support for STM32H743 Alexandre Torgue
  2 siblings, 0 replies; 4+ messages in thread
From: Pierre-Yves MORDRET @ 2018-04-20  9:05 UTC (permalink / raw)
  To: Maxime Coquelin, Alexandre Torgue, Rob Herring, Mark Rutland,
	linux-arm-kernel, devicetree, linux-kernel
  Cc: Pierre-Yves MORDRET

Add I2C1 support for STM32H743I-EVAL Board

Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com>
---
  Version history:
     v1:
        * Initial
---
---
 arch/arm/boot/dts/stm32h743i-eval.dts | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/stm32h743i-eval.dts b/arch/arm/boot/dts/stm32h743i-eval.dts
index c7187e1..3f8e0c4 100644
--- a/arch/arm/boot/dts/stm32h743i-eval.dts
+++ b/arch/arm/boot/dts/stm32h743i-eval.dts
@@ -92,6 +92,14 @@
 	clock-frequency = <25000000>;
 };
 
+&i2c1 {
+	pinctrl-0 = <&i2c1_pins_a>;
+	pinctrl-names = "default";
+	i2c-scl-rising-time-ns = <185>;
+	i2c-scl-falling-time-ns = <20>;
+	status = "okay";
+};
+
 &rtc {
 	status = "okay";
 };
-- 
2.7.4

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v1 0/2] Add I2C support for STM32H743
  2018-04-20  9:05 [PATCH v1 0/2] Add I2C support for STM32H743 Pierre-Yves MORDRET
  2018-04-20  9:05 ` [PATCH v1 1/2] ARM: dts: stm32: Add I2C support for STM32H743 SoC Pierre-Yves MORDRET
  2018-04-20  9:05 ` [PATCH v1 2/2] ARM: dts: stm32: Add I2C1 support for STM32H743I-EVAL Board Pierre-Yves MORDRET
@ 2018-05-03 15:38 ` Alexandre Torgue
  2 siblings, 0 replies; 4+ messages in thread
From: Alexandre Torgue @ 2018-05-03 15:38 UTC (permalink / raw)
  To: Pierre-Yves MORDRET, Maxime Coquelin, Rob Herring, Mark Rutland,
	linux-arm-kernel, devicetree, linux-kernel

Hi,

On 04/20/2018 11:05 AM, Pierre-Yves MORDRET wrote:
> Add I2C support on STM32H743 SoC.
> Activate I2C1 on STM32H743I Evaluation Board.
> ---
>    Version history:
>       v1:
>          * Initial
> ---
> 
> Pierre-Yves MORDRET (2):
>    ARM: dts: stm32: Add I2C support for STM32H743 SoC
>    ARM: dts: stm32: Add I2C1 support for STM32H743I-EVAL Board
> 
>   arch/arm/boot/dts/stm32h743-pinctrl.dtsi | 10 +++++++
>   arch/arm/boot/dts/stm32h743.dtsi         | 48 ++++++++++++++++++++++++++++++++
>   arch/arm/boot/dts/stm32h743i-eval.dts    |  8 ++++++
>   3 files changed, 66 insertions(+)
> 

Series applied on stm32-next.

Regards
Alex

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-05-03 15:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-20  9:05 [PATCH v1 0/2] Add I2C support for STM32H743 Pierre-Yves MORDRET
2018-04-20  9:05 ` [PATCH v1 1/2] ARM: dts: stm32: Add I2C support for STM32H743 SoC Pierre-Yves MORDRET
2018-04-20  9:05 ` [PATCH v1 2/2] ARM: dts: stm32: Add I2C1 support for STM32H743I-EVAL Board Pierre-Yves MORDRET
2018-05-03 15:38 ` [PATCH v1 0/2] Add I2C support for STM32H743 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).