Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp503360rwe; Wed, 31 Aug 2022 06:31:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR4q7I0AsLmZErH94SBeAMt6Hm8K1KnXbMp3MGO1eWAUqWD4Xp3qd8M/Pi+m+NVuCgKHdRcg X-Received: by 2002:a17:907:1688:b0:730:b3ae:347 with SMTP id hc8-20020a170907168800b00730b3ae0347mr20475215ejc.756.1661952683834; Wed, 31 Aug 2022 06:31:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661952683; cv=none; d=google.com; s=arc-20160816; b=Lbafyc2q/D7d6+dTa48aXCR3BK4YH0SC/h+Pk7FN33SPT27WjWrQ4VZhJ2Hiz5GvbQ r6gEqSSAI0J1BJuQVG4vNVPOYo7CnpTzZmJXY521Y1cHOqkMh0WfcUXXDQ19DkB2nz72 lm8twaK2MMz46w2UwkRIBUK9+XgkbX69ZVk/0Gac8XxgknjxNBqPJ5l/pfA9B6ygCXGP ZBXOqKYDxI5vCyprqfEWgI5uxGiOBAbHAGVjWPoNGDnCUK1f/iogz93JDD+PFc7Vb0GF bLgWq7q2UCpONc+YauAVtjeJvS7+aE7AMW/7P1KaOdPaA0/b9q1WI8WPJE9GTNuNLSzW hxAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=a4juxeAAulsXmDrJb36ig59wvWAlzfmtIuDcR0ZWcMU=; b=g7yA1B6UVQdtGLUSR7XI+wOQUDRLCJE4gCSJRg8zigfkPOfScLwXlTBWgUeelqu8xf 5AiwzC3eZKacOzi12WEBVZo5va/HPuIbay4SPPqVsapIiTHsuCNIugcyF6duQ6rX6BY9 JjDnzzXu45LRJs19O07lyyzlgo+r5oyMlaYcgeJdvcR094k3opDqPAZdTPkx2gEmey8U AcD39tbJsH83DjH5qB9A/n1VNYQ1oZCJGUATKyZqBOHgMUETyope556iaisKvIXOQ1cw tVQPKT9Lbmiv+We+nl9RBTDK+2nHQVElp8hyDkYfxnF+k1SjBBqgAvQYwEN4RR7gWtup CAAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=cVvQdejj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cb27-20020a0564020b7b00b00446984e6dc2si9954916edb.60.2022.08.31.06.30.57; Wed, 31 Aug 2022 06:31:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=cVvQdejj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229601AbiHaMkX (ORCPT + 99 others); Wed, 31 Aug 2022 08:40:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbiHaMkT (ORCPT ); Wed, 31 Aug 2022 08:40:19 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0669E4D4F4 for ; Wed, 31 Aug 2022 05:40:16 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id bj12so28049277ejb.13 for ; Wed, 31 Aug 2022 05:40:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=a4juxeAAulsXmDrJb36ig59wvWAlzfmtIuDcR0ZWcMU=; b=cVvQdejj1xh4k3nxjYSt5s0vZsxpXN2i7pF/rCWGkRd6NPibNRhJi/T4D2DkynEaYx QcjG/cIxhl4/6qzg7X7eXjHD4RVNoVqSPvPSjDxijwnxr5mmiQJLl7UIAWf7ct/R4USZ y6sVrnyqIeNZMPpfg22hsgcsonH5HBXg249mPi8ZJxmcLLW1tLQIpelOq4DwLHExAgrh nj9nlyAUV/AfcOq2TXTeoshWdB/KJ269XkbCeLwKIRo79cEguCOenMVI1Y3U/tZfJwPU UY0JdycIpFs47eT2tFz0Vzv23IcWLQQ5KjodRB2m2DLUCJmJY4rBCOAwSwaoMhFJGv5D wmJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=a4juxeAAulsXmDrJb36ig59wvWAlzfmtIuDcR0ZWcMU=; b=BRWopNPrq1pH0OyXgtxThkjyIGbTwJQNQEiTH3YC3l42vbr7wK3OMyCo2EvyTavDlV fZ1Ng4SpdpxUw0t5JBoVVxUGYJctABxzADHVmdPMPRAEtr7ZPppqHd73Bv7Af1YIIIRn vDlxvYxvGIt3tu+MnPkixjx6RF/SQOt1iSJc/KLnhqNQU6r2Rn1JUGtR2jso+Ew0b2bk oyEGjNs/3nae5lq2s0vlXlDwIuvnePxWLaBsGDAG/uuBLo4eCDWMpa9Ja7tyK28EmQys e8jCFTUIgseQZIYOGepVrWCQXWo5BZb/q+iViDTFamJcCHjYuadgSH7oeWkeeQGclEAu Acxg== X-Gm-Message-State: ACgBeo24YJ2up6Y9BsD88qkhYqoPTFb08gji1C67c0U0YeReol7Ey5HZ 9F9pDh6DR9shKXHuvJb/UIwFZ5n8VkMH35AIKXNosg== X-Received: by 2002:a17:907:7394:b0:73a:d077:9ba1 with SMTP id er20-20020a170907739400b0073ad0779ba1mr19414625ejc.697.1661949615282; Wed, 31 Aug 2022 05:40:15 -0700 (PDT) MIME-Version: 1.0 References: <20220825143522.3102546-1-conor.dooley@microchip.com> In-Reply-To: <20220825143522.3102546-1-conor.dooley@microchip.com> From: Bartosz Golaszewski Date: Wed, 31 Aug 2022 14:40:04 +0200 Message-ID: Subject: Re: [PATCH v2] dt-bindings: gpio: mpfs-gpio: allow parsing of hog child nodes. To: Conor Dooley Cc: Krzysztof Kozlowski , Linus Walleij , Rob Herring , devicetree , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 25, 2022 at 4:36 PM Conor Dooley wrote: > > The SD card and eMMC on PolarFire SoC are sometimes muxed using a GPIO > by the bootloader. Add a hog child property to facilitate this. > > Signed-off-by: Conor Dooley > --- > Changes since v1: > - move addtionalProperties up under type: > - drop the explicit match group syntax > --- > .../bindings/gpio/microchip,mpfs-gpio.yaml | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/Documentation/devicetree/bindings/gpio/microchip,mpfs-gpio.yaml b/Documentation/devicetree/bindings/gpio/microchip,mpfs-gpio.yaml > index 110651eafa70..fdc16822fd4b 100644 > --- a/Documentation/devicetree/bindings/gpio/microchip,mpfs-gpio.yaml > +++ b/Documentation/devicetree/bindings/gpio/microchip,mpfs-gpio.yaml > @@ -44,6 +44,24 @@ properties: > > gpio-controller: true > > +patternProperties: > + "^.+-hog(-[0-9]+)?$": > + type: object > + > + additionalProperties: false > + > + properties: > + gpio-hog: true > + gpios: true > + input: true > + output-high: true > + output-low: true > + line-name: true > + > + required: > + - gpio-hog > + - gpios > + > required: > - compatible > - reg > -- > 2.36.1 > Applied, thanks! Bart