From patchwork Tue Mar 14 12:44:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xingyu Wu X-Patchwork-Id: 69645 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1782376wrd; Tue, 14 Mar 2023 07:12:16 -0700 (PDT) X-Google-Smtp-Source: AK7set9tRjC4RBAxg8NKtYhmqtQajmrVHQTOv0l/fUfSmJ1Z8JWO2OD257TiBzVPhRzprbWm134v X-Received: by 2002:a05:6e02:2164:b0:316:b0bb:3d99 with SMTP id s4-20020a056e02216400b00316b0bb3d99mr2997437ilv.22.1678803136347; Tue, 14 Mar 2023 07:12:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678803136; cv=none; d=google.com; s=arc-20160816; b=kxSzVLCRtYNw2zuSr6IcjcjieYzsNDwuWllLWdeJxDVbOhLQP68qQXirfvl+fzjnTe 8hT3A0XxKWYsTkwj/yf29iNVzPlyTRmUphdLDglJ9SoAHdYHBY/6fQY/FW3VBZ20pwDF AXMSW9bAx5RBexbLTWLt3WmfsXTLafb9efFRHst1Fr06mJ+BDUOJvl3EigyqJhdifKQu 569SENYdCoLdk/92aOpiI+px8/CV2xNb7lQr9V/2iVrCClDgojsIDQGJJHf8ySRfgqwk b7C5jl8iTh8Fk6bWiF7/ArWBRDqYYWMocFoJeOuK1DVsRfOsrL6CqAD1gXxKI+1+01Zh ODtQ== 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=dNw7mR2/Bhv6TxL0J6Z5rGiYmEE1ywJSz+NRpCdusDI=; b=aS8mAw9lZSyOgFSxNRPUNoogwBPa/7iyV8LlSDVxFo2+9CEt04VkcCV/L+QnNcMpJF WnPZj4TOJiJzvUrhHkWdE/bH1SBDT7VMC5nXh4EIUbzLN3xeHsetPBOW4OCYOuFQabRe Vj1IJB1wLxaWnXyTgxUHGauxFRjv2mKtVqezGREcXwCJe5pk8opi8ngRak7H4If5UNa5 cZpfMamJXa9IxjIoXbvjCUEqs7EmRxiB3scpj7KrKG6qYirW+XCQSfHBaIBGfMGrbcnF gIrqjkDuShhZaIa6/n7RsTbSF+Ulty4/xK3EQ9jAy6B0+yuwzUlevhhtnqyDu7lu3bPr Vn4g== 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 x5-20020a92d645000000b00318d4c5ba39si2191912ilp.29.2023.03.14.07.11.59; Tue, 14 Mar 2023 07:12:16 -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 S232226AbjCNNLU convert rfc822-to-8bit (ORCPT + 99 others); Tue, 14 Mar 2023 09:11:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231718AbjCNNKz (ORCPT ); Tue, 14 Mar 2023 09:10:55 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 127432A153; Tue, 14 Mar 2023 06:07:37 -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 1DE5324E3CA; Tue, 14 Mar 2023 20:44:14 +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, 14 Mar 2023 20:44:14 +0800 Received: from localhost.localdomain (113.72.145.194) by EXMBX061.cuchost.com (172.16.6.61) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 14 Mar 2023 20:44:12 +0800 From: Xingyu Wu To: , , "Michael Turquette" , Stephen Boyd , Krzysztof Kozlowski , Philipp Zabel , Emil Renner Berthing CC: Rob Herring , Conor Dooley , "Paul Walmsley" , Palmer Dabbelt , Albert Ou , Hal Feng , Xingyu Wu , , Subject: [PATCH v3 10/11] riscv: dts: starfive: jh7110: Add DVP and HDMI TX pixel external clocks Date: Tue, 14 Mar 2023 20:44:03 +0800 Message-ID: <20230314124404.117592-11-xingyu.wu@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230314124404.117592-1-xingyu.wu@starfivetech.com> References: <20230314124404.117592-1-xingyu.wu@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [113.72.145.194] 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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760352677637322836?= X-GMAIL-MSGID: =?utf-8?q?1760352677637322836?= 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 417f7f51c219..d2757f4afab3 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -173,6 +173,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"; @@ -197,6 +203,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";