From patchwork Tue Apr 11 13:55:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xingyu Wu X-Patchwork-Id: 81987 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2605135vqo; Tue, 11 Apr 2023 07:10:11 -0700 (PDT) X-Google-Smtp-Source: AKy350YjNTTwQwFmbkAAoEEmAzIvxOmkb31wZHAHws9o1t95nLtCSb++6yFYI5xKKoSSu1v/oiwM X-Received: by 2002:a17:90b:390d:b0:240:b3ae:d890 with SMTP id ob13-20020a17090b390d00b00240b3aed890mr18778468pjb.19.1681222210811; Tue, 11 Apr 2023 07:10:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681222210; cv=none; d=google.com; s=arc-20160816; b=UH9lfVu1k5JswCIxlRjMKOgYHp0vzLWNCdYXQGT4x4MIvV/1OfGDv3Vg3noYV9HX4X XH8ILXvOwgA7BjM4tmCbsNhJ7VU4n109PqsAqB6S4XJTIE+GQXj3m7iYO/vML+ddpfCm Xwsq6yCB6leRFCn8SnZBZsVLbr4NqsiAy2RoMZoifUHiHDCRk7Ux0FbJXIX1E3fn8jsF GORFFoWO8PmwrKDHNTXn3ifMZqr5r6b8zoo0M9Srq7bZ1ojg1QJm7rYD2FmfBf2ORa3D jhXe/+X5yrpqzxpPDktI5PtvPoTLY5AGCzYjXQoILAoMcsVtuebnQ851Ir46Sl+GOWX2 k+Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=WlPD8nGB330ZfsNUmIeplWUu5O4FrUP2uYJFjUHP5vQ=; b=mYbuH5P9yqyGc4cXJqAeAyCI0P0YUliDStRRqbJ6k/NHtv7VOpizDMdcthDWZuSel6 UBQrLYlwkR5SMPuSxP7eI+ByQfgXtENxk9RC8ZFO6zP3ZwhdWYpuyIBiJ9OU6xQR3Kfd jiI53rzK85o+1eoXx73NSI1m6/G/ABpepKHsXW/zoI8bqYxFL90f3Qso8AI+GliT3Qfh kMlmckx+Rxo4dWjxu9I+ptUxLWv4p2+rt6k1mmmPEHkv00+kZ+qFjTK/RW6EYhVIzquc 30QZDkdxv97SW6khR5jxj76SiXADRD1WRZK5d181VPY0NLHTTwpwF6gpOkRHfuR6TmIP REEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x22-20020a17090a0bd600b0023d3f169c1csi15689528pjd.2.2023.04.11.07.09.56; Tue, 11 Apr 2023 07:10:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231220AbjDKN4g convert rfc822-to-8bit (ORCPT + 99 others); Tue, 11 Apr 2023 09:56:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231124AbjDKN4P (ORCPT ); Tue, 11 Apr 2023 09:56:15 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80B183581; Tue, 11 Apr 2023 06:56:13 -0700 (PDT) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id EB21124E31A; Tue, 11 Apr 2023 21:56:11 +0800 (CST) Received: from EXMBX061.cuchost.com (172.16.6.61) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 11 Apr 2023 21:56:11 +0800 Received: from localhost.localdomain (113.72.145.176) by EXMBX061.cuchost.com (172.16.6.61) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 11 Apr 2023 21:56:10 +0800 From: Xingyu Wu To: , , "Michael Turquette" , Stephen Boyd , Krzysztof Kozlowski , Philipp Zabel , Conor Dooley , "Emil Renner Berthing" CC: Rob Herring , Paul Walmsley , Palmer Dabbelt , Albert Ou , Hal Feng , Xingyu Wu , , Subject: [PATCH v4 09/10] riscv: dts: starfive: jh7110: Add DVP and HDMI TX pixel external clocks Date: Tue, 11 Apr 2023 21:55:57 +0800 Message-ID: <20230411135558.44282-10-xingyu.wu@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230411135558.44282-1-xingyu.wu@starfivetech.com> References: <20230411135558.44282-1-xingyu.wu@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [113.72.145.176] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX061.cuchost.com (172.16.6.61) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762889261177950699?= X-GMAIL-MSGID: =?utf-8?q?1762889261177950699?= Add DVP and HDMI TX pixel external fixed clocks and the rates are 74.25MHz and 297MHz. Signed-off-by: Xingyu Wu --- .../dts/starfive/jh7110-starfive-visionfive-2.dtsi | 8 ++++++++ arch/riscv/boot/dts/starfive/jh7110.dtsi | 12 ++++++++++++ 2 files changed, 20 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi index 2a6d81609284..1155b97b593d 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi @@ -38,6 +38,10 @@ gpio-restart { }; }; +&dvp_clk { + clock-frequency = <74250000>; +}; + &gmac0_rgmii_rxin { clock-frequency = <125000000>; }; @@ -54,6 +58,10 @@ &gmac1_rmii_refin { clock-frequency = <50000000>; }; +&hdmitx0_pixelclk { + clock-frequency = <297000000>; +}; + &i2srx_bclk_ext { clock-frequency = <12288000>; }; diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi index 30e1f34d5cf8..336ee2b0ffb5 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -164,6 +164,12 @@ core4 { }; }; + dvp_clk: dvp-clock { + compatible = "fixed-clock"; + clock-output-names = "dvp_clk"; + #clock-cells = <0>; + }; + gmac0_rgmii_rxin: gmac0-rgmii-rxin-clock { compatible = "fixed-clock"; clock-output-names = "gmac0_rgmii_rxin"; @@ -188,6 +194,12 @@ gmac1_rmii_refin: gmac1-rmii-refin-clock { #clock-cells = <0>; }; + hdmitx0_pixelclk: hdmitx0-pixel-clock { + compatible = "fixed-clock"; + clock-output-names = "hdmitx0_pixelclk"; + #clock-cells = <0>; + }; + i2srx_bclk_ext: i2srx-bclk-ext-clock { compatible = "fixed-clock"; clock-output-names = "i2srx_bclk_ext";