Add R8A77980/Condor board support
cover Add R8A77980/Condor board support
Hello!
Here's the set of 11 patches against Simon Horman's 'renesas.git' repo's 'renesas-devel-20180202-v4.15' 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 yesterday, the clock driver was posted the day before...
[01/11] soc: renesas: identify R-Car V3H
[02/11] soc: renesas: rcar-rst: add R8A77980 support [03/11] dt-bindings: power: add R8A77980 SYSC power domain definitions [04/11] soc: renesas: rcar-sysc: add R8A77980 support [05/11] arm64: dts: renesas: initial R8A77980 SoC device tree [06/11] arm64: dts: renesas: r8a77980: add SYS-DMAC support [07/11] arm64: dts: renesas: r8a77980: add [H]SCIF support [08/11] arm64: dts: renesas: r8a77980: add EtherAVB support [09/11] DT: arm: shmobile: document Condor board bindings [10/11] arm64: dts: renesas: initial Condor board device tree [11/11] arm64: dts: renesas: condor: add EtherAVB support
WBR, Sergei
PATCH 1/11 soc: renesas: identify R-Car V3H
Add support for identifying the R-Car V3H (R8A77980) SoC.
--- drivers/soc/renesas/renesas-soc.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/soc/renesas/renesas-soc.c +8 -0
@@ -149,6 +149,11 @@ static const struct renesas_soc soc_rcar .id = 0x54, }; +static const struct renesas_soc soc_rcar_v3h__initconst __maybe_unused = { + .family = &fam_rcar_gen3, + .id =0x56 , +}; +static const struct renesas_soc soc_rcar_d3__initconst __maybe_unused = { .family = &fam_rcar_gen3, .id =0x58 ,
@@ -212,6 +217,9 @@ static const struct of_device_id renesas #ifdef CONFIG_ARCH_R8A77970 { .compatible = "renesas,r8a77970", .data = &soc_rcar_v3m }, #endif +#ifdef CONFIG_ARCH_R8A77980 + { .compatible = "renesas,r8a77980", .data = &soc_rcar_v3h }, +#endif #ifdef CONFIG_ARCH_R8A77995 { .compatible = "renesas,r8a77995", .data = &soc_rcar_d3 }, #endif
Re: [PATCH 01/11] soc: renesas: identify R-Car V3H
Quoted 3 lines · Sergei Shtylyov
Add support for identifying the R-Car V3H (R8A77980) SoC.
Signed-off-by Sergei Shtylyov <[email protected]>
For the record, this matches my reading of the documentation:
Re: [PATCH 01/11] soc: renesas: identify R-Car V3H
In reply to Sergei ShtylyovQuoted 3 lines · Sergei Shtylyov
Add support for identifying the R-Car V3H (R8A77980) SoC.
Signed-off-by Sergei Shtylyov <[email protected]>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
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
Simon Horman
AppliedRe: [PATCH 01/11] soc: renesas: identify R-Car V3H
Quoted 7 lines · Geert Uytterhoeven
Quoted 3 lines · Sergei Shtylyov
Add support for identifying the R-Car V3H (R8A77980) SoC.
Signed-off-by Sergei Shtylyov <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>
Thanks, applied.
Re: [PATCH 01/11] soc: renesas: identify R-Car V3H
Quoted 7 lines · Simon Horman
Quoted 5 lines
Quoted 3 lines
Add support for identifying the R-Car V3H (R8A77980) SoC.
Signed-off-by Sergei Shtylyov <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>Thanks, applied.
Not seeing that when fetching from your repo. Haven't pushed?
MBR, Sergei
Re: [PATCH 01/11] soc: renesas: identify R-Car V3H
Quoted 11 lines · Sergei Shtylyov
Quoted 7 lines · Simon Horman
Quoted 5 lines
Quoted 3 lines
Add support for identifying the R-Car V3H (R8A77980) SoC.
Signed-off-by Sergei Shtylyov <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>Thanks, applied.
Not seeing that when fetching from your repo. Haven't pushed?
Indeed, sorry about that. They should be there now in renesas-devel-20180206-v4.15.
PATCH 2/11 soc: renesas: rcar-rst: add R8A77980 support
In reply to Sergei ShtylyovAdd support for R-Car V3H (R8A77980) to the R-Car RST driver -- this driver is needed for the clock driver to work.
--- Documentation/devicetree/bindings/reset/renesas,rst.txt | 1 + drivers/soc/renesas/Kconfig | 2 +- drivers/soc/renesas/rcar-rst.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/reset/renesas,rst.txt +1 -0
@@ -27,6 +27,7 @@ Required properties: - "renesas,r8a7795-rst" (R-Car H3) - "renesas,r8a7796-rst" (R-Car M3-W) - "renesas,r8a77970-rst" (R-Car V3M) + - "renesas,r8a77980-rst" (R-Car V3H) - "renesas,r8a77995-rst" (R-Car D3) - reg: Address start and address range for the device.
drivers/soc/renesas/Kconfig +1 -1
@@ -4,7 +4,7 @@ config SOC_RENESAS select SOC_BUS select RST_RCAR if ARCH_RCAR_GEN1 || ARCH_RCAR_GEN2 || \ ARCH_R8A7795 || ARCH_R8A7796 || ARCH_R8A77970 || \ - ARCH_R8A77995 + ARCH_R8A77980 || ARCH_R8A77995 select SYSC_R8A7743 if ARCH_R8A7743 select SYSC_R8A7745 if ARCH_R8A7745 select SYSC_R8A7779 if ARCH_R8A7779
drivers/soc/renesas/rcar-rst.c +1 -0
@@ -42,6 +42,7 @@ static const struct of_device_id rcar_rs { .compatible = "renesas,r8a7795-rst", .data = &rcar_rst_gen2 }, { .compatible = "renesas,r8a7796-rst", .data = &rcar_rst_gen2 }, { .compatible = "renesas,r8a77970-rst", .data = &rcar_rst_gen2 }, + { .compatible = "renesas,r8a77980-rst", .data = &rcar_rst_gen2 }, { .compatible = "renesas,r8a77995-rst", .data = &rcar_rst_gen2 }, {/* sentinel */ } };
Re: [PATCH 02/11] soc: renesas: rcar-rst: add R8A77980 support
Quoted 4 lines · Sergei Shtylyov
Add support for R-Car V3H (R8A77980) to the R-Car RST driver -- this driver is needed for the clock driver to work.
Signed-off-by Sergei Shtylyov <[email protected]>
A message that is not in the archive (sent off-list or not yet received): 76b4144e-423a-65fd-fe17-bfedbc0deb8e-M4DtvfQ/[email protected]
Geert Uytterhoeven
Reviewed-byRe: [PATCH 02/11] soc: renesas: rcar-rst: add R8A77980 support
Quoted 2 lines · Sergei Shtylyov
Add support for R-Car V3H (R8A77980) to the R-Car RST driver -- this driver is needed for the clock driver to work.
Please drop the extra spaces in between words that are part of the same sentence.
Quoted 1 line
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
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
--
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
Simon Horman
AppliedRe: [PATCH 02/11] soc: renesas: rcar-rst: add R8A77980 support
Quoted 11 lines · Geert Uytterhoeven
Quoted 2 lines · Sergei Shtylyov
Add support for R-Car V3H (R8A77980) to the R-Car RST driver -- this driver is needed for the clock driver to work.
Please drop the extra spaces in between words that are part of the same sentence.
Quoted 1 line
Signed-off-by Sergei Shtylyov <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>
Thanks, applied with whitespace fixes suggested above.
A message that is not in the archive (sent off-list or not yet received): 46fca582-220d-e5a7-62cd-2fc77a29846b-M4DtvfQ/[email protected]
PATCH 3/11 dt-bindings: power: add R8A77980 SYSC power domain definitions
Add macros usable by the device tree sources to reference R8A77980 SYSC power domains by index.
Based on the original (and large) patch by Vladimir Barinov.
--- include/dt-bindings/power/r8a77980-sysc.h | 43 ++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+)
include/dt-bindings/power/r8a77980-sysc.h new file +43 -0
@@ -0,0 +1,43 @@ +/* SPDX-License-Identifier: GPL-2.0 +* +* Copyright (C) 2018 Renesas Electronics Corp. +* Copyright (C) 2018 Cogent Embedded, Inc. +*/ +#ifndef __DT_BINDINGS_POWER_R8A77980_SYSC_H__ +#define __DT_BINDINGS_POWER_R8A77980_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 R8A77980_PD_A2SC2 0 +#define R8A77980_PD_A2SC3 1 +#define R8A77980_PD_A2SC4 2 +#define R8A77980_PD_A2PD0 3 +#define R8A77980_PD_A2PD1 4 +#define R8A77980_PD_CA53_CPU0 5 +#define R8A77980_PD_CA53_CPU1 6 +#define R8A77980_PD_CA53_CPU2 7 +#define R8A77980_PD_CA53_CPU3 8 +#define R8A77980_PD_A2CN 10 +#define R8A77980_PD_A3VIP 11 +#define R8A77980_PD_A2IR5 12 +#define R8A77980_PD_CR7 13 +#define R8A77980_PD_A2IR4 15 +#define R8A77980_PD_CA53_SCU 21 +#define R8A77980_PD_A2IR0 23 +#define R8A77980_PD_A3IR 24 +#define R8A77980_PD_A3VIP1 25 +#define R8A77980_PD_A3VIP2 26 +#define R8A77980_PD_A2IR1 27 +#define R8A77980_PD_A2IR2 28 +#define R8A77980_PD_A2IR3 29 +#define R8A77980_PD_A2SC0 30 +#define R8A77980_PD_A2SC1 31 + +/* Always-on power area */ +#define R8A77980_PD_ALWAYS_ON 32 + +#endif /* __DT_BINDINGS_POWER_R8A77980_SYSC_H__ */
--
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
Re: [PATCH 03/11] dt-bindings: power: add R8A77980 SYSC power domain definitions
Quoted 7 lines · Sergei Shtylyov
Add macros usable by the device tree sources to reference R8A77980 SYSC power domains by index.
Based on the original (and large) patch by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>
A message that is not in the archive (sent off-list or not yet received): 5177bec1-422f-688d-ea67-f15951505b1e-M4DtvfQ/[email protected]
Geert Uytterhoeven
Reviewed-byRe: [PATCH 03/11] dt-bindings: power: add R8A77980 SYSC power domain definitions
Quoted 7 lines · Sergei Shtylyov
Add macros usable by the device tree sources to reference R8A77980 SYSC power domains by index.
Based on the original (and large) patch by Vladimir Barinov.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
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
--
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
A message that is not in the archive (sent off-list or not yet received): CAMuHMdWUGbnF+vA6r4NCvNh3-TLhnWZCm3ixxfy2+s6+9giKiw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Re: [PATCH 03/11] dt-bindings: power: add R8A77980 SYSC power domain definitions
Quoted 11 lines · Geert Uytterhoeven
Quoted 7 lines · Sergei Shtylyov
Add macros usable by the device tree sources to reference R8A77980 SYSC power domains by index.
Based on the original (and large) patch by Vladimir Barinov.
Reviewed-by Geert Uytterhoeven <[email protected]>
Thanks, applied.
--
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 4/11 soc: renesas: rcar-sysc: add R8A77980 support
In reply to a message not in the archiveAdd 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.
--- 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
A message that is not in the archive (sent off-list or not yet received): 0309d18d-d5d8-ab59-9c15-79b4093e0a51-M4DtvfQ/[email protected]
Geert Uytterhoeven
Reviewed-byRe: [PATCH 04/11] soc: renesas: rcar-sysc: add R8A77980 support
Hi Sergei,
Quoted 7 lines · Sergei Shtylyov
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.
Thanks for your patch!
Quoted 29 lines
drivers/soc/renesas/r8a77980-sysc.c new file +26
-0@@ -0,0 +1,52 @@ +// SPDX-License-Identifier: GPL-2.0 +/* +* Renesas R-Car V3H System Controller +* +* Copyright (C) 2018 Renesas Electronics Corp. +* Copyright (C) 2018 Cogent Embedded, Inc. +*/ + +#include <linux/bug.h> +#include <linux/kernel.h> + +#include <dt-bindings/power/r8a77980-sysc.h> + +#include "rcar-sysc.h" + +static const struct rcar_sysc_area r8a77980_areas[]__initconst = { + {"always-on" ,0 ,0 ,R8A77980_PD_ALWAYS_ON ,-1 ,PD_ALWAYS_ON }, + {"ca53-scu" ,0x140 ,0 ,R8A77980_PD_CA53_SCU ,R8A77980_PD_ALWAYS_ON , +PD_SCU }, + {"ca53-cpu0" ,0x200 ,0 ,R8A77980_PD_CA53_CPU0 ,R8A77980_PD_CA53_SCU , +PD_CPU_NOCR }, + {"ca53-cpu1" ,0x200 ,1 ,R8A77980_PD_CA53_CPU1 ,R8A77980_PD_CA53_SCU , +PD_CPU_NOCR }, + {"ca53-cpu2" ,0x200 ,2 ,R8A77980_PD_CA53_CPU2 ,R8A77980_PD_CA53_SCU , +PD_CPU_NOCR }, + {"ca53-cpu3" ,0x200 ,3 ,R8A77980_PD_CA53_CPU3 ,R8A77980_PD_CA53_SCU ,
drivers/soc/renesas/r8a77980-sysc.c line 35
Quoted 10 lines
drivers/soc/renesas/r8a77980-sysc.c new file +9
-0+ PD_CPU_NOCR }, + { "cr7", 0x240, 0, R8A77980_PD_CR7, R8A77980_PD_ALWAYS_ON }, + { "a3ir", 0x180, 0, R8A77980_PD_A3IR, R8A77980_PD_ALWAYS_ON }, + { "a2ir0", 0x400, 0, R8A77980_PD_A2IR0, R8A77980_PD_ALWAYS_ON }, + { "a2ir1", 0x400, 1, R8A77980_PD_A2IR1, R8A77980_PD_A2IR0 }, + { "a2ir2", 0x400, 2, R8A77980_PD_A2IR2, R8A77980_PD_A2IR0 }, + { "a2ir3", 0x400, 3, R8A77980_PD_A2IR3, R8A77980_PD_A2IR0 }, + { "a2ir4", 0x400, 4, R8A77980_PD_A2IR4, R8A77980_PD_A2IR0 }, + { "a2ir5", 0x400, 5, R8A77980_PD_A2IR5, R8A77980_PD_A2IR0 },
Shouldn't all a2irN domains have a3ir as their parent?
drivers/soc/renesas/r8a77980-sysc.c line 40
Quoted 5 lines
drivers/soc/renesas/r8a77980-sysc.c new file +5
-0+ { "a2sc0", 0x400, 6, R8A77980_PD_A2SC0, R8A77980_PD_ALWAYS_ON }, + { "a2sc1", 0x400, 7, R8A77980_PD_A2SC1, R8A77980_PD_A2SC0 }, + { "a2sc2", 0x400, 8, R8A77980_PD_A2SC2, R8A77980_PD_A2SC0 }, + { "a2sc3", 0x400, 9, R8A77980_PD_A2SC3, R8A77980_PD_A2SC0 }, + { "a2sc4", 0x400, 10, R8A77980_PD_A2SC4, R8A77980_PD_A2SC0 },
Shouldn't all a2scN domains have a3ir as their parent?
drivers/soc/renesas/r8a77980-sysc.c line 42
Quoted 2 lines
drivers/soc/renesas/r8a77980-sysc.c new file +2
-0+ { "a2pd0", 0x400, 11, R8A77980_PD_A2PD0, R8A77980_PD_ALWAYS_ON }, + { "a2pd1", 0x400, 12, R8A77980_PD_A2PD1, R8A77980_PD_A2PD0 },
Shouldn't all a2pdN domains have a3ir as their parent?
Quoted 1 line
+ { "a2cn",
0x400, 13,R8A77980_PD_A2CN,R8A77980_PD_ALWAYS_ON},
Shouldn't the a2cn domain have a3ir as its parent?
drivers/soc/renesas/r8a77980-sysc.c line 46
Quoted 3 lines
drivers/soc/renesas/r8a77980-sysc.c new file +3
-0+ { "a3vip", 0x2c0, 0, R8A77980_PD_A3VIP, R8A77980_PD_ALWAYS_ON }, + { "a3vip1", 0x300, 0, R8A77980_PD_A3VIP1, R8A77980_PD_A3VIP }, + { "a3vip2", 0x280, 0, R8A77980_PD_A3VIP2, R8A77980_PD_A3VIP },
With the above fixed:
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
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
--
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
A message that is not in the archive (sent off-list or not yet received): CAMuHMdUQuUhbiPnO1L7t5W5F8wJ72iYLM5VtT4gg0RuePcx7RA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Re: [PATCH 04/11] soc: renesas: rcar-sysc: add R8A77980 support
Hello!
Quoted 13 lines · Geert Uytterhoeven
Quoted 7 lines
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.
Thanks for your patch!
Quoted 3 lines
drivers/soc/renesas/r8a77980-sysc.c new file +0
-0@@ -0,0 +1,52 @@
[...]
Quoted 21 lines
Quoted 10 lines
drivers/soc/renesas/r8a77980-sysc.c new file +10
-0+static const struct rcar_sysc_area r8a77980_areas[]__initconst = { + {"always-on" ,0 ,0 ,R8A77980_PD_ALWAYS_ON ,-1 ,PD_ALWAYS_ON }, + {"ca53-scu" ,0x140 ,0 ,R8A77980_PD_CA53_SCU ,R8A77980_PD_ALWAYS_ON , +PD_SCU }, + {"ca53-cpu0" ,0x200 ,0 ,R8A77980_PD_CA53_CPU0 ,R8A77980_PD_CA53_SCU , +PD_CPU_NOCR }, + {"ca53-cpu1" ,0x200 ,1 ,R8A77980_PD_CA53_CPU1 ,R8A77980_PD_CA53_SCU , +PD_CPU_NOCR }, + {"ca53-cpu2" ,0x200 ,2 ,R8A77980_PD_CA53_CPU2 ,R8A77980_PD_CA53_SCU , +PD_CPU_NOCR },drivers/soc/renesas/r8a77980-sysc.c line 35
Quoted 10 lines
drivers/soc/renesas/r8a77980-sysc.c new file +10
-0+ {"ca53-cpu3" ,0x200 ,3 ,R8A77980_PD_CA53_CPU3 ,R8A77980_PD_CA53_SCU , + PD_CPU_NOCR }, + { "cr7", 0x240, 0, R8A77980_PD_CR7, R8A77980_PD_ALWAYS_ON }, + { "a3ir", 0x180, 0, R8A77980_PD_A3IR, R8A77980_PD_ALWAYS_ON }, + { "a2ir0", 0x400, 0, R8A77980_PD_A2IR0, R8A77980_PD_ALWAYS_ON }, + { "a2ir1", 0x400, 1, R8A77980_PD_A2IR1, R8A77980_PD_A2IR0 }, + { "a2ir2", 0x400, 2, R8A77980_PD_A2IR2, R8A77980_PD_A2IR0 }, + { "a2ir3", 0x400, 3, R8A77980_PD_A2IR3, R8A77980_PD_A2IR0 }, + { "a2ir4", 0x400, 4, R8A77980_PD_A2IR4, R8A77980_PD_A2IR0 }, + { "a2ir5", 0x400, 5, R8A77980_PD_A2IR5, R8A77980_PD_A2IR0 },
Quoted 1 line
Shouldn't all a2irN domains have a3ir as their parent?
Maybe.... I'd looked at the r8a77970-sysc.c and it also had A2IR0 as parent to all
other A2IR<n> clocks.
Quoted 7 lines
drivers/soc/renesas/r8a77980-sysc.c line 40
Quoted 5 lines
drivers/soc/renesas/r8a77980-sysc.c new file +5
-0+ { "a2sc0", 0x400, 6, R8A77980_PD_A2SC0, R8A77980_PD_ALWAYS_ON }, + { "a2sc1", 0x400, 7, R8A77980_PD_A2SC1, R8A77980_PD_A2SC0 }, + { "a2sc2", 0x400, 8, R8A77980_PD_A2SC2, R8A77980_PD_A2SC0 }, + { "a2sc3", 0x400, 9, R8A77980_PD_A2SC3, R8A77980_PD_A2SC0 }, + { "a2sc4", 0x400, 10, R8A77980_PD_A2SC4, R8A77980_PD_A2SC0 },Shouldn't all a2scN domains have a3ir as their parent?
Why A3IR?
Quoted 4 lines
drivers/soc/renesas/r8a77980-sysc.c line 42
Quoted 2 lines
drivers/soc/renesas/r8a77980-sysc.c new file +2
-0+ { "a2pd0", 0x400, 11, R8A77980_PD_A2PD0, R8A77980_PD_ALWAYS_ON }, + { "a2pd1", 0x400, 12, R8A77980_PD_A2PD1, R8A77980_PD_A2PD0 },Shouldn't all a2pdN domains have a3ir as their parent?
Again, why?
Quoted 4 lines
Quoted 2 lines
+ { "a2cn",
0x400, 13,R8A77980_PD_A2CN,R8A77980_PD_ALWAYS_ON},Shouldn't the a2cn domain have a3ir as its parent?
?
Quoted 10 lines
drivers/soc/renesas/r8a77980-sysc.c line 46
Quoted 3 lines
drivers/soc/renesas/r8a77980-sysc.c new file +3
-0+ { "a3vip", 0x2c0, 0, R8A77980_PD_A3VIP, R8A77980_PD_ALWAYS_ON }, + { "a3vip1", 0x300, 0, R8A77980_PD_A3VIP1, R8A77980_PD_A3VIP }, + { "a3vip2", 0x280, 0, R8A77980_PD_A3VIP2, R8A77980_PD_A3VIP },With the above fixed:
Reviewed-by Geert Uytterhoeven <[email protected]>Gr{oetje,eeting}s,
Geert
MBR, Sergei
--
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
A message that is not in the archive (sent off-list or not yet received): b61b4bd9-a1ac-8145-237f-71049a13b90f-M4DtvfQ/[email protected]
Re: [PATCH 04/11] soc: renesas: rcar-sysc: add R8A77980 support
Quoted 35 lines · Sergei Shtylyov
Quoted 13 lines
Quoted 7 lines
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.
Thanks for your patch!
Quoted 3 lines
drivers/soc/renesas/r8a77980-sysc.c new file +0
-0@@ -0,0 +1,52 @@[...]
Quoted 21 lines
Quoted 20 lines
drivers/soc/renesas/r8a77980-sysc.c new file +20
-0+static const struct rcar_sysc_area r8a77980_areas[]__initconst = { + {"always-on" ,0 ,0 ,R8A77980_PD_ALWAYS_ON ,-1 ,PD_ALWAYS_ON }, + {"ca53-scu" ,0x140 ,0 ,R8A77980_PD_CA53_SCU ,R8A77980_PD_ALWAYS_ON , +PD_SCU }, + {"ca53-cpu0" ,0x200 ,0 ,R8A77980_PD_CA53_CPU0 ,R8A77980_PD_CA53_SCU , +PD_CPU_NOCR }, + {"ca53-cpu1" ,0x200 ,1 ,R8A77980_PD_CA53_CPU1 ,R8A77980_PD_CA53_SCU , +PD_CPU_NOCR }, + {"ca53-cpu2" ,0x200 ,2 ,R8A77980_PD_CA53_CPU2 ,R8A77980_PD_CA53_SCU , +PD_CPU_NOCR }, + {"ca53-cpu3" ,0x200 ,3 ,R8A77980_PD_CA53_CPU3 ,R8A77980_PD_CA53_SCU , +PD_CPU_NOCR }, + {"cr7" ,0x240 ,0 ,R8A77980_PD_CR7 ,R8A77980_PD_ALWAYS_ON }, + {"a3ir" ,0x180 ,0 ,R8A77980_PD_A3IR ,R8A77980_PD_ALWAYS_ON }, + {"a2ir0" ,0x400 ,0 ,R8A77980_PD_A2IR0 ,R8A77980_PD_ALWAYS_ON }, + {"a2ir1" ,0x400 ,1 ,R8A77980_PD_A2IR1 ,R8A77980_PD_A2IR0 }, + {"a2ir2" ,0x400 ,2 ,R8A77980_PD_A2IR2 ,R8A77980_PD_A2IR0 }, + {"a2ir3" ,0x400 ,3 ,R8A77980_PD_A2IR3 ,R8A77980_PD_A2IR0 }, + {"a2ir4" ,0x400 ,4 ,R8A77980_PD_A2IR4 ,R8A77980_PD_A2IR0 }, + {"a2ir5" ,0x400 ,5 ,R8A77980_PD_A2IR5 ,R8A77980_PD_A2IR0 },
Quoted 1 line
Quoted 1 line
Shouldn't all a2irN domains have a3ir as their parent?
Finally found section 9.3 -- it seems you were right! :-)
Quoted 2 lines
Maybe.... I'd looked at the
r8a77970-sysc.cand it also had A2IR0 as parent to all
other A2IR<n> clocks.
That one has the parenting wrong (after comparing to the manual) -- I'll prepare a fix.
Quoted 6 lines
Quoted 6 lines
drivers/soc/renesas/r8a77980-sysc.c line 46
Quoted 3 lines
drivers/soc/renesas/r8a77980-sysc.c new file +3
-0+ { "a3vip", 0x2c0, 0, R8A77980_PD_A3VIP, R8A77980_PD_ALWAYS_ON }, + { "a3vip1", 0x300, 0, R8A77980_PD_A3VIP1, R8A77980_PD_A3VIP }, + { "a3vip2", 0x280, 0, R8A77980_PD_A3VIP2, R8A77980_PD_A3VIP },With the above fixed:
Reviewed-by Geert Uytterhoeven <[email protected]>
Thank you -- will add...
MBR, Sergei
--
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
Simon Horman
Reviewed-byRe: [PATCH 04/11] soc: renesas: rcar-sysc: add R8A77980 support
In reply to a message not in the archiveQuoted 7 lines · Sergei Shtylyov
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.
For the record, this matches my reading of the documentation:
...
Quoted 16 lines
Index:
renesas/drivers/soc/renesas/r8a77980-sysc.c
===================================================================drivers/soc/renesas/r8a77980-sysc.c new file +11
-0@@ -0,0 +1,52 @@ +// SPDX-License-Identifier: GPL-2.0 +/* +* Renesas R-Car V3H System Controller +* +* Copyright (C) 2018 Renesas Electronics Corp. +* Copyright (C) 2018 Cogent Embedded, Inc. +*/ + +#include <linux/bug.h> +#include <linux/kernel.h> +
drivers/soc/renesas/r8a77980-sysc.c line 21
Quoted 10 lines
drivers/soc/renesas/r8a77980-sysc.c new file +10
-0+#include <dt-bindings/power/r8a77980-sysc.h> + +#include "rcar-sysc.h" + +static const struct rcar_sysc_area r8a77980_areas[]__initconst = { + {"always-on" ,0 ,0 ,R8A77980_PD_ALWAYS_ON ,-1 ,PD_ALWAYS_ON }, + {"ca53-scu" ,0x140 ,0 ,R8A77980_PD_CA53_SCU ,R8A77980_PD_ALWAYS_ON , +PD_SCU }, + {"ca53-cpu0" ,0x200 ,0 ,R8A77980_PD_CA53_CPU0 ,R8A77980_PD_CA53_SCU , +PD_CPU_NOCR },
...
The above seems consistent with existing usage of struct rcar_sysc_area, however, I am wondering if any consideration has been given to using symbolic names for the register offsets that are the 2nd field of the structure. Something like this for the values used in this patch:
#define RCAR_GEN3_SYSCSR 0 #define RCAR_GEN3_PWRSR3 0x140 #define RCAR_GEN3_PWRSR4 0x180 #define RCAR_GEN3_PWRSR6 0x200 #define RCAR_GEN3_PWRSR7 0x240
#define RCAR_GEN3_PWRSR11 0x400
#define RCAR_GEN3_PWRSR12 0x2c0
#define RCAR_GEN3_PWRSR13 0x300
#define RCAR_GEN3_PWRSR14 0x280
--
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
A message that is not in the archive (sent off-list or not yet received): 20180207102942.jmggcp5isiwdzwqt-/[email protected]
Re: [PATCH 04/11] soc: renesas: rcar-sysc: add R8A77980 support
Quoted 11 lines · Simon Horman
Quoted 7 lines
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.
For the record, this matches my reading of the documentation:
Reviewed-by Simon Horman <horms+renesas-/[email protected]>
Thank you! :-)
Quoted 41 lines
...
Quoted 16 lines
Index:
renesas/drivers/soc/renesas/r8a77980-sysc.c
===================================================================drivers/soc/renesas/r8a77980-sysc.c new file +11
-0@@ -0,0 +1,52 @@ +// SPDX-License-Identifier: GPL-2.0 +/* +* Renesas R-Car V3H System Controller +* +* Copyright (C) 2018 Renesas Electronics Corp. +* Copyright (C) 2018 Cogent Embedded, Inc. +*/ + +#include <linux/bug.h> +#include <linux/kernel.h> +drivers/soc/renesas/r8a77980-sysc.c line 21
Quoted 10 lines
drivers/soc/renesas/r8a77980-sysc.c new file +10
-0+#include <dt-bindings/power/r8a77980-sysc.h> + +#include "rcar-sysc.h" + +static const struct rcar_sysc_area r8a77980_areas[]__initconst = { + {"always-on" ,0 ,0 ,R8A77980_PD_ALWAYS_ON ,-1 ,PD_ALWAYS_ON }, + {"ca53-scu" ,0x140 ,0 ,R8A77980_PD_CA53_SCU ,R8A77980_PD_ALWAYS_ON , +PD_SCU }, + {"ca53-cpu0" ,0x200 ,0 ,R8A77980_PD_CA53_CPU0 ,R8A77980_PD_CA53_SCU , +PD_CPU_NOCR },...
The above seems consistent with existing usage of struct
rcar_sysc_area, however, I am wondering if any consideration has been given to using symbolic names for the register offsets that are the 2nd field of the structure. Something like this for the values used in this patch:#define RCAR_GEN3_SYSCSR 0 #define RCAR_GEN3_PWRSR3 0x140 #define RCAR_GEN3_PWRSR4 0x180 #define RCAR_GEN3_PWRSR6 0x200 #define RCAR_GEN3_PWRSR7 0x240
Quoted 4 lines
#define
RCAR_GEN3_PWRSR110x400
#defineRCAR_GEN3_PWRSR120x2c0
#defineRCAR_GEN3_PWRSR130x300
#defineRCAR_GEN3_PWRSR140x280
No. Perhaps a good idea indeed...
MBR, Sergei
--
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 5/11 arm64: dts: renesas: initial R8A77980 SoC device tree
In reply to Sergei ShtylyovThe initial R8A77980 SoC device tree including Cortex-A53 CPU, GIC, timer, CPG, RST, and SYSC.
Based on the original (and large) patch by Vladimir Barinov.
--- arch/arm64/boot/dts/renesas/r8a77980.dtsi | 122 ++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+)
arch/arm64/boot/dts/renesas/r8a77980.dtsi new file +122 -0
@@ -0,0 +1,122 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for the r8a77980 SoC + * + * Copyright (C) 2018 Renesas Electronics Corp. + * Copyright (C) 2018 Cogent Embedded, Inc. + */ + +#include <dt-bindings/interrupt-controller/irq.h> +#include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/clock/renesas-cpg-mssr.h> + +/ { + compatible = "renesas,r8a77980"; + #address-cells = <2>; + #size-cells = <2>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + a53_0: cpu at 0 { + device_type = "cpu"; + compatible = "arm,cortex-a53", "arm,armv8"; + reg = <0>; + clocks = <&cpg CPG_CORE 0>; + power-domains = <&sysc 5>; + next-level-cache = <&L2_CA53>; + enable-method = "psci"; + }; + + L2_CA53: cache-controller { + compatible = "cache"; + power-domains = <&sysc 21>; + cache-unified; + cache-level = <2>; + }; + }; + + extal_clk: extal { + compatible = "fixed-clock"; + #clock-cells = <0>; + /* This value must be overridden by the board */ + clock-frequency = <0>; + }; + + extalr_clk: extalr { + compatible = "fixed-clock"; + #clock-cells = <0>; + /* This value must be overridden by the board */ + clock-frequency = <0>; + }; + + psci { + compatible = "arm,psci-1.0", "arm,psci-0.2"; + method = "smc"; + }; + + soc { + compatible = "simple-bus"; + interrupt-parent = <&gic>; + + #address-cells = <2>; + #size-cells = <2>; + ranges; + + cpg: clock-controller at e6150000 { + compatible = "renesas,r8a77980-cpg-mssr"; + reg = <0 0xe6150000 0 0x1000>; + clocks = <&extal_clk>, <&extalr_clk>; + clock-names = "extal", "extalr"; + #clock-cells = <2>; + #power-domain-cells = <0>; + #reset-cells = <1>; + }; + + rst: reset-controller at e6160000 { + compatible = "renesas,r8a77980-rst"; + reg = <0 0xe6160000 0 0x200>; + }; + + sysc: system-controller at e6180000 { + compatible = "renesas,r8a77980-sysc"; + reg = <0 0xe6180000 0 0x440>; + #power-domain-cells = <1>; + }; + + gic: interrupt-controller at f1010000 { + compatible = "arm,gic-400"; + #interrupt-cells = <3>; + #address-cells = <0>; + interrupt-controller; + reg = <0x0 0xf1010000 0 0x1000>, + <0x0 0xf1020000 0 0x20000>, + <0x0 0xf1040000 0 0x20000>, + <0x0 0xf1060000 0 0x20000>; + interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(1) | + IRQ_TYPE_LEVEL_HIGH)>; + clocks = <&cpg CPG_MOD 408>; + clock-names = "clk"; + power-domains = <&sysc 32>; + resets = <&cpg 408>; + }; + + prr: chipid at fff00044 { + compatible = "renesas,prr"; + reg = <0 0xfff00044 0 4>; + }; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(1) | + IRQ_TYPE_LEVEL_LOW)>, + <&gic GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(1) | + IRQ_TYPE_LEVEL_LOW)>, + <&gic GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(1) | + IRQ_TYPE_LEVEL_LOW)>, + <&gic GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(1) | + IRQ_TYPE_LEVEL_LOW)>; + }; +};
PATCH 5/11 arm64: dts: renesas: initial R8A77980 SoC device tree
Hi Sergei,
Quoted 7 lines · Sergei Shtylyov
The initial R8A77980 SoC device tree including Cortex-A53 CPU, GIC, timer, CPG, RST, and SYSC.
Based on the original (and large) patch by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>
Thanks for your patch!
Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi new file +1
-0@@ -0,0 +1,122 @@ +// SPDX-License-Identifier: GPL-2.0
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 11
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi new file +10
-0+/* + * Device Tree Source for the r8a77980 SoC + * + * Copyright (C) 2018 Renesas Electronics Corp. + * Copyright (C) 2018 Cogent Embedded, Inc. + */ + +#include <dt-bindings/interrupt-controller/irq.h> +#include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/clock/renesas-cpg-mssr.h>
I think you want to leave out the above #include, as it will go upstream through a different path (you're already using hardcoded clock numbers, assuming the same).
With the above fixed:
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 5/11 arm64: dts: renesas: initial R8A77980 SoC device tree
Quoted 20 lines · Geert Uytterhoeven
Quoted 7 lines
The initial R8A77980 SoC device tree including Cortex-A53 CPU, GIC, timer, CPG, RST, and SYSC.
Based on the original (and large) patch by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>Thanks for your patch!
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi new file +7
-0@@ -0,0 +1,122 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for the r8a77980 SoC + * + * Copyright (C) 2018 Renesas Electronics Corp. + * Copyright (C) 2018 Cogent Embedded, Inc. + */
Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 11
Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi new file +4
-0+ +#include <dt-bindings/interrupt-controller/irq.h> +#include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/clock/renesas-cpg-mssr.h>I think you want to leave out the above #include, as it will go upstream through a different path (you're already using hardcoded clock numbers, assuming the same).
I still need CPG_{CORE|MOD}.
Quoted 2 lines
With the above fixed:
Reviewed-by Geert Uytterhoeven <[email protected]>
Sorry, I don't see anything worth fixing...
Quoted 3 lines
Gr{oetje,eeting}s,
Geert
MBR, Sergei
PATCH 5/11 arm64: dts: renesas: initial R8A77980 SoC device tree
Hi Sergei,
Quoted 32 lines · Sergei Shtylyov
Quoted 22 lines · Geert Uytterhoeven
Quoted 8 lines
The initial R8A77980 SoC device tree including Cortex-A53 CPU, GIC, timer,
CPG, RST, and SYSC.Based on the original (and large) patch by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>Thanks for your patch!
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi new file +7
-0@@ -0,0 +1,122 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for the r8a77980 SoC + * + * Copyright (C) 2018 Renesas Electronics Corp. + * Copyright (C) 2018 Cogent Embedded, Inc. + */Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 11
Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi new file +4
-0+ +#include <dt-bindings/interrupt-controller/irq.h> +#include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/clock/renesas-cpg-mssr.h>I think you want to leave out the above #include, as it will go upstream through a different path (you're already using hardcoded clock numbers, assuming the same).
Quoted 1 line
I still need CPG_{CORE|MOD}.
You're right. Please ignore my comment.
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
Simon Horman
AppliedPATCH 5/11 arm64: dts: renesas: initial R8A77980 SoC device tree
Quoted 36 lines · Geert Uytterhoeven
Hi Sergei,
Quoted 32 lines · Sergei Shtylyov
Quoted 30 lines · Geert Uytterhoeven
Quoted 8 lines
The initial R8A77980 SoC device tree including Cortex-A53 CPU, GIC, timer,
CPG, RST, and SYSC.Based on the original (and large) patch by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>Thanks for your patch!
Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi new file +1
-0@@ -0,0 +1,122 @@ +// SPDX-License-Identifier: GPL-2.0arch/arm64/boot/dts/renesas/r8a77980.dtsi line 11
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi new file +10
-0+/* + * Device Tree Source for the r8a77980 SoC + * + * Copyright (C) 2018 Renesas Electronics Corp. + * Copyright (C) 2018 Cogent Embedded, Inc. + */ + +#include <dt-bindings/interrupt-controller/irq.h> +#include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/clock/renesas-cpg-mssr.h>I think you want to leave out the above #include, as it will go upstream through a different path (you're already using hardcoded clock numbers, assuming the same).
Quoted 5 lines
Quoted 1 line
I still need CPG_{CORE|MOD}.
You're right. Please ignore my comment.
Reviewed-by Geert Uytterhoeven <[email protected]>
Thanks, applied.
PATCH 6/11 arm64: dts: renesas: r8a77980: add SYS-DMAC support
In reply to Sergei ShtylyovDescribe SYS-DMAC1/2 in the R8A77980 device tree.
Based on the original (and large) patch by Vladimir Barinov.
--- arch/arm64/boot/dts/renesas/r8a77980.dtsi | 68 ++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+)
arch/arm64/boot/dts/renesas/r8a77980.dtsi +68 -0
@@ -85,6 +85,74 @@ #power-domain-cells = <1>; }; + dmac1: dma-controller at e7300000 { + compatible = "renesas,dmac-r8a77980", + "renesas,rcar-dmac"; + reg = <0 0xe7300000 0 0x10000>; + interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 219 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 308 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 309 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 311 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 353 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 354 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 355 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 356 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 357 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 358 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 359 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 360 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12", "ch13", "ch14", "ch15"; + clocks = <&cpg CPG_MOD 218>; + clock-names = "fck"; + power-domains = <&sysc 32>; + resets = <&cpg 218>; + #dma-cells = <1>; + dma-channels = <16>; + }; + + dmac2: dma-controller at e7310000 { + compatible = "renesas,dmac-r8a77980", + "renesas,rcar-dmac"; + reg = <0 0xe7310000 0 0x10000>; + interrupts = <GIC_SPI 307 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 312 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 313 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 314 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 315 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 316 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 317 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 318 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 319 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 361 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 362 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 363 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 364 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 365 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 366 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 367 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 368 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12", "ch13", "ch14", "ch15"; + clocks = <&cpg CPG_MOD 217>; + clock-names = "fck"; + power-domains = <&sysc 32>; + resets = <&cpg 217>; + #dma-cells = <1>; + dma-channels = <16>; + }; + gic: interrupt-controller at f1010000 { compatible = "arm,gic-400"; #interrupt-cells = <3>;
PATCH 6/11 arm64: dts: renesas: r8a77980: add SYS-DMAC support
Quoted 6 lines · Sergei Shtylyov
Describe SYS-DMAC1/2 in the R8A77980 device tree.
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
Simon Horman
AppliedPATCH 6/11 arm64: dts: renesas: r8a77980: add SYS-DMAC support
Quoted 10 lines · Geert Uytterhoeven
Quoted 6 lines · Sergei Shtylyov
Describe SYS-DMAC1/2 in the R8A77980 device tree.
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]>
Thanks, applied.
PATCH 7/11 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.
--- 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 16>, + <&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 16>, + <&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 16>, + <&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 16>, + <&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 16>, + <&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 16>, + <&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 16>, + <&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 16>, + <&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 7/11 arm64: dts: renesas: r8a77980: add [H]SCIF support
Hi Sergei,
Quoted 6 lines · Sergei Shtylyov
Describe [H]SCIF ports in the R8A77980 device tree.
Based on the original (and large) patch by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>
Thanks for your patch!
Quoted 5 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +0
-0@@ -85,6 +92,150 @@ #power-domain-cells = <1>;
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 102
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +8
-0}; + 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 16>,
Shouldn't this be 19 (S3D1) instead of 16 (S2D1)?
With that fixed (for all (H)SCIF ports);
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 7/11 arm64: dts: renesas: r8a77980: add [H]SCIF support
Quoted 16 lines · Geert Uytterhoeven
Quoted 6 lines
Describe [H]SCIF ports in the R8A77980 device tree.
Based on the original (and large) patch by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>Thanks for your patch!
Quoted 7 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +0
-0@@ -85,6 +92,150 @@ #power-domain-cells = <1>; };
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 102
Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +8
-0+ 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 16>,Shouldn't this be 19 (S3D1) instead of 16 (S2D1)?
Seems like that... at least after out chat. :-)
Quoted 1 line
With that fixed (for all (H)SCIF ports);
The manual tells me SCKi for the SCIF ports should be the same S3D1.
Quoted 4 lines
Reviewed-by Geert Uytterhoeven <[email protected]>Gr{oetje,eeting}s,
MBR, Sergei
PATCH 8/11 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.
--- 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>, <0 0xe6a00000 0 0x10000>; + 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-id"; + #address-cells = <1>; + #size-cells = <0>; + }; + scif0: serial at e6e60000 { compatible = "renesas,scif-r8a77980", "renesas,rcar-gen3-scif",
PATCH 8/11 arm64: dts: renesas: r8a77980: add EtherAVB support
Hi Sergei,
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]>
Thanks for your patch!
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 170
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +4
-0@@ -164,6 +164,50 @@ status = "disabled"; }; + avb: ethernet at e6800000 { + compatible = "renesas,etheravb-r8a77980", + "renesas,etheravb-rcar-gen3"; + reg = <0 0xe6800000 0 0x800>, <0 0xe6a00000 0 0x10000>;
According to the Hardware User Manual 0.80, V3H does not have the Stream Buffer (second region).
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 206
Quoted 1 line
arch/arm64/boot/dts/renesas/r8a77980.dtsi +1
-0+ phy-mode = "rgmii-id";
This is different from H3, M3-W, and D3. Care to elaborate for the layman in me?
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 8/11 arm64: dts: renesas: r8a77980: add EtherAVB support
Quoted 15 lines · Geert Uytterhoeven
Quoted 6 lines
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]>Thanks for your patch!
Quoted 6 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +0
-0@@ -164,6 +164,50 @@ status = "disabled"; };
Quoted 7 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 170
Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +4
-0+ avb: ethernet at e6800000 { + compatible = "renesas,etheravb-r8a77980", + "renesas,etheravb-rcar-gen3"; + reg = <0 0xe6800000 0 0x800>, <0 0xe6a00000 0 0x10000>;According to the Hardware User Manual 0.80, V3H does not have the Stream Buffer (second region).
Indeed, I forgot to check the manual. TY for noticing!
Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 206
Quoted 1 line
arch/arm64/boot/dts/renesas/r8a77980.dtsi +1
-0+ phy-mode = "rgmii-id";This is different from H3, M3-W, and D3. Care to elaborate for the layman in me?
See Documentation/devicetree/bindings/net/ethernet.txt, I don't know anything beyond that anyway. :-) Based on the manual, I'd think we should use "rgmii" here and override it in the board DT if needed...
Quoted 3 lines
Gr{oetje,eeting}s,
Geert
MBR, Sergei
PATCH 9/11 DT: arm: shmobile: document Condor board bindings
In reply to Sergei ShtylyovDocument the Condor device tree bindings, listing it as a supported board.
This allows to use checkpatch.pl to validate .dts files referring to the Condor board.
--- Documentation/devicetree/bindings/arm/shmobile.txt | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/arm/shmobile.txt +2 -0
@@ -59,6 +59,8 @@ Boards: compatible = "renesas,blanche", "renesas,r8a7792" - BOCK-W compatible = "renesas,bockw", "renesas,r8a7778" + - Condor (RTP0RC77980SEB0010SS/RTP0RC77980SEB0010SA01) + compatible = "renesas,condor", "renesas,r8a77980" - Draak (RTP0RC77995SEB0010S) compatible = "renesas,draak", "renesas,r8a77995" - Eagle (RTP0RC77970SEB0010S)
Rob Herring
maintainerPATCH 9/11 DT: arm: shmobile: document Condor board bindings
Quoted 10 lines · Sergei Shtylyov
Document the Condor device tree bindings, listing it as a supported board.
This allows to use checkpatch.pl to validate .dts files referring to the Condor board.
Signed-off-by Sergei Shtylyov <[email protected]>--- Documentation/devicetree/bindings/arm/shmobile.txt | 2 ++ 1 file changed, 2 insertions(+)
PATCH 9/11 DT: arm: shmobile: document Condor board bindings
In reply to Sergei ShtylyovQuoted 6 lines · Sergei Shtylyov
Document the Condor device tree bindings, listing it as a supported board.
This allows to use checkpatch.pl to validate .dts files referring to the Condor board.
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
Simon Horman
AppliedPATCH 9/11 DT: arm: shmobile: document Condor board bindings
Quoted 14 lines · Rob Herring
Quoted 10 lines · Sergei Shtylyov
Document the Condor device tree bindings, listing it as a supported board.
This allows to use checkpatch.pl to validate .dts files referring to the Condor board.
Signed-off-by Sergei Shtylyov <[email protected]>--- Documentation/devicetree/bindings/arm/shmobile.txt | 2 ++ 1 file changed, 2 insertions(+)Reviewed-by Rob Herring <[email protected]>
Quoted 10 lines · Geert Uytterhoeven
Quoted 6 lines · Sergei Shtylyov
Document the Condor device tree bindings, listing it as a supported board.
This allows to use checkpatch.pl to validate .dts files referring to the Condor board.
Signed-off-by Sergei Shtylyov <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>
Thanks, applied with the following subject:
dt-bindings: arm: document Condor board bindings
PATCH 10/11 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.
--- arch/arm64/boot/dts/renesas/Makefile | 1 arch/arm64/boot/dts/renesas/r8a77980-condor.dts | 46 ++++++++++++++++++++++++ 2 files changed, 47 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 +46 -0
46 lines not on this page · raw message
PATCH 10/11 arm64: dts: renesas: initial Condor board device tree
Hi Sergei,
Quoted 8 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]>
Thanks for your patch!
Quoted 20 lines
arch/arm64/boot/dts/renesas/r8a77980-condor.dts new file +17
-0@@ -0,0 +1,46 @@ +// 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 = <0x0 0x48000000 0x0 0x38000000>;
According to the Samsung website, the LPDDR is a 16 Gib part, i.e. 2 GiB. Is there any specific reason you're limiting memory to 1 GiB?
arch/arm64/boot/dts/renesas/r8a77980-condor.dts line 28
Quoted 1 line
arch/arm64/boot/dts/renesas/r8a77980-condor.dts new file +1
-0+ };
With the above resolved:
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 11/11 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.
--- arch/arm64/boot/dts/renesas/r8a77980-condor.dts | 11 +++++++++++ 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/renesas/r8a77980-condor.dts +11 -0
@@ -15,6 +15,7 @@ aliases { serial0 = &scif0; + ethernet0 = &avb; }; chosen {
@@ -28,6 +29,16 @@ }; }; +&avb { + phy-handle = <&phy0>; + status = "okay"; + + phy0: ethernet-phy at 0 { + rxc-skew-ps = <1500>; + reg = <0>; + }; +}; + &extal_clk { clock-frequency = <16666666>; };