From nobody Mon Nov 25 13:44:10 2024 Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.2]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3D941C6F47 for ; Sat, 26 Oct 2024 08:20:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=117.135.210.2 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729930811; cv=none; b=jY2Q3nJSZMef1U3ogR88IvKRjMx1Lg8EW7qx5c6GMTFCKVgg7+KV+x2Saml+AyzdLNZbt9GTIFAJtH7eee3+Q7NduNADUPH4PYq/4N7w7OYffbje8i+Vp5BxZnetSPQdRS52sEbSxS1weGt2A0MBnyUlpw1nFwFO8D04Ys8Wyec= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729930811; c=relaxed/simple; bh=4t/oXSMBrctWDNJczJM/urThoYT0PYG/lTjjcmivTHI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oxuqJLnSrCGPFsUXUN8GgqgiHGePK5e0m1lSfjYTeGtbhTeVvaDdgPIVxVsgOMPcE5xl+XlEcofoSvR9jUPNjdAU9+iDwwXCyOD/EzRouxdgbpRSanRlVkO8hDJFgyNEcHcs+76s6J0EO/Jb9BSaVsU0DB04dFdW55D1Ee+G4p0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=lkCWm1gJ; arc=none smtp.client-ip=117.135.210.2 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="lkCWm1gJ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=50erL DHaCcD3189jmEiSuXIG5d+DYHBnUbc/wg7QSIQ=; b=lkCWm1gJaG9Vp1z/1Q5v2 gdHxxlQ+kjBp79vpNhrG+rOP2oB2PVol7pSXVATs/I9JYZIuUarKjKplo6lWBCZ6 KliH8hkHC7j+akeJczvVxrERzeKrl6lf0HxwDR6VgGy+trdqNN2lvFHX9GFuRkqy Sqx3sV/FxkFXsA43u6V4Ck= Received: from ProDesk.. (unknown [103.29.142.67]) by gzga-smtp-mtada-g1-0 (Coremail) with SMTP id _____wD3v9wkphxnW2U0Dg--.30094S3; Sat, 26 Oct 2024 16:19:53 +0800 (CST) From: Andy Yan To: heiko@sntech.de Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Andy Yan Subject: [PATCH 1/3] arm64: dts: rockchip: Enable HDMI0 for rk3588 Cool Pi CM5 EVB Date: Sat, 26 Oct 2024 16:19:26 +0800 Message-ID: <20241026081942.348459-2-andyshrk@163.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241026081942.348459-1-andyshrk@163.com> References: <20241026081942.348459-1-andyshrk@163.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: _____wD3v9wkphxnW2U0Dg--.30094S3 X-Coremail-Antispam: 1Uf129KBjvJXoWxJrW3ur13Xry3tw18Cw1kuFg_yoW8Ar4fp3 ZxurZ5WFZ3Way2yw4ayFn7tFnYyrs5urWfG343ZFyxtr4agFnYyw1UWwn2vFyDAFZrZayx CF1kJF1j9r1qqw7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0p_Q6pfUUUUU= X-CM-SenderInfo: 5dqg52xkunqiywtou0bp/1tbiMxuEXmccoZRKCAABs- Content-Type: text/plain; charset="utf-8" As the hdmi-qp controller recently get merged, we can enable the HDMI0 display on this board now. Signed-off-by: Andy Yan --- .../dts/rockchip/rk3588-coolpi-cm5-evb.dts | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-coolpi-cm5-evb.dts b/arch/= arm64/boot/dts/rockchip/rk3588-coolpi-cm5-evb.dts index a4946cdc3bb3..2d7feb88aeeb 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-coolpi-cm5-evb.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-coolpi-cm5-evb.dts @@ -7,6 +7,7 @@ /dts-v1/; =20 #include +#include #include "rk3588-coolpi-cm5.dtsi" =20 / { @@ -22,6 +23,17 @@ backlight: backlight { pwms =3D <&pwm2 0 25000 0>; }; =20 + hdmi-con { + compatible =3D "hdmi-connector"; + type =3D "a"; + + port { + hdmi_con_in: endpoint { + remote-endpoint =3D <&hdmi0_out_con>; + }; + }; + }; + leds: leds { compatible =3D "gpio-leds"; =20 @@ -214,3 +226,40 @@ &usb_host1_ehci { &usb_host1_ohci { status =3D "okay"; }; + +&hdmi0 { + enable-gpios =3D <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>; + pinctrl-0 =3D <&hdmim0_tx0_cec &hdmim0_tx0_hpd &hdmim0_tx0_scl &hdmim0_tx= 0_sda>; + status =3D "okay"; +}; + +&hdmi0_in { + hdmi0_in_vp0: endpoint { + remote-endpoint =3D <&vp0_out_hdmi0>; + }; +}; + +&hdmi0_out { + hdmi0_out_con: endpoint { + remote-endpoint =3D <&hdmi_con_in>; + }; +}; + +&hdptxphy_hdmi0 { + status =3D "okay"; +}; + +&vop { + status =3D "okay"; +}; + +&vop_mmu { + status =3D "okay"; +}; + +&vp0 { + vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { + reg =3D ; + remote-endpoint =3D <&hdmi0_in_vp0>; + }; +}; --=20 2.43.0 From nobody Mon Nov 25 13:44:10 2024 Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.4]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E92DA18133F for ; Sat, 26 Oct 2024 08:20:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=117.135.210.4 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729930810; cv=none; b=bYqKGkn+fo9XwIfsQHWpqflZp5hZSW1AFWvtbuBx+kPKRHUNE7cDSCl9P4vSLZLQRHqDA9/jVME3iIExeGwbTz7UPoGoPN0eu5caD5HbFCDd9SQXT7cvtr5bDNfnvzkkjR92KRCr/NKRCijuSekw+ohX8Psl79GUb0m0vs+P9ec= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729930810; c=relaxed/simple; bh=cT4B1EnCJgzmW0MWKvX/BXLbIPE+NTko0Bx2Sc8Z30M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fewgj+ayMpp7N3fkaAKIk2OVQsAy/9Vc/vhzOpJ4BRw+MKE2sLtrhxF/UXLYuIHzCRdq4Pxyh3latbdJQ4+H3X0wu2DNrE8InCKLAsbjO4tdvbhbeH3/o5yUcGG9BJRQmne3Vs5I4zeofk06y4537Wk0ZNay3MzEKgqK+k6eSrk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=aUvyIYPe; arc=none smtp.client-ip=117.135.210.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="aUvyIYPe" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=qQTy2 rFDHPLrhwWx3I4lTxF3fj+WYgsnlWrVFwmkt1A=; b=aUvyIYPeo+c+Bkas6eAVP /er3KGXeofuVVPCf+jYg4E15z8eZ7lQSqlbeGRHLdsfFESWGH+O+Qlt3FrMwtE85 kOo7QBEcAEdyDQfcC2f0vbnGMT0jmxRh+OsnaBNLqLzqyZ7HnfMXDORbLHPCKpik 6VUTU14brg2hd6Xsv9ODOU= Received: from ProDesk.. (unknown [103.29.142.67]) by gzga-smtp-mtada-g1-0 (Coremail) with SMTP id _____wD3v9wkphxnW2U0Dg--.30094S4; Sat, 26 Oct 2024 16:19:53 +0800 (CST) From: Andy Yan To: heiko@sntech.de Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Andy Yan Subject: [PATCH 2/3] arm64: dts: rockchip: Enable HDMI display for rk3588 Cool Pi 4B Date: Sat, 26 Oct 2024 16:19:27 +0800 Message-ID: <20241026081942.348459-3-andyshrk@163.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241026081942.348459-1-andyshrk@163.com> References: <20241026081942.348459-1-andyshrk@163.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: _____wD3v9wkphxnW2U0Dg--.30094S4 X-Coremail-Antispam: 1Uf129KBjvJXoW7tFy5GF1rury3ZrWxuryfWFg_yoW8Arykp3 ZrurZ5Wr93urW7JwsxAF1xArsYyws5C3yxG343ZFy3tr42gas5tw1xGr1vvFyDAFWxZ3yf Cr1kJFyj9r4jqw7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0ziRBTxUUUUU= X-CM-SenderInfo: 5dqg52xkunqiywtou0bp/1tbiMxuEXmccoZRKIgAAsU Content-Type: text/plain; charset="utf-8" Enable the micro HDMI on Cool Pi 4B. Signed-off-by: Andy Yan --- .../boot/dts/rockchip/rk3588s-coolpi-4b.dts | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-coolpi-4b.dts b/arch/arm6= 4/boot/dts/rockchip/rk3588s-coolpi-4b.dts index 074c316a9a69..7ceb61b6ce4a 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-coolpi-4b.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-coolpi-4b.dts @@ -11,6 +11,7 @@ #include #include #include +#include #include "rk3588s.dtsi" =20 / { @@ -38,6 +39,17 @@ chosen { stdout-path =3D "serial2:1500000n8"; }; =20 + hdmi-con { + compatible =3D "hdmi-connector"; + type =3D "d"; + + port { + hdmi_con_in: endpoint { + remote-endpoint =3D <&hdmi0_out_con>; + }; + }; + }; + leds: leds { compatible =3D "gpio-leds"; pinctrl-names =3D "default"; @@ -815,3 +827,40 @@ &usb_host1_ehci { &usb_host1_ohci { status =3D "okay"; }; + +&hdmi0 { + enable-gpios =3D <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>; + pinctrl-0 =3D <&hdmim0_tx0_cec &hdmim0_tx0_hpd &hdmim0_tx0_scl &hdmim0_tx= 0_sda>; + status =3D "okay"; +}; + +&hdmi0_in { + hdmi0_in_vp0: endpoint { + remote-endpoint =3D <&vp0_out_hdmi0>; + }; +}; + +&hdmi0_out { + hdmi0_out_con: endpoint { + remote-endpoint =3D <&hdmi_con_in>; + }; +}; + +&hdptxphy_hdmi0 { + status =3D "okay"; +}; + +&vop { + status =3D "okay"; +}; + +&vop_mmu { + status =3D "okay"; +}; + +&vp0 { + vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { + reg =3D ; + remote-endpoint =3D <&hdmi0_in_vp0>; + }; +}; --=20 2.43.0 From nobody Mon Nov 25 13:44:10 2024 Received: from m16.mail.163.com (m16.mail.163.com [220.197.31.5]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE7BF18562F for ; Sat, 26 Oct 2024 08:20:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.31.5 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729930810; cv=none; b=YVi4Y89uQ9EqUNZwnXt9EpFc59Xzcy9SAlmilFRZjgupD53gY7fIxdVR8V/wqwzKCoyIqRattJMljIRIoSPgSS/Q6JYUkEzA/6atfr05ag8GWMY3u3bmkKg/fsjMt4MOxyvqSvS8BsRWbZV8b8b+K/RY2MB94Ho3Nv70T44Rxek= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729930810; c=relaxed/simple; bh=dBx4SRP9clfS/XD+QGnFZXjYGcqTUMXEXFiT/jMcpbo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=M9Wmx1GAuIASzIPlgg7v2Vb5SiOE5vM/RYZQaa24Hawz3+qjp0Mt+0rFCjVwoeic+de5xCll3cRXwzfJpcz7J9coQqWeO3v10cJlJdHfEbX52GxiUgo6OblJbnPiNzp5p4U7zjFFpf/XXLh51vtop8we4qr22AyQY0RX99bFADI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=YkmEuXK/; arc=none smtp.client-ip=220.197.31.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="YkmEuXK/" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=XjxDe o6zOYxngA2g8fuyB76jH3rCT3r+Uwoyt6rnH+w=; b=YkmEuXK/CKkH+XsNFygVi UoGVVYuNqbIiwmwRf4/NnsoRn15Ai6wZB2YWE4jqeILLZKo+0yeWQTCWQW9nP5Sx L/dgmAFr/iVAtpdqroil8dhQCvrRld7HcqlyUsGxbh7L6YTdBcnMUwXbDE7cifts EhuzkBWRrb6N5ijB/omY20= Received: from ProDesk.. (unknown [103.29.142.67]) by gzga-smtp-mtada-g1-0 (Coremail) with SMTP id _____wD3v9wkphxnW2U0Dg--.30094S5; Sat, 26 Oct 2024 16:19:54 +0800 (CST) From: Andy Yan To: heiko@sntech.de Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Andy Yan Subject: [PATCH 3/3] arm64: dts: rockchip: Enable HDMI display for rk3588 Cool Pi GenBook Date: Sat, 26 Oct 2024 16:19:28 +0800 Message-ID: <20241026081942.348459-4-andyshrk@163.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241026081942.348459-1-andyshrk@163.com> References: <20241026081942.348459-1-andyshrk@163.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: _____wD3v9wkphxnW2U0Dg--.30094S5 X-Coremail-Antispam: 1Uf129KBjvJXoW7uFW3Kw15Cr4Uuw1DWFy5XFb_yoW8Ar45p3 Z7CrZ5GFZ7WrW3JwsxAFyxAFs8trsY9FWfGryfZFy7KrsIqFn5twn7Grn2vFyDAFWxZw4f CFykJFyj9r1qvaUanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UUcTdUUUUU= X-CM-SenderInfo: 5dqg52xkunqiywtou0bp/1tbiMx2EXmccoZRKMAAAsA Content-Type: text/plain; charset="utf-8" Enable hdmi display output on Cool Pi GenBook. Signed-off-by: Andy Yan --- .../rockchip/rk3588-coolpi-cm5-genbook.dts | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-coolpi-cm5-genbook.dts b/a= rch/arm64/boot/dts/rockchip/rk3588-coolpi-cm5-genbook.dts index 6418286efe40..8958056105b4 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-coolpi-cm5-genbook.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-coolpi-cm5-genbook.dts @@ -7,6 +7,7 @@ /dts-v1/; =20 #include +#include #include "rk3588-coolpi-cm5.dtsi" =20 / { @@ -35,6 +36,18 @@ charger: dc-charger { gpios =3D <&gpio1 RK_PC0 GPIO_ACTIVE_LOW>; }; =20 + hdmi-con { + compatible =3D "hdmi-connector"; + type =3D "a"; + + port { + hdmi_con_in: endpoint { + remote-endpoint =3D <&hdmi0_out_con>; + }; + }; + }; + + leds: leds { compatible =3D "gpio-leds"; =20 @@ -347,3 +360,41 @@ &usb_host1_xhci { dr_mode =3D "host"; status =3D "okay"; }; + +/* HDMI CEC is not used */ +&hdmi0 { + enable-gpios =3D <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>; + pinctrl-0 =3D <&hdmim0_tx0_hpd &hdmim0_tx0_scl &hdmim0_tx0_sda>; + status =3D "okay"; +}; + +&hdmi0_in { + hdmi0_in_vp0: endpoint { + remote-endpoint =3D <&vp0_out_hdmi0>; + }; +}; + +&hdmi0_out { + hdmi0_out_con: endpoint { + remote-endpoint =3D <&hdmi_con_in>; + }; +}; + +&hdptxphy_hdmi0 { + status =3D "okay"; +}; + +&vop { + status =3D "okay"; +}; + +&vop_mmu { + status =3D "okay"; +}; + +&vp0 { + vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { + reg =3D ; + remote-endpoint =3D <&hdmi0_in_vp0>; + }; +}; --=20 2.43.0