Add stmf429-evaluation board support
Subsystems (4)
cover Add stmf429-evaluation board support
From: Patrice Chotard <[email protected]>
This series add support for stmf429-evaluation board.
Before adding this board support, the clk_stm32f driver must be updated to be able to retrieve external oscillator frequency (HSE) from device tree. This because stm32f429-evaluation board doesn't use a 8 Mhz external oscillator as all STM32F4 board supported (stm32f429-disco and stm32f469-disco).
Patrice Chotard (6):
ARM: dts: stm32: add "u-boot,dm-pre-reloc" for clk_hse in
stm32f7-u-boot
clk: stm32: retrieve external oscillator frequency from DT
configs: stm32f: Remove STM32_HSE_HZ for all STM32F series
board: stm32: Add stm32f429-evaluation board support
ARM: dts: stm32: Add STM32F429 Evaluation board support
ARM: dts: stm32: add stm32429-eval-u-boot dts file
arch/arm/dts/Makefile | 1 + arch/arm/dts/stm32429i-eval-u-boot.dtsi | 231 +++++++++++++++++ arch/arm/dts/stm32429i-eval.dts | 276 +++++++++++++++++++++ arch/arm/dts/stm32f7-u-boot.dtsi | 4 + arch/arm/mach-stm32/stm32f4/Kconfig | 4 + board/st/stm32f429-evaluation/Kconfig | 19 ++ board/st/stm32f429-evaluation/MAINTAINERS | 6 + board/st/stm32f429-evaluation/Makefile | 8 + .../st/stm32f429-evaluation/stm32f429-evaluation.c | 74 ++++++ configs/stm32f429-evaluation_defconfig | 31 +++ drivers/clk/clk_stm32f.c | 78 ++++-- include/configs/stm32f429-discovery.h | 2 - include/configs/stm32f429-evaluation.h | 65 +++++ include/configs/stm32f469-discovery.h | 1 - include/configs/stm32f746-disco.h | 1 - 15 files changed, 776 insertions(+), 25 deletions(-) create mode 100644 arch/arm/dts/stm32429i-eval-u-boot.dtsi create mode 100644 arch/arm/dts/stm32429i-eval.dts create mode 100644 board/st/stm32f429-evaluation/Kconfig create mode 100644 board/st/stm32f429-evaluation/MAINTAINERS create mode 100644 board/st/stm32f429-evaluation/Makefile create mode 100644 board/st/stm32f429-evaluation/stm32f429-evaluation.c create mode 100644 configs/stm32f429-evaluation_defconfig create mode 100644 include/configs/stm32f429-evaluation.h
Signature · 1 line
1.9.1
PATCH 1/6 ARM: dts: stm32: add "u-boot, dm-pre-reloc" for clk_hse in stm32f7-u-boot
From: Patrice Chotard <[email protected]>
In order to retrieve the clk_hse fixed clock phandle in clk_stm32f driver, add "u-boot,dm-pre-reloc" property in Uboot specific DT file.
--- arch/arm/dts/stm32f7-u-boot.dtsi | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/dts/stm32f7-u-boot.dtsi +4 -0
@@ -26,3 +26,7 @@ &pwrcfg { u-boot,dm-pre-reloc; }; + +&clk_hse { + u-boot,dm-pre-reloc; +};
Signature · 1 line
1.9.1
PATCH 1/6 ARM: dts: stm32: add "u-boot, dm-pre-reloc" for clk_hse in stm32f7-u-boot
Quoted 6 lines · patrice.chotard at st.com
From: Patrice Chotard <[email protected]>
In order to retrieve the
clk_hsefixed clock phandle inclk_stm32fdriver, add "u-boot,dm-pre-reloc" property in Uboot specific DT file.Signed-off-by Patrice Chotard <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180128/af7a30c1/attachment.sig>
PATCH 2/6 clk: stm32: retrieve external oscillator frequency from DT
In reply to patrice.chotard at st.comFrom: Patrice Chotard <[email protected]>
All current STM32F4 supported boards uses a 8MHz external oscillator. All current STM32F7 supported boards uses a 25MHz external oscillator.
In order to introduce the new stm32f429-evaluation board which uses a 25MHz external oscillator without creating a dedicated struct stm32_clk_info for this board, retrieve the external oscillator frequency from DT and set pll_m accordingly to obtain 1MHz for the VCO.
--- drivers/clk/clk_stm32f.c | 78 +++++++++++++++++++++++++++++++++++------------- 1 file changed, 57 insertions(+), 21 deletions(-)
drivers/clk/clk_stm32f.c +57 -21
@@ -93,10 +93,9 @@ enum periph_clock { STMMAC_CLOCK_CFG, }; -struct stm32_clk_info stm32f4_clk_info = { +static const struct stm32_clk_info stm32f4_clk_info = {/* 180 MHz */ .sys_pll_psc = { - .pll_m =8 , .pll_n =360 , .pll_p =2 , .pll_q =8 ,
@@ -108,10 +107,9 @@ struct stm32_clk_info stm32f4_clk_info = { .v2 = false, }; -struct stm32_clk_info stm32f7_clk_info = { +static const struct stm32_clk_info stm32f7_clk_info = {/* 200 MHz */ .sys_pll_psc = { - .pll_m =25 , .pll_n =400 , .pll_p =2 , .pll_q =8 ,
@@ -126,7 +124,8 @@ struct stm32_clk_info stm32f7_clk_info = {struct stm32_clk {struct stm32_rcc_regs *base;struct stm32_pwr_regs *pwr_regs; -struct stm32_clk_info *info; +struct stm32_clk_info info; +unsigned long hse_rate; };static int configure_clocks (struct udevice *dev)
@@ -134,7 +133,7 @@ static int configure_clocks(struct udevice *dev)struct stm32_clk *priv =dev_get_priv (dev);struct stm32_rcc_regs *regs = priv->base;struct stm32_pwr_regs *pwr = priv->pwr_regs; -struct pll_psc sys_pll_psc = priv->info->sys_pll_psc; +struct pll_psc *sys_pll_psc = &priv->info.sys_pll_psc;u32 pllsaicfgr =0 ;/* Reset RCC configuration */
@@ -152,20 +151,20 @@ static int configure_clocks(struct udevice *dev) ;setbits_le32 (®s->cfgr, (( - sys_pll_psc.ahb_psc <<RCC_CFGR_HPRE_SHIFT ) - | (sys_pll_psc.apb1_psc <<RCC_CFGR_PPRE1_SHIFT ) - | (sys_pll_psc.apb2_psc <<RCC_CFGR_PPRE2_SHIFT ))); + sys_pll_psc->ahb_psc <<RCC_CFGR_HPRE_SHIFT ) + | (sys_pll_psc->apb1_psc <<RCC_CFGR_PPRE1_SHIFT ) + | (sys_pll_psc->apb2_psc <<RCC_CFGR_PPRE2_SHIFT )));/* Configure the main PLL */ setbits_le32 (®s->pllcfgr,RCC_PLLCFGR_PLLSRC );/* pll source HSE */ clrsetbits_le32 (®s->pllcfgr,RCC_PLLCFGR_PLLM_MASK , - sys_pll_psc.pll_m <<RCC_PLLCFGR_PLLM_SHIFT ); + sys_pll_psc->pll_m <<RCC_PLLCFGR_PLLM_SHIFT );clrsetbits_le32 (®s->pllcfgr,RCC_PLLCFGR_PLLN_MASK , - sys_pll_psc.pll_n <<RCC_PLLCFGR_PLLN_SHIFT ); + sys_pll_psc->pll_n <<RCC_PLLCFGR_PLLN_SHIFT );clrsetbits_le32 (®s->pllcfgr,RCC_PLLCFGR_PLLP_MASK , - ((sys_pll_psc.pll_p >>1 ) -1 ) <<RCC_PLLCFGR_PLLP_SHIFT ); + ((sys_pll_psc->pll_p >>1 ) -1 ) <<RCC_PLLCFGR_PLLP_SHIFT );clrsetbits_le32 (®s->pllcfgr,RCC_PLLCFGR_PLLQ_MASK , - sys_pll_psc.pll_q <<RCC_PLLCFGR_PLLQ_SHIFT ); + sys_pll_psc->pll_q <<RCC_PLLCFGR_PLLQ_SHIFT );/* Configure the SAI PLL to get a 48 MHz source */ pllsaicfgr = RCC_PLLSAICFGR_PLLSAIR_2 | RCC_PLLSAICFGR_PLLSAIQ_4 |
@@ -178,7 +177,7 @@ static int configure_clocks(struct udevice *dev)while (!(readl (®s->cr) &RCC_CR_PLLRDY )) ; -if (priv->info->v2) {/*stm32f7 case */ +if (priv->info.v2) {/*stm32f7 case */ /* select PLLSAI as 48MHz clock source */ setbits_le32 (®s->dckcfgr2,RCC_DCKCFGRX_CK48MSEL );
@@ -202,7 +201,7 @@ static int configure_clocks(struct udevice *dev)setbits_le32 (®s->apb1enr,RCC_APB1ENR_PWREN ); -if (priv->info->has_overdrive) { +if (priv->info.has_overdrive) {/* * Enable high performance mode * System frequency up to 200 MHz
@@ -241,7 +240,7 @@ static unsigned long stm32_clk_pll48clk_rate(struct stm32_clk *priv, pllq = (readl (®s->pllcfgr) &RCC_PLLCFGR_PLLQ_MASK ) >>RCC_PLLCFGR_PLLQ_SHIFT ; -if (priv->info->v2)/*stm32f7 case */ +if (priv->info.v2)/*stm32f7 case */ pllsai =readl (®s->dckcfgr2) &RCC_DCKCFGRX_CK48MSEL ;else pllsai =readl (®s->dckcfgr) &RCC_DCKCFGRX_CK48MSEL ;
@@ -253,7 +252,7 @@ static unsigned long stm32_clk_pll48clk_rate(struct stm32_clk *priv, >> RCC_PLLSAICFGR_PLLSAIN_SHIFT); pllsaip = ((((readl (®s->pllsaicfgr) &RCC_PLLCFGR_PLLSAIP_MASK ) >>RCC_PLLSAICFGR_PLLSAIP_SHIFT ) +1 ) <<1 ); -return ((CONFIG_STM32_HSE_HZ / pllm) * pllsain) / pllsaip; +return ((priv->hse_rate / pllm) * pllsain) / pllsaip; }/* PLL48CLK is selected from PLLQ */ return sysclk / pllq;
@@ -281,7 +280,7 @@ static unsigned long stm32_clk_get_rate(struct clk *clk) >> RCC_PLLCFGR_PLLN_SHIFT); pllp = ((((readl (®s->pllcfgr) &RCC_PLLCFGR_PLLP_MASK ) >>RCC_PLLCFGR_PLLP_SHIFT ) +1 ) <<1 ); - sysclk = ((CONFIG_STM32_HSE_HZ / pllm) * plln) / pllp; + sysclk = ((priv->hse_rate / pllm) * plln) / pllp; }else {return -EINVAL ; }
@@ -372,6 +371,8 @@ void clock_setup(int peripheral)static int stm32_clk_probe (struct udevice *dev) {struct ofnode_phandle_args args; +struct udevice *fixed_clock_dev =NULL ; +struct clk clk;int err;debug ("%s\n" , __func__);
@@ -387,16 +388,51 @@ static int stm32_clk_probe(struct udevice *dev)switch (dev_get_driver_data (dev)) {case STM32F4 : - priv->info = &stm32f4_clk_info; +memcpy (&priv->info, &stm32f4_clk_info, +sizeof (struct stm32_clk_info ));break ;case STM32F7 : - priv->info = &stm32f7_clk_info; +memcpy (&priv->info, &stm32f7_clk_info, +sizeof (struct stm32_clk_info ));break ;default :return -EINVAL ; } -if (priv->info->has_overdrive) { +/* retrieve HSE frequency (external oscillator) */ + err =uclass_get_device_by_name (UCLASS_CLK ,"clk-hse" , + &fixed_clock_dev); + +if (err) { +pr_err ("Can't find fixed clock (%d)" , err); +return err; + } + + err =clk_request (fixed_clock_dev, &clk); +if (err) { +pr_err ("Can't request %s clk (%d)" , fixed_clock_dev->name, + err); +return err; + } + +/* +* set pllm factor accordingly to the external oscillator +* frequency (HSE). For STM32F4 and STM32F7, we want VCO +* freq at 1MHz +* if input PLL frequency is 25Mhz, divide it by 25 +*/ + clk.id =0 ; + priv->hse_rate =clk_get_rate (&clk); + +if (priv->hse_rate <1000000 ) { +pr_err ("%s: unexpected HSE clock rate = %ld \"n" , __func__, + priv->hse_rate); +return -EINVAL ; + } + + priv->info.sys_pll_psc.pll_m = priv->hse_rate /1000000 ; + +if (priv->info.has_overdrive) { err =dev_read_phandle_with_args (dev,"st,syscfg" ,NULL ,0 ,0 , &args);if (err) {
Signature · 1 line
1.9.1
PATCH 2/6 clk: stm32: retrieve external oscillator frequency from DT
Quoted 11 lines · patrice.chotard at st.com
From: Patrice Chotard <[email protected]>
All current STM32F4 supported boards uses a 8MHz external oscillator. All current STM32F7 supported boards uses a 25MHz external oscillator.
In order to introduce the new stm32f429-evaluation board which uses a 25MHz external oscillator without creating a dedicated struct
stm32_clk_infofor this board, retrieve the external oscillator frequency from DT and setpll_maccordingly to obtain 1MHz for the VCO.Signed-off-by Patrice Chotard <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180128/6ec55ada/attachment.sig>
PATCH 3/6 configs: stm32f: Remove STM32_HSE_HZ for all STM32F series
In reply to patrice.chotard at st.comFrom: Patrice Chotard <[email protected]>
As clk_stm32f driver is able to retrieve HSE frequency from DT, CONFIG_STM32_HSE_HZ becomes useless.
--- include/configs/stm32f429-discovery.h | 2 -- include/configs/stm32f469-discovery.h | 1 - include/configs/stm32f746-disco.h | 1 - 3 files changed, 4 deletions(-)
include/configs/stm32f429-discovery.h +0 -2
@@ -43,8 +43,6 @@#define CONFIG_STM32_FLASH -#define CONFIG_STM32_HSE_HZ 8000000 -#define CONFIG_SYS_CLK_FREQ 180000000/* 180 MHz */ #define CONFIG_SYS_HZ_CLOCK 1000000/* Timer is clocked at 1MHz */
include/configs/stm32f469-discovery.h +0 -1
@@ -39,7 +39,6 @@#define CONFIG_STM32_FLASH -#define CONFIG_STM32_HSE_HZ 8000000#define CONFIG_SYS_CLK_FREQ 180000000/* 180 MHz */ #define CONFIG_SYS_HZ_CLOCK 1000000/* Timer is clocked at 1MHz */
include/configs/stm32f746-disco.h +0 -1
@@ -37,7 +37,6 @@#define CONFIG_MII #define CONFIG_PHY_SMSC -#define CONFIG_STM32_HSE_HZ 25000000#define CONFIG_SYS_CLK_FREQ 200000000/* 200 MHz */ #define CONFIG_SYS_HZ_CLOCK 1000000/* Timer is clocked at 1MHz */
Signature · 1 line
1.9.1
PATCH 3/6 configs: stm32f: Remove STM32_HSE_HZ for all STM32F series
Quoted 6 lines · patrice.chotard at st.com
From: Patrice Chotard <[email protected]>
As
clk_stm32fdriver is able to retrieve HSE frequency from DT,CONFIG_STM32_HSE_HZbecomes useless.Signed-off-by Patrice Chotard <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180128/0ec4a9d9/attachment.sig>
PATCH 4/6 board: stm32: Add stm32f429-evaluation board support
In reply to patrice.chotard at st.comFrom: Patrice Chotard <[email protected]>
Add stm32f429-evaluation board support.
For more information, please visit:
http://www.st.com/en/evaluation-tools/stm32429i-eval.html
--- arch/arm/mach-stm32/stm32f4/Kconfig | 4 ++ board/st/stm32f429-evaluation/Kconfig | 19 ++++++ board/st/stm32f429-evaluation/MAINTAINERS | 6 ++ board/st/stm32f429-evaluation/Makefile | 8 +++ .../st/stm32f429-evaluation/stm32f429-evaluation.c | 74 ++++++++++++++++++++++ configs/stm32f429-evaluation_defconfig | 31 +++++++++ include/configs/stm32f429-evaluation.h | 65 +++++++++++++++++++ 7 files changed, 207 insertions(+) create mode 100644 board/st/stm32f429-evaluation/Kconfig create mode 100644 board/st/stm32f429-evaluation/MAINTAINERS create mode 100644 board/st/stm32f429-evaluation/Makefile create mode 100644 board/st/stm32f429-evaluation/stm32f429-evaluation.c create mode 100644 configs/stm32f429-evaluation_defconfig create mode 100644 include/configs/stm32f429-evaluation.h
arch/arm/mach-stm32/stm32f4/Kconfig +4 -0
@@ -3,10 +3,14 @@ if STM32F4 config TARGET_STM32F429_DISCOVERY bool "STM32F429 Discovery board" +config TARGET_STM32F429_EVALUATION + bool "STM32F429 Evaluation board" + config TARGET_STM32F469_DISCOVERY bool "STM32F469 Discovery board" source "board/st/stm32f429-discovery/Kconfig" +source "board/st/stm32f429-evaluation/Kconfig" source "board/st/stm32f469-discovery/Kconfig" endif
board/st/stm32f429-evaluation/Kconfig new file +19 -0
@@ -0,0 +1,19 @@ +if TARGET_STM32F429_EVALUATION + +config SYS_BOARD + string + default "stm32f429-evaluation" + +config SYS_VENDOR + string + default "st" + +config SYS_SOC + string + default "stm32f4" + +config SYS_CONFIG_NAME + string + default "stm32f429-evaluation" + +endif
board/st/stm32f429-evaluation/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +STM32F429-EVALUATION BOARD +M: Patrice Chotard <[email protected]> +S: Maintained +F: board/st/stm32f429-evaluation/ +F: include/configs/stm32f429-evaluation.h +F: configs/stm32f429-evaluation_defconfig
board/st/stm32f429-evaluation/Makefile new file +8 -0
@@ -0,0 +1,8 @@ +# +# Copyright (C) 2018, STMicroelectronics - All Rights Reserved +# Author(s): Patrice CHOTARD, <[email protected]> for STMicroelectronics. +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y := stm32f429-evaluation.o
board/st/stm32f429-evaluation/stm32f429-evaluation.c new file +74 -0
74 lines not on this page · raw message
configs/stm32f429-evaluation_defconfig new file +31 -0
@@ -0,0 +1,31 @@ +CONFIG_ARM=y +CONFIG_STM32=y +CONFIG_SYS_MALLOC_F_LEN=0xF00 +CONFIG_STM32F4=y +CONFIG_TARGET_STM32F429_EVALUATION=y +CONFIG_DEFAULT_DEVICE_TREE="stm32429i-eval" +CONFIG_BOOTDELAY=3 +# CONFIG_DISPLAY_CPUINFO is not set +CONFIG_BOARD_EARLY_INIT_F=y +CONFIG_HUSH_PARSER=y +CONFIG_SYS_PROMPT="U-Boot > " +CONFIG_CMD_BOOTZ=y +# CONFIG_CMD_BOOTEFI_HELLO_COMPILE is not set +CONFIG_CMD_IMLS=y +CONFIG_CMD_GPT=y +# CONFIG_RANDOM_UUID is not set +CONFIG_CMD_MMC=y +# CONFIG_CMD_SETEXPR is not set +CONFIG_CMD_CACHE=y +CONFIG_CMD_TIMER=y +CONFIG_CMD_EXT2=y +CONFIG_CMD_EXT4=y +CONFIG_CMD_FAT=y +CONFIG_CMD_FS_GENERIC=y +# CONFIG_DOS_PARTITION is not set +CONFIG_OF_CONTROL=y +CONFIG_OF_EMBED=y +# CONFIG_BLK is not set +CONFIG_DM_MMC=y +CONFIG_ARM_PL180_MMCI=y +CONFIG_MTD_NOR_FLASH=y
include/configs/stm32f429-evaluation.h new file +65 -0
65 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH 4/6 board: stm32: Add stm32f429-evaluation board support
Quoted 7 lines · patrice.chotard at st.com
From: Patrice Chotard <[email protected]>
Add stm32f429-evaluation board support.
For more information, please visit:
http://www.st.com/en/evaluation-tools/stm32429i-eval.htmlSigned-off-by Patrice Chotard <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180128/014b3628/attachment.sig>
PATCH 5/6 ARM: dts: stm32: Add STM32F429 Evaluation board support
In reply to patrice.chotard at st.comFrom: Patrice Chotard <[email protected]>
This DT file comes from kernel v4.15, this board offers :
_ STM32F429NIH6 microcontroller
_ 4.3� color TFT LCD with resistive touchscreen (480 x 272 pixels) _ Six 5 V power supply options:
Power jack
ST-LINK/V2 USB connector
User USB HS connector
User USB FS1 connector
User USB FS2 connector
Daughterboard
_ SAI Audio DAC, stereo audio jack which supports headset with
microphone
_ Stereo digital microphone, audio terminal connector used to connect
external speakers
_ 2 GBytes (or more) SDIO interface MicroSD card
_ RF EEPROM on I2 C compatible serial interface
_ RS-232 communication
_ IrDA transceiver
_ JTAG/SWD and ETM trace debug support, ST-LINK/V2 embedded _ IEEE-802.3-2002 compliant Ethernet connector
_ Camera module
_ 8M x 32-bit SDRAM, 1M x 16-bit SRAM and 8M x 16-bit NOR Flash _ Joystick with 4-directional control and selector
_ Reset, Wakeup and Tamper buttons
_ 4 color user LEDs
_ Extension connectors & memory connectors for daughterboard or
wrapping board
_ USB OTG HS and FS with Micro-AB connectors
_ RTC with backup battery
_ CAN2.0A/B compliant connection
_ Potentiometer
_ Motor control connector
--- arch/arm/dts/Makefile | 1 + arch/arm/dts/stm32429i-eval.dts | 276 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 277 insertions(+) create mode 100644 arch/arm/dts/stm32429i-eval.dts
arch/arm/dts/Makefile +1 -0
@@ -214,6 +214,7 @@ dtb-$(CONFIG_FSL_LSCH2) += fsl-ls1043a-qds-duart.dtb \ dtb-$(CONFIG_ARCH_SNAPDRAGON) += dragonboard410c.dtb dtb-$(CONFIG_STM32F4) += stm32f429-disco.dtb \ + stm32429i-eval.dtb \ stm32f469-disco.dtb dtb-$(CONFIG_STM32F7) += stm32f746-disco.dtb \
arch/arm/dts/stm32429i-eval.dts new file +276 -0
276 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH 5/6 ARM: dts: stm32: Add STM32F429 Evaluation board support
Quoted 36 lines · patrice.chotard at st.com
From: Patrice Chotard <[email protected]>
This DT file comes from kernel v4.15, this board offers :
_ STM32F429NIH6 microcontroller
_ 4.3” color TFT LCD with resistive touchscreen (480 x 272 pixels) _ Six 5 V power supply options:
Power jack
ST-LINK/V2 USB connector
User USB HS connector
User USB FS1 connector
User USB FS2 connector
Daughterboard
_ SAI Audio DAC, stereo audio jack which supports headset with
microphone
_ Stereo digital microphone, audio terminal connector used to connect
external speakers
_ 2 GBytes (or more) SDIO interface MicroSD card
_ RF EEPROM on I2 C compatible serial interface
_ RS-232 communication
_ IrDA transceiver
_ JTAG/SWD and ETM trace debug support, ST-LINK/V2 embedded _ IEEE-802.3-2002 compliant Ethernet connector
_ Camera module
_ 8M x 32-bit SDRAM, 1M x 16-bit SRAM and 8M x 16-bit NOR Flash _ Joystick with 4-directional control and selector
_ Reset, Wakeup and Tamper buttons
_ 4 color user LEDs
_ Extension connectors & memory connectors for daughterboard or
wrapping board
_ USB OTG HS and FS with Micro-AB connectors
_ RTC with backup battery
_ CAN2.0A/B compliant connection
_ Potentiometer
_ Motor control connector
Quoted 1 line
Signed-off-by Patrice Chotard <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180128/0176aa07/attachment.sig>
PATCH 6/6 ARM: dts: stm32: add stm32429-eval-u-boot dts file
In reply to patrice.chotard at st.comFrom: Patrice Chotard <[email protected]>
_ Add gpio compatible and aliases for stm32f469
_ Add FMC sdram node
_ Add "u-boot,dm-pre-reloc" for rcc, fmc, fixed-clock, pinctrl,
pwrcfg and gpio nodes.
--- arch/arm/dts/stm32429i-eval-u-boot.dtsi | 231 ++++++++++++++++++++++++++++++++ 1 file changed, 231 insertions(+) create mode 100644 arch/arm/dts/stm32429i-eval-u-boot.dtsi
arch/arm/dts/stm32429i-eval-u-boot.dtsi new file +231 -0
@@ -0,0 +1,231 @@ +/* + * Copyright (C) 2018, STMicroelectronics - All Rights Reserved + * Author(s): Patrice Chotard, <[email protected]> for STMicroelectronics. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include <dt-bindings/memory/stm32-sdram.h> +/{ + clocks { + u-boot,dm-pre-reloc; + }; + + aliases { + /* Aliases for gpios so as to use sequence */ + gpio0 = &gpioa; + gpio1 = &gpiob; + gpio2 = &gpioc; + gpio3 = &gpiod; + gpio4 = &gpioe; + gpio5 = &gpiof; + gpio6 = &gpiog; + gpio7 = &gpioh; + gpio8 = &gpioi; + gpio9 = &gpioj; + gpio10 = &gpiok; + }; + + soc { + u-boot,dm-pre-reloc; + pin-controller { + u-boot,dm-pre-reloc; + }; + + fmc: fmc at A0000000 { + compatible = "st,stm32-fmc"; + reg = <0xA0000000 0x1000>; + clocks = <&rcc 0 STM32F4_AHB3_CLOCK(FMC)>; + st,syscfg = <&syscfg>; + pinctrl-0 = <&fmc_pins_d32>; + pinctrl-names = "default"; + st,mem_remap = <4>; + u-boot,dm-pre-reloc; + + /* + * Memory configuration from sdram + * MICRON MT48LC4M32B2B5-7 + */ + bank0: bank at 0 { + st,sdram-control = /bits/ 8 <NO_COL_9 + NO_ROW_12 + MWIDTH_32 + BANKS_4 + CAS_3 + SDCLK_2 + RD_BURST_EN + RD_PIPE_DL_0>; + st,sdram-timing = /bits/ 8 <TMRD_2 + TXSR_6 + TRAS_4 + TRC_6 + TWR_2 + TRP_2 + TRCD_2>; + st,sdram-refcount = < 2812 >; + }; + }; + }; +}; + +&clk_hse { + u-boot,dm-pre-reloc; +}; + +&clk_lse { + u-boot,dm-pre-reloc; +}; + +&clk_i2s_ckin { + u-boot,dm-pre-reloc; +}; + +&pwrcfg { + u-boot,dm-pre-reloc; +}; + +&syscfg { + u-boot,dm-pre-reloc; +}; + +&rcc { + u-boot,dm-pre-reloc; +}; + +&gpioa { + compatible = "st,stm32-gpio"; + u-boot,dm-pre-reloc; +}; + +&gpiob { + compatible = "st,stm32-gpio"; + u-boot,dm-pre-reloc; +}; + +&gpioc { + compatible = "st,stm32-gpio"; + u-boot,dm-pre-reloc; +}; + +&gpiod { + compatible = "st,stm32-gpio"; + u-boot,dm-pre-reloc; +}; + +&gpioe { + compatible = "st,stm32-gpio"; + u-boot,dm-pre-reloc; +}; + +&gpiof { + compatible = "st,stm32-gpio"; + u-boot,dm-pre-reloc; +}; + +&gpiog { + compatible = "st,stm32-gpio"; + u-boot,dm-pre-reloc; +}; + +&gpioh { + compatible = "st,stm32-gpio"; + u-boot,dm-pre-reloc; +}; + +&gpioi { + compatible = "st,stm32-gpio"; + u-boot,dm-pre-reloc; +}; + +&gpioj { + compatible = "st,stm32-gpio"; + u-boot,dm-pre-reloc; +}; + +&gpiok { + compatible = "st,stm32-gpio"; + u-boot,dm-pre-reloc; +}; + +&pinctrl { + usart1_pins_a: usart1 at 0 { + u-boot,dm-pre-reloc; + pins1 { + u-boot,dm-pre-reloc; + }; + pins2 { + u-boot,dm-pre-reloc; + }; + }; + + fmc_pins_d32: fmc_d32 at 0 { + u-boot,dm-pre-reloc; + pins + { + pinmux = <STM32_PINMUX('I',10, AF12)>, /* D31 */ + <STM32_PINMUX('I', 9, AF12)>, /* D30 */ + <STM32_PINMUX('I', 7, AF12)>, /* D29 */ + <STM32_PINMUX('I', 6, AF12)>, /* D28 */ + <STM32_PINMUX('I', 3, AF12)>, /* D27 */ + <STM32_PINMUX('I', 2, AF12)>, /* D26 */ + <STM32_PINMUX('I', 1, AF12)>, /* D25 */ + <STM32_PINMUX('I', 0, AF12)>, /* D24 */ + <STM32_PINMUX('H',15, AF12)>, /* D23 */ + <STM32_PINMUX('H',14, AF12)>, /* D22 */ + <STM32_PINMUX('H',13, AF12)>, /* D21 */ + <STM32_PINMUX('H',12, AF12)>, /* D20 */ + <STM32_PINMUX('H',11, AF12)>, /* D19 */ + <STM32_PINMUX('H',10, AF12)>, /* D18 */ + <STM32_PINMUX('H', 9, AF12)>, /* D17 */ + <STM32_PINMUX('H', 8, AF12)>, /* D16 */ + + <STM32_PINMUX('D',10, AF12)>, /* D15 */ + <STM32_PINMUX('D', 9, AF12)>, /* D14 */ + <STM32_PINMUX('D', 8, AF12)>, /* D13 */ + <STM32_PINMUX('E',15, AF12)>, /* D12 */ + <STM32_PINMUX('E',14, AF12)>, /* D11 */ + <STM32_PINMUX('E',13, AF12)>, /* D10 */ + <STM32_PINMUX('E',12, AF12)>, /* D09 */ + <STM32_PINMUX('E',11, AF12)>, /* D08 */ + <STM32_PINMUX('E',10, AF12)>, /* D07 */ + <STM32_PINMUX('E', 9, AF12)>, /* D06 */ + <STM32_PINMUX('E', 8, AF12)>, /* D05 */ + <STM32_PINMUX('E', 7, AF12)>, /* D04 */ + <STM32_PINMUX('D', 1, AF12)>, /* D03 */ + <STM32_PINMUX('D', 0, AF12)>, /* D02 */ + <STM32_PINMUX('D',15, AF12)>, /* D01 */ + <STM32_PINMUX('D',14, AF12)>, /* D00 */ + + <STM32_PINMUX('E', 0, AF12)>, /* NBL0 */ + <STM32_PINMUX('E', 1, AF12)>, /* NBL1 */ + <STM32_PINMUX('I', 4, AF12)>, /* NBL2 */ + <STM32_PINMUX('I', 5, AF12)>, /* NBL3 */ + + <STM32_PINMUX('G', 5, AF12)>, /* A15-BA1 */ + <STM32_PINMUX('G', 4, AF12)>, /* A14-BA0 */ + <STM32_PINMUX('G', 3, AF12)>, /* A13 */ + <STM32_PINMUX('G', 2, AF12)>, /* A12 */ + <STM32_PINMUX('G', 1, AF12)>, /* A11 */ + <STM32_PINMUX('G', 0, AF12)>, /* A10 */ + <STM32_PINMUX('F',15, AF12)>, /* A09 */ + <STM32_PINMUX('F',14, AF12)>, /* A08 */ + <STM32_PINMUX('F',13, AF12)>, /* A07 */ + <STM32_PINMUX('F',12, AF12)>, /* A06 */ + <STM32_PINMUX('F', 5, AF12)>, /* A05 */ + <STM32_PINMUX('F', 4, AF12)>, /* A04 */ + <STM32_PINMUX('F', 3, AF12)>, /* A03 */ + <STM32_PINMUX('F', 2, AF12)>, /* A02 */ + <STM32_PINMUX('F', 1, AF12)>, /* A01 */ + <STM32_PINMUX('F', 0, AF12)>, /* A00 */ + + <STM32_PINMUX('H', 3, AF12)>, /* SDNE0 */ + <STM32_PINMUX('H', 5, AF12)>, /* SDNWE */ + <STM32_PINMUX('F',11, AF12)>, /* SDNRAS */ + <STM32_PINMUX('G',15, AF12)>, /* SDNCAS */ + <STM32_PINMUX('H', 2, AF12)>, /* SDCKE0 */ + <STM32_PINMUX('G', 8, AF12)>; /* SDCLK> */ + slew-rate = <2>; + u-boot,dm-pre-reloc; + }; + }; +};
Signature · 1 line
1.9.1
PATCH 6/6 ARM: dts: stm32: add stm32429-eval-u-boot dts file
Quoted 8 lines · patrice.chotard at st.com
From: Patrice Chotard <[email protected]>
_ Add gpio compatible and aliases for stm32f469
_ Add FMC sdram node
_ Add "u-boot,dm-pre-reloc" for rcc, fmc, fixed-clock, pinctrl,
pwrcfg and gpio nodes.Signed-off-by Patrice Chotard <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180128/6f534ea9/attachment.sig>