Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp418742lqb; Fri, 24 May 2024 02:24:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXhzDLxjQfaKC2iaBtgv7doTgplVQSD7+x/Ml53i/KSrCvgQYdCtxaWLdEsqZ4V3V4QBY3ctyiYYhgoMClaYn/9ehJBT/qcLc+49tNG+Q== X-Google-Smtp-Source: AGHT+IH4ZmzMHyJ0GEh4vwjxZGf4tVnuRiIn2lplN+xclIftbj9jxDBqiRCiBjbuCXoQhlXiiiZh X-Received: by 2002:a05:620a:1023:b0:793:fab:b503 with SMTP id af79cd13be357-794ab135bbdmr158341585a.64.1716542661379; Fri, 24 May 2024 02:24:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716542661; cv=pass; d=google.com; s=arc-20160816; b=RZt27G0AnpEnRxkM36g1+sh6NZtFUbXH/mrFASxgjnt2Ac94BmNSTawzSKcKpXAFbb pHgwQOGOd7VRDV/TlSPzcOo34cQXLR0y5zouy4or75ZIlkmdDQoxeSBzuxFfUoB7m3wX /X5TqJ9SaS5bOZZfXd9BMih8gvt8t39/Rp9aBit3lu31XZsWXhd2n9qL2N5dp672F5nf ApAYwUWNluqqSbTE7rov90Ywnrv1AMpxDIY5+x6JyPY6tjAo69jx8scCsUYrqy7PHv5y DT0gkXXPAKt1uxuD0dpiqVVx0czHE0U1KGAxW3hh2mwXWhLNOI8/EjfgXDAL4qmWEpwd sZ+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=vXHiKvNpLjQ6FdW1+zjJDk/5vz/rj1Ewk5lFM49oMuM=; fh=3IJVkq8vLuVteWKpLiX7pk4K8yrgz5mO0/8Z6FsaYko=; b=rzUkMBzP6m3R91O9D+/w3HQzz/pHSXnu64hFrd37e9my+IJIiAMJAP/6KLb53JS5le wZHrHtxe/uIMMhqiCKsr9IuEJcIXDMh++6eLRxOKhA8G6iFAB6BRI5LnSJLmrlMREy86 qJr4IB8B9T8fVuXCKv9E5ahn5/iglqwPnI6dMjYC4qYHVK/81vHgvchk+0Y1gX6iIouk QE+U7WbfZnEhQoP3irB3d2K6wEvLCXLNeRUu64hpeHaDGPhJeoZFgn5oO65OTcxkFwk4 5fOhqvGjwPlVI2hNcZvBFLcsM5TsQEl/gXT8GmRPGfSz13R0k5/ZESKBAxfByuTkph0I s2vA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XigUxglO; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-188548-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188548-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-794abd51119si109052685a.613.2024.05.24.02.24.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 02:24:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188548-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XigUxglO; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-188548-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188548-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C8EE11C21BAB for ; Fri, 24 May 2024 09:24:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 36C0584FBF; Fri, 24 May 2024 09:24:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="XigUxglO" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C079E29422; Fri, 24 May 2024 09:24:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716542651; cv=none; b=NiJGsf7I3ig9y93/IqQBuEjKfjxSG6k+5SPsts3idTgG/c91IJyF6bnGAir9wvUFLLn5o9JRpGNu6o9QB/aZ/itu52ltWI2MDVnNZr4pEP0wKXvf66sIhTTJGBhMA4fhXWyHfojMMKnU69wrTDU0zR7dk3hT0Hqjmbo59pPh5sA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716542651; c=relaxed/simple; bh=RAmab92sujYQvz3UDC4GHF4aqlxWZk/kyqGztRV6jRk=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=irHkN19q/5xmaOK4u/uuEbG6Ttn8+fQ6IV6ziWJot0j/HJyPBjFqAUc54/CJXd9/6msuYYCeX1jcT4oNdCnVk/fHn7Uxf7ZvvXr0TzbBbVr7D+ANUrC1QXg3DiWwYRR/VeHPdnwXwBiFcJkFQOBz2dtgny5b/dgsbDaUZb14ioI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=XigUxglO; arc=none smtp.client-ip=198.47.23.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44O9NstN036306; Fri, 24 May 2024 04:23:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1716542634; bh=vXHiKvNpLjQ6FdW1+zjJDk/5vz/rj1Ewk5lFM49oMuM=; h=From:To:CC:Subject:Date; b=XigUxglOAF9ge4CzQnNEospxrB9WVbUmIBUvIIMS4Axa/wQZSTu0ipmU91d8lXlP0 zrzL7ykYH21PKrL/xJomgGhWv9jnweO0GL9NkF9vR9lP2/DbqFJxIGE+FaRYM3/IUo 0SruhOd5OiJJE2oYy3ODL58j8AdBZbxiwbrZDmmE= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44O9NsG8113217 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 24 May 2024 04:23:54 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 24 May 2024 04:23:54 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE111.ent.ti.com (157.170.170.22) 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; Fri, 24 May 2024 04:23:54 -0500 Received: from uda0492258.dhcp.ti.com (uda0492258.dhcp.ti.com [172.24.227.9]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 44O9NouT022831; Fri, 24 May 2024 04:23:50 -0500 From: Siddharth Vadapalli To: , , , , CC: , , , , , , Subject: [PATCH] PCI: j721e: Add PCIe support for J722S SoC Date: Fri, 24 May 2024 14:53:49 +0530 Message-ID: <20240524092349.158443-1-s-vadapalli@ti.com> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 TI's J722S SoC has one instance of PCIe namely PCIe0 which is a Gen3 single lane PCIe controller. Add support for the "ti,j722s-pcie-host" compatible specific to J722S SoC. Signed-off-by: Siddharth Vadapalli --- Hello, This patch is based on linux-next tagged next-20240523. The dt-bindings patch for the compatible at: https://lore.kernel.org/r/20240124122936.816142-1-s-vadapalli@ti.com/ has been accepted and merged: https://git.kernel.org/pci/pci/c/01fec70206d4 Regards, Siddharth. drivers/pci/controller/cadence/pci-j721e.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/pci/controller/cadence/pci-j721e.c b/drivers/pci/controller/cadence/pci-j721e.c index 85718246016b..cde6cd77e406 100644 --- a/drivers/pci/controller/cadence/pci-j721e.c +++ b/drivers/pci/controller/cadence/pci-j721e.c @@ -344,6 +344,13 @@ static const struct j721e_pcie_data j784s4_pcie_ep_data = { .max_lanes = 4, }; +static const struct j721e_pcie_data j722s_pcie_rc_data = { + .mode = PCI_MODE_RC, + .linkdown_irq_regfield = J7200_LINK_DOWN, + .byte_access_allowed = true, + .max_lanes = 1, +}; + static const struct of_device_id of_j721e_pcie_match[] = { { .compatible = "ti,j721e-pcie-host", @@ -377,6 +384,10 @@ static const struct of_device_id of_j721e_pcie_match[] = { .compatible = "ti,j784s4-pcie-ep", .data = &j784s4_pcie_ep_data, }, + { + .compatible = "ti,j722s-pcie-host", + .data = &j722s_pcie_rc_data, + }, {}, }; -- 2.40.1