From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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=-5.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no 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 BF834C433E6 for ; Tue, 16 Feb 2021 14:31:43 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 7D1C564DF5 for ; Tue, 16 Feb 2021 14:31:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7D1C564DF5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=marcan.st 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=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=UqVKT9oqmbuTKfV2e2qdAjl9W3DpzbJD+FmnSa85itw=; b=ZSI1ykFI6RVHhY+EpByBwmOB5 4X9hz2/JkmBoUZ8yjqPmZBkpq5DFDJl0TfTbQBRBfNs15U6yq/rdsY6J62ViLBfGcq/ruaGoIc5AJ yTSDGutNJZHdnkX35HUI3/GaGbfMAI9L2F1SHWEzrndLOJ1+3UiLjMny+HcMnCC4RtBWU+ra++w8w zg1Xx2fTUxKpuMmHsXNXAn1FGuh0VMUwyWOTueZEMpex7oO3spTXKc5GRR99RumwIJwsXe50NZIVL zAOtX+07xb4hAjbTv6QLdN2aMk2mse6waR3eKpOjgqR0SfvF01/exoL3cioSdS6k7AvYLVl/AZyZ1 ZY+3SLeDQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lC1Ms-0001nl-VO; Tue, 16 Feb 2021 14:30:22 +0000 Received: from marcansoft.com ([2a01:298:fe:f::2] helo=mail.marcansoft.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lC1Mp-0001n1-Ce for linux-arm-kernel@lists.infradead.org; Tue, 16 Feb 2021 14:30:21 +0000 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: marcan@marcan.st) by mail.marcansoft.com (Postfix) with ESMTPSA id AAB2E42037; Tue, 16 Feb 2021 14:30:10 +0000 (UTC) Subject: Re: [PATCH v2 02/25] dt-bindings: arm: apple: Add bindings for Apple ARM platforms To: Krzysztof Kozlowski References: <20210215121713.57687-1-marcan@marcan.st> <20210215121713.57687-3-marcan@marcan.st> <20210215174803.5oalkkmotpc7d7vm@kozik-lap> From: Hector Martin Message-ID: <9729c3c2-787e-2894-ddfb-fc9c07d74086@marcan.st> Date: Tue, 16 Feb 2021 23:30:08 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20210215174803.5oalkkmotpc7d7vm@kozik-lap> Content-Language: es-ES X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210216_093019_587744_D3046597 X-CRM114-Status: GOOD ( 18.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Arnd Bergmann , Rob Herring , Tony Lindgren , Marc Zyngier , Linus Walleij , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Alexander Graf , Olof Johansson , Mohamed Mediouni , Stan Skowronek , Will Deacon , linux-arm-kernel@lists.infradead.org, Mark Kettenis Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 16/02/2021 02.48, Krzysztof Kozlowski wrote: > On Mon, Feb 15, 2021 at 09:16:50PM +0900, Hector Martin wrote: >> +description: | >> + Apple ARM ("Apple Silicon") platforms should contain compatible strings >> + in the following format: >> + >> + - apple,j274 (board/device ID) >> + - apple,m1 (SoC name) >> + - apple,arm-platform (Apple Silicon) > > This description is irrelevant because the rules come from schema below. > Maybe instead write few words about the platform? Or describe how to get > the board/device ID if it is not obvious? Good point. Actually, I've gone back and forth over this a few times, but I'm going to change the SoC name. Apple calls these things by 5 different names, but the only two that make any sense to consider are the marketing name ("m1") and the SoC name ("t8103"). I'm going to switch to the latter (so `apple,t8103`). In the past, Apple have dual-sourced SoCs with different IDs under the same marketing name, and Apple themselves name most of their compatible properties after the lowest-compatible SoC name, so I'm going to go with that after all. This will save us grief in the future if they do that again, and I think I get to pick the color of this bike shed :) Given that, I expanded a bit on the description. Let me know what you think: 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 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 -- Hector Martin (marcan@marcan.st) Public Key: https://mrcn.st/pub _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel