From patchwork Wed Apr 26 11:21:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 677388 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 7121CC7EE23 for ; Wed, 26 Apr 2023 11:21:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240560AbjDZLVr (ORCPT ); Wed, 26 Apr 2023 07:21:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240580AbjDZLVo (ORCPT ); Wed, 26 Apr 2023 07:21:44 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EC425275 for ; Wed, 26 Apr 2023 04:21:43 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4edcdfa8638so7606627e87.2 for ; Wed, 26 Apr 2023 04:21:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682508102; x=1685100102; 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=Zyn3pWh1I5zYmXKJZnDWojm/WjqJCfT4hRVyzg3c8zM=; b=AL84eNVXhM+h+pb78WkGyas5/MFVD8cGu6qX5aqC4mJg0AkPLmvvlXEdas3556gk2k qgaMsEvIrooQhgFM3M7P9FzkTxd2YEACMufo5FCNMh00HhP6zjXxMmwDeLIOt3jiueLT Yu9lCfLko3eN+3viE/7nYNe7N2QHjNY92YXAd04avgqgUFB/iLT0/AIJvNtd9PqWwlO4 3acOv6iSujIymNCpbCeIV7vw17pulTz/J4/VP1+G6MbDYsI8aVl96IIfSSSdSBtHcYxU Fdn746aHI6yb5toQrKjt/6rcntmx4ojALZ5fCg1gXc50hq3+OLTtoGD/b2OfsB+E1Hcj V6Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682508102; x=1685100102; 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=Zyn3pWh1I5zYmXKJZnDWojm/WjqJCfT4hRVyzg3c8zM=; b=ZKisdiHjI8tJ4YVDjhTp9CifvU8SsLipe/L+GaUdrXDLbGn+R5d/vyExAOsMCP01nE Hx52E/LGnQuocAoiXg432uzX/hcfshJpN3gq4MInvY9oXTu2xupuBR1ZXTKQp9+T8xbJ 1JeuJLOFv6xQkzzBBvlru9Ogcn6wcl2WTSJMQiiltvhYTmy2HiMdVQY2c+5OZHKzZW2W 3JDicq7URKX5qyzn4C/rH2w4+JSsXxhXksNtQ4koj8pGnnAmHeb7Uf7CfnNMMlR7SM6R rIibSs8T3AD+/OqhDYiOXOgO1MPkM+gd7KThFyZpHhC42kFmPU0RTXzFbTthoecgRgi4 MsRw== X-Gm-Message-State: AAQBX9dLTOFXM2VlPMrKz645miLJ97kQFWfSCnYky9zhk2L3Kn4sU+hp 7bsaFr7jJuN1hRqZH4GVM/cbgQ== X-Google-Smtp-Source: AKy350YhOl8LLm54rt/4YgIe3Ha5QTCl8gyTtf7aqKuYUiXyHktmWRGMYpRDOSjHD+nKNyCmwHspJg== X-Received: by 2002:a19:ae0d:0:b0:4ef:d4d7:a9f4 with SMTP id f13-20020a19ae0d000000b004efd4d7a9f4mr4140058lfc.19.1682508101728; Wed, 26 Apr 2023 04:21:41 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id u28-20020a056512041c00b004ec84d24818sm2453237lfk.282.2023.04.26.04.21.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Apr 2023 04:21:41 -0700 (PDT) From: Linus Walleij Date: Wed, 26 Apr 2023 13:21:38 +0200 Subject: [PATCH v2 1/2] dt-bindings: gpio: Add STMPE YAML DT schema MIME-Version: 1.0 Message-Id: <20230426-stmpe-dt-bindings-v2-1-2f85a1fffcda@linaro.org> References: <20230426-stmpe-dt-bindings-v2-0-2f85a1fffcda@linaro.org> In-Reply-To: <20230426-stmpe-dt-bindings-v2-0-2f85a1fffcda@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: linux-gpio@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 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 + +additionalProperties: false + +required: + - compatible + - "#gpio-cells" + - "#interrupt-cells" + - gpio-controller + - interrupt-controller