From patchwork Thu Sep 8 01:20:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 12969564 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 5DC67ECAAD3 for ; Thu, 8 Sep 2022 01:22:17 +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=N0FnX9Q2X85Cmv6y+ljiYytFjCiSAvO7RCSmJ5TKovs=; b=w4/T9hT5yIYiWY 9FjcuFZB6FVHi67wfjVDKVuKFHkjkmUdHmQ3ydJQv3LhGqDsOofSUKhPqOW+adOg/rgEbbj06YvMC EBG1V6Uo3jZPYDEyDYsvYTem7BjL/ltclO6NYhorM6OzpLaugTA4I/F/bT8pLym5cn7eEGlwBjxrJ 66QiMojQtDbv+0WNQov/bm2Eut6iSsx4OhQoI7ScurqVYyGHaz7b9HYinzSooT7ZpRPyPdCCObBlU mgJbDGNLd1gyw/P2fgHQIQFOwRpINWpRVvvLD8VgIYM4i6jEbovsHNdDMIcosBtYLMfo050i6/iuq 7EvO8iY/1LoIX9cCMV7Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oW6EG-00EJ5q-RD; Thu, 08 Sep 2022 01:21:17 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oW6E3-00EJ0J-7s for linux-arm-kernel@lists.infradead.org; Thu, 08 Sep 2022 01:21:04 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2881L2MT077480; Wed, 7 Sep 2022 20:21:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1662600062; bh=62OK8Dd4YH/7ZhSRsqTkoXZBSV79+iiRosyVCNLWSss=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Yv9Ex9G6aaOFExmvWY8mfdyjvPd0m/3P8li9GOfvtAyCpP6anyIqQ6deq8cJTPxmT 0l9Y5O+neC82Y/T0cunVMkqCSR8gJGZZHkByCHMwTX/dgjfqPFOtVMGXF/sKHlZ60c 1QIaVetm+CWG7DAg8wS+xSxVmWhCvPEfaXijECu4= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2881L2x2093426 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 7 Sep 2022 20:21:02 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Wed, 7 Sep 2022 20:21:02 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Wed, 7 Sep 2022 20:21:02 -0500 Received: from ubuntu.ent.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2881KXFf009016; Wed, 7 Sep 2022 20:20:56 -0500 From: Matt Ranostay To: , CC: , , , Matt Ranostay Subject: [PATCH v2 4/6] arm64: dts: ti: k3-j721s2-common-proc-board: Enable SERDES0 Date: Wed, 7 Sep 2022 18:20:29 -0700 Message-ID: <20220908012031.3354-4-mranostay@ti.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220908012031.3354-1-mranostay@ti.com> References: <20220908012031.3354-1-mranostay@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-20220907_182103_388603_661C1E45 X-CRM114-Status: GOOD ( 11.48 ) 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: Aswath Govindraju Configure first lane to PCIe, the second lane to USB and the last two lanes to eDP. Also, add sub-nodes to SERDES0 DT node to represent SERDES0 is connected to PCIe. Cc: Vignesh Raghavendra Cc: Nishanth Menon Acked-by: Matt Ranostay Signed-off-by: Aswath Govindraju --- .../dts/ti/k3-j721s2-common-proc-board.dts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts index b210cc07c539..791f235bd95f 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts +++ b/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts @@ -9,6 +9,9 @@ #include "k3-j721s2-som-p0.dtsi" #include +#include +#include +#include / { compatible = "ti,j721s2-evm", "ti,j721s2"; @@ -350,6 +353,25 @@ &cpsw_port1 { phy-handle = <&phy0>; }; +&serdes_ln_ctrl { + idle-states = , , + , ; +}; + +&serdes_refclk { + clock-frequency = <100000000>; +}; + +&serdes0 { + serdes0_pcie_link: phy@0 { + reg = <0>; + cdns,num-lanes = <1>; + #phy-cells = <0>; + cdns,phy-type = ; + resets = <&serdes_wiz0 1>; + }; +}; + &mcu_mcan0 { pinctrl-names = "default"; pinctrl-0 = <&mcu_mcan0_pins_default>;