* [PATCH 0/5] spi: Add CSI support for Renesas RZ/V2M
@ 2023-06-21 14:09 Fabrizio Castro
2023-06-21 14:09 ` [PATCH 1/5] spi: dt-bindings: Add bindings for RZ/V2M CSI Fabrizio Castro
2023-06-21 14:09 ` [PATCH 4/5] arm64: dts: renesas: r9a09g011: Add CSI nodes Fabrizio Castro
0 siblings, 2 replies; 4+ messages in thread
From: Fabrizio Castro @ 2023-06-21 14:09 UTC (permalink / raw)
To: Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Catalin Marinas, Will Deacon, Michael Turquette, Stephen Boyd,
Philipp Zabel, Geert Uytterhoeven
Cc: Fabrizio Castro, Magnus Damm, Bjorn Andersson, Arnd Bergmann,
Konrad Dybcio, Neil Armstrong, Nícolas F. R. A. Prado,
Rafał Miłecki, linux-spi, devicetree, linux-kernel,
linux-renesas-soc, linux-arm-kernel, linux-clk, Chris Paterson,
Biju Das
Dear All,
This series is to add support for the Clocked Serial Interface (CSI)
IP found in the Renesas RZ/V2M SoC.
Thanks,
Fab
Fabrizio Castro (5):
spi: dt-bindings: Add bindings for RZ/V2M CSI
clk: renesas: r9a09g011: Add CSI related clocks
spi: Add support for Renesas CSI
arm64: dts: renesas: r9a09g011: Add CSI nodes
arm64: defconfig: Enable Renesas RZ/V2M CSI driver
.../bindings/spi/renesas,rzv2m-csi.yaml | 70 ++
arch/arm64/boot/dts/renesas/r9a09g011.dtsi | 28 +
arch/arm64/configs/defconfig | 1 +
drivers/clk/renesas/r9a09g011-cpg.c | 15 +
drivers/spi/Kconfig | 6 +
drivers/spi/Makefile | 1 +
drivers/spi/spi-rzv2m-csi.c | 667 ++++++++++++++++++
7 files changed, 788 insertions(+)
create mode 100644 Documentation/devicetree/bindings/spi/renesas,rzv2m-csi.yaml
create mode 100644 drivers/spi/spi-rzv2m-csi.c
--
2.34.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/5] spi: dt-bindings: Add bindings for RZ/V2M CSI
2023-06-21 14:09 [PATCH 0/5] spi: Add CSI support for Renesas RZ/V2M Fabrizio Castro
@ 2023-06-21 14:09 ` Fabrizio Castro
2023-06-21 18:08 ` Conor Dooley
2023-06-21 14:09 ` [PATCH 4/5] arm64: dts: renesas: r9a09g011: Add CSI nodes Fabrizio Castro
1 sibling, 1 reply; 4+ messages in thread
From: Fabrizio Castro @ 2023-06-21 14:09 UTC (permalink / raw)
To: Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Geert Uytterhoeven
Cc: Fabrizio Castro, Magnus Damm, linux-spi, devicetree, linux-kernel,
linux-renesas-soc, Chris Paterson, Biju Das
Add dt-bindings for the CSI IP found inside the RZ/V2M SoC.
Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
---
.../bindings/spi/renesas,rzv2m-csi.yaml | 70 +++++++++++++++++++
1 file changed, 70 insertions(+)
create mode 100644 Documentation/devicetree/bindings/spi/renesas,rzv2m-csi.yaml
diff --git a/Documentation/devicetree/bindings/spi/renesas,rzv2m-csi.yaml b/Documentation/devicetree/bindings/spi/renesas,rzv2m-csi.yaml
new file mode 100644
index 000000000000..e59183e53690
--- /dev/null
+++ b/Documentation/devicetree/bindings/spi/renesas,rzv2m-csi.yaml
@@ -0,0 +1,70 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/spi/renesas,rzv2m-csi.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Renesas RZ/V2M Clocked Serial Interface (CSI)
+
+maintainers:
+ - Fabrizio Castro <fabrizio.castro.jz@renesas.com>
+ - Geert Uytterhoeven <geert+renesas@glider.be>
+
+allOf:
+ - $ref: spi-controller.yaml#
+
+properties:
+ compatible:
+ const: renesas,rzv2m-csi
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ clocks:
+ items:
+ - description: The clock used to generate the output clock (CSICLK)
+ - description: Internal clock to access the registers (PCLK)
+
+ clock-names:
+ items:
+ - const: csiclk
+ - const: pclk
+
+ resets:
+ maxItems: 1
+
+ power-domains:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - clocks
+ - clock-names
+ - resets
+ - power-domains
+ - '#address-cells'
+ - '#size-cells'
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+ #include <dt-bindings/clock/r9a09g011-cpg.h>
+ csi4: spi@a4020200 {
+ compatible = "renesas,rzv2m-csi";
+ reg = <0xa4020200 0x80>;
+ interrupts = <GIC_SPI 230 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD R9A09G011_CSI4_CLK>,
+ <&cpg CPG_MOD R9A09G011_CPERI_GRPH_PCLK>;
+ clock-names = "csiclk", "pclk";
+ resets = <&cpg R9A09G011_CSI_GPH_PRESETN>;
+ power-domains = <&cpg>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 4/5] arm64: dts: renesas: r9a09g011: Add CSI nodes
2023-06-21 14:09 [PATCH 0/5] spi: Add CSI support for Renesas RZ/V2M Fabrizio Castro
2023-06-21 14:09 ` [PATCH 1/5] spi: dt-bindings: Add bindings for RZ/V2M CSI Fabrizio Castro
@ 2023-06-21 14:09 ` Fabrizio Castro
1 sibling, 0 replies; 4+ messages in thread
From: Fabrizio Castro @ 2023-06-21 14:09 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Geert Uytterhoeven
Cc: Fabrizio Castro, Magnus Damm, linux-renesas-soc, devicetree,
linux-kernel, Chris Paterson, Biju Das
The Renesas RZ/V2M comes with 6 Clocked Serial Interface (CSI)
IPs (CSI0, CSI1, CSI2, CSI3, CSI4, CSI5), but Linux is only
allowed access to CSI0 and CSI4.
This commit adds SoC specific device tree support for CSI0 and
CSI4.
Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
---
arch/arm64/boot/dts/renesas/r9a09g011.dtsi | 28 ++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r9a09g011.dtsi b/arch/arm64/boot/dts/renesas/r9a09g011.dtsi
index 46d67b200a66..33f2ecf42441 100644
--- a/arch/arm64/boot/dts/renesas/r9a09g011.dtsi
+++ b/arch/arm64/boot/dts/renesas/r9a09g011.dtsi
@@ -236,6 +236,34 @@ sys: system-controller@a3f03000 {
reg = <0 0xa3f03000 0 0x400>;
};
+ csi0: spi@a4020000 {
+ compatible = "renesas,rzv2m-csi";
+ reg = <0 0xa4020000 0 0x80>;
+ interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD R9A09G011_CSI0_CLK>,
+ <&cpg CPG_MOD R9A09G011_CPERI_GRPG_PCLK>;
+ clock-names = "csiclk", "pclk";
+ resets = <&cpg R9A09G011_CSI_GPG_PRESETN>;
+ power-domains = <&cpg>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
+ csi4: spi@a4020200 {
+ compatible = "renesas,rzv2m-csi";
+ reg = <0 0xa4020200 0 0x80>;
+ interrupts = <GIC_SPI 230 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD R9A09G011_CSI4_CLK>,
+ <&cpg CPG_MOD R9A09G011_CPERI_GRPH_PCLK>;
+ clock-names = "csiclk", "pclk";
+ resets = <&cpg R9A09G011_CSI_GPH_PRESETN>;
+ power-domains = <&cpg>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
i2c0: i2c@a4030000 {
#address-cells = <1>;
#size-cells = <0>;
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/5] spi: dt-bindings: Add bindings for RZ/V2M CSI
2023-06-21 14:09 ` [PATCH 1/5] spi: dt-bindings: Add bindings for RZ/V2M CSI Fabrizio Castro
@ 2023-06-21 18:08 ` Conor Dooley
0 siblings, 0 replies; 4+ messages in thread
From: Conor Dooley @ 2023-06-21 18:08 UTC (permalink / raw)
To: Fabrizio Castro
Cc: Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Geert Uytterhoeven, Magnus Damm, linux-spi, devicetree,
linux-kernel, linux-renesas-soc, Chris Paterson, Biju Das
[-- Attachment #1: Type: text/plain, Size: 218 bytes --]
On Wed, Jun 21, 2023 at 03:09:39PM +0100, Fabrizio Castro wrote:
> Add dt-bindings for the CSI IP found inside the RZ/V2M SoC.
Seems fine to me..
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Cheers,
Conor.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-06-21 18:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-21 14:09 [PATCH 0/5] spi: Add CSI support for Renesas RZ/V2M Fabrizio Castro
2023-06-21 14:09 ` [PATCH 1/5] spi: dt-bindings: Add bindings for RZ/V2M CSI Fabrizio Castro
2023-06-21 18:08 ` Conor Dooley
2023-06-21 14:09 ` [PATCH 4/5] arm64: dts: renesas: r9a09g011: Add CSI nodes Fabrizio Castro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox