From patchwork Thu Mar 16 03:05:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xingyu Wu X-Patchwork-Id: 70548 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp256162wrt; Wed, 15 Mar 2023 20:06:56 -0700 (PDT) X-Google-Smtp-Source: AK7set+73HdIVXpqpBddMtPJqVgH/G6mucz5xiM+1P6w96z6nV2du6yXWVNJ6HmKO67UKOg7r4rE X-Received: by 2002:a17:902:fa48:b0:1a0:4fb2:6623 with SMTP id lb8-20020a170902fa4800b001a04fb26623mr1393400plb.40.1678936016559; Wed, 15 Mar 2023 20:06:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678936016; cv=none; d=google.com; s=arc-20160816; b=tz8/QZmzgDUrhJppx07HlyAnWUV8CLsiRsvgRQtuPPBPxzJrp3X0JdSS1/Nbi8iV6A ozdd1Z1LJKnfpmzHAgEDudlJWvY1fYe+5fQZYzVOg8QM/IEfvJS5LQFxHgRx+La08u03 5V0s/LBBMzAewP2MsysMLO98wlA/SquAK9SPKHFU5HxwPmbGCnpdsD2IAmsWyPbOuLOx RheHwXqz2hQ4YQa3W8D0z7i8DfLe5hHO8EKPAahwfV1Xuzw5Wp9xnZ7hMf6yxP6ZD9g8 druu3w1xw8PtEfNh3btaiCbeT6Blzc0zol5PjuGqw+E5ECcsUPG+m7pdlevADKMdF7Bn fTjg== 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=wu/3lVHOkN41vHNOfZ5EZAxy+GkLIwb7TV8ps/699EQ=; b=P19JPPBUZsBSwZ7B3vC+vYZEfU+HmhrDIswfkrwibxRvle9eVZQmjwvlkpXIi87LXB VR494Ror3aI8d8zkjawnTwIlj3uI2x/CDsocHpcZ/peluvhos6aHHZunAwP4HjxeCnJR e8G1sbavIvjdOAvMZnLlUbLMjFuPu5lgza/c/8qSPcAaxU92Yly6Q+zWqWEYJaZso/k0 5B+K9EBWnXjuyqIbqm1Xp0YFWgWSvYMjs2QTAUyjaV4rLJ/MBtN7Pq57opLWxp3CXPFa z1DcJOdVD+2ldJYRAn0a3tssNzLdQQjXJ28e00KC7zz7hl+AtO2Tmz+poYhruEjvVy3v YJ9A== 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 a8-20020a170902ecc800b00194a944fecbsi7896160plh.268.2023.03.15.20.06.41; Wed, 15 Mar 2023 20:06:56 -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 S229950AbjCPDFp convert rfc822-to-8bit (ORCPT + 99 others); Wed, 15 Mar 2023 23:05:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229793AbjCPDF0 (ORCPT ); Wed, 15 Mar 2023 23:05:26 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9830BF951; Wed, 15 Mar 2023 20:05:23 -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 EFADD24E2B2; Thu, 16 Mar 2023 11:05:21 +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, 16 Mar 2023 11:05:21 +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; Thu, 16 Mar 2023 11:05:20 +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 , William Qiu , , Subject: [PATCH v2 6/6] riscv: dts: starfive: jh7110: Add PLL clock node and modify syscrg node Date: Thu, 16 Mar 2023 11:05:14 +0800 Message-ID: <20230316030514.137427-7-xingyu.wu@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230316030514.137427-1-xingyu.wu@starfivetech.com> References: <20230316030514.137427-1-xingyu.wu@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [113.72.145.194] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) 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?1760492012638683472?= X-GMAIL-MSGID: =?utf-8?q?1760492012638683472?= Add the PLL clock node for the Starfive JH7110 SoC and modify the SYSCRG node to add PLL clocks. Signed-off-by: Xingyu Wu --- arch/riscv/boot/dts/starfive/jh7110.dtsi | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi index 49dd62276b0d..37ccd4600da8 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -461,19 +461,29 @@ syscrg: clock-controller@13020000 { <&gmac1_rgmii_rxin>, <&i2stx_bclk_ext>, <&i2stx_lrck_ext>, <&i2srx_bclk_ext>, <&i2srx_lrck_ext>, - <&tdm_ext>, <&mclk_ext>; + <&tdm_ext>, <&mclk_ext>, + <&pllclk JH7110_CLK_PLL0_OUT>, + <&pllclk JH7110_CLK_PLL1_OUT>, + <&pllclk JH7110_CLK_PLL2_OUT>; clock-names = "osc", "gmac1_rmii_refin", "gmac1_rgmii_rxin", "i2stx_bclk_ext", "i2stx_lrck_ext", "i2srx_bclk_ext", "i2srx_lrck_ext", - "tdm_ext", "mclk_ext"; + "tdm_ext", "mclk_ext", + "pll0_out", "pll1_out", "pll2_out"; #clock-cells = <1>; #reset-cells = <1>; }; sys_syscon: syscon@13030000 { - compatible = "starfive,jh7110-sys-syscon", "syscon"; + compatible = "starfive,jh7110-sys-syscon", "syscon", "simple-mfd"; reg = <0x0 0x13030000 0x0 0x1000>; + + pllclk: pll-clock-controller { + compatible = "starfive,jh7110-pll"; + clocks = <&osc>; + #clock-cells = <1>; + }; }; sysgpio: pinctrl@13040000 {