* [PATCH 0/2] arm64: dts: renesas: r8a779h0/gray-hawk-single: Add I2C and EEPROM support
@ 2024-02-01 14:14 Geert Uytterhoeven
2024-02-01 14:14 ` [PATCH 1/2] arm64: dts: renesas: r8a779h0: Add I2C nodes Geert Uytterhoeven
2024-02-01 14:14 ` [PATCH 2/2] arm64: dts: renesas: gray-hawk-single: Add I2C0 and EEPROMs Geert Uytterhoeven
0 siblings, 2 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2024-02-01 14:14 UTC (permalink / raw)
To: linux-renesas-soc; +Cc: linux-arm-kernel, Geert Uytterhoeven
Hi all,
This patch series adds I2C support for the Renesas R-Car V4M (R8A779H0)
Soc, and I2C0 and board ID EEPROM support for the Gray Hawk Single
development board.
I intend to queue this in renesas-devel for v6.9.
Thanks for your comments!
Geert Uytterhoeven (1):
arm64: dts: renesas: gray-hawk-single: Add I2C0 and EEPROMs
Hai Pham (1):
arm64: dts: renesas: r8a779h0: Add I2C nodes
.../dts/renesas/r8a779h0-gray-hawk-single.dts | 41 ++++++++++++++
arch/arm64/boot/dts/renesas/r8a779h0.dtsi | 56 +++++++++++++++++++
2 files changed, 97 insertions(+)
--
2.34.1
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
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 6+ messages in thread* [PATCH 1/2] arm64: dts: renesas: r8a779h0: Add I2C nodes 2024-02-01 14:14 [PATCH 0/2] arm64: dts: renesas: r8a779h0/gray-hawk-single: Add I2C and EEPROM support Geert Uytterhoeven @ 2024-02-01 14:14 ` Geert Uytterhoeven 2024-02-03 17:52 ` Wolfram Sang 2024-02-01 14:14 ` [PATCH 2/2] arm64: dts: renesas: gray-hawk-single: Add I2C0 and EEPROMs Geert Uytterhoeven 1 sibling, 1 reply; 6+ messages in thread From: Geert Uytterhoeven @ 2024-02-01 14:14 UTC (permalink / raw) To: linux-renesas-soc; +Cc: linux-arm-kernel, Hai Pham, Geert Uytterhoeven From: Hai Pham <hai.pham.ud@renesas.com> Add device nodes for the I2C Bus Interfaces on the Renesas R-Car V4M (R8A779H0) SoC. Signed-off-by: Hai Pham <hai.pham.ud@renesas.com> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> --- Changes compared to the BSP: - Incorporate i2c2 fix from "arm64: dts: renesas: r8a779h0: Sort IPMMU driver nodes". --- arch/arm64/boot/dts/renesas/r8a779h0.dtsi | 56 +++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a779h0.dtsi b/arch/arm64/boot/dts/renesas/r8a779h0.dtsi index f5a688e300d29a73..8121aadaf6999429 100644 --- a/arch/arm64/boot/dts/renesas/r8a779h0.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a779h0.dtsi @@ -99,6 +99,62 @@ sysc: system-controller@e6180000 { #power-domain-cells = <1>; }; + i2c0: i2c@e6500000 { + compatible = "renesas,i2c-r8a779h0", + "renesas,rcar-gen4-i2c"; + reg = <0 0xe6500000 0 0x40>; + interrupts = <GIC_SPI 610 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 518>; + power-domains = <&sysc R8A779H0_PD_ALWAYS_ON>; + resets = <&cpg 518>; + i2c-scl-internal-delay-ns = <110>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c1: i2c@e6508000 { + compatible = "renesas,i2c-r8a779h0", + "renesas,rcar-gen4-i2c"; + reg = <0 0xe6508000 0 0x40>; + interrupts = <GIC_SPI 611 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 519>; + power-domains = <&sysc R8A779H0_PD_ALWAYS_ON>; + resets = <&cpg 519>; + i2c-scl-internal-delay-ns = <110>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c2: i2c@e6510000 { + compatible = "renesas,i2c-r8a779h0", + "renesas,rcar-gen4-i2c"; + reg = <0 0xe6510000 0 0x40>; + interrupts = <GIC_SPI 612 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 520>; + power-domains = <&sysc R8A779H0_PD_ALWAYS_ON>; + resets = <&cpg 520>; + i2c-scl-internal-delay-ns = <110>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c3: i2c@e66d0000 { + compatible = "renesas,i2c-r8a779h0", + "renesas,rcar-gen4-i2c"; + reg = <0 0xe66d0000 0 0x40>; + interrupts = <GIC_SPI 613 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 521>; + power-domains = <&sysc R8A779H0_PD_ALWAYS_ON>; + resets = <&cpg 521>; + i2c-scl-internal-delay-ns = <110>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + hscif0: serial@e6540000 { compatible = "renesas,hscif-r8a779h0", "renesas,rcar-gen4-hscif", "renesas,hscif"; -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] arm64: dts: renesas: r8a779h0: Add I2C nodes 2024-02-01 14:14 ` [PATCH 1/2] arm64: dts: renesas: r8a779h0: Add I2C nodes Geert Uytterhoeven @ 2024-02-03 17:52 ` Wolfram Sang 2024-02-05 8:17 ` Geert Uytterhoeven 0 siblings, 1 reply; 6+ messages in thread From: Wolfram Sang @ 2024-02-03 17:52 UTC (permalink / raw) To: Geert Uytterhoeven; +Cc: linux-renesas-soc, linux-arm-kernel, Hai Pham [-- Attachment #1.1: Type: text/plain, Size: 527 bytes --] On Thu, Feb 01, 2024 at 03:14:33PM +0100, Geert Uytterhoeven wrote: > From: Hai Pham <hai.pham.ud@renesas.com> > > Add device nodes for the I2C Bus Interfaces on the Renesas R-Car V4M > (R8A779H0) SoC. > > Signed-off-by: Hai Pham <hai.pham.ud@renesas.com> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> So far so good... Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> I assume DMA nodes are not there yet because you use these nodes for testing DMA when you enable the DMACs? [-- Attachment #1.2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] [-- Attachment #2: Type: text/plain, Size: 176 bytes --] _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] arm64: dts: renesas: r8a779h0: Add I2C nodes 2024-02-03 17:52 ` Wolfram Sang @ 2024-02-05 8:17 ` Geert Uytterhoeven 0 siblings, 0 replies; 6+ messages in thread From: Geert Uytterhoeven @ 2024-02-05 8:17 UTC (permalink / raw) To: Wolfram Sang; +Cc: linux-renesas-soc, linux-arm-kernel, Hai Pham Hi Wolfram, On Sat, Feb 3, 2024 at 6:52 PM Wolfram Sang <wsa@kernel.org> wrote: > On Thu, Feb 01, 2024 at 03:14:33PM +0100, Geert Uytterhoeven wrote: > > From: Hai Pham <hai.pham.ud@renesas.com> > > > > Add device nodes for the I2C Bus Interfaces on the Renesas R-Car V4M > > (R8A779H0) SoC. > > > > Signed-off-by: Hai Pham <hai.pham.ud@renesas.com> > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> > > So far so good... > > Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Thanks! > I assume DMA nodes are not there yet because you use these nodes for > testing DMA when you enable the DMACs? Indeed, DMAC support is not yet included. 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 2/2] arm64: dts: renesas: gray-hawk-single: Add I2C0 and EEPROMs 2024-02-01 14:14 [PATCH 0/2] arm64: dts: renesas: r8a779h0/gray-hawk-single: Add I2C and EEPROM support Geert Uytterhoeven 2024-02-01 14:14 ` [PATCH 1/2] arm64: dts: renesas: r8a779h0: Add I2C nodes Geert Uytterhoeven @ 2024-02-01 14:14 ` Geert Uytterhoeven 2024-02-03 17:53 ` Wolfram Sang 1 sibling, 1 reply; 6+ messages in thread From: Geert Uytterhoeven @ 2024-02-01 14:14 UTC (permalink / raw) To: linux-renesas-soc; +Cc: linux-arm-kernel, Geert Uytterhoeven Enable the I2C0 bus on the Gray Hawk Single board, and describe the I2C EEPROMs present. Based on patches for Gray Hawk in the BSP by Hai Pham. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> --- The Gray Hawk Single documentation does not mention the purpose of the I2C EEPROMs, but the schematics label the last two as "Board ID". The labels match the corresponding EEPROMs on the White Hawk CPU and BreakOut board stack, from which the Gray Hawk Single board is derived. --- .../dts/renesas/r8a779h0-gray-hawk-single.dts | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts b/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts index 1c84fe7171d3fd85..1bee27b2284d2eee 100644 --- a/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts +++ b/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts @@ -50,6 +50,42 @@ &hscif0 { status = "okay"; }; +&i2c0 { + pinctrl-0 = <&i2c0_pins>; + pinctrl-names = "default"; + + status = "okay"; + clock-frequency = <400000>; + + eeprom@50 { + compatible = "rohm,br24g01", "atmel,24c01"; + label = "cpu-board"; + reg = <0x50>; + pagesize = <8>; + }; + + eeprom@51 { + compatible = "rohm,br24g01", "atmel,24c01"; + label = "breakout-board"; + reg = <0x51>; + pagesize = <8>; + }; + + eeprom@52 { + compatible = "rohm,br24g01", "atmel,24c01"; + label = "csi-dsi-sub-board-id"; + reg = <0x52>; + pagesize = <8>; + }; + + eeprom@53 { + compatible = "rohm,br24g01", "atmel,24c01"; + label = "ethernet-sub-board-id"; + reg = <0x53>; + pagesize = <8>; + }; +}; + &pfc { pinctrl-0 = <&scif_clk_pins>; pinctrl-names = "default"; @@ -59,6 +95,11 @@ hscif0_pins: hscif0 { function = "hscif0"; }; + i2c0_pins: i2c0 { + groups = "i2c0"; + function = "i2c0"; + }; + scif_clk_pins: scif_clk { groups = "scif_clk"; function = "scif_clk"; -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] arm64: dts: renesas: gray-hawk-single: Add I2C0 and EEPROMs 2024-02-01 14:14 ` [PATCH 2/2] arm64: dts: renesas: gray-hawk-single: Add I2C0 and EEPROMs Geert Uytterhoeven @ 2024-02-03 17:53 ` Wolfram Sang 0 siblings, 0 replies; 6+ messages in thread From: Wolfram Sang @ 2024-02-03 17:53 UTC (permalink / raw) To: Geert Uytterhoeven; +Cc: linux-renesas-soc, linux-arm-kernel [-- Attachment #1.1: Type: text/plain, Size: 359 bytes --] On Thu, Feb 01, 2024 at 03:14:34PM +0100, Geert Uytterhoeven wrote: > Enable the I2C0 bus on the Gray Hawk Single board, and describe the I2C > EEPROMs present. > > Based on patches for Gray Hawk in the BSP by Hai Pham. > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> [-- Attachment #1.2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] [-- Attachment #2: Type: text/plain, Size: 176 bytes --] _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-02-05 8:18 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-02-01 14:14 [PATCH 0/2] arm64: dts: renesas: r8a779h0/gray-hawk-single: Add I2C and EEPROM support Geert Uytterhoeven 2024-02-01 14:14 ` [PATCH 1/2] arm64: dts: renesas: r8a779h0: Add I2C nodes Geert Uytterhoeven 2024-02-03 17:52 ` Wolfram Sang 2024-02-05 8:17 ` Geert Uytterhoeven 2024-02-01 14:14 ` [PATCH 2/2] arm64: dts: renesas: gray-hawk-single: Add I2C0 and EEPROMs Geert Uytterhoeven 2024-02-03 17:53 ` Wolfram Sang
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox