From patchwork Thu Feb 10 08:09:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 12741527 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 B3C3AC433EF for ; Thu, 10 Feb 2022 08:12:23 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id: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:In-Reply-To:References: List-Owner; bh=QwBNmPYx9xH1LTeygQ5UWlC+QtDBmfs1pmmPlSxi2hI=; b=OAwSEMuiya8RCq UgJkHVkXn7qqCAfLEMZU999326IftFRmm4wh8AWYG5m62PF3/e1Tm+SJLzYtBu/twr36sXJ4OkJVs djcjZIljkS0ek2jqxfzQBla8PCkHYbyuRkQdQpHXflb24fhP+Cjo+SmqSK6Znu1Inz+NW4X7eW2W6 S9AyEVmpIGPwaTizc+AxP2WyPKHoKtlHqV78QKGs0M/yFm3IgLwQ2277fFu0q06vxBU1/kGw1m7ni pzcbgIw4/i6UtfY/+DLz6haqTJAZ+5v3nMW8RC9cICUYYWu+WYIjIAWUelFGIK2etEbns377skfPn JZsGSzyQ+cRXGg9rX24A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nI4Xs-003125-GT; Thu, 10 Feb 2022 08:11:16 +0000 Received: from mx.socionext.com ([202.248.49.38]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nI4Wm-0030cE-MP for linux-arm-kernel@lists.infradead.org; Thu, 10 Feb 2022 08:10:10 +0000 Received: from unknown (HELO iyokan2-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 10 Feb 2022 17:10:01 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id 2E7C0205D901; Thu, 10 Feb 2022 17:10:01 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Thu, 10 Feb 2022 17:10:01 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id D1162C1E23; Thu, 10 Feb 2022 17:10:00 +0900 (JST) From: Kunihiko Hayashi To: Bjorn Helgaas , Rob Herring , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy?= =?utf-8?q?=C5=84ski?= , Masami Hiramatsu Cc: linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v3 0/3] PCI: Introduce UniPhier NX1 PCI endpoint controller support Date: Thu, 10 Feb 2022 17:09:53 +0900 Message-Id: <1644480596-20037-1-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220210_001008_901486_A8527482 X-CRM114-Status: GOOD ( 12.03 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series includes the patches to add basic support for the PCI endpoint controller implemented in NX1 SoC. This defines SoC-dependent data to distinguish existing functions and flags for Pro5 and NX1 SoCs. Changes since v2: - Add .init(), .wait(), and has_gio to SoC-dependent data instead of "is_legacy" flag - Rename uniphier_pcie_init_ep_legacy() with uniphier_pcie_pro5_init_ep() - Rename uniphier_pcie_init_ep() and uniphier_pcie_wait_ep() with uniphier_pcie_nx1_init_ep() and uniphier_pcie_nx1_wait_ep() - Add Reviewed-by: lines Changes since v1: - Fix dt-bindings warnings Kunihiko Hayashi (3): dt-bindings: PCI: uniphier-ep: Add bindings for NX1 SoC PCI: uniphier-ep: Add SoC data structure PCI: uniphier-ep: Add NX1 support .../bindings/pci/socionext,uniphier-pcie-ep.yaml | 22 +++- drivers/pci/controller/dwc/pcie-uniphier-ep.c | 142 ++++++++++++++++++--- 2 files changed, 138 insertions(+), 26 deletions(-)