arm64: dts: renesas: eagle: Enable MAX9286
authorKieran Bingham <kieran.bingham@ideasonboard.com>
Thu, 16 Dec 2021 16:34:37 +0000 (17:34 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 24 Jan 2022 09:09:13 +0000 (10:09 +0100)
Enable the MAX9286 GMSL deserializer on the Eagle-V3M board.

Connected cameras should be defined in a device-tree overlay or included
after these definitions.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Link: https://lore.kernel.org/r/20211216163439.139579-6-jacopo+renesas@jmondi.org
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/r8a77970-eagle.dts

index b579d31..49d1a92 100644 (file)
        };
 };
 
+&csi40 {
+       status = "okay";
+
+       ports {
+               port@0 {
+                       csi40_in: endpoint {
+                               clock-lanes = <0>;
+                               data-lanes = <1 2 3 4>;
+                               remote-endpoint = <&max9286_out0>;
+                       };
+               };
+       };
+};
+
 &du {
        clocks = <&cpg CPG_MOD 724>, <&x1_clk>;
        clock-names = "du.0", "dclkin.0";
        };
 };
 
+&i2c3 {
+       pinctrl-0 = <&i2c3_pins>;
+       pinctrl-names = "default";
+
+       status = "okay";
+       clock-frequency = <400000>;
+
+       gmsl0: gmsl-deserializer@48 {
+               compatible = "maxim,max9286";
+               reg = <0x48>;
+
+               maxim,gpio-poc = <0 GPIO_ACTIVE_LOW>;
+               enable-gpios = <&io_expander 0 GPIO_ACTIVE_HIGH>;
+
+               ports {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       port@0 {
+                               reg = <0>;
+                       };
+
+                       port@1 {
+                               reg = <1>;
+                       };
+
+                       port@2 {
+                               reg = <2>;
+                       };
+
+                       port@3 {
+                               reg = <3>;
+                       };
+
+                       port@4 {
+                               reg = <4>;
+                               max9286_out0: endpoint {
+                                       clock-lanes = <0>;
+                                       data-lanes = <1 2 3 4>;
+                                       remote-endpoint = <&csi40_in>;
+                               };
+                       };
+               };
+
+               i2c-mux {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       i2c@0 {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               reg = <0>;
+
+                               status = "disabled";
+                       };
+
+                       i2c@1 {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               reg = <1>;
+
+                               status = "disabled";
+                       };
+
+                       i2c@2 {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               reg = <2>;
+
+                               status = "disabled";
+                       };
+
+                       i2c@3 {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               reg = <3>;
+
+                               status = "disabled";
+                       };
+               };
+       };
+};
+
 &lvds0 {
        status = "okay";
 
                function = "i2c0";
        };
 
+       i2c3_pins: i2c3 {
+               groups = "i2c3_a";
+               function = "i2c3";
+       };
+
        qspi0_pins: qspi0 {
                groups = "qspi0_ctrl", "qspi0_data4";
                function = "qspi0";