Add R8A77980/Condor board support
Subsystems (2)
v2 cover Add R8A77980/Condor board support
Hello!
Here's the set of 11 patches against Simon Horman's 'renesas.git' repo's 'renesas-devel-20180216-v4.16-rc1' tag. I'm adding the device tree support for the R8A77980-based Condor board (note that NFS root would only work on the Condor boards [re]wired for booting from EtherAVB -- we haven't been able to get the 'sh_eth' driver working in either U-Boot or Linux so far). The necessary SYS-DMAC, [H]SCIF, and EtherAVB bindings updates have been posted, the clock driver has been reposted yesterday, and the merged patches have been dropped from this respin of the series...
[1/5] soc: renesas: rcar-sysc: add R8A77980 support [2/5] arm64: dts: renesas: r8a77980: add [H]SCIF support [3/5] arm64: dts: renesas: r8a77980: add EtherAVB support [4/5] arm64: dts: renesas: initial Condor board device tree [5/5] arm64: dts: renesas: condor: add EtherAVB support
WBR, Sergei
A message that is not in the archive (sent off-list or not yet received): ae31804b-969b-9b20-16d0-50f5dea42f08-M4DtvfQ/[email protected]
PATCH v2 1/5 soc: renesas: rcar-sysc: add R8A77980 support
Add support for R-Car V3H (R8A77980) SoC power areas to the R-Car SYSC driver.
Based on the original (and large) patch by Vladimir Barinov.
---
Changes in version 2:
- fixed the parents of the A2Rn, A2SCn, A2PDn, and A2CN power domains;
- added Simon's and Geert's tags.
Documentation/devicetree/bindings/power/renesas,rcar-sysc.txt | 1 drivers/soc/renesas/Kconfig | 5 drivers/soc/renesas/Makefile | 1 drivers/soc/renesas/r8a77980-sysc.c | 52 ++++++++++ drivers/soc/renesas/rcar-sysc.c | 3 drivers/soc/renesas/rcar-sysc.h | 1 6 files changed, 63 insertions(+)
Documentation/devicetree/bindings/power/renesas,rcar-sysc.txt +1 -0
@@ -18,6 +18,7 @@ Required properties: - "renesas,r8a7795-sysc" (R-Car H3) - "renesas,r8a7796-sysc" (R-Car M3-W) - "renesas,r8a77970-sysc" (R-Car V3M) + - "renesas,r8a77980-sysc" (R-Car V3H) - "renesas,r8a77995-sysc" (R-Car D3) - reg: Address start and address range for the device. - #power-domain-cells: Must be 1.
drivers/soc/renesas/Kconfig +5 -0
@@ -15,6 +15,7 @@ config SOC_RENESAS select SYSC_R8A7795 if ARCH_R8A7795 select SYSC_R8A7796 if ARCH_R8A7796 select SYSC_R8A77970 if ARCH_R8A77970 + select SYSC_R8A77980 if ARCH_R8A77980 select SYSC_R8A77995 if ARCH_R8A77995 if SOC_RENESAS
@@ -60,6 +61,10 @@ config SYSC_R8A77970 bool "R-Car V3M System Controller support" if COMPILE_TEST select SYSC_RCAR +config SYSC_R8A77980 + bool "R-Car V3H System Controller support" if COMPILE_TEST + select SYSC_RCAR + config SYSC_R8A77995 bool "R-Car D3 System Controller support" if COMPILE_TEST select SYSC_RCAR
drivers/soc/renesas/Makefile +1 -0
@@ -13,6 +13,7 @@ obj-$(CONFIG_SYSC_R8A7794) += r8a7794-sy obj-$(CONFIG_SYSC_R8A7795) += r8a7795-sysc.o obj-$(CONFIG_SYSC_R8A7796) += r8a7796-sysc.o obj-$(CONFIG_SYSC_R8A77970) += r8a77970-sysc.o +obj-$(CONFIG_SYSC_R8A77980) += r8a77980-sysc.o obj-$(CONFIG_SYSC_R8A77995) += r8a77995-sysc.o # Family
drivers/soc/renesas/r8a77980-sysc.c new file +52 -0
52 lines not on this page · raw message
drivers/soc/renesas/rcar-sysc.c +3 -0
@@ -287,6 +287,9 @@ static const struct of_device_id rcar_sy #ifdef CONFIG_SYSC_R8A77970 { .compatible = "renesas,r8a77970-sysc", .data = &r8a77970_sysc_info }, #endif +#ifdef CONFIG_SYSC_R8A77980 + { .compatible = "renesas,r8a77980-sysc", .data = &r8a77980_sysc_info }, +#endif #ifdef CONFIG_SYSC_R8A77995 { .compatible = "renesas,r8a77995-sysc", .data = &r8a77995_sysc_info }, #endif
drivers/soc/renesas/rcar-sysc.h +1 -0
@@ -59,6 +59,7 @@ extern const struct rcar_sysc_info r8a77extern const struct rcar_sysc_info r8a7795_sysc_info;extern const struct rcar_sysc_info r8a7796_sysc_info;extern const struct rcar_sysc_info r8a77970_sysc_info; +extern const struct rcar_sysc_info r8a77980_sysc_info;extern const struct rcar_sysc_info r8a77995_sysc_info;
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v2 2/5 arm64: dts: renesas: r8a77980: add [H]SCIF support
In reply to Sergei ShtylyovDescribe [H]SCIF ports in the R8A77980 device tree.
Based on the original (and large) patch by Vladimir Barinov.
---
Changes in version 2:
- fixed the internal BRG clock to S3D1 for all ports;
- added Geert's tag.
arch/arm64/boot/dts/renesas/r8a77980.dtsi | 151 ++++++++++++++++++++++++++++++ 1 file changed, 151 insertions(+)
arch/arm64/boot/dts/renesas/r8a77980.dtsi +151 -0
@@ -56,6 +56,13 @@ method = "smc"; }; + /* External SCIF clock - to be overridden by boards that provide it */ + scif_clk: scif { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <0>; + }; + soc { compatible = "simple-bus"; interrupt-parent = <&gic>;
@@ -85,6 +92,150 @@ #power-domain-cells = <1>; }; + hscif0: serial at e6540000 { + compatible = "renesas,hscif-r8a77980", + "renesas,rcar-gen3-hscif", + "renesas,hscif"; + reg = <0 0xe6540000 0 0x60>; + interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 520>, + <&cpg CPG_CORE 19>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; + dmas = <&dmac1 0x31>, <&dmac1 0x30>, + <&dmac2 0x31>, <&dmac2 0x30>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc 32>; + resets = <&cpg 520>; + status = "disabled"; + }; + + hscif1: serial at e6550000 { + compatible = "renesas,hscif-r8a77980", + "renesas,rcar-gen3-hscif", + "renesas,hscif"; + reg = <0 0xe6550000 0 0x60>; + interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 519>, + <&cpg CPG_CORE 19>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; + dmas = <&dmac1 0x33>, <&dmac1 0x32>, + <&dmac2 0x33>, <&dmac2 0x32>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc 32>; + resets = <&cpg 519>; + status = "disabled"; + }; + + hscif2: serial at e6560000 { + compatible = "renesas,hscif-r8a77980", + "renesas,rcar-gen3-hscif", + "renesas,hscif"; + reg = <0 0xe6560000 0 0x60>; + interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 518>, + <&cpg CPG_CORE 19>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; + dmas = <&dmac1 0x35>, <&dmac1 0x34>, + <&dmac2 0x35>, <&dmac2 0x34>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc 32>; + resets = <&cpg 518>; + status = "disabled"; + }; + + hscif3: serial at e66a0000 { + compatible = "renesas,hscif-r8a77980", + "renesas,rcar-gen3-hscif", + "renesas,hscif"; + reg = <0 0xe66a0000 0 0x60>; + interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 517>, + <&cpg CPG_CORE 19>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; + dmas = <&dmac1 0x37>, <&dmac1 0x36>, + <&dmac2 0x37>, <&dmac2 0x36>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc 32>; + resets = <&cpg 517>; + status = "disabled"; + }; + + scif0: serial at e6e60000 { + compatible = "renesas,scif-r8a77980", + "renesas,rcar-gen3-scif", + "renesas,scif"; + reg = <0 0xe6e60000 0 0x40>; + interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 207>, + <&cpg CPG_CORE 19>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; + dmas = <&dmac1 0x51>, <&dmac1 0x50>, + <&dmac2 0x51>, <&dmac2 0x50>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc 32>; + resets = <&cpg 207>; + status = "disabled"; + }; + + scif1: serial at e6e68000 { + compatible = "renesas,scif-r8a77980", + "renesas,rcar-gen3-scif", + "renesas,scif"; + reg = <0 0xe6e68000 0 0x40>; + interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 206>, + <&cpg CPG_CORE 19>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; + dmas = <&dmac1 0x53>, <&dmac1 0x52>, + <&dmac2 0x53>, <&dmac2 0x52>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc 32>; + resets = <&cpg 206>; + status = "disabled"; + }; + + scif3: serial at e6c50000 { + compatible = "renesas,scif-r8a77980", + "renesas,rcar-gen3-scif", + "renesas,scif"; + reg = <0 0xe6c50000 0 0x40>; + interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 204>, + <&cpg CPG_CORE 19>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; + dmas = <&dmac1 0x57>, <&dmac1 0x56>, + <&dmac2 0x57>, <&dmac2 0x56>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc 32>; + resets = <&cpg 204>; + status = "disabled"; + }; + + scif4: serial at e6c40000 { + compatible = "renesas,scif-r8a77980", + "renesas,rcar-gen3-scif", + "renesas,scif"; + reg = <0 0xe6c40000 0 0x40>; + interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 203>, + <&cpg CPG_CORE 19>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; + dmas = <&dmac1 0x59>, <&dmac1 0x58>, + <&dmac2 0x59>, <&dmac2 0x58>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc 32>; + resets = <&cpg 203>; + status = "disabled"; + }; + dmac1: dma-controller at e7300000 { compatible = "renesas,dmac-r8a77980", "renesas,rcar-dmac";
PATCH v2 3/5 arm64: dts: renesas: r8a77980: add EtherAVB support
In reply to Sergei ShtylyovDefine the generic R8A77980 part of the EtherAVB device node.
Based on the original (and large) patch by Vladimir Barinov.
---
Changes in version 2:
- removed the 2nd address/size tuple from the "reg" property;
- changed the "phy-mode" property to the RGMII by default.
arch/arm64/boot/dts/renesas/r8a77980.dtsi | 44 ++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+)
arch/arm64/boot/dts/renesas/r8a77980.dtsi +44 -0
@@ -164,6 +164,50 @@ status = "disabled"; }; + avb: ethernet at e6800000 { + compatible = "renesas,etheravb-r8a77980", + "renesas,etheravb-rcar-gen3"; + reg = <0 0xe6800000 0 0x800>; + interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12", "ch13", "ch14", "ch15", + "ch16", "ch17", "ch18", "ch19", + "ch20", "ch21", "ch22", "ch23", + "ch24"; + clocks = <&cpg CPG_MOD 812>; + power-domains = <&sysc 32>; + resets = <&cpg 812>; + phy-mode = "rgmii"; + #address-cells = <1>; + #size-cells = <0>; + }; + scif0: serial at e6e60000 { compatible = "renesas,scif-r8a77980", "renesas,rcar-gen3-scif",
PATCH v2 3/5 arm64: dts: renesas: r8a77980: add EtherAVB support
Quoted 6 lines · Sergei Shtylyov
Define the generic R8A77980 part of the EtherAVB device node.
Based on the original (and large) patch by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
PATCH v2 4/5 arm64: dts: renesas: initial Condor board device tree
In reply to Sergei ShtylyovAdd the initial device tree for the R8A77980 SoC based Condor board. The board has 1 debug serial port (SCIF0); include support for it, so that the serial console can work.
Based on the original (and large) patch by Vladimir Barinov.
---
Changes in version 2:
- removed the useless "status" property from the SCIF_CLK node;
- fixed the memory size;
- added Geert's tag.
arch/arm64/boot/dts/renesas/Makefile | 1 arch/arm64/boot/dts/renesas/r8a77980-condor.dts | 45 ++++++++++++++++++++++++ 2 files changed, 46 insertions(+)
arch/arm64/boot/dts/renesas/Makefile +1 -0
@@ -8,4 +8,5 @@ dtb-$(CONFIG_ARCH_R8A7796) += r8a7796-sa dtb-$(CONFIG_ARCH_R8A7796) += r8a7796-m3ulcb-kf.dtb dtb-$(CONFIG_ARCH_R8A7796) += r8a7796-salvator-xs.dtb dtb-$(CONFIG_ARCH_R8A77970) += r8a77970-eagle.dtb r8a77970-v3msk.dtb +dtb-$(CONFIG_ARCH_R8A77980) += r8a77980-condor.dtb dtb-$(CONFIG_ARCH_R8A77995) += r8a77995-draak.dtb
arch/arm64/boot/dts/renesas/r8a77980-condor.dts new file +45 -0
45 lines not on this page · raw message
PATCH v2 4/5 arm64: dts: renesas: initial Condor board device tree
Hi Sergei,
Quoted 36 lines · Sergei Shtylyov
Add the initial device tree for the R8A77980 SoC based Condor board. The board has 1 debug serial port (SCIF0); include support for it, so that the serial console can work.
Based on the original (and large) patch by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>---
Changes in version 2:
- removed the useless "status" property from theSCIF_CLKnode;
- fixed the memory size;
- added Geert's tag.arch/arm64/boot/dts/renesas/r8a77980-condor.dts new file +17
-0@@ -0,0 +1,45 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for the Condor board + * + * Copyright (C) 2018 Renesas Electronics Corp. + * Copyright (C) 2018 Cogent Embedded, Inc. + */ + +/dts-v1/; +#include "r8a77980.dtsi" + +/ { + model = "Renesas Condor board based on r8a77980"; + compatible = "renesas,condor", "renesas,r8a77980"; + + aliases { + serial0 = &scif0;
arch/arm64/boot/dts/renesas/r8a77980-condor.dts line 27
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77980-condor.dts new file +10
-0+ }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory at 48000000 { + device_type = "memory"; + /* first 128MB is reserved for secure area. */ + reg = <0 0x48000000 0 0xb8000000>;
Shouldn't the size be 0x78000000, or is there really 3 GiB of RAM?
oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
PATCH v2 4/5 arm64: dts: renesas: initial Condor board device tree
Hello!
Quoted 40 lines · Geert Uytterhoeven
Quoted 40 lines
Add the initial device tree for the R8A77980 SoC based Condor board. The board has 1 debug serial port (SCIF0); include support for it, so that the serial console can work.
Based on the original (and large) patch by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>---
Changes in version 2:
- removed the useless "status" property from theSCIF_CLKnode;
- fixed the memory size;
- added Geert's tag.arch/arm64/boot/dts/renesas/r8a77980-condor.dts new file +21
-0@@ -0,0 +1,45 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for the Condor board + * + * Copyright (C) 2018 Renesas Electronics Corp. + * Copyright (C) 2018 Cogent Embedded, Inc. + */ + +/dts-v1/; +#include "r8a77980.dtsi" + +/ { + model = "Renesas Condor board based on r8a77980"; + compatible = "renesas,condor", "renesas,r8a77980"; + + aliases { + serial0 = &scif0; + }; + + chosen { + stdout-path = "serial0:115200n8";
Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77980-condor.dts line 27
Quoted 6 lines
arch/arm64/boot/dts/renesas/r8a77980-condor.dts new file +6
-0+ }; + + memory at 48000000 { + device_type = "memory"; + /* first 128MB is reserved for secure area. */ + reg = <0 0x48000000 0 0xb8000000>;Shouldn't the size be
0x78000000, or is there really 3 GiB of RAM?
Ugh, so I finally mixed up limit and size... :-/
Quoted 3 lines
oetje,eeting}s,
Geert
MBR, Sergei
PATCH v2 4/5 arm64: dts: renesas: initial Condor board device tree
Quoted 53 lines · Sergei Shtylyov
Hello!
Quoted 40 lines · Geert Uytterhoeven
Quoted 40 lines
Add the initial device tree for the R8A77980 SoC based Condor board. The board has 1 debug serial port (SCIF0); include support for it, so that the serial console can work.
Based on the original (and large) patch by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>---
Changes in version 2:
- removed the useless "status" property from theSCIF_CLKnode;
- fixed the memory size;
- added Geert's tag.arch/arm64/boot/dts/renesas/r8a77980-condor.dts new file +21
-0@@ -0,0 +1,45 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for the Condor board + * + * Copyright (C) 2018 Renesas Electronics Corp. + * Copyright (C) 2018 Cogent Embedded, Inc. + */ + +/dts-v1/; +#include "r8a77980.dtsi" + +/ { + model = "Renesas Condor board based on r8a77980"; + compatible = "renesas,condor", "renesas,r8a77980"; + + aliases { + serial0 = &scif0; + }; + + chosen { + stdout-path = "serial0:115200n8";Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77980-condor.dts line 27
Quoted 6 lines
arch/arm64/boot/dts/renesas/r8a77980-condor.dts new file +6
-0+ }; + + memory at 48000000 { + device_type = "memory"; + /* first 128MB is reserved for secure area. */ + reg = <0 0x48000000 0 0xb8000000>;Shouldn't the size be
0x78000000, or is there really 3 GiB of RAM?
Quoted 1 line
Ugh, so I finally mixed up limit and size... :-/
Thanks, I will apply the following, with the memory corrected to 2 GiB.
From: Sergei Shtylyov <[email protected]>
Subject: [PATCH] arm64: dts: renesas: initial Condor board device tree
Add the initial device tree for the R8A77980 SoC based Condor board. The board has 1 debug serial port (SCIF0); include support for it, so that the serial console can work.
Based on the original (and large) patch by Vladimir Barinov.
--- arch/arm64/boot/dts/renesas/Makefile | 1 + arch/arm64/boot/dts/renesas/r8a77980-condor.dts | 45 +++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 arch/arm64/boot/dts/renesas/r8a77980-condor.dts
arch/arm64/boot/dts/renesas/Makefile +1 -0
@@ -8,4 +8,5 @@ dtb-$(CONFIG_ARCH_R8A7796) += r8a7796-salvator-x.dtb r8a7796-m3ulcb.dtb dtb-$(CONFIG_ARCH_R8A7796) += r8a7796-m3ulcb-kf.dtb dtb-$(CONFIG_ARCH_R8A7796) += r8a7796-salvator-xs.dtb dtb-$(CONFIG_ARCH_R8A77970) += r8a77970-eagle.dtb r8a77970-v3msk.dtb +dtb-$(CONFIG_ARCH_R8A77980) += r8a77980-condor.dtb dtb-$(CONFIG_ARCH_R8A77995) += r8a77995-draak.dtb
arch/arm64/boot/dts/renesas/r8a77980-condor.dts new file +45 -0
45 lines not on this page · raw message
Signature · 1 line
2.11.0
PATCH v2 4/5 arm64: dts: renesas: initial Condor board device tree
Quoted 49 lines · Simon Horman
Quoted 49 lines
Quoted 48 lines
Quoted 36 lines
Add the initial device tree for the R8A77980 SoC based Condor board. The board has 1 debug serial port (SCIF0); include support for it, so that the serial console can work.
Based on the original (and large) patch by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>---
Changes in version 2:
- removed the useless "status" property from theSCIF_CLKnode;
- fixed the memory size;
- added Geert's tag.arch/arm64/boot/dts/renesas/r8a77980-condor.dts new file +17
-0@@ -0,0 +1,45 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for the Condor board + * + * Copyright (C) 2018 Renesas Electronics Corp. + * Copyright (C) 2018 Cogent Embedded, Inc. + */ + +/dts-v1/; +#include "r8a77980.dtsi" + +/ { + model = "Renesas Condor board based on r8a77980"; + compatible = "renesas,condor", "renesas,r8a77980"; + + aliases { + serial0 = &scif0;arch/arm64/boot/dts/renesas/r8a77980-condor.dts line 27
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77980-condor.dts new file +10
-0+ }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory at 48000000 { + device_type = "memory"; + /* first 128MB is reserved for secure area. */ + reg = <0 0x48000000 0 0xb8000000>;Shouldn't the size be
0x78000000, or is there really 3 GiB of RAM?
Quoted 3 lines
Quoted 1 line
Ugh, so I finally mixed up limit and size... :-/
Thanks, I will apply the following, with the memory corrected to 2 GiB.
Thank you! Just made sure that whatever is in this node in .dts, the RAM size
ends up being 0x78000000. Probably U-Boot is too smart. :-)
MBR, Sergei
PATCH v2 5/5 arm64: dts: renesas: condor: add EtherAVB support
In reply to Sergei ShtylyovDefine the Condor board dependent part of the EtherAVB device node.
Based on the original (and large) patch by Vladimir Barinov.
---
Changes in version 2:
- added the "renesas,no-ether-link" property;
- overrode the "phy-mode" property.
arch/arm64/boot/dts/renesas/r8a77980-condor.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+)
arch/arm64/boot/dts/renesas/r8a77980-condor.dts +13 -0
@@ -15,6 +15,7 @@ aliases { serial0 = &scif0; + ethernet0 = &avb; }; chosen {
@@ -28,6 +29,18 @@ }; }; +&avb { + phy-mode = "rgmii-id"; + phy-handle = <&phy0>; + renesas,no-ether-link; + status = "okay"; + + phy0: ethernet-phy at 0 { + rxc-skew-ps = <1500>; + reg = <0>; + }; +}; + &extal_clk { clock-frequency = <16666666>; };
Simon Horman
Appliedv2 cover Add R8A77980/Condor board support
In reply to Sergei ShtylyovQuoted 11 lines · Sergei Shtylyov
Hello!
Here's the set of 11 patches against Simon Horman's 'renesas.git' repo's 'renesas-devel-20180216-v4.16-rc1' tag. I'm adding the device tree support for the R8A77980-based Condor board (note that NFS root would only work on the Condor boards [re]wired for booting from EtherAVB -- we haven't been able to get the '
sh_eth' driver working in either U-Boot or Linux so far). The necessary SYS-DMAC, [H]SCIF, and EtherAVB bindings updates have been posted, the clock driver has been reposted yesterday, and the merged patches have been dropped from this respin of the series...
Quoted 5 lines
[1/5] soc: renesas: rcar-sysc: add R8A77980 support [2/5] arm64: dts: renesas: r8a77980: add [H]SCIF support [3/5] arm64: dts: renesas: r8a77980: add EtherAVB support [4/5] arm64: dts: renesas: initial Condor board device tree [5/5] arm64: dts: renesas: condor: add EtherAVB support
Thanks, applied.