Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2763453pxj; Mon, 10 May 2021 10:10:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmHkPj4ihHYKFxSQJSyMpMf4TCvCiFqncfSoqkoM832Piad1oMr4jbOch4FzyVJKoEFp6Q X-Received: by 2002:a02:6d6c:: with SMTP id e44mr22228851jaf.81.1620666643942; Mon, 10 May 2021 10:10:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620666643; cv=none; d=google.com; s=arc-20160816; b=sq9NpSMlGUbvY2qVaQD8zN6YSR0ReBe73ql6sL0NyNnWedvNd2E2bXSlM6DRvAPOU1 oo3kovJMVn8IscTh24OTYO4KI7NRtQXzm+xdgS2Nno+15Relmc3gPNkic1ZpeWCCLSVB 4etuiAcGcWjZqmOrCy+hSuk/4Fk65Fdf7z3SYbLt+wbe6q2PFSJKynIe6UADIXoTTExz 9K08AKEqnPwN/hJSdS/tXGKs1+MW4RlcgwfwkLRt3Mmc/XYybtHUHNzKUf74nJ98z6BO VqrqIH9tNT2ZupHWHpXeZICUFVf1LO0QM7vPrOFfps46C80DuP6st9wqdnoSeOHpDd5C 3DHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:references:subject:in-reply-to:cc:to :from:date; bh=EFq7k139py3jOiz2gVTT27JGV9kOFZ+gd9lnRQVktLM=; b=DvYvwAbC1ktbeK2DMuKs3ALLh4656YLP2Jg7gwcZZ2zL54mbT70Hp2sgyuqbhiVH3E AL8eqKbb2fKcUfn4HxMPiUik9DVEs5au+2jL0o3Xu9O9vCSvWhvstIdctGT+fipY4Nts A5mqJj7pDjUaRksmwtyqVu/gOnNFoQb2N9uPNSVss0cq/oNI2niNdDxsIJDUezmqv/iZ 3rmK4Z6gmPFZacJ5YzGCtMecekaHBacjGW2Y4AwTAozNQJ7d0bbuotsaDNempEsX0vs5 gpCPVwfBS9hGX+gZkEU+mqO0M777r8Lk4SEUSC5nG61bhyXWHSXgz/I1yEqJbd0xd9+L O58A== 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 d5si15325003ioq.28.2021.05.10.10.10.29; Mon, 10 May 2021 10:10:43 -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 S232050AbhEJRLF (ORCPT + 99 others); Mon, 10 May 2021 13:11:05 -0400 Received: from sibelius.xs4all.nl ([83.163.83.176]:63886 "EHLO sibelius.xs4all.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231713AbhEJRLF (ORCPT ); Mon, 10 May 2021 13:11:05 -0400 Received: from localhost (bloch.sibelius.xs4all.nl [local]) by bloch.sibelius.xs4all.nl (OpenSMTPD) with ESMTPA id 04c0d1db; Mon, 10 May 2021 19:09:58 +0200 (CEST) Date: Mon, 10 May 2021 19:09:58 +0200 (CEST) From: Mark Kettenis To: Krzysztof Kozlowski Cc: kettenis@openbsd.org, devicetree@vger.kernel.org, marcan@marcan.st, linus.walleij@linaro.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <3bad54b9-599a-91c6-48b8-dd1c494f61b5@canonical.com> (message from Krzysztof Kozlowski on Mon, 10 May 2021 09:03:13 -0400) Subject: Re: [PATCH 1/2] dt-bindings: pinctrl: Add DT bindings for apple,pinctrl References: <20210508142000.85116-1-kettenis@openbsd.org> <20210508142000.85116-2-kettenis@openbsd.org> <3bad54b9-599a-91c6-48b8-dd1c494f61b5@canonical.com> Message-ID: <5612be6e2a63adbd@bloch.sibelius.xs4all.nl> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Krzysztof Kozlowski > Date: Mon, 10 May 2021 09:03:13 -0400 > > On 08/05/2021 10:19, Mark Kettenis wrote: > > The Apple GPIO controller is a simple combined pin and GPIO conroller > > present on Apple ARM SoC platforms, including various iPhone and iPad > > devices and the "Apple Silicon" Macs. > > > > Signed-off-by: Mark Kettenis > > --- > > .../bindings/pinctrl/apple,pinctrl.yaml | 103 ++++++++++++++++++ > > MAINTAINERS | 2 + > > include/dt-bindings/pinctrl/apple.h | 13 +++ > > 3 files changed, 118 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml > > create mode 100644 include/dt-bindings/pinctrl/apple.h > > > > diff --git a/Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml > > new file mode 100644 > > index 000000000000..cc7805ca6ba1 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml > > @@ -0,0 +1,103 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/pinctrl/apple,pinctrl.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Apple GPIO controller > > + > > +maintainers: > > + - Mark Kettenis > > + > > +description: | > > + The Apple GPIO controller is a simple combined pin and GPIO conroller > > + present on Apple ARM SoC platforms, including various iPhone and iPad > > + devices and the "Apple Silicon" Macs. > > + > > +properties: > > + compatible: > > + items: > > + - const: apple,t8103-pinctrl > > + - const: apple,pinctrl > > What is the point of having very generic final compatible in the binding > which does not relate to actual hardware? > > Let's say next SoC will be > apple,x-abcd-foo-2323-whatever-nothing-in-common and you still have to > use generic "apple,pinctrl" even though HW is not at all compatible? > This looks like wildcard, not HW description. Hi Krzysztof, See my reply to Rob's mail. We have some confidence that Apple isn't changing their GPIO block very often. If they were to change it in an incompatible way in a future SoC, we'd drop the "apple,pinctrl" compatible of course. Thanks, Mark