Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5540513rwl; Tue, 11 Apr 2023 06:57:19 -0700 (PDT) X-Google-Smtp-Source: AKy350Y4vBPPkx4cmZQNqgQ5oki9cn6ohQrE5hBez+ll363GpeJy01lqdpmioVUdq+z6SBD69F5U X-Received: by 2002:a17:90b:33c4:b0:23e:f855:79f2 with SMTP id lk4-20020a17090b33c400b0023ef85579f2mr20223662pjb.12.1681221439104; Tue, 11 Apr 2023 06:57:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681221439; cv=none; d=google.com; s=arc-20160816; b=hG/ePjsANCtSjpCLNlOBl+TiyNDf58UfPvYMzRHv9q7uxRdQvA5UcBECUh1e1lp4DG UkA/ngoCXwjEYuW3N+2OSiBFBWJOMDwyF9T5mJCpklG9geKV2C1JOg+jzU1/A2ro8dxc clJmOKLnQZSaag3dGd+cTRIugAhWQO+vpTXXyQLtQKio2DOCnuWP18VBPQxSZPaWRdlf AyIZ3I+tHZO4/XLZ19TKdasa5lSzHRdfsW/cNOBfdUIZp5+17EsOdV4SWANXKiJ0Oh9B teRtb4+Vezk4xwdAMaegpDjHHgJyt8NCHOg0geVaXsN1Dc9Nu/VkuNNdXStUxmsFdChS xj9A== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mq6-20020a17090b380600b002402e91b437si14470517pjb.147.2023.04.11.06.57.05; Tue, 11 Apr 2023 06:57:19 -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 S231218AbjDKN4g 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 Content-Type: text/plain 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 Content-Transfer-Encoding: 8BIT 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 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"; -- 2.25.1