Skip to contentSkip to conversation

arm: Restore minimal support for ST-Ericsson U8500 SoC

RFC PATCH New Stephan Gerhold 3 participants 19 messages Jan 4, 2020 – Jan 23, 2020

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

cover arm: Restore minimal support for ST-Ericsson U8500 SoC

This patch series restores minimal U-Boot support for the ST-Ericsson NovaThor U8500 SoC.

Previous support for U8500 was removed in
commit 68282f55b846 ("arm: Remove unused ST-Ericsson u8500 arch") since none of the boards were converted to generic boards before the deadline.

The motivation for adding the SoC and board is explained in
- Patch 3 ("arm: Add support for ST-Ericsson U8500 SoC") and
- Patch 5 ("board: Add new Samsung "stemmy" board based on ST-Ericsson U8500")

I have additional patches for MMC, USB, display and the "stemmy" board, that configure it to provide an Android fastboot interface with similar functionality as the original Samsung bootloader. Some of the patches require some additional work, so I thought it is easier to start with some minimal changes first (only UART).

I think this makes the patch series quite straightforward, with only ~225 new lines of C code, plus device tree and documentation. The only patch that stands out with ~1.8k lines is the device tree import, directly copied (without modification) from the Linux kernel.

Stephan Gerhold (5):
timer: Add driver for Nomadik Multi Timer Unit (MTU)
arm: dts: Import device tree for ST-Ericsson Ux500
arm: Add support for ST-Ericsson U8500 SoC
MAINTAINERS: Add ARM U8500
board: Add new Samsung "stemmy" board based on ST-Ericsson U8500

 MAINTAINERS                                |    8 +
 arch/arm/Kconfig                           |   20 +
 arch/arm/Makefile                          |    1 +
 arch/arm/dts/Makefile                      |    2 +
 arch/arm/dts/ste-ab8500.dtsi               |  328 ++++++
 arch/arm/dts/ste-ab8505.dtsi               |  275 +++++
 arch/arm/dts/ste-dbx5x0-u-boot.dtsi        |   29 +
 arch/arm/dts/ste-dbx5x0.dtsi               | 1144 ++++++++++++++++++++
 arch/arm/dts/ste-ux500-samsung-stemmy.dts  |   20 +
 arch/arm/include/asm/gpio.h                |    2 +-
 arch/arm/mach-u8500/Kconfig                |   27 +
 arch/arm/mach-u8500/Makefile               |    4 +
 arch/arm/mach-u8500/cache.c                |   37 +
 arch/arm/mach-u8500/cpuinfo.c              |   25 +
 board/ste/stemmy/Kconfig                   |   12 +
 board/ste/stemmy/MAINTAINERS               |    6 +
 board/ste/stemmy/Makefile                  |    2 +
 board/ste/stemmy/README                    |   49 +
 board/ste/stemmy/stemmy.c                  |   18 +
 configs/stemmy_defconfig                   |   18 +
 drivers/timer/Kconfig                      |    9 +
 drivers/timer/Makefile                     |    1 +
 drivers/timer/nomadik-mtu-timer.c          |  114 ++
 include/configs/stemmy.h                   |   29 +
 include/dt-bindings/arm/ux500_pm_domains.h |   15 +
 include/dt-bindings/clock/ste-ab8500.h     |   12 +
 include/dt-bindings/mfd/dbx500-prcmu.h     |   84 ++
 27 files changed, 2290 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/ste-ab8500.dtsi
 create mode 100644 arch/arm/dts/ste-ab8505.dtsi
 create mode 100644 arch/arm/dts/ste-dbx5x0-u-boot.dtsi
 create mode 100644 arch/arm/dts/ste-dbx5x0.dtsi
 create mode 100644 arch/arm/dts/ste-ux500-samsung-stemmy.dts
 create mode 100644 arch/arm/mach-u8500/Kconfig
 create mode 100644 arch/arm/mach-u8500/Makefile
 create mode 100644 arch/arm/mach-u8500/cache.c
 create mode 100644 arch/arm/mach-u8500/cpuinfo.c
 create mode 100644 board/ste/stemmy/Kconfig
 create mode 100644 board/ste/stemmy/MAINTAINERS
 create mode 100644 board/ste/stemmy/Makefile
 create mode 100644 board/ste/stemmy/README
 create mode 100644 board/ste/stemmy/stemmy.c
 create mode 100644 configs/stemmy_defconfig
 create mode 100644 drivers/timer/nomadik-mtu-timer.c
 create mode 100644 include/configs/stemmy.h
 create mode 100644 include/dt-bindings/arm/ux500_pm_domains.h
 create mode 100644 include/dt-bindings/clock/ste-ab8500.h
 create mode 100644 include/dt-bindings/mfd/dbx500-prcmu.h
Signature · 1 line
2.24.1
#1 lore raw

RFC PATCH 1/5 timer: Add driver for Nomadik Multi Timer Unit (MTU)

The Nomadik Multi Timer Unit (MTU) provides 4 decrementing free-running timers. It is used in ST-Ericsson Ux500 SoCs.

The driver uses the first timer to implement UCLASS_TIMER.

---

 drivers/timer/Kconfig             |   9 +++
 drivers/timer/Makefile            |   1 +
 drivers/timer/nomadik-mtu-timer.c | 114 ++++++++++++++++++++++++++++++
 3 files changed, 124 insertions(+)
 create mode 100644 drivers/timer/nomadik-mtu-timer.c
drivers/timer/Kconfig +9 -0
index 5f4bc6edb6..89e3b5bc12 100644
@@ -127,6 +127,15 @@ config X86_TSC_TIMER_EARLY_FREQ
 	  hardware ways, nor got from device tree at the time when device
 	  tree is not available yet.
 
+config NOMADIK_MTU_TIMER
+	bool "Nomadik MTU Timer"
+	depends on TIMER
+	help
+	  Enables support for the Nomadik Multi Timer Unit (MTU),
+	  used in ST-Ericsson Ux500 SoCs.
+	  The MTU provides 4 decrementing free-running timers.
+	  At the moment, only the first timer is used by the driver.
+
 config OMAP_TIMER
 	bool "Omap timer support"
 	depends on TIMER
drivers/timer/Makefile +1 -0
index fa35bea6c5..c22ffebcde 100644
@@ -12,6 +12,7 @@ obj-$(CONFIG_ATMEL_PIT_TIMER) += atmel_pit_timer.o
 obj-$(CONFIG_CADENCE_TTC_TIMER)	+= cadence-ttc.o
 obj-$(CONFIG_DESIGNWARE_APB_TIMER)	+= dw-apb-timer.o
 obj-$(CONFIG_MPC83XX_TIMER) += mpc83xx_timer.o
+obj-$(CONFIG_NOMADIK_MTU_TIMER)	+= nomadik-mtu-timer.o
 obj-$(CONFIG_OMAP_TIMER)	+= omap-timer.o
 obj-$(CONFIG_RENESAS_OSTM_TIMER) += ostm_timer.o
 obj-$(CONFIG_RISCV_TIMER) += riscv_timer.o
drivers/timer/nomadik-mtu-timer.c new file +114 -0

114 lines not on this page · raw message

Signature · 1 line
2.24.1
#3 lore raw

RFC PATCH 1/5 timer: Add driver for Nomadik Multi Timer Unit (MTU)

In reply to Stephan Gerhold
Quoted 7 lines · Stephan Gerhold

The Nomadik Multi Timer Unit (MTU) provides 4 decrementing free-running timers. It is used in ST-Ericsson Ux500 SoCs.

The driver uses the first timer to implement UCLASS_TIMER.

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: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200123/03feb46c/attachment.sig>
#4 lore raw

RFC PATCH 2/5 arm: dts: Import device tree for ST-Ericsson Ux500

In reply to Stephan Gerhold

from https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson.git/
tag "ux500-armsoc-v5.6-2"
commit 224bf0fe7292 ("ARM: dts: ux500: samsung-golden: Add Bluetooth")

(queued for merge in Linux 5.6)

---
I ignored all the checkpatch complaints in this patch, since the files are copied without modification from the Linux kernel.

I will check if it makes sense to submit a patch to fix some of them... (In particular the large amount of "WARNING: please, no space before tabs" in one of the includes...)

 arch/arm/dts/ste-ab8500.dtsi               |  328 ++++++
 arch/arm/dts/ste-ab8505.dtsi               |  275 +++++
 arch/arm/dts/ste-dbx5x0.dtsi               | 1144 ++++++++++++++++++++
 include/dt-bindings/arm/ux500_pm_domains.h |   15 +
 include/dt-bindings/clock/ste-ab8500.h     |   12 +
 include/dt-bindings/mfd/dbx500-prcmu.h     |   84 ++
 6 files changed, 1858 insertions(+)
 create mode 100644 arch/arm/dts/ste-ab8500.dtsi
 create mode 100644 arch/arm/dts/ste-ab8505.dtsi
 create mode 100644 arch/arm/dts/ste-dbx5x0.dtsi
 create mode 100644 include/dt-bindings/arm/ux500_pm_domains.h
 create mode 100644 include/dt-bindings/clock/ste-ab8500.h
 create mode 100644 include/dt-bindings/mfd/dbx500-prcmu.h
arch/arm/dts/ste-ab8500.dtsi new file +328 -0
new file mode 100644
index 0000000000..14d4d8617d
@@ -0,0 +1,328 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright 2012 Linaro Ltd
+ */
+
+#include <dt-bindings/clock/ste-ab8500.h>
+
+/ {
+	/* Essential housekeeping hardware monitors */
+	iio-hwmon {
+		compatible = "iio-hwmon";
+		io-channels = <&gpadc 0x02>, /* Battery temperature */
+			    <&gpadc 0x03>, /* Main charger voltage */
+			    <&gpadc 0x08>, /* Main battery voltage */
+			    <&gpadc 0x09>, /* VBUS */
+			    <&gpadc 0x0a>, /* Main charger current */
+			    <&gpadc 0x0b>, /* USB charger current */
+			    <&gpadc 0x0c>, /* Backup battery voltage */
+			    <&gpadc 0x0d>, /* Die temperature */
+			    <&gpadc 0x12>; /* Crystal temperature */
+	};
+
+	soc {
+		prcmu at 80157000 {
+			ab8500 {
+				compatible = "stericsson,ab8500";
+				interrupt-parent = <&intc>;
+				interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
+				interrupt-controller;
+				#interrupt-cells = <2>;
+
+				ab8500_clock: clock-controller {
+					compatible = "stericsson,ab8500-clk";
+					#clock-cells = <1>;
+				};
+
+				ab8500_gpio: ab8500-gpio {
+					compatible = "stericsson,ab8500-gpio";
+					gpio-controller;
+					#gpio-cells = <2>;
+				};
+
+				ab8500-rtc {
+					compatible = "stericsson,ab8500-rtc";
+					interrupts = <17 IRQ_TYPE_LEVEL_HIGH
+						      18 IRQ_TYPE_LEVEL_HIGH>;
+					interrupt-names = "60S", "ALARM";
+				};
+
+				gpadc: ab8500-gpadc {
+					compatible = "stericsson,ab8500-gpadc";
+					interrupts = <32 IRQ_TYPE_LEVEL_HIGH
+						      39 IRQ_TYPE_LEVEL_HIGH>;
+					interrupt-names = "HW_CONV_END", "SW_CONV_END";
+					vddadc-supply = <&ab8500_ldo_tvout_reg>;
+					#address-cells = <1>;
+					#size-cells = <0>;
+					#io-channel-cells = <1>;
+
+					/* GPADC channels */
+					bat_ctrl: channel at 01 {
+						reg = <0x01>;
+					};
+					btemp_ball: channel at 02 {
+						reg = <0x02>;
+					};
+					main_charger_v: channel at 03 {
+						reg = <0x03>;
+					};
+					acc_detect1: channel at 04 {
+						reg = <0x04>;
+					};
+					acc_detect2: channel at 05 {
+						reg = <0x05>;
+					};
+					adc_aux1: channel at 06 {
+						reg = <0x06>;
+					};
+					adc_aux2: channel at 07 {
+						reg = <0x07>;
+					};
+					main_batt_v: channel at 08 {
+						reg = <0x08>;
+					};
+					vbus_v: channel at 09 {
+						reg = <0x09>;
+					};
+					main_charger_c: channel at 0a {
+						reg = <0x0a>;
+					};
+					usb_charger_c: channel at 0b {
+						reg = <0x0b>;
+					};
+					bk_bat_v: channel at 0c {
+						reg = <0x0c>;
+					};
+					die_temp: channel at 0d {
+						reg = <0x0d>;
+					};
+					usb_id: channel at 0e {
+						reg = <0x0e>;
+					};
+					xtal_temp: channel at 12 {
+						reg = <0x12>;
+					};
+					vbat_true_meas: channel at 13 {
+						reg = <0x13>;
+					};
+					bat_ctrl_and_ibat: channel at 1c {
+						reg = <0x1c>;
+					};
+					vbat_meas_and_ibat: channel at 1d {
+						reg = <0x1d>;
+					};
+					vbat_true_meas_and_ibat: channel at 1e {
+						reg = <0x1e>;
+					};
+					bat_temp_and_ibat: channel at 1f {
+						reg = <0x1f>;
+					};
+				};
+
+				ab8500_temp {
+					compatible = "stericsson,abx500-temp";
+					io-channels = <&gpadc 0x06>,
+						      <&gpadc 0x07>;
+					io-channel-name = "aux1", "aux2";
+				};
+
+				ab8500_battery: ab8500_battery {
+					stericsson,battery-type = "LIPO";
+					thermistor-on-batctrl;
+				};
+
+				ab8500_fg {
+					compatible = "stericsson,ab8500-fg";
+					battery	   = <&ab8500_battery>;
+					io-channels = <&gpadc 0x08>;
+					io-channel-name = "main_bat_v";
+				};
+
+				ab8500_btemp {
+					compatible = "stericsson,ab8500-btemp";
+					battery	   = <&ab8500_battery>;
+					io-channels = <&gpadc 0x02>,
+						      <&gpadc 0x01>;
+					io-channel-name = "btemp_ball",
+							"bat_ctrl";
+				};
+
+				ab8500_charger {
+					compatible	= "stericsson,ab8500-charger";
+					battery		= <&ab8500_battery>;
+					vddadc-supply	= <&ab8500_ldo_tvout_reg>;
+					io-channels = <&gpadc 0x03>,
+						      <&gpadc 0x0a>,
+						      <&gpadc 0x09>,
+						      <&gpadc 0x0b>;
+					io-channel-name = "main_charger_v",
+							"main_charger_c",
+							"vbus_v",
+							"usb_charger_c";
+				};
+
+				ab8500_chargalg {
+					compatible	= "stericsson,ab8500-chargalg";
+					battery		= <&ab8500_battery>;
+				};
+
+				ab8500_usb {
+					compatible = "stericsson,ab8500-usb";
+					interrupts = < 90 IRQ_TYPE_LEVEL_HIGH
+						       96 IRQ_TYPE_LEVEL_HIGH
+						       14 IRQ_TYPE_LEVEL_HIGH
+						       15 IRQ_TYPE_LEVEL_HIGH
+						       79 IRQ_TYPE_LEVEL_HIGH
+						       74 IRQ_TYPE_LEVEL_HIGH
+						       75 IRQ_TYPE_LEVEL_HIGH>;
+					interrupt-names = "ID_WAKEUP_R",
+							  "ID_WAKEUP_F",
+							  "VBUS_DET_F",
+							  "VBUS_DET_R",
+							  "USB_LINK_STATUS",
+							  "USB_ADP_PROBE_PLUG",
+							  "USB_ADP_PROBE_UNPLUG";
+					vddulpivio18-supply = <&ab8500_ldo_intcore_reg>;
+					v-ape-supply = <&db8500_vape_reg>;
+					musb_1v8-supply = <&db8500_vsmps2_reg>;
+					clocks = <&prcmu_clk PRCMU_SYSCLK>;
+					clock-names = "sysclk";
+				};
+
+				ab8500-ponkey {
+					compatible = "stericsson,ab8500-poweron-key";
+					interrupts = <6 IRQ_TYPE_LEVEL_HIGH
+						      7 IRQ_TYPE_LEVEL_HIGH>;
+					interrupt-names = "ONKEY_DBF", "ONKEY_DBR";
+				};
+
+				ab8500-sysctrl {
+					compatible = "stericsson,ab8500-sysctrl";
+				};
+
+				ab8500-pwm {
+					compatible = "stericsson,ab8500-pwm";
+					clocks = <&ab8500_clock AB8500_SYSCLK_INT>;
+					clock-names = "intclk";
+				};
+
+				ab8500-debugfs {
+					compatible = "stericsson,ab8500-debug";
+				};
+
+				codec: ab8500-codec {
+					compatible = "stericsson,ab8500-codec";
+
+					V-AUD-supply = <&ab8500_ldo_audio_reg>;
+					V-AMIC1-supply = <&ab8500_ldo_anamic1_reg>;
+					V-AMIC2-supply = <&ab8500_ldo_anamic2_reg>;
+					V-DMIC-supply = <&ab8500_ldo_dmic_reg>;
+
+					clocks = <&ab8500_clock AB8500_SYSCLK_AUDIO>;
+					clock-names = "audioclk";
+
+					stericsson,earpeice-cmv = <950>; /* Units in mV. */
+				};
+
+				ext_regulators: ab8500-ext-regulators {
+					compatible = "stericsson,ab8500-ext-regulator";
+
+					ab8500_ext1_reg: ab8500_ext1 {
+						regulator-min-microvolt = <1800000>;
+						regulator-max-microvolt = <1800000>;
+						regulator-boot-on;
+						regulator-always-on;
+					};
+
+					ab8500_ext2_reg: ab8500_ext2 {
+						regulator-min-microvolt = <1360000>;
+						regulator-max-microvolt = <1360000>;
+						regulator-boot-on;
+						regulator-always-on;
+					};
+
+					ab8500_ext3_reg: ab8500_ext3 {
+						regulator-min-microvolt = <3400000>;
+						regulator-max-microvolt = <3400000>;
+						regulator-boot-on;
+					};
+				};
+
+				ab8500-regulators {
+					compatible = "stericsson,ab8500-regulator";
+					vin-supply = <&ab8500_ext3_reg>;
+
+					// supplies to the display/camera
+					ab8500_ldo_aux1_reg: ab8500_ldo_aux1 {
+						regulator-min-microvolt = <2500000>;
+						regulator-max-microvolt = <2900000>;
+						regulator-boot-on;
+						/* BUG: If turned off MMC will be affected. */
+						regulator-always-on;
+					};
+
+					// supplies to the on-board eMMC
+					ab8500_ldo_aux2_reg: ab8500_ldo_aux2 {
+						regulator-min-microvolt = <1100000>;
+						regulator-max-microvolt = <3300000>;
+					};
+
+					// supply for VAUX3; SDcard slots
+					ab8500_ldo_aux3_reg: ab8500_ldo_aux3 {
+						regulator-min-microvolt = <1100000>;
+						regulator-max-microvolt = <3300000>;
+					};
+
+					// supply for v-intcore12; VINTCORE12 LDO
+					ab8500_ldo_intcore_reg: ab8500_ldo_intcore {
+					};
+
+					// supply for tvout; gpadc; TVOUT LDO
+					ab8500_ldo_tvout_reg: ab8500_ldo_tvout {
+					};
+
+					// supply for ab8500-vaudio; VAUDIO LDO
+					ab8500_ldo_audio_reg: ab8500_ldo_audio {
+					};
+
+					// supply for v-anamic1 VAMIC1 LDO
+					ab8500_ldo_anamic1_reg: ab8500_ldo_anamic1 {
+					};
+
+					// supply for v-amic2; VAMIC2 LDO; reuse constants for AMIC1
+					ab8500_ldo_anamic2_reg: ab8500_ldo_anamic2 {
+					};
+
+					// supply for v-dmic; VDMIC LDO
+					ab8500_ldo_dmic_reg: ab8500_ldo_dmic {
+					};
+
+					// supply for U8500 CSI/DSI; VANA LDO
+					ab8500_ldo_ana_reg: ab8500_ldo_ana {
+					};
+				};
+			};
+		};
+
+		sound {
+			stericsson,audio-codec = <&codec>;
+			clocks = <&prcmu_clk PRCMU_SYSCLK>, <&ab8500_clock AB8500_SYSCLK_ULP>, <&ab8500_clock AB8500_SYSCLK_INT>;
+			clock-names = "sysclk", "ulpclk", "intclk";
+		};
+
+		mcde at a0350000 {
+			vana-supply = <&ab8500_ldo_ana_reg>;
+
+			dsi at a0351000 {
+				vana-supply = <&ab8500_ldo_ana_reg>;
+			};
+			dsi at a0352000 {
+				vana-supply = <&ab8500_ldo_ana_reg>;
+			};
+			dsi at a0353000 {
+				vana-supply = <&ab8500_ldo_ana_reg>;
+			};
+		};
+	};
+};
arch/arm/dts/ste-ab8505.dtsi new file +275 -0

275 lines not on this page · raw message

arch/arm/dts/ste-dbx5x0.dtsi new file +1144 -0

1,144 lines not on this page · raw message

include/dt-bindings/arm/ux500_pm_domains.h new file +15 -0
new file mode 100644
index 0000000000..9bd764f0c9
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * Copyright (C) 2014 Linaro Ltd.
+ *
+ * Author: Ulf Hansson <[email protected]>
+ */
+#ifndef _DT_BINDINGS_ARM_UX500_PM_DOMAINS_H
+#define _DT_BINDINGS_ARM_UX500_PM_DOMAINS_H
+
+#define DOMAIN_VAPE		0
+
+/* Number of PM domains. */
+#define NR_DOMAINS		(DOMAIN_VAPE + 1)
+
+#endif
include/dt-bindings/clock/ste-ab8500.h new file +12 -0
new file mode 100644
index 0000000000..fb42dd0cab
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __STE_CLK_AB8500_H__
+#define __STE_CLK_AB8500_H__
+
+#define AB8500_SYSCLK_BUF2	0
+#define AB8500_SYSCLK_BUF3	1
+#define AB8500_SYSCLK_BUF4	2
+#define AB8500_SYSCLK_ULP	3
+#define AB8500_SYSCLK_INT	4
+#define AB8500_SYSCLK_AUDIO	5
+
+#endif
include/dt-bindings/mfd/dbx500-prcmu.h new file +84 -0

84 lines not on this page · raw message

Signature · 1 line
2.24.1
#6 lore raw

RFC PATCH 2/5 arm: dts: Import device tree for ST-Ericsson Ux500

In reply to Stephan Gerhold
Quoted 8 lines · Stephan Gerhold

from https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson.git/
tag "ux500-armsoc-v5.6-2"
commit 224bf0fe7292 ("ARM: dts: ux500: samsung-golden: Add Bluetooth")

(queued for merge in Linux 5.6)

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: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200123/40630260/attachment.sig>
#7 lore raw

RFC PATCH 3/5 arm: Add support for ST-Ericsson U8500 SoC

In reply to Stephan Gerhold

The NovaThor U8500 SoC was released by ST-Ericsson in 2011. It was used for some development boards like the CALAO Systems Snowball SBC, but mass production was primarily for Android smartphones like the Samsung Galaxy S III mini.

Previous support for U8500 was removed in
commit 68282f55b846 ("arm: Remove unused ST-Ericsson u8500 arch") since none of the boards were converted to generic boards before the deadline.

The new code does not have much in common with the previous code. I have completely rewritten everything, embracing the Driver Model and device trees wherever possible.

The U8500 support is a bit more minimal for now - my primary use case is to use U-Boot as alternative bootloader for some of the U8500 Samsung smartphones. At the moment U-Boot is chain-loaded from the original Samsung bootloader. A side effect of this is that we can (temporarily) get away without implementing some functionality
- e.g. all clocks are already enabled by the original bootloader.

More functionality will be added in future patches.

Cc Mathieu Poirier <[email protected]>
Cc John Rigby <[email protected]>

---

 arch/arm/Kconfig                    | 20 ++++++++++++++++
 arch/arm/Makefile                   |  1 +
 arch/arm/dts/ste-dbx5x0-u-boot.dtsi | 29 ++++++++++++++++++++++
 arch/arm/include/asm/gpio.h         |  2 +-
 arch/arm/mach-u8500/Kconfig         |  6 +++++
 arch/arm/mach-u8500/Makefile        |  4 ++++
 arch/arm/mach-u8500/cache.c         | 37 +++++++++++++++++++++++++++++
 arch/arm/mach-u8500/cpuinfo.c       | 25 +++++++++++++++++++
 8 files changed, 123 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/ste-dbx5x0-u-boot.dtsi
 create mode 100644 arch/arm/mach-u8500/Kconfig
 create mode 100644 arch/arm/mach-u8500/Makefile
 create mode 100644 arch/arm/mach-u8500/cache.c
 create mode 100644 arch/arm/mach-u8500/cpuinfo.c
arch/arm/Kconfig +20 -0
index 36c9c2fecd..e4824832e3 100644
@@ -988,6 +988,24 @@ config ARCH_SUNXI
 	imply SPL_SERIAL_SUPPORT
 	imply USB_GADGET
 
+config ARCH_U8500
+	bool "ST-Ericsson U8500 Series"
+	select CPU_V7A
+	select DM
+	select DM_GPIO
+	select DM_MMC if MMC
+	select DM_SERIAL
+	select DM_USB if USB
+	select OF_CONTROL
+	select SYSRESET
+	select TIMER
+	imply ARM_PL180_MMCI
+	imply DM_RTC
+	imply NOMADIK_MTU_TIMER
+	imply PL01X_SERIAL
+	imply RTC_PL031
+	imply SYSRESET_SYSCON
+
 config ARCH_VERSAL
 	bool "Support Xilinx Versal Platform"
 	select ARM64
@@ -1756,6 +1774,8 @@ source "arch/arm/mach-sunxi/Kconfig"
 
 source "arch/arm/mach-tegra/Kconfig"
 
+source "arch/arm/mach-u8500/Kconfig"
+
 source "arch/arm/mach-uniphier/Kconfig"
 
 source "arch/arm/cpu/armv7/vf610/Kconfig"
arch/arm/Makefile +1 -0
index 856f2d8608..ae40f39db7 100644
@@ -79,6 +79,7 @@ machine-$(CONFIG_ARCH_ROCKCHIP)		+= rockchip
 machine-$(CONFIG_STM32)			+= stm32
 machine-$(CONFIG_ARCH_STM32MP)		+= stm32mp
 machine-$(CONFIG_TEGRA)			+= tegra
+machine-$(CONFIG_ARCH_U8500)		+= u8500
 machine-$(CONFIG_ARCH_UNIPHIER)		+= uniphier
 machine-$(CONFIG_ARCH_ZYNQ)		+= zynq
 machine-$(CONFIG_ARCH_ZYNQMP)		+= zynqmp
arch/arm/dts/ste-dbx5x0-u-boot.dtsi new file +29 -0
new file mode 100644
index 0000000000..4a99ee5a92
@@ -0,0 +1,29 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "skeleton.dtsi"
+#include "ste-dbx5x0.dtsi"
+
+/ {
+	soc {
+		/* FIXME: Remove this when clk driver is implemented */
+		mtu at a03c6000 {
+			clock-frequency = <133000000>;
+		};
+		uart at 80120000 {
+			clock = <38400000>;
+		};
+		uart at 80121000 {
+			clock = <38400000>;
+		};
+		uart at 80007000 {
+			clock = <38400000>;
+		};
+	};
+
+	reboot {
+		compatible = "syscon-reboot";
+		regmap = <&prcmu>;
+		offset = <0x228>; /* PRCM_APE_SOFTRST */
+		mask = <0x1>;
+	};
+};
arch/arm/include/asm/gpio.h +1 -1
index 6ff5f42424..7203ccbaeb 100644
@@ -3,7 +3,7 @@
 	!defined(CONFIG_ARCH_BCM63158) && !defined(CONFIG_ARCH_ROCKCHIP) && \
 	!defined(CONFIG_ARCH_LX2160A) && !defined(CONFIG_ARCH_LS1028A) && \
 	!defined(CONFIG_ARCH_LS2080A) && !defined(CONFIG_ARCH_LS1088A) && \
-	!defined(CONFIG_ARCH_ASPEED)
+	!defined(CONFIG_ARCH_ASPEED) && !defined(CONFIG_ARCH_U8500)
 #include <asm/arch/gpio.h>
 #endif
 #include <asm-generic/gpio.h>
arch/arm/mach-u8500/Kconfig new file +6 -0
new file mode 100644
index 0000000000..3bc76295cb
@@ -0,0 +1,6 @@
+if ARCH_U8500
+
+config SYS_SOC
+	default "u8500"
+
+endif
arch/arm/mach-u8500/Makefile new file +4 -0
new file mode 100644
index 0000000000..0a53cbd9ac
@@ -0,0 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+obj-y	+= cache.o
+obj-$(CONFIG_DISPLAY_CPUINFO)	+= cpuinfo.o
arch/arm/mach-u8500/cache.c new file +37 -0
new file mode 100644
index 0000000000..3d96d09f31
@@ -0,0 +1,37 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright (C) 2019 Stephan Gerhold <[email protected]>
+ */
+
+#include <common.h>
+#include <cpu_func.h>
+#include <asm/armv7.h>
+#include <asm/pl310.h>
+
+#define PL310_WAY_MASK	0xff
+
+#if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF)
+void enable_caches(void)
+{
+	/* Enable D-cache. I-cache is already enabled in start.S */
+	dcache_enable();
+}
+#endif
+
+#ifdef CONFIG_SYS_L2_PL310
+void v7_outer_cache_disable(void)
+{
+	struct pl310_regs *const pl310 = (struct pl310_regs *)CONFIG_SYS_PL310_BASE;
+
+	/*
+	 * Linux expects the L2 cache to be turned off by the bootloader.
+	 * Otherwise, it fails very early (shortly after decompressing the kernel).
+	 *
+	 * On U8500, the L2 cache can be only turned on/off from the secure world.
+	 * Instead, prevent usage of the L2 cache by locking all ways.
+	 * The kernel needs to unlock them to make the L2 cache work again.
+	 */
+	writel(PL310_WAY_MASK, &pl310->pl310_lockdown_dbase);
+	writel(PL310_WAY_MASK, &pl310->pl310_lockdown_ibase);
+}
+#endif
arch/arm/mach-u8500/cpuinfo.c new file +25 -0
new file mode 100644
index 0000000000..20f5ff3398
@@ -0,0 +1,25 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright (C) 2019 Stephan Gerhold <[email protected]>
+ */
+
+#include <common.h>
+#include <asm/io.h>
+
+#define U8500_BOOTROM_BASE	0x90000000
+#define U8500_ASIC_ID_LOC_V2	(U8500_BOOTROM_BASE + 0x1DBF4)
+
+int print_cpuinfo(void)
+{
+	/* Convert ASIC ID to display string, e.g. 0x8520A0 => DB8520 V1.0 */
+	u32 asicid = readl(U8500_ASIC_ID_LOC_V2);
+	u32 cpu = (asicid >> 8) & 0xffff;
+	u32 rev = asicid & 0xff;
+
+	/* 0xA0 => 0x10 (V1.0) */
+	if (rev >= 0xa0)
+		rev -= 0x90;
+
+	printf("CPU: ST-Ericsson DB%x V%d.%d\n", cpu, rev >> 4, rev & 0xf);
+	return 0;
+}
Signature · 1 line
2.24.1
#8 lore raw

RFC PATCH 3/5 arm: Add support for ST-Ericsson U8500 SoC

Quoted 21 lines · Stephan Gerhold

The NovaThor U8500 SoC was released by ST-Ericsson in 2011. It was used for some development boards like the CALAO Systems Snowball SBC, but mass production was primarily for Android smartphones like the Samsung Galaxy S III mini.

Previous support for U8500 was removed in
commit 68282f55b846 ("arm: Remove unused ST-Ericsson u8500 arch") since none of the boards were converted to generic boards before the deadline.

The new code does not have much in common with the previous code. I have completely rewritten everything, embracing the Driver Model and device trees wherever possible.

The U8500 support is a bit more minimal for now - my primary use case is to use U-Boot as alternative bootloader for some of the U8500 Samsung smartphones. At the moment U-Boot is chain-loaded from the original Samsung bootloader. A side effect of this is that we can (temporarily) get away without implementing some functionality
- e.g. all clocks are already enabled by the original bootloader.

Quoted 5 lines

More functionality will be added in future patches.

Cc Mathieu Poirier <[email protected]>
Cc John Rigby <[email protected]>

Yours,
Linus Walleij

#9 lore raw

RFC PATCH 3/5 arm: Add support for ST-Ericsson U8500 SoC

In reply to Stephan Gerhold
Quoted 21 lines · Stephan Gerhold

The NovaThor U8500 SoC was released by ST-Ericsson in 2011. It was used for some development boards like the CALAO Systems Snowball SBC, but mass production was primarily for Android smartphones like the Samsung Galaxy S III mini.

Previous support for U8500 was removed in
commit 68282f55b846 ("arm: Remove unused ST-Ericsson u8500 arch") since none of the boards were converted to generic boards before the deadline.

The new code does not have much in common with the previous code. I have completely rewritten everything, embracing the Driver Model and device trees wherever possible.

The U8500 support is a bit more minimal for now - my primary use case is to use U-Boot as alternative bootloader for some of the U8500 Samsung smartphones. At the moment U-Boot is chain-loaded from the original Samsung bootloader. A side effect of this is that we can (temporarily) get away without implementing some functionality
- e.g. all clocks are already enabled by the original bootloader.

Quoted 6 lines

More functionality will be added in future patches.

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: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200123/23c2f71b/attachment.sig>
#10 lore raw

RFC PATCH 4/5 MAINTAINERS: Add ARM U8500

In reply to Stephan Gerhold

Add myself as maintainer for ST-Ericsson U8500 SoC to MAINTAINERS. Linus Walleij usually reviews all Ux500 related patches, so add him as a reviewer.

---

 MAINTAINERS | 8 ++++++++
 1 file changed, 8 insertions(+)
MAINTAINERS +8 -0
index 438fb225ab..81b3bd2b7b 100644
@@ -403,6 +403,14 @@ F:	arch/arm/mach-keystone/
 F:	arch/arm/include/asm/arch-omap*/
 F:	arch/arm/include/asm/ti-common/
 
+ARM U8500
+M:	Stephan Gerhold <[email protected]>
+R:	Linus Walleij <[email protected]>
+S:	Maintained
+F:	arch/arm/dts/ste-*
+F:	arch/arm/mach-u8500/
+F:	drivers/timer/nomadik-mtu-timer.c
+
 ARM UNIPHIER
 M:	Masahiro Yamada <[email protected]>
 S:	Maintained
Signature · 1 line
2.24.1
#12 lore raw

RFC PATCH 4/5 MAINTAINERS: Add ARM U8500

In reply to Stephan Gerhold
Quoted 7 lines · Stephan Gerhold

Add myself as maintainer for ST-Ericsson U8500 SoC to MAINTAINERS. Linus Walleij usually reviews all Ux500 related patches, so add him as a reviewer.

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: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200123/442e7285/attachment.sig>
#13 lore raw

RFC PATCH 5/5 board: Add new Samsung "stemmy" board based on ST-Ericsson U8500

In reply to Stephan Gerhold

The ST-Ericsson U8500 SoC has been used in mass-production for some Android smartphones released around 2012.
In particular, Samsung has released more than 5 different smartphones based on U8500, e.g.

- Samsung Galaxy S III mini (GT-I8190) "golden"
- Samsung Galaxy S Advance (GT-I9070) "janice"
- Samsung Galaxy Xcover 2 (GT-S7710) "skomer"

and a few others.

Mainline Linux has great support for the Ux500 SoC, so these smartphones can also run Linux mainline quite well.

Unfortunately, the original Samsung bootloader used on these devices has limitations that prevent booting Linux mainline directly. It keeps the L2 cache enabled, which causes Linux to crash very early, shortly after decompressing the kernel.

Using U-Boot allows to circumvent these limitations. We can let the Samsung bootloader chain-load U-Boot and U-Boot locks the L2 cache before booting into Linux. U-Boot has several other advantages
- it supports device-trees directly and we are no longer limited to flashing Android boot images through Samsung's proprietary download mode.

The Samsung "stemmy" board covers all Samsung devices based on U8500. Add minimal support for "stemmy". For now only UART is supported but this will be extended later.

---

 arch/arm/dts/Makefile                     |  2 +
 arch/arm/dts/ste-ux500-samsung-stemmy.dts | 20 +++++++++
 arch/arm/mach-u8500/Kconfig               | 21 ++++++++++
 board/ste/stemmy/Kconfig                  | 12 ++++++
 board/ste/stemmy/MAINTAINERS              |  6 +++
 board/ste/stemmy/Makefile                 |  2 +
 board/ste/stemmy/README                   | 49 +++++++++++++++++++++++
 board/ste/stemmy/stemmy.c                 | 18 +++++++++
 configs/stemmy_defconfig                  | 18 +++++++++
 include/configs/stemmy.h                  | 29 ++++++++++++++
 10 files changed, 177 insertions(+)
 create mode 100644 arch/arm/dts/ste-ux500-samsung-stemmy.dts
 create mode 100644 board/ste/stemmy/Kconfig
 create mode 100644 board/ste/stemmy/MAINTAINERS
 create mode 100644 board/ste/stemmy/Makefile
 create mode 100644 board/ste/stemmy/README
 create mode 100644 board/ste/stemmy/stemmy.c
 create mode 100644 configs/stemmy_defconfig
 create mode 100644 include/configs/stemmy.h
arch/arm/dts/Makefile +2 -0
index 0127a91a82..83aea3aa54 100644
@@ -384,6 +384,8 @@ dtb-$(CONFIG_FSL_LSCH2) += fsl-ls1043a-qds-duart.dtb \
 dtb-$(CONFIG_TARGET_DRAGONBOARD410C) += dragonboard410c.dtb
 dtb-$(CONFIG_TARGET_DRAGONBOARD820C) += dragonboard820c.dtb
 
+dtb-$(CONFIG_TARGET_STEMMY) += ste-ux500-samsung-stemmy.dtb
+
 dtb-$(CONFIG_STM32F4) += stm32f429-disco.dtb \
 	stm32429i-eval.dtb \
 	stm32f469-disco.dtb
arch/arm/dts/ste-ux500-samsung-stemmy.dts new file +20 -0
new file mode 100644
index 0000000000..7e7f4c823a
@@ -0,0 +1,20 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/dts-v1/;
+
+#include "ste-dbx5x0-u-boot.dtsi"
+#include "ste-ab8500.dtsi"
+
+/ {
+	compatible = "samsung,stemmy", "st-ericsson,u8500";
+
+	chosen {
+		stdout-path = &serial2;
+	};
+
+	soc {
+		/* Debugging console UART */
+		uart at 80007000 {
+			status = "okay";
+		};
+	};
+};
arch/arm/mach-u8500/Kconfig +21 -0
index 3bc76295cb..7478deb25f 100644
@@ -3,4 +3,25 @@ if ARCH_U8500
 config SYS_SOC
 	default "u8500"
 
+choice
+	prompt "U8500 board selection"
+
+config TARGET_STEMMY
+	bool "Samsung (stemmy) board"
+	help
+	  The Samsung "stemmy" board supports Samsung smartphones released with
+	  the ST-Ericsson NovaThor U8500 SoC, e.g.
+
+	      - Samsung Galaxy S III mini (GT-I8190)	"golden"
+	      - Samsung Galaxy S Advance (GT-I9070)	"janice"
+	      - Samsung Galaxy Xcover 2 (GT-S7710)	"skomer"
+
+	  and likely others as well (untested).
+
+	  See board/ste/stemmy/README for details.
+
+endchoice
+
+source "board/ste/stemmy/Kconfig"
+
 endif
board/ste/stemmy/Kconfig new file +12 -0
new file mode 100644
index 0000000000..b890ba51cb
@@ -0,0 +1,12 @@
+if TARGET_STEMMY
+
+config SYS_BOARD
+	default "stemmy"
+
+config SYS_VENDOR
+	default "ste"
+
+config SYS_CONFIG_NAME
+	default "stemmy"
+
+endif
board/ste/stemmy/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000000..37daabea9c
@@ -0,0 +1,6 @@
+STEMMY BOARD
+M:	Stephan Gerhold <[email protected]>
+S:	Maintained
+F:	board/ste/stemmy/
+F:	include/configs/stemmy.h
+F:	configs/stemmy_defconfig
board/ste/stemmy/Makefile new file +2 -0
new file mode 100644
index 0000000000..1245099bc9
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+obj-y	:= stemmy.o
board/ste/stemmy/README new file +49 -0

49 lines not on this page · raw message

board/ste/stemmy/stemmy.c new file +18 -0
new file mode 100644
index 0000000000..8cf6f18755
@@ -0,0 +1,18 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright (C) 2019 Stephan Gerhold <[email protected]>
+ */
+#include <common.h>
+
+DECLARE_GLOBAL_DATA_PTR;
+
+int dram_init(void)
+{
+	gd->ram_size = get_ram_size(CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_SDRAM_SIZE);
+	return 0;
+}
+
+int board_init(void)
+{
+	return 0;
+}
configs/stemmy_defconfig new file +18 -0
new file mode 100644
index 0000000000..6908ef3448
@@ -0,0 +1,18 @@
+CONFIG_ARM=y
+CONFIG_ARCH_U8500=y
+CONFIG_SYS_TEXT_BASE=0x100000
+CONFIG_NR_DRAM_BANKS=1
+CONFIG_SYS_CONSOLE_INFO_QUIET=y
+CONFIG_HUSH_PARSER=y
+CONFIG_CMD_CONFIG=y
+CONFIG_CMD_LICENSE=y
+CONFIG_CMD_DM=y
+CONFIG_CMD_GPIO=y
+CONFIG_CMD_MMC=y
+CONFIG_CMD_PART=y
+CONFIG_CMD_GETTIME=y
+CONFIG_EFI_PARTITION=y
+CONFIG_DEFAULT_DEVICE_TREE="ste-ux500-samsung-stemmy"
+# CONFIG_NET is not set
+# CONFIG_MMC_HW_PARTITIONING is not set
+# CONFIG_EFI_LOADER is not set
include/configs/stemmy.h new file +29 -0
new file mode 100644
index 0000000000..922eec43ee
@@ -0,0 +1,29 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+/*
+ * Copyright (C) 2019 Stephan Gerhold <[email protected]>
+ */
+#ifndef __CONFIGS_STEMMY_H
+#define __CONFIGS_STEMMY_H
+
+#include <linux/sizes.h>
+
+#define CONFIG_SKIP_LOWLEVEL_INIT	/* Loaded by another bootloader */
+#define CONFIG_SYS_MALLOC_LEN		SZ_2M
+
+/* Physical Memory Map */
+#define PHYS_SDRAM_1			0x00000000	/* DDR-SDRAM Bank #1 */
+#define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM_1
+#define CONFIG_SYS_SDRAM_SIZE		SZ_1G
+#define CONFIG_SYS_INIT_RAM_SIZE	0x00100000
+#define CONFIG_SYS_GBL_DATA_OFFSET	(CONFIG_SYS_SDRAM_BASE + \
+					 CONFIG_SYS_INIT_RAM_SIZE - \
+					 GENERATED_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_ADDR		CONFIG_SYS_GBL_DATA_OFFSET
+
+/* FIXME: This should be loaded from device tree... */
+#define CONFIG_SYS_L2_PL310
+#define CONFIG_SYS_PL310_BASE		0xa0412000
+
+#define CONFIG_SYS_LOAD_ADDR		0x00100000
+
+#endif
Signature · 1 line
2.24.1
#14 lore raw

RFC PATCH 5/5 board: Add new Samsung "stemmy" board based on ST-Ericsson U8500

Quoted 26 lines · Stephan Gerhold

The ST-Ericsson U8500 SoC has been used in mass-production for some Android smartphones released around 2012.
In particular, Samsung has released more than 5 different smartphones based on U8500, e.g.

- Samsung Galaxy S III mini (GT-I8190) "golden"
- Samsung Galaxy S Advance (GT-I9070) "janice"
- Samsung Galaxy Xcover 2 (GT-S7710) "skomer"

and a few others.

Mainline Linux has great support for the Ux500 SoC, so these smartphones can also run Linux mainline quite well.

Unfortunately, the original Samsung bootloader used on these devices has limitations that prevent booting Linux mainline directly. It keeps the L2 cache enabled, which causes Linux to crash very early, shortly after decompressing the kernel.

Using U-Boot allows to circumvent these limitations. We can let the Samsung bootloader chain-load U-Boot and U-Boot locks the L2 cache before booting into Linux. U-Boot has several other advantages
- it supports device-trees directly and we are no longer limited to flashing Android boot images through Samsung's proprietary download mode.

Quoted 5 lines

The Samsung "stemmy" board covers all Samsung devices based on U8500. Add minimal support for "stemmy". For now only UART is supported but this will be extended later.

Yours,
Linus Walleij

#15 lore raw

RFC PATCH 5/5 board: Add new Samsung "stemmy" board based on ST-Ericsson U8500

In reply to Stephan Gerhold
Quoted 26 lines · Stephan Gerhold

The ST-Ericsson U8500 SoC has been used in mass-production for some Android smartphones released around 2012.
In particular, Samsung has released more than 5 different smartphones based on U8500, e.g.

- Samsung Galaxy S III mini (GT-I8190) "golden"
- Samsung Galaxy S Advance (GT-I9070) "janice"
- Samsung Galaxy Xcover 2 (GT-S7710) "skomer"

and a few others.

Mainline Linux has great support for the Ux500 SoC, so these smartphones can also run Linux mainline quite well.

Unfortunately, the original Samsung bootloader used on these devices has limitations that prevent booting Linux mainline directly. It keeps the L2 cache enabled, which causes Linux to crash very early, shortly after decompressing the kernel.

Using U-Boot allows to circumvent these limitations. We can let the Samsung bootloader chain-load U-Boot and U-Boot locks the L2 cache before booting into Linux. U-Boot has several other advantages
- it supports device-trees directly and we are no longer limited to flashing Android boot images through Samsung's proprietary download mode.

Quoted 6 lines

The Samsung "stemmy" board covers all Samsung devices based on U8500. Add minimal support for "stemmy". For now only UART is supported but this will be extended later.

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: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200123/d9a03e7a/attachment.sig>
#16 lore raw

cover arm: Restore minimal support for ST-Ericsson U8500 SoC

In reply to Stephan Gerhold

Hi Tom,

Quoted 18 lines · Stephan Gerhold

This patch series restores minimal U-Boot support for the ST-Ericsson NovaThor U8500 SoC.

Previous support for U8500 was removed in
commit 68282f55b846 ("arm: Remove unused ST-Ericsson u8500 arch") since none of the boards were converted to generic boards before the deadline.

The motivation for adding the SoC and board is explained in
- Patch 3 ("arm: Add support for ST-Ericsson U8500 SoC") and
- Patch 5 ("board: Add new Samsung "stemmy" board based on ST-Ericsson U8500")

I have additional patches for MMC, USB, display and the "stemmy" board, that configure it to provide an Android fastboot interface with similar functionality as the original Samsung bootloader. Some of the patches require some additional work, so I thought it is easier to start with some minimal changes first (only UART).

Quoted 5 lines

I think this makes the patch series quite straightforward, with only ~225 new lines of C code, plus device tree and documentation. The only patch that stands out with ~1.8k lines is the device tree import, directly copied (without modification) from the Linux kernel.

Since we are approaching the end of the merge window,
I was wondering if there is anything I can do to get this patch set applied for v2020.04?

Thanks,
Stephan

Quoted 60 lines

Stephan Gerhold (5):
timer: Add driver for Nomadik Multi Timer Unit (MTU)
arm: dts: Import device tree for ST-Ericsson Ux500
arm: Add support for ST-Ericsson U8500 SoC
MAINTAINERS: Add ARM U8500
board: Add new Samsung "stemmy" board based on ST-Ericsson U8500

 MAINTAINERS                                |    8 +
 arch/arm/Kconfig                           |   20 +
 arch/arm/Makefile                          |    1 +
 arch/arm/dts/Makefile                      |    2 +
 arch/arm/dts/ste-ab8500.dtsi               |  328 ++++++
 arch/arm/dts/ste-ab8505.dtsi               |  275 +++++
 arch/arm/dts/ste-dbx5x0-u-boot.dtsi        |   29 +
 arch/arm/dts/ste-dbx5x0.dtsi               | 1144 ++++++++++++++++++++
 arch/arm/dts/ste-ux500-samsung-stemmy.dts  |   20 +
 arch/arm/include/asm/gpio.h                |    2 +-
 arch/arm/mach-u8500/Kconfig                |   27 +
 arch/arm/mach-u8500/Makefile               |    4 +
 arch/arm/mach-u8500/cache.c                |   37 +
 arch/arm/mach-u8500/cpuinfo.c              |   25 +
 board/ste/stemmy/Kconfig                   |   12 +
 board/ste/stemmy/MAINTAINERS               |    6 +
 board/ste/stemmy/Makefile                  |    2 +
 board/ste/stemmy/README                    |   49 +
 board/ste/stemmy/stemmy.c                  |   18 +
 configs/stemmy_defconfig                   |   18 +
 drivers/timer/Kconfig                      |    9 +
 drivers/timer/Makefile                     |    1 +
 drivers/timer/nomadik-mtu-timer.c          |  114 ++
 include/configs/stemmy.h                   |   29 +
 include/dt-bindings/arm/ux500_pm_domains.h |   15 +
 include/dt-bindings/clock/ste-ab8500.h     |   12 +
 include/dt-bindings/mfd/dbx500-prcmu.h     |   84 ++
 27 files changed, 2290 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/ste-ab8500.dtsi
 create mode 100644 arch/arm/dts/ste-ab8505.dtsi
 create mode 100644 arch/arm/dts/ste-dbx5x0-u-boot.dtsi
 create mode 100644 arch/arm/dts/ste-dbx5x0.dtsi
 create mode 100644 arch/arm/dts/ste-ux500-samsung-stemmy.dts
 create mode 100644 arch/arm/mach-u8500/Kconfig
 create mode 100644 arch/arm/mach-u8500/Makefile
 create mode 100644 arch/arm/mach-u8500/cache.c
 create mode 100644 arch/arm/mach-u8500/cpuinfo.c
 create mode 100644 board/ste/stemmy/Kconfig
 create mode 100644 board/ste/stemmy/MAINTAINERS
 create mode 100644 board/ste/stemmy/Makefile
 create mode 100644 board/ste/stemmy/README
 create mode 100644 board/ste/stemmy/stemmy.c
 create mode 100644 configs/stemmy_defconfig
 create mode 100644 drivers/timer/nomadik-mtu-timer.c
 create mode 100644 include/configs/stemmy.h
 create mode 100644 include/dt-bindings/arm/ux500_pm_domains.h
 create mode 100644 include/dt-bindings/clock/ste-ab8500.h
 create mode 100644 include/dt-bindings/mfd/dbx500-prcmu.h
Signature · 1 line
2.24.1
#17 lore raw

cover arm: Restore minimal support for ST-Ericsson U8500 SoC

Quoted 27 lines · Stephan Gerhold

Hi Tom,

Quoted 18 lines · Stephan Gerhold

This patch series restores minimal U-Boot support for the ST-Ericsson NovaThor U8500 SoC.

Previous support for U8500 was removed in
commit 68282f55b846 ("arm: Remove unused ST-Ericsson u8500 arch") since none of the boards were converted to generic boards before the deadline.

The motivation for adding the SoC and board is explained in
- Patch 3 ("arm: Add support for ST-Ericsson U8500 SoC") and
- Patch 5 ("board: Add new Samsung "stemmy" board based on ST-Ericsson U8500")

I have additional patches for MMC, USB, display and the "stemmy" board, that configure it to provide an Android fastboot interface with similar functionality as the original Samsung bootloader. Some of the patches require some additional work, so I thought it is easier to start with some minimal changes first (only UART).

Quoted 5 lines

I think this makes the patch series quite straightforward, with only ~225 new lines of C code, plus device tree and documentation. The only patch that stands out with ~1.8k lines is the device tree import, directly copied (without modification) from the Linux kernel.

Quoted 3 lines

Since we are approaching the end of the merge window,
I was wondering if there is anything I can do to get this patch set applied for v2020.04?

Since you had marked it as RFC, I had marked it as such in patchwork and overlooked it. I'll take a look soon, thanks.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200122/84fd2532/attachment.sig>
#18 lore raw

cover arm: Restore minimal support for ST-Ericsson U8500 SoC

Quoted 28 lines · Tom Rini
Quoted 27 lines · Stephan Gerhold

Hi Tom,

Quoted 23 lines · Stephan Gerhold

This patch series restores minimal U-Boot support for the ST-Ericsson NovaThor U8500 SoC.

Previous support for U8500 was removed in
commit 68282f55b846 ("arm: Remove unused ST-Ericsson u8500 arch") since none of the boards were converted to generic boards before the deadline.

The motivation for adding the SoC and board is explained in
- Patch 3 ("arm: Add support for ST-Ericsson U8500 SoC") and
- Patch 5 ("board: Add new Samsung "stemmy" board based on ST-Ericsson U8500")

I have additional patches for MMC, USB, display and the "stemmy" board, that configure it to provide an Android fastboot interface with similar functionality as the original Samsung bootloader. Some of the patches require some additional work, so I thought it is easier to start with some minimal changes first (only UART).

I think this makes the patch series quite straightforward, with only ~225 new lines of C code, plus device tree and documentation. The only patch that stands out with ~1.8k lines is the device tree import, directly copied (without modification) from the Linux kernel.

Quoted 6 lines
Quoted 3 lines

Since we are approaching the end of the merge window,
I was wondering if there is anything I can do to get this patch set applied for v2020.04?

Since you had marked it as RFC, I had marked it as such in patchwork and overlooked it. I'll take a look soon, thanks.

Thank you! I thought marking it as RFC is appropriate since I'm adding a new SoC and this is my first U-Boot patch. But it is working fine, so unless there are comments it should be good to go :)

Thanks,
Stephan