Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp639255rdh; Sun, 24 Sep 2023 05:47:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHjkzzP5Lm1TOcdP9vWC0TKg3Cfov+oLwYZoKMXmCnw+sD2oMyyKBwxui0YbOMKST92EmRu X-Received: by 2002:a05:6a21:4889:b0:14c:4dfc:9766 with SMTP id av9-20020a056a21488900b0014c4dfc9766mr3521277pzc.46.1695559631824; Sun, 24 Sep 2023 05:47:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695559631; cv=none; d=google.com; s=arc-20160816; b=wvvKfymzVsPLGB2gS8q9M6FhOKKyKSYywJZvIng5zC291Npz8/a2hcAYu5TNSCy110 Utag1eKIr8hRZ68DV4JrO21duiziboCBEHpiVUHda1LpcgJgdA5NbqYM7ygM0Id5IVqr 50JMr45gNhhnCDlUlWEHVOUyZPJYXSjO9PfFnDjmVO891V2qEL0BgIHbanm07CklKg9R gSJ+q03+/k4cSiFW0Ye+Jj6ohB5Th/6rCUoRMlkx/lx4gNPmZW9spwUpVPVodsi4m1zO e3wYg4iSKzztYMWDfPM6vNHFPt/lZVvORQJuFCK5FmHCzjg73SfSObnAIihFlBfoTIBu U5xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HRXfnyZhAHH9gbXIOVQore8nMsNE9IWsVj6E+FU/aTI=; fh=hYCo72FW9mhssGOdn7b107ph+0UpHX3PwmmHogUkIcU=; b=K5aYUDDFqlu3ExU68nrikLpDiND5CyM7A/J6UK3iiSCldjXM4RvTNSTTm4ZQ5DTuaV mf5Igi7yGxFcOCLh9YnUIYo2h+a6POgL/MPWaoU3j5ggZ0xdLpcm4L5V37iBBfVwmfmk xhTD3ELipxb6hv1ffECVFy5+/QZn4ZAmROpHEghItlTBtpY0oeyCBY1C4UeuB3FxYgoa a9nf44uuxX+v4RjsBaUpPjWOUhLrr1iwX36KXg+wvnWsnjuC/oKnzKTcJZ8BbvI+BlC+ D9aPahaU0vsGfT/66hBc5ea5Lc/6c3on8kNpEjQncQbojr2Owdw8FmCF97UT0/SR0+1D BX2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EHqwBAXi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id c7-20020a170903234700b001a6bb7b7a44si8196332plh.307.2023.09.24.05.47.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Sep 2023 05:47:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EHqwBAXi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E30C5805C14B; Sun, 24 Sep 2023 05:47:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229672AbjIXMrL (ORCPT + 99 others); Sun, 24 Sep 2023 08:47:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjIXMrK (ORCPT ); Sun, 24 Sep 2023 08:47:10 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6005106; Sun, 24 Sep 2023 05:47:04 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BBD85C433C8; Sun, 24 Sep 2023 12:46:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695559624; bh=uYDw7caeln0FE8YZ0R4Znc7FgE+rD8pGLZ2Fc9rKI3U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EHqwBAXiXCUH9ykTbb0MTUF/PMGUmFZBUnid9zNYIU6+jUiHLI4TsroGwPKQPAFJx Fc4kdKrYSW3174uAaC4eA/tPaMd2NnwjVGY2jjyEIDNqB3uAyaoqRDV4PS5wyG/3e4 f2SlyocrDXLZo4ZHAL4gvfQd+9lfvzNtKrcKTPgoRXd63x5JD8GUSCCUY2q6OtiySI bGxJhUuTtslZ22g9IFWf0FimwjUp3hSIo7AEGE05Aa7jbuMK0RmG83110SmUFTRwPZ efy1asMpQQVDS0llyYEQrgkqLysqHVe6LawO8MvjUpDioEBf6MwBj4jiE/+u6pMeun hH+46nlkAQ7NQ== Date: Sun, 24 Sep 2023 20:46:50 +0800 From: Shawn Guo To: Adam Ford Cc: linux-arm-kernel@lists.infradead.org, aford@beaconembedded.com, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Geert Uytterhoeven , Magnus Damm , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH V2] arm64: dts: imx8mp-beacon: Configure 100MHz PCIe Ref Clk Message-ID: <20230924124650.GD7231@dragon> References: <20230813164003.23665-1-aford173@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230813164003.23665-1-aford173@gmail.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, 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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sun, 24 Sep 2023 05:47:10 -0700 (PDT) On Sun, Aug 13, 2023 at 11:40:03AM -0500, Adam Ford wrote: > There is a I2C controlled 100MHz Reference clock used by the PCIe > controller. Configure this clock's DIF1 output to be used by > the PCIe. > > Signed-off-by: Adam Ford > --- > V2: Remove the pcie0_refclk clock that the new one replaces. > > diff --git a/arch/arm64/boot/dts/freescale/imx8mp-beacon-kit.dts b/arch/arm64/boot/dts/freescale/imx8mp-beacon-kit.dts > index acd265d8b58e..a8ccde678c33 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mp-beacon-kit.dts > +++ b/arch/arm64/boot/dts/freescale/imx8mp-beacon-kit.dts > @@ -23,6 +23,12 @@ chosen { > stdout-path = &uart2; > }; > > + clk_xtal25: clk-xtal25 { clock-xtal25 for the node name? > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + clock-frequency = <25000000>; > + }; > + > connector { > compatible = "usb-c-connector"; > label = "USB-C"; > @@ -112,12 +118,6 @@ led-3 { > }; > }; > > - pcie0_refclk: clock-pcie { > - compatible = "fixed-clock"; > - #clock-cells = <0>; > - clock-frequency = <100000000>; > - }; > - > reg_audio: regulator-wm8962 { > compatible = "regulator-fixed"; > regulator-name = "3v3_aud"; > @@ -246,6 +246,13 @@ pca6416_3: gpio@20 { > interrupt-controller; > #interrupt-cells = <2>; > }; > + > + pcieclk: clk@68 { clock-generator in the bindings example seems a better node name to me. Shawn > + compatible = "renesas,9fgv0241"; > + reg = <0x68>; > + clocks = <&clk_xtal25>; > + #clock-cells = <1>; > + }; > }; > > &i2c3 { > @@ -372,8 +379,9 @@ &pcie { > }; > > &pcie_phy { > + fsl,clkreq-unsupported; > fsl,refclk-pad-mode = ; > - clocks = <&pcie0_refclk>; > + clocks = <&pcieclk 1>; > clock-names = "ref"; > status = "okay"; > }; > -- > 2.39.2 >