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: 679790 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38068C7EE2D for ; Sun, 7 May 2023 21:19:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231543AbjEGVT2 (ORCPT ); Sun, 7 May 2023 17:19:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231472AbjEGVT0 (ORCPT ); Sun, 7 May 2023 17:19:26 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45073120BE for ; Sun, 7 May 2023 14:19:24 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2ac8c0fbb16so27753391fa.2 for ; Sun, 07 May 2023 14:19:24 -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=OSnr0+lNN+xumwUBHx8l/kGwWimMXycm4DrI+r20jefYxNX9Ej+CoQMFxi7T0BgHTD kr0QJ6AYjpSwls0aIeTzVOUIaWBpdB7NJWpACsIvwLSUuO/J3c4dq92gbrIy+3+JC+GM 34S8kESMgbBx5FA7HWAWdE9PPveC0ts7MRKtIm4tpv+3ERcuC+k9ryz7UmE9jaPYhowH weGiw1Ye5DdpTt2c7oRIVpYGhkNMr9ka42boZMMEO2rQIzzZsdpV/NPN2VzuBNATc8et K9RxUcaXaDWvpFyK/mssWoU2gar7XVH0oeyXjor2degYOQS6aHEAsmEyDtJC0WuHzgyE bw6w== X-Gm-Message-State: AC+VfDzmJF3l25TRg7EsDHlhVvZvgQEXzjNHfqzLjY4EIXJ+u6CLq32o 3+sp8C7Xuvzry8aYD9Iwz3btFDkujvWkYc6+yO0= X-Google-Smtp-Source: ACHHUZ6ZmVkOzsWwDj+8CfTHL7QUXKzzOW6RwAWZoKAFr8SQTCmMN/kOl3Lxqsmd61vvFgbizYRcdA== 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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