From patchwork Sat Oct 19 01:52:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: FUKAUMI Naoki X-Patchwork-Id: 13842534 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CA546D3E195 for ; Sat, 19 Oct 2024 01:53:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PHZuQcpuigsPDIj7wyFMHj7OFU9Tjugw1yog9txnSR4=; b=gCbVX+Qu6kF3e0 ehCAyL6lwvQMA3wF6m+OcUTLvR0DX2/bqGdFBXtZenKAEpQSmIbZlBOH912ilSWK1kSokwXsxlt4h pLmpiVDOCEsVj1mYiFf9T23SPOpqxss8Em+zaBH+YK+340wFvaYhLgEOVo+ANVOEQYXT3BsnJxkdc R73dOvi1/NdubITCu1XkbwywGNzjoCis1NlzP5i88Oom29T31oiLvBURJzfG4lWO6Yif8cRDg/pR1 MrA/HYzTteyw+rFvTxh599d2jEYZx5+Z9DwkYofMTraXmpleslgZLQ/yL0zAc7TrgGXCBtdRa+7yV ZIzx7cQ5DAUSaV50qQlA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t1yeR-00000002QO0-1SuF; Sat, 19 Oct 2024 01:53:07 +0000 Received: from sakura.naobsd.org ([160.16.200.221] helo=mail.naobsd.org) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t1yeN-00000002QNH-3HvF for linux-rockchip@lists.infradead.org; Sat, 19 Oct 2024 01:53:05 +0000 Received: from secure.fukaumi.org ([10.0.0.2]) by mail.naobsd.org (8.14.4/8.14.4/Debian-4.1ubuntu1.1) with ESMTP id 49J1qeoq004984; Sat, 19 Oct 2024 10:52:43 +0900 From: FUKAUMI Naoki To: heiko@sntech.de Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, jonas@kwiboo.se, dsimic@manjaro.org, kever.yang@rock-chips.com, linux-rockchip@lists.infradead.org, FUKAUMI Naoki Subject: [PATCH 3/3] arm64: dts: rockchip: Enable HDMI0 on rock-5c Date: Sat, 19 Oct 2024 01:52:34 +0000 Message-ID: <20241019015234.1493-3-naoki@radxa.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241019015234.1493-1-naoki@radxa.com> References: <20241019015234.1493-1-naoki@radxa.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241018_185304_054443_F760B5F6 X-CRM114-Status: UNSURE ( 7.83 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add the necessary DT changes to enable HDMI0 on Radxa ROCK 5C. Signed-off-by: FUKAUMI Naoki --- .../boot/dts/rockchip/rk3588s-rock-5c.dts | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5c.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5c.dts index 654ddb869c45..f3dcd335cc43 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5c.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5c.dts @@ -8,6 +8,7 @@ #include #include #include +#include #include "rk3588s.dtsi" / { @@ -35,6 +36,17 @@ analog-sound { "Headphone", "Headphones"; }; + hdmi0-con { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi0_con_in: endpoint { + remote-endpoint = <&hdmi0_out_con>; + }; + }; + }; + leds { compatible = "gpio-leds"; pinctrl-names = "default"; @@ -363,6 +375,26 @@ &gmac1_rgmii_bus status = "okay"; }; +&hdmi0 { + status = "okay"; +}; + +&hdmi0_in { + hdmi0_in_vp0: endpoint { + remote-endpoint = <&vp0_out_hdmi0>; + }; +}; + +&hdmi0_out { + hdmi0_out_con: endpoint { + remote-endpoint = <&hdmi0_con_in>; + }; +}; + +&hdptxphy_hdmi0 { + status = "okay"; +}; + &mdio1 { rgmii_phy1: ethernet-phy@1 { compatible = "ethernet-phy-id001c.c916"; @@ -861,3 +893,18 @@ &usb_host1_ohci { &usb_host2_xhci { status = "okay"; }; + +&vop_mmu { + status = "okay"; +}; + +&vop { + status = "okay"; +}; + +&vp0 { + vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { + reg = ; + remote-endpoint = <&hdmi0_in_vp0>; + }; +};