arm64: dts: renesas: rzg2ul-smarc: Enable i2c{0,1} and wm8978
authorBiju Das <biju.das.jz@bp.renesas.com>
Mon, 25 Apr 2022 17:05:24 +0000 (18:05 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 29 Apr 2022 07:41:59 +0000 (09:41 +0200)
Enable i2c{0,1} on RZ/G2UL SMARC EVK by deleting respective
entries from board dts and adding pincontrol entries to the
soc-pinctrl dtsi. Also enable wm8978 audio codec.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://lore.kernel.org/r/20220425170530.200921-8-biju.das.jz@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/r9a07g043u11-smarc.dts
arch/arm64/boot/dts/renesas/rzg2ul-smarc-pinfunction.dtsi
arch/arm64/boot/dts/renesas/rzg2ul-smarc.dtsi

index 08a0404..2bf4a3b 100644 (file)
        status = "disabled";
 };
 
-&i2c0 {
-       /delete-property/ pinctrl-0;
-       /delete-property/ pinctrl-names;
-       status = "disabled";
-};
-
-&i2c1 {
-       /delete-property/ pinctrl-0;
-       /delete-property/ pinctrl-names;
-       status = "disabled";
-
-       wm8978: codec@1a {
-               compatible = "wlf,wm8978";
-               #sound-dai-cells = <0>;
-               reg = <0x1a>;
-       };
-};
-
 &ohci0 {
        /delete-property/ pinctrl-0;
        /delete-property/ pinctrl-names;
index b515748..9410609 100644 (file)
        pinctrl-0 = <&sound_clk_pins>;
        pinctrl-names = "default";
 
+       i2c0_pins: i2c0 {
+               pins = "RIIC0_SDA", "RIIC0_SCL";
+               input-enable;
+       };
+
+       i2c1_pins: i2c1 {
+               pins = "RIIC1_SDA", "RIIC1_SCL";
+               input-enable;
+       };
+
        scif0_pins: scif0 {
                pinmux = <RZG2L_PORT_PINMUX(6, 4, 6)>, /* TxD */
                         <RZG2L_PORT_PINMUX(6, 3, 6)>; /* RxD */
index 056a773..a580b04 100644 (file)
 #include "rzg2ul-smarc-pinfunction.dtsi"
 #include "rz-smarc-common.dtsi"
 
+&i2c1 {
+       wm8978: codec@1a {
+               compatible = "wlf,wm8978";
+               #sound-dai-cells = <0>;
+               reg = <0x1a>;
+       };
+};
+
 &vccq_sdhi1 {
        gpios = <&pinctrl RZG2L_GPIO(6, 1) GPIO_ACTIVE_HIGH>;
 };