From patchwork Thu May 11 10:25:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 92484 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp4292903vqo; Thu, 11 May 2023 04:28:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5oGcrEg85ukx6j+XQrWoqlGV0XSMPbkPQYpcTOw5wPkb2dOlrsuO0cqe5H7IFHgxOitYwA X-Received: by 2002:a17:90a:1d4b:b0:24b:2b9a:7fd2 with SMTP id u11-20020a17090a1d4b00b0024b2b9a7fd2mr21272766pju.9.1683804505213; Thu, 11 May 2023 04:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683804505; cv=none; d=google.com; s=arc-20160816; b=E1VD/LmUWBaFmhT9S8l+kUezVwLZjy4OLxth6pfL427B9LGr4NCywEBnoULB6+rRLb WsRzTOnMvxcoywNrWeD6ISDCZ/l8WFhJuQmDGy72rP5g380GCFAI8lo6QXjA6pRQbYlv j2a8naj3euXCA6uyagVzLgH7Rj1su1VZYXepfJY17hrt7rlQ+w0kQVOrYSknEAuopGi1 enn5g1lVvJ0Y1BnIshNkcShu6aA/UIlofFDuhtUWp70BfB7XnSboexNTh8AZY5zSrgdk D90pGuX143fAUQC8Be+3SqVSgwYSOk86oCOp+c7XSpAuf6S3vCZWr7kwcURFt8InGt89 F7uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ah9vrmwXkmgBXYxu0weg0/evB6b5zH+I5OTrqcCotE4=; b=jxZ3BTK2LiBl/ocAYC+8jPL6uJDYe9hytwBIA1s34WJW96yRoEalYpFPoMmvjqNJV4 551VH880agul5xOk2OWCVwmYn73C0YcCDkS0JKam7xf3ezddIqvBpSXhQscKnucuvSm4 YpXS7/aSsu5N3krg9Zh8ZrRecaThkzrzSnROZrofoOkYXorOefGYigFn0NoVeStiaG36 v8sBcpXcALv+P8Xh+EqmbzeodNPsGSNvzdSN0rLOO+pMcP2GTpIOU95HwEntDWRXjhFZ o2kyAsHWHcxeLmoMF5NOqjqzb5eBalO4p5dvPs6evqi5shPVNusdMtM1IlIud3FLgC2U Yh2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="rXxX/EZC"; 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 137-20020a63028f000000b0051b694b4069si6121430pgc.804.2023.05.11.04.28.10; Thu, 11 May 2023 04:28:25 -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="rXxX/EZC"; 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 S237823AbjEKK0K (ORCPT + 99 others); Thu, 11 May 2023 06:26:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237273AbjEKK0G (ORCPT ); Thu, 11 May 2023 06:26:06 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D87810C0 for ; Thu, 11 May 2023 03:26:04 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-50bd875398dso12739058a12.1 for ; Thu, 11 May 2023 03:26:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683800763; x=1686392763; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ah9vrmwXkmgBXYxu0weg0/evB6b5zH+I5OTrqcCotE4=; b=rXxX/EZCr13k7OrOt467ssxzf2X9J/TlPGkcCk2Lmi0YzVGXnItA9qzHiPDqRgxckk E1BYRXPqAWPpFm1HwrGrxurvp+kh0C6JZW4HX2sq+x2TdsC6CFqxz69Cy8TSci0pCaQ3 A5/R4DglPc6NLnrLlYl47Xk2akLwGXB1UXYCzUmewAicNFBn5vYjkIZlt1pJ+C8q98xc Mv19Of4l4dBD4jrMFTWIJF1CrnVFCU5xZ8zKHvMbhr0Yckl0LgofYNw+Qvq2jVC3luJf mdPRcUIHRV8zegspfQF8GwAhWcuX1eJFobzfVazRVG8GzRQsxLaRgjVTcbPEaEYQBczC sllw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683800763; x=1686392763; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ah9vrmwXkmgBXYxu0weg0/evB6b5zH+I5OTrqcCotE4=; b=DBTfqD2pwDn252KYHFyn+G2vW2r9dDWon5FxVrugRtBIIzgfo4RRrUXZqxn1FV4tBr w04cQHoxI4QOPpYf/JDeAZ1SGmzkMO+f92+Uz9SG+X8y6wHJvkhWdSC8GTC0F8+NpI/B ZKE2blCID90D2bkF+l3606apdewGXo7A2NzNZYGsjeHFYLBHDhxTBk65KxAwTJtip3Ui +HNE0wfVpyblyJUYeW7rV8qnNfAYTa+bYMqBEaDt3xM9zLIsFbKeKYuMPwQ3xRWLp6ci Cyxv9UXDulPN39VdgfZTNfwLzTZ6mu8EYAdGY4K8O5amhDXwR9gjxTGBFvsIDPJ/vWaf KB6g== X-Gm-Message-State: AC+VfDwKZFu6HrOvCChVqBsFNj2OueoqJW/psgVfTngcWn9s+57/lXON LYt3T38Ga2Qu+mn8WoHupJtfJQ== X-Received: by 2002:a05:6402:1056:b0:506:86aa:78ed with SMTP id e22-20020a056402105600b0050686aa78edmr17255596edu.20.1683800762902; Thu, 11 May 2023 03:26:02 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:41e7:1b68:d38e:1348]) by smtp.gmail.com with ESMTPSA id d5-20020a50fe85000000b004fbf6b35a56sm2894642edt.76.2023.05.11.03.26.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 03:26:02 -0700 (PDT) From: Krzysztof Kozlowski To: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Rob Herring Subject: [RESEND PATCH] dt-bindings: input: cypress,cyapa: convert to dtschema Date: Thu, 11 May 2023 12:25:59 +0200 Message-Id: <20230511102559.175088-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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 autolearn=ham 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?1765596992963557978?= X-GMAIL-MSGID: =?utf-8?q?1765596992963557978?= Convert the Cypress All Points Addressable (APA) I2C Touchpad / Trackpad bindings to DT schema. Reviewed-by: Rob Herring Signed-off-by: Krzysztof Kozlowski --- .../bindings/input/cypress,cyapa.txt | 42 ---------------- .../bindings/input/cypress,cyapa.yaml | 49 +++++++++++++++++++ 2 files changed, 49 insertions(+), 42 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/cypress,cyapa.txt create mode 100644 Documentation/devicetree/bindings/input/cypress,cyapa.yaml diff --git a/Documentation/devicetree/bindings/input/cypress,cyapa.txt b/Documentation/devicetree/bindings/input/cypress,cyapa.txt deleted file mode 100644 index d3db65916a36..000000000000 --- a/Documentation/devicetree/bindings/input/cypress,cyapa.txt +++ /dev/null @@ -1,42 +0,0 @@ -Cypress I2C Touchpad - -Required properties: -- compatible: must be "cypress,cyapa". -- reg: I2C address of the chip. -- interrupts: interrupt to which the chip is connected (see interrupt - binding[0]). - -Optional properties: -- wakeup-source: touchpad can be used as a wakeup source. -- pinctrl-names: should be "default" (see pinctrl binding [1]). -- pinctrl-0: a phandle pointing to the pin settings for the device (see - pinctrl binding [1]). -- vcc-supply: a phandle for the regulator supplying 3.3V power. - -[0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt -[1]: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt - -Example: - &i2c0 { - /* ... */ - - /* Cypress Gen3 touchpad */ - touchpad@67 { - compatible = "cypress,cyapa"; - reg = <0x67>; - interrupt-parent = <&gpio>; - interrupts = <2 IRQ_TYPE_EDGE_FALLING>; /* GPIO 2 */ - wakeup-source; - }; - - /* Cypress Gen5 and later touchpad */ - touchpad@24 { - compatible = "cypress,cyapa"; - reg = <0x24>; - interrupt-parent = <&gpio>; - interrupts = <2 IRQ_TYPE_EDGE_FALLING>; /* GPIO 2 */ - wakeup-source; - }; - - /* ... */ - }; diff --git a/Documentation/devicetree/bindings/input/cypress,cyapa.yaml b/Documentation/devicetree/bindings/input/cypress,cyapa.yaml new file mode 100644 index 000000000000..29515151abe9 --- /dev/null +++ b/Documentation/devicetree/bindings/input/cypress,cyapa.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/cypress,cyapa.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cypress All Points Addressable (APA) I2C Touchpad / Trackpad + +maintainers: + - Krzysztof Kozlowski + +properties: + compatible: + const: cypress,cyapa + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + wakeup-source: true + + vcc-supply: + description: 3.3V power + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + trackpad@67 { + reg = <0x67>; + compatible = "cypress,cyapa"; + interrupts = <2 IRQ_TYPE_EDGE_FALLING>; + interrupt-parent = <&gpx1>; + wakeup-source; + }; + };