Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1631354pxb; Thu, 4 Mar 2021 17:00:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZwEQXZgft9ItWYRzS9yed/7RpuZAm6HZKjRyVL7a4XaZ4LU8tcOGupBEHsjCyG201qp0F X-Received: by 2002:a05:6e02:b2e:: with SMTP id e14mr6127769ilu.164.1614906006837; Thu, 04 Mar 2021 17:00:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614906006; cv=none; d=google.com; s=arc-20160816; b=NuHnm4jldckaDXO/9Gm6IJenVB/5cu4DZKbUjvvX/eNrYGrDDC6TfCioJAAKrLVyNK pPS2zoRz1dpvP6yOOuMMLbA4hHakSaC5xW4Gue6SKdSVeUCsQ7pDOaXQ6E0A4O3YrQKa oCBGL4synsKqJmj9QikibVrW7JnHp4B2SN6PNZVUmPtEp1HRPXBVtutyM9l+RlZOK0x2 Sv73diotic7s+DIPDiAlI6eOyBjsS6G1U13XEkdi27MogOnwo0cCCfBcoZknPcrnVSXs eo1NumOV2ZyJ6YOuPP1G2iU2ouHsQKCv7JvF7WAqZ2g6Xkv8BfjsbnZyGeABEyybvbfX ugug== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Dk6m8eXHLsK0rZbD4lfhRl5vEuaH5H9c2UvQL0+EOOU=; b=byZw3ioLArpyZpnJDpx9rRppWo/PIOjaJ6Dff7PAOXc/40ssNuDTmEo57vlLWZKSiD K8TJRz8Uy/19MHqJVXC/JGl3m5IDoOJT5u8Ceod8emX9EAvHo5tU+8CMWk9jMrWe+rJe 89+YEotuIJvfrmHaDoAbThhnnBf7ZGJqjkXmEJFEs/pDpewCnoh3mwP6vZwh64jRn+gR Fkn8YMYw5V/nQIxdBnGp4rwVbJjRJx3LuvRQXKfPFO4FF374rbd+jddyVMVvyOc0H8V0 NF3kEpqzFweKUepSh/zpqWvys6Qud0wsY5KkNYR3NeV3/T2kAY1MOvx49olpjxXsBzSp cEOA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b16si851628ile.47.2021.03.04.16.59.53; Thu, 04 Mar 2021 17:00:06 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239904AbhCDVk4 (ORCPT + 99 others); Thu, 4 Mar 2021 16:40:56 -0500 Received: from marcansoft.com ([212.63.210.85]:33384 "EHLO mail.marcansoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239605AbhCDVka (ORCPT ); Thu, 4 Mar 2021 16:40:30 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hector@marcansoft.com) by mail.marcansoft.com (Postfix) with ESMTPSA id 6C000424BA; Thu, 4 Mar 2021 21:39:41 +0000 (UTC) From: Hector Martin To: linux-arm-kernel@lists.infradead.org Cc: Hector Martin , Marc Zyngier , Rob Herring , Arnd Bergmann , Olof Johansson , Krzysztof Kozlowski , Mark Kettenis , Tony Lindgren , Mohamed Mediouni , Stan Skowronek , Alexander Graf , Will Deacon , Linus Walleij , Mark Rutland , Andy Shevchenko , Greg Kroah-Hartman , Jonathan Corbet , Catalin Marinas , Christoph Hellwig , "David S. Miller" , devicetree@vger.kernel.org, linux-serial@vger.kernel.org, linux-doc@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFT PATCH v3 03/27] dt-bindings: arm: apple: Add bindings for Apple ARM platforms Date: Fri, 5 Mar 2021 06:38:38 +0900 Message-Id: <20210304213902.83903-4-marcan@marcan.st> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210304213902.83903-1-marcan@marcan.st> References: <20210304213902.83903-1-marcan@marcan.st> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This introduces bindings for all three 2020 Apple M1 devices: * apple,j274 - Mac mini (M1, 2020) * apple,j293 - MacBook Pro (13-inch, M1, 2020) * apple,j313 - MacBook Air (M1, 2020) Signed-off-by: Hector Martin --- .../devicetree/bindings/arm/apple.yaml | 64 +++++++++++++++++++ MAINTAINERS | 10 +++ 2 files changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/apple.yaml diff --git a/Documentation/devicetree/bindings/arm/apple.yaml b/Documentation/devicetree/bindings/arm/apple.yaml new file mode 100644 index 000000000000..1e772c85206c --- /dev/null +++ b/Documentation/devicetree/bindings/arm/apple.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/apple.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple ARM Machine Device Tree Bindings + +maintainers: + - Hector Martin + +description: | + ARM platforms using SoCs designed by Apple Inc., branded "Apple Silicon". + + This currently includes devices based on the "M1" SoC, starting with the + three Mac models released in late 2020: + + - Mac mini (M1, 2020) + - MacBook Pro (13-inch, M1, 2020) + - MacBook Air (M1, 2020) + + The compatible property should follow this format: + + compatible = "apple,", "apple,", "apple,arm-platform"; + + represents the board/device and comes from the `target-type` + property of the root node of the Apple Device Tree, lowercased. It can be + queried on macOS using the following command: + + $ ioreg -d2 -l | grep target-type + + is the lowercased SoC ID. Apple uses at least *five* different + names for their SoCs: + + - Marketing name ("M1") + - Internal name ("H13G") + - Codename ("Tonga") + - SoC ID ("T8103") + - Package/IC part number ("APL1102") + + Devicetrees should use the lowercased SoC ID, to avoid confusion if + multiple SoCs share the same marketing name. This can be obtained from + the `compatible` property of the arm-io node of the Apple Device Tree, + which can be queried as follows on macOS: + + $ ioreg -n arm-io | grep compatible + +properties: + $nodename: + const: "/" + compatible: + oneOf: + - description: Apple M1 SoC based platforms + items: + - enum: + - apple,j274 # Mac mini (M1, 2020) + - apple,j293 # MacBook Pro (13-inch, M1, 2020) + - apple,j313 # MacBook Air (M1, 2020) + - const: apple,t8103 + - const: apple,arm-platform + +additionalProperties: true + +... diff --git a/MAINTAINERS b/MAINTAINERS index d92f85ca831d..aec14fbd61b8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1637,6 +1637,16 @@ F: arch/arm/mach-alpine/ F: arch/arm64/boot/dts/amazon/ F: drivers/*/*alpine* +ARM/APPLE MACHINE SUPPORT +M: Hector Martin +L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) +S: Maintained +W: https://asahilinux.org +B: https://github.com/AsahiLinux/linux/issues +C: irc://chat.freenode.net/asahi-dev +T: git https://github.com/AsahiLinux/linux.git +F: Documentation/devicetree/bindings/arm/apple.yaml + ARM/ARTPEC MACHINE SUPPORT M: Jesper Nilsson M: Lars Persson -- 2.30.0