From mboxrd@z Thu Jan 1 00:00:00 1970 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 47DC8C25B78 for ; Tue, 28 May 2024 12:26:34 +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:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hOMnGuHTNSL+LNX9Pq1NzIfN2FcOis+POx4IQMQr1Dk=; b=CMKlZ4uZDnuI/m qg8pgp96tzr2lYcWgwIFBS6xFwXZO9XKsK4hcswbAhNbZ4lJtPabcOYhJLNOFiPOuxQK6DbeuPe7S hj+5+OEG7snMyFhqt5jF4xmWa7cB7PyJDjdHdJDpTQ0XYt7owSsgOrQgb6fpCNFaTIdFVXcWkeymz Lk+X7Y2AZ77WkJqtVTNq5PmCwDQFjuMnIoNjm9lwueaw6Plqr/Jd1+ESRjOkzt3UsmcLY4JwZ59I+ eF/jztrLhEkraro1m1neVugnRcrCvN7OLX+Me+hoS5iL3XaRALcbcKWN+a/22WwLjFA9yFa9CINIG kNMbg+62vJkvQ/2FHLqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBvuL-00000000a1V-3Bl8; Tue, 28 May 2024 12:26:25 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBvuD-00000000Zxt-3frN for linux-arm-kernel@lists.infradead.org; Tue, 28 May 2024 12:26:20 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 4A8216206E; Tue, 28 May 2024 12:26:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD362C3277B; Tue, 28 May 2024 12:26:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716899177; bh=pFz/z+f/rVhs3WRovPmI3LChJp6uQxijM+hhiocDzeQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=he62I3MsHJZldqPro55Y1qUEP6nTT6IFXWzHd3uyT7RZ2essiGre2cEg6RcIOHGMQ +uVjnc+x1awPcHUGRp579KTV6lE5wuhUH8XmuQ3N8vvRxYt7dojtEjnQzMk4mNwHrZ BZJ+4hm+0boqVutAzAgaD0ZJDokErkwRPb0Sc4PisqmfIN15iN7lRkZZ2kuzqzOFh5 afYqzUE5D1F0PD9EjlgzOYQzMulMPyPkBtpJqeflCM1Qtn9gK61rDsFiM1kW9Ecjde rgq/869bO8n6ZwzV6fakfUJVK2t2scsSxbcubB1/qEVzXxkur7y5GglFUfHr24qvj+ nvJTGiSZK9BZQ== Message-ID: Date: Tue, 28 May 2024 15:26:11 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 7/7] arm64: dts: ti: k3-j722s: Add support for PCIe0 To: Siddharth Vadapalli , nm@ti.com, vigneshr@ti.com, afd@ti.com, kristo@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, u-kumar1@ti.com, danishanwar@ti.com, srk@ti.com References: <20240524090514.152727-1-s-vadapalli@ti.com> <20240524090514.152727-8-s-vadapalli@ti.com> Content-Language: en-US From: Roger Quadros In-Reply-To: <20240524090514.152727-8-s-vadapalli@ti.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240528_052618_189800_4A500095 X-CRM114-Status: GOOD ( 16.30 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 24/05/2024 12:05, Siddharth Vadapalli wrote: > The PCIe0 instance of PCIe on TI's J722S SoC is a Gen3 single lane PCIe > controller. Add the device-tree nodes for it and enable it in Root Complex > mode of operation using Lane 0 of the Serdes1 instance of Serdes. > > Signed-off-by: Siddharth Vadapalli > --- > Current patch is v1. No changelog. > > arch/arm64/boot/dts/ti/k3-j722s-evm.dts | 17 +++++++++++ > arch/arm64/boot/dts/ti/k3-j722s-main.dtsi | 37 +++++++++++++++++++++++ > 2 files changed, 54 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-j722s-evm.dts b/arch/arm64/boot/dts/ti/k3-j722s-evm.dts > index 16c6ab8ee07e..d2d7de5cfe27 100644 > --- a/arch/arm64/boot/dts/ti/k3-j722s-evm.dts > +++ b/arch/arm64/boot/dts/ti/k3-j722s-evm.dts > @@ -416,6 +416,16 @@ serdes0_usb_link: phy@0 { > }; > }; > > +&serdes1 { > + serdes1_pcie_link: phy@0 { > + reg = <0>; > + cdns,num-lanes = <1>; > + #phy-cells = <0>; > + cdns,phy-type = ; > + resets = <&serdes_wiz1 1>; > + }; > +}; > + > &usbss0 { > ti,vbus-divider; > status = "okay"; > @@ -439,3 +449,10 @@ &usb1 { > phys = <&serdes0_usb_link>; > phy-names = "cdns3,usb3-phy"; > }; > + > +&pcie0_rc { > + status = "okay"; > + reset-gpios = <&exp1 18 GPIO_ACTIVE_HIGH>; > + phys = <&serdes1_pcie_link>; > + phy-names = "pcie-phy"; > +}; > diff --git a/arch/arm64/boot/dts/ti/k3-j722s-main.dtsi b/arch/arm64/boot/dts/ti/k3-j722s-main.dtsi > index 19a7e8413ad2..0b32893eb75e 100644 > --- a/arch/arm64/boot/dts/ti/k3-j722s-main.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-j722s-main.dtsi > @@ -4,6 +4,7 @@ > * Copyright (C) 2023-2024 Texas Instruments Incorporated - https://www.ti.com/ > */ > > +#include > #include > > /* > @@ -96,6 +97,35 @@ serdes1: serdes@f010000 { > }; > }; > > + pcie0_rc: pcie@f102000 { Please split PCIe node addition in to separate patch. hopefully you can squash it with patches that add USB, SERDES0 and SERDES1 to k3-j722s-main.dtsi. > + compatible = "ti,j722s-pcie-host", "ti,j721e-pcie-host"; > + reg = <0x00 0x0f102000 0x00 0x1000>, > + <0x00 0x0f100000 0x00 0x400>, > + <0x00 0x0d000000 0x00 0x00800000>, > + <0x00 0x68000000 0x00 0x00001000>; > + reg-names = "intd_cfg", "user_cfg", "reg", "cfg"; > + ranges = <0x01000000 0x00 0x68001000 0x00 0x68001000 0x00 0x0010000>, > + <0x02000000 0x00 0x68011000 0x00 0x68011000 0x00 0x7fef000>; > + dma-ranges = <0x02000000 0x0 0x0 0x0 0x0 0x10000 0x0>; > + interrupt-names = "link_state"; > + interrupts = ; > + device_type = "pci"; > + max-link-speed = <3>; > + num-lanes = <1>; > + power-domains = <&k3_pds 259 TI_SCI_PD_EXCLUSIVE>; > + clocks = <&k3_clks 259 0>, <&serdes1 CDNS_TORRENT_REFCLK_DRIVER>; > + clock-names = "fck", "pcie_refclk"; > + #address-cells = <3>; > + #size-cells = <2>; > + bus-range = <0x0 0xff>; > + vendor-id = <0x104c>; > + device-id = <0xb010>; > + cdns,no-bar-match-nbits = <64>; > + ti,syscon-pcie-ctrl = <&pcie0_ctrl 0x0>; > + msi-map = <0x0 &gic_its 0x0 0x10000>; > + status = "disabled"; > + }; > + > usbss1: usb@f920000 { > compatible = "ti,j721e-usb"; > reg = <0x00 0x0f920000 0x00 0x100>; > @@ -138,3 +168,10 @@ serdes_ln_ctrl: mux-controller@4080 { > <0x10 0x3>; /* SERDES1 lane0 select */ > }; > }; > + > +&wkup_conf { > + pcie0_ctrl: pcie0-ctrl@4070 { > + compatible = "ti,j784s4-pcie-ctrl", "syscon"; > + reg = <0x4070 0x4>; > + }; > +}; -- cheers, -roger _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel