From patchwork Fri Dec 28 15:46:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pawe=C5=82_Chmiel?= X-Patchwork-Id: 10744527 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4A7F91580 for ; Fri, 28 Dec 2018 15:46:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3935B287BA for ; Fri, 28 Dec 2018 15:46:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2D71E28BBE; Fri, 28 Dec 2018 15:46:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D3A09287BA for ; Fri, 28 Dec 2018 15:46:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732990AbeL1Pq0 (ORCPT ); Fri, 28 Dec 2018 10:46:26 -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-Google-Smtp-Source: ALg8bN7+OlDz5GeRHMiC+4+mvgYRg44dmi7CjJSBEblhmePH0dnL8rsKC8qdISOF2JH6DwFuZA7yfg== 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_Chmiel?= 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 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jonathan Bakker Document new optional property for setting custom keycodes. Signed-off-by: Jonathan Bakker Signed-off-by: Paweł Chmiel Reviewed-by: Rob Herring --- 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 = ; }; };