From patchwork Tue Jul 6 10:01:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 470432 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp4828847jao; Tue, 6 Jul 2021 03:01:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQGlNuzo09yinMlfhmYU/FZOTL4U+Y3mQ28nURYKBIdxoaPWMZ8pmcxtNEZb5hAVastKmE X-Received: by 2002:a17:907:1c1b:: with SMTP id nc27mr7930866ejc.294.1625565698655; Tue, 06 Jul 2021 03:01:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625565698; cv=none; d=google.com; s=arc-20160816; b=cKJzKwLfg1KvUfQCsJYnPLIoga+Zp13/TXGrjZxiERPvP2dZfh0dY0497tEeTjpfU0 vsyDZuwzhWc97/qUl8BDzCjNuTQyoY/w0v8ncPO2SFQPAX9J9NDOoaeDRKUWREiCqEug zsWORvJxUfCP5HcbwUoOwvajhEpYvi7sSCFyNvNwGHBod+FkO7ILipvojjLCDtq1mkQ4 zclWeL+8Vap4Vg6kVj/LT5TTPZV8+unGttoXQRh3XdAhDgAVedeHgu3laN+MpynrkkpT WqgMPwWRxKrGF1eq5B1PNT5q6+17u9CwLRCkfB3Pu0bnlQpjv5SAUlikFbBYmZrs4mOv UlSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=P9Ksf6BQhAyvIj1E9tS9xFq4xsve3hk/+ZZA+4VHAwU=; b=h5kNJtCPK7VrWfJoJn67TNvPgPbHN2nokMLzL9fMwWgdhow2xCYhLW5QqM/WR1RcFA rNu9b0bojNzQ4++C2l1BjYVei4RclkD7E5fEyRLi6elNwTxVBHCe41qeVT7yjCos4tnS wYZ8pWhcGkzIyU1N+DBGlJXpoQyMzYsRmRwDrSj3/9w0WKKEdb41Sp9CM0hDKNaaedaH ZJ6rjorm8uFO431EPUw3qFoNcP+cj5VkjPIAXoDJYKDHyX+FRuOr9LCnba2CF603E1U9 AArZKm4D+0t8v4YdGbxdYlexY8mSrvqY2QAQn1Kah5bkL1dnbnEwhqW6Zzg9v0FGV1It VQcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id s21si14490208ejy.697.2021.07.06.03.01.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jul 2021 03:01:38 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7697D82C1B; Tue, 6 Jul 2021 12:01:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=socionext.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id A353B82C63; Tue, 6 Jul 2021 12:01:35 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by phobos.denx.de (Postfix) with ESMTP id 7878182BFA for ; Tue, 6 Jul 2021 12:01:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=socionext.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=hayashi.kunihiko@socionext.com Received: from unknown (HELO iyokan2-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 06 Jul 2021 19:01:29 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id 01AEB2043ACA; Tue, 6 Jul 2021 19:01:29 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 6 Jul 2021 19:01:28 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 72CF2B62AB; Tue, 6 Jul 2021 19:01:28 +0900 (JST) From: Kunihiko Hayashi To: u-boot@lists.denx.de Cc: Masami Hiramatsu , Jassi Brar , Kunihiko Hayashi Subject: [PATCH 0/6] uniphier: Add PCIe host controller and Akebi96 board support Date: Tue, 6 Jul 2021 19:01:05 +0900 Message-Id: <1625565671-30022-1-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean This series adds PCI-express host controller support for UniPhier SoCs. This also adds clock, reset, and phy support to enable the controller. The controller is based on DW PCIe IP, however, the controller doesn't have unroll version of iATU, so this series doesn't apply common DW functions yet. And this series includes Akebi96 board (96boards) support that has UniPhier LD20 SoC and PCIe interface. The controller is available for LD20 and PXs3 SoCs, and the devicetree already supports it. Kunihiko Hayashi (6): clk: uniphier: Add PCIe clock entry reset: uniphier: Add PCIe reset entry phy: socionext: Add UniPhier PCIe PHY driver pci: uniphier: Add UniPhier PCIe controller driver configs: uniphier: Enable CONFIG_SYS_PCI_64BIT ARM: dts: uniphier: Add support for Akebi96 arch/arm/dts/Makefile | 1 + arch/arm/dts/uniphier-ld20-akebi96.dts | 189 +++++++++++++ drivers/Kconfig | 2 + drivers/Makefile | 1 + drivers/clk/uniphier/clk-uniphier-sys.c | 3 + drivers/pci/Kconfig | 10 + drivers/pci/Makefile | 1 + drivers/pci/pcie_uniphier.c | 424 ++++++++++++++++++++++++++++++ drivers/phy/socionext/Kconfig | 12 + drivers/phy/socionext/Makefile | 6 + drivers/phy/socionext/phy-uniphier-pcie.c | 59 +++++ drivers/reset/reset-uniphier.c | 3 + include/configs/uniphier.h | 2 + 13 files changed, 713 insertions(+) create mode 100644 arch/arm/dts/uniphier-ld20-akebi96.dts create mode 100644 drivers/pci/pcie_uniphier.c create mode 100644 drivers/phy/socionext/Kconfig create mode 100644 drivers/phy/socionext/Makefile create mode 100644 drivers/phy/socionext/phy-uniphier-pcie.c -- 2.7.4