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 818DDC54EE9 for ; Wed, 7 Sep 2022 15:39:38 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kp27VxTI0+TOZM63iXX8Cdq3Li9YQ4Xnu/oc1w9l++Q=; b=x1eH7jN06xA50+ YdkrA3R6W0ScQKRr2ElLpF4O48TXSwPkgk600hRsOIuL1fuLpsvMZcJzT607Aru68ZfKVgFFz2ajB rZr0AokY673k2FP2tWtB6rfNOIbGKGUgWouEtOfxVOEELRx9lFigXiqMz50j9EcogsDHlIscxRjD9 tf/tkBrzF6jt0gHUdVjVN3g0jTnv/tC10PW62DJ81ofp8GxpZdzJhGSppIsxSCKe+R0Xtl57jYPx8 g2GQ+WhaSNouKjgFdnfmjZMd0Cx0Dd6s9WYmDzicNuewMEqojsUuZB3rSTaehJfWQAsAJAu+roloC nbViZHpEgok4fX0muu4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVx8H-007Ocr-Fr; Wed, 07 Sep 2022 15:38:29 +0000 Received: from mail-ot1-f53.google.com ([209.85.210.53]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVx8E-007ObX-Fy for linux-arm-kernel@lists.infradead.org; Wed, 07 Sep 2022 15:38:27 +0000 Received: by mail-ot1-f53.google.com with SMTP id v2-20020a056830090200b006397457afecso10498403ott.13 for ; Wed, 07 Sep 2022 08:38:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=KSoB0G6pzRD9DIaWPNDedKDIgG6tTjWjaUw36ufPm4w=; b=71TGlHl64k3cmmdZnDOOcRFsZO65BunEqYtYX7p8doh/I8VH4wI2XRPlwtoa64723c /6eI9XgwZfwcB2kZ3XtxUgZp+9MMHClSlQ0nF23KZKt+IugQVN0LbQei7L4Vp9LUmTTj 4IpsG3MasKjIHPypvVmPxPD74eUhXA2KEwPxvjeNRktm1AdNBLvjHPt+edhA911L9fH3 YNm4NoR+Ubd+2spbj2UiFZiX0WJCMM5Y62LsD4+8TS8Y7+tcMm2UpFHoTeeW/9HtBVNP VWBVwm5HqeTcy2eKaULvUpSrJzBJNzRCLeXbGHD4GCApSDGtqA1qSIZvhRKWrTBEXLXv hQ8A== X-Gm-Message-State: ACgBeo0uZsider84fQU0QUUjAXcGk4ND+DPPnIELYHtyI2761809HWh+ rIePXXWkY4HWk2I7IzOanw== X-Google-Smtp-Source: AA6agR7cHntWzuv22mM6yjZi+6RNKL5IJKl5pY/iSsPF1rL/uA/vWpzkdCz2m1iQhfyCAPlQWPYbhw== X-Received: by 2002:a9d:5508:0:b0:636:ee02:ff7c with SMTP id l8-20020a9d5508000000b00636ee02ff7cmr1745217oth.249.1662565104411; Wed, 07 Sep 2022 08:38:24 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id bm23-20020a0568081a9700b0034480f7eec4sm6550747oib.12.2022.09.07.08.38.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Sep 2022 08:38:23 -0700 (PDT) Received: (nullmailer pid 3498322 invoked by uid 1000); Wed, 07 Sep 2022 15:38:23 -0000 Date: Wed, 7 Sep 2022 10:38:22 -0500 From: Rob Herring To: "Russell King (Oracle)" Cc: Arnd Bergmann , Lee Jones , Linus Walleij , Alyssa Rosenzweig , Andy Shevchenko , asahi@lists.linux.dev, Bartosz Golaszewski , devicetree@vger.kernel.org, Hector Martin , Jonathan Corbet , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-gpio@vger.kernel.org, Petr Mladek , Rasmus Villemoes , Sergey Senozhatsky , Steven Rostedt , Sven Peter Subject: Re: [PATCH 2/7] dt-bindings: gpio: add binding for the GPIO block for Apple Mac SMC Message-ID: <20220907153822.GA3492530-robh@kernel.org> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220907_083826_553225_12CA2987 X-CRM114-Status: GOOD ( 20.37 ) 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 On Tue, Sep 06, 2022 at 02:19:34PM +0100, Russell King (Oracle) wrote: > Add the DT binding for the Apple Mac System Management Controller GPIOs. > > Signed-off-by: Russell King (Oracle) > --- > .../devicetree/bindings/gpio/gpio-macsmc.yaml | 28 +++++++++++++++++++ > .../devicetree/bindings/mfd/apple,smc.yaml | 4 +++ > 2 files changed, 32 insertions(+) > create mode 100644 Documentation/devicetree/bindings/gpio/gpio-macsmc.yaml > > diff --git a/Documentation/devicetree/bindings/gpio/gpio-macsmc.yaml b/Documentation/devicetree/bindings/gpio/gpio-macsmc.yaml > new file mode 100644 > index 000000000000..ee620fe50ca8 > --- /dev/null > +++ b/Documentation/devicetree/bindings/gpio/gpio-macsmc.yaml > @@ -0,0 +1,28 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/gpio/gpio-macsmc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Apple Mac System Management Controller GPIO > + > +maintainers: > + - Hector Martin > + > +description: > + This describes the binding for the Apple Mac System Management Controller > + GPIO block. > + > +properties: > + gpio-controller: true > + '#gpio-cells': > + const: 2 > + > +additionalProperties: false > + > +examples: > + - | > + smc_gpio: gpio { > + gpio-controller; > + #gpio-cells = <2>; > + }; Please move the example to the mfd schema. One complete example rather than piecemeal examples. > diff --git a/Documentation/devicetree/bindings/mfd/apple,smc.yaml b/Documentation/devicetree/bindings/mfd/apple,smc.yaml > index 168f237c2962..47e3cd58bf19 100644 > --- a/Documentation/devicetree/bindings/mfd/apple,smc.yaml > +++ b/Documentation/devicetree/bindings/mfd/apple,smc.yaml > @@ -37,6 +37,10 @@ title: Apple Mac System Management Controller > description: > A phandle to the mailbox channel > > +patternProperties: > + gpio: > + $ref: /schemas/gpio/gpio-macsmc.yaml > + Reorder the patches such that the MFD binding is last and this hunk can be part of it. Rob _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel