From patchwork Thu Sep 21 10:00:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ravi Gunasekaran X-Patchwork-Id: 13393810 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0E3DBE70704 for ; Thu, 21 Sep 2023 10:01:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4vZUWRIwe+6NLM/sWUHD5lYKbXBGQkZprXkXEhAh+mE=; b=S+M+yf2bNrnqSW 7Tjri4X3bE1ykh67FiV/RHtHD0HVPuICbt8+IFDADYxwx6FXtmt2auiWHXuO8qQgzxL4a901bjNaH KvruhSNfxk/Run4vPSWLSV4xLanT9OByeqL1O2fcr6Ux0il9dU6ZAui170CF6LSOKgTowwsTwJWAg dc+4D+ND0suJBO78UoeniLONgQeAERgdnzyLYYYBefnnfXZL5dnsUPzVxuinw8QUZFcQoKH7VX3VL eEWKoT4oonnlUsnFnr/o8aazlsgfLqUO23Trqr/48QKHeIZuS+YA/8a3cks7DV3+wiMT+aX10PNTk rY/+3xiY4BCYS/xjhMcA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qjGUV-005fAo-1W; Thu, 21 Sep 2023 10:00:59 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qjGUQ-005f8r-0p for linux-arm-kernel@lists.infradead.org; Thu, 21 Sep 2023 10:00:55 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 38LA0oR8085102; Thu, 21 Sep 2023 05:00:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1695290450; bh=EsvOrBq7yihY3/OtNp4KrVyXfQle0crBb8XNiHbDFO0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=oSAKg0QR5KV/xt9mePeF/2xZCVPOWmF2STv/s36X85SjJwXNBgY6w+AIrUO+5ovJ8 65wqZ8EtefNXVU/Ini2/NuzEtuwQTfOd3y9GcehwOaGD4MTwrB8JQvbBv9ZZgZZxJs zdGPjesgR41mhyHr4+wuBOKrjHiHxGB5YvBRpbBQ= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 38LA0olY024130 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 21 Sep 2023 05:00:50 -0500 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 21 Sep 2023 05:00:49 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 21 Sep 2023 05:00:49 -0500 Received: from uda0500640.dal.design.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 38LA0dD5060269; Thu, 21 Sep 2023 05:00:47 -0500 From: Ravi Gunasekaran To: , CC: , , , , , , , , Subject: [PATCH 2/3] arm64: dts: ti: k3-am68-sk: Add DT node for PCIe Date: Thu, 21 Sep 2023 15:30:38 +0530 Message-ID: <20230921100039.19897-3-r-gunasekaran@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230921100039.19897-1-r-gunasekaran@ti.com> References: <20230921100039.19897-1-r-gunasekaran@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230921_030054_372962_01D6CAF5 X-CRM114-Status: UNSURE ( 9.98 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Sinthu Raja AM68 Starter kit features with one PCIe M.2 Key M connector interfaced via two SerDes lanes. Update the SerDes configuration for PCIe. Signed-off-by: Sinthu Raja Signed-off-by: Ravi Gunasekaran --- .../boot/dts/ti/k3-am68-sk-base-board.dts | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts b/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts index 5df5946687b3..81c2307c77f9 100644 --- a/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts +++ b/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts @@ -553,3 +553,32 @@ }; }; }; + +&serdes_ln_ctrl { + idle-states = , , + , ; +}; + +&serdes_refclk { + clock-frequency = <100000000>; +}; + +&serdes0 { + status = "okay"; + + serdes0_pcie_link: phy@0 { + reg = <0>; + cdns,num-lanes = <2>; + #phy-cells = <0>; + cdns,phy-type = ; + resets = <&serdes_wiz0 1>, <&serdes_wiz0 2>; + }; +}; + +&pcie1_rc { + status = "okay"; + reset-gpios = <&exp1 10 GPIO_ACTIVE_HIGH>; + phys = <&serdes0_pcie_link>; + phy-names = "pcie-phy"; + num-lanes = <2>; +};