Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8981936rwr; Thu, 11 May 2023 08:30:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4WYj1NflG+6Pvpig2nV1bhLoJ2LJNNUo2s2kupDx+tZTgSj46SrjN6S94L4FBw0Q2KUecW X-Received: by 2002:a17:903:1210:b0:1a6:a988:b858 with SMTP id l16-20020a170903121000b001a6a988b858mr27094958plh.58.1683819039694; Thu, 11 May 2023 08:30:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683819039; cv=none; d=google.com; s=arc-20160816; b=RI0zzak/hShr7/GSPuS2m1pcemt/Qqw06GxFX0u17Eq8jkqrNAItEeP+nc/b935pBW xZduScVnzBMktZmiNASXBYi8ZI8kOAmC9/pdacD5yO5/IVZKom7KSXHaeCmheDIqN6PT 4al+TycItBPBEgVLSkG+cmXiJGl+hvNZQdP/6r9NcQ6SU+ESMnR8Pv+/qdNd3JmRGbVI S76HsBNwfR59/4KAQeHZhWpfMs6pd3Rzu74EjEJRRsaGvg1PzeEGjQ0zLCPvpSnf94ac VO9JDFUwGaVisf0DEnzIJujvIv0stJKKPOhns0Nif9KwPK89YZ2KQiQA7J1p+JzxCq4q cd+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=VpO6U7Z1mcKtQslpBIHzR8nzCY5JK29I5far4gQgMlo=; b=upyvrXARpdYgc5voOZ3DmagGgRupLEjBtQy+l9SLHtd08vK/uez7YDi9Fnl1JRfMta EhnVnDj+VMmI+xGGf3NgMDYJ2Lu+X04Gtb0ZYkf4GnajUHx6FhjycJk+pdFosF2I1gRC sOlxYCsUHzb2nOc/fFwAiIO8OeqSTVLEXLN5D9fX8UzK3WQUEFEk0YHAFi5X2Kx9O0xw +IgPISYHN73sUxWCxLkCI2UOz9P0yzuAfBiUstIeVKci2pxJtWRdg9oXym3yChrsO8an 15Voir5AdMIpvwwJ7luNCV3pLh8Io3nK5N5M0mGhSF0dZQzFSw+iNxB4d7QWOgIoIlqc JgKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b="kKN3/B2J"; 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 b12-20020a170902a9cc00b001a229e52c19si6700902plr.91.2023.05.11.08.30.23; Thu, 11 May 2023 08:30:39 -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.20221208.gappssmtp.com header.s=20221208 header.b="kKN3/B2J"; 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 S238295AbjEKO7c (ORCPT + 99 others); Thu, 11 May 2023 10:59:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238110AbjEKO7a (ORCPT ); Thu, 11 May 2023 10:59:30 -0400 Received: from mail-vk1-xa2a.google.com (mail-vk1-xa2a.google.com [IPv6:2607:f8b0:4864:20::a2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46FAEAD28 for ; Thu, 11 May 2023 07:59:03 -0700 (PDT) Received: by mail-vk1-xa2a.google.com with SMTP id 71dfb90a1353d-44ff2f8ec9dso5274380e0c.1 for ; Thu, 11 May 2023 07:59:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1683817138; x=1686409138; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=VpO6U7Z1mcKtQslpBIHzR8nzCY5JK29I5far4gQgMlo=; b=kKN3/B2JbJVf5rKF4ZI6Zg9LF1s3E60sEfHVHP9UbUqP9yq81zQWR60MUMAJ4fAfjN Gel8g1Xnxi5hayYrGVJI40UDFzephMAweqGfKfUYQBSTsicEj2WmtQ15Rg2DjcVLV/ld NaoHkM6cRUtI/ikfsF7kNKqRQEFLtO7xLZQLhCRJr/FqGZFoO38bZJsHlKmPZGs8Bik9 jREETS8YKz8fyWWk0OsvFSm22XIOIIuwCKzo+5kZdjzIULNACR10MRIn0DBvrzPKpDCQ kwL2St4jWiYuFot2AnULe5bPxqNQGH/B5ovtEXrDZEfkRVNN4ZlS2lx8ZoTgaWefQNc6 LplQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683817138; x=1686409138; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VpO6U7Z1mcKtQslpBIHzR8nzCY5JK29I5far4gQgMlo=; b=JG1UfM030RDJN6ucRa2dti0Mk9X8CpEOL0AfB4gA6XNWtVCYprf6NUfFtHF12acI6n XQOhoBQTqj9MwVicX4yL89xlsCiwN4P9caeUQO8FdhsyCPVhlG9/SWSxItlQxNEJsP4F H00r5u619UtG5u86oXsaZO3UtKXIXM6cilxP8MW1fM4pdDXFhA5BJ2KX8+XfQB31Lrxt v948Ha5TWdp0KhAc1OEgLuVOEQjeL2chPi2Vihl0+4TAyEDb/Jwf4E7KuXj47WXjoBDy M5H2xz7ywO4HULgkmDaTl+zAUu3aldNvL8qnrzkLBJAKbhij/WSiVgh3hkdooeZ0+9Ff nzRQ== X-Gm-Message-State: AC+VfDwn/85H5S6vKW8ICA2YxDVJtOg1RvSji6ySys9oGqBlyY9IyFbg J2bIXIAxyKFMpG+i0Fk6XzYuo2+ZzcQGn7Bul6huEw== X-Received: by 2002:a1f:c905:0:b0:43f:c280:c10b with SMTP id z5-20020a1fc905000000b0043fc280c10bmr8367140vkf.7.1683817138527; Thu, 11 May 2023 07:58:58 -0700 (PDT) MIME-Version: 1.0 References: <20230426-stmpe-dt-bindings-v4-0-36fdd53d9919@linaro.org> <20230426-stmpe-dt-bindings-v4-1-36fdd53d9919@linaro.org> In-Reply-To: <20230426-stmpe-dt-bindings-v4-1-36fdd53d9919@linaro.org> From: Bartosz Golaszewski Date: Thu, 11 May 2023 16:58:47 +0200 Message-ID: Subject: Re: [PATCH v4 1/2] dt-bindings: gpio: Convert STMPE GPIO to YAML schema To: Linus Walleij Cc: Rob Herring , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 Mon, May 8, 2023 at 2:35=E2=80=AFPM Linus Walleij wrote: > > This rewrites the STMPE GPIO bindings to a YAML schema. > > We add the properties that are used in the widely used > STMPE GPIO device nodes found in the wild, most notably > interrupt support, so interrupt-cells and > interrupt-controller is now part of the bindings. > > Signed-off-by: Linus Walleij > --- > ChangeLog v3->v4: > - Realize that there were actually some old bindings so we > need to get rid of them as part of this patch. > - Fix blank lines after description: keyword. > ChangeLog v2->v3: > - Use a compact hog node schema backed by the standard hog > schema. > ChangeLog v1->v2: > - New patch split off from the MFD patch. > --- > .../devicetree/bindings/gpio/gpio-stmpe.txt | 17 ------- > .../devicetree/bindings/gpio/st,stmpe-gpio.yaml | 53 ++++++++++++++++= ++++++ > 2 files changed, 53 insertions(+), 17 deletions(-) > > diff --git a/Documentation/devicetree/bindings/gpio/gpio-stmpe.txt b/Docu= mentation/devicetree/bindings/gpio/gpio-stmpe.txt > deleted file mode 100644 > index b33f8f02c0d7..000000000000 > --- a/Documentation/devicetree/bindings/gpio/gpio-stmpe.txt > +++ /dev/null > @@ -1,17 +0,0 @@ > -STMPE gpio > ----------- > - > -Required properties: > - - compatible: "st,stmpe-gpio" > - > -Optional properties: > - - st,norequest-mask: bitmask specifying which GPIOs should _not_ be req= uestable > - due to different usage (e.g. touch, keypad) > - > -Node should be child node of stmpe node to which it belongs. > - > -Example: > - stmpe_gpio { > - compatible =3D "st,stmpe-gpio"; > - st,norequest-mask =3D <0x20>; //gpio 5 can't be used > - }; > 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..22c0cae73425 > --- /dev/null > +++ b/Documentation/devicetree/bindings/gpio/st,stmpe-gpio.yaml > @@ -0,0 +1,53 @@ > +# 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 differ= ent > + 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 > + > + required: > + - gpio-hog > + > +additionalProperties: false > + > +required: > + - compatible > + - "#gpio-cells" > + - "#interrupt-cells" > + - gpio-controller > + - interrupt-controller > > -- > 2.34.1 > Applied, thanks! Bart