From mboxrd@z Thu Jan 1 00:00:00 1970 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 ACE13C28CF5 for ; Wed, 26 Jan 2022 18:03:51 +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-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=N14F4prT1Sks/SHpF6sNSI7iYmSUZUbHOI4bezqam+M=; b=3ISzfFrZGaDjB5 KOpANuVggoDkBKpKfIkb1jWzZl/8+dqRlMngtoW+5v17m8/+elNoUD810/EfIWaSQzaNG7899bGzn Aquhq+cTJux9BDSXUdBk6RHqTNWZl1nD1wB25TMENSamSCAILwUuDjYbQrAMHe5afpT5Zb9ySQM8J 6HID73egkXIxpWvagYGLTxjh5e5x6+cUDoGGB5i+eWQg9lOhEqmiLXfmZLn7AmYg+8aKKZapeizwR KMEoe1cSml/aBOEvuAUlxAT94jGOvT8lQwKp2m1evH24g6C3kci3Kr4U0M0WgcXAkrI6yprTeAZFY I4/t+uLla3HoUE/O2/Dw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCmcf-00DCoq-Eu; Wed, 26 Jan 2022 18:02:22 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCmWc-00DA8l-S3; Wed, 26 Jan 2022 17:56:08 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3294FD6E; Wed, 26 Jan 2022 09:56:06 -0800 (PST) Received: from [10.57.68.47] (unknown [10.57.68.47]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 657A43F7D8; Wed, 26 Jan 2022 09:56:04 -0800 (PST) Message-ID: Date: Wed, 26 Jan 2022 17:56:00 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH 21/27] arm64: dts: rockchip: rk356x: Add HDMI nodes Content-Language: en-GB To: Peter Geis , Sascha Hauer Cc: dri-devel@lists.freedesktop.org, arm-mail-list , "open list:ARM/Rockchip SoC..." , devicetree , kernel@pengutronix.de, Andy Yan , Benjamin Gaignard , Michael Riesch , Sandy Huang , =?UTF-8?Q?Heiko_St=c3=bcbner?= References: <20220126145549.617165-1-s.hauer@pengutronix.de> <20220126145549.617165-22-s.hauer@pengutronix.de> From: Robin Murphy In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220126_095607_053966_334EC40B X-CRM114-Status: GOOD ( 19.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2022-01-26 16:04, Peter Geis wrote: > On Wed, Jan 26, 2022 at 9:58 AM Sascha Hauer wrote: >> >> Add support for the HDMI port found on RK3568. >> >> Signed-off-by: Sascha Hauer >> --- >> arch/arm64/boot/dts/rockchip/rk356x.dtsi | 37 +++++++++++++++++++++++- >> 1 file changed, 36 insertions(+), 1 deletion(-) >> >> diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot/dts/rockchip/rk356x.dtsi >> index 4008bd666d01..e38fb223e9b8 100644 >> --- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi >> +++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi >> @@ -10,7 +10,6 @@ >> #include >> #include >> #include >> -#include >> #include >> >> / { >> @@ -502,6 +501,42 @@ vop_mmu: iommu@fe043e00 { >> status = "disabled"; >> }; >> >> + hdmi: hdmi@fe0a0000 { >> + compatible = "rockchip,rk3568-dw-hdmi"; >> + reg = <0x0 0xfe0a0000 0x0 0x20000>; >> + interrupts = ; >> + clocks = <&cru PCLK_HDMI_HOST>, >> + <&cru CLK_HDMI_SFR>, >> + <&cru CLK_HDMI_CEC>, >> + <&pmucru CLK_HDMI_REF>, >> + <&cru HCLK_VOP>; >> + clock-names = "iahb", "isfr", "cec", "ref", "hclk"; >> + pinctrl-names = "default"; >> + pinctrl-0 = <&hdmitx_scl &hdmitx_sda &hdmitxm0_cec>; > > I looked into CEC support here, and it seems that it does work with one change. > Please add the two following lines to your patch: > assigned-clocks = <&cru CLK_HDMI_CEC>; > assigned-clock-rates = <32768>; > > The issue is the clk_rtc32k_frac clock that feeds clk_rtc_32k which > feeds clk_hdmi_cec is 24mhz at boot, which is too high for CEC to > function. Wouldn't it make far more sense to just stick a suitable clk_set_rate() call in the driver? AFAICS it's already explicitly aware of the CEC clock. Robin. >> + power-domains = <&power RK3568_PD_VO>; >> + reg-io-width = <4>; >> + rockchip,grf = <&grf>; >> + #sound-dai-cells = <0>; >> + status = "disabled"; >> + >> + ports { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + hdmi_in: port@0 { >> + reg = <0>; >> + #address-cells = <1>; >> + #size-cells = <0>; >> + }; >> + >> + hdmi_out: port@1 { >> + reg = <1>; >> + #address-cells = <1>; >> + #size-cells = <0>; >> + }; >> + }; >> + }; >> + >> qos_gpu: qos@fe128000 { >> compatible = "rockchip,rk3568-qos", "syscon"; >> reg = <0x0 0xfe128000 0x0 0x20>; >> -- >> 2.30.2 >> > > _______________________________________________ > Linux-rockchip mailing list > Linux-rockchip@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-rockchip _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel