From nobody Mon Nov 25 10:52:45 2024 Received: from m16.mail.163.com (m16.mail.163.com [220.197.31.5]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD8ED1D88A4 for ; Mon, 28 Oct 2024 12:35:22 +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=1730118926; cv=none; b=Zi58Y7LRr93Hh3O6AXJ8Y751ZYPGgzJZm9vhiaWgcVL00A7wfKc+wGH7EHE1M0IVeRXECWDTmHXo5cyIVjbITe8rNUkPXPKh7c2iquaBA9WaypDb88R39X5nt4/seZbJfFXTTbcDJAE+J/I91H3eok4acOnaV+/rriEU6uwLitA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730118926; c=relaxed/simple; bh=bM6C+bFnr0G2LMJ8gswA/V4V0gtpkY/DOVKFE2g5qtw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gC9LZvLLVe3bbVkneNp3PI9c1g2cZnH6qdvOq+akUbJcIexWCD4J8DVRoIe/sdplMEecsJGsIcTkrkbQ65T0/3NoRRkNlZc/A2ZIqaGar0QRxbMYw9iXLgB/mwI40jdgZ0dMhx5sRFmEnRZbWoTfnZV6pN6qvsMpSBeqVEGfJPw= 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=A9E7NSti; 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="A9E7NSti" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=6GXIR h4j3i518ko1cqgv7mz2+TyzA7OmqSNKoxe1+2M=; b=A9E7NStithBvNIB9BsLnn uH8DNRgS8Bm0O9kkjTt2Kll5x3tPSjEXKPicflFAAWmWxQfLY27+Bn180LQHfuW9 G+sCg6nCF8sBojvmhDWh+ZEZtP8K9K4lGtLwOHHTrrkh5E6SYFKxhLWL/am11grn +uyjNaBMJsH9yN0cFFeIi8= Received: from ProDesk.. (unknown [58.22.7.114]) by gzga-smtp-mtada-g1-3 (Coremail) with SMTP id _____wD3f+b5hB9nytgkBw--.9113S3; Mon, 28 Oct 2024 20:35:09 +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 v2 1/3] arm64: dts: rockchip: Enable HDMI0 for rk3588 Cool Pi CM5 EVB Date: Mon, 28 Oct 2024 20:34:56 +0800 Message-ID: <20241028123503.384866-2-andyshrk@163.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241028123503.384866-1-andyshrk@163.com> References: <20241028123503.384866-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: _____wD3f+b5hB9nytgkBw--.9113S3 X-Coremail-Antispam: 1Uf129KBjvJXoWxJrWfZw48Kw18Xr13GFW5GFg_yoW8Ww17p3 ZxurZ5GFZ3WFW7tw45Arn7tFs0yws5urW3GwnxZFy7tr4agFnYyw18GwnavFyDZFZrZayx CF1kJF1j9r4Dtr7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0pEU73DUUUUU= X-CM-SenderInfo: 5dqg52xkunqiywtou0bp/1tbiMxGGXmcfhCYMvQAAsR 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 --- Changes in v2: - Remove enable-gpios as it is unevaluated - Remove pinctrl setting as it use the default .../dts/rockchip/rk3588-coolpi-cm5-evb.dts | 47 +++++++++++++++++++ 1 file changed, 47 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..010a1f2761e6 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,38 @@ &usb_host1_ehci { &usb_host1_ohci { status =3D "okay"; }; + +&hdmi0 { + 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 10:52:45 2024 Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.5]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D31D18E03A for ; Mon, 28 Oct 2024 12:35:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=117.135.210.5 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730118925; cv=none; b=Gvwjpu+ZjlvzIW3O0EEiAmdsszwfQR9RL5E6bKCJZeGOWb/FEn+Y4WzpdUOiuyEofVc9VQB27iAZ/qC5MClNZl6PuUehJjj/hchddBftYivTeBo5xieM5nqJNIMxVMrLXwaiggdjRYPHRJvaf4VJVrv9lIs1KiW/H2JI8d4JT98= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730118925; c=relaxed/simple; bh=EcyrQPDgthkfdEcc10o2egX30s4Dev+MVbzErqEZlwo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=c+eLcRahyN16KZ51VAWVpULSFwGM3vI2pBw7jyMPZH5u7yM6WTdk/40TdU0LN4NsDchCqTCgQlhje4OaXMVNNIteaNgiQykKcZO8NhXE0SC2pwUiJ7bletjCfjSSiOUc5D5R3RICBW6w9dqkMB5MnnmOoRORYfLX0XqI4eP1Jc8= 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=dZPxq51+; arc=none smtp.client-ip=117.135.210.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="dZPxq51+" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=sGXAv ZN6OzVPvAHYYKDVulgxFxNefKXk3I0OnEojRD0=; b=dZPxq51+r33wrg9bHdss3 PnWA0Q7hx5WgDht40418kF2nMK7IV4uYviEUm1l+5KMScDVcjTKwpCTy1OVSVpe8 VAOaL6LL8ZXws0y3/NwLDC0Wuh/0Vn2a49Wvm0n63ADC6CieKQOawmKp/hQqHEvm JlGgice12QzMkznHnQO0cs= Received: from ProDesk.. (unknown [58.22.7.114]) by gzga-smtp-mtada-g1-3 (Coremail) with SMTP id _____wD3f+b5hB9nytgkBw--.9113S4; Mon, 28 Oct 2024 20:35:09 +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 v2 2/3] arm64: dts: rockchip: Enable HDMI display for rk3588 Cool Pi 4B Date: Mon, 28 Oct 2024 20:34:57 +0800 Message-ID: <20241028123503.384866-3-andyshrk@163.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241028123503.384866-1-andyshrk@163.com> References: <20241028123503.384866-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: _____wD3f+b5hB9nytgkBw--.9113S4 X-Coremail-Antispam: 1Uf129KBjvJXoW7tFyrGFWfAw4xCFW7tr1fJFb_yoW8Ww43p3 ZrurZ5GrZ3urW7XwsxAF1xJrsYyws5CayxGw13ZFy3tr42gas5tw1xGrnYvFyDAFWxZ3y3 Cr1kJFyq9r4UXw7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0ziNVy3UUUUU= X-CM-SenderInfo: 5dqg52xkunqiywtou0bp/1tbiqRGGXmcffS5+9gAAsD Content-Type: text/plain; charset="utf-8" Enable the micro HDMI on Cool Pi 4B. Signed-off-by: Andy Yan --- Changes in v2: - Remove enable-gpios as it is unevaluated - Remove pinctrl setting as it use the default .../boot/dts/rockchip/rk3588s-coolpi-4b.dts | 47 +++++++++++++++++++ 1 file changed, 47 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..27a89a110085 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,38 @@ &usb_host1_ehci { &usb_host1_ohci { status =3D "okay"; }; + +&hdmi0 { + 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 10:52:45 2024 Received: from m16.mail.163.com (m16.mail.163.com [220.197.31.2]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C2A11D934B for ; Mon, 28 Oct 2024 12:35:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.31.2 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730118928; cv=none; b=hiyJ1f1ruRg1hqp9RewSpCflJPmfJK1Rr2pqBWZqPw9UU4rm4TI3/X+/7W/uHM/ef3kPi98tWZpmiyEaieZT/94BsnKajLLMEcfb2BztFWl6G50Ta8Qv7LqKVPD0d6NZ785IrapHgAE80wJh6Qo1qJ7OKSRj95SyvLW3sP26j00= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730118928; c=relaxed/simple; bh=G/XWiPL1tzKOA91NpkVzK6G0p+V96OLXdFuYCzGo71s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mgttD2xYbpIw014AjkbpjsDU9kDTn5IdQ0O+fqvo8CxpQZMP/XaBh2RGQt7MOWp49Lg7g0pleoSN5zpryWjtHfvFyqf3dT1JP4oapSNJb3uYPTLCgB1tD9GPI2FGBRCfp9TS9hwa8IYrjaBGD0dkStDcJNqNf97pfytvWPhASQ4= 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=j0C/LCqQ; arc=none smtp.client-ip=220.197.31.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="j0C/LCqQ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=344J5 ku+Gt/dhWff1sAIGZQvuDp5Q5kk2nVCCnwU/2c=; b=j0C/LCqQw9VuUP7JlFZLV f7t5n7SqTmIbLkRGzGVmDFgqtRa/8lpjWQ5JzOuHVmPYWg+5PE2b2kyTtE7o33N2 0GxjSNIrkbxBoOCuhnLeWGyh3N35LWD3rcGnLYqYe8fH2sM22PI6/Mbp6wz3KB/g km/StyM/8AuBxMMjGO9Nbg= Received: from ProDesk.. (unknown [58.22.7.114]) by gzga-smtp-mtada-g1-3 (Coremail) with SMTP id _____wD3f+b5hB9nytgkBw--.9113S5; Mon, 28 Oct 2024 20:35:09 +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 v2 3/3] arm64: dts: rockchip: Enable HDMI display for rk3588 Cool Pi GenBook Date: Mon, 28 Oct 2024 20:34:58 +0800 Message-ID: <20241028123503.384866-4-andyshrk@163.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241028123503.384866-1-andyshrk@163.com> References: <20241028123503.384866-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: _____wD3f+b5hB9nytgkBw--.9113S5 X-Coremail-Antispam: 1Uf129KBjvJXoW7tFy8GF45uw4rArykur18Grg_yoW8Ar4xp3 ZrCrZ5WFZ7WrW7JwsxAryxJFs8twsYkFWxGryfZFy7tF4aqFn5twn7Grn2vFyDAFWxZ3yf CFykJF1j9r1DZaUanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0zRE_M-UUUUU= X-CM-SenderInfo: 5dqg52xkunqiywtou0bp/xtbB0gSGXmcfgjoqQQAAsl Content-Type: text/plain; charset="utf-8" Enable hdmi display output on Cool Pi GenBook. Signed-off-by: Andy Yan --- Changes in v2: - Remove enable-gpios as it is unevaluated .../rockchip/rk3588-coolpi-cm5-genbook.dts | 50 +++++++++++++++++++ 1 file changed, 50 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..da7a19f1fe58 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,40 @@ &usb_host1_xhci { dr_mode =3D "host"; status =3D "okay"; }; + +/* HDMI CEC is not used */ +&hdmi0 { + 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