From patchwork Fri Feb 9 06:47:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dharma Balasubiramani X-Patchwork-Id: 13550914 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 99777C48297 for ; Fri, 9 Feb 2024 06:48:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=L4ivmS86j5nWdoxd6zsZcIOzuQnIsVpga9zkUIGjsDk=; b=ggFOaKAT1iVQ1I fs5d4rP3Gca0r+MwTRNb1NjM8KmcdAurN/U73/+UK3qvMtLhXd6izdChOwbpCJRUlw22q9unx8v9h JZwE/AIjKZgW0TC98JbbNAn+6vJZI3Ku/ghwPMt0Zba382Or1r+kfbwx4qKfCKOfzjoFACidYoUKH qlEtlEDXLgtfsENiONIjxECM4kFj+gZYNho2aRLEqiD5zJzoUmq8H5shXDWE6NhWdzOltvUTZFHRY lyTcR+ad0l4Q+mCDf9/YlchwatxcBnpqJF1PdNiOZk/FAN9qaK1yVhAiFE7Da0P03AoJhMyFiPdRO hzPF/tOxO9O/sKHKviRA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rYKgJ-0000000GHBj-2ZdF; Fri, 09 Feb 2024 06:48:15 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rYKgG-0000000GHBP-36Oq for linux-arm-kernel@lists.infradead.org; Fri, 09 Feb 2024 06:48:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1707461292; x=1738997292; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=1ZSf+APxW2qVV/1F4MZZ3Qbx8Oczq7xhc84aIlEpvM0=; b=zhB+FFBQpYTXUUMS/mw8lb1PpKHvqh6pMBIWe7XZgu3IRDQNUxDNMZTE EcepeWF/bXdEOnsx0XJyaML4hWwK9ACcFIRDeKQtiOiXQJ4b2k9px0IGe tgarlk56ekZA5q0IiV5JRWN9eVhyf8T4EborYAC9y48zVheHodJgoHUYC oT4DCVOTtMEnBkngn8xfwOaubHLzdN7HyUbuxZhjUogllD+dB+0FVjDLP KZooKya8s4T0v0LK8/ZgVniaSqHVPhzIWGuH8Uc1+v6OVwaId43UTIS1J aKZZCWE01x9sQ7YdZpSyLkRrfLx0Pgylk5l/wo3L5Jj5SwyZsp7wPx5vR A==; X-CSE-ConnectionGUID: FIYM4WLeRgaNRFDjepZ6hg== X-CSE-MsgGUID: oRycRM6ITICVbkPn5DqoAQ== X-IronPort-AV: E=Sophos;i="6.05,256,1701154800"; d="scan'208";a="16524208" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 08 Feb 2024 23:48:11 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 8 Feb 2024 23:48:03 -0700 Received: from che-lt-i70843lx.microchip.com (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Thu, 8 Feb 2024 23:47:57 -0700 From: Dharma Balasubiramani To: , , , , , , , , , , , CC: Subject: [PATCH v2] dt-bindings: input: atmel,captouch: convert bindings to YAML Date: Fri, 9 Feb 2024 12:17:55 +0530 Message-ID: <20240209064755.47516-1-dharma.b@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240208_224812_867359_C4BEDE96 X-CRM114-Status: GOOD ( 13.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Convert the Atmel capacitive touchscreen bindings to YAML format. Signed-off-by: Dharma Balasubiramani Reviewed-by: Krzysztof Kozlowski --- Changelog v1 -> v2 - Drop autorepeat property. - Use unevaluatedProperties instead of additionalProperties. - Use node name "touch@51" instead of "atmel-captouch@51". --- .../bindings/input/atmel,captouch.txt | 36 ----------- .../bindings/input/atmel,captouch.yaml | 59 +++++++++++++++++++ 2 files changed, 59 insertions(+), 36 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/atmel,captouch.txt create mode 100644 Documentation/devicetree/bindings/input/atmel,captouch.yaml base-commit: 0dd3ee31125508cd67f7e7172247f05b7fd1753a diff --git a/Documentation/devicetree/bindings/input/atmel,captouch.txt b/Documentation/devicetree/bindings/input/atmel,captouch.txt deleted file mode 100644 index fe9ee5c53bcc..000000000000 --- a/Documentation/devicetree/bindings/input/atmel,captouch.txt +++ /dev/null @@ -1,36 +0,0 @@ -Device tree bindings for Atmel capacitive touch device, typically -an Atmel touch sensor connected to AtmegaXX MCU running firmware -based on Qtouch library. - -The node for this device must be a child of a I2C controller node, as the -device communicates via I2C. - -Required properties: - - compatible: Must be "atmel,captouch". - reg: The I2C slave address of the device. - interrupts: Property describing the interrupt line the device - is connected to. The device only has one interrupt - source. - linux,keycodes: Specifies an array of numeric keycode values to - be used for reporting button presses. The array can - contain up to 8 entries. - -Optional properties: - - autorepeat: Enables the Linux input system's autorepeat - feature on the input device. - -Example: - - atmel-captouch@51 { - compatible = "atmel,captouch"; - reg = <0x51>; - interrupt-parent = <&tlmm>; - interrupts = <67 IRQ_TYPE_EDGE_FALLING>; - linux,keycodes = , , - , , - , , - , ; - autorepeat; - }; diff --git a/Documentation/devicetree/bindings/input/atmel,captouch.yaml b/Documentation/devicetree/bindings/input/atmel,captouch.yaml new file mode 100644 index 000000000000..f7477091d5a6 --- /dev/null +++ b/Documentation/devicetree/bindings/input/atmel,captouch.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/atmel,captouch.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Atmel capacitive touch device + +maintainers: + - Dharma balasubiramani + +description: + Atmel capacitive touch device, typically an Atmel touch sensor connected to + AtmegaXX MCU running firmware based on Qtouch library. + +allOf: + - $ref: input.yaml# + +properties: + compatible: + const: atmel,captouch + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + linux,keycodes: + minItems: 1 + maxItems: 8 + +required: + - compatible + - reg + - interrupts + - linux,keycodes + +unevaluatedProperties: false + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + touch@51 { + compatible = "atmel,captouch"; + reg = <0x51>; + interrupt-parent = <&tlmm>; + interrupts = <67 IRQ_TYPE_EDGE_FALLING>; + linux,keycodes = , , + , , + , , + , ; + autorepeat; + }; + };