From patchwork Sun Aug 13 16:40:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 135062 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp2293368vqi; Sun, 13 Aug 2023 10:05:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGYWaObOLHrXONcKTz5k130WX0aBDHNCEU4oKQEWQi4cQwWT8+7rqUdU0my6viRI5u9kaGB X-Received: by 2002:a05:6512:36cb:b0:4fe:54f:6cdb with SMTP id e11-20020a05651236cb00b004fe054f6cdbmr5171126lfs.33.1691946306849; Sun, 13 Aug 2023 10:05:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691946306; cv=none; d=google.com; s=arc-20160816; b=Ox5SJ4LT0dyvh0tpCfC43CHgmuABvkTpMVjgglRW5225XnlT9XphbwL8HZ/+1l97bl Uau8q3TWrgv+4idYqKtBICb4W4prKwiccmu1ajRd8zsGAeSHnkdS7GjXNseaRzX345pK mJx3mBtVQsfjijxNpCUF0dkp9UQlAj6Bsa+dWTO3w5JUMRVli1CzFoF8+9NaDzJqq4ZO I/+r018CQ/yOyPjA9q9UcDv+q4nI/sqYgwnJEXjBJ0M1yLz3Pw5BXzhNWuu5m0L5/5Ky Rj1tZw8E3MoiYdSc/BmpN1kCFEcySJROE107rg4lENbg8TFiQEFMwQwwruhrPKEiaxDd egbQ== 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=jkYKfnm23y0JZXyxkiMl6WeMULC/M4WeYqcWbde97zA=; fh=2gnSqKQCi6H7nO/hlfV1K5K9QiBszkvI59dC8QhS+UM=; b=TtGIofVfoV58UzSQWaKstgRIS0lAfLTQYndYsWgSaWwE/EsjSjtm/jRoI56gz21xUx tGJAT2y+RoGZ0pEgcIXk4C+lsxN8B8kdQxPkaVnv9RNo8EcEwsm/0DTGGW26VZi72YMh o32ON1AZG4sysjoDnE791fjbw3BWLG6IS5PNZbjfr+CMwciy8rK8J2htEldeyi0t6Svq j3jj+DiWO65hxdFzUua5N8k5zYWfEdqrvljkqshVBKJQD/YaTUcjZmveuqyBcBfLDrT+ +uLULPCCbml/cxOq+V53VfhtAnWZisY6aq4XihIKorHP4S7IXkBi6WAHEg3FhXauiS6V Ba1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="H/GsSPCb"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j10-20020aa7c40a000000b00523073906f2si6598516edq.536.2023.08.13.10.04.37; Sun, 13 Aug 2023 10:05:06 -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; dkim=pass header.i=@gmail.com header.s=20221208 header.b="H/GsSPCb"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229931AbjHMQkK (ORCPT + 99 others); Sun, 13 Aug 2023 12:40:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbjHMQkJ (ORCPT ); Sun, 13 Aug 2023 12:40:09 -0400 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12BC893; Sun, 13 Aug 2023 09:40:11 -0700 (PDT) Received: by mail-io1-xd36.google.com with SMTP id ca18e2360f4ac-79095499a17so164254439f.3; Sun, 13 Aug 2023 09:40:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691944810; x=1692549610; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jkYKfnm23y0JZXyxkiMl6WeMULC/M4WeYqcWbde97zA=; b=H/GsSPCbd4ors8L8mZCdUp4F+d2nKBW9GbUMH1M1DUSAyvBY8fzWA9Uf9/P7s7GYu0 4XbALQdTivKcTStQ92sKecNqszOFyg5VlKi8gBjbL2Q9gRyoqIHvoS8lMm71t6222Q3s zVUYab5IkC01C+FlXLbpYDhTUGOXs60VAZdV4IjehFoM5nzN2CKZicSeB+Xo5v9gdKR8 /Gd0WEC3TKiACGpEWaJPRVCNsQfn+CN54+rLbpipVXaxKgoPFQyOp9O+C4VkP+Ldvhcj 5+FuaJE5sp8H/iumKHesFLdOQiqHZ4hXTY85k4x02kldao5LWgzhR9E4JbFsYrjs0buv tBfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691944810; x=1692549610; 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=jkYKfnm23y0JZXyxkiMl6WeMULC/M4WeYqcWbde97zA=; b=OYE5eMCcEfw/rz/pEMfPl2ySUtbovoVaGQYagA3DhviREfZ2jQdh4IIi+A2rnt/7o7 uJftuDS7b6TCLJAC+LaHHiUK4N/OBmJiviJ0l4DsJnnXfHybQsrtYGIyk+nfWYSAiUdn FXVLL34sM1QhKw4VJIvjdzeSq2LShpYdNPPTRPrwPgkI5GwiSQYqFe6+xGQjoNqwCpVa AQUeePCg06Kz1r/iXRIM9K1jpeL/wDOF2ACybrnNIMt1YhpKspQDMjipi8i5Xx34DLOX PLFKsGGqEoBCE8VD1qri8m4lawgiMmagddAsR3g43PZys+RUYXMOEqL19VEApWM3Tbor gP3A== X-Gm-Message-State: AOJu0Yxh9AAnz1uwJZGNHBFkk72rJu5OrZdqpSngG3aS7Oz2V2+EL17o oWDCjJg6zspFoNEFvtO56E8= X-Received: by 2002:a05:6e02:dc1:b0:348:1a1c:3ed9 with SMTP id l1-20020a056e020dc100b003481a1c3ed9mr10065642ilj.11.1691944810330; Sun, 13 Aug 2023 09:40:10 -0700 (PDT) Received: from aford-B741.lan ([2601:447:d001:897f:21ab:bc25:b29c:7b7e]) by smtp.gmail.com with ESMTPSA id v1-20020a92d241000000b00345d6297aa7sm2631301ilg.16.2023.08.13.09.40.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Aug 2023 09:40:09 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: aford@beaconembedded.com, Adam Ford , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , 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: [PATCH V2] arm64: dts: imx8mp-beacon: Configure 100MHz PCIe Ref Clk Date: Sun, 13 Aug 2023 11:40:03 -0500 Message-Id: <20230813164003.23665-1-aford173@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,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: INBOX X-GMAIL-THRID: 1774134290417746292 X-GMAIL-MSGID: 1774134290417746292 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 --- 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 { + 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 { + 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"; };