Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp4070885pxb; Tue, 7 Sep 2021 14:08:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHcMZC9erbAjnNuCFXAA//cYh3f4WfGAaceecpPjsX5UWOlbmJ21gNJGSbItV6+j39xDI8 X-Received: by 2002:a02:cebc:: with SMTP id z28mr291203jaq.49.1631048937278; Tue, 07 Sep 2021 14:08:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631048937; cv=none; d=google.com; s=arc-20160816; b=XJ0L7wek3fn2hbTrXwlRJ6YItDCzc20eMGFqwGhnIEpykoakkZHYuGtWahawR7IYya wGefig1504TFTexxP+e165tQndDIPgh5HjjohssO3sp6Y2eHnlY17VuZPRmfDkwCzkyO ESLXtUs9C8qOvjRKslIPE2UysZw1JVL1EAeiaVGqV1q8mw9ffJgSKOIS26mtz2hbEknK Sn9F7ovflnNEM4P9YrJAmE1g9gizM0oGcfvRjAz3A/uJmmFdT3Sry6+H52iJoZFR5oW2 GjtGJv8BIQLWxD/injLQEfKD4mJSops44pBoU69KyuEO6+UuGRTTzpnno/SR9xbwnPOj rvYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=UWnde+WlPqxqrfxQiLI+PrRuT08fFGPASsTErcydEe0=; b=IdqXNgeZhcMUNAwYPa7P4WxATzjnGuWe87gZSeorA9kM5oXmRyEJ5NvbSgRB7gXU7a nJ6LoBJHuzgxf0KDQVhaHwaP/Se2lc6yXNIHNFxXLHLZyvy/dsgGZV3RZG/gbLyoYVKC bgUhR9oNXlxxNlnZu5xekrXbYLwT/SkytpQ0bKx2g4+alep0OOqDyhj+Cx85xMRilAfV rHQmGPP0o5/e6iN2XAUs3b5bFbv/Hsw8SyCsNNSN25+yJU10iA50uPbNNChWGBL8fa7K R0jbdZCoI2JLJ03aQqDFxkJSmTPRL9ZZWO4YqTFzWF9fqRmN0zRbK68fiONxss2lk2N9 sM+A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si54217ioq.76.2021.09.07.14.07.57; Tue, 07 Sep 2021 14:08:57 -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; 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 S1346872AbhIGVIC (ORCPT + 99 others); Tue, 7 Sep 2021 17:08:02 -0400 Received: from rosenzweig.io ([138.197.143.207]:46226 "EHLO rosenzweig.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232045AbhIGVIB (ORCPT ); Tue, 7 Sep 2021 17:08:01 -0400 Date: Tue, 7 Sep 2021 16:48:26 -0400 From: Alyssa Rosenzweig To: Sven Peter Cc: Jassi Brar , Rob Herring , Mark Kettenis , Hector Martin , Mohamed Mediouni , Stan Skowronek , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] dt-bindings: mailbox: Add Apple mailbox bindings Message-ID: References: <20210907145501.69161-1-sven@svenpeter.dev> <20210907145501.69161-3-sven@svenpeter.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > + - description: > > > + M3 mailboxes are an older variant with a slightly different MMIO > > > + interface still found on the M1. > > > + items: > > > + - const: apple,t8103-m3-mailbox > > > > Would be nice to document an example of where an M3 mailbox is found. > > Sure, I can add a comment that this is used for the coprocessor controlling Thunderbolt. That raises another issue ... how do we know the M3 code works at all without TB support yet? It "looks" correct but some of the IRQ handling stuff is nontrivial. > > > + interrupts: > > > + minItems: 4 > > > + items: > > > + - description: send fifo is empty interrupt > > > + - description: send fifo is not empty interrupt > > > + - description: receive fifo is empty interrupt > > > + - description: receive fifo is not empty interrupt > > > + > > > + interrupt-names: > > > + minItems: 4 > > > + items: > > > + - const: send-empty > > > + - const: send-not-empty > > > + - const: recv-empty > > > + - const: recv-not-empty > > > > If the names became not-constant the asprintf thing goes away, not sure > > that's better or worse. > > I'm not sure I understand your comment here. This property just gives a name > to the interrupts so that they can be referenced by that instead of a magic > number between 0 and 4 in the driver. D'oh, right, retracted. (Both this comment and the corresponding comment on the driver itself). Sorry about that. > > > + clocks: > > > + description: > > > + Reference to the clock gate phandle(s) if required for this mailbox. > > > + Optional since not all mailboxes are attached to a clock gate. > > > > Do we do anything with the clocks at this point? > > > > The device tree bindings describe the hardware (as best as we can without proper > documentation) and some of these mailboxes have clock gates which need to be turned > on before accessing their MMIO. This driver already tries to do that and works fine > with the downstream clock driver(s) we have. Good enough for me, thanks for clarifying ???? Commit r-b, though Rob will surely point out problems and I'll need to rereview ????