arm64: dts: renesas: rzg2l-smarc: Link DSI with ADV7535
authorBiju Das <biju.das.jz@bp.renesas.com>
Tue, 11 Apr 2023 10:03:45 +0000 (11:03 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 8 May 2023 07:16:46 +0000 (09:16 +0200)
Enable DSI and ADV7535 and link DSI with ADV7535 on RZ/G2L SMARC EVK.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230411100346.299768-8-biju.das.jz@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi

index e180a95..2a158a9 100644 (file)
                serial1 = &scif2;
                i2c3 = &i2c3;
        };
+
+       osc1: cec-clock {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency = <12000000>;
+       };
+
+       hdmi-out {
+               compatible = "hdmi-connector";
+               type = "d";
+
+               port {
+                       hdmi_con_out: endpoint {
+                               remote-endpoint = <&adv7535_out>;
+                       };
+               };
+       };
 };
 
 &cpu_dai {
        sound-dai = <&ssi0>;
 };
 
+&dsi {
+       status = "okay";
+
+       ports {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               port@0 {
+                       reg = <0>;
+                       dsi0_in: endpoint {
+                       };
+               };
+
+               port@1 {
+                       reg = <1>;
+                       dsi0_out: endpoint {
+                               data-lanes = <1 2 3 4>;
+                               remote-endpoint = <&adv7535_in>;
+                       };
+               };
+       };
+};
+
+&i2c1 {
+       adv7535: hdmi@3d {
+               compatible = "adi,adv7535";
+               reg = <0x3d>;
+
+               interrupt-parent = <&pinctrl>;
+               interrupts = <RZG2L_GPIO(2, 1) IRQ_TYPE_EDGE_FALLING>;
+               clocks = <&osc1>;
+               clock-names = "cec";
+               avdd-supply = <&reg_1p8v>;
+               dvdd-supply = <&reg_1p8v>;
+               pvdd-supply = <&reg_1p8v>;
+               a2vdd-supply = <&reg_1p8v>;
+               v3p3-supply = <&reg_3p3v>;
+               v1p2-supply = <&reg_1p8v>;
+
+               adi,dsi-lanes = <4>;
+
+               ports {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       port@0 {
+                               reg = <0>;
+                               adv7535_in: endpoint {
+                                       remote-endpoint = <&dsi0_out>;
+                               };
+                       };
+
+                       port@1 {
+                               reg = <1>;
+                               adv7535_out: endpoint {
+                                       remote-endpoint = <&hdmi_con_out>;
+                               };
+                       };
+               };
+       };
+};
+
 &i2c3 {
        pinctrl-0 = <&i2c3_pins>;
        pinctrl-names = "default";