diff mbox series

arm64: dts: renesas: spider-cpu: add i2c0 bus

Message ID 20221220121959.45779-1-wsa+renesas@sang-engineering.com (mailing list archive)
State Superseded
Delegated to: Geert Uytterhoeven
Headers show
Series arm64: dts: renesas: spider-cpu: add i2c0 bus | expand

Commit Message

Wolfram Sang Dec. 20, 2022, 12:19 p.m. UTC
Add the bus and the GPIO expander connected to it. Based on BSP patches
by LUU HOAI and Phong Hoang.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 .../boot/dts/renesas/r8a779f0-spider-cpu.dtsi | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)

Comments

Geert Uytterhoeven Jan. 11, 2023, 4:02 p.m. UTC | #1
Hi Wolfram,

On Tue, Dec 20, 2022 at 1:37 PM Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
> Add the bus and the GPIO expander connected to it. Based on BSP patches
> by LUU HOAI and Phong Hoang.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

But perhaps Shimoda-san's patch is more useful?

[PATCH] arm64: dts: renesas: r8a779f0: spider-cpu: Enable UFS device
https://lore.kernel.org/all/20221222093252.3613915-1-yoshihiro.shimoda.uh@renesas.com

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
Wolfram Sang Jan. 11, 2023, 5:05 p.m. UTC | #2
> > Add the bus and the GPIO expander connected to it. Based on BSP patches
> > by LUU HOAI and Phong Hoang.
> >
> > Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> 
> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> 
> But perhaps Shimoda-san's patch is more useful?

If UFS is ready soon, then for sure.
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/renesas/r8a779f0-spider-cpu.dtsi b/arch/arm64/boot/dts/renesas/r8a779f0-spider-cpu.dtsi
index 045d70535519..48a8f80d5962 100644
--- a/arch/arm64/boot/dts/renesas/r8a779f0-spider-cpu.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a779f0-spider-cpu.dtsi
@@ -67,6 +67,21 @@  &hscif0 {
 	status = "okay";
 };
 
+&i2c0 {
+	pinctrl-0 = <&i2c0_pins>;
+	pinctrl-names = "default";
+
+	status = "okay";
+	clock-frequency = <400000>;
+
+	gpio@20 {
+		compatible = "ti,tca9554";
+		reg = <0x20>;
+		gpio-controller;
+		#gpio-cells = <2>;
+	};
+};
+
 &i2c4 {
 	pinctrl-0 = <&i2c4_pins>;
 	pinctrl-names = "default";
@@ -112,6 +127,11 @@  hscif0_pins: hscif0 {
 		function = "hscif0";
 	};
 
+	i2c0_pins: i2c0 {
+		groups = "i2c0";
+		function = "i2c0";
+	};
+
 	i2c4_pins: i2c4 {
 		groups = "i2c4";
 		function = "i2c4";