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: 198762 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp671114dyd; Thu, 8 Feb 2024 22:55:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWGeA8NsLW3HCWmP9aY5Po7+VQhQB60wuWWuc5geheb1f58jt++RPa7kkSEXylzoMm75dJrtMMJLYMdZkvO6RJixyXywg== X-Google-Smtp-Source: AGHT+IF9ztoB3wQP0Y8oF8l98eqfCgGfeJG7CeM8lqW/B3FP3qbb4Xxt/p2WbMQb4opgN3/dd7ox X-Received: by 2002:a05:6808:1304:b0:3bf:d152:fb35 with SMTP id y4-20020a056808130400b003bfd152fb35mr1024289oiv.49.1707461721996; Thu, 08 Feb 2024 22:55:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707461721; cv=pass; d=google.com; s=arc-20160816; b=HYsvswrGG7DKIkRsagHbIUiIh84kzKufs5uALZrm2Rw3tcmZ/mwzXaEtBw116gaKym BypN0xJBGvyRQ9WP1KNoAERDT097ijKRXQhUk1KGoX2ac1rU0N0sgKjk8Ah8S6r1/Z8F CV8Wrt97YIbx2oxI+2YbfJXYVsx5VOxQPMAM95hyiqHl+Ju+PY78UDbTAGgS7x42pNLd Z3sdnD8adhPFINXN73LbEBnANg37sO8Uy3nI9dhChVOzu8MeaBLC4tiIZ/2kDNSSHEXH f/ajVJZiW/bgSJIxePmSQlzlBDEZEmXIEQxo49LmQB9eYkyJPOX5QclmwhxLwrBmETEB O1Iw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=UvD+RpsRFJZ6wC6VK3LJpdlHGzlBNNrHh7MCnQJNIJE=; fh=vHOZJcPynbiOEBM7CtQ4W4SLtDwI+Jo/DZzxLBwjWbU=; b=qvoaeGf499mYskoDmUUKkh/OsIcsc7RGrbmmzOgr7okh5zFtQaTUr8XFOB9CYenaPt MMMZygK1cb6KbZ0M4OE5vA1oVqSz5sV+vqvftMivXZXEVv2Uq/2IRpq0TcPZd1Vh2M0R STQ3xkX4fnFBENRluSw1pdNmOx36WpZBY4aSiqJrf4ZJn+7UEZiENTjYoq+LTkbRKGy5 cxJDCP1cwMru8G6MUFXaFRKMjkWsTYfvairW2O62zGeHFn+tljAmzj/wB8PRqQmwXQQT U/AQ7Z6EVA5XVaZ0kzO2GBPuuGHS1SxAwg5t8ZzutViJ5MtIwJKMjU1y5RKzdGwzHPRP Urjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=zhB+FFBQ; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-59051-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59051-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com X-Forwarded-Encrypted: i=2; AJvYcCXk2njYTeDmPnvNOlrt5Dcxfy5afdSMXMuWMJSKz1/Y+ED/pb/p/7xbVUil+Peg3jNaAiwv9VtBuR5KLs450oVMuG4tjg== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y14-20020a056a00190e00b006dfde776206si1127642pfi.75.2024.02.08.22.55.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 22:55:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59051-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=zhB+FFBQ; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-59051-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59051-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 58DF8B28EA9 for ; Fri, 9 Feb 2024 06:48:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 54881657CD; Fri, 9 Feb 2024 06:48:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="zhB+FFBQ" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 367AA651B4; Fri, 9 Feb 2024 06:48:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707461294; cv=none; b=j65l05E4E/sJLq8pLjir9iA+ZZCe3tcnY3P4RkvWgOyHZhchDd0ZyC/xGGhzBC7D+8OuhV5llgshst98yp7Q2oLvobrD75W1j/31EXUoBNMrHKDfeFaOuJocEmk+bjWTB0aeZtlU5nl518j0aJ+X0I5MDvqavhsu19CP8CNbglM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707461294; c=relaxed/simple; bh=1ZSf+APxW2qVV/1F4MZZ3Qbx8Oczq7xhc84aIlEpvM0=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=NggpKjkRBlZ479cgfn2IaxZ5SfDDJ+QByLOjWIsgcckKTAtVUwqTy73dyJj/wKgabE5focQFdlyKEvit21VSh4UY2feL0eAoo/dK9EsMyWloT6uBdd8xPvtryXUbF4VvYz6MPMP04Dhem1ynnBgEJ8aYIpp0Rt0xDarzXpFxbzQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=zhB+FFBQ; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790403382379451256 X-GMAIL-MSGID: 1790403382379451256 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; + }; + };