From patchwork Sun May 7 21:19:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 90884 Return-Path: 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 + 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 ); 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 ; Sun, 7 May 2023 14:19:24 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2ac8c0fbb16so27753351fa.2 for ; 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 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 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 , Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Alexandre Torgue , Dmitry Torokhov , Lee Jones , Philippe Schenker , Stefan Agner , Marek Vasut , Steffen Trumtrar 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 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: 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?= 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 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(+) 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 + +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