linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] MIPS: ingenic: JZ4725B: Add IPU node
@ 2020-07-25 17:43 Paul Cercueil
  2020-07-26  8:22 ` Thomas Bogendoerfer
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Cercueil @ 2020-07-25 17:43 UTC (permalink / raw)
  To: Thomas Bogendoerfer
  Cc: Rob Herring, devicetree, linux-mips, linux-kernel, od, Paul Cercueil

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>
---

Notes:
    Binding documentation was merged in the DRM tree (drm-misc-next branch).
    See https://cgit.freedesktop.org/drm/drm-misc/plain/Documentation/devicetree/bindings/display/ingenic,ipu.yaml

 arch/mips/boot/dts/ingenic/jz4725b.dtsi | 30 +++++++++++++++++++++++++
 arch/mips/boot/dts/ingenic/rs90.dts     |  6 ++++-
 2 files changed, 35 insertions(+), 1 deletion(-)

diff --git a/arch/mips/boot/dts/ingenic/jz4725b.dtsi b/arch/mips/boot/dts/ingenic/jz4725b.dtsi
index 89402a15f049..a8fca560878d 100644
--- a/arch/mips/boot/dts/ingenic/jz4725b.dtsi
+++ b/arch/mips/boot/dts/ingenic/jz4725b.dtsi
@@ -314,6 +314,36 @@ lcd: lcd-controller@13050000 {
 
 		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 {
diff --git a/arch/mips/boot/dts/ingenic/rs90.dts b/arch/mips/boot/dts/ingenic/rs90.dts
index 246f97efe5ef..4eb1edbfc155 100644
--- a/arch/mips/boot/dts/ingenic/rs90.dts
+++ b/arch/mips/boot/dts/ingenic/rs90.dts
@@ -302,8 +302,12 @@ &tcu {
 &lcd {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pins_lcd>;
+};
+
+&lcd_ports {
+	port@0 {
+		reg = <0>;
 
-	port {
 		panel_output: endpoint {
 			remote-endpoint = <&panel_input>;
 		};
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] MIPS: ingenic: JZ4725B: Add IPU node
  2020-07-25 17:43 [PATCH] MIPS: ingenic: JZ4725B: Add IPU node Paul Cercueil
@ 2020-07-26  8:22 ` Thomas Bogendoerfer
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Bogendoerfer @ 2020-07-26  8:22 UTC (permalink / raw)
  To: Paul Cercueil; +Cc: Rob Herring, devicetree, linux-mips, linux-kernel, od

On Sat, Jul 25, 2020 at 07:43:07PM +0200, Paul Cercueil wrote:
> 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>
> ---
> 
> Notes:
>     Binding documentation was merged in the DRM tree (drm-misc-next branch).
>     See https://cgit.freedesktop.org/drm/drm-misc/plain/Documentation/devicetree/bindings/display/ingenic,ipu.yaml
> 
>  arch/mips/boot/dts/ingenic/jz4725b.dtsi | 30 +++++++++++++++++++++++++
>  arch/mips/boot/dts/ingenic/rs90.dts     |  6 ++++-
>  2 files changed, 35 insertions(+), 1 deletion(-)

applied to mips-next.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-26  8:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-25 17:43 [PATCH] MIPS: ingenic: JZ4725B: Add IPU node Paul Cercueil
2020-07-26  8:22 ` Thomas Bogendoerfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).