Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1570714 > unrolled thread

[PATCH 0/8] ADD STM32H743 MCU and STM32H743i-Eval board supports

Started byAlexandre TORGUE <alexandre.torgue@st.com>
First post2017-01-31 14:20 +0100
Last post2017-02-06 09:50 +0100
Articles 14 — 4 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/8] ADD STM32H743 MCU and STM32H743i-Eval board supports  Alexandre TORGUE <alexandre.torgue@st.com> - 2017-01-31 14:20 +0100
    [PATCH 5/8] ARM: stm32: Add a new SOC - STM32H743 Alexandre TORGUE <alexandre.torgue@st.com> - 2017-01-31 14:20 +0100
    [PATCH 8/8] ARM: configs: Add new config fragment to change RAM start point Alexandre TORGUE <alexandre.torgue@st.com> - 2017-01-31 14:20 +0100
    [PATCH 3/8] Documentation: dt-bindings: Add STM32 pinctrl driver DT bindings Alexandre TORGUE <alexandre.torgue@st.com> - 2017-01-31 14:20 +0100
      Re: [PATCH 3/8] Documentation: dt-bindings: Add STM32 pinctrl driver  DT bindings Rob Herring <robh@kernel.org> - 2017-02-01 18:40 +0100
      Re: [PATCH 3/8] Documentation: dt-bindings: Add STM32 pinctrl driver  DT bindings Rob Herring <robh@kernel.org> - 2017-02-01 18:40 +0100
      Re: [PATCH 3/8] Documentation: dt-bindings: Add STM32 pinctrl driver  DT bindings Linus Walleij <linus.walleij@linaro.org> - 2017-02-06 09:50 +0100
    [PATCH 6/8] ARM: stm32: Introduce MACH_STM32H743 flag Alexandre TORGUE <alexandre.torgue@st.com> - 2017-01-31 14:20 +0100
    [PATCH 7/8] ARM: dts: stm32: Add STM32H743 MCU and STM32H743i-EVAL board Alexandre TORGUE <alexandre.torgue@st.com> - 2017-01-31 14:20 +0100
    [PATCH 4/8] ARM: stm32: create dedicated kconfig for STM32 machine Alexandre TORGUE <alexandre.torgue@st.com> - 2017-01-31 14:20 +0100
    Re: [PATCH 0/8] ADD STM32H743 MCU and STM32H743i-Eval board supports Linus Walleij <linus.walleij@linaro.org> - 2017-02-01 16:20 +0100
      Re: [PATCH 0/8] ADD STM32H743 MCU and STM32H743i-Eval board supports Alexandre Torgue <alexandre.torgue@st.com> - 2017-02-01 17:50 +0100
    Re: [PATCH 1/8] include: dt-bindings: Add STM32H7 pinctrl DT bindings Linus Walleij <linus.walleij@linaro.org> - 2017-02-06 09:40 +0100
    Re: [PATCH 2/8] pinctrl: stm32: Add STM32H743 MCU support Linus Walleij <linus.walleij@linaro.org> - 2017-02-06 09:50 +0100

#1570714 — [PATCH 0/8] ADD STM32H743 MCU and STM32H743i-Eval board supports

FromAlexandre TORGUE <alexandre.torgue@st.com>
Date2017-01-31 14:20 +0100
Subject[PATCH 0/8] ADD STM32H743 MCU and STM32H743i-Eval board supports
Message-ID<t5GvM-19j-9@gated-at.bofh.it>
This series adds basic support for STM32H743 MCU and stm32h743i-eval board.
With it, you can boot stm32h743i-eval board successfully.

For your information:

The STMicrolectornics's STM32H743 MCU has the following main features:
 - Cortex-M7 core running up to @400MHz
 - 2MB internal flash, about 1MBytes internal RAM
 - FMC controller to connect SDRAM, NOR and NAND memories
 - Dual mode QSPI
 - SD/MMC/SDIO support
 - Ethernet controller
 - USB OTFG FS & HS controllers
 - I2C, SPI, CAN busses support
 - Several 16 & 32 bits general purpose timers
 - Serial Audio interface
 - LCD controller
 - HDMI-CEC
 - SPDIFRX 

Regards

Alex

Alexandre TORGUE (8):
  include: dt-bindings: Add STM32H7 pinctrl DT bindings
  pinctrl: stm32: Add STM32H743 MCU support
  Documentation: dt-bindings: Add STM32 pinctrl driver DT bindings
  ARM: stm32: create dedicated kconfig for STM32 machine
  ARM: stm32: Add a new SOC - STM32H743
  ARM: stm32: Introduce MACH_STM32H743 flag
  ARM: dts: stm32: Add STM32H743 MCU and STM32H743i-EVAL board
  ARM: configs: Add new config fragment to change RAM start point

 Documentation/arm/stm32/stm32h743-overview.txt     |   30 +
 .../bindings/pinctrl/st,stm32-pinctrl.txt          |    1 +
 arch/arm/Kconfig                                   |   24 +-
 arch/arm/boot/dts/Makefile                         |    3 +-
 arch/arm/boot/dts/stm32h743-pinctrl.dtsi           |  156 ++
 arch/arm/boot/dts/stm32h743.dtsi                   |   83 +
 arch/arm/boot/dts/stm32h743i-eval.dts              |   74 +
 arch/arm/configs/dram_0xd0000000.config            |    1 +
 arch/arm/mach-stm32/Kconfig                        |   26 +
 arch/arm/mach-stm32/board-dt.c                     |    1 +
 drivers/pinctrl/stm32/Kconfig                      |    5 +
 drivers/pinctrl/stm32/Makefile                     |    1 +
 drivers/pinctrl/stm32/pinctrl-stm32h743.c          | 1980 ++++++++++++++++++++
 include/dt-bindings/pinctrl/stm32h7-pinfunc.h      | 1612 ++++++++++++++++
 14 files changed, 3974 insertions(+), 23 deletions(-)
 create mode 100644 Documentation/arm/stm32/stm32h743-overview.txt
 create mode 100644 arch/arm/boot/dts/stm32h743-pinctrl.dtsi
 create mode 100644 arch/arm/boot/dts/stm32h743.dtsi
 create mode 100644 arch/arm/boot/dts/stm32h743i-eval.dts
 create mode 100644 arch/arm/configs/dram_0xd0000000.config
 create mode 100644 arch/arm/mach-stm32/Kconfig
 create mode 100644 drivers/pinctrl/stm32/pinctrl-stm32h743.c
 create mode 100644 include/dt-bindings/pinctrl/stm32h7-pinfunc.h

-- 
1.9.1

[toc] | [next] | [standalone]


#1570716 — [PATCH 5/8] ARM: stm32: Add a new SOC - STM32H743

FromAlexandre TORGUE <alexandre.torgue@st.com>
Date2017-01-31 14:20 +0100
Subject[PATCH 5/8] ARM: stm32: Add a new SOC - STM32H743
Message-ID<t5GvM-19j-7@gated-at.bofh.it>
In reply to#1570714
The STM32H743 is a Cortex-M7 MCU running at 400MHz and containing 1MBytes
internal RAM.

Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>

diff --git a/Documentation/arm/stm32/stm32h743-overview.txt b/Documentation/arm/stm32/stm32h743-overview.txt
new file mode 100644
index 0000000..3031cba
--- /dev/null
+++ b/Documentation/arm/stm32/stm32h743-overview.txt
@@ -0,0 +1,30 @@
+			STM32H743 Overview
+			==================
+
+  Introduction
+  ------------
+	The STM32H743 is a Cortex-M7 MCU aimed at various applications.
+	It features:
+	- Cortex-M7 core running up to @400MHz
+	- 2MB internal flash, 1MBytes internal RAM
+	- FMC controller to connect SDRAM, NOR and NAND memories
+	- Dual mode QSPI
+	- SD/MMC/SDIO support
+	- Ethernet controller
+	- USB OTFG FS & HS controllers
+	- I2C, SPI, CAN busses support
+	- Several 16 & 32 bits general purpose timers
+	- Serial Audio interface
+	- LCD controller
+	- HDMI-CEC
+	- SPDIFRX
+	- DFSDM
+
+  Resources
+  ---------
+	Datasheet and reference manual are publicly available on ST website:
+	- http://www.st.com/en/microcontrollers/stm32h7x3.html?querycriteria=productId=LN2033
+
+  Document Author
+  ---------------
+	Alexandre Torgue <alexandre.torgue@st.com>
diff --git a/arch/arm/mach-stm32/board-dt.c b/arch/arm/mach-stm32/board-dt.c
index c354222..e918686 100644
--- a/arch/arm/mach-stm32/board-dt.c
+++ b/arch/arm/mach-stm32/board-dt.c
@@ -12,6 +12,7 @@
 	"st,stm32f429",
 	"st,stm32f469",
 	"st,stm32f746",
+	"st,stm32h743",
 	NULL
 };
 
-- 
1.9.1

[toc] | [prev] | [next] | [standalone]


#1570718 — [PATCH 8/8] ARM: configs: Add new config fragment to change RAM start point

FromAlexandre TORGUE <alexandre.torgue@st.com>
Date2017-01-31 14:20 +0100
Subject[PATCH 8/8] ARM: configs: Add new config fragment to change RAM start point
Message-ID<t5GvM-19j-11@gated-at.bofh.it>
In reply to#1570714
Add a new fragment to over-ride the RAM start point to 0xd0000000.

Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>

diff --git a/arch/arm/configs/dram_0xd0000000.config b/arch/arm/configs/dram_0xd0000000.config
new file mode 100644
index 0000000..61ba704
--- /dev/null
+++ b/arch/arm/configs/dram_0xd0000000.config
@@ -0,0 +1 @@
+CONFIG_DRAM_BASE=0xd0000000
-- 
1.9.1

[toc] | [prev] | [next] | [standalone]


#1570719 — [PATCH 3/8] Documentation: dt-bindings: Add STM32 pinctrl driver DT bindings

FromAlexandre TORGUE <alexandre.torgue@st.com>
Date2017-01-31 14:20 +0100
Subject[PATCH 3/8] Documentation: dt-bindings: Add STM32 pinctrl driver DT bindings
Message-ID<t5GvM-19j-17@gated-at.bofh.it>
In reply to#1570714
Add compatible sting for stm32h743 MCU.

Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>

diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt
index b24583a..ac8dcb7 100644
--- a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt
+++ b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt
@@ -10,6 +10,7 @@ Required properies:
  - compatible: value should be one of the following:
    (a) "st,stm32f429-pinctrl"
    (b) "st,stm32f746-pinctrl"
+   (c) "st,stm32h743-pinctrl"
  - #address-cells: The value of this property must be 1
  - #size-cells	: The value of this property must be 1
  - ranges	: defines mapping between pin controller node (parent) to
-- 
1.9.1

[toc] | [prev] | [next] | [standalone]


#1571816 — Re: [PATCH 3/8] Documentation: dt-bindings: Add STM32 pinctrl driver DT bindings

FromRob Herring <robh@kernel.org>
Date2017-02-01 18:40 +0100
SubjectRe: [PATCH 3/8] Documentation: dt-bindings: Add STM32 pinctrl driver DT bindings
Message-ID<t672X-pD-27@gated-at.bofh.it>
In reply to#1570719
On Tue, Jan 31, 2017 at 02:14:20PM +0100, Alexandre TORGUE wrote:
> Add compatible sting for stm32h743 MCU.

Also, you can drop "Documentation: " from the subject as it is 
redundant.

> 
> Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>
> 
> diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt
> index b24583a..ac8dcb7 100644
> --- a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt
> +++ b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt
> @@ -10,6 +10,7 @@ Required properies:
>   - compatible: value should be one of the following:
>     (a) "st,stm32f429-pinctrl"
>     (b) "st,stm32f746-pinctrl"
> +   (c) "st,stm32h743-pinctrl"
>   - #address-cells: The value of this property must be 1
>   - #size-cells	: The value of this property must be 1
>   - ranges	: defines mapping between pin controller node (parent) to
> -- 
> 1.9.1
> 

[toc] | [prev] | [next] | [standalone]


#1571820 — Re: [PATCH 3/8] Documentation: dt-bindings: Add STM32 pinctrl driver DT bindings

FromRob Herring <robh@kernel.org>
Date2017-02-01 18:40 +0100
SubjectRe: [PATCH 3/8] Documentation: dt-bindings: Add STM32 pinctrl driver DT bindings
Message-ID<t672X-pD-33@gated-at.bofh.it>
In reply to#1570719
On Tue, Jan 31, 2017 at 02:14:20PM +0100, Alexandre TORGUE wrote:
> Add compatible sting for stm32h743 MCU.
> 
> Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>
> 
> diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt
> index b24583a..ac8dcb7 100644
> --- a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt
> +++ b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt
> @@ -10,6 +10,7 @@ Required properies:
>   - compatible: value should be one of the following:
>     (a) "st,stm32f429-pinctrl"
>     (b) "st,stm32f746-pinctrl"
> +   (c) "st,stm32h743-pinctrl"

Drop the a,b,c.

>   - #address-cells: The value of this property must be 1
>   - #size-cells	: The value of this property must be 1
>   - ranges	: defines mapping between pin controller node (parent) to
> -- 
> 1.9.1
> 

[toc] | [prev] | [next] | [standalone]


#1574457 — Re: [PATCH 3/8] Documentation: dt-bindings: Add STM32 pinctrl driver DT bindings

FromLinus Walleij <linus.walleij@linaro.org>
Date2017-02-06 09:50 +0100
SubjectRe: [PATCH 3/8] Documentation: dt-bindings: Add STM32 pinctrl driver DT bindings
Message-ID<t7N9M-2vm-13@gated-at.bofh.it>
In reply to#1570719
On Tue, Jan 31, 2017 at 2:14 PM, Alexandre TORGUE
<alexandre.torgue@st.com> wrote:

> Add compatible sting for stm32h743 MCU.
>
> Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>

Patch applied, incorporating the changes suggested by Rob,
amending subject and dropping (a,b,c).

Yours,
Linus Walleij

[toc] | [prev] | [next] | [standalone]


#1570720 — [PATCH 6/8] ARM: stm32: Introduce MACH_STM32H743 flag

FromAlexandre TORGUE <alexandre.torgue@st.com>
Date2017-01-31 14:20 +0100
Subject[PATCH 6/8] ARM: stm32: Introduce MACH_STM32H743 flag
Message-ID<t5GvN-19j-37@gated-at.bofh.it>
In reply to#1570714
This patch introduces the MACH_STM32H743 to make possible to only select
STM32H743 pinctrl driver

By default, all the MACH_STM32Fxxx flags will be set with STM32 defconfig.

Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>

diff --git a/arch/arm/mach-stm32/Kconfig b/arch/arm/mach-stm32/Kconfig
index 40115fa..2d1419e 100644
--- a/arch/arm/mach-stm32/Kconfig
+++ b/arch/arm/mach-stm32/Kconfig
@@ -19,3 +19,8 @@ config MACH_STM32F746
 	bool "STMicrolectronics STM32F746"
 	depends on ARCH_STM32
 	default y
+
+config MACH_STM32H743
+	bool "STMicrolectronics STM32H743"
+	depends on ARCH_STM32
+	default y
-- 
1.9.1

[toc] | [prev] | [next] | [standalone]


#1570728 — [PATCH 7/8] ARM: dts: stm32: Add STM32H743 MCU and STM32H743i-EVAL board

FromAlexandre TORGUE <alexandre.torgue@st.com>
Date2017-01-31 14:20 +0100
Subject[PATCH 7/8] ARM: dts: stm32: Add STM32H743 MCU and STM32H743i-EVAL board
Message-ID<t5GvN-19j-47@gated-at.bofh.it>
In reply to#1570714
Add basic support for STM32H743 MCU and his eval board.
The STMicrolectornics's STM32H743 MCU is based on  Cortex-M7 core
running up to @400MHz with 2MB internal flash and 1MB internal RAM.

For more details see:
Documentation/arm/stm32/stm32h743-overview.txt

Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index cccdbcb..f38a845 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -746,7 +746,8 @@ dtb-$(CONFIG_ARCH_STM32)+= \
 	stm32f429-disco.dtb \
 	stm32f469-disco.dtb \
 	stm32429i-eval.dtb \
-	stm32746g-eval.dtb
+	stm32746g-eval.dtb \
+	stm32h743i-eval.dtb
 dtb-$(CONFIG_MACH_SUN4I) += \
 	sun4i-a10-a1000.dtb \
 	sun4i-a10-ba10-tvbox.dtb \
diff --git a/arch/arm/boot/dts/stm32h743-pinctrl.dtsi b/arch/arm/boot/dts/stm32h743-pinctrl.dtsi
new file mode 100644
index 0000000..fcc1e06
--- /dev/null
+++ b/arch/arm/boot/dts/stm32h743-pinctrl.dtsi
@@ -0,0 +1,156 @@
+/*
+ * Copyright 2017 - Alexandre Torgue <alexandre.torgue@st.com>
+ *
+ * This file is dual-licensed: you can use it either under the terms
+ * of the GPL or the X11 license, at your option. Note that this dual
+ * licensing only applies to this file, and not this project as a
+ * whole.
+ *
+ *  a) This file is free software; you can redistribute it and/or
+ *     modify it under the terms of the GNU General Public License as
+ *     published by the Free Software Foundation; either version 2 of the
+ *     License, or (at your option) any later version.
+ *
+ *     This file is distributed in the hope that it will be useful,
+ *     but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *     GNU General Public License for more details.
+ *
+ * Or, alternatively,
+ *
+ *  b) Permission is hereby granted, free of charge, to any person
+ *     obtaining a copy of this software and associated documentation
+ *     files (the "Software"), to deal in the Software without
+ *     restriction, including without limitation the rights to use,
+ *     copy, modify, merge, publish, distribute, sublicense, and/or
+ *     sell copies of the Software, and to permit persons to whom the
+ *     Software is furnished to do so, subject to the following
+ *     conditions:
+ *
+ *     The above copyright notice and this permission notice shall be
+ *     included in all copies or substantial portions of the Software.
+ *
+ *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ *     OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#include <dt-bindings/pinctrl/stm32h7-pinfunc.h>
+
+/ {
+	soc {
+		pin-controller {
+			#address-cells = <1>;
+			#size-cells = <1>;
+			compatible = "st,stm32h743-pinctrl";
+			ranges = <0 0x58020000 0x3000>;
+			pins-are-numbered;
+
+			gpioa: gpio@58020000 {
+				gpio-controller;
+				#gpio-cells = <2>;
+				reg = <0x0 0x400>;
+				clocks = <&timer_clk>;
+				st,bank-name = "GPIOA";
+			};
+
+			gpiob: gpio@58020400 {
+				gpio-controller;
+				#gpio-cells = <2>;
+				reg = <0x400 0x400>;
+				clocks = <&timer_clk>;
+				st,bank-name = "GPIOB";
+			};
+
+			gpioc: gpio@58020800 {
+				gpio-controller;
+				#gpio-cells = <2>;
+				reg = <0x800 0x400>;
+				clocks = <&timer_clk>;
+				st,bank-name = "GPIOC";
+			};
+
+			gpiod: gpio@58020c00 {
+				gpio-controller;
+				#gpio-cells = <2>;
+				reg = <0xc00 0x400>;
+				clocks = <&timer_clk>;
+				st,bank-name = "GPIOD";
+			};
+
+			gpioe: gpio@58021000 {
+				gpio-controller;
+				#gpio-cells = <2>;
+				reg = <0x1000 0x400>;
+				clocks = <&timer_clk>;
+				st,bank-name = "GPIOE";
+			};
+
+			gpiof: gpio@58021400 {
+				gpio-controller;
+				#gpio-cells = <2>;
+				reg = <0x1400 0x400>;
+				clocks = <&timer_clk>;
+				st,bank-name = "GPIOF";
+			};
+
+			gpiog: gpio@58021800 {
+				gpio-controller;
+				#gpio-cells = <2>;
+				reg = <0x1800 0x400>;
+				clocks = <&timer_clk>;
+				st,bank-name = "GPIOG";
+			};
+
+			gpioh: gpio@58021c00 {
+				gpio-controller;
+				#gpio-cells = <2>;
+				reg = <0x1c00 0x400>;
+				clocks = <&timer_clk>;
+				st,bank-name = "GPIOH";
+			};
+
+			gpioi: gpio@58022000 {
+				gpio-controller;
+				#gpio-cells = <2>;
+				reg = <0x2000 0x400>;
+				clocks = <&timer_clk>;
+				st,bank-name = "GPIOI";
+			};
+
+			gpioj: gpio@58022400 {
+				gpio-controller;
+				#gpio-cells = <2>;
+				reg = <0x2400 0x400>;
+				clocks = <&timer_clk>;
+				st,bank-name = "GPIOJ";
+			};
+
+			gpiok: gpio@58022800 {
+				gpio-controller;
+				#gpio-cells = <2>;
+				reg = <0x2800 0x400>;
+				clocks = <&timer_clk>;
+				st,bank-name = "GPIOK";
+			};
+
+			usart1_pins: usart1@0 {
+				pins1 {
+					pinmux = <STM32H7_PB14_FUNC_USART1_TX>;
+					bias-disable;
+					drive-push-pull;
+					slew-rate = <0>;
+				};
+				pins2 {
+					pinmux = <STM32H7_PB15_FUNC_USART1_RX>;
+					bias-disable;
+				};
+			};
+		};
+	};
+};
diff --git a/arch/arm/boot/dts/stm32h743.dtsi b/arch/arm/boot/dts/stm32h743.dtsi
new file mode 100644
index 0000000..4685629
--- /dev/null
+++ b/arch/arm/boot/dts/stm32h743.dtsi
@@ -0,0 +1,83 @@
+/*
+ * Copyright 2017 - Alexandre Torgue <alexandre.torgue@st.com>
+ *
+ * This file is dual-licensed: you can use it either under the terms
+ * of the GPL or the X11 license, at your option. Note that this dual
+ * licensing only applies to this file, and not this project as a
+ * whole.
+ *
+ *  a) This file is free software; you can redistribute it and/or
+ *     modify it under the terms of the GNU General Public License as
+ *     published by the Free Software Foundation; either version 2 of the
+ *     License, or (at your option) any later version.
+ *
+ *     This file is distributed in the hope that it will be useful,
+ *     but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *     GNU General Public License for more details.
+ *
+ * Or, alternatively,
+ *
+ *  b) Permission is hereby granted, free of charge, to any person
+ *     obtaining a copy of this software and associated documentation
+ *     files (the "Software"), to deal in the Software without
+ *     restriction, including without limitation the rights to use,
+ *     copy, modify, merge, publish, distribute, sublicense, and/or
+ *     sell copies of the Software, and to permit persons to whom the
+ *     Software is furnished to do so, subject to the following
+ *     conditions:
+ *
+ *     The above copyright notice and this permission notice shall be
+ *     included in all copies or substantial portions of the Software.
+ *
+ *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ *     OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#include "skeleton.dtsi"
+#include "armv7-m.dtsi"
+
+/ {
+	clocks {
+		clk_hse: clk-hse {
+			#clock-cells = <0>;
+			compatible = "fixed-clock";
+			clock-frequency = <0>;
+		};
+
+		timer_clk: timer-clk {
+			#clock-cells = <0>;
+			compatible = "fixed-clock";
+			clock-frequency = <125000000>;
+		};
+	};
+
+	soc {
+		usart1: serial@40011000 {
+			compatible = "st,stm32f7-usart", "st,stm32f7-uart";
+			reg = <0x40011000 0x400>;
+			interrupts = <37>;
+			status = "disabled";
+			clocks = <&timer_clk>;
+
+		};
+
+		timer5: timer@40000c00 {
+			compatible = "st,stm32-timer";
+			reg = <0x40000c00 0x400>;
+			interrupts = <50>;
+			clocks = <&timer_clk>;
+		};
+	};
+};
+
+&systick {
+	clock-frequency = <250000000>;
+	status = "okay";
+};
diff --git a/arch/arm/boot/dts/stm32h743i-eval.dts b/arch/arm/boot/dts/stm32h743i-eval.dts
new file mode 100644
index 0000000..c6effbb
--- /dev/null
+++ b/arch/arm/boot/dts/stm32h743i-eval.dts
@@ -0,0 +1,74 @@
+/*
+ * Copyright 2017 - Alexandre Torgue <alexandre.torgue@st.com>
+ *
+ * This file is dual-licensed: you can use it either under the terms
+ * of the GPL or the X11 license, at your option. Note that this dual
+ * licensing only applies to this file, and not this project as a
+ * whole.
+ *
+ *  a) This file is free software; you can redistribute it and/or
+ *     modify it under the terms of the GNU General Public License as
+ *     published by the Free Software Foundation; either version 2 of the
+ *     License, or (at your option) any later version.
+ *
+ *     This file is distributed in the hope that it will be useful,
+ *     but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *     GNU General Public License for more details.
+ *
+ * Or, alternatively,
+ *
+ *  b) Permission is hereby granted, free of charge, to any person
+ *     obtaining a copy of this software and associated documentation
+ *     files (the "Software"), to deal in the Software without
+ *     restriction, including without limitation the rights to use,
+ *     copy, modify, merge, publish, distribute, sublicense, and/or
+ *     sell copies of the Software, and to permit persons to whom the
+ *     Software is furnished to do so, subject to the following
+ *     conditions:
+ *
+ *     The above copyright notice and this permission notice shall be
+ *     included in all copies or substantial portions of the Software.
+ *
+ *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ *     OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+/dts-v1/;
+#include "stm32h743.dtsi"
+#include "stm32h743-pinctrl.dtsi"
+
+/ {
+	model = "STMicroelectronics STM32H743i-EVAL board";
+	compatible = "st,stm32h743i-eval", "st,stm32h743";
+
+	chosen {
+		bootargs = "root=/dev/ram";
+		stdout-path = "serial0:115200n8";
+	};
+
+	memory {
+		reg = <0xd0000000 0x2000000>;
+	};
+
+	aliases {
+		serial0 = &usart1;
+	};
+};
+
+&clk_hse {
+	clock-frequency = <125000000>;
+};
+
+&usart1 {
+	pinctrl-0 = <&usart1_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+};
+
-- 
1.9.1

[toc] | [prev] | [next] | [standalone]


#1570730 — [PATCH 4/8] ARM: stm32: create dedicated kconfig for STM32 machine

FromAlexandre TORGUE <alexandre.torgue@st.com>
Date2017-01-31 14:20 +0100
Subject[PATCH 4/8] ARM: stm32: create dedicated kconfig for STM32 machine
Message-ID<t5GvN-19j-55@gated-at.bofh.it>
In reply to#1570714
Create a dedicated Kconfig file in mach-stm32/ and move existing stm32
configs inside.

Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 5fab553..e84936c 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -813,6 +813,8 @@ source "arch/arm/mach-spear/Kconfig"
 
 source "arch/arm/mach-sti/Kconfig"
 
+source "arch/arm/mach-stm32/Kconfig"
+
 source "arch/arm/mach-s3c24xx/Kconfig"
 
 source "arch/arm/mach-s3c64xx/Kconfig"
@@ -871,28 +873,6 @@ config ARCH_LPC18XX
 	  Support for NXP's LPC18xx Cortex-M3 and LPC43xx Cortex-M4
 	  high performance microcontrollers.
 
-config ARCH_STM32
-	bool "STMicrolectronics STM32"
-	depends on ARM_SINGLE_ARMV7M
-	select ARCH_HAS_RESET_CONTROLLER
-	select ARMV7M_SYSTICK
-	select CLKSRC_STM32
-	select PINCTRL
-	select RESET_CONTROLLER
-	select STM32_EXTI
-	help
-	  Support for STMicroelectronics STM32 processors.
-
-config MACH_STM32F429
-	bool "STMicrolectronics STM32F429"
-	depends on ARCH_STM32
-	default y
-
-config MACH_STM32F746
-	bool "STMicrolectronics STM32F746"
-	depends on ARCH_STM32
-	default y
-
 config ARCH_MPS2
 	bool "ARM MPS2 platform"
 	depends on ARM_SINGLE_ARMV7M
diff --git a/arch/arm/mach-stm32/Kconfig b/arch/arm/mach-stm32/Kconfig
new file mode 100644
index 0000000..40115fa
--- /dev/null
+++ b/arch/arm/mach-stm32/Kconfig
@@ -0,0 +1,21 @@
+config ARCH_STM32
+	bool "STMicrolectronics STM32"
+	depends on ARM_SINGLE_ARMV7M
+	select ARCH_HAS_RESET_CONTROLLER
+	select ARMV7M_SYSTICK
+	select CLKSRC_STM32
+	select PINCTRL
+	select RESET_CONTROLLER
+	select STM32_EXTI
+	help
+	  Support for STMicroelectronics STM32 processors.
+
+config MACH_STM32F429
+	bool "STMicrolectronics STM32F429"
+	depends on ARCH_STM32
+	default y
+
+config MACH_STM32F746
+	bool "STMicrolectronics STM32F746"
+	depends on ARCH_STM32
+	default y
-- 
1.9.1

[toc] | [prev] | [next] | [standalone]


#1571660

FromLinus Walleij <linus.walleij@linaro.org>
Date2017-02-01 16:20 +0100
Message-ID<t64Rs-7At-13@gated-at.bofh.it>
In reply to#1570714
On Tue, Jan 31, 2017 at 2:14 PM, Alexandre TORGUE
<alexandre.torgue@st.com> wrote:

> This series adds basic support for STM32H743 MCU and stm32h743i-eval board.
> With it, you can boot stm32h743i-eval board successfully.

Patch 1 & 2 look fine to me.

Shall I just apply them and offer them on an immutable branch based
on v4.10 so you can pull that into ARM SoC if you want to get this in
for v4.11?

Yours,
Linus Walleij

[toc] | [prev] | [next] | [standalone]


#1571733

FromAlexandre Torgue <alexandre.torgue@st.com>
Date2017-02-01 17:50 +0100
Message-ID<t66gy-8kU-29@gated-at.bofh.it>
In reply to#1571660
Hi Linus

On 02/01/2017 04:16 PM, Linus Walleij wrote:
> On Tue, Jan 31, 2017 at 2:14 PM, Alexandre TORGUE
> <alexandre.torgue@st.com> wrote:
>
>> This series adds basic support for STM32H743 MCU and stm32h743i-eval board.
>> With it, you can boot stm32h743i-eval board successfully.
>
> Patch 1 & 2 look fine to me.
>
> Shall I just apply them and offer them on an immutable branch based
> on v4.10 so you can pull that into ARM SoC if you want to get this in
> for v4.11?

Thanks, but I think it is a bit late for this cycle. Indeed I'm close to 
send a second round for STM32 DT, but I don't plan to add STM32H7 
support. I prefere to let machine & DT patches in review.
Anyway, I 'll be happy if you take pinctrl & bindings parts in this 
cycle :).

Regards
Alex

>
> Yours,
> Linus Walleij
>

[toc] | [prev] | [next] | [standalone]


#1574452 — Re: [PATCH 1/8] include: dt-bindings: Add STM32H7 pinctrl DT bindings

FromLinus Walleij <linus.walleij@linaro.org>
Date2017-02-06 09:40 +0100
SubjectRe: [PATCH 1/8] include: dt-bindings: Add STM32H7 pinctrl DT bindings
Message-ID<t7N06-2rC-23@gated-at.bofh.it>
In reply to#1570714
On Tue, Jan 31, 2017 at 2:14 PM, Alexandre TORGUE
<alexandre.torgue@st.com> wrote:

> Adds common pinctrl device tree bindings for STM32H743 and STM32H753 MCU.
>
> Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>

Patch applied, renamed "bindings" to "definitions" in this commit
because it is not bindings.

Yours,
Linus Walleij

[toc] | [prev] | [next] | [standalone]


#1574458 — Re: [PATCH 2/8] pinctrl: stm32: Add STM32H743 MCU support

FromLinus Walleij <linus.walleij@linaro.org>
Date2017-02-06 09:50 +0100
SubjectRe: [PATCH 2/8] pinctrl: stm32: Add STM32H743 MCU support
Message-ID<t7N9L-2vm-9@gated-at.bofh.it>
In reply to#1570714
On Tue, Jan 31, 2017 at 2:14 PM, Alexandre TORGUE
<alexandre.torgue@st.com> wrote:

> This patch adds STM32H743 pinctrl and GPIO support, relies on the
> generic STM32 pinctrl driver.
>
> Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>

Patch applied.

Yours,
Linus Walleij

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web