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 X-Spam-Level: X-Spam-Status: No, score=-16.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 139B5C47082 for ; Thu, 3 Jun 2021 14:20:05 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id C6B1A613BA for ; Thu, 3 Jun 2021 14:20:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C6B1A613BA Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:MIME-Version:Date: Message-ID:From:References:CC:To:Subject:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=fLJ1sT/gBC3tBpzzrn+HJOuSGCimGy6zriP1/hF/5Es=; b=JU9JeTx4zjgs695TLB1rLcQclT xELfWONKs2BmPSi9ixW4p4a8tIlIK1OAhsFVUdRZKYT1FwflYIMQOnj6faoqb/c53HqVpV/WnKEAz RD+iX4q7fYJKPdHwSSKTdysMBlCh54B8CLpgbDmVoKL2N7W8CZG7obXqslsZXiMfOdJhitrDAx+5A A0uRrLcL3QV9hZhPELZC+Tk9xxJCGEv4mpnwsTZ3AlmRsvno4WSOYGM44umPcUqjxBw2/LNDTmcn7 /KwFVa2o/U0gHtAA5Sampqpd6cOUa+2/EqSoL92cf/5hTz6zPH26vMxrS9ITAyaJWEs1CPDsejUhO xWG7eOLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1looB0-0095jx-7F; Thu, 03 Jun 2021 14:18:26 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1looAu-0095j2-8k for linux-arm-kernel@lists.infradead.org; Thu, 03 Jun 2021 14:18:23 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 153EIGjt008940; Thu, 3 Jun 2021 09:18:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1622729896; bh=ij5t3iomRX42uD/qcjWKu9Nr7FU30eNoiO6l8qKL690=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=bc5QX5n+/jlNmf3rTR0R9/MyrjlQt+IT1QYYZcy2yoKOxII5l8Qz0C3hhohKq/MmA c5D2hCSVcXv9hDQ55JKOlrXEfk3ZqPp9cYJjiJFTtaZm32k2GDwDCtOv0yTyPd6W+O drYb/IR6bk01qN6i2s++utKuipOHeNA+Oz0cEHCY= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 153EIG3x044695 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 3 Jun 2021 09:18:16 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Thu, 3 Jun 2021 09:18:16 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Thu, 3 Jun 2021 09:18:16 -0500 Received: from [10.250.235.48] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 153EIBE6072498; Thu, 3 Jun 2021 09:18:13 -0500 Subject: Re: [PATCH v3 2/5] arm64: dts: ti: k3-am64-main: Add PCIe DT node To: Nishanth Menon CC: Tero Kristo , Rob Herring , , , , Lokesh Vutla References: <20210526142921.12127-1-kishon@ti.com> <20210526142921.12127-3-kishon@ti.com> <20210526185133.sm2iqqpequz3mmvq@crafty> From: Kishon Vijay Abraham I Message-ID: Date: Thu, 3 Jun 2021 19:48:10 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210526185133.sm2iqqpequz3mmvq@crafty> Content-Language: en-US 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-20210603_071820_423037_96CE72D2 X-CRM114-Status: GOOD ( 16.09 ) 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 Hi Nishanth, On 27/05/21 12:21 am, Nishanth Menon wrote: > On 19:59-20210526, Kishon Vijay Abraham I wrote: >> AM64 has one PCIe instance which can be configured in either >> host mode (RC) or device mode (EP). Add PCIe DT node for host >> mode and device mode here. >> >> Signed-off-by: Kishon Vijay Abraham I >> --- >> arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 46 ++++++++++++++++++++++++ >> 1 file changed, 46 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi >> index a67f10406a8e..9c77f7da5d28 100644 >> --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi >> +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi >> @@ -728,4 +728,50 @@ >> #clock-cells = <1>; >> }; >> }; >> + >> + pcie0_rc: pcie@f102000 { >> + compatible = "ti,am64-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"; > [...] >> + >> + pcie0_ep: pcie-ep@f102000 { > Hmm... > Warning (unique_unit_address): /bus@f4000/pcie@f102000: duplicate unit-address (also used in node /bus@f4000/pcie-ep@f102000) > we could pick reg for pcie-ep for node address, instead of intd_cfg address? > > OR, does that mess something else up? yeah, that actually require changes in the binding to fix it properly, since only the first entry in reg should be given for unit address. Thanks Kishon > >> + compatible = "ti,am64-pcie-ep", "ti,j721e-pcie-ep"; >> + reg = <0x00 0x0f102000 0x00 0x1000>, >> + <0x00 0x0f100000 0x00 0x400>, >> + <0x00 0x0d000000 0x00 0x00800000>, >> + <0x00 0x68000000 0x00 0x08000000>; > > [...] > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel