Add RZ/G2[HMN] board support
Subsystems (2)
v9 cover Add RZ/G2[HMN] board support
This patch series adds the required SoC/Board support to boot HopeRun HiHope RZ/G2[HMN] boards. Board identification support for supporting multidtb is derived from TF-A blob.
V8-->v9
* Use tf-a blob for identifying board type.
Biju Das (5):
arm: dts: rmobile: r8a774b1: Synchronize DTs with Linux 5.11
arm: dts: rmobile: r8a774e1: Synchronize DTs with Linux 5.11
arm: rmobile: Add HopeRun HiHope RZ/G2M board support
arm: rmobile: Add HopeRun HiHope RZ/G2N board support
arm: rmobile: Add HopeRun HiHope RZ/G2H board support
arch/arm/dts/Makefile | 3 + arch/arm/dts/r8a774b1-hihope-rzg2n-ex.dts | 21 ++++ arch/arm/dts/r8a774b1-hihope-rzg2n-u-boot.dts | 27 +++++ arch/arm/dts/r8a774b1-hihope-rzg2n.dts | 41 +++++++ arch/arm/dts/r8a774b1-u-boot.dtsi | 53 ++++++++ arch/arm/dts/r8a774e1-hihope-rzg2h-ex.dts | 20 ++++ arch/arm/dts/r8a774e1-hihope-rzg2h-u-boot.dts | 27 +++++ arch/arm/dts/r8a774e1-hihope-rzg2h.dts | 41 +++++++ arch/arm/dts/r8a774e1-u-boot.dtsi | 59 +++++++++ arch/arm/mach-rmobile/Kconfig.64 | 16 +++ board/hoperun/hihope-rzg2/Kconfig | 15 +++ board/hoperun/hihope-rzg2/MAINTAINERS | 6 + board/hoperun/hihope-rzg2/Makefile | 9 ++ board/hoperun/hihope-rzg2/hihope-rzg2.c | 113 ++++++++++++++++++ configs/hihope_rzg2_defconfig | 82 +++++++++++++ include/configs/hihope-rzg2.h | 20 ++++ 16 files changed, 553 insertions(+) create mode 100644 arch/arm/dts/r8a774b1-hihope-rzg2n-ex.dts create mode 100644 arch/arm/dts/r8a774b1-hihope-rzg2n-u-boot.dts create mode 100644 arch/arm/dts/r8a774b1-hihope-rzg2n.dts create mode 100644 arch/arm/dts/r8a774b1-u-boot.dtsi create mode 100644 arch/arm/dts/r8a774e1-hihope-rzg2h-ex.dts create mode 100644 arch/arm/dts/r8a774e1-hihope-rzg2h-u-boot.dts create mode 100644 arch/arm/dts/r8a774e1-hihope-rzg2h.dts create mode 100644 arch/arm/dts/r8a774e1-u-boot.dtsi create mode 100644 board/hoperun/hihope-rzg2/Kconfig create mode 100644 board/hoperun/hihope-rzg2/MAINTAINERS create mode 100644 board/hoperun/hihope-rzg2/Makefile create mode 100644 board/hoperun/hihope-rzg2/hihope-rzg2.c create mode 100644 configs/hihope_rzg2_defconfig create mode 100644 include/configs/hihope-rzg2.h
Signature · 1 line
2.17.1
PATCH v9 1/5 arm: dts: rmobile: r8a774b1: Synchronize DTs with Linux 5.11
Synchronize r8a774b1 device trees with Linux 5.11, commit f40ddce88593482919 ("Linux 5.11")
---
* New patch
--- arch/arm/dts/r8a774b1-hihope-rzg2n-ex.dts | 21 ++++++++++++ arch/arm/dts/r8a774b1-hihope-rzg2n.dts | 41 +++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 arch/arm/dts/r8a774b1-hihope-rzg2n-ex.dts create mode 100644 arch/arm/dts/r8a774b1-hihope-rzg2n.dts
arch/arm/dts/r8a774b1-hihope-rzg2n-ex.dts new file +21 -0
@@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for the HiHope RZ/G2N Rev.3.0/4.0 connected to + * sub board + * + * Copyright (C) 2020 Renesas Electronics Corp. + */ + +#include "r8a774b1-hihope-rzg2n.dts" +#include "hihope-rzg2-ex.dtsi" + +/ { + model = "HopeRun HiHope RZ/G2N with sub board"; + compatible = "hoperun,hihope-rzg2-ex", "hoperun,hihope-rzg2n", + "renesas,r8a774b1"; +}; + +/* Set SW43 = ON and SW1001[7] = OFF for SATA port to be activated */ +&sata { + status = "okay"; +};
arch/arm/dts/r8a774b1-hihope-rzg2n.dts new file +41 -0
41 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH v9 2/5 arm: dts: rmobile: r8a774e1: Synchronize DTs with Linux 5.11
In reply to Biju DasSynchronize r8a774e1 device trees with Linux 5.11, commit f40ddce88593482919 ("Linux 5.11").
---
* New patch
--- arch/arm/dts/r8a774e1-hihope-rzg2h-ex.dts | 20 +++++++++++ arch/arm/dts/r8a774e1-hihope-rzg2h.dts | 41 +++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 arch/arm/dts/r8a774e1-hihope-rzg2h-ex.dts create mode 100644 arch/arm/dts/r8a774e1-hihope-rzg2h.dts
arch/arm/dts/r8a774e1-hihope-rzg2h-ex.dts new file +20 -0
@@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for the HiHope RZ/G2H sub board + * + * Copyright (C) 2020 Renesas Electronics Corp. + */ + +#include "r8a774e1-hihope-rzg2h.dts" +#include "hihope-rzg2-ex.dtsi" + +/ { + model = "HopeRun HiHope RZ/G2H with sub board"; + compatible = "hoperun,hihope-rzg2-ex", "hoperun,hihope-rzg2h", + "renesas,r8a774e1"; +}; + +/* Set SW43 = ON and SW1001[7] = OFF for SATA port to be activated */ +&sata { + status = "okay"; +};
arch/arm/dts/r8a774e1-hihope-rzg2h.dts new file +41 -0
41 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH v9 3/5 arm: rmobile: Add HopeRun HiHope RZ/G2M board support
In reply to Biju DasThe HiHope RZ/G2M board from HopeRun consists of main board (HopeRun HiHope RZ/G2M main board) and sub board(HopeRun HiHope RZ/G2M sub board). The HiHope RZ/G2M sub board sits below the HiHope RZ/G2M main board.
This patch adds the required board support to boot HopeRun HiHope RZ/G2M board.
---v8->v9
* Board idenitty for multidtb is derived from TF-A blob.v7->v8
* Seperated DT patchesV6->V7
* Seperated driver patches from board support patches.
v5->v6
* Rebased to U-boot-sh/master
* Changed the logic for USB0 channel0 Host support.
* Enabled CONFIG_SOC_DEVICE_RENESAS option
V4->V5
* Rebased to U-boot-sh/next
V3->V4
* Added USB0 channel0 Host support
V2->V3
* Reworked as per Marek's suggestion
* Added rzg2_get_cpu_type function to get cpu_type by matching TFA compatible string
* Removed SoC family type Enum
V1->V2
* Fixed indentation for R8A774A1 config
* Used GPIO hog for setting WLAN/BT REG ON
* Removed USB related initialization
V1:-
* New Patch
--- arch/arm/dts/Makefile | 1 + arch/arm/mach-rmobile/Kconfig.64 | 14 ++++ board/hoperun/hihope-rzg2/Kconfig | 15 ++++ board/hoperun/hihope-rzg2/MAINTAINERS | 6 ++ board/hoperun/hihope-rzg2/Makefile | 9 ++ board/hoperun/hihope-rzg2/hihope-rzg2.c | 105 ++++++++++++++++++++++++ configs/hihope_rzg2_defconfig | 82 ++++++++++++++++++ include/configs/hihope-rzg2.h | 20 +++++ 8 files changed, 252 insertions(+) create mode 100644 board/hoperun/hihope-rzg2/Kconfig create mode 100644 board/hoperun/hihope-rzg2/MAINTAINERS create mode 100644 board/hoperun/hihope-rzg2/Makefile create mode 100644 board/hoperun/hihope-rzg2/hihope-rzg2.c create mode 100644 configs/hihope_rzg2_defconfig create mode 100644 include/configs/hihope-rzg2.h
arch/arm/dts/Makefile +1 -0
@@ -811,6 +811,7 @@ dtb-$(CONFIG_RCAR_GEN3) += \ r8a774a1-beacon-rzg2m-kit.dtb \ r8a774b1-beacon-rzg2n-kit.dtb \ r8a774e1-beacon-rzg2h-kit.dtb \ + r8a774a1-hihope-rzg2m-u-boot.dtb \ r8a77950-ulcb-u-boot.dtb \ r8a77950-salvator-x-u-boot.dtb \ r8a77960-ulcb-u-boot.dtb \
arch/arm/mach-rmobile/Kconfig.64 +14 -0
@@ -4,6 +4,8 @@ menu "Select Target SoC" config R8A774A1 bool "Renesas SoC R8A774A1" + imply CLK_R8A774A1 + imply PINCTRL_PFC_R8A774A1 config R8A774B1 bool "Renesas SoC R8A774B1"
@@ -99,6 +101,15 @@ config TARGET_EBISU help Support for Renesas R-Car Gen3 Ebisu platform +config TARGET_HIHOPE_RZG2 + bool "HiHope RZ/G2 board" + imply R8A774A1 + imply SYS_MALLOC_F + imply MULTI_DTB_FIT + imply MULTI_DTB_FIT_USER_DEFINED_AREA + help + Support for RZG2 HiHope platform + config TARGET_SALVATOR_X bool "Salvator-X board" imply R8A7795
@@ -133,12 +144,15 @@ source "board/renesas/ebisu/Kconfig" source "board/renesas/salvator-x/Kconfig" source "board/renesas/ulcb/Kconfig" source "board/beacon/beacon-rzg2m/Kconfig" +source "board/hoperun/hihope-rzg2/Kconfig" config MULTI_DTB_FIT_UNCOMPRESS_SZ + default 0x80000 if TARGET_HIHOPE_RZG2 default 0x80000 if TARGET_SALVATOR_X default 0x80000 if TARGET_ULCB config MULTI_DTB_FIT_USER_DEF_ADDR + default 0x49000000 if TARGET_HIHOPE_RZG2 default 0x49000000 if TARGET_SALVATOR_X default 0x49000000 if TARGET_ULCB
board/hoperun/hihope-rzg2/Kconfig new file +15 -0
@@ -0,0 +1,15 @@ +if TARGET_HIHOPE_RZG2 + +config SYS_SOC + default "rmobile" + +config SYS_BOARD + default "hihope-rzg2" + +config SYS_VENDOR + default "hoperun" + +config SYS_CONFIG_NAME + default "hihope-rzg2" + +endif
board/hoperun/hihope-rzg2/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +HIHOPE_RZG2 BOARD +M: Biju Das <[email protected]> +S: Maintained +F: board/hoperun/hihope-rzg2/ +F: include/configs/hihope-rzg2.h +F: configs/hihope_rzg2_defconfig
board/hoperun/hihope-rzg2/Makefile new file +9 -0
@@ -0,0 +1,9 @@ +# +# board/hoperun/hihope-rzg2/Makefile +# +# Copyright (C) 2021 Renesas Electronics Corporation +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y := hihope-rzg2.o ../../renesas/rcar-common/common.o
board/hoperun/hihope-rzg2/hihope-rzg2.c new file +105 -0
105 lines not on this page · raw message
configs/hihope_rzg2_defconfig new file +82 -0
82 lines not on this page · raw message
include/configs/hihope-rzg2.h new file +20 -0
@@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* include/configs/hihope-rzg2.h +* This file is HOPERUN HiHope RZ/G2 board configuration. +* +* Copyright (C) 2020 Renesas Electronics Corporation +*/ + +#ifndef __HIHOPE_RZG2_H +#define __HIHOPE_RZG2_H + +#include "rcar-gen3-common.h" + +/* Ethernet RAVB */ +#define CONFIG_BITBANGMII_MULTI + +/* Generic Timer Definitions (use in assembler source) */ +#define COUNTER_FREQUENCY 0xFE502A/* 16.66MHz from CPclk */ + +#endif /* __HIHOPE_RZG2_H */
Signature · 1 line
2.17.1
PATCH v9 4/5 arm: rmobile: Add HopeRun HiHope RZ/G2N board support
In reply to Biju DasThe HiHope RZ/G2N board from HopeRun consists of main board (HopeRun HiHope RZ/G2N main board) and sub board(HopeRun HiHope RZ/G2N sub board). The HiHope RZ/G2N sub board sits below the HiHope RZ/G2N main board.
This patch adds the required board support to boot HopeRun HiHope RZ/G2N board.
---
v4-v9:
* Board identity for multidtb support derived from TF-A blob.
v3:
* Seperated DT patchesv1->v2:
* No Change. rebased on u-boot-sh/next
v1:
* New patch
--- arch/arm/dts/Makefile | 1 + arch/arm/dts/r8a774b1-hihope-rzg2n-u-boot.dts | 27 ++++++++++ arch/arm/dts/r8a774b1-u-boot.dtsi | 53 +++++++++++++++++++ arch/arm/mach-rmobile/Kconfig.64 | 1 + board/hoperun/hihope-rzg2/hihope-rzg2.c | 6 ++- configs/hihope_rzg2_defconfig | 2 +- 6 files changed, 88 insertions(+), 2 deletions(-) create mode 100644 arch/arm/dts/r8a774b1-hihope-rzg2n-u-boot.dts create mode 100644 arch/arm/dts/r8a774b1-u-boot.dtsi
arch/arm/dts/Makefile +1 -0
@@ -812,6 +812,7 @@ dtb-$(CONFIG_RCAR_GEN3) += \ r8a774b1-beacon-rzg2n-kit.dtb \ r8a774e1-beacon-rzg2h-kit.dtb \ r8a774a1-hihope-rzg2m-u-boot.dtb \ + r8a774b1-hihope-rzg2n-u-boot.dtb \ r8a77950-ulcb-u-boot.dtb \ r8a77950-salvator-x-u-boot.dtb \ r8a77960-ulcb-u-boot.dtb \
arch/arm/dts/r8a774b1-hihope-rzg2n-u-boot.dts new file +27 -0
@@ -0,0 +1,27 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source extras for U-Boot for the Hihope RZ/G2N board + * + * Copyright (C) 2021 Renesas Electronics Corp. + */ + +#include "r8a774b1-hihope-rzg2n-ex.dts" +#include "r8a774b1-u-boot.dtsi" + +&gpio3 { + bt_reg_on{ + gpio-hog; + gpios = <13 GPIO_ACTIVE_HIGH>; + output-low; + line-name = "bt-reg-on"; + }; +}; + +&gpio4 { + wlan_reg_on{ + gpio-hog; + gpios = <6 GPIO_ACTIVE_HIGH>; + output-low; + line-name = "wlan-reg-on"; + }; +};
arch/arm/dts/r8a774b1-u-boot.dtsi new file +53 -0
53 lines not on this page · raw message
arch/arm/mach-rmobile/Kconfig.64 +1 -0
@@ -104,6 +104,7 @@ config TARGET_EBISU config TARGET_HIHOPE_RZG2 bool "HiHope RZ/G2 board" imply R8A774A1 + imply R8A774B1 imply SYS_MALLOC_F imply MULTI_DTB_FIT imply MULTI_DTB_FIT_USER_DEFINED_AREA
board/hoperun/hihope-rzg2/hihope-rzg2.c +5 -1
@@ -1,7 +1,7 @@// SPDX-License-Identifier: GPL-2.0+ /* * board/hoperun/hihope-rzg2/hihope-rzg2.c -* This file is HiHope RZ/G2M board support. +* This file is HiHope RZ/G2[MN] board support. * * Copyright (C) 2021 Renesas Electronics Corporation */
@@ -100,6 +100,10 @@ int board_fit_config_name_match(const char *name) !strcmp(name, "r8a774a1-hihope-rzg2m-u-boot"))return 0 ; +if (is_hoperun_hihope_rzg2_board ("hoperun,hihope-rzg2n" ) && + !strcmp (name,"r8a774b1-hihope-rzg2n-u-boot" )) +return 0 ; + return -1; }#endif
configs/hihope_rzg2_defconfig +1 -1
@@ -32,7 +32,7 @@ CONFIG_CMD_EXT4_WRITE=y CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y CONFIG_OF_CONTROL=y -CONFIG_OF_LIST="r8a774a1-hihope-rzg2m-u-boot" +CONFIG_OF_LIST="r8a774a1-hihope-rzg2m-u-boot r8a774b1-hihope-rzg2n-u-boot" CONFIG_MULTI_DTB_FIT_LZO=y CONFIG_MULTI_DTB_FIT_USER_DEFINED_AREA=y CONFIG_ENV_OVERWRITE=y
Signature · 1 line
2.17.1
PATCH v9 5/5 arm: rmobile: Add HopeRun HiHope RZ/G2H board support
In reply to Biju DasThe HiHope RZ/G2H board from HopeRun consists of main board (HopeRun HiHope RZ/G2H main board) and sub board(HopeRun HiHope RZ/G2H sub board). The HiHope RZ/G2H sub board sits below the HiHope RZ/G2H main board.
This patch adds the required board support to boot HopeRun HiHope RZ/G2H board.
---
v4-v9:
* Board identity for multidtb support derived from TF-A blob.
v3:
* Seperated DT patchesv1->v2:
* No Change. rebased on u-boot-sh/next
v1:
* New patch
--- arch/arm/dts/Makefile | 1 + arch/arm/dts/r8a774e1-hihope-rzg2h-u-boot.dts | 27 +++++++++ arch/arm/dts/r8a774e1-u-boot.dtsi | 59 +++++++++++++++++++ arch/arm/mach-rmobile/Kconfig.64 | 1 + board/hoperun/hihope-rzg2/hihope-rzg2.c | 6 +- configs/hihope_rzg2_defconfig | 2 +- 6 files changed, 94 insertions(+), 2 deletions(-) create mode 100644 arch/arm/dts/r8a774e1-hihope-rzg2h-u-boot.dts create mode 100644 arch/arm/dts/r8a774e1-u-boot.dtsi
arch/arm/dts/Makefile +1 -0
@@ -813,6 +813,7 @@ dtb-$(CONFIG_RCAR_GEN3) += \ r8a774e1-beacon-rzg2h-kit.dtb \ r8a774a1-hihope-rzg2m-u-boot.dtb \ r8a774b1-hihope-rzg2n-u-boot.dtb \ + r8a774e1-hihope-rzg2h-u-boot.dtb \ r8a77950-ulcb-u-boot.dtb \ r8a77950-salvator-x-u-boot.dtb \ r8a77960-ulcb-u-boot.dtb \
arch/arm/dts/r8a774e1-hihope-rzg2h-u-boot.dts new file +27 -0
@@ -0,0 +1,27 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source extras for U-Boot for the Hihope RZ/G2H board + * + * Copyright (C) 2020 Renesas Electronics Corp. + */ + +#include "r8a774e1-hihope-rzg2h-ex.dts" +#include "r8a774e1-u-boot.dtsi" + +&gpio3 { + bt_reg_on{ + gpio-hog; + gpios = <13 GPIO_ACTIVE_HIGH>; + output-low; + line-name = "bt-reg-on"; + }; +}; + +&gpio4 { + wlan_reg_on{ + gpio-hog; + gpios = <6 GPIO_ACTIVE_HIGH>; + output-low; + line-name = "wlan-reg-on"; + }; +};
arch/arm/dts/r8a774e1-u-boot.dtsi new file +59 -0
59 lines not on this page · raw message
arch/arm/mach-rmobile/Kconfig.64 +1 -0
@@ -105,6 +105,7 @@ config TARGET_HIHOPE_RZG2 bool "HiHope RZ/G2 board" imply R8A774A1 imply R8A774B1 + imply R8A774E1 imply SYS_MALLOC_F imply MULTI_DTB_FIT imply MULTI_DTB_FIT_USER_DEFINED_AREA
board/hoperun/hihope-rzg2/hihope-rzg2.c +5 -1
@@ -1,7 +1,7 @@// SPDX-License-Identifier: GPL-2.0+ /* * board/hoperun/hihope-rzg2/hihope-rzg2.c -* This file is HiHope RZ/G2[MN] board support. +* This file is HiHope RZ/G2[HMN] board support. * * Copyright (C) 2021 Renesas Electronics Corporation */
@@ -104,6 +104,10 @@ int board_fit_config_name_match(const char *name) !strcmp(name, "r8a774b1-hihope-rzg2n-u-boot"))return 0 ; +if (is_hoperun_hihope_rzg2_board ("hoperun,hihope-rzg2h" ) && + !strcmp (name,"r8a774e1-hihope-rzg2h-u-boot" )) +return 0 ; + return -1; }#endif
configs/hihope_rzg2_defconfig +1 -1
@@ -32,7 +32,7 @@ CONFIG_CMD_EXT4_WRITE=y CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y CONFIG_OF_CONTROL=y -CONFIG_OF_LIST="r8a774a1-hihope-rzg2m-u-boot r8a774b1-hihope-rzg2n-u-boot" +CONFIG_OF_LIST="r8a774a1-hihope-rzg2m-u-boot r8a774b1-hihope-rzg2n-u-boot r8a774e1-hihope-rzg2h-u-boot" CONFIG_MULTI_DTB_FIT_LZO=y CONFIG_MULTI_DTB_FIT_USER_DEFINED_AREA=y CONFIG_ENV_OVERWRITE=y
Signature · 1 line
2.17.1
Marek Vasut
Appliedv9 cover Add RZ/G2[HMN] board support
In reply to Biju DasQuoted 6 lines · Biju Das
This patch series adds the required SoC/Board support to boot HopeRun HiHope RZ/G2[HMN] boards. Board identification support for supporting multidtb is derived from TF-A blob.
V8-->v9
* Use tf-a blob for identifying board type.
Applied all, thanks.