2022-02-24 14:55:55

by Prabhakar Mahadev Lad

[permalink] [raw]
Subject: [PATCH 0/2] Add ADC support to Renesas RZ/V2L SoC

Hi All,

This patch series adds ADC support to Renesas RZ/V2L SoC.

Note, as the RZ/V2L SMARC EVK uses the common dts by default the
adc will be enabled on the SMARC EVK. Right now the RZG2L_ADC config
is only enabled for ARCH_R9A07G044 SoC once patch [0] hits upstream
the Kconfig dependency will be changed to ARCH_RZG2L so that it can
be enabled on all the compatible SoC's.

[0] https://patchwork.kernel.org/project/linux-renesas-soc/patch/
[email protected]/

Cheers,
Prabhakar

Lad Prabhakar (2):
dt-bindings: iio: adc: renesas,rzg2l-adc: Document RZ/V2L SoC
arm64: dts: renesas: r9a07g054: Fillup the ADC stub node

.../bindings/iio/adc/renesas,rzg2l-adc.yaml | 3 +-
arch/arm64/boot/dts/renesas/r9a07g054.dtsi | 39 ++++++++++++++++++-
2 files changed, 40 insertions(+), 2 deletions(-)

--
2.17.1


2022-02-24 15:26:03

by Prabhakar Mahadev Lad

[permalink] [raw]
Subject: [PATCH 2/2] arm64: dts: renesas: r9a07g054: Fillup the ADC stub node

Fillup the ADC stub node in RZ/V2L (R9A07G054) SoC DTSI.

Signed-off-by: Lad Prabhakar <[email protected]>
Reviewed-by: Biju Das <[email protected]>
---
arch/arm64/boot/dts/renesas/r9a07g054.dtsi | 39 +++++++++++++++++++++-
1 file changed, 38 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/renesas/r9a07g054.dtsi b/arch/arm64/boot/dts/renesas/r9a07g054.dtsi
index 5d39e765c291..3ddf0f24071c 100644
--- a/arch/arm64/boot/dts/renesas/r9a07g054.dtsi
+++ b/arch/arm64/boot/dts/renesas/r9a07g054.dtsi
@@ -260,8 +260,45 @@
};

adc: adc@10059000 {
+ compatible = "renesas,r9a07g054-adc", "renesas,rzg2l-adc";
reg = <0 0x10059000 0 0x400>;
- /* place holder */
+ interrupts = <GIC_SPI 347 IRQ_TYPE_EDGE_RISING>;
+ clocks = <&cpg CPG_MOD R9A07G054_ADC_ADCLK>,
+ <&cpg CPG_MOD R9A07G054_ADC_PCLK>;
+ clock-names = "adclk", "pclk";
+ resets = <&cpg R9A07G054_ADC_PRESETN>,
+ <&cpg R9A07G054_ADC_ADRST_N>;
+ reset-names = "presetn", "adrst-n";
+ power-domains = <&cpg>;
+ status = "disabled";
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ channel@0 {
+ reg = <0>;
+ };
+ channel@1 {
+ reg = <1>;
+ };
+ channel@2 {
+ reg = <2>;
+ };
+ channel@3 {
+ reg = <3>;
+ };
+ channel@4 {
+ reg = <4>;
+ };
+ channel@5 {
+ reg = <5>;
+ };
+ channel@6 {
+ reg = <6>;
+ };
+ channel@7 {
+ reg = <7>;
+ };
};

sbc: spi@10060000 {
--
2.17.1

2022-02-24 16:15:02

by Prabhakar Mahadev Lad

[permalink] [raw]
Subject: [PATCH 1/2] dt-bindings: iio: adc: renesas,rzg2l-adc: Document RZ/V2L SoC

Document RZ/V2L ADC bindings. RZ/V2L ADC block is identical to one found
on the RZ/G2L SoC. No driver changes are required as generic compatible
string "renesas,rzg2l-adc" will be used as a fallback.

Signed-off-by: Lad Prabhakar <[email protected]>
Reviewed-by: Biju Das <[email protected]>
---
.../devicetree/bindings/iio/adc/renesas,rzg2l-adc.yaml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/iio/adc/renesas,rzg2l-adc.yaml b/Documentation/devicetree/bindings/iio/adc/renesas,rzg2l-adc.yaml
index c80201d6a716..d6c1b9bd5945 100644
--- a/Documentation/devicetree/bindings/iio/adc/renesas,rzg2l-adc.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/renesas,rzg2l-adc.yaml
@@ -4,7 +4,7 @@
$id: http://devicetree.org/schemas/iio/adc/renesas,rzg2l-adc.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

-title: Renesas RZ/G2L ADC
+title: Renesas RZ/{G2L,V2L} ADC

maintainers:
- Lad Prabhakar <[email protected]>
@@ -20,6 +20,7 @@ properties:
items:
- enum:
- renesas,r9a07g044-adc # RZ/G2{L,LC}
+ - renesas,r9a07g054-adc # RZ/V2L
- const: renesas,rzg2l-adc

reg:
--
2.17.1

2022-02-26 01:56:02

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: iio: adc: renesas,rzg2l-adc: Document RZ/V2L SoC

On 24/02/2022 13:58, Lad Prabhakar wrote:
> Document RZ/V2L ADC bindings. RZ/V2L ADC block is identical to one found
> on the RZ/G2L SoC. No driver changes are required as generic compatible
> string "renesas,rzg2l-adc" will be used as a fallback.
>
> Signed-off-by: Lad Prabhakar <[email protected]>
> Reviewed-by: Biju Das <[email protected]>
> ---
> .../devicetree/bindings/iio/adc/renesas,rzg2l-adc.yaml | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>


Acked-by: Krzysztof Kozlowski <[email protected]>


Best regards,
Krzysztof

2022-02-28 14:51:23

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: iio: adc: renesas,rzg2l-adc: Document RZ/V2L SoC

On Thu, Feb 24, 2022 at 1:59 PM Lad Prabhakar
<[email protected]> wrote:
> Document RZ/V2L ADC bindings. RZ/V2L ADC block is identical to one found
> on the RZ/G2L SoC. No driver changes are required as generic compatible
> string "renesas,rzg2l-adc" will be used as a fallback.
>
> Signed-off-by: Lad Prabhakar <[email protected]>
> Reviewed-by: Biju Das <[email protected]>

Reviewed-by: Geert Uytterhoeven <[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

2022-02-28 16:11:27

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: [PATCH 2/2] arm64: dts: renesas: r9a07g054: Fillup the ADC stub node

On Thu, Feb 24, 2022 at 1:59 PM Lad Prabhakar
<[email protected]> wrote:
> Fillup the ADC stub node in RZ/V2L (R9A07G054) SoC DTSI.
>
> Signed-off-by: Lad Prabhakar <[email protected]>
> Reviewed-by: Biju Das <[email protected]>

Reviewed-by: Geert Uytterhoeven <[email protected]>
i.e. will queue in renesas-devel for v5.19.

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