Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2933732rdb; Wed, 4 Oct 2023 16:52:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFfnXqTqpGKVkfeqgxPhGucjyMFCBPT3PjkPXbvit8n/flX+heIYC+rG+p2eEqbSycbPYeW X-Received: by 2002:a17:902:db0d:b0:1bf:8779:e045 with SMTP id m13-20020a170902db0d00b001bf8779e045mr4385450plx.50.1696463550607; Wed, 04 Oct 2023 16:52:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696463550; cv=none; d=google.com; s=arc-20160816; b=yfXLWur3Kd+sTSXH2LeKLNSD/qwIZtPzOFYJTjtzLZecmO0JrOJq8yXDggDgwa0BFL Bkwq0IPAZ83AgevOxzebNVADIcU4++w8Cs94e9Nb7I/HCZc/q3DdbUTYOveyoT89vMUS Q/HmAyxFknNGZOUiXwL59sLoR3rwVIlDp5bVeJ6P2F8n+/RLKrX2Jpb6orT9CMU35cYM Mw9UOetk7lofc0mYnQowlg/77oh3lJtZKvK9cx9V1Bj81IeSgj+WAsdBcd2Bef2NlZx2 /bWNDKBpLT5K+ACi+AP/6SHd3WeCTa4+E76T76GvR+9vQHxxdlPxOLUdtAeJEKzumePV EskA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=MhZXr21KLCmIO4npUIdtZ1N38RyZs2D7b1DH4qFOEtI=; fh=7LJDgLVwHJBrFlFU59fVmXvtQrEdz6NK/UrSLWdAk3o=; b=HOvIK1UjGSudJiYxHXeQKVzrjxXHRXnsSb1mF+jQaUuEXsk0YZBbd6ja7LHHatNHQW 45x2J4rPAQIOZx5vEjtqAZmlmURhmbutKTYmqEQvRrgl8I6oeMTgON3POnV0EeMwK53S Lo8f+9NzIfJ9Thvqh/yflOCk3uT18ITd42RkABBOqDWJyNxDJFvX+pMKXX/+Sd4vmRKF HExK57C0tybEB4JSLlOMgE8farJIc7v5ea6qcmhYMPXqmBw+/0WVzeRWLbeblzbaeSA5 QsxGrstrtZpxcaxV4A8jMWuA4IgtJDNgWvvKdr/nJtFN10hGMwV+JdfXzgZNGBHPdjq1 C7Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gFn+9jJc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id o4-20020a17090323c400b001bdebddc2f7si256975plh.257.2023.10.04.16.52.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 16:52:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gFn+9jJc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 738B8830D136; Wed, 4 Oct 2023 16:52:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243914AbjJDXwE (ORCPT + 99 others); Wed, 4 Oct 2023 19:52:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240836AbjJDXwD (ORCPT ); Wed, 4 Oct 2023 19:52:03 -0400 Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 723D8C0; Wed, 4 Oct 2023 16:51:57 -0700 (PDT) Received: by mail-il1-x12d.google.com with SMTP id e9e14a558f8ab-3515aad4a87so1845575ab.3; Wed, 04 Oct 2023 16:51:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696463517; x=1697068317; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=MhZXr21KLCmIO4npUIdtZ1N38RyZs2D7b1DH4qFOEtI=; b=gFn+9jJcqiAYIFIQ1UqW97yFSQC/uv1GYqbJTgRiihI+G2hW7EiV7uVw/u5LkpKYxW zoUGGIMTtKTIuksnDKe4fOmAA200RvGMewb5UrBWOMu0XVKkJM2MFzfRh6tCCYcPWZoi 8SS8ZSL3Q4Xe9Roctg9yQIQ/WgZ/DckvFj9TRC3y88tVC+OqMrZw7iuMwII0ztF6vd5I 2Py9tAKffxd5qVZTz3li33+xGnymwziDYiVZgXBzAlgbC5X3X/DbwxPvxModjGmvHU32 +dIxgu1K5AlpcpCVZRxN+Z0vw5lmLIrbSopLqUNxbU/7a9uhYY88G6Z4LsSFNbgbEGgK GIaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696463517; x=1697068317; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MhZXr21KLCmIO4npUIdtZ1N38RyZs2D7b1DH4qFOEtI=; b=XiJFYqOGk/GtmjDa/u7uuwhJ7yxbMkISm51FytNDNvFdUy3kaE/6hVpD2sxlJHpbv0 nmtT2KLDzEhxzTRhWPBPGhJSfMk88RO1pI1jI1HAVN8Odd0vIwBf3VqWkWYnIcIeti2r 53MJn0L2C8MXTahPaa+tkDjpq9ZGGCbz615IXR5Sbby1fhKp/ZIf1rYxR1SmuBL371bx oDvuloIpcmDNozVnRw22EIN594PP53cnZgj6C1zI1AxXQtXevuyY/7SD2bLBU3ml3JFc htH4lKYjX47/3Sbko+1WXev2aCtx+inxpRwWVaif5uSwuIrIJTdIWrS9g1wgl6PdIcb8 WKVg== X-Gm-Message-State: AOJu0YxVgoKBsitCVSGtSu/njPWP1QjSrpAtA+A7kncAhUpNHChIQjNs 01HTjrtqVA1L8gKmFjccu68= X-Received: by 2002:a05:6e02:118c:b0:351:47fd:e9d4 with SMTP id y12-20020a056e02118c00b0035147fde9d4mr3568332ili.20.1696463516659; Wed, 04 Oct 2023 16:51:56 -0700 (PDT) Received: from aford-System-Version.lan (c-75-72-166-104.hsd1.mn.comcast.net. [75.72.166.104]) by smtp.gmail.com with ESMTPSA id d12-20020a92680c000000b00350b7a9f0c1sm71032ilc.62.2023.10.04.16.51.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 16:51:56 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: aford@beaconembedded.com, Adam Ford , Fabio Estevam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , Geert Uytterhoeven , Magnus Damm , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: [PATCH V3] arm64: dts: imx8mp-beacon: Configure 100MHz PCIe Ref Clk Date: Wed, 4 Oct 2023 18:51:47 -0500 Message-Id: <20231004235148.45562-1-aford173@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Wed, 04 Oct 2023 16:52:27 -0700 (PDT) X-Spam-Level: ** 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 Reviewed-by: Fabio Estevam --- V3: Update node names, clock-xtal25 and clock-generator per Shawn Guo 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 ee64c6ffb551..0bea0798d2db 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: clock-xtal25 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <25000000>; + }; + connector { compatible = "usb-c-connector"; label = "USB-C"; @@ -118,12 +124,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"; @@ -273,6 +273,13 @@ pca6416_3: gpio@20 { interrupt-controller; #interrupt-cells = <2>; }; + + pcieclk: clock-generator@68 { + compatible = "renesas,9fgv0241"; + reg = <0x68>; + clocks = <&clk_xtal25>; + #clock-cells = <1>; + }; }; &i2c3 { @@ -408,8 +415,9 @@ &pcie { }; &pcie_phy { + fsl,clkreq-unsupported; fsl,refclk-pad-mode = ; - clocks = <&pcie0_refclk>; + clocks = <&pcieclk 1>; clock-names = "ref"; status = "okay"; }; -- 2.40.1