Skip to content

Commit

Permalink
arm64: dts: renesas: eagle: Enable MAX9286
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kbingham authored and geertu committed Jan 24, 2022
1 parent 9199da6 commit 557165f
Showing 1 changed file with 102 additions and 0 deletions.
102 changes: 102 additions & 0 deletions arch/arm64/boot/dts/renesas/r8a77970-eagle.dts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,20 @@
};
};

&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";
Expand Down Expand Up @@ -172,6 +186,89 @@
};
};

&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";

Expand Down Expand Up @@ -200,6 +297,11 @@
function = "i2c0";
};

i2c3_pins: i2c3 {
groups = "i2c3_a";
function = "i2c3";
};

qspi0_pins: qspi0 {
groups = "qspi0_ctrl", "qspi0_data4";
function = "qspi0";
Expand Down

0 comments on commit 557165f

Please sign in to comment.