Add STMicroelectronics STiH410-B2260 board
Subsystems (9)
v7 cover Add STMicroelectronics STiH410-B2260 board
From: Patrice Chotard <[email protected]>
v7: _ typo: replace "Slow" by "Low" in patch 9 Kconfig's help
v6: _ fix last minute bug in pinctrl driver
v5: _ Add Simon Glass's reviewed-by
_ move board Kconfig description from patch 1 to 9
v4: _ fix STi serial driver to be fully DT compliant
_ remove arch/arm/include/asm/arch-stih410/sti.h and
include/dm/platform_data/serial_sti_asc.h which became useless
_ board file cleanup
_ fix some nits in sti_sdhci.c
_ rebased on top of v2017.03-rc2
v3: _ add reviewed-by
_ add top level MAINTAINERS entry and in the board MAINTAINERS _ use the fallback table from include/config_fallbacks.h
_ minor update in sti_sdhci.c
_ reorder patches with functionnal board and defconfig in last _ remove arch/arm/mach-sti/cpu.c and replace it by a sysreset DM driver _ remove arch/arm/mach-sti/timer.c by a timer DM driver
_ remove useless arch/arm/include/asm/arch-stih410/syscfg.h _ remove useless arch/arm/include/asm/arch-stih410/gpio.h and update
arch/arm/include/asm/gpio.h for ARCH_STI in patch 5
v2: _ fix remarks from Jaechon Chung on SDHCI patch
_ fix remarks from Antonio Borneo on board patch _ replace some macro by U-boot generic's one _ add missing maintainers in recipients
Patrice Chotard (9):
arm: Add support for STMicroelectronics STiH410 soc
STiH410: Add STi timer driver
STiH410: Add STi sysreset driver
STiH410: Add STi serial driver
gpio: do not include <asm/arch/gpio.h> for ARCH_STI
STiH410: Add STi SDHCI driver
STiH410: Add STi pinctrl driver
STiH410-B2260: Add device tree
board: Add STMicroelectronics STiH410-B2260 support
MAINTAINERS | 6 + arch/arm/Kconfig | 13 + arch/arm/dts/Makefile | 2 + arch/arm/dts/st-pincfg.h | 71 ++ arch/arm/dts/stih407-clock.dtsi | 326 ++++++ arch/arm/dts/stih407-family.dtsi | 977 +++++++++++++++ arch/arm/dts/stih407-pinctrl.dtsi | 1303 +++++++++++++++++++++ arch/arm/dts/stih410-b2260.dts | 226 ++++ arch/arm/dts/stih410-clock.dtsi | 347 ++++++ arch/arm/dts/stih410-pinctrl.dtsi | 34 + arch/arm/dts/stih410.dtsi | 454 +++++++ arch/arm/include/asm/arch-stih410/sdhci.h | 68 ++ arch/arm/include/asm/gpio.h | 2 +- arch/arm/mach-sti/Kconfig | 31 + board/st/stih410-b2260/Kconfig | 19 + board/st/stih410-b2260/MAINTAINERS | 7 + board/st/stih410-b2260/Makefile | 8 + board/st/stih410-b2260/board.c | 28 + configs/stih410-b2260_defconfig | 26 + drivers/mmc/Kconfig | 7 + drivers/mmc/Makefile | 1 + drivers/mmc/sti_sdhci.c | 141 +++ drivers/pinctrl/Kconfig | 10 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-sti.c | 320 +++++ drivers/serial/Kconfig | 8 + drivers/serial/Makefile | 1 + drivers/serial/serial_sti_asc.c | 211 ++++ drivers/sysreset/Makefile | 1 + drivers/sysreset/sysreset_sti.c | 82 ++ drivers/timer/Kconfig | 7 + drivers/timer/Makefile | 1 + drivers/timer/sti-timer.c | 78 ++ include/configs/stih410-b2260.h | 60 + include/dt-bindings/clock/stih407-clks.h | 90 ++ include/dt-bindings/clock/stih410-clks.h | 25 + include/dt-bindings/interrupt-controller/irq-st.h | 30 + include/dt-bindings/mfd/st-lpc.h | 16 + include/dt-bindings/reset/stih407-resets.h | 65 + 39 files changed, 5102 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/st-pincfg.h create mode 100644 arch/arm/dts/stih407-clock.dtsi create mode 100644 arch/arm/dts/stih407-family.dtsi create mode 100644 arch/arm/dts/stih407-pinctrl.dtsi create mode 100644 arch/arm/dts/stih410-b2260.dts create mode 100644 arch/arm/dts/stih410-clock.dtsi create mode 100644 arch/arm/dts/stih410-pinctrl.dtsi create mode 100644 arch/arm/dts/stih410.dtsi create mode 100644 arch/arm/include/asm/arch-stih410/sdhci.h create mode 100644 arch/arm/mach-sti/Kconfig create mode 100644 board/st/stih410-b2260/Kconfig create mode 100644 board/st/stih410-b2260/MAINTAINERS create mode 100644 board/st/stih410-b2260/Makefile create mode 100644 board/st/stih410-b2260/board.c create mode 100644 configs/stih410-b2260_defconfig create mode 100644 drivers/mmc/sti_sdhci.c create mode 100644 drivers/pinctrl/pinctrl-sti.c create mode 100644 drivers/serial/serial_sti_asc.c create mode 100644 drivers/sysreset/sysreset_sti.c create mode 100644 drivers/timer/sti-timer.c create mode 100644 include/configs/stih410-b2260.h create mode 100644 include/dt-bindings/clock/stih407-clks.h create mode 100644 include/dt-bindings/clock/stih410-clks.h create mode 100644 include/dt-bindings/interrupt-controller/irq-st.h create mode 100644 include/dt-bindings/mfd/st-lpc.h create mode 100644 include/dt-bindings/reset/stih407-resets.h
Signature · 1 line
1.9.1
PATCH v7 1/9 arm: Add support for STMicroelectronics STiH410 soc
From: Patrice Chotard <[email protected]>
The STiH410 is an advanced multi-HD AVC processor with 3D graphics acceleration and 1.5-GHz ARM Cortex-A9 SMP CPU part of the STiH407 family.
It has wide connectivity including USB 3.0, PCI-e, SATA and gigabit ethernet.
--- MAINTAINERS | 6 ++++++ arch/arm/Kconfig | 9 +++++++++ arch/arm/mach-sti/Kconfig | 6 ++++++ 3 files changed, 21 insertions(+) create mode 100644 arch/arm/mach-sti/Kconfig
MAINTAINERS +6 -0
@@ -165,6 +165,12 @@ S: Maintained F: arch/arm/cpu/armv7/stv0991/ F: arch/arm/include/asm/arch-stv0991/ +ARM STI +M: Patrice Chotard <[email protected]> +S: Maintained +F: arch/arm/mach-sti/ +F: arch/arm/include/asm/arch-sti*/ + ARM SUNXI M: Jagan Teki <[email protected]> M: Maxime Ripard <[email protected]>
arch/arm/Kconfig +9 -0
@@ -982,6 +982,13 @@ config STM32 select DM select DM_SERIAL +config ARCH_STI + bool "Support STMicrolectronics SoCs" + select CPU_V7 + help + Support for STMicroelectronics STiH407/10 SoC family. + This SoC is used on Linaro 96Board STiH410-B2260 + config ARCH_ROCKCHIP bool "Support Rockchip SoCs" select OF_CONTROL
@@ -1060,6 +1067,8 @@ source "arch/arm/mach-snapdragon/Kconfig" source "arch/arm/mach-socfpga/Kconfig" +source "arch/arm/mach-sti/Kconfig" + source "arch/arm/mach-stm32/Kconfig" source "arch/arm/mach-tegra/Kconfig"
arch/arm/mach-sti/Kconfig new file +6 -0
@@ -0,0 +1,6 @@ +if ARCH_STI + +config SYS_SOC + default "stih410" + +endif
Signature · 1 line
1.9.1
PATCH v7 1/9 arm: Add support for STMicroelectronics STiH410 soc
Quoted 10 lines · Patrice Chotard
From: Patrice Chotard <[email protected]>
The STiH410 is an advanced multi-HD AVC processor with 3D graphics acceleration and 1.5-GHz ARM Cortex-A9 SMP CPU part of the STiH407 family.
It has wide connectivity including USB 3.0, PCI-e, SATA and gigabit ethernet.
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: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170316/814b336f/attachment.sig>
PATCH v7 2/9 STiH410: Add STi timer driver
In reply to patrice.chotard at st.comFrom: Patrice Chotard <[email protected]>
Add ARM global timer based timer
--- drivers/timer/Kconfig | 7 +++++ drivers/timer/Makefile | 1 + drivers/timer/sti-timer.c | 78 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 86 insertions(+) create mode 100644 drivers/timer/sti-timer.c
drivers/timer/Kconfig +7 -0
@@ -58,4 +58,11 @@ config AST_TIMER This is mostly because they all share several registers which makes it difficult to completely separate them. +config STI_TIMER + bool "STi timer support" + depends on TIMER + default y if ARCH_STI + help + Select this to enable a timer for STi devices. + endmenu
drivers/timer/Makefile +1 -0
@@ -10,3 +10,4 @@ obj-$(CONFIG_SANDBOX_TIMER) += sandbox_timer.o obj-$(CONFIG_X86_TSC_TIMER) += tsc_timer.o obj-$(CONFIG_OMAP_TIMER) += omap-timer.o obj-$(CONFIG_AST_TIMER) += ast_timer.o +obj-$(CONFIG_STI_TIMER) += sti-timer.o
drivers/timer/sti-timer.c new file +78 -0
78 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH v7 2/9 STiH410: Add STi timer driver
Quoted 6 lines · Patrice Chotard
From: Patrice Chotard <[email protected]>
Add ARM global timer based timer
Signed-off-by Patrice Chotard <[email protected]>Reviewed-by Simon Glass <[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: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170316/a85447d3/attachment.sig>
PATCH v7 3/9 STiH410: Add STi sysreset driver
In reply to patrice.chotard at st.comFrom: Patrice Chotard <[email protected]>
--- drivers/sysreset/Makefile | 1 + drivers/sysreset/sysreset_sti.c | 82 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 drivers/sysreset/sysreset_sti.c
drivers/sysreset/Makefile +1 -0
@@ -13,5 +13,6 @@ obj-$(CONFIG_ROCKCHIP_RK3288) += sysreset_rk3288.o obj-$(CONFIG_ROCKCHIP_RK3399) += sysreset_rk3399.o obj-$(CONFIG_SANDBOX) += sysreset_sandbox.o obj-$(CONFIG_ARCH_SNAPDRAGON) += sysreset_snapdragon.o +obj-$(CONFIG_ARCH_STI) += sysreset_sti.o obj-$(CONFIG_TARGET_XTFPGA) += sysreset_xtfpga.o obj-$(CONFIG_ARCH_ASPEED) += sysreset_ast.o
drivers/sysreset/sysreset_sti.c new file +82 -0
82 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH v7 3/9 STiH410: Add STi sysreset driver
Quoted 4 lines · Patrice Chotard
From: Patrice Chotard <[email protected]>
Signed-off-by Patrice Chotard <[email protected]>Reviewed-by Simon Glass <[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: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170316/f1704179/attachment.sig>
PATCH v7 4/9 STiH410: Add STi serial driver
In reply to patrice.chotard at st.comFrom: Patrice Chotard <[email protected]>
This patch adds support to ASC (asynchronous serial controller) driver, which is basically a standard serial driver. This IP is common across other STMicroelectronics SoCs
--- arch/arm/Kconfig | 2 + drivers/serial/Kconfig | 8 ++ drivers/serial/Makefile | 1 + drivers/serial/serial_sti_asc.c | 211 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 222 insertions(+) create mode 100644 drivers/serial/serial_sti_asc.c
arch/arm/Kconfig +2 -0
@@ -985,6 +985,8 @@ config STM32 config ARCH_STI bool "Support STMicrolectronics SoCs" select CPU_V7 + select DM + select DM_SERIAL help Support for STMicroelectronics STiH407/10 SoC family. This SoC is used on Linaro 96Board STiH410-B2260
drivers/serial/Kconfig +8 -0
@@ -413,4 +413,12 @@ config PXA_SERIAL If you have a machine based on a Marvell XScale PXA2xx CPU you can enable its onboard serial ports by enabling this option. +config STI_ASC_SERIAL + bool "STMicroelectronics on-chip UART" + depends on DM_SERIAL && ARCH_STI + help + Select this to enable Asynchronous Serial Controller available + on STiH410 SoC. This is a basic implementation, it supports + following baudrate 9600, 19200, 38400, 57600 and 115200. + endmenu
drivers/serial/Makefile +1 -0
@@ -41,6 +41,7 @@ obj-$(CONFIG_FSL_LINFLEXUART) += serial_linflexuart.o obj-$(CONFIG_ARC_SERIAL) += serial_arc.o obj-$(CONFIG_UNIPHIER_SERIAL) += serial_uniphier.o obj-$(CONFIG_STM32_SERIAL) += serial_stm32.o +obj-$(CONFIG_STI_ASC_SERIAL) += serial_sti_asc.o obj-$(CONFIG_PIC32_SERIAL) += serial_pic32.o obj-$(CONFIG_STM32X7_SERIAL) += serial_stm32x7.o obj-$(CONFIG_BCM283X_MU_SERIAL) += serial_bcm283x_mu.o
drivers/serial/serial_sti_asc.c new file +211 -0
211 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH v7 4/9 STiH410: Add STi serial driver
Quoted 8 lines · Patrice Chotard
From: Patrice Chotard <[email protected]>
This patch adds support to ASC (asynchronous serial controller) driver, which is basically a standard serial driver. This IP is common across other STMicroelectronics SoCs
Signed-off-by Patrice Chotard <[email protected]>Reviewed-by Simon Glass <[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: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170316/450288f9/attachment.sig>
PATCH v7 5/9 gpio: do not include <asm/arch/gpio.h> for ARCH_STI
In reply to patrice.chotard at st.comFrom: Patrice Chotard <[email protected]>
As no gpio.h is defined in arch/arm/include/asm/arch-stih410, to avoid compilation failure, do not include asm/arch/gpio.h.
This is needed for example when including sdhci.h, which include asm/gpio.h>.
--- arch/arm/include/asm/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/include/asm/gpio.h +1 -1
@@ -1,4 +1,4 @@ -#ifndef CONFIG_ARCH_UNIPHIER +#if !defined(CONFIG_ARCH_UNIPHIER ) && !defined(CONFIG_ARCH_STI )#include <asm/arch/gpio.h> #endif #include <asm-generic/gpio.h>
Signature · 1 line
1.9.1
PATCH v7 5/9 gpio: do not include <asm/arch/gpio.h> for ARCH_STI
Quoted 10 lines · Patrice Chotard
From: Patrice Chotard <[email protected]>
As no
gpio.his defined inarch/arm/include/asm/arch-stih410, to avoid compilation failure, do not includeasm/arch/gpio.h.This is needed for example when including
sdhci.h, which includeasm/gpio.h>.Signed-off-by Patrice Chotard <[email protected]>Reviewed-by Simon Glass <[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: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170316/6fb4ef82/attachment.sig>
PATCH v7 6/9 STiH410: Add STi SDHCI driver
In reply to patrice.chotard at st.comFrom: Patrice Chotard <[email protected]>
Add SDHCI host controller found on STMicroelectronics SoCs
On some ST SoCs, i.e. STiH407/STiH410, the MMC devices can live inside a dedicated flashSS sub-system that provides an extend subset of registers that can be used to configure the Arasan MMC/SD Host Controller.
This means, that the SDHCI Arasan Controller can be configured to be eMMC4.5 or 4.3 spec compliant.
W/o these settings the SDHCI will configure and use the MMC/SD controller with limited features e.g. PIO mode, no DMA, no HS etc.
--- arch/arm/Kconfig | 2 + arch/arm/include/asm/arch-stih410/sdhci.h | 68 ++++++++++++++ drivers/mmc/Kconfig | 7 ++ drivers/mmc/Makefile | 1 + drivers/mmc/sti_sdhci.c | 141 ++++++++++++++++++++++++++++++ 5 files changed, 219 insertions(+) create mode 100644 arch/arm/include/asm/arch-stih410/sdhci.h create mode 100644 drivers/mmc/sti_sdhci.c
arch/arm/Kconfig +2 -0
@@ -987,6 +987,8 @@ config ARCH_STI select CPU_V7 select DM select DM_SERIAL + select BLK + select DM_MMC help Support for STMicroelectronics STiH407/10 SoC family. This SoC is used on Linaro 96Board STiH410-B2260
arch/arm/include/asm/arch-stih410/sdhci.h new file +68 -0
68 lines not on this page · raw message
drivers/mmc/Kconfig +7 -0
@@ -299,6 +299,13 @@ config MMC_SDHCI_SPEAR If unsure, say N. +config MMC_SDHCI_STI + bool "SDHCI support for STMicroelectronics SoC" + depends on MMC_SDHCI + help + This selects the Secure Digital Host Controller Interface (SDHCI) + on STMicroelectronics STiH410 SoC. + config MMC_SDHCI_XENON bool "SDHCI support for the Xenon SDHCI controller" depends on MMC_SDHCI && DM_MMC && OF_CONTROL
drivers/mmc/Makefile +1 -0
@@ -61,6 +61,7 @@ obj-$(CONFIG_MMC_SDHCI_PIC32) += pic32_sdhci.o obj-$(CONFIG_MMC_SDHCI_ROCKCHIP) += rockchip_sdhci.o obj-$(CONFIG_MMC_SDHCI_S5P) += s5p_sdhci.o obj-$(CONFIG_MMC_SDHCI_SPEAR) += spear_sdhci.o +obj-$(CONFIG_MMC_SDHCI_STI) += sti_sdhci.o obj-$(CONFIG_MMC_SDHCI_TEGRA) += tegra_mmc.o obj-$(CONFIG_MMC_SDHCI_XENON) += xenon_sdhci.o obj-$(CONFIG_MMC_SDHCI_ZYNQ) += zynq_sdhci.o
drivers/mmc/sti_sdhci.c new file +141 -0
141 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH v7 6/9 STiH410: Add STi SDHCI driver
Quoted 12 lines · Patrice Chotard
From: Patrice Chotard <[email protected]>
Add SDHCI host controller found on STMicroelectronics SoCs
On some ST SoCs, i.e. STiH407/STiH410, the MMC devices can live inside a dedicated flashSS sub-system that provides an extend subset of registers that can be used to configure the Arasan MMC/SD Host Controller.
This means, that the SDHCI Arasan Controller can be configured to be eMMC4.5 or 4.3 spec compliant.
Quoted 6 lines
W/o these settings the SDHCI will configure and use the MMC/SD controller with limited features e.g. PIO mode, no DMA, no HS etc.
Signed-off-by Patrice Chotard <[email protected]>Reviewed-by Simon Glass <[email protected]>Reviewed-by Jaehoon Chung <[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: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170316/3abb5113/attachment.sig>
PATCH v7 7/9 STiH410: Add STi pinctrl driver
In reply to patrice.chotard at st.comFrom: Patrice Chotard <[email protected]>
Add STMicroelectronics STiH410 pinctrl driver
--- drivers/pinctrl/Kconfig | 10 ++ drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-sti.c | 320 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 331 insertions(+) create mode 100644 drivers/pinctrl/pinctrl-sti.c
drivers/pinctrl/Kconfig +10 -0
@@ -175,6 +175,16 @@ config PIC32_PINCTRL by a device tree node which contains both GPIO defintion and pin control functions. +config PINCTRL_STI + bool "STMicroelectronics STi pin-control and pin-mux driver" + depends on DM && ARCH_STI + default y + help + Support pin multiplexing control on STMicrolectronics STi SoCs. + The driver is controlled by a device tree node which contains both + the GPIO definitions and pin control functions for each available multiplex + function. + endif source "drivers/pinctrl/meson/Kconfig"
drivers/pinctrl/Makefile +1 -0
@@ -16,3 +16,4 @@ obj-$(CONFIG_PIC32_PINCTRL) += pinctrl_pic32.o obj-$(CONFIG_PINCTRL_EXYNOS) += exynos/ obj-$(CONFIG_PINCTRL_MESON) += meson/ obj-$(CONFIG_PINCTRL_MVEBU) += mvebu/ +obj-$(CONFIG_PINCTRL_STI) += pinctrl-sti.o
drivers/pinctrl/pinctrl-sti.c new file +320 -0
320 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH v7 7/9 STiH410: Add STi pinctrl driver
Quoted 7 lines · Patrice Chotard
From: Patrice Chotard <[email protected]>
Add STMicroelectronics STiH410 pinctrl driver
Signed-off-by Patrice Chotard <[email protected]>Reviewed-by Tom Rini <[email protected]>Reviewed-by Simon Glass <[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: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170316/71de7b7f/attachment.sig>
PATCH v7 8/9 STiH410-B2260: Add device tree
In reply to patrice.chotard at st.comFrom: Patrice Chotard <[email protected]>
This device tree has been extracted from v4.9 kernel
--- arch/arm/dts/Makefile | 2 + arch/arm/dts/st-pincfg.h | 71 ++ arch/arm/dts/stih407-clock.dtsi | 326 ++++++ arch/arm/dts/stih407-family.dtsi | 977 +++++++++++++++ arch/arm/dts/stih407-pinctrl.dtsi | 1303 +++++++++++++++++++++ arch/arm/dts/stih410-b2260.dts | 226 ++++ arch/arm/dts/stih410-clock.dtsi | 347 ++++++ arch/arm/dts/stih410-pinctrl.dtsi | 34 + arch/arm/dts/stih410.dtsi | 454 +++++++ drivers/mmc/Kconfig | 2 +- include/dt-bindings/clock/stih407-clks.h | 90 ++ include/dt-bindings/clock/stih410-clks.h | 25 + include/dt-bindings/interrupt-controller/irq-st.h | 30 + include/dt-bindings/mfd/st-lpc.h | 16 + include/dt-bindings/reset/stih407-resets.h | 65 + 15 files changed, 3967 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/st-pincfg.h create mode 100644 arch/arm/dts/stih407-clock.dtsi create mode 100644 arch/arm/dts/stih407-family.dtsi create mode 100644 arch/arm/dts/stih407-pinctrl.dtsi create mode 100644 arch/arm/dts/stih410-b2260.dts create mode 100644 arch/arm/dts/stih410-clock.dtsi create mode 100644 arch/arm/dts/stih410-pinctrl.dtsi create mode 100644 arch/arm/dts/stih410.dtsi create mode 100644 include/dt-bindings/clock/stih407-clks.h create mode 100644 include/dt-bindings/clock/stih410-clks.h create mode 100644 include/dt-bindings/interrupt-controller/irq-st.h create mode 100644 include/dt-bindings/mfd/st-lpc.h create mode 100644 include/dt-bindings/reset/stih407-resets.h
arch/arm/dts/Makefile +2 -0
@@ -339,6 +339,8 @@ dtb-$(CONFIG_ARCH_BCM283X) += \ dtb-$(CONFIG_ARCH_ASPEED) += ast2500-evb.dtb +dtb-$(CONFIG_ARCH_STI) += stih410-b2260.dtb + targets += $(dtb-y) # Add any required device tree compiler flags here
arch/arm/dts/st-pincfg.h new file +71 -0
71 lines not on this page · raw message
arch/arm/dts/stih407-clock.dtsi new file +326 -0
326 lines not on this page · raw message
arch/arm/dts/stih407-family.dtsi new file +977 -0
977 lines not on this page · raw message
arch/arm/dts/stih407-pinctrl.dtsi new file +1303 -0
1,303 lines not on this page · raw message
arch/arm/dts/stih410-b2260.dts new file +226 -0
226 lines not on this page · raw message
arch/arm/dts/stih410-clock.dtsi new file +347 -0
89 lines not on this page · raw message
arch/arm/dts/stih410-pinctrl.dtsi new file +34 -0
Lines of this file are not shown. View the raw message.
arch/arm/dts/stih410.dtsi new file +454 -0
454 lines not on this page · raw message
include/dt-bindings/clock/stih407-clks.h new file +90 -0
90 lines not on this page · raw message
include/dt-bindings/clock/stih410-clks.h new file +25 -0
Lines of this file are not shown. View the raw message.
include/dt-bindings/interrupt-controller/irq-st.h new file +30 -0
Lines of this file are not shown. View the raw message.
include/dt-bindings/mfd/st-lpc.h new file +16 -0
Lines of this file are not shown. View the raw message.
include/dt-bindings/reset/stih407-resets.h new file +65 -0
65 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.9.1
Part of the diff is not shown here. View the raw message.
PATCH v7 8/9 STiH410-B2260: Add device tree
Quoted 7 lines · Patrice Chotard
From: Patrice Chotard <[email protected]>
This device tree has been extracted from v4.9 kernel
Signed-off-by Patrice Chotard <[email protected]>Reviewed-by Tom Rini <[email protected]>Reviewed-by Simon Glass <[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: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170316/5c7b0964/attachment.sig>
PATCH v7 9/9 board: Add STMicroelectronics STiH410-B2260 support
In reply to patrice.chotard at st.comFrom: Patrice Chotard <[email protected]>
This is a 96Board compliant board based on STiH410 SoC:
- 1GB DDR
- On-Board USB combo WiFi/Bluetooth RTL8723BU with PCB soldered antenna
- Ethernet 1000-BaseT
- SATA
- HDMI
- 2 x USB2.0 type A
- 1 x USB2.0 type micro-AB
- SD card slot
- High speed connector (SD/I2C/USB interfaces)
- Low speed connector (UART/I2C/GPIO/SPI/PCM interfaces)
---
v7: _ typo: replace "Slow" by "Low" in patch 9 Kconfig's help
arch/arm/mach-sti/Kconfig | 25 ++++++++++++++++ board/st/stih410-b2260/Kconfig | 19 ++++++++++++ board/st/stih410-b2260/MAINTAINERS | 7 +++++ board/st/stih410-b2260/Makefile | 8 +++++ board/st/stih410-b2260/board.c | 28 ++++++++++++++++++ configs/stih410-b2260_defconfig | 26 +++++++++++++++++ include/configs/stih410-b2260.h | 60 ++++++++++++++++++++++++++++++++++++++ 7 files changed, 173 insertions(+) create mode 100644 board/st/stih410-b2260/Kconfig create mode 100644 board/st/stih410-b2260/MAINTAINERS create mode 100644 board/st/stih410-b2260/Makefile create mode 100644 board/st/stih410-b2260/board.c create mode 100644 configs/stih410-b2260_defconfig create mode 100644 include/configs/stih410-b2260.h
arch/arm/mach-sti/Kconfig +25 -0
@@ -3,4 +3,29 @@ if ARCH_STI config SYS_SOC default "stih410" +choice + prompt "STiH410 board select" + +config TARGET_STIH410_B2260 + bool "96Boards STiH410-B2260" + help + Support for 96Board STiH410-B2260 based on STMicrolectronics + STiH410 soc. This board complies with 96Board Open Platform + Specifications. Features: + - 1GB DDR + - On-Board USB combo WiFi/Bluetooth RTL8723BU + with PCB soldered antenna + - Ethernet 1000-BaseT + - Sata + - HDMI + - 2 x USB2 type A + - micro USB2 type AB + - SD card slot + - High speed connector (SD/I2C/USB interfaces) + - Low speed connector (UART/I2C/GPIO/SPI/PCM interfaces) + +endchoice + +source "board/st/stih410-b2260/Kconfig" + endif
board/st/stih410-b2260/Kconfig new file +19 -0
@@ -0,0 +1,19 @@ +if TARGET_STIH410_B2260 + +config SYS_BOARD + string + default "stih410-b2260" + +config SYS_VENDOR + string + default "st" + +config SYS_SOC + string + default "stih410" + +config SYS_CONFIG_NAME + string + default "stih410-b2260" + +endif
board/st/stih410-b2260/MAINTAINERS new file +7 -0
@@ -0,0 +1,7 @@ +STIH410-B2260 BOARD +M: Patrice Chotard <[email protected]> +S: Maintained +F: board/st/stih410-b2260/ +F: include/configs/stih410-b2260.h +F: configs/stih410-b2260_defconfig +F: arch/arm/dts/stih*
board/st/stih410-b2260/Makefile new file +8 -0
@@ -0,0 +1,8 @@ +# +# (C) Copyright 2017 +# Patrice Chotard, <[email protected]> +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y = board.o
board/st/stih410-b2260/board.c new file +28 -0
@@ -0,0 +1,28 @@ +/* +* Board init file for STiH410-B2260 +* +* (C) Copyright 2017 Patrice Chotard <[email protected]> +* +* SPDX-License-Identifier: GPL-2.0+ +*/ + +#include <common.h> + +DECLARE_GLOBAL_DATA_PTR ; + +int dram_init (void ) +{ + gd->ram_size =PHYS_SDRAM_1_SIZE ; +return 0 ; +} + +void dram_init_banksize (void ) +{ + gd->bd->bi_dram[0 ].start =PHYS_SDRAM_1 ; + gd->bd->bi_dram[0 ].size =PHYS_SDRAM_1_SIZE ; +} + +int board_init (void ) +{ +return 0 ; +}
configs/stih410-b2260_defconfig new file +26 -0
@@ -0,0 +1,26 @@ +CONFIG_ARM=y +CONFIG_ARCH_STI=y +CONFIG_IDENT_STRING="STMicroelectronics STiH410-B2260" +CONFIG_DEFAULT_DEVICE_TREE="stih410-b2260" +CONFIG_FIT=y +CONFIG_FIT_VERBOSE=y +# CONFIG_DISPLAY_CPUINFO is not set +CONFIG_SYS_PROMPT="stih410-b2260 => " +# CONFIG_CMD_IMLS is not set +CONFIG_CMD_MMC=y +CONFIG_CMD_TIME=y +CONFIG_CMD_TIMER=y +CONFIG_CMD_EXT2=y +CONFIG_CMD_EXT4=y +CONFIG_CMD_FAT=y +CONFIG_CMD_FS_GENERIC=y +CONFIG_OF_CONTROL=y +CONFIG_REGMAP=y +CONFIG_SYSCON=y +CONFIG_MMC_SDHCI=y +CONFIG_MMC_SDHCI_STI=y +CONFIG_PINCTRL=y +CONFIG_STI_ASC_SERIAL=y +CONFIG_SYSRESET=y +CONFIG_TIMER=y +CONFIG_SPL_OF_LIBFDT=y
include/configs/stih410-b2260.h new file +60 -0
60 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH v7 9/9 board: Add STMicroelectronics STiH410-B2260 support
Quoted 15 lines · Patrice Chotard
From: Patrice Chotard <[email protected]>
This is a 96Board compliant board based on STiH410 SoC:
- 1GB DDR
- On-Board USB combo WiFi/Bluetooth RTL8723BU with PCB soldered antenna
- Ethernet 1000-BaseT
- SATA
- HDMI
- 2 x USB2.0 type A
- 1 x USB2.0 type micro-AB
- SD card slot
- High speed connector (SD/I2C/USB interfaces)
- Low speed connector (UART/I2C/GPIO/SPI/PCM interfaces)
Quoted 3 lines
Signed-off-by Patrice Chotard <[email protected]>Reviewed-by Tom Rini <[email protected]>Reviewed-by Simon Glass <[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: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170316/eadea9bc/attachment.sig>
v7 cover Add STMicroelectronics STiH410-B2260 board
In reply to patrice.chotard at st.comHi All
Just a gentle reminder to not forgot this series
Thanks
Patrice
Quoted 110 lines · patrice.chotard at st.com
From: Patrice Chotard <[email protected]>
v7: _ typo: replace "Slow" by "Low" in patch 9 Kconfig's help
v6: _ fix last minute bug in pinctrl driver
v5: _ Add Simon Glass's reviewed-by
_ move boardKconfigdescription from patch 1 to 9v4: _ fix STi serial driver to be fully DT compliant
_ removearch/arm/include/asm/arch-stih410/sti.hand
include/dm/platform_data/serial_sti_asc.hwhich became useless
_ board file cleanup
_ fix some nits insti_sdhci.c
_ rebased on top of v2017.03-rc2v3: _ add reviewed-by
_ add top levelMAINTAINERSentry and in the boardMAINTAINERS_ use the fallback table frominclude/config_fallbacks.h
_ minor update insti_sdhci.c
_ reorder patches with functionnal board and defconfig in last _ removearch/arm/mach-sti/cpu.cand replace it by a sysreset DM driver _ removearch/arm/mach-sti/timer.cby a timer DM driver
_ remove uselessarch/arm/include/asm/arch-stih410/syscfg.h_ remove uselessarch/arm/include/asm/arch-stih410/gpio.hand update
arch/arm/include/asm/gpio.hforARCH_STIin patch 5v2: _ fix remarks from Jaechon Chung on SDHCI patch
_ fix remarks from Antonio Borneo on board patch _ replace some macro by U-boot generic's one _ add missing maintainers in recipientsPatrice Chotard (9):
arm: Add support for STMicroelectronics STiH410 soc
STiH410: Add STi timer driver
STiH410: Add STi sysreset driver
STiH410: Add STi serial driver
gpio: do not include <asm/arch/gpio.h> forARCH_STI
STiH410: Add STi SDHCI driver
STiH410: Add STi pinctrl driver
STiH410-B2260: Add device tree
board: Add STMicroelectronics STiH410-B2260 supportMAINTAINERS | 6 + arch/arm/Kconfig | 13 + arch/arm/dts/Makefile | 2 + arch/arm/dts/st-pincfg.h | 71 ++ arch/arm/dts/stih407-clock.dtsi | 326 ++++++ arch/arm/dts/stih407-family.dtsi | 977 +++++++++++++++ arch/arm/dts/stih407-pinctrl.dtsi | 1303 +++++++++++++++++++++ arch/arm/dts/stih410-b2260.dts | 226 ++++ arch/arm/dts/stih410-clock.dtsi | 347 ++++++ arch/arm/dts/stih410-pinctrl.dtsi | 34 + arch/arm/dts/stih410.dtsi | 454 +++++++ arch/arm/include/asm/arch-stih410/sdhci.h | 68 ++ arch/arm/include/asm/gpio.h | 2 +- arch/arm/mach-sti/Kconfig | 31 + board/st/stih410-b2260/Kconfig | 19 + board/st/stih410-b2260/MAINTAINERS | 7 + board/st/stih410-b2260/Makefile | 8 + board/st/stih410-b2260/board.c | 28 + configs/stih410-b2260_defconfig | 26 + drivers/mmc/Kconfig | 7 + drivers/mmc/Makefile | 1 + drivers/mmc/sti_sdhci.c | 141 +++ drivers/pinctrl/Kconfig | 10 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-sti.c | 320 +++++ drivers/serial/Kconfig | 8 + drivers/serial/Makefile | 1 + drivers/serial/serial_sti_asc.c | 211 ++++ drivers/sysreset/Makefile | 1 + drivers/sysreset/sysreset_sti.c | 82 ++ drivers/timer/Kconfig | 7 + drivers/timer/Makefile | 1 + drivers/timer/sti-timer.c | 78 ++ include/configs/stih410-b2260.h | 60 + include/dt-bindings/clock/stih407-clks.h | 90 ++ include/dt-bindings/clock/stih410-clks.h | 25 + include/dt-bindings/interrupt-controller/irq-st.h | 30 + include/dt-bindings/mfd/st-lpc.h | 16 + include/dt-bindings/reset/stih407-resets.h | 65 + 39 files changed, 5102 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/st-pincfg.h create mode 100644 arch/arm/dts/stih407-clock.dtsi create mode 100644 arch/arm/dts/stih407-family.dtsi create mode 100644 arch/arm/dts/stih407-pinctrl.dtsi create mode 100644 arch/arm/dts/stih410-b2260.dts create mode 100644 arch/arm/dts/stih410-clock.dtsi create mode 100644 arch/arm/dts/stih410-pinctrl.dtsi create mode 100644 arch/arm/dts/stih410.dtsi create mode 100644 arch/arm/include/asm/arch-stih410/sdhci.h create mode 100644 arch/arm/mach-sti/Kconfig create mode 100644 board/st/stih410-b2260/Kconfig create mode 100644 board/st/stih410-b2260/MAINTAINERS create mode 100644 board/st/stih410-b2260/Makefile create mode 100644 board/st/stih410-b2260/board.c create mode 100644 configs/stih410-b2260_defconfig create mode 100644 drivers/mmc/sti_sdhci.c create mode 100644 drivers/pinctrl/pinctrl-sti.c create mode 100644 drivers/serial/serial_sti_asc.c create mode 100644 drivers/sysreset/sysreset_sti.c create mode 100644 drivers/timer/sti-timer.c create mode 100644 include/configs/stih410-b2260.h create mode 100644 include/dt-bindings/clock/stih407-clks.h create mode 100644 include/dt-bindings/clock/stih410-clks.h create mode 100644 include/dt-bindings/interrupt-controller/irq-st.h create mode 100644 include/dt-bindings/mfd/st-lpc.h create mode 100644 include/dt-bindings/reset/stih407-resets.h