Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp717838rwe; Thu, 25 Aug 2022 08:04:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR5s4a96eDj6m+Myy6SZw9sAhYwtI504A8r4LT3jZQ+YdauCOe93ekMSqx738aolQZUcXoKg X-Received: by 2002:a17:90b:1d08:b0:1fb:5ce5:e644 with SMTP id on8-20020a17090b1d0800b001fb5ce5e644mr4950234pjb.215.1661439897560; Thu, 25 Aug 2022 08:04:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661439897; cv=none; d=google.com; s=arc-20160816; b=GDCJcpmcjB89imBufEEq7xUwLPcowPnG5fqhDLD5RLKkN9Vbm8omXuBkHLHWhizvp0 zVMutLCa33tSOAAnDfN5vIAT9RL7S/efveSOfy/BnNGP0SQNuIsR3UUXvihfYxL+X57D ryI2VQlWlaoKcjsopE8GQe2LZv3rYRfPrufYXSWIm/1wt04okbd+7xw6qljqih+Rne3o wU0zLClMKcQCNpFrXgFS5aLgE93D9Cp+vRqraqlmplKoHJgowOix5tT/3Os9ONWR8yIF oT8DNvih2T0LxSTJbrQCsmo1MZByCOng9mzdmK+Y5IRUhAO7QD57+doVE2mnC487RKt7 7i4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=FaslC3VUkdbPNexbMCVwqpQxNakEILjx+eL4sKKiJP0=; b=gUQbHBfjgxD+AM62o8TRhBVkA/yCJBRVYGAUmpNoAWF4uWQJAPVncVqQZrnMPjnLPr AmW4z8RGNQrDjrmfYt7ZHZlLdjAlbnbkHIDhQw2bE+YlitfrenUIUVwWxFAZCspF2lQh ffxdFwOMN6W/JPYpd7gHD7fF97srvi2BEOv9pmtlTQcxbYCZS2fhqchKdEsN5VXSvVND McDj5fUrRaFjiA7fjUobWv9BEAf36BCe5RKNP9nX77xBzH5R7h10OWAP3SgWr7Bo2eDG opcFTbksmdAnwQgPBBv9UeznX7OIRPUOQC3kVz4JANmQBlLCIyoarUIYbwVjb7LsYG0G jeUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=UOEjSyjB; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z14-20020a170902d54e00b00163f5028fe7si10995406plf.365.2022.08.25.08.04.45; Thu, 25 Aug 2022 08:04:57 -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=@microchip.com header.s=mchp header.b=UOEjSyjB; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242010AbiHYOgT (ORCPT + 99 others); Thu, 25 Aug 2022 10:36:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241895AbiHYOgQ (ORCPT ); Thu, 25 Aug 2022 10:36:16 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44E56A61E1; Thu, 25 Aug 2022 07:36:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1661438173; x=1692974173; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=phSuuXXl4YEtWyDnHAU+d+JU7bFN1Ijd9OinFLNU96s=; b=UOEjSyjBhw9iSu9/awJsMlG+58Vjrzl4vohq68ySwFV1s5VoA+Bs0DXG 7uJEVI54vmjVaQoKzy7TpJ2/zklstknyvAtN+D32xuHNpNTlsuKVqwUUh 8UQmKa3InOR/4VzzJ51c2eGcTYXTX5nOFwbAiJrkpcAuWXNiq0XYY+yMb iJlNnLMClh/IZ68qW1kJY+gn/bDZXYF977TBuSZSj4VlGiDWHLmosgf9t js9Qf6YayiyJwzQd+V7OSaHTntM+YYVDJNC0SlXEiVw9GI1Sc8+lNOVtl Pcj1C01Hn13/bG7hA65iK9PtiZMHyPEx1PG4qckVPkYx0ddlgKFuIsHEk w==; X-IronPort-AV: E=Sophos;i="5.93,263,1654585200"; d="scan'208";a="110734230" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 25 Aug 2022 07:36:12 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Thu, 25 Aug 2022 07:36:10 -0700 Received: from wendy.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Thu, 25 Aug 2022 07:36:09 -0700 From: Conor Dooley To: , , , CC: , , , Conor Dooley Subject: [PATCH v2] dt-bindings: gpio: mpfs-gpio: allow parsing of hog child nodes. Date: Thu, 25 Aug 2022 15:35:23 +0100 Message-ID: <20220825143522.3102546-1-conor.dooley@microchip.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 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