Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp38068426rwd; Wed, 12 Jul 2023 02:31:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlGjM5RLwlJHWCbXFE+nsXbP1K8bRaPSCvaU0D7oc/WKVa38JtOV3jG+rwsgNDxCQEBqcaSD X-Received: by 2002:a05:6a00:1803:b0:66a:4a45:e023 with SMTP id y3-20020a056a00180300b0066a4a45e023mr18726103pfa.26.1689154298493; Wed, 12 Jul 2023 02:31:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689154298; cv=none; d=google.com; s=arc-20160816; b=v3QgiysxXn3gE0SwOp58BabyUAUOtQw4BwHMabjy3gGSsl/hSciXYXAdEuHgLyqYby e5zCUPJdQlWuoLDaYDzEA64Fh/4v9fBQxNM0BDARwHwWfwaUmj1M3ibqCqCLMBq70LCj FoNpqP2fhoAc9FD9UkYybb7zKcmzXnoMoAvHoE5wBqeSCX/6Bckm/Kuzf8szW6VaWC0W n4zL6VYo/0oai+hxDHHteO2huxHohTFvlVigvN3LuA5c2k3K7k0Xm4YkSQF/zf3liOSU 4ZNKQmYLSHZ9jN8YxsseojDjude+npBbjGFXsQVKJzpMMtqMoN+eNGVFwJdyrpnQfpif UW2A== 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=I4L2kNbSVwUbNlfsTBgcMlvVHFBLrsX5xMOSKxjZ7z4=; fh=5cl3iG0LmTJQlIdlGUTOohNdvt3KyCXtFkKzNbo7a74=; b=dCN51vqJk5EHxt/D5+6wj7bdYkoZsISm3BnZC+xDx5CVYPvF184TROQa3CCnIhy36i J7GC74NcJBLXAAqJsz2R5LZX4pMsxisbrmneDSivqJfsvY2vI8j2VpaUl6WuKRSdkFOm 8yZGR9O7KgifqCbTAfzkpJJNEFSz2rnRhdcQbqM3hSd1SmFT3C9a8b37Qg85jneOsVQK i512ZeAY+/NiezQlv/8BOMFcqx2TlgW4ofVFJLeYqrl28QobmxOqe1ZeUvsKC3DRILEz i4cZZbmbGYOKFD7BEa43hSecOe6OJC4iy0UMgmdAW6BfUxKPeA1OhWAmtIS1CxqjzqoK tCBw== 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 d21-20020a63ed15000000b00543cc95d776si2820237pgi.660.2023.07.12.02.31.26; Wed, 12 Jul 2023 02:31:38 -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 S232856AbjGLJUy convert rfc822-to-8bit (ORCPT + 99 others); Wed, 12 Jul 2023 05:20:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231472AbjGLJUU (ORCPT ); Wed, 12 Jul 2023 05:20:20 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0AC9198A; Wed, 12 Jul 2023 02:20:16 -0700 (PDT) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 7894C24E2E4; Wed, 12 Jul 2023 17:20:15 +0800 (CST) Received: from EXMBX061.cuchost.com (172.16.6.61) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 12 Jul 2023 17:20:14 +0800 Received: from localhost.localdomain (183.27.98.46) by EXMBX061.cuchost.com (172.16.6.61) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 12 Jul 2023 17:20:14 +0800 From: Xingyu Wu To: , , "Michael Turquette" , Stephen Boyd , "Philipp Zabel" , Conor Dooley , "Emil Renner Berthing" CC: Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Hal Feng , Xingyu Wu , , Subject: [PATCH v7 8/9] riscv: dts: starfive: jh7110: Add DVP and HDMI TX pixel external clocks Date: Wed, 12 Jul 2023 17:20:06 +0800 Message-ID: <20230712092007.31013-9-xingyu.wu@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230712092007.31013-1-xingyu.wu@starfivetech.com> References: <20230712092007.31013-1-xingyu.wu@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [183.27.98.46] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX061.cuchost.com (172.16.6.61) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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. Reviewed-by: Conor Dooley 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 fa0061eb33a7..de0f40a8be93 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 ec2e70011a73..e9c1e4ad71a2 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -197,6 +197,12 @@ opp-1500000000 { }; }; + 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"; @@ -221,6 +227,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