ARM: rmobile: Add R8A77965 M3N IDs
Subsystems (14)
PATCH 1/13 ARM: rmobile: Add R8A77965 M3N IDs
Add CPU and PRR IDs for R8A77965 M3N SoC.
--- arch/arm/mach-rmobile/cpu_info.c | 1 + arch/arm/mach-rmobile/include/mach/rmobile.h | 1 + arch/arm/mach-rmobile/memmap-gen3.c | 1 + 3 files changed, 3 insertions(+)
arch/arm/mach-rmobile/cpu_info.c +1 -0
@@ -61,6 +61,7 @@ static const struct { { RMOBILE_CPU_TYPE_R8A7794, "R8A7794" }, { RMOBILE_CPU_TYPE_R8A7795, "R8A7795" }, { RMOBILE_CPU_TYPE_R8A7796, "R8A7796" }, + { RMOBILE_CPU_TYPE_R8A77965, "R8A77965" }, { RMOBILE_CPU_TYPE_R8A77970, "R8A77970" }, { RMOBILE_CPU_TYPE_R8A77995, "R8A77995" }, { 0x0, "CPU" },
arch/arm/mach-rmobile/include/mach/rmobile.h +1 -0
@@ -33,6 +33,7 @@#define RMOBILE_CPU_TYPE_R8A7794 0x4C#define RMOBILE_CPU_TYPE_R8A7795 0x4F#define RMOBILE_CPU_TYPE_R8A7796 0x52 +#define RMOBILE_CPU_TYPE_R8A77965 0x55#define RMOBILE_CPU_TYPE_R8A77970 0x54#define RMOBILE_CPU_TYPE_R8A77995 0x58
arch/arm/mach-rmobile/memmap-gen3.c +1 -0
@@ -100,6 +100,7 @@ void rcar_gen3_memmap_fixup(void) mem_map = r8a7795_mem_map;break ;case RMOBILE_CPU_TYPE_R8A7796 : +case RMOBILE_CPU_TYPE_R8A77965 : mem_map = r8a7796_mem_map;break ;case RMOBILE_CPU_TYPE_R8A77970 :
Signature · 1 line
2.15.1
PATCH 2/13 clk: renesas: Add R8A77965 M3N entries
Add entries for the R8A77965 M3N SoC.
--- drivers/clk/renesas/r8a7796-cpg-mssr.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
drivers/clk/renesas/r8a7796-cpg-mssr.c +19 -0
@@ -323,11 +323,30 @@ static const struct cpg_mssr_info r8a7796_cpg_mssr_info = { .get_pll_config = r8a7796_get_pll_config, }; +static const struct cpg_mssr_info r8a77965_cpg_mssr_info = { + .core_clk = r8a7796_core_clks, + .core_clk_size =ARRAY_SIZE (r8a7796_core_clks), + .mod_clk = r8a7796_mod_clks, + .mod_clk_size =ARRAY_SIZE (r8a7796_mod_clks), + .mstp_table = r8a7796_mstp_table, + .mstp_table_size =ARRAY_SIZE (r8a7796_mstp_table), + .reset_node ="renesas,r8a77965-rst" , + .extalr_node ="extalr" , + .mod_clk_base =MOD_CLK_BASE , + .clk_extal_id =CLK_EXTAL , + .clk_extalr_id =CLK_EXTALR , + .get_pll_config = r8a7796_get_pll_config, +}; +static const struct udevice_id r8a7796_clk_ids[] = { { .compatible ="renesas,r8a7796-cpg-mssr" , .data = (ulong)&r8a7796_cpg_mssr_info, }, + { + .compatible ="renesas,r8a77965-cpg-mssr" , + .data = (ulong)&r8a77965_cpg_mssr_info, + }, { } };
Signature · 1 line
2.15.1
PATCH 3/13 gpio: rcar: Add R8A77965 M3N entries
In reply to Marek VasutAdd entries for the R8A77965 M3N SoC.
--- drivers/gpio/gpio-rcar.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpio/gpio-rcar.c +1 -0
@@ -174,6 +174,7 @@ static int rcar_gpio_probe(struct udevice *dev)static const struct udevice_id rcar_gpio_ids[] = { { .compatible ="renesas,gpio-r8a7795" }, { .compatible ="renesas,gpio-r8a7796" }, + { .compatible ="renesas,gpio-r8a77965" }, { .compatible ="renesas,gpio-r8a77970" }, { .compatible ="renesas,gpio-r8a77995" }, { .compatible ="renesas,rcar-gen2-gpio" },
Signature · 1 line
2.15.1
PATCH 4/13 mmc: uniphier-sd: Add R8A77965 M3N entries
In reply to Marek VasutAdd entries for the R8A77965 M3N SoC.
--- drivers/mmc/uniphier-sd.c | 1 + 1 file changed, 1 insertion(+)
drivers/mmc/uniphier-sd.c +1 -0
@@ -854,6 +854,7 @@ static const struct udevice_id uniphier_sd_match[] = { { .compatible = "renesas,sdhi-r8a7794", .data = 0 }, { .compatible = "renesas,sdhi-r8a7795", .data = UNIPHIER_SD_CAP_64BIT }, { .compatible = "renesas,sdhi-r8a7796", .data = UNIPHIER_SD_CAP_64BIT }, + { .compatible = "renesas,sdhi-r8a77965", .data = UNIPHIER_SD_CAP_64BIT }, { .compatible = "renesas,sdhi-r8a77970", .data = UNIPHIER_SD_CAP_64BIT }, { .compatible = "renesas,sdhi-r8a77995", .data = UNIPHIER_SD_CAP_64BIT }, { .compatible = "socionext,uniphier-sdhc", .data = 0 },
Signature · 1 line
2.15.1
PATCH 4/13 mmc: uniphier-sd: Add R8A77965 M3N entries
Quoted 6 lines · Marek Vasut
Add entries for the R8A77965 M3N SoC.
Signed-off-by Marek Vasut <[email protected]>Cc Nobuhiro Iwamatsu <[email protected]>Cc Jaehoon Chung <[email protected]>Cc Masahiro Yamada <[email protected]>
Best Regards,
Jaehoon Chung
Quoted 17 lines
--- drivers/mmc/uniphier-sd.c | 1 + 1 file changed, 1 insertion(+)drivers/mmc/uniphier-sd.c +1
-0@@ -854,6 +854,7 @@ static const struct udevice_id uniphier_sd_match[] = { { .compatible = "renesas,sdhi-r8a7794", .data = 0 }, { .compatible = "renesas,sdhi-r8a7795", .data = UNIPHIER_SD_CAP_64BIT }, { .compatible = "renesas,sdhi-r8a7796", .data = UNIPHIER_SD_CAP_64BIT }, + { .compatible = "renesas,sdhi-r8a77965", .data = UNIPHIER_SD_CAP_64BIT }, { .compatible = "renesas,sdhi-r8a77970", .data = UNIPHIER_SD_CAP_64BIT }, { .compatible = "renesas,sdhi-r8a77995", .data = UNIPHIER_SD_CAP_64BIT }, { .compatible = "socionext,uniphier-sdhc", .data = 0 },
PATCH 5/13 net: ravb: Add R8A77965 M3N entries
In reply to Marek VasutAdd entries for the R8A77965 M3N SoC.
--- drivers/net/ravb.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ravb.c +1 -0
@@ -658,6 +658,7 @@ int ravb_ofdata_to_platdata(struct udevice *dev)static const struct udevice_id ravb_ids[] = { { .compatible ="renesas,etheravb-r8a7795" }, { .compatible ="renesas,etheravb-r8a7796" }, + { .compatible ="renesas,etheravb-r8a77965" }, { .compatible ="renesas,etheravb-r8a77970" }, { .compatible ="renesas,etheravb-r8a77995" }, { .compatible ="renesas,etheravb-rcar-gen3" },
Signature · 1 line
2.15.1
PATCH 5/13 net: ravb: Add R8A77965 M3N entries
Quoted 5 lines · Marek Vasut
Add entries for the R8A77965 M3N SoC.
Signed-off-by Marek Vasut <[email protected]>Cc Nobuhiro Iwamatsu <[email protected]>Cc Joe Hershberger <[email protected]>
PATCH 6/13 pinctrl: rmobile: Add R8A77965 M3N entries
In reply to Marek VasutAdd entries for the R8A77965 M3N SoC.
--- drivers/pinctrl/renesas/pfc.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/pinctrl/renesas/pfc.c +3 -0
@@ -862,6 +862,9 @@ static const struct udevice_id sh_pfc_pinctrl_ids[] = { { .compatible = "renesas,pfc-r8a7796", .data = SH_PFC_R8A7796, + }, { + .compatible = "renesas,pfc-r8a77965", + .data = SH_PFC_R8A7796, }, #endif #ifdef CONFIG_PINCTRL_PFC_R8A77970
Signature · 1 line
2.15.1
PATCH 7/13 usb: xhci-rcar: Add R8A77965 M3N entries
In reply to Marek VasutAdd entries for the R8A77965 M3N SoC.
--- drivers/usb/host/xhci-rcar.c | 1 + 1 file changed, 1 insertion(+)
drivers/usb/host/xhci-rcar.c +1 -0
@@ -142,6 +142,7 @@ static int xhci_rcar_ofdata_to_platdata(struct udevice *dev)static const struct udevice_id xhci_rcar_ids[] = { { .compatible ="renesas,xhci-r8a7795" }, { .compatible ="renesas,xhci-r8a7796" }, + { .compatible ="renesas,xhci-r8a77965" }, { } };
Signature · 1 line
2.15.1
PATCH 8/13 ARM: dts: rmobile: Import R8A77965 M3N DT files from Linux
In reply to Marek VasutImport the R8A77965 M3N DT from Linux 4.16-rc1 .
--- arch/arm/dts/r8a77965-u-boot.dtsi | 13 + arch/arm/dts/r8a77965.dtsi | 741 ++++++++++++++++++++++++++++++ include/dt-bindings/power/r8a77965-sysc.h | 30 ++ 3 files changed, 784 insertions(+) create mode 100644 arch/arm/dts/r8a77965-u-boot.dtsi create mode 100644 arch/arm/dts/r8a77965.dtsi create mode 100644 include/dt-bindings/power/r8a77965-sysc.h
arch/arm/dts/r8a77965-u-boot.dtsi new file +13 -0
@@ -0,0 +1,13 @@ +/* + * Device Tree Source extras for U-Boot on RCar R8A77965 SoC + * + * Copyright (C) 2018 Marek Vasut <[email protected]> + * + * SPDX-License-Identifier: GPL-2.0 + */ + +#include "r8a779x-u-boot.dtsi" + +&extalr_clk { + u-boot,dm-pre-reloc; +};
arch/arm/dts/r8a77965.dtsi new file +741 -0
741 lines not on this page · raw message
include/dt-bindings/power/r8a77965-sysc.h new file +30 -0
@@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Copyright (C) 2018 Jacopo Mondi <[email protected]> +* Copyright (C) 2016 Glider bvba +*/ + +#ifndef __DT_BINDINGS_POWER_R8A77965_SYSC_H__ +#define __DT_BINDINGS_POWER_R8A77965_SYSC_H__ + +/* +* These power domain indices match the numbers of the interrupt bits +* representing the power areas in the various Interrupt Registers +* (e.g. SYSCISR, Interrupt Status Register) +*/ + +#define R8A77965_PD_CA57_CPU0 0 +#define R8A77965_PD_CA57_CPU1 1 +#define R8A77965_PD_A3VP 9 +#define R8A77965_PD_CA57_SCU 12 +#define R8A77965_PD_CR7 13 +#define R8A77965_PD_A3VC 14 +#define R8A77965_PD_3DG_A 17 +#define R8A77965_PD_3DG_B 18 +#define R8A77965_PD_A3IR 24 +#define R8A77965_PD_A2VC1 26 + +/* Always-on power area */ +#define R8A77965_PD_ALWAYS_ON 32 + +#endif /* __DT_BINDINGS_POWER_R8A77965_SYSC_H__ */
Signature · 1 line
2.15.1
PATCH 9/13 ARM: dts: rmobile: Add RAVB node to R8A77965 M3N DT
In reply to Marek VasutAdd RAVB node to r8a77965.dtsi to get ethernet operational.
--- arch/arm/dts/r8a77965.dtsi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
arch/arm/dts/r8a77965.dtsi +10 -1
@@ -520,7 +520,16 @@ }; avb: ethernet at e6800000 { - /* placeholder */ + compatible = "renesas,etheravb-r8a77965", + "renesas,etheravb-rcar-gen3"; + reg = <0 0xe6800000 0 0x800>, <0 0xe6a00000 0 0x10000>; + clocks = <&cpg CPG_MOD 812>; + power-domains = <&sysc 32>; + resets = <&cpg 812>; + phy-mode = "rgmii-txid"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; }; csi20: csi2 at fea80000 {
Signature · 1 line
2.15.1
PATCH 10/13 ARM: dts: rmobile: Add EHCI nodes to R8A77965 M3N DT
In reply to Marek VasutAdd generic EHCI nodes to r8a77965.dtsi to get EHCI USB operational.
--- arch/arm/dts/r8a77965.dtsi | 41 +++++++++++++++++++++++++++++++++++++---- 1 file changed, 37 insertions(+), 4 deletions(-)
arch/arm/dts/r8a77965.dtsi +37 -4
@@ -577,11 +577,28 @@ }; ehci0: usb at ee080100 { - /* placeholder */ + compatible = "generic-ehci"; + reg = <0 0xee080100 0 0x100>; + interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 703>; + phys = <&usb2_phy0>; + phy-names = "usb"; + companion= <&ohci0>; + power-domains = <&sysc 32>; + resets = <&cpg 703>; + status = "disabled"; }; usb2_phy0: usb-phy at ee080200 { - /* placeholder */ + compatible = "renesas,usb2-phy-r8a77965", + "renesas,rcar-gen3-usb2-phy"; + reg = <0 0xee080200 0 0x700>; + interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 703>; + power-domains = <&sysc 32>; + resets = <&cpg 703>; + #phy-cells = <0>; + status = "disabled"; }; ohci1: usb at ee0a0000 {
@@ -589,7 +606,16 @@ }; ehci1: usb at ee0a0100 { - /* placeholder */ + compatible = "generic-ehci"; + reg = <0 0xee0a0100 0 0x100>; + interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 702>; + phys = <&usb2_phy1>; + phy-names = "usb"; + companion= <&ohci1>; + power-domains = <&sysc 32>; + resets = <&cpg 702>; + status = "disabled"; }; i2c0: i2c at e6500000 {
@@ -712,7 +738,14 @@ }; usb2_phy1: usb-phy at ee0a0200 { - /* placeholder */ + compatible = "renesas,usb2-phy-r8a77965", + "renesas,rcar-gen3-usb2-phy"; + reg = <0 0xee0a0200 0 0x700>; + clocks = <&cpg CPG_MOD 702>; + power-domains = <&sysc 32>; + resets = <&cpg 702>; + #phy-cells = <0>; + status = "disabled"; }; sdhi0: sd at ee100000 {
Signature · 1 line
2.15.1
PATCH 11/13 ARM: dts: rmobile: Add xHCI node to R8A77965 M3N DT
In reply to Marek VasutAdd xHCI node to r8a77965.dtsi to get xHCI USB operational.
--- arch/arm/dts/r8a77965.dtsi | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
arch/arm/dts/r8a77965.dtsi +8 -1
@@ -773,7 +773,14 @@ }; xhci0: usb at ee000000 { - /* placeholder */ + compatible = "renesas,xhci-r8a77965", + "renesas,rcar-gen3-xhci"; + reg = <0 0xee000000 0 0xc00>; + interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 328>; + power-domains = <&sysc 32>; + resets = <&cpg 328>; + status = "disabled"; }; wdt0: watchdog at e6020000 {
Signature · 1 line
2.15.1
PATCH 12/13 ARM: dts: rmobile: Add SDHI nodes to R8A77965 M3N DT
In reply to Marek VasutAdd SDHI nodes to r8a77965.dtsi to get eMMC and SD slots operational.
--- arch/arm/dts/r8a77965.dtsi | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-)
arch/arm/dts/r8a77965.dtsi +32 -4
@@ -749,19 +749,47 @@ }; sdhi0: sd at ee100000 { - /* placeholder */ + compatible = "renesas,sdhi-r8a77965"; + reg = <0 0xee100000 0 0x2000>; + interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 314>; + max-frequency = <200000000>; + power-domains = <&sysc 32>; + resets = <&cpg 314>; + status = "disabled"; }; sdhi1: sd at ee120000 { - /* placeholder */ + compatible = "renesas,sdhi-r8a77965"; + reg = <0 0xee120000 0 0x2000>; + interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 313>; + max-frequency = <200000000>; + power-domains = <&sysc 32>; + resets = <&cpg 313>; + status = "disabled"; }; sdhi2: sd at ee140000 { - /* placeholder */ + compatible = "renesas,sdhi-r8a77965"; + reg = <0 0xee140000 0 0x2000>; + interrupts = <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 312>; + max-frequency = <200000000>; + power-domains = <&sysc 32>; + resets = <&cpg 312>; + status = "disabled"; }; sdhi3: sd at ee160000 { - /* placeholder */ + compatible = "renesas,sdhi-r8a77965"; + reg = <0 0xee160000 0 0x2000>; + interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 311>; + max-frequency = <200000000>; + power-domains = <&sysc 32>; + resets = <&cpg 311>; + status = "disabled"; }; usb3_phy0: usb-phy at e65ee000 {
Signature · 1 line
2.15.1
PATCH 13/13 ARM: rmobile: Add R8A77965 Salvator-XS board support
In reply to Marek VasutAdd R8A77965 M3N Salvator-XS development kit support. This kit is similar to the other Salvator-X(S) ones, except is has M3N SoC on it.
--- arch/arm/dts/Makefile | 1 + arch/arm/dts/r8a77965-salvator-x-u-boot.dts | 10 +++++ arch/arm/dts/r8a77965-salvator-x.dts | 21 ++++++++++ board/renesas/salvator-x/MAINTAINERS | 1 + configs/r8a77965_salvator-x_defconfig | 60 +++++++++++++++++++++++++++++ 5 files changed, 93 insertions(+) create mode 100644 arch/arm/dts/r8a77965-salvator-x-u-boot.dts create mode 100644 arch/arm/dts/r8a77965-salvator-x.dts create mode 100644 configs/r8a77965_salvator-x_defconfig
arch/arm/dts/Makefile +1 -0
@@ -409,6 +409,7 @@ dtb-$(CONFIG_RCAR_GEN3) += \ r8a7795-salvator-x.dtb \ r8a7796-m3ulcb.dtb \ r8a7796-salvator-x.dtb \ + r8a77965-salvator-x.dtb \ r8a77970-eagle.dtb \ r8a77995-draak.dtb
arch/arm/dts/r8a77965-salvator-x-u-boot.dts new file +10 -0
@@ -0,0 +1,10 @@ +/* + * Device Tree Source extras for U-Boot for the M3N Salvator-XS board + * + * Copyright (C) 2018 Marek Vasut <[email protected]> + * + * SPDX-License-Identifier: GPL-2.0 + */ + +#include "r8a77965-salvator-x.dts" +#include "r8a77965-u-boot.dtsi"
arch/arm/dts/r8a77965-salvator-x.dts new file +21 -0
@@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for the Salvator-X board with R-Car M3-N + * + * Copyright (C) 2018 Jacopo Mondi <[email protected]> + */ + +/dts-v1/; +#include "r8a77965.dtsi" +#include "salvator-x.dtsi" + +/ { + model = "Renesas Salvator-X board based on r8a77965"; + compatible = "renesas,salvator-x", "renesas,r8a77965"; + + memory at 48000000 { + device_type = "memory"; + /* first 128MB is reserved for secure area. */ + reg = <0x0 0x48000000 0x0 0x78000000>; + }; +};
board/renesas/salvator-x/MAINTAINERS +1 -0
@@ -5,3 +5,4 @@ F: board/renesas/salvator-x/ F: include/configs/salvator-x.h F: configs/r8a7795_salvator-x_defconfig F: configs/r8a7796_salvator-x_defconfig +F: configs/r8a77965_salvator-x_defconfig
configs/r8a77965_salvator-x_defconfig new file +60 -0
60 lines not on this page · raw message
Signature · 1 line
2.15.1