Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2178370pxj; Sun, 16 May 2021 17:30:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxny3SWezRgXJvZcgGq/8BpqUFTeGCmnHht3S1G5wi+rR65MmDDc7J8DbT0wBI6/tMA8tjH X-Received: by 2002:a92:c74b:: with SMTP id y11mr17354048ilp.302.1621211412460; Sun, 16 May 2021 17:30:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621211412; cv=none; d=google.com; s=arc-20160816; b=yqngIY3bGuZhAthiBPN1FBlVDzVt0fLPX3gJjx7GEoI4cjquy5t67VcDpn5F7i0o1u 5H7Q/R6z1XhbEKZ7XQvokyKa6esoKD+gSGriEHjNTVmvGfepvCvf8+kb17ukW7bTtGB3 TG/vM18F2a1mL2FpdgNfgbX1tExN9RfADHYMQEn+MkPg2pI3VWeW8M9yPseAkMWOjBv+ CkZeZVxeVa/KvhBZujErz4i+1eh2xE8bqZqHnX/6t11TI5i6SNUcnXG3Qg22lbBRpJ8I nRjFd2ZN/GW+ThOZQo9v2w5fUTSY/pZnZ/a5vzpuAKY6Db4Y/lMGKwHKd2nnckliunvW 7oZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=1+zNzYaekEI6LowqbJIIfmttJzkR4J3dpjnqx+BQ46Q=; b=KaBqsJecs1l/jS9M5cwG/X/VZ9fSAuiArZbxOFdOG2Ix5NiEcSHHDwcvQ1L+MfAvCN 9EyBcDqqhGxwmuq7Vttm0+1Tz6q0L+ezW/MY1bvEhETNLzHTesm9SHMKLkQ85S1BiUrR S3Elp1BsZZEKYLkN07UZXNWsgD984XNn7iWUEGrgJFBbF5XW+FNRjg0AL+JqxMNVKL/4 lklbTCb1dwNzUf9gec259piCWwEav3wO6ZRYRo5XRn2TnksrIwRlA4aapSQY8OJOw3h1 gWKJfx4x78EHhdpS01fG6WpHK3JoXEKArYPSfgHJuzVfRbZiXcyG3nAXlupng+7HDAJ1 Xh4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xs4all.nl header.s=s2 header.b=JyGl58By; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i17si3289923ioi.33.2021.05.16.17.30.00; Sun, 16 May 2021 17:30:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@xs4all.nl header.s=s2 header.b=JyGl58By; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233958AbhEPVUZ (ORCPT + 99 others); Sun, 16 May 2021 17:20:25 -0400 Received: from lb3-smtp-cloud8.xs4all.net ([194.109.24.29]:39225 "EHLO lb3-smtp-cloud8.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233861AbhEPVUX (ORCPT ); Sun, 16 May 2021 17:20:23 -0400 Received: from copland.sibelius.xs4all.nl ([83.163.83.176]) by smtp-cloud8.xs4all.net with ESMTP id iOA9lJWwKWkKbiOAAlkPqJ; Sun, 16 May 2021 23:19:06 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=s2; t=1621199946; bh=1+zNzYaekEI6LowqbJIIfmttJzkR4J3dpjnqx+BQ46Q=; h=From:To:Subject:Date:Message-Id:MIME-Version:From:Subject; b=JyGl58Bya86gQ8HQUMWIuf0DLYyMpPZ1D/Afd/i1j3lUDYUGqhj0lPLBBzv31V38a kx+M7tWg/igm2RqJV7lRpLEIC5YT4Yi14UQZMlXiCaF0v8MOKcNQJw9j0ZfGAb+o6m qMofk2wcpwrxSrRlcIrEoWr2UleS4sFo38VUKeEavRlUj6lbDLoVKHGoai6vZX1fvC iNqf8sicsPSRWZosRjioqs3AcJoLooNYUudAYRcV3aV55yXiCj7SqFto/hU7GiDn98 3kavto4ZAZA0lQra5rCSMRga8KFqGe5OmaX+4j6Jlfo6x9ZmxnMPz5SV0AvLzr1uHF qztadK2ysqEiQ== From: Mark Kettenis To: devicetree@vger.kernel.org Cc: maz@kernel.org, arnd@arndb.de, Mark Kettenis , Hector Martin , Bjorn Helgaas , Rob Herring , linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] Apple M1 PCIe DT bindings Date: Sun, 16 May 2021 23:18:45 +0200 Message-Id: <20210516211851.74921-1-mark.kettenis@xs4all.nl> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfJiHI2l9RTHm3qxrVyeOIGcmaqvKJeZGxTWKXxrtrQLTfs7o5p5UhmxDyW66fWImczopUkFQV4yzFaPibreJfR2PJ1G/aoDoL6xm9AqmRgTnW2LshxE5 GEmigu7bvzEuecyGcq+QjNHCONjtEg0sw3mkRsb6Z2Hn0KonnlAM98EasnBSBNnUmaFJFD0FFYp8bkSBComXhD0k+aS4fFHtVsJfs5ngHPJEawjTBYjZvryS 8EFQcU5IGD5OCidvywtMrRrlGAkYBUJYSZbXgQ9JsmeOdsg+uOuPjeV2ziGbw12haOis/ZJPg0pHEph9DXOKxZwY2TFberLRgss5OahgadkVXhs/cNKQ6AWd iNUeCwrHwPyPyIWmqNDGbymFmyvDH+8ThFVwqwWKwVYQjIrEsErchyAHcDwrIsMzZ2VuZI6fupI/aHW0AlPni2y6tRz63OQN4eUC3APZhWSq37t/bEMKd9Vf w//BXkLHvqXAN4brbRS9ZUBscElABHHME+qBqA9471leJDlfndGlDRdXb0g= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mark Kettenis 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. These series depends on the pinctrl series I sent earlier (with a v2 respin today). Mark Kettenis (2): dt-bindings: pci: Add DT bindings for apple,pcie arm64: apple: Add PCIe node .../devicetree/bindings/pci/apple,pcie.yaml | 150 ++++++++++++++++++ MAINTAINERS | 1 + arch/arm64/boot/dts/apple/t8103.dtsi | 64 ++++++++ 3 files changed, 215 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/apple,pcie.yaml -- 2.31.1