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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 593A5C433EF for ; Sat, 2 Apr 2022 13:06:37 +0000 (UTC) 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:Subject:Cc:To:From:Date:References: In-Reply-To:Message-Id:Mime-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jjXhpMMIKh8OBt9wq7hFI6WK7bt6pTCTDGlryAb/vIc=; b=BDEa6Zq+BMGPdd tvsHS50ewqv8TPnZJ3R0YIfCitjluHTS/CvBJ3TMGhWE3uguHpIvyKb+NV0CFPvYOk8s/qhcua0lh wBqZnhkh17agDYKX7yoIs/tr2y/KfOKG8MhNR9RfWaCDDKlabErHtnoJIyH+I/55em8EaGqBgNwvQ jpXBhqtfRTi6gDHq6pMuH3IQeneWByijBfd2Gi3or+p/ZS9+JmvS8J9Dt4QrPv4J9yf6nnHYlHVm/ lx9VEvemrnRrfWO5BDlkeL6jM9hKmYVpQ4SLQ4nyHchTJAed2u9lN5iliu2/tWsbYHgjCqI5cLvgS pTHXkkdJ4Lbhxk7pXl6g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nadRa-008ocW-5r; Sat, 02 Apr 2022 13:05:30 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nadRT-008obu-1w; Sat, 02 Apr 2022 13:05:24 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 30CEB5C0085; Sat, 2 Apr 2022 09:05:22 -0400 (EDT) Received: from imap47 ([10.202.2.97]) by compute2.internal (MEProxy); Sat, 02 Apr 2022 09:05:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=cc:cc:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; bh=MME4DPlmxw4OEbGoGjpt1lgxpmzoAt tfZ6Spqlp45/w=; b=COl6nk98BhshABHNc1WUszh9m+HY9o4XmLQVohYL1/1ilr 2Jzzefgxko/sbE0Msf98nWKAh30apP4N7MkRt1PlfcFW2TPuxoWzpYTREW76tMXc 1I4ROAti/RWess8tt3mC/flQPL8JkHmrAJmsVzCEAeoelixt3KQKxQX05N4q7CM9 Kd3R2eDus00hh5vjGlq/Q5k+izInV8y47FwN4sHS4QgRriSGl8cOtOItHWW6zL6Q W9Ry8boi5wB/M9gyJ1scGZysEKu8T5lv0hcwrgwWAq0IkCjBqBvzcjmIDwGSxhYy ilENW8s1zGm94VOkdwOCiEJy1V+HoLJH0PNNcyhw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=MME4DPlmxw4OEbGoG jpt1lgxpmzoAttfZ6Spqlp45/w=; b=kx0oVWqT+qDl7pSJiVasIjmxK64erjfr2 qvZUJ1WxWbQzJ9q1BREKNNLeOs167xbsCo06yhEsMfDanKSTQQ0esY2D3tXeceVm UXlOhbjbMUqNp0nSWyw2uPSeszq/wgzRHFa0kHRDydfBCYDpO4Ysos2oPm5bQnxF tVm20qn1MCTTy03OADgEYkESKd9L44l4FgPWh3TRd+pI7qpq6eOP+vWyb9vJsq51 nHVx9lheK817nc0rST2/iN3mfu5iCxIW8y+itMHRCEcTF2V0r2vgdlGcsp2Gvx+/ kNxsuMeoRZKiXvltAFgO1qj+qLJhl2ayNIo8N0u448Pzi8bxbcE0g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudeikedgiedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfuvhgv nhcurfgvthgvrhdfuceoshhvvghnsehsvhgvnhhpvghtvghrrdguvghvqeenucggtffrrg htthgvrhhnpeehtdffledvffegveejgeegvdeujedtteefgfelffehtdetudekteethfet keeuudenucffohhmrghinhepuggvvhhitggvthhrvggvrdhorhhgnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshhvvghnsehsvhgvnhhpvght vghrrdguvghv X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id A37A027402C7; Sat, 2 Apr 2022 09:05:21 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-382-g88b93171a9-fm-20220330.001-g88b93171 Mime-Version: 1.0 Message-Id: <692ae417-f0c6-4932-95f3-2a0984df5ad0@www.fastmail.com> In-Reply-To: <40f7c074-198a-5ce0-02b3-e6042975e228@kernel.org> References: <20220321165049.35985-1-sven@svenpeter.dev> <20220321165049.35985-3-sven@svenpeter.dev> <40f7c074-198a-5ce0-02b3-e6042975e228@kernel.org> Date: Sat, 02 Apr 2022 15:05:00 +0200 From: "Sven Peter" To: "Krzysztof Kozlowski" , "Rob Herring" Cc: "Hector Martin" , "Alyssa Rosenzweig" , "Arnd Bergmann" , "Keith Busch" , "axboe@fb.com" , "hch@lst.de" , "sagi@grimberg.me" , "Marc Zyngier" , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org Subject: Re: [PATCH 2/9] dt-bindings: soc: apple: Add ANS NVMe X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220402_060523_214352_6DB9FB64 X-CRM114-Status: GOOD ( 14.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, thanks for the review! On Wed, Mar 23, 2022, at 12:14, Krzysztof Kozlowski wrote: > On 21/03/2022 17:50, Sven Peter wrote: >> Apple SoCs such as the M1 come with an embedded NVMe coprocessor called >> ANS2. >> >> Signed-off-by: Sven Peter >> --- >> .../bindings/soc/apple/apple,nvme-ans.yaml | 75 +++++++++++++++++++ >> 1 file changed, 75 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/soc/apple/apple,nvme-ans.yaml >> >> diff --git a/Documentation/devicetree/bindings/soc/apple/apple,nvme-ans.yaml b/Documentation/devicetree/bindings/soc/apple/apple,nvme-ans.yaml >> new file mode 100644 >> index 000000000000..e1f4c1c572aa >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/soc/apple/apple,nvme-ans.yaml >> @@ -0,0 +1,75 @@ >> +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/soc/apple/apple,nvme-ans.yaml# > > Do not drop all code in soc/apple, but please use respective subsystems. > Apple is not a subsystem, is not special. > Sure, the code is already inside drivers/nvme/host but I'll also create Documentation/devicetree/bindings/nvme and put the bindings in there as well. >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Apple ANS NVM Express host controller >> + >> +maintainers: >> + - Sven Peter >> + >> +properties: >> + compatible: >> + items: >> + - enum: >> + - apple,t8103-nvme-ans2 >> + - apple,t6000-nvme-ans2 >> + - const: apple,nvme-ans2 >> + >> + reg: >> + items: >> + - description: NVMe and NVMMU registers >> + - description: ANS2 co-processor control registers >> + >> + reg-names: >> + items: >> + - const: nvme >> + - const: ans >> + >> + resets: >> + maxItems: 1 >> + >> + power-domains: true > > maxItems Ok, I guess I can just use the max number of domains in the HW released so far and we can always increase it when Apple releases a new SoC that requires more power domains then. Thanks, Sven _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel