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 02342C77B61 for ; Thu, 27 Apr 2023 16:11:54 +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=AmPCxeJ6aInBSXceYJ/po9Q5aQ4qfNhLrqN5kS7bvf8=; b=OhXfCdq++cRdIZ 91htwyAj+imPznpR3nIPw8G67ddfbODQnw+B90qGxkIrsWxAIYRAt0429YnWHdWZr6CbFgtwnTg8U dRdwRnA8FxEYcPRCV0NIUdF6NzwdXsUdcVbdUgsi4v0GPyZtBpiH5XfulRXHxLdomesjq6tceFAZd 6cU7miOSm9br0kUgdpTAwPyttXfNW9OqrHCDMPYd8/z+sFECTrGwEPBEu/byvwgN09NhZW0pJYs2l BgDhPXKkvxzLLTdnwrD+OYJTxFzygRDmKmmLOWemgZMoyz3+92iC0/pRoHHnEzmzhb0mLPb9bvK33 J6bwQGwRQGgn+KgYNOdg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ps4Cu-006xi0-0j; Thu, 27 Apr 2023 16:10:56 +0000 Received: from mail-oa1-f51.google.com ([209.85.160.51]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1ps4Cr-006xhD-1B for linux-arm-kernel@lists.infradead.org; Thu, 27 Apr 2023 16:10:54 +0000 Received: by mail-oa1-f51.google.com with SMTP id 586e51a60fabf-18f16a2c329so5328205fac.0 for ; Thu, 27 Apr 2023 09:10:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682611850; x=1685203850; 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 :message-id:reply-to; bh=2zb4UIqURY+BWTS3e9vX+YTZaBHbEmn0Eg9W3zLRlAs=; b=gAYLjbzhfb+28B0z3qgCMYUWxFbRb30HtPyelRekgzklGaMqfHTDeGMMKx0FwSVOHB NKCHwJleYArw7JfV0tUG806IEz9dI0idg2cMkeSDHb0bbkRYcqQx1xKjup+BAwFb1TTI cFUL6C2vLMZMjoqB3aTMniSOkW8y759E5m3QhEgjwOZjyQFZrgdy8WlVveiocFROYgeF JXtBIWTtIEhJmxNc/b9VTEXF+Rds3Tc7vqRc4eR0ZAR4ZjoVvMWswV1XHi+UzfQGtOdz yItw4H2fbAZ+rzA1Tv5KFwUsf3RyHaJtbLglimn9R7I59wUg3HFVeNV80UW+iD+dCAJN xO/g== X-Gm-Message-State: AC+VfDyM+hk0W3Z3Pj4xxBtY4e+KJ027aCeM07LjkV8tY4DzaVCcT4AJ bhm15iDTwdJZhZg95J1Vzw== X-Google-Smtp-Source: ACHHUZ69Sq4w3EraVz3yG/3YjM+ceN2r9AONaP5KgtunTytLs//j63DXjClPMLRDUmHDfuI/a8cy3w== X-Received: by 2002:a05:6830:201a:b0:6a7:bced:411e with SMTP id e26-20020a056830201a00b006a7bced411emr1138804otp.3.1682611850271; Thu, 27 Apr 2023 09:10:50 -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 i15-20020a9d624f000000b0069fb8bfb4f3sm8056756otk.77.2023.04.27.09.10.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Apr 2023 09:10:49 -0700 (PDT) Received: (nullmailer pid 3112114 invoked by uid 1000); Thu, 27 Apr 2023 16:10:49 -0000 Date: Thu, 27 Apr 2023 11:10:49 -0500 From: Rob Herring To: Linus Walleij Cc: Bartosz Golaszewski , Krzysztof Kozlowski , Maxime Coquelin , Alexandre Torgue , Dmitry Torokhov , Lee Jones , Philippe Schenker , Stefan Agner , Marek Vasut , Steffen Trumtrar , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Subject: Re: [PATCH v2 1/2] dt-bindings: gpio: Add STMPE YAML DT schema Message-ID: <20230427161049.GA3107476-robh@kernel.org> References: <20230426-stmpe-dt-bindings-v2-0-2f85a1fffcda@linaro.org> <20230426-stmpe-dt-bindings-v2-1-2f85a1fffcda@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230426-stmpe-dt-bindings-v2-1-2f85a1fffcda@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230427_091053_402532_58A7CCC0 X-CRM114-Status: GOOD ( 22.69 ) 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 Wed, Apr 26, 2023 at 01:21:38PM +0200, Linus Walleij wrote: > This adds a schema for the STMPE GPIO that while it is used a > lot in the kernel tree is anyway missing its bindings. > > Signed-off-by: Linus Walleij > --- > ChangeLog v1->v2: > - New patch split off from the MFD patch. > --- > .../devicetree/bindings/gpio/st,stmpe-gpio.yaml | 60 ++++++++++++++++++++++ > 1 file changed, 60 insertions(+) > > diff --git a/Documentation/devicetree/bindings/gpio/st,stmpe-gpio.yaml b/Documentation/devicetree/bindings/gpio/st,stmpe-gpio.yaml > new file mode 100644 > index 000000000000..6e991ebbdf77 > --- /dev/null > +++ b/Documentation/devicetree/bindings/gpio/st,stmpe-gpio.yaml > @@ -0,0 +1,60 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/gpio/st,stmpe-gpio.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: STMicroelectonics Port Expander (STMPE) GPIO Block > + > +description: STMicroelectronics Port Expander (STMPE) is a series of slow > + bus controllers for various expanded peripherals such as GPIO, keypad, > + touchscreen, ADC, PWM or rotator. It can contain one or several different > + peripherals connected to SPI or I2C. These bindings pertain to the > + GPIO portions of these expanders. > + > +maintainers: > + - Linus Walleij > + > +properties: > + compatible: > + const: st,stmpe-gpio > + > + "#gpio-cells": > + const: 2 > + > + "#interrupt-cells": > + const: 2 > + > + gpio-controller: true > + > + interrupt-controller: true > + > + st,norequest-mask: > + description: A bitmask of GPIO lines that cannot be requested because for > + for example not being connected to anything on the system > + $ref: /schemas/types.yaml#/definitions/uint32 > + > +patternProperties: > + "^.+-hog(-[0-9]+)?$": > + type: object > + > + properties: > + gpio-hog: true > + gpios: true > + input: true > + output-high: true > + output-low: true > + line-name: true > + > + required: > + - gpio-hog > + - gpios All you need for hog nodes is: "^.+-hog(-[0-9]+)?$": type: object required: - gpio-hog The presence of 'gpio-hog' causes the hog schema to be applied. Rob _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel