Hi All,
This patch series adds support for RZ/G2{L,LC} SoC
identification.
SoC identification register is part of SYSC block and
currently no driver is added for SYSC block so just the
basic properties are added in binding documentation (and will
updated with the required properties once the dirver is in
place) and this node is used in renesas-soc.c for SoC
identification.
This patches series is dependent on [1].
[1] https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=493701
Cheers,
Prabhakar
Lad Prabhakar (3):
dt-bindings: power: renesas,rzg2l-sysc: Add DT binding documentation
for SYSC controller
soc: renesas: Add support to read LSI DEVID register of RZ/G2{L,LC}
SoC's
arm64: dts: renesas: r9a07g044: Add SYSC node to RZ/G2L SoC DTSI
.../bindings/power/renesas,rzg2l-sysc.yaml | 50 +++++++++++++++++++
arch/arm64/boot/dts/renesas/r9a07g044.dtsi | 10 ++++
drivers/soc/renesas/renesas-soc.c | 34 ++++++++++++-
3 files changed, 93 insertions(+), 1 deletion(-)
create mode 100644 Documentation/devicetree/bindings/power/renesas,rzg2l-sysc.yaml
--
2.17.1
@@ -0,0 +1,50 @@+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)+%YAML1.2+---+$id:"http://devicetree.org/schemas/power/renesas,rzg2l-sysc.yaml#"+$schema:"http://devicetree.org/meta-schemas/core.yaml#"++title:Renesas RZ/G2L System Controller (SYSC)++maintainers:+-Geert Uytterhoeven <geert+renesas@glider.be>++description:+The RZ/G2L System Controller (SYSC) performs system control of the LSI and+supports following functions,+-External terminal state capture function+-34-bit address space access function+-Low power consumption control+-WDT stop control++properties:+compatible:+enum:+-renesas,r9a07g044-sysc# RZ/G2{L,LC}++reg:+maxItems:1++interrupts:+minItems:4+maxItems:4
For multiple interrupts, you may want to add descriptions, and
interrupt-names.
The reset looks good to me, so
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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
Add support for reading the LSI DEVID register which is present in
SYSC block of RZ/G2{L,LC} SoC's.
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
---
drivers/soc/renesas/renesas-soc.c | 34 ++++++++++++++++++++++++++++++-
1 file changed, 33 insertions(+), 1 deletion(-)
Hi Prabhakar,
On Fri, Jun 4, 2021 at 8:09 PM Lad Prabhakar
[off-list ref] wrote:
Add support for reading the LSI DEVID register which is present in
SYSC block of RZ/G2{L,LC} SoC's.
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Please don't add hardcoded register addresses for new SoCs (i.e. drop
".reg"). The "renesas,r9a07g044-sysc" is always present.
And if it were missing, the hardcoded fallback would lead into the
classic CCCR/PRR scheme, which is not correct for RZ/G2L...
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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
Hi Geert,
Thank you for the review.
On Wed, Jun 9, 2021 at 8:27 AM Geert Uytterhoeven [off-list ref] wrote:
Hi Prabhakar,
On Fri, Jun 4, 2021 at 8:09 PM Lad Prabhakar
[off-list ref] wrote:
quoted
Add support for reading the LSI DEVID register which is present in
SYSC block of RZ/G2{L,LC} SoC's.
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Please don't add hardcoded register addresses for new SoCs (i.e. drop
".reg"). The "renesas,r9a07g044-sysc" is always present.
And if it were missing, the hardcoded fallback would lead into the
classic CCCR/PRR scheme, which is not correct for RZ/G2L...
I wanted to avoid iomap for the entire sysc block for just a single register.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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
Hi Prabhakar,
On Wed, Jun 9, 2021 at 5:50 PM Lad, Prabhakar
[off-list ref] wrote:
On Wed, Jun 9, 2021 at 8:27 AM Geert Uytterhoeven [off-list ref] wrote:
quoted
On Fri, Jun 4, 2021 at 8:09 PM Lad Prabhakar
[off-list ref] wrote:
quoted
Add support for reading the LSI DEVID register which is present in
SYSC block of RZ/G2{L,LC} SoC's.
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Please don't add hardcoded register addresses for new SoCs (i.e. drop
".reg"). The "renesas,r9a07g044-sysc" is always present.
And if it were missing, the hardcoded fallback would lead into the
classic CCCR/PRR scheme, which is not correct for RZ/G2L...
I wanted to avoid iomap for the entire sysc block for just a single register.
The mapping will be rounded up to PAGE_SIZE anyway
(I know, SYSC is 64 KiB, hence larger than the typical page size).
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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
On Fri, Jun 4, 2021 at 8:09 PM Lad Prabhakar
[off-list ref] wrote:
Add SYSC node to RZ/G2L (R9A07G044) SoC DTSI
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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