]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: renesas: r9a09g056n48-rzv2n-evk: Enable RIIC controllers
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Wed, 14 May 2025 10:15:24 +0000 (11:15 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 10 Jun 2025 07:58:34 +0000 (09:58 +0200)
Enable the RIIC controllers 0, 1, 2, 3, 6, 7, and 8 which are populated
on the RZ/V2N EVK.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/20250514101528.41663-7-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/r9a09g056n48-rzv2n-evk.dts

index 518426dd624c05d628c999d72a893f72e3a19a57..12de1c21fef5059667453deff96f1f8d3f72e812 100644 (file)
        aliases {
                ethernet0 = &eth0;
                ethernet1 = &eth1;
+               i2c0 = &i2c0;
+               i2c1 = &i2c1;
+               i2c2 = &i2c2;
+               i2c3 = &i2c3;
+               i2c6 = &i2c6;
+               i2c7 = &i2c7;
+               i2c8 = &i2c8;
                mmc1 = &sdhi1;
                serial0 = &scif;
        };
        status = "okay";
 };
 
+&i2c0 {
+       pinctrl-0 = <&i2c0_pins>;
+       pinctrl-names = "default";
+       clock-frequency = <400000>;
+       status = "okay";
+};
+
+&i2c1 {
+       pinctrl-0 = <&i2c1_pins>;
+       pinctrl-names = "default";
+       clock-frequency = <400000>;
+       status = "okay";
+};
+
+&i2c2 {
+       pinctrl-0 = <&i2c2_pins>;
+       pinctrl-names = "default";
+       clock-frequency = <400000>;
+       status = "okay";
+};
+
+&i2c3 {
+       pinctrl-0 = <&i2c3_pins>;
+       pinctrl-names = "default";
+       clock-frequency = <400000>;
+       status = "okay";
+};
+
+&i2c6 {
+       pinctrl-0 = <&i2c6_pins>;
+       pinctrl-names = "default";
+       clock-frequency = <400000>;
+       status = "okay";
+};
+
+&i2c7 {
+       pinctrl-0 = <&i2c7_pins>;
+       pinctrl-names = "default";
+       clock-frequency = <400000>;
+       status = "okay";
+};
+
+&i2c8 {
+       pinctrl-0 = <&i2c8_pins>;
+       pinctrl-names = "default";
+       clock-frequency = <400000>;
+       status = "okay";
+};
+
 &mdio0 {
        phy0: ethernet-phy@0 {
                compatible = "ethernet-phy-id0022.1640", "ethernet-phy-ieee802.3-c22";
                output-enable;
        };
 
+       i2c0_pins: i2c0 {
+               pinmux = <RZV2N_PORT_PINMUX(3, 0, 1)>, /* I2C0_SDA */
+                        <RZV2N_PORT_PINMUX(3, 1, 1)>; /* I2C0_SCL */
+       };
+
+       i2c1_pins: i2c1 {
+               pinmux = <RZV2N_PORT_PINMUX(3, 2, 1)>, /* I2C1_SDA */
+                        <RZV2N_PORT_PINMUX(3, 3, 1)>; /* I2C1_SCL */
+       };
+
+       i2c2_pins: i2c2 {
+               pinmux = <RZV2N_PORT_PINMUX(2, 0, 4)>, /* I2C2_SDA */
+                        <RZV2N_PORT_PINMUX(2, 1, 4)>; /* I2C2_SCL */
+       };
+
+       i2c3_pins: i2c3 {
+               pinmux = <RZV2N_PORT_PINMUX(3, 6, 1)>, /* I2C3_SDA */
+                        <RZV2N_PORT_PINMUX(3, 7, 1)>; /* I2C3_SCL */
+       };
+
+       i2c6_pins: i2c6 {
+               pinmux = <RZV2N_PORT_PINMUX(4, 4, 1)>, /* I2C6_SDA */
+                        <RZV2N_PORT_PINMUX(4, 5, 1)>; /* I2C6_SCL */
+               /* There are no pull-up resistors on the EVK, so enable the internal pull-up */
+               bias-pull-up;
+       };
+
+       i2c7_pins: i2c7 {
+               pinmux = <RZV2N_PORT_PINMUX(4, 6, 1)>, /* I2C7_SDA */
+                        <RZV2N_PORT_PINMUX(4, 7, 1)>; /* I2C7_SCL */
+               /* There are no pull-up resistors on the EVK, so enable the internal pull-up */
+               bias-pull-up;
+       };
+
+       i2c8_pins: i2c8 {
+               pinmux = <RZV2N_PORT_PINMUX(0, 6, 1)>, /* I2C8_SDA */
+                        <RZV2N_PORT_PINMUX(0, 7, 1)>; /* I2C8_SCL */
+       };
+
        scif_pins: scif {
                pins = "SCIF_TXD", "SCIF_RXD";
                renesas,output-impedance = <1>;