Skip to contentSkip to conversation

gpio: renesas: Add RZ/A1 R7S72100 GPIO driver

PATCH New Marek Vasut 2 participants 11 messages May 4, 2019 – May 9, 2019

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

PATCH 1/9 gpio: renesas: Add RZ/A1 R7S72100 GPIO driver

Add GPIO driver for RZ/A1 SoC. The IP is very different from the R-Car Gen2/Gen3 one already present in the tree, hence a custom driver.

Cc Chris Brandt <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
---
 drivers/gpio/Kconfig     |   6 ++
 drivers/gpio/Makefile    |   1 +
 drivers/gpio/gpio-rza1.c | 134 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 141 insertions(+)
 create mode 100644 drivers/gpio/gpio-rza1.c
drivers/gpio/Kconfig +6 -0
index b3e4ecc50e..4e2095dcd6 100644
@@ -169,6 +169,12 @@ config RCAR_GPIO
 	help
 	  This driver supports the GPIO banks on Renesas RCar SoCs.
 
+config RZA1_GPIO
+	bool "Renesas RZ/A1 GPIO driver"
+	depends on DM_GPIO && RZA1
+	help
+	  This driver supports the GPIO banks on Renesas RZ/A1 R7S72100 SoCs.
+
 config ROCKCHIP_GPIO
 	bool "Rockchip GPIO driver"
 	depends on DM_GPIO
drivers/gpio/Makefile +1 -0
index 3be325044f..7337153e0e 100644
@@ -27,6 +27,7 @@ obj-$(CONFIG_PCA953X)		+= pca953x.o
 obj-$(CONFIG_PCA9698)		+= pca9698.o
 obj-$(CONFIG_ROCKCHIP_GPIO)	+= rk_gpio.o
 obj-$(CONFIG_RCAR_GPIO)		+= gpio-rcar.o
+obj-$(CONFIG_RZA1_GPIO)		+= gpio-rza1.o
 obj-$(CONFIG_S5P)		+= s5p_gpio.o
 obj-$(CONFIG_SANDBOX_GPIO)	+= sandbox.o
 obj-$(CONFIG_SPEAR_GPIO)	+= spear_gpio.o
drivers/gpio/gpio-rza1.c new file +134 -0

134 lines not on this page · raw message

Signature · 1 line
2.20.1
#1 lore raw

PATCH 2/9 pinctrl: renesas: Add RZ/A1 R7S72100 pin control driver

Add pin control driver for RZ/A1 SoC. The IP is very different from the R-Car Gen2/Gen3 one already present in the tree, hence a custom driver.

Cc Chris Brandt <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
---
 drivers/pinctrl/renesas/Kconfig        |  12 ++
 drivers/pinctrl/renesas/Makefile       |   1 +
 drivers/pinctrl/renesas/pfc-r7s72100.c | 146 +++++++++++++++++++++++++
 3 files changed, 159 insertions(+)
 create mode 100644 drivers/pinctrl/renesas/pfc-r7s72100.c
drivers/pinctrl/renesas/Kconfig +12 -0
index 152414ce31..0ffd7fcfd4 100644
@@ -3,6 +3,7 @@ if ARCH_RMOBILE
 config PINCTRL_PFC
 	bool "Renesas pin control drivers"
 	depends on DM && ARCH_RMOBILE
+	default n if CPU_RZA1
 	help
 	  Enable support for clock present on Renesas RCar SoCs.
 
@@ -116,4 +117,15 @@ config PINCTRL_PFC_R8A77995
 	  the GPIO definitions and pin control functions for each available
 	  multiplex function.
 
+config PINCTRL_PFC_R7S72100
+	bool "Renesas RZ/A1 R7S72100 pin control driver"
+	depends on CPU_RZA1
+	default y if CPU_RZA1
+	help
+	  Support pin multiplexing control on Renesas RZ/A1 R7S72100 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
drivers/pinctrl/renesas/Makefile +1 -0
index 596b0023a3..e8703f681e 100644
@@ -10,3 +10,4 @@ obj-$(CONFIG_PINCTRL_PFC_R8A77965) += pfc-r8a77965.o
 obj-$(CONFIG_PINCTRL_PFC_R8A77970) += pfc-r8a77970.o
 obj-$(CONFIG_PINCTRL_PFC_R8A77990) += pfc-r8a77990.o
 obj-$(CONFIG_PINCTRL_PFC_R8A77995) += pfc-r8a77995.o
+obj-$(CONFIG_PINCTRL_PFC_R7S72100) += pfc-r7s72100.o
drivers/pinctrl/renesas/pfc-r7s72100.c new file +146 -0

146 lines not on this page · raw message

Signature · 1 line
2.20.1
#2 lore raw

PATCH 3/9 timer: renesas: Add RZ/A1 R7S72100 OSTM timer driver

In reply to Marek Vasut

Add OSTM timer driver for RZ/A1 SoC. The IP is very different from the R-Car Gen2/Gen3 one already present in the tree, hence a custom driver.

Cc Chris Brandt <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
---
 drivers/timer/Kconfig      |  7 +++
 drivers/timer/Makefile     |  1 +
 drivers/timer/ostm_timer.c | 92 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 100 insertions(+)
 create mode 100644 drivers/timer/ostm_timer.c
drivers/timer/Kconfig +7 -0
index df37a798bd..5f4bc6edb6 100644
@@ -110,6 +110,13 @@ config MPC83XX_TIMER
 	  Select this to enable support for the timer found on
 	  devices based on the MPC83xx family of SoCs.
 
+config RENESAS_OSTM_TIMER
+	bool "Renesas RZ/A1 R7S72100 OSTM Timer"
+	depends on TIMER
+	help
+	  Enables support for the Renesas OSTM Timer driver.
+	  This timer is present on Renesas RZ/A1 R7S72100 SoCs.
+
 config X86_TSC_TIMER_EARLY_FREQ
 	int "x86 TSC timer frequency in MHz when used as the early timer"
 	depends on X86_TSC_TIMER
drivers/timer/Makefile +1 -0
index d0bf218b11..fa35bea6c5 100644
@@ -13,6 +13,7 @@ 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_OMAP_TIMER)	+= omap-timer.o
+obj-$(CONFIG_RENESAS_OSTM_TIMER) += ostm_timer.o
 obj-$(CONFIG_RISCV_TIMER) += riscv_timer.o
 obj-$(CONFIG_ROCKCHIP_TIMER) += rockchip_timer.o
 obj-$(CONFIG_SANDBOX_TIMER)	+= sandbox_timer.o
drivers/timer/ostm_timer.c new file +92 -0

92 lines not on this page · raw message

Signature · 1 line
2.20.1
#3 lore raw

PATCH 4/9 serial: sh: Add RZ/A1 support

In reply to Marek Vasut

Add support for RZ/A1 SoC specifics.

Cc Chris Brandt <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
---
 drivers/serial/serial_sh.c | 3 +++
 drivers/serial/serial_sh.h | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)
drivers/serial/serial_sh.c +3 -0
index e6fe5c7c67..8f52f9dce4 100644
@@ -62,6 +62,9 @@ static void sh_serial_init_generic(struct uart_port *port)
 	sci_out(port, SCFCR, SCFCR_RFRST|SCFCR_TFRST);
 	sci_in(port, SCFCR);
 	sci_out(port, SCFCR, 0);
+#if defined(CONFIG_RZA1)
+	sci_out(port, SCSPTR, 0x0003);
+#endif
 }
 
 static void
drivers/serial/serial_sh.h +2 -1
index 887dd19ff5..8aa80d4a37 100644
@@ -195,7 +195,7 @@ struct uart_port {
 #  define SCSPTR7 0xfffeB820 /* 16 bit SCIF */
 # endif
 # define SCSCR_INIT(port)	0x38 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */
-#elif defined(CONFIG_CPU_SH7269)
+#elif defined(CONFIG_CPU_SH7269) || defined(CONFIG_RZA1)
 # define SCSPTR0 0xe8007020 /* 16 bit SCIF */
 # define SCSPTR1 0xe8007820 /* 16 bit SCIF */
 # define SCSPTR2 0xe8008020 /* 16 bit SCIF */
@@ -205,6 +205,7 @@ struct uart_port {
 # define SCSPTR6 0xe800a020 /* 16 bit SCIF */
 # define SCSPTR7 0xe800a820 /* 16 bit SCIF */
 # define SCSCR_INIT(port)	0x38 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */
+# define SCIF_ORER 0x0001  /* overrun error bit */
 #elif defined(CONFIG_CPU_SH7619)
 # define SCSPTR0 0xf8400020 /* 16 bit SCIF */
 # define SCSPTR1 0xf8410020 /* 16 bit SCIF */
Signature · 1 line
2.20.1
#4 lore raw

PATCH 5/9 net: sh_eth: Add RZ/A1 support

In reply to Marek Vasut

Add support for RZ/A1 SoC specifics.

Cc Chris Brandt <[email protected]>
Cc Joe Hershberger <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
---
 drivers/net/sh_eth.h | 56 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)
drivers/net/sh_eth.h +56 -0
index d8b4bda3ef..e1bbd4913f 100644
@@ -228,6 +228,60 @@ static const u16 sh_eth_offset_gigabit[SH_ETH_MAX_REGISTER_OFFSET] = {
 	[RMII_MII] =  0x0790,
 };
 
+static const u16 sh_eth_offset_rz[SH_ETH_MAX_REGISTER_OFFSET] = {
+	[EDSR]	= 0x0000,
+	[EDMR]	= 0x0400,
+	[EDTRR]	= 0x0408,
+	[EDRRR]	= 0x0410,
+	[EESR]	= 0x0428,
+	[EESIPR]	= 0x0430,
+	[TDLAR]	= 0x0010,
+	[TDFAR]	= 0x0014,
+	[TDFXR]	= 0x0018,
+	[TDFFR]	= 0x001c,
+	[RDLAR]	= 0x0030,
+	[RDFAR]	= 0x0034,
+	[RDFXR]	= 0x0038,
+	[RDFFR]	= 0x003c,
+	[TRSCER]	= 0x0438,
+	[RMFCR]	= 0x0440,
+	[TFTR]	= 0x0448,
+	[FDR]	= 0x0450,
+	[RMCR]	= 0x0458,
+	[RPADIR]	= 0x0460,
+	[FCFTR]	= 0x0468,
+	[CSMR] = 0x04E4,
+
+	[ECMR]	= 0x0500,
+	[ECSR]	= 0x0510,
+	[ECSIPR]	= 0x0518,
+	[PIR]	= 0x0520,
+	[PSR]	= 0x0528,
+	[PIPR]	= 0x052c,
+	[RFLR]	= 0x0508,
+	[APR]	= 0x0554,
+	[MPR]	= 0x0558,
+	[PFTCR]	= 0x055c,
+	[PFRCR]	= 0x0560,
+	[TPAUSER]	= 0x0564,
+	[GECMR]	= 0x05b0,
+	[BCULR]	= 0x05b4,
+	[MAHR]	= 0x05c0,
+	[MALR]	= 0x05c8,
+	[TROCR]	= 0x0700,
+	[CDCR]	= 0x0708,
+	[LCCR]	= 0x0710,
+	[CEFCR]	= 0x0740,
+	[FRECR]	= 0x0748,
+	[TSFRCR]	= 0x0750,
+	[TLFRCR]	= 0x0758,
+	[RFCR]	= 0x0760,
+	[CERCR]	= 0x0768,
+	[CEECR]	= 0x0770,
+	[MAFCR]	= 0x0778,
+	[RMII_MII] =  0x0790,
+};
+
 static const u16 sh_eth_offset_fast_sh4[SH_ETH_MAX_REGISTER_OFFSET] = {
 	[ECMR]	= 0x0100,
 	[RFLR]	= 0x0108,
@@ -603,6 +657,8 @@ static inline unsigned long sh_eth_reg_addr(struct sh_eth_info *port,
 	const u16 *reg_offset = sh_eth_offset_gigabit;
 #elif defined(SH_ETH_TYPE_ETHER)
 	const u16 *reg_offset = sh_eth_offset_fast_sh4;
+#elif defined(SH_ETH_TYPE_RZ)
+	const u16 *reg_offset = sh_eth_offset_rz;
 #else
 #error
 #endif
Signature · 1 line
2.20.1
#6 lore raw

PATCH 6/9 net: sh_eth: Add support for operation without clock framework

In reply to Marek Vasut

Add ifdeffery to allow operation without the clock framework enabled. This is required on RZ/A1, as it does not have clock driver yet.

Cc Chris Brandt <[email protected]>
Cc Joe Hershberger <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
---
 drivers/net/sh_eth.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/net/sh_eth.c +9 -0
index a2577e1e8f..8e54e7cc7a 100644
@@ -806,9 +806,11 @@ static int sh_ether_probe(struct udevice *udev)
 
 	priv->iobase = pdata->iobase;
 
+#if CONFIG_IS_ENABLED(CLK)
 	ret = clk_get_by_index(udev, 0, &priv->clk);
 	if (ret < 0)
 		return ret;
+#endif
 
 	ret = dev_read_phandle_with_args(udev, "phy-handle", NULL, 0, 0, &phandle_args);
 	if (!ret) {
@@ -843,9 +845,11 @@ static int sh_ether_probe(struct udevice *udev)
 	eth->port_info[eth->port].iobase =
 		(void __iomem *)(BASE_IO_ADDR + 0x800 * eth->port);
 
+#if CONFIG_IS_ENABLED(CLK)
 	ret = clk_enable(&priv->clk);
 	if (ret)
 		goto err_mdio_register;
+#endif
 
 	ret = sh_eth_phy_config(udev);
 	if (ret) {
@@ -856,7 +860,9 @@ static int sh_ether_probe(struct udevice *udev)
 	return 0;
 
 err_phy_config:
+#if CONFIG_IS_ENABLED(CLK)
 	clk_disable(&priv->clk);
+#endif
 err_mdio_register:
 	mdio_free(mdiodev);
 	return ret;
@@ -868,7 +874,9 @@ static int sh_ether_remove(struct udevice *udev)
 	struct sh_eth_dev *eth = &priv->shdev;
 	struct sh_eth_info *port_info = &eth->port_info[eth->port];
 
+#if CONFIG_IS_ENABLED(CLK)
 	clk_disable(&priv->clk);
+#endif
 	free(port_info->phydev);
 	mdio_unregister(priv->bus);
 	mdio_free(priv->bus);
@@ -917,6 +925,7 @@ int sh_ether_ofdata_to_platdata(struct udevice *dev)
 }
 
 static const struct udevice_id sh_ether_ids[] = {
+	{ .compatible = "renesas,ether-r7s72100" },
 	{ .compatible = "renesas,ether-r8a7790" },
 	{ .compatible = "renesas,ether-r8a7791" },
 	{ .compatible = "renesas,ether-r8a7793" },
Signature · 1 line
2.20.1
#8 lore raw

PATCH 7/9 spi: rpc: Add support for operation without clock framework

In reply to Marek Vasut

Add ifdeffery to allow operation without the clock framework enabled. This is required on RZ/A1, as it does not have clock driver yet.

Cc Chris Brandt <[email protected]>
Cc Jagan Teki <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
---
 drivers/spi/Kconfig           |  2 +-
 drivers/spi/renesas_rpc_spi.c | 12 ++++++++----
 2 files changed, 9 insertions(+), 5 deletions(-)
drivers/spi/Kconfig +1 -1
index fb794adae7..9138425d40 100644
@@ -173,7 +173,7 @@ config PL022_SPI
 
 config RENESAS_RPC_SPI
 	bool "Renesas RPC SPI driver"
-	depends on RCAR_GEN3
+	depends on RCAR_GEN3 || RZA1
 	imply SPI_FLASH_BAR
 	help
 	  Enable the Renesas RPC SPI driver, used to access SPI NOR flash
drivers/spi/renesas_rpc_spi.c +8 -4
index bec9095ff4..bb2e7748fe 100644
@@ -409,27 +409,30 @@ static int rpc_spi_probe(struct udevice *dev)
 
 	priv->regs = plat->regs;
 	priv->extr = plat->extr;
-
+#if CONFIG_IS_ENABLED(CLK)
 	clk_enable(&priv->clk);
-
+#endif
 	return 0;
 }
 
 static int rpc_spi_ofdata_to_platdata(struct udevice *bus)
 {
 	struct rpc_spi_platdata *plat = dev_get_platdata(bus);
-	struct rpc_spi_priv *priv = dev_get_priv(bus);
-	int ret;
 
 	plat->regs = dev_read_addr_index(bus, 0);
 	plat->extr = dev_read_addr_index(bus, 1);
 
+#if CONFIG_IS_ENABLED(CLK)
+	struct rpc_spi_priv *priv = dev_get_priv(bus);
+	int ret;
+
 	ret = clk_get_by_index(bus, 0, &priv->clk);
 	if (ret < 0) {
 		printf("%s: Could not get clock for %s: %d\n",
 		       __func__, bus->name, ret);
 		return ret;
 	}
+#endif
 
 	plat->freq = dev_read_u32_default(bus, "spi-max-freq", 50000000);
 
@@ -448,6 +451,7 @@ static const struct udevice_id rpc_spi_ids[] = {
 	{ .compatible = "renesas,rpc-r8a77965" },
 	{ .compatible = "renesas,rpc-r8a77970" },
 	{ .compatible = "renesas,rpc-r8a77995" },
+	{ .compatible = "renesas,rpc-r7s72100" },
 	{ }
 };
 
Signature · 1 line
2.20.1
#9 lore raw

PATCH 8/9 ARM: dts: renesas: Add RZ/A1 platform code

In reply to Marek Vasut

From: Chris Brandt <[email protected]>

Add platform code and DTs for Renesas RZ/A1 R7S72100 SoC. Distinguishing feature of this SoC is that it has up to 10 MiB of on-SoC static RAM (SRAM).

The DTs are imported from Linux 5.0.11, commit d5a2675b207d .

Cc Chris Brandt <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
---
 arch/arm/Kconfig                              |   2 +-
 arch/arm/dts/r7s72100.dtsi                    | 705 ++++++++++++++++++
 arch/arm/mach-rmobile/Kconfig                 |   5 +
 arch/arm/mach-rmobile/Kconfig.rza1            |  21 +
 arch/arm/mach-rmobile/cpu_info.c              |   8 +
 arch/arm/mach-rmobile/include/mach/rmobile.h  |   1 +
 include/dt-bindings/clock/r7s72100-clock.h    | 112 +++
 .../dt-bindings/pinctrl/r7s72100-pinctrl.h    |  18 +
 8 files changed, 871 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/r7s72100.dtsi
 create mode 100644 arch/arm/mach-rmobile/Kconfig.rza1
 create mode 100644 include/dt-bindings/clock/r7s72100-clock.h
 create mode 100644 include/dt-bindings/pinctrl/r7s72100-pinctrl.h
arch/arm/Kconfig +1 -1
index 49f01f1ff1..70a14eef48 100644
@@ -785,7 +785,7 @@ config ARCH_QEMU
 
 config ARCH_RMOBILE
 	bool "Renesas ARM SoCs"
-	select BOARD_EARLY_INIT_F
+	select BOARD_EARLY_INIT_F if !RZA1
 	select DM
 	select DM_SERIAL
 	imply CMD_DM
arch/arm/dts/r7s72100.dtsi new file +705 -0

705 lines not on this page · raw message

arch/arm/mach-rmobile/Kconfig +5 -0
index c6e5f75daf..bba02b3273 100644
@@ -19,9 +19,14 @@ config RCAR_GEN3
 	imply CMD_MMC_SWRITE if MMC
 	imply SUPPORT_EMMC_RPMB if MMC
 
+config RZA1
+	prompt "Renesas ARM SoCs RZ/A1 (32bit)"
+	select CPU_V7A
+
 endchoice
 
 source "arch/arm/mach-rmobile/Kconfig.32"
 source "arch/arm/mach-rmobile/Kconfig.64"
+source "arch/arm/mach-rmobile/Kconfig.rza1"
 
 endif
arch/arm/mach-rmobile/Kconfig.rza1 new file +21 -0
new file mode 100644
index 0000000000..efb703b92b
@@ -0,0 +1,21 @@
+if RZA1
+
+# required by the Ethernet driver
+config R7S72100
+	bool
+	default y
+
+# required by serial and usb driver
+config CPU_RZA1
+	bool
+	default y
+
+choice
+	prompt "Renesas RZ/A1 board select"
+
+endchoice
+
+config SYS_SOC
+	default "rmobile"
+
+endif
arch/arm/mach-rmobile/cpu_info.c +8 -0
index aa5be52dfd..b0686ed203 100644
@@ -26,6 +26,7 @@ void enable_caches(void)
 #endif
 
 #ifdef CONFIG_DISPLAY_CPUINFO
+#ifndef CONFIG_RZA1
 static u32 __rmobile_get_cpu_type(void)
 {
 	return 0x0;
@@ -105,4 +106,11 @@ int print_cpuinfo(void)
 
 	return 0;
 }
+#else
+int print_cpuinfo(void)
+{
+	printf("CPU: Renesas Electronics RZ/A1\n");
+	return 0;
+}
+#endif
 #endif /* CONFIG_DISPLAY_CPUINFO */
arch/arm/mach-rmobile/include/mach/rmobile.h +1 -0
index c94b3ff509..aa8d43e59b 100644
@@ -18,6 +18,7 @@
 #include <asm/arch/r8a7794.h>
 #elif defined(CONFIG_RCAR_GEN3)
 #include <asm/arch/rcar-gen3-base.h>
+#elif defined(CONFIG_R7S72100)
 #else
 #error "SOC Name not defined"
 #endif
include/dt-bindings/clock/r7s72100-clock.h new file +112 -0

112 lines not on this page · raw message

include/dt-bindings/pinctrl/r7s72100-pinctrl.h new file +18 -0
new file mode 100644
index 0000000000..31ee37610e
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Defines macros and constants for Renesas RZ/A1 pin controller pin
+ * muxing functions.
+ */
+#ifndef __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H
+#define __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H
+
+#define RZA1_PINS_PER_PORT	16
+
+/*
+ * Create the pin index from its bank and position numbers and store in
+ * the upper 16 bits the alternate function identifier
+ */
+#define RZA1_PINMUX(b, p, f)	\
+	((b) * RZA1_PINS_PER_PORT + (p) | ((f) << 16))
+
+#endif /* __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H */
Signature · 1 line
2.20.1
#10 lore raw

PATCH 9/9 ARM: dts: renesas: Add RZ/A1 GR-Peach board

In reply to Marek Vasut

From: Chris Brandt <[email protected]>

Add board code and DTs for Renesas RZ/A1 SoC-based GR-Peach, which is a cheap development platform with RZ/A1H SoC. The DTs are imported from Linux 5.0.11, commit d5a2675b207d .

Currently supported are UART, ethernet and RPC SPI. The board can be booted from RPC SPI by writing the u-boot.bin binary to the beginning of the SPI NOR, e.g. using the "sf" command. The board can also be booted via JTAG by setting text base to 0x20020000, loading u-boot.bin there via JTAG and executing it from that address.

Cc Chris Brandt <[email protected]>
Cc Nobuhiro Iwamatsu <[email protected]>
---
 arch/arm/dts/Makefile                     |   3 +
 arch/arm/dts/r7s72100-gr-peach-u-boot.dts |  78 +++++++++++++
 arch/arm/dts/r7s72100-gr-peach.dts        | 134 ++++++++++++++++++++++
 arch/arm/mach-rmobile/Kconfig.rza1        |   7 ++
 board/renesas/grpeach/Kconfig             |  12 ++
 board/renesas/grpeach/MAINTAINERS         |   6 +
 board/renesas/grpeach/Makefile            |   8 ++
 board/renesas/grpeach/grpeach.c           |  52 +++++++++
 board/renesas/grpeach/lowlevel_init.S     | 107 +++++++++++++++++
 configs/grpeach_defconfig                 |  53 +++++++++
 include/configs/grpeach.h                 |  53 +++++++++
 11 files changed, 513 insertions(+)
 create mode 100644 arch/arm/dts/r7s72100-gr-peach-u-boot.dts
 create mode 100644 arch/arm/dts/r7s72100-gr-peach.dts
 create mode 100644 board/renesas/grpeach/Kconfig
 create mode 100644 board/renesas/grpeach/MAINTAINERS
 create mode 100644 board/renesas/grpeach/Makefile
 create mode 100644 board/renesas/grpeach/grpeach.c
 create mode 100644 board/renesas/grpeach/lowlevel_init.S
 create mode 100644 configs/grpeach_defconfig
 create mode 100644 include/configs/grpeach.h
arch/arm/dts/Makefile +3 -0
index 8e082f2840..a199f3f988 100644
@@ -603,6 +603,9 @@ dtb-$(CONFIG_RCAR_GEN3) += \
 	r8a77990-ebisu-u-boot.dtb \
 	r8a77995-draak-u-boot.dtb
 
+dtb-$(CONFIG_RZA1) += \
+	r7s72100-gr-peach-u-boot.dtb
+
 dtb-$(CONFIG_SOC_KEYSTONE) += keystone-k2hk-evm.dtb \
 	keystone-k2l-evm.dtb \
 	keystone-k2e-evm.dtb \
arch/arm/dts/r7s72100-gr-peach-u-boot.dts new file +78 -0

78 lines not on this page · raw message

arch/arm/dts/r7s72100-gr-peach.dts new file +134 -0

134 lines not on this page · raw message

arch/arm/mach-rmobile/Kconfig.rza1 +7 -0
index efb703b92b..8cf033fb13 100644
@@ -13,9 +13,16 @@ config CPU_RZA1
 choice
 	prompt "Renesas RZ/A1 board select"
 
+# Renesas Supported Boards
+config TARGET_GRPEACH
+	bool "GR-PEACH board"
+
 endchoice
 
 config SYS_SOC
 	default "rmobile"
 
+# Renesas Supported Boards
+source "board/renesas/grpeach/Kconfig"
+
 endif
board/renesas/grpeach/Kconfig new file +12 -0
new file mode 100644
index 0000000000..00dc496b86
@@ -0,0 +1,12 @@
+if TARGET_GRPEACH
+
+config SYS_BOARD
+	default "grpeach"
+
+config SYS_VENDOR
+	default "renesas"
+
+config SYS_CONFIG_NAME
+	default "grpeach"
+
+endif
board/renesas/grpeach/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000000..4ab7773b0a
@@ -0,0 +1,6 @@
+GRPEACH BOARD
+M:	Marek Vasut <[email protected]>
+S:	Maintained
+F:	board/renesas/grpeach/
+F:	include/configs/grpeach.h
+F:	configs/grpeach_defconfig
board/renesas/grpeach/Makefile new file +8 -0
new file mode 100644
index 0000000000..48e185ce3e
@@ -0,0 +1,8 @@
+#
+# Copyright (C) 2017 Renesas Electronics
+# Copyright (C) 2017 Chris Brandt
+#
+# SPDX-License-Identifier:	GPL-2.0+
+
+obj-y	:= grpeach.o
+obj-y	+= lowlevel_init.o
board/renesas/grpeach/grpeach.c new file +52 -0

52 lines not on this page · raw message

board/renesas/grpeach/lowlevel_init.S new file +107 -0

107 lines not on this page · raw message

configs/grpeach_defconfig new file +53 -0

53 lines not on this page · raw message

include/configs/grpeach.h new file +53 -0

53 lines not on this page · raw message

Signature · 1 line
2.20.1