Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3872553imu; Mon, 7 Jan 2019 11:01:32 -0800 (PST) X-Google-Smtp-Source: ALg8bN5+dibyswaIgjtuCOLzLzpXsn7SQB7YWN+N6siAeZHpYldX2M93Vl20F2lBYNL53QZxU/h6 X-Received: by 2002:a63:5d20:: with SMTP id r32mr12020243pgb.329.1546887691952; Mon, 07 Jan 2019 11:01:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546887691; cv=none; d=google.com; s=arc-20160816; b=VXd2akotOGKwSYoN6awmzCUz3iRcoMzjU9A/K2KTTH90w9UWxdIK32WUjh689Xjft9 EjWpbnvU/TwVCa/WclJRNxhD3wz/vZwHfkY8wbJtVPsPUt6jRosiMDh8jLPd0T1NEM5m 3ZJ5SQE2RYClAJwwTUPHHmqkyp//3488B7gxxqgY9wBaCw2+7GzpEh//NVew4Cn6qDII OYTgJwB3NaKwmoGep+V67SvnBXPUQcTL32c/WkNvY4+GeR5bAUhCC3s20ICHgtQIK7em sgUpL3mwRzs2kehYlQOV9TT3zXwrB39R/X/wpaRFxeuRZ/AS8RGWRULSyFSJuLyQMTi/ TMEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PDHMr/fiYRXHunVviW84NpOBn4IvlCGGXSsFuynM5YY=; b=Kl0pqBZNiKmOWfhiW1IxCnwICXyenNjA8AOFJnwyXoAQR1wyohWcojveAPgq5QKima FREzX08UPpoEYeN9NqL1xdcYRP++s38pOqrvOAomawRSpd+SuQV5d0vOjieaBOaCEIBV GHfpqfwEJ+MhZDVodqjm5OlMbupeq9BJQxVlDHBgVKoyhX17cLoSeuOz4jZSJcu+jjR4 35N5mlJuXLkIvecInvplMxWIxVA8a22VHl+0WoQdUBkWefnnuhY/KnNIhZ1aOKRrxPjv r3qjPJ+Fmo67T9NygBMCS6faLWGkyVa06k329/zLOCVyf3yLW/sGKAj9IvYPakiON74h Iudw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MUjx7LlY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o28si64361930pgm.238.2019.01.07.11.01.16; Mon, 07 Jan 2019 11:01:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MUjx7LlY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728375AbfAGSyS (ORCPT + 99 others); Mon, 7 Jan 2019 13:54:18 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:46226 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728254AbfAGSyP (ORCPT ); Mon, 7 Jan 2019 13:54:15 -0500 Received: by mail-lj1-f193.google.com with SMTP id v15-v6so1218679ljh.13; Mon, 07 Jan 2019 10:54:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PDHMr/fiYRXHunVviW84NpOBn4IvlCGGXSsFuynM5YY=; b=MUjx7LlYA3CmLu1+6uDKq8/02Cz388/IhEAw4lX7xrpO+JJmihZrCRHrdTkgO89naM 50tf1Fd/pSeFSDf/t/uj+AJiCiSPKDEbPN82WSnR6SFe/3MjoT6yfCiQKTzq/0k/oHtV GbWWB6uOfbrJBXwGwWB8+HkORR1kQY2JubgptuXCeKRP/egZqvcxBBsSqLRqwTWyUna+ apabiBykcC30nn+gSGIHcAJnrLSo9PmccLloO0u9pLAE9LT3F8eeuvVONIvIx40NA2st fL2vPOfLsY7qBg84ztunF+wRzyWpJxQCZkjjjr/AtB2LLTctOtdYaq16Dh0Af+LVo+8E dNxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PDHMr/fiYRXHunVviW84NpOBn4IvlCGGXSsFuynM5YY=; b=pJ/C0TfycbUXGmyPCtP26+9FZeXCzYYhuPvII/CqG8j69cBc9KthTJMpYnuvAraaDr Hsos/VrBThRlgNOuAQ4zvHMS1eMgmOVmD8v9r+lP0IFKoRb1zRlxxZ8G0fMk6LwgtCIp 2VoH5n9/VB6RpCs0Kyy5g3Q4DKCThBWvVasEDxLyy+H6AhkdoxkLr+hS9kX1BWlaPfJM qLbaqSEpsJOiFkZ4SdTaaNPck4XVMckXtwP7aw7tzyHH5koAK7PBYnRrf+Ns7r3/Cb/6 QTSZmQvNP9awaCkB7td6sYC2yILs57d2Hf3JFAHipAFVJYbThvwqlV22RzLKREooJLpa /UgQ== X-Gm-Message-State: AJcUukeKMIMhaufzE0spIkGNc5z4f+ytcQ/31a8G1UC6Rmq6yIsQggiM TKHw7iFoDOFIVidsckjeYRI= X-Received: by 2002:a2e:1f01:: with SMTP id f1-v6mr33064543ljf.129.1546887252979; Mon, 07 Jan 2019 10:54:12 -0800 (PST) Received: from localhost.localdomain ([2a02:a315:5445:5300:c050:d453:6c2:1d01]) by smtp.googlemail.com with ESMTPSA id h203sm12825007lfe.44.2019.01.07.10.54.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Jan 2019 10:54:12 -0800 (PST) From: =?UTF-8?q?Pawe=C5=82=20Chmiel?= To: dmitry.torokhov@gmail.com Cc: robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, pawel.mikolaj.chmiel@gmail.com, xc-racer2@live.ca, simon@lineageos.org Subject: [PATCH v3 5/7] Input: dt-bindings: tm2-touchkey: Document new keycodes property Date: Mon, 7 Jan 2019 19:53:44 +0100 Message-Id: <20190107185346.30184-6-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190107185346.30184-1-pawel.mikolaj.chmiel@gmail.com> References: <20190107185346.30184-1-pawel.mikolaj.chmiel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jonathan Bakker Document new optional property for setting custom keycodes. Signed-off-by: Jonathan Bakker Signed-off-by: Paweł Chmiel --- Changes from v2: - Change property name from keycodes to linux,keycodes Changes from v1: - Because key codes could be bigger than 255, use ints for keycodes --- .../devicetree/bindings/input/cypress,tm2-touchkey.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt b/Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt index dfb3b9f0ee40..8ef1517c0220 100644 --- a/Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt +++ b/Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt @@ -10,6 +10,9 @@ Required properties: - vcc-supply : internal regulator output. 1.8V - vdd-supply : power supply for IC 3.3V +Optional properties: +- linux,keycodes: array of keycodes (max 4), default KEY_PHONE and KEY_BACK + [0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt Example: @@ -23,5 +26,6 @@ Example: interrupts = <2 IRQ_TYPE_EDGE_FALLING>; vcc-supply=<&ldo32_reg>; vdd-supply=<&ldo33_reg>; + linux,keycodes = ; }; }; -- 2.17.1