Message ID | 20230426-stmpe-dt-bindings-v3-1-eac1d736e488@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1762456vqo; Sun, 7 May 2023 14:22:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Vwu/2lhtbYPPxbWWxpB8IgzvP+36AF8H8PRQ+ScPQk9Lnl6GoUQx61m+IqHuXMfMMQHwJ X-Received: by 2002:a17:90a:31c6:b0:24e:26f4:4b22 with SMTP id j6-20020a17090a31c600b0024e26f44b22mr8073482pjf.16.1683494539686; Sun, 07 May 2023 14:22:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683494539; cv=none; d=google.com; s=arc-20160816; b=MVspADRrNS/n10ddcUI21j2496l4NGZzxrTaAvE/gN5ARMxQgsQ0ORtryWkqWQw8ZL ++QdQzel0VDD+WeC3orwYSswvcmAjPArupNrlMXWRIHu8kW1a671eseWZKVTwLKk3oz2 tsXhlelvGtqtbJrK2GA2K9ggp6HeUttmfR+aszicAUsbzNs+GfVHZhI5zJsCWUXtrg+7 00kDJSSeAKaDYAixm4T71QK+/hUfahcW1izUa6LMJClk53E+5nyR3XMAvdB1KV70O44j kBdC02IzpgTisKDJQEwLx68i5py0D4DpxbVCfGF53/HWtz81l3it6zkuKtwzWTghp9nd xArA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=HwevgKM2xEEUV3PSktWUIPbGHR7oQ/3U2UMCdx8DSQw=; b=0fDYsxTd2pBesrS67uOY9EMg2+mpxzgFKUt5uO3er6Q9SmhykrIWxuhQOhLkLUttzq Kh3P/fbrTN6KSM6k5ma+AwlrT4iEXg/WsiMtdWSQMlJv/ar/GJs09sVlONCV+M13oDtR VCp1OCOwPomoDgQW7QKs2PQRgA0RKGQP5+osxhVyuECa9E29GALs2/ZN4puMOwU8kRzD CtcSv0iIYqd59TpYO5Y3d8iadzHDQI9kpg4+hAsscP2sL2c+r6XyQg+BCZtJFOs0nDed sr+KBUGAyHk6q2mi0CtTsbnDA3N7IozlXwRGCr5oz1Zm7Yik+YtHdknTyaROvogfrZ6t cZcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s0U+zU8a; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j6-20020a17090a31c600b002500dd30da9si8214522pjf.6.2023.05.07.14.22.05; Sun, 07 May 2023 14:22:19 -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=@linaro.org header.s=google header.b=s0U+zU8a; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231472AbjEGVT3 (ORCPT <rfc822;baris.duru.linux@gmail.com> + 99 others); Sun, 7 May 2023 17:19:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231631AbjEGVT0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 7 May 2023 17:19:26 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F2BE11B49 for <linux-kernel@vger.kernel.org>; Sun, 7 May 2023 14:19:24 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2ac8c0fbb16so27753351fa.2 for <linux-kernel@vger.kernel.org>; Sun, 07 May 2023 14:19:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683494362; x=1686086362; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=HwevgKM2xEEUV3PSktWUIPbGHR7oQ/3U2UMCdx8DSQw=; b=s0U+zU8aQqPN7MZYfmfTf7ia97xzp/vNrAFvrs+ppmfmgP3K9zLYYvuAWKWhKEPAu6 1q4NiExKLniEtMhN93KP0TJGpIPG0pqwBBojEJrvuRIMQxxWCpXhzrWzS4zIzhy8mY5t U5jFWeg20HhB2N0RhkyS1T4WqTOodZtbPuXcnCpXoohlW0t3UcLmDeye3edPTYISperg bcU48JJRSmNFDoBnxG1uHVJvF95iiSCWNwyBFB62p/gsZLe8tEkfh8mVahz0kaWMwFkM SR1aR+4tIHK2MMhOGUV0ju3EOAmyf/qKayh6jmd6zbtfrLTZrxLKRgd4F7atNyx4S+YT 36dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683494362; x=1686086362; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HwevgKM2xEEUV3PSktWUIPbGHR7oQ/3U2UMCdx8DSQw=; b=aYcmYG5WZTwyEDQpDU2fdfGacSpGXO+3tO3CS0ETrFt292TVZ5QJYAGVFt11impGji kwXFejUhUhxZjQ2O8OLMjDvm2szJsnGDXthwBYNUuiVEW/rXpA1vc+P6yEbFEamVju3y iwhv1fJZOT4E3sND6niUBZPXgifFhppeGmUGYzWq14CleztgzhyKeL1ibpZZcgtH0RBd yFJvsbdDrmUevOKr7vWThrsKMGDrUMnXmq2ml/eyJ2wDwTgqu0kwKQWjdVas0ayr0+m6 77N1I8eHuAtVpPLDR46RW+c8bGdcQEZql2pwefKjRUf5xsNaqCvxkjR24xadeJAcrmLD E2rw== X-Gm-Message-State: AC+VfDxQaswaMdMucPbtSOedzQ6u0lD2xxDIWeX95ktrX4/iCfdOK5pj y40gylPa4fl3s/lxF3Y4VfxdJA== X-Received: by 2002:ac2:4310:0:b0:4ef:f017:e52 with SMTP id l16-20020ac24310000000b004eff0170e52mr2042177lfh.5.1683494362323; Sun, 07 May 2023 14:19:22 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id c27-20020ac244bb000000b004f195cc3918sm623424lfm.176.2023.05.07.14.19.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 May 2023 14:19:21 -0700 (PDT) From: Linus Walleij <linus.walleij@linaro.org> Date: Sun, 07 May 2023 23:19:19 +0200 Subject: [PATCH v3 1/2] dt-bindings: gpio: Add STMPE YAML DT schema MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230426-stmpe-dt-bindings-v3-1-eac1d736e488@linaro.org> References: <20230426-stmpe-dt-bindings-v3-0-eac1d736e488@linaro.org> In-Reply-To: <20230426-stmpe-dt-bindings-v3-0-eac1d736e488@linaro.org> To: Bartosz Golaszewski <brgl@bgdev.pl>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Dmitry Torokhov <dmitry.torokhov@gmail.com>, Lee Jones <lee@kernel.org>, Philippe Schenker <philippe.schenker@toradex.com>, Stefan Agner <stefan@agner.ch>, Marek Vasut <marex@denx.de>, Steffen Trumtrar <s.trumtrar@pengutronix.de> Cc: 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, Linus Walleij <linus.walleij@linaro.org> X-Mailer: b4 0.12.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765271970147213707?= X-GMAIL-MSGID: =?utf-8?q?1765271970147213707?= |
Series |
STMPE device tree bindings
|
|
Commit Message
Linus Walleij
May 7, 2023, 9:19 p.m. UTC
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 <linus.walleij@linaro.org>
---
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/st,stmpe-gpio.yaml | 51 ++++++++++++++++++++++
1 file changed, 51 insertions(+)
Comments
On Sun, 07 May 2023 23:19:19 +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 <linus.walleij@linaro.org> > --- > 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/st,stmpe-gpio.yaml | 51 ++++++++++++++++++++++ > 1 file changed, 51 insertions(+) > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13): yamllint warnings/errors: dtschema/dtc warnings/errors: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2685.example.dtb: camera-sensor@3c: port:endpoint:data-lanes: [[1]] is too short From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2685.yaml /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/rockchip-isp1.example.dtb: camera@3c: port:endpoint:data-lanes: [[1]] is too short From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2685.yaml /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.example.dtb: pcie-ep@33800000: Unevaluated properties are not allowed ('assigned-clock-parents', 'assigned-clock-rates', 'assigned-clocks' were unexpected) From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.yaml doc reference errors (make refcheckdocs): Documentation/usb/gadget_uvc.rst: Documentation/userspace-api/media/v4l/pixfmt-packed.yuv.rst MAINTAINERS: Documentation/devicetree/bindings/pwm/pwm-apple.yaml See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230426-stmpe-dt-bindings-v3-1-eac1d736e488@linaro.org The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.
On Mon, May 8, 2023 at 12:26 AM Rob Herring <robh@kernel.org> wrote: > On Sun, 07 May 2023 23:19:19 +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 <linus.walleij@linaro.org> > > --- > > 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/st,stmpe-gpio.yaml | 51 ++++++++++++++++++++++ > > 1 file changed, 51 insertions(+) > > > > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' > on your patch (DT_CHECKER_FLAGS is new in v5.13): > > yamllint warnings/errors: > > dtschema/dtc warnings/errors: > /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2685.example.dtb: camera-sensor@3c: port:endpoint:data-lanes: [[1]] is too short > From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2685.yaml > /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/rockchip-isp1.example.dtb: camera@3c: port:endpoint:data-lanes: [[1]] is too short > From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2685.yaml > /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.example.dtb: pcie-ep@33800000: Unevaluated properties are not allowed ('assigned-clock-parents', 'assigned-clock-rates', 'assigned-clocks' were unexpected) > From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.yaml Looks like these are not mine... Yours, Linus Walleij
On 08/05/2023 08:30, Linus Walleij wrote: > On Mon, May 8, 2023 at 12:26 AM Rob Herring <robh@kernel.org> wrote: >> On Sun, 07 May 2023 23:19:19 +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 <linus.walleij@linaro.org> >>> --- >>> 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/st,stmpe-gpio.yaml | 51 ++++++++++++++++++++++ >>> 1 file changed, 51 insertions(+) >>> >> >> My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' >> on your patch (DT_CHECKER_FLAGS is new in v5.13): >> >> yamllint warnings/errors: >> >> dtschema/dtc warnings/errors: >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2685.example.dtb: camera-sensor@3c: port:endpoint:data-lanes: [[1]] is too short >> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2685.yaml >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/rockchip-isp1.example.dtb: camera@3c: port:endpoint:data-lanes: [[1]] is too short >> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2685.yaml >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.example.dtb: pcie-ep@33800000: Unevaluated properties are not allowed ('assigned-clock-parents', 'assigned-clock-rates', 'assigned-clocks' were unexpected) >> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.yaml > > Looks like these are not mine... Yep, these are coming from other issues, now happening in Linus' master. I fixed the PCI and I will send it together with the fix for media to Linus. Best regards, Krzysztof
On 07/05/2023 23:19, 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 <linus.walleij@linaro.org> > --- > 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/st,stmpe-gpio.yaml | 51 ++++++++++++++++++++++ > 1 file changed, 51 insertions(+) This should be a conversion of Documentation/devicetree/bindings/gpio/gpio-stmpe.txt: 1. Expressed in subject, commit msg, 2. With changes against original binding mentioned in commit msg, 3. With removal of old file. > > 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..41aa82b8b3eb > --- /dev/null > +++ b/Documentation/devicetree/bindings/gpio/st,stmpe-gpio.yaml > @@ -0,0 +1,51 @@ > +# 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 If there is resend/new version, put blank line after description: > + 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 <linus.walleij@linaro.org> > + > +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 Here as well. > + $ref: /schemas/types.yaml#/definitions/uint32 > + > +patternProperties: > + "^.+-hog(-[0-9]+)?$": > + type: object > + > + required: > + - gpio-hog > + Best regards, Krzysztof
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..41aa82b8b3eb --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/st,stmpe-gpio.yaml @@ -0,0 +1,51 @@ +# 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 <linus.walleij@linaro.org> + +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