arm64: dts: renesas: r8a779h0/gray-hawk-single: Add I2C and EEPROM support
Subsystems (2)
Geert Uytterhoeven
maintainercover arm64: dts: renesas: r8a779h0/gray-hawk-single: Add I2C and EEPROM support
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(+)
Signature · 12 lines
2.34.1
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 TorvaldsGeert Uytterhoeven
maintainerPATCH 1/2 arm64: dts: renesas: r8a779h0: Add I2C nodes
From: Hai Pham <[email protected]>
Add device nodes for the I2C Bus Interfaces on the Renesas R-Car V4M (R8A779H0) SoC.
---
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(+)
arch/arm64/boot/dts/renesas/r8a779h0.dtsi +56 -0
@@ -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";
Signature · 1 line
2.34.1
Geert Uytterhoeven
maintainerPATCH 2/2 arm64: dts: renesas: gray-hawk-single: Add I2C0 and EEPROMs
In reply to Geert UytterhoevenEnable 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.
---
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(+)
arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts +41 -0
@@ -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";
Signature · 1 line
2.34.1
Re: [PATCH 1/2] arm64: dts: renesas: r8a779h0: Add I2C nodes
In reply to Geert UytterhoevenQuoted 7 lines · Geert Uytterhoeven
From: Hai Pham <[email protected]>
Add device nodes for the I2C Bus Interfaces on the Renesas R-Car V4M (R8A779H0) SoC.
Signed-off-by Hai Pham <[email protected]>Signed-off-by Geert Uytterhoeven <[email protected]>
So far so good...
I assume DMA nodes are not there yet because you use these nodes for testing DMA when you enable the DMACs?
Re: [PATCH 2/2] arm64: dts: renesas: gray-hawk-single: Add I2C0 and EEPROMs
In reply to Geert UytterhoevenQuoted 6 lines · 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 <[email protected]>
Re: [PATCH 1/2] arm64: dts: renesas: r8a779h0: Add I2C nodes
In reply to Wolfram SangHi Wolfram,
Quoted 6 lines · Wolfram Sang
Quoted 5 lines · Geert Uytterhoeven
From: Hai Pham <[email protected]>
Add device nodes for the I2C Bus Interfaces on the Renesas R-Car V4M (R8A779H0) SoC.
Quoted 6 lines
Quoted 2 lines
Signed-off-by Hai Pham <[email protected]>Signed-off-by Geert Uytterhoeven <[email protected]>So far so good...
Reviewed-by Wolfram Sang <[email protected]>
Thanks!
Quoted 2 lines
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
Signature · 5 lines
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