From patchwork Wed Feb 7 09:08:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dharma Balasubiramani X-Patchwork-Id: 13548215 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 38CF2C4828D for ; Wed, 7 Feb 2024 09:10:01 +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:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=evO/ildL/h+fVa2KDTPyJSBchVUtQ31K+3/7i1O88pk=; b=d0cZOYYoz6a5xg L71/tSwY5TsAeWgtR0I/famJF4K5sR6ahKaNTMP5p5N7wvVwPAO3P4WKfGaJlhHhgBwHAWGG1zrVb 1nRjNE7eb3XIcjiGsfzoyLO54rlaacIcYaJnJw47hIqagjNqnbJrw61XGhKdm8bXrKA7lDAjLDgFV jItqowgIybP+d7/Mkcb7vYBNecngXlmImd+5dLIru5Jfq3TWxHkyZ/LXPR+3cpC0Mhr9Go+TcxUcs d91DC+ls0Oht56osYxqpy9o91z0ngSrgNeSoD7XicPvRyHJ0Es1hRx0rkXjVAZ5U/e9npuumDVtzK ui9a8vwoXDm9jfFxqLMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rXdw7-0000000A8LD-3Eib; Wed, 07 Feb 2024 09:09:43 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rXdw4-0000000A8KR-3wuN for linux-arm-kernel@lists.infradead.org; Wed, 07 Feb 2024 09:09:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1707296981; x=1738832981; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=beBlKUnQlMjIIycAlMHD9WeMz6PrzSQqI+kN25ySIK8=; b=hxDASHbybRG3IN29HIn7CjcJw63QLjd0ABxX66grbNl0fh+hTC/aMAXY AhotpiWlj37BElL4H0IFWKAawt+k3wUSf/vqWKYOUK8BIhiXJLY0JMMyK I5RqdKVLqbk1xXpsvpqUFPnqMHbaRRkEPDJRVGbW/GYMC5icz2/uR65lX HO0PvH+P5NJNllFYSCaF+MNtJTuiweZpWsE6E0/XUzX4piI5fLN5maZr5 HlB40FjDuiNOg2KbeOsQzuQQvqM685PPP5ztCSi5zz1TJbeUYeqCnHVCp 52PHGnZTvj7enoWppmVCpxEPKOcsDShvebeUp0Vo/ewePPOAWkDdcVVXu g==; X-CSE-ConnectionGUID: eOi1+RARQkqo8bSeKgzAhg== X-CSE-MsgGUID: TsHSek2YRS+KrX5nlr7uxw== X-IronPort-AV: E=Sophos;i="6.05,250,1701154800"; d="scan'208";a="15882619" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 07 Feb 2024 02:09:39 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 7 Feb 2024 02:09:02 -0700 Received: from che-lt-i70843lx.microchip.com (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Wed, 7 Feb 2024 02:08:57 -0700 From: Dharma Balasubiramani To: , , , , , , , , , , , Subject: [PATCH] dt-bindings: input: atmel,captouch: convert bindings to YAML Date: Wed, 7 Feb 2024 14:38:53 +0530 Message-ID: <20240207090853.188400-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-20240207_010941_067501_85287F06 X-CRM114-Status: GOOD ( 14.71 ) 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 --- .../bindings/input/atmel,captouch.txt | 36 ----------- .../bindings/input/atmel,captouch.yaml | 62 +++++++++++++++++++ 2 files changed, 62 insertions(+), 36 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/atmel,captouch.txt create mode 100644 Documentation/devicetree/bindings/input/atmel,captouch.yaml 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..5d5679896bc9 --- /dev/null +++ b/Documentation/devicetree/bindings/input/atmel,captouch.yaml @@ -0,0 +1,62 @@ +# 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 + + autorepeat: + type: boolean + +required: + - compatible + - reg + - interrupts + - linux,keycodes + +additionalProperties: false + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + atmel-captouch@51 { + compatible = "atmel,captouch"; + reg = <0x51>; + interrupt-parent = <&tlmm>; + interrupts = <67 IRQ_TYPE_EDGE_FALLING>; + linux,keycodes = , , + , , + , , + , ; + autorepeat; + }; + };