Skip to content

Commit

Permalink
MIPS: ingenic: JZ4725B: Add IPU node
Browse files Browse the repository at this point in the history
Add a devicetree node for the Image Processing Unit (IPU) found in the
JZ4725B. Connect it with graph nodes to the LCD node. The LCD driver
will expect the IPU node to be accessed through graph port #8, as stated
in the bindings documentation.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
  • Loading branch information
pcercuei committed Jul 25, 2020
1 parent f40ea49 commit d234f57
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
30 changes: 30 additions & 0 deletions arch/mips/boot/dts/ingenic/jz4725b.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,36 @@

clocks = <&cgu JZ4725B_CLK_LCD>;
clock-names = "lcd_pclk";

lcd_ports: ports {
#address-cells = <1>;
#size-cells = <0>;

port@8 {
reg = <8>;

ipu_output: endpoint {
remote-endpoint = <&ipu_input>;
};
};
};
};

ipu: ipu@13080000 {
compatible = "ingenic,jz4725b-ipu";
reg = <0x13080000 0x64>;

interrupt-parent = <&intc>;
interrupts = <30>;

clocks = <&cgu JZ4725B_CLK_IPU>;
clock-names = "ipu";

port {
ipu_input: endpoint {
remote-endpoint = <&ipu_output>;
};
};
};

bch: ecc-controller@130d0000 {
Expand Down
6 changes: 5 additions & 1 deletion arch/mips/boot/dts/ingenic/rs90.dts
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,12 @@
&lcd {
pinctrl-names = "default";
pinctrl-0 = <&pins_lcd>;
};

&lcd_ports {
port@0 {
reg = <0>;

port {
panel_output: endpoint {
remote-endpoint = <&panel_input>;
};
Expand Down

0 comments on commit d234f57

Please sign in to comment.