* [PATCH 0/2] Add ADC support to Renesas RZ/V2L SoC
@ 2022-02-24 12:58 Lad Prabhakar
2022-02-24 12:58 ` [PATCH 1/2] dt-bindings: iio: adc: renesas,rzg2l-adc: Document " Lad Prabhakar
2022-02-24 12:58 ` [PATCH 2/2] arm64: dts: renesas: r9a07g054: Fillup the ADC stub node Lad Prabhakar
0 siblings, 2 replies; 6+ messages in thread
From: Lad Prabhakar @ 2022-02-24 12:58 UTC (permalink / raw)
To: Geert Uytterhoeven, Magnus Damm, linux-renesas-soc,
Jonathan Cameron, Lars-Peter Clausen, Rob Herring,
Krzysztof Kozlowski, linux-iio, devicetree
Cc: Lad Prabhakar, linux-kernel, Prabhakar, Biju Das
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/
20220224092114.25737-1-prabhakar.mahadev-lad.rj@bp.renesas.com/
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/2] dt-bindings: iio: adc: renesas,rzg2l-adc: Document RZ/V2L SoC
2022-02-24 12:58 [PATCH 0/2] Add ADC support to Renesas RZ/V2L SoC Lad Prabhakar
@ 2022-02-24 12:58 ` Lad Prabhakar
2022-02-25 9:25 ` Krzysztof Kozlowski
2022-02-28 14:20 ` Geert Uytterhoeven
2022-02-24 12:58 ` [PATCH 2/2] arm64: dts: renesas: r9a07g054: Fillup the ADC stub node Lad Prabhakar
1 sibling, 2 replies; 6+ messages in thread
From: Lad Prabhakar @ 2022-02-24 12:58 UTC (permalink / raw)
To: Geert Uytterhoeven, Magnus Damm, linux-renesas-soc,
Jonathan Cameron, Lars-Peter Clausen, Rob Herring,
Krzysztof Kozlowski, linux-iio, devicetree
Cc: Lad Prabhakar, linux-kernel, Prabhakar, Biju Das
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 <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
---
.../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 <prabhakar.mahadev-lad.rj@bp.renesas.com>
@@ -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
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2] arm64: dts: renesas: r9a07g054: Fillup the ADC stub node
2022-02-24 12:58 [PATCH 0/2] Add ADC support to Renesas RZ/V2L SoC Lad Prabhakar
2022-02-24 12:58 ` [PATCH 1/2] dt-bindings: iio: adc: renesas,rzg2l-adc: Document " Lad Prabhakar
@ 2022-02-24 12:58 ` Lad Prabhakar
2022-02-28 14:23 ` Geert Uytterhoeven
1 sibling, 1 reply; 6+ messages in thread
From: Lad Prabhakar @ 2022-02-24 12:58 UTC (permalink / raw)
To: Geert Uytterhoeven, Magnus Damm, linux-renesas-soc,
Jonathan Cameron, Lars-Peter Clausen, Rob Herring,
Krzysztof Kozlowski, linux-iio, devicetree
Cc: Lad Prabhakar, linux-kernel, Prabhakar, Biju Das
Fillup the ADC stub node in RZ/V2L (R9A07G054) SoC DTSI.
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
---
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
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] dt-bindings: iio: adc: renesas,rzg2l-adc: Document RZ/V2L SoC
2022-02-24 12:58 ` [PATCH 1/2] dt-bindings: iio: adc: renesas,rzg2l-adc: Document " Lad Prabhakar
@ 2022-02-25 9:25 ` Krzysztof Kozlowski
2022-02-28 14:20 ` Geert Uytterhoeven
1 sibling, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2022-02-25 9:25 UTC (permalink / raw)
To: Lad Prabhakar, Geert Uytterhoeven, Magnus Damm, linux-renesas-soc,
Jonathan Cameron, Lars-Peter Clausen, Rob Herring, linux-iio,
devicetree
Cc: linux-kernel, Prabhakar, Biju Das
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 <prabhakar.mahadev-lad.rj@bp.renesas.com>
> Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
> ---
> .../devicetree/bindings/iio/adc/renesas,rzg2l-adc.yaml | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] dt-bindings: iio: adc: renesas,rzg2l-adc: Document RZ/V2L SoC
2022-02-24 12:58 ` [PATCH 1/2] dt-bindings: iio: adc: renesas,rzg2l-adc: Document " Lad Prabhakar
2022-02-25 9:25 ` Krzysztof Kozlowski
@ 2022-02-28 14:20 ` Geert Uytterhoeven
1 sibling, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2022-02-28 14:20 UTC (permalink / raw)
To: Lad Prabhakar
Cc: Geert Uytterhoeven, Magnus Damm, Linux-Renesas, Jonathan Cameron,
Lars-Peter Clausen, Rob Herring, Krzysztof Kozlowski, linux-iio,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Linux Kernel Mailing List, Prabhakar, Biju Das
On Thu, Feb 24, 2022 at 1:59 PM Lad Prabhakar
<prabhakar.mahadev-lad.rj@bp.renesas.com> 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 <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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] arm64: dts: renesas: r9a07g054: Fillup the ADC stub node
2022-02-24 12:58 ` [PATCH 2/2] arm64: dts: renesas: r9a07g054: Fillup the ADC stub node Lad Prabhakar
@ 2022-02-28 14:23 ` Geert Uytterhoeven
0 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2022-02-28 14:23 UTC (permalink / raw)
To: Lad Prabhakar
Cc: Geert Uytterhoeven, Magnus Damm, Linux-Renesas, Jonathan Cameron,
Lars-Peter Clausen, Rob Herring, Krzysztof Kozlowski, linux-iio,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Linux Kernel Mailing List, Prabhakar, Biju Das
On Thu, Feb 24, 2022 at 1:59 PM Lad Prabhakar
<prabhakar.mahadev-lad.rj@bp.renesas.com> wrote:
> Fillup the ADC stub node in RZ/V2L (R9A07G054) 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>
i.e. will queue in renesas-devel for v5.19.
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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-02-28 14:23 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-24 12:58 [PATCH 0/2] Add ADC support to Renesas RZ/V2L SoC Lad Prabhakar
2022-02-24 12:58 ` [PATCH 1/2] dt-bindings: iio: adc: renesas,rzg2l-adc: Document " Lad Prabhakar
2022-02-25 9:25 ` Krzysztof Kozlowski
2022-02-28 14:20 ` Geert Uytterhoeven
2022-02-24 12:58 ` [PATCH 2/2] arm64: dts: renesas: r9a07g054: Fillup the ADC stub node Lad Prabhakar
2022-02-28 14:23 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).