Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8512391imu; Fri, 28 Dec 2018 20:46:56 -0800 (PST) X-Google-Smtp-Source: ALg8bN6ec6I2VDBaQFBF5Iq1LYcD2Tmd3v3gE9agPr/DS7oSunK1SeP3A0KsIGi+FKNHm+N4uEOT X-Received: by 2002:a63:6d48:: with SMTP id i69mr574552pgc.215.1546058816202; Fri, 28 Dec 2018 20:46:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546058816; cv=none; d=google.com; s=arc-20160816; b=bQCw11kS2rKvVWeNO/Sv+Hi7AATYUSQsbujLxkA8wAfselYDM/oU1MALlpx1mUaIBj 1X10JjCiszbWqQCpFRayxgKKpO1bRjC5auSrybBESumhVDht1kgKoGVxVjNbDeFND5of PPUhnyNrn+5XptCbJUrshgkM1sD3+dwAyaPIID8QAWTiJv7un3tPldCgWBYlzPQdrUBb G5qy3YkuXhIdrQCriLOhdiTucxNqNPkzDX3BlfV/mc91Le1BqTn0uU4gGeMqi8yEFXRQ Dt7Hcuh0KtORv7MfySJbW0ka7ZA8D16hIg8SCuEdWhXuSO44/dKF/gRVe+4mP3UjmJoi u1Lw== 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=L8jyxKx8vnHBFlSEptO9LtSbLRa4isvh4Gt7pzfTqTo=; b=cVGemI7CNSsli2M0bSwxXrGU/v/GJ196uh3Td3KoXsjZMcu+6IHLaK+4QCxvXbVWCq I7ZUuky0qVcgDKe29UTmqw7IVAj8lAqkmI0oY02fH8jigIOIU8d+AdL7FH12DNPtti/O d7MRMuuMZsniU70AsxvrAO1jwYuXLlIqunfPRc4yDHj3er2YChEuBMJ1O/OwYE1kP8I9 PzLbaKhUJ/5uRFSApsmr7yljKPSsKb73wEMiQEhHZ/ms7K8J835ZoFW74LnNkzuJM4oX oqei+EsUy117dFlPZAPj6C0pY7bTIF0DBi4L1ESBxhKAJM/tIZiANCkTpSa3XCBaFenI q5YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NL0gFa9C; 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 v61si17252173plb.54.2018.12.28.20.46.41; Fri, 28 Dec 2018 20:46:56 -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=NL0gFa9C; 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 S1733135AbeL1Pqa (ORCPT + 99 others); Fri, 28 Dec 2018 10:46:30 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:46540 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727018AbeL1PqZ (ORCPT ); Fri, 28 Dec 2018 10:46:25 -0500 Received: by mail-lj1-f195.google.com with SMTP id v15-v6so18997438ljh.13; Fri, 28 Dec 2018 07:46:24 -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=L8jyxKx8vnHBFlSEptO9LtSbLRa4isvh4Gt7pzfTqTo=; b=NL0gFa9CGJyWzE0cTvarNXFxqNvjf5nlx61P4cJphxcK5iz22Tt4AN0mSrSBMT6RxI /rtgWvmQiS5ELtb7BR5Q9mDhaw55aPObxVlGqpuvtcrUaN0xDm50TMx/bcaV3AHlW9do hBKuqH2yLLKHOY/AebKXZsbh+U1p7vOaObydWPO8Q01D/KaU4AHtbr6e6mHkUOIgXsy2 i6nzm7PYSTjBjzjSb7GolbtutcawUVX/T8LHxA6GUOIogScbshyPaKX6UTjVDoXjatpb HjkqHngZfAYwFgoPM6QZY+ogjjixHyPGTIuPl7Dx59dFTWq0e+MnKfSp2wr0yghoaNP0 hjFQ== 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=L8jyxKx8vnHBFlSEptO9LtSbLRa4isvh4Gt7pzfTqTo=; b=pbQaqadt+n4mDAVwehQKK2jVaer9mMp8RceW0wBNTC4ksrdNr03jTl9U+yDQg8wZZO nU+HWVP58W854y8EQd2hv3om8GzqRpNX0uKJ0cDI5Z/npT1MngvH5Cw9sPSWucfaTBrn Hj28M3dFya8uWHA+cgv867FtVqu09L7pYl2ExQYBELAcY+iFTLu9lZBAEnBq5kz6/7wW ln55/VSh6PxS9bxZeGM7H2hOdh23AynLV5W8Cw5LT8E15PTyT0ow/XEx1LkQR8ZCx0fH WjyMMAsPB9nYGKyS+GzgaX/QyPNz31TckEPbxNG+WleejRvij8p20hhPw8HfnaTQChva X0fQ== X-Gm-Message-State: AJcUukdaYJtmOK6illlZRlc/0fwMc8uEHgWGrvKC+H3sz+ZBnnVp4ZCd lejGNq9ja6ADiD1pEe72LZk= X-Received: by 2002:a2e:9a16:: with SMTP id o22-v6mr16396278lji.112.1546011983464; Fri, 28 Dec 2018 07:46:23 -0800 (PST) Received: from localhost.localdomain ([2a02:a315:5445:5300:7146:fd07:48ff:9665]) by smtp.googlemail.com with ESMTPSA id c203sm8042444lfe.95.2018.12.28.07.46.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Dec 2018 07:46:22 -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 v2 5/7] Input: dt-bindings: tm2-touchkey: Document new keycodes property Date: Fri, 28 Dec 2018 16:46:07 +0100 Message-Id: <20181228154609.14846-6-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181228154609.14846-1-pawel.mikolaj.chmiel@gmail.com> References: <20181228154609.14846-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 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..15d4bf4f307e 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: +- 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>; + keycodes = ; }; }; -- 2.17.1