Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1008178rwp; Thu, 13 Jul 2023 04:57:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlG1EYqfkILlWqWyj+XY8S2x1PcAljTNKP9X/wGvbj8z4zmf+OUIR3yV4gdSfhTNumgKP2CB X-Received: by 2002:a05:6402:110e:b0:51d:acda:2f4a with SMTP id u14-20020a056402110e00b0051dacda2f4amr1743815edv.37.1689249453816; Thu, 13 Jul 2023 04:57:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689249453; cv=none; d=google.com; s=arc-20160816; b=w/MlkcKGtiaaspIqehEIpW3TgeEEf2JJcuuZYEJJTkqLZ73NOjZe00m14X/ePtZFsq T/NQEQ2BU834wMg3amGEZ1eDB+jmDS7XZnErgl/86GZEP40g4XPdkFEpg+QEmTjYkW7W nDg6WIvZD3guZ/O7b2bKr5YzHsb8wRdIm9JJTcUXRVG6LbeIpM1pls7Wt1VUUhTxJZqQ Pf/tmiC9QoNIcxVQwY4g+FyDEnBMLJRc1XOzV8O4hM28jxLKtCVHMmEY+BA2lJKUt+9Y ncW0fu3k2d9rKnlff3aTU/4vQJwOOTkPBivBhS7TRUg3wR80PYFm5iC65CVQW8yjXxYr gMHg== 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=P2/TfRlfAmGIDLSDnnorYqfnS5hrZvGA/Skx1pbPRzQ=; fh=qwGfOW5uRLOnIplwCvjKbV2SRPI8kObUz3x28UYydk0=; b=HK3DN2jeT2DnxkcZ60K67OkTQQZo4Y558RqMu1AN6lefcTp/1JhDduKyQt6vQ+sA5f hjDq9DxJqtlxu9DtKlzDTfIhWBe9+dH5yeYDH8wMvhFYVhkiNxV7k9VbgZ1lW8iF+gCa KYte7XTCjCF5QnWrpL5KILV/LD5oQB1vWZ7Adl9K7vAqZxEREUB0lWUNRPhdv8ZxkdB7 WWWDMaBul1tuPbCeWAmkdpHyWIT4Jm2slOK8mBpoHeYlIs3pnTvlT7W9vftUdHVxdjcQ GjNstZLRLF9XbLAjizEwfqgnO7vqEgHKRwv+ZqyfatQm4HnJE8C9Cc+xMmOFFk+9cZyp yLJA== 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 x19-20020aa7d393000000b0051e0c84ecc8si8079604edq.317.2023.07.13.04.57.10; Thu, 13 Jul 2023 04:57:33 -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 S234653AbjGMLjz convert rfc822-to-8bit (ORCPT + 99 others); Thu, 13 Jul 2023 07:39:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234264AbjGMLjN (ORCPT ); Thu, 13 Jul 2023 07:39:13 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B34771FDB; Thu, 13 Jul 2023 04:39:11 -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 fd01.gateway.ufhost.com (Postfix) with ESMTP id 293448322; Thu, 13 Jul 2023 19:39:10 +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; Thu, 13 Jul 2023 19:39:10 +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; Thu, 13 Jul 2023 19:39:09 +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 v8 8/9] riscv: dts: starfive: jh7110: Add DVP and HDMI TX pixel external clocks Date: Thu, 13 Jul 2023 19:39:01 +0800 Message-ID: <20230713113902.56519-9-xingyu.wu@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230713113902.56519-1-xingyu.wu@starfivetech.com> References: <20230713113902.56519-1-xingyu.wu@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [183.27.98.46] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) 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_PASS,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. Acked-by: Palmer Dabbelt Reviewed-by: Emil Renner Berthing 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