Add Silicon Linux EK874 board
Subsystems (6)
cover Add Silicon Linux EK874 board
Hi All,
This patch series adds support for Silicon Linux EK874 board support which is based on Renesas R8A774C0 SoC.
Cheers,
Prabhakar
Lad Prabhakar (5):
arm: dts: r8a774c0: Resync R8A774C0 SoC DTSI with Linux 5.11
pinctrl: renesas: pfc-r8a77990: Sync PFC tables with Linux 5.11
pinctrl: renesas: Add support for R8A774C0
arm: rmobile: Add Silicon Linux EK874 board support
board: silinux: Enable recovery SPL for EK874 board
arch/arm/dts/Makefile | 1 + arch/arm/dts/cat875.dtsi | 64 ++++ arch/arm/dts/r8a774c0-cat874.dts | 453 +++++++++++++++++++++++++ arch/arm/dts/r8a774c0-ek874-u-boot.dts | 33 ++ arch/arm/dts/r8a774c0-ek874.dts | 14 + arch/arm/dts/r8a774c0-u-boot.dtsi | 53 +++ arch/arm/dts/r8a774c0.dtsi | 27 +- arch/arm/mach-rmobile/Kconfig.64 | 8 + arch/arm/mach-rmobile/Makefile | 2 +- board/silinux/ek874/Kconfig | 15 + board/silinux/ek874/MAINTAINERS | 6 + board/silinux/ek874/Makefile | 13 + board/silinux/ek874/ek874.c | 30 ++ configs/silinux_ek874_defconfig | 83 +++++ drivers/pinctrl/renesas/Kconfig | 10 + drivers/pinctrl/renesas/Makefile | 1 + drivers/pinctrl/renesas/pfc-r8a77990.c | 87 ++++- drivers/pinctrl/renesas/pfc.c | 11 + drivers/pinctrl/renesas/sh_pfc.h | 1 + include/configs/silinux-ek874.h | 20 ++ include/dt-bindings/display/tda998x.h | 8 + 21 files changed, 933 insertions(+), 7 deletions(-) create mode 100644 arch/arm/dts/cat875.dtsi create mode 100644 arch/arm/dts/r8a774c0-cat874.dts create mode 100644 arch/arm/dts/r8a774c0-ek874-u-boot.dts create mode 100644 arch/arm/dts/r8a774c0-ek874.dts create mode 100644 arch/arm/dts/r8a774c0-u-boot.dtsi create mode 100644 board/silinux/ek874/Kconfig create mode 100644 board/silinux/ek874/MAINTAINERS create mode 100644 board/silinux/ek874/Makefile create mode 100644 board/silinux/ek874/ek874.c create mode 100644 configs/silinux_ek874_defconfig create mode 100644 include/configs/silinux-ek874.h create mode 100644 include/dt-bindings/display/tda998x.h
Signature · 1 line
2.17.1
PATCH 1/5 arm: dts: r8a774c0: Resync R8A774C0 SoC DTSI with Linux 5.11
Resync the R8A774C0 SoC DTSI with Linux kernel 5.11 commit f40ddce88593 ("Linux 5.11").
--- arch/arm/dts/r8a774c0.dtsi | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-)
arch/arm/dts/r8a774c0.dtsi +23 -4
@@ -256,7 +256,7 @@ resets = <&cpg 906>; }; - pfc: pin-controller at e6060000 { + pfc: pinctrl at e6060000 { compatible = "renesas,pfc-r8a774c0"; reg = <0 0xe6060000 0 0x508>; };
@@ -960,6 +960,7 @@ power-domains = <&sysc R8A774C0_PD_ALWAYS_ON>; resets = <&cpg 812>; phy-mode = "rgmii"; + rx-internal-delay-ps = <0>; iommus = <&ipmmu_ds0 16>; #address-cells = <1>; #size-cells = <0>;
@@ -1214,9 +1215,8 @@ reg = <0 0xe6ea0000 0 0x0064>; interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg CPG_MOD 210>; - dmas = <&dmac1 0x43>, <&dmac1 0x42>, - <&dmac2 0x43>, <&dmac2 0x42>; - dma-names = "tx", "rx", "tx", "rx"; + dmas = <&dmac0 0x43>, <&dmac0 0x42>; + dma-names = "tx", "rx"; power-domains = <&sysc R8A774C0_PD_ALWAYS_ON>; resets = <&cpg 210>; #address-cells = <1>;
@@ -1698,6 +1698,25 @@ status = "disabled"; }; + pciec0_ep: pcie-ep at fe000000 { + compatible = "renesas,r8a774c0-pcie-ep", + "renesas,rcar-gen3-pcie-ep"; + reg = <0x0 0xfe000000 0 0x80000>, + <0x0 0xfe100000 0 0x100000>, + <0x0 0xfe200000 0 0x200000>, + <0x0 0x30000000 0 0x8000000>, + <0x0 0x38000000 0 0x8000000>; + reg-names = "apb-base", "memory0", "memory1", "memory2", "memory3"; + interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 319>; + clock-names = "pcie"; + resets = <&cpg 319>; + power-domains = <&sysc R8A774C0_PD_ALWAYS_ON>; + status = "disabled"; + }; + vspb0: vsp at fe960000 { compatible = "renesas,vsp2"; reg = <0 0xfe960000 0 0x8000>;
Signature · 1 line
2.17.1
PATCH 2/5 pinctrl: renesas: pfc-r8a77990: Sync PFC tables with Linux 5.11
In reply to Lad PrabhakarSync the R8A77990 SoC PFC tables with Linux 5.11 , commit f40ddce88593.
--- drivers/pinctrl/renesas/pfc-r8a77990.c | 87 +++++++++++++++++++++++++- 1 file changed, 85 insertions(+), 2 deletions(-)
drivers/pinctrl/renesas/pfc-r8a77990.c +85 -2
@@ -1603,6 +1603,7 @@ static const unsigned int canfd1_data_mux[] = { CANFD1_TX_MARK, CANFD1_RX_MARK, }; +#ifdef CONFIG_PINCTRL_PFC_R8A77990 /* - DRIF0 --------------------------------------------------------------- */ static const unsigned int drif0_ctrl_a_pins[] = { /* CLK, SYNC */
@@ -1795,6 +1796,7 @@ static const unsigned int drif3_data1_b_pins[] = {static const unsigned int drif3_data1_b_mux[] = {RIF3_D1_B_MARK , }; +#endif /* CONFIG_PINCTRL_PFC_R8A77990 */ /* - DU --------------------------------------------------------------------- */ static const unsigned int du_rgb666_pins[] = {
@@ -2818,6 +2820,57 @@ static const unsigned int pwm6_b_mux[] = { PWM6_B_MARK, }; +/* - QSPI0 ------------------------------------------------------------------ */ +static const unsigned int qspi0_ctrl_pins[] = { +/* QSPI0_SPCLK, QSPI0_SSL */ +RCAR_GP_PIN (2 ,0 ),RCAR_GP_PIN (2 ,5 ), +}; +static const unsigned int qspi0_ctrl_mux[] = { +QSPI0_SPCLK_MARK ,QSPI0_SSL_MARK , +}; +static const unsigned int qspi0_data2_pins[] = { +/* QSPI0_MOSI_IO0, QSPI0_MISO_IO1 */ +RCAR_GP_PIN (2 ,1 ),RCAR_GP_PIN (2 ,2 ), +}; +static const unsigned int qspi0_data2_mux[] = { +QSPI0_MOSI_IO0_MARK ,QSPI0_MISO_IO1_MARK , +}; +static const unsigned int qspi0_data4_pins[] = { +/* QSPI0_MOSI_IO0, QSPI0_MISO_IO1 */ +RCAR_GP_PIN (2 ,1 ),RCAR_GP_PIN (2 ,2 ), +/* QSPI0_IO2, QSPI0_IO3 */ +RCAR_GP_PIN (2 ,3 ),RCAR_GP_PIN (2 ,4 ), +}; +static const unsigned int qspi0_data4_mux[] = { +QSPI0_MOSI_IO0_MARK ,QSPI0_MISO_IO1_MARK , +QSPI0_IO2_MARK ,QSPI0_IO3_MARK , +}; +/* - QSPI1 ------------------------------------------------------------------ */ +static const unsigned int qspi1_ctrl_pins[] = { +/* QSPI1_SPCLK, QSPI1_SSL */ +RCAR_GP_PIN (2 ,6 ),RCAR_GP_PIN (2 ,11 ), +}; +static const unsigned int qspi1_ctrl_mux[] = { +QSPI1_SPCLK_MARK ,QSPI1_SSL_MARK , +}; +static const unsigned int qspi1_data2_pins[] = { +/* QSPI1_MOSI_IO0, QSPI1_MISO_IO1 */ +RCAR_GP_PIN (2 ,7 ),RCAR_GP_PIN (2 ,8 ), +}; +static const unsigned int qspi1_data2_mux[] = { +QSPI1_MOSI_IO0_MARK ,QSPI1_MISO_IO1_MARK , +}; +static const unsigned int qspi1_data4_pins[] = { +/* QSPI1_MOSI_IO0, QSPI1_MISO_IO1 */ +RCAR_GP_PIN (2 ,7 ),RCAR_GP_PIN (2 ,8 ), +/* QSPI1_IO2, QSPI1_IO3 */ +RCAR_GP_PIN (2 ,9 ),RCAR_GP_PIN (2 ,10 ), +}; +static const unsigned int qspi1_data4_mux[] = { +QSPI1_MOSI_IO0_MARK ,QSPI1_MISO_IO1_MARK , +QSPI1_IO2_MARK ,QSPI1_IO3_MARK , +}; +/* - SCIF0 ------------------------------------------------------------------ */ static const unsigned int scif0_data_a_pins[] = {/* RX, TX */
@@ -3770,8 +3823,10 @@ static const unsigned int vin5_clk_b_mux[] = { };static const struct { -struct sh_pfc_pin_group common[247 ]; +struct sh_pfc_pin_group common[253 ]; +#ifdef CONFIG_PINCTRL_PFC_R8A77990 struct sh_pfc_pin_group automotive[21 ]; +#endif } pinmux_groups = { .common = {SH_PFC_PIN_GROUP (audio_clk_a),
@@ -3916,6 +3971,12 @@ static const struct {SH_PFC_PIN_GROUP (pwm5_b),SH_PFC_PIN_GROUP (pwm6_a),SH_PFC_PIN_GROUP (pwm6_b), +SH_PFC_PIN_GROUP (qspi0_ctrl), +SH_PFC_PIN_GROUP (qspi0_data2), +SH_PFC_PIN_GROUP (qspi0_data4), +SH_PFC_PIN_GROUP (qspi1_ctrl), +SH_PFC_PIN_GROUP (qspi1_data2), +SH_PFC_PIN_GROUP (qspi1_data4),SH_PFC_PIN_GROUP (scif0_data_a),SH_PFC_PIN_GROUP (scif0_clk_a), SH_PFC_PIN_GROUP(scif0_ctrl_a),
@@ -4022,6 +4083,7 @@ static const struct {SH_PFC_PIN_GROUP (vin5_clk_a),SH_PFC_PIN_GROUP (vin5_clk_b), }, +#ifdef CONFIG_PINCTRL_PFC_R8A77990 .automotive = {SH_PFC_PIN_GROUP (drif0_ctrl_a), SH_PFC_PIN_GROUP(drif0_data0_a),
@@ -4045,6 +4107,7 @@ static const struct { SH_PFC_PIN_GROUP(drif3_data0_b), SH_PFC_PIN_GROUP(drif3_data1_b), } +#endif /* CONFIG_PINCTRL_PFC_R8A77990 */ }; static const char * const audio_clk_groups[] = {
@@ -4098,6 +4161,7 @@ static const char * const canfd1_groups[] = { "canfd1_data", }; +#ifdef CONFIG_PINCTRL_PFC_R8A77990 static const char *const drif0_groups[] = {"drif0_ctrl_a" , "drif0_data0_a",
@@ -4130,6 +4194,7 @@ static const char * const drif3_groups[] = {"drif3_data0_b" , "drif3_data1_b", }; +#endif /* CONFIG_PINCTRL_PFC_R8A77990 */ static const char *const du_groups[] = {"du_rgb666" ,
@@ -4315,6 +4380,18 @@ static const char * const pwm6_groups[] = { "pwm6_b", }; +static const char *const qspi0_groups[] = { +"qspi0_ctrl" , +"qspi0_data2" , +"qspi0_data4" , +}; + +static const char *const qspi1_groups[] = { +"qspi1_ctrl" , +"qspi1_data2" , +"qspi1_data4" , +}; +static const char *const scif0_groups[] = {"scif0_data_a" ,"scif0_clk_a" ,
@@ -4469,8 +4546,10 @@ static const char * const vin5_groups[] = { };static const struct { -struct sh_pfc_function common[47 ]; +struct sh_pfc_function common[49 ]; +#ifdef CONFIG_PINCTRL_PFC_R8A77990 struct sh_pfc_function automotive[4 ]; +#endif } pinmux_functions = { .common = {SH_PFC_FUNCTION (audio_clk),
@@ -4504,6 +4583,8 @@ static const struct {SH_PFC_FUNCTION (pwm4),SH_PFC_FUNCTION (pwm5),SH_PFC_FUNCTION (pwm6), +SH_PFC_FUNCTION (qspi0), +SH_PFC_FUNCTION (qspi1),SH_PFC_FUNCTION (scif0),SH_PFC_FUNCTION (scif1), SH_PFC_FUNCTION(scif2),
@@ -4521,12 +4602,14 @@ static const struct {SH_PFC_FUNCTION (vin4),SH_PFC_FUNCTION (vin5 ), }, +#ifdef CONFIG_PINCTRL_PFC_R8A77990 .automotive = {SH_PFC_FUNCTION (drif0),SH_PFC_FUNCTION (drif1),SH_PFC_FUNCTION (drif2),SH_PFC_FUNCTION (drif3), } +#endif /* CONFIG_PINCTRL_PFC_R8A77990 */ };static const struct pinmux_cfg_reg pinmux_config_regs[] = {
Signature · 1 line
2.17.1
PATCH 3/5 pinctrl: renesas: Add support for R8A774C0
In reply to Lad PrabhakarRenesas RZ/G2E (a.k.a. r8a774c0) is pin compatible with R-Car E3 (a.k.a. r8a77990), however it doesn't have several automotive specific peripherals.
This patch hooks R8A774C0 SoC with the pfc driver.
--- arch/arm/mach-rmobile/Kconfig.64 | 1 + drivers/pinctrl/renesas/Kconfig | 10 ++++++++++ drivers/pinctrl/renesas/Makefile | 1 + drivers/pinctrl/renesas/pfc.c | 11 +++++++++++ drivers/pinctrl/renesas/sh_pfc.h | 1 + 5 files changed, 24 insertions(+)
arch/arm/mach-rmobile/Kconfig.64 +1 -0
@@ -15,6 +15,7 @@ config R8A774B1 config R8A774C0 bool "Renesas SoC R8A774C0" imply CLK_R8A774C0 + imply PINCTRL_PFC_R8A774C0 config R8A774E1 bool "Renesas SoC R8A774E1"
drivers/pinctrl/renesas/Kconfig +10 -0
@@ -77,6 +77,16 @@ config PINCTRL_PFC_R8A774B1 the GPIO definitions and pin control functions for each available multiplex function. +config PINCTRL_PFC_R8A774C0 + bool "Renesas RZ/G2 R8A774C0 pin control driver" + depends on PINCTRL_PFC + help + Support pin multiplexing control on Renesas RZ/G2E R8A774C0 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. + config PINCTRL_PFC_R8A774E1 bool "Renesas RZ/G2 R8A774E1 pin control driver" depends on PINCTRL_PFC
drivers/pinctrl/renesas/Makefile +1 -0
@@ -1,6 +1,7 @@ obj-$(CONFIG_PINCTRL_PFC) += pfc.o obj-$(CONFIG_PINCTRL_PFC_R8A774A1) += pfc-r8a7796.o obj-$(CONFIG_PINCTRL_PFC_R8A774B1) += pfc-r8a77965.o +obj-$(CONFIG_PINCTRL_PFC_R8A774C0) += pfc-r8a77990.o obj-$(CONFIG_PINCTRL_PFC_R8A774E1) += pfc-r8a7795.o obj-$(CONFIG_PINCTRL_PFC_R8A7790) += pfc-r8a7790.o obj-$(CONFIG_PINCTRL_PFC_R8A7791) += pfc-r8a7791.o
drivers/pinctrl/renesas/pfc.c +11 -0
@@ -34,6 +34,7 @@ enum sh_pfc_model {SH_PFC_R8A7796 ,SH_PFC_R8A774A1 ,SH_PFC_R8A774B1 , +SH_PFC_R8A774C0 ,SH_PFC_R8A774E1 ,SH_PFC_R8A77965 , SH_PFC_R8A77970,
@@ -927,6 +928,10 @@ static int sh_pfc_pinctrl_probe(struct udevice *dev)if (model ==SH_PFC_R8A774B1 ) priv->pfc.info = &r8a774b1_pinmux_info;#endif +#ifdef CONFIG_PINCTRL_PFC_R8A774C0 +if (model ==SH_PFC_R8A774C0 ) + priv->pfc.info = &r8a774c0_pinmux_info; +#endif #ifdef CONFIG_PINCTRL_PFC_R8A774E1 if (model ==SH_PFC_R8A774E1 ) priv->pfc.info = &r8a774e1_pinmux_info;
@@ -1014,6 +1019,12 @@ static const struct udevice_id sh_pfc_pinctrl_ids[] = { .data = SH_PFC_R8A774B1, },#endif +#ifdef CONFIG_PINCTRL_PFC_R8A774C0 + { + .compatible = "renesas,pfc-r8a774c0", + .data = SH_PFC_R8A774C0, + }, +#endif #ifdef CONFIG_PINCTRL_PFC_R8A774E1 { .compatible = "renesas,pfc-r8a774e1",
drivers/pinctrl/renesas/sh_pfc.h +1 -0
@@ -295,6 +295,7 @@ sh_pfc_pin_to_bias_reg(const struct sh_pfc *pfc, unsigned int pin,extern const struct sh_pfc_soc_info r8a774a1_pinmux_info;extern const struct sh_pfc_soc_info r8a774b1_pinmux_info; +extern const struct sh_pfc_soc_info r8a774c0_pinmux_info;extern const struct sh_pfc_soc_info r8a774e1_pinmux_info;extern const struct sh_pfc_soc_info r8a7790_pinmux_info;extern const struct sh_pfc_soc_info r8a7791_pinmux_info;
Signature · 1 line
2.17.1
PATCH 4/5 arm: rmobile: Add Silicon Linux EK874 board support
In reply to Lad PrabhakarThe EK874 development kit from Silicon Linux is made of CAT874 (the main board) and CAT875 (the sub board that goes on top of CAT874).
This patch adds the required board support to boot Si-Linux EK874 board based on R8A774C0 SoC.
DTS files apart from r8a774c0-ek874-u-boot.dts and r8a774c0-u-boot.dtsi have been imported from Linux kernel 5.11 commit f40ddce88593 ("Linux 5.11").
--- arch/arm/dts/Makefile | 1 + arch/arm/dts/cat875.dtsi | 64 ++++ arch/arm/dts/r8a774c0-cat874.dts | 453 +++++++++++++++++++++++++ arch/arm/dts/r8a774c0-ek874-u-boot.dts | 33 ++ arch/arm/dts/r8a774c0-ek874.dts | 14 + arch/arm/dts/r8a774c0-u-boot.dtsi | 53 +++ arch/arm/mach-rmobile/Kconfig.64 | 7 + board/silinux/ek874/Kconfig | 15 + board/silinux/ek874/MAINTAINERS | 6 + board/silinux/ek874/Makefile | 9 + board/silinux/ek874/ek874.c | 30 ++ configs/silinux_ek874_defconfig | 83 +++++ include/configs/silinux-ek874.h | 20 ++ include/dt-bindings/display/tda998x.h | 8 + 14 files changed, 796 insertions(+) create mode 100644 arch/arm/dts/cat875.dtsi create mode 100644 arch/arm/dts/r8a774c0-cat874.dts create mode 100644 arch/arm/dts/r8a774c0-ek874-u-boot.dts create mode 100644 arch/arm/dts/r8a774c0-ek874.dts create mode 100644 arch/arm/dts/r8a774c0-u-boot.dtsi create mode 100644 board/silinux/ek874/Kconfig create mode 100644 board/silinux/ek874/MAINTAINERS create mode 100644 board/silinux/ek874/Makefile create mode 100644 board/silinux/ek874/ek874.c create mode 100644 configs/silinux_ek874_defconfig create mode 100644 include/configs/silinux-ek874.h create mode 100644 include/dt-bindings/display/tda998x.h
arch/arm/dts/Makefile +1 -0
@@ -824,6 +824,7 @@ dtb-$(CONFIG_RCAR_GEN3) += \ r8a774e1-beacon-rzg2h-kit.dtb \ r8a774a1-hihope-rzg2m-u-boot.dtb \ r8a774b1-hihope-rzg2n-u-boot.dtb \ + r8a774c0-ek874-u-boot.dtb \ r8a774e1-hihope-rzg2h-u-boot.dtb \ r8a77950-ulcb-u-boot.dtb \ r8a77950-salvator-x-u-boot.dtb \
arch/arm/dts/cat875.dtsi new file +64 -0
64 lines not on this page · raw message
arch/arm/dts/r8a774c0-cat874.dts new file +453 -0
453 lines not on this page · raw message
arch/arm/dts/r8a774c0-ek874-u-boot.dts new file +33 -0
@@ -0,0 +1,33 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source extras for U-Boot for the Hihope board + * + * Copyright (C) 2021 Renesas Electronisc Corporation + */ + +#include "r8a774c0-ek874.dts" +#include "r8a774c0-u-boot.dtsi" + +/ { + aliases { + spi0 = &rpc; + }; +}; + +&rpc { + num-cs = <1>; + status = "okay"; + spi-max-frequency = <50000000>; + #address-cells = <1>; + #size-cells = <0>; + + flash0: spi-flash at 0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "w25m512jv", "spi-flash", "jedec,spi-nor"; + spi-max-frequency = <50000000>; + spi-tx-bus-width = <1>; + spi-rx-bus-width = <1>; + reg = <0>; + }; +};
arch/arm/dts/r8a774c0-ek874.dts new file +14 -0
@@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for the Silicon Linux RZ/G2E evaluation kit (EK874) + * + * Copyright (C) 2021 Renesas Electronics Corp. + */ + +#include "r8a774c0-cat874.dts" +#include "cat875.dtsi" + +/ { + model = "Silicon Linux RZ/G2E evaluation kit EK874 (CAT874 + CAT875)"; + compatible = "si-linux,cat875", "si-linux,cat874", "renesas,r8a774c0"; +};
arch/arm/dts/r8a774c0-u-boot.dtsi new file +53 -0
53 lines not on this page · raw message
arch/arm/mach-rmobile/Kconfig.64 +7 -0
@@ -113,6 +113,12 @@ config TARGET_HIHOPE_RZG2 help Support for RZG2 HiHope platform +config TARGET_SILINUX_EK874 + bool "Silicon Linux EK874 board" + imply R8A774C0 + help + Support for Silicon Linux EK874 platform + config TARGET_SALVATOR_X bool "Salvator-X board" imply R8A7795
@@ -148,6 +154,7 @@ source "board/renesas/salvator-x/Kconfig" source "board/renesas/ulcb/Kconfig" source "board/beacon/beacon-rzg2m/Kconfig" source "board/hoperun/hihope-rzg2/Kconfig" +source "board/silinux/ek874/Kconfig" config MULTI_DTB_FIT_UNCOMPRESS_SZ default 0x80000 if TARGET_HIHOPE_RZG2
board/silinux/ek874/Kconfig new file +15 -0
@@ -0,0 +1,15 @@ +if TARGET_SILINUX_EK874 + +config SYS_SOC + default "rmobile" + +config SYS_BOARD + default "ek874" + +config SYS_VENDOR + default "silinux" + +config SYS_CONFIG_NAME + default "silinux-ek874" + +endif
board/silinux/ek874/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +SILINUX_EK874 BOARD +M: Lad Prabhakar <[email protected]> +S: Maintained +F: board/silinux/ek874/ +F: include/configs/silinux-ek874.h +F: configs/silinux_ek874_defconfig
board/silinux/ek874/Makefile new file +9 -0
@@ -0,0 +1,9 @@ +# +# board/silinux/ek874/Makefile +# +# Copyright (C) 2021 Renesas Electronics Corporation +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y := ek874.o ../../renesas/rcar-common/common.o
board/silinux/ek874/ek874.c new file +30 -0
@@ -0,0 +1,30 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* +* board/silinux/ek874/ek874.c +* This file is ek874 board support. +* +* Copyright (C) 2021 Renesas Electronics Corporation +*/ + +#include <common.h> +#include <asm/global_data.h> +#include <asm/io.h> + +#define RST_BASE 0xE6160000 +#define RST_CA53RESCNT (RST_BASE + 0x44) +#define RST_CA53_CODE 0x5A5A000F + +DECLARE_GLOBAL_DATA_PTR ; + +int board_init (void ) +{ +/* address of boot parameters */ + gd->bd->bi_boot_params =CONFIG_SYS_TEXT_BASE +0x50000 ; + +return 0 ; +} + +void reset_cpu (ulong addr) +{ +writel (RST_CA53_CODE ,RST_CA53RESCNT ); +}
configs/silinux_ek874_defconfig new file +83 -0
83 lines not on this page · raw message
include/configs/silinux-ek874.h new file +20 -0
@@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* include/configs/silinux-ek874.h +* This file is Silicon Linux EK874 board configuration. +* +* Copyright (C) 2021 Renesas Electronics Corporation +*/ + +#ifndef __SILINUX_EK874_H +#define __SILINUX_EK874_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 /* __SILINUX_EK874_H */
include/dt-bindings/display/tda998x.h new file +8 -0
@@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _DT_BINDINGS_TDA998X_H +#define _DT_BINDINGS_TDA998X_H + +#define TDA998x_SPDIF 1 +#define TDA998x_I2S 2 + +#endif /*_DT_BINDINGS_TDA998X_H */
Signature · 1 line
2.17.1
PATCH 5/5 board: silinux: Enable recovery SPL for EK874 board
In reply to Lad PrabhakarEnable building SPL for EK874 board which is based on R8A774C0 SoC.
--- arch/arm/mach-rmobile/Makefile | 2 +- board/silinux/ek874/Makefile | 4 ++++ configs/silinux_ek874_defconfig | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-)
arch/arm/mach-rmobile/Makefile +1 -1
@@ -22,7 +22,7 @@ cmd_objcopy = $(OBJCOPY) --gap-fill=0x00 $(OBJCOPYFLAGS) \ spl/u-boot-spl.srec: spl/u-boot-spl FORCE $(call if_changed,objcopy) -ifneq ($(CONFIG_R8A77990)$(CONFIG_R8A77995),) +ifneq ($(CONFIG_R8A774C0)$(CONFIG_R8A77990)$(CONFIG_R8A77995),) # # The first 6 generate statements generate the R-Car Gen3 SCIF loader header. # The subsequent generate statements represent the following chunk of assembler
board/silinux/ek874/Makefile +4 -0
@@ -6,4 +6,8 @@ # SPDX-License-Identifier: GPL-2.0+ # +ifdef CONFIG_SPL_BUILD +obj-y := ../../renesas/rcar-common/gen3-spl.o +else obj-y := ek874.o ../../renesas/rcar-common/common.o +endif
configs/silinux_ek874_defconfig +1 -1
@@ -2,6 +2,7 @@ CONFIG_ARM=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_RMOBILE=y CONFIG_SYS_TEXT_BASE=0x50000000 +CONFIG_SPL_TEXT_BASE=0xe6318000 CONFIG_SYS_MALLOC_F_LEN=0x2000 CONFIG_ENV_SIZE=0x10000 CONFIG_ENV_OFFSET=0x3F0000
@@ -9,7 +10,6 @@ CONFIG_ENV_SECT_SIZE=0x10000 CONFIG_RCAR_GEN3=y CONFIG_TARGET_SILINUX_EK874=y # CONFIG_BOARD_EARLY_INIT_F is not set -# CONFIG_SPL is not set CONFIG_SOC_DEVICE=y CONFIG_SOC_DEVICE_RENESAS=y CONFIG_DEFAULT_DEVICE_TREE="r8a774c0-ek874-u-boot"
Signature · 1 line
2.17.1
Marek Vasut
Appliedcover Add Silicon Linux EK874 board
In reply to Lad PrabhakarQuoted 4 lines · Lad Prabhakar
Hi All,
This patch series adds support for Silicon Linux EK874 board support which is based on Renesas R8A774C0 SoC.
Applied all , thanks