Message ID | 20210530224404.95917-1-mark.kettenis@xs4all.nl (mailing list archive) |
---|---|
Headers | show
Return-Path: <SRS0=k3Qe=KZ=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> 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=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 BDBE2C47093 for <linux-arm-kernel@archiver.kernel.org>; Sun, 30 May 2021 22:46:18 +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 7F7B46120D for <linux-arm-kernel@archiver.kernel.org>; Sun, 30 May 2021 22:46:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7F7B46120D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xs4all.nl 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:MIME-Version: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=y9Tvf5UpU5b+2I6jwWxJXIsc+jmV/GlVIrmxqgQsgqM=; b=UM6NjlIgPEbvLw iG9o02X7pvXZboSF9p8OkDmj7xLtV4rzsa35IM2g2F3l4NZaEN3++QGzP3dzmKK8mCRhQ+RmWhcc3 D6Lky3sI7Ed5V/uzx4S4/zC6PipMr0+CD9uw8/NArEKo3XRFfdpW581jRwbkn617uHcvc1+4hbVVo 32l1DswuR2JdUEsAnB0pNuC5L70vPe1N1yBSubOBdWHqlPRhqlt4dWVe4WIZTTUSrse96WWMf19ck nGKh2n0N+fP8mAIpIF4dq26WYOjerapANtZNvusXCOPf2SUE8BuWqK3x5aYwrYTamNSH42xLD49Xh kyWJR6oLNTv007ldoNIA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lnUAa-00AFgm-R9; Sun, 30 May 2021 22:44:32 +0000 Received: from lb2-smtp-cloud8.xs4all.net ([194.109.24.25]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lnUAW-00AFfk-Dm for linux-arm-kernel@lists.infradead.org; Sun, 30 May 2021 22:44:30 +0000 Received: from copland.sibelius.xs4all.nl ([83.163.83.176]) by smtp-cloud8.xs4all.net with ESMTP id nUANlDkLZIpGynUAOlJsHU; Mon, 31 May 2021 00:44:24 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=s2; t=1622414664; bh=i+lntvHcQFtA4WzpzAK2fZ1XNv59rf7ksgwKKNSp1Hc=; h=From:To:Subject:Date:Message-Id:MIME-Version:From:Subject; b=APMaVmSJ8y6a/CeC81LeSYkAbZOI9OhertHrGIi9OR5/orThysYGjt8K47yMNYYtZ e72b0FGi1B4uUZoOzlDaaKTmR7YOOBnW3penTZ+LZ20j29yesP9LHJKl5pLQE9jtGu QAx8jbOZyloYkq+77EvpQ8LHlSUOHexUbPz7McFw3v1SuEc56EzAuSuwAxePHrq/Y+ mnXXNromzM0JphmfRs9cRbpnLpNXJIaa6kg8ZBSDIW5yXgHw8trFYqHIB5besj3M2M 2CjBHoHZgB13W9rbTgWDH6abrWjweRyC++ciLdGkEdSdcbQk7sRFOdtGthsvyDj6Pu qQW8iA3K2/oWg== From: Mark Kettenis <mark.kettenis@xs4all.nl> To: devicetree@vger.kernel.org Cc: maz@kernel.org, robin.murphy@arm.com, Mark Kettenis <kettenis@openbsd.org>, Hector Martin <marcan@marcan.st>, Bjorn Helgaas <bhelgaas@google.com>, Rob Herring <robh+dt@kernel.org>, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] Apple M1 PCIe DT bindings Date: Mon, 31 May 2021 00:43:59 +0200 Message-Id: <20210530224404.95917-1-mark.kettenis@xs4all.nl> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CMAE-Envelope: MS4xfCPLUSCSRp08vyYWAg9IyKw+2xNqsbnVOvxxAlmtWSR61EW2uQ+IosWVXLd+JVC4/nWNrGMT8TcZSM7C7uoDIvdwedp3P1Vop6WlTwt4V5CFzyCqN88D thKteuSQIRAAgvx6rTCQKb8IUzvfG+uOSIaZydB/e41JB+QNK5nk8QCluMH+W03fvYqyZaaDYd5vexS2yeFA0JEZcUZmoEnsK6rYEoBkxOWEH+SbDW5tq1x4 Jn4M1gIaaWDClQO2bQKVp+9RJLw1eDAQ+YS/313KRi0MSXaEa/r5/SFrhIV1lPkAVfqgjPZW+y/tn9C7hdVnv8DNHvfhdNBCqjIs2zt3UZV8EyVVS8NS/1JO 2ElaMTAKCYmWeMc0qTd/KryzZK+jna2NzOwNCXKB5wBRnz2N8uXV95hoftlIQ4hQjJtaUOd80uG58yvAQNGgZZ0MTZjxrYPBXdp1+csummTz7ADzlfNxPxk9 o4HY0s0dxwSC5aNyTpFp3l+vq7gJ+R2pQpEjPNeVC7z1Z9dA40VofCIPi5k= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210530_154428_640700_57EAD30E X-CRM114-Status: GOOD ( 13.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Apple M1 PCIe DT bindings
|
expand
|
From: Mark Kettenis <kettenis@openbsd.org> This small series adds bindings for the PCIe controller found on the Apple M1 SoC. At this point, the primary consumer for these bindings is U-Boot. With these bindings U-Boot can bring up the links for the root ports of the PCIe root complex. A simple OS driver can then provide standard ECAM access and manage MSI interrupts to provide access to the built-in Ethernet and XHCI controllers of the Mac mini. The Apple controller incorporates Synopsys Designware PCIe logic to implement its root port. But unlike other hardware currently supported by U-Boot and the Linux kernel the Apple hardware integrates multiple root ports. As such the existing bindings for the DWC PCIe interface can't be used. There is a single ECAM space for all root space, but separate GPIOs to take the PCI devices on those ports out of reset. Therefore the standard "reset-gpio" and "max-link-speed" properties appear on the child nodes representing the PCI devices that correspond to the individual root ports. MSIs are handled by the PCIe controller and translated into "regular interrupts". A range of 32 MSIs is provided. These 32 MSIs can be distributed over the root ports as the OS sees fit by programming the PCIe controller port registers. I still hope to hear from Marc Zyngier on the way MSIs are represented in this binding. Patch 2/2 of this series depends on the pinctrl series I sent earlier. Changelog: v2: - Adjust name for ECAM in "reg-names" - Drop "phy" registers - Expand description - Add description for "interrupts" - Fix incorrect minItems for "interrupts" - Fix incorrect MaxItems for "reg-names" - Document the use of "msi-controller", "msi-parent", "iommu-map" and "iommu-map-mask" - Fix "bus-range" and "iommu-map" properties in the example Mark Kettenis (2): dt-bindings: pci: Add DT bindings for apple,pcie arm64: apple: Add PCIe node .../devicetree/bindings/pci/apple,pcie.yaml | 167 ++++++++++++++++++ MAINTAINERS | 1 + arch/arm64/boot/dts/apple/t8103.dtsi | 63 +++++++ 3 files changed, 231 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/apple,pcie.yaml