Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2298576imu; Sat, 8 Dec 2018 20:58:28 -0800 (PST) X-Google-Smtp-Source: AFSGD/WCvTu2o+xB7GIe6uSv+qeD5+c1sA6yHeZY7dEgxX6o3+NlXPisiv42E1MERXJdASmbafzW X-Received: by 2002:a63:7219:: with SMTP id n25mr6988338pgc.324.1544331508487; Sat, 08 Dec 2018 20:58:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544331508; cv=none; d=google.com; s=arc-20160816; b=Qr6rrUt2DeOjlsLd4iJEuVlocQlo0/EeQ5rS9q6pOnvyWbepGoR8NusX55qbJqgWZE yTHw+ZCf7p+Y1qUfKjiIgOzn6xRowze6JLdijIUXQI8BJSYXlHH+BvJbAFKbyhHj4MUM 7rR/GtohE2ARTen4DxMId27Bmx/plpSzVomDfKQ+goykKX/E03VZyeB6r59rdaAAw3ys sO86XuCryiJVgiFpsrdYHJgkV2y2jZfGy6wfPpusU3oZGkV868IQRnAWI+q8iTx2WbPK AGYqGRC8//l+037je68JQyx1cjKXiSO49qnsHyL89fxH0Q5cNCbihJ3Nj0eLIed9C3GG gsJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Y2GDco0ehD6goVqpg5LWLUV7W8+6TVXHcxQmBNgvRYI=; b=XJSiIvbw0IZU027JCuEcKpydYKe/EJdynbVQBlsoNFiq3ARQp6R4r4q+UoAc8xSx57 96VedhFv3gFT7XUHIoT872zBcWfC5SOKl+LBLDe/kLTiwFYXpbyZbJalVsCNO2vMGNJR wxnIv8Tbbrjao7ApPV18Xh/F9wJG8ILfiMicaZ1ZZIuRN5yXjVX6kV2rwaiTbBtQHZ8u aM1uIlfAJC3DVmmLHgXHG9GP32DNRv8DjuKj7ID2YQAxwaS+uNG4qj03lpPaES93i1Gm tTNhvXnIbB+FSrR/3b4I8h278SqlZ91qsWrlzFFVDV96j9np5sMTRmcec6ezB0OYCxR0 WbZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LCSRTjF0; 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 28si8864467pfm.50.2018.12.08.20.58.13; Sat, 08 Dec 2018 20:58:28 -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=LCSRTjF0; 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 S1726118AbeLIE5j (ORCPT + 99 others); Sat, 8 Dec 2018 23:57:39 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:36299 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726061AbeLIE5j (ORCPT ); Sat, 8 Dec 2018 23:57:39 -0500 Received: by mail-pg1-f193.google.com with SMTP id n2so3463827pgm.3; Sat, 08 Dec 2018 20:57:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Y2GDco0ehD6goVqpg5LWLUV7W8+6TVXHcxQmBNgvRYI=; b=LCSRTjF0jDaWy7z8aR6u1ONSYb6BdboGQ1nDWK25gXkm4VH31t/he4EnyBOIrKOU47 gSfLjlhAGTmYlV2vXjHg87w0FT1nHggGOwoecpI0EZYQ1HL7mGFnlFNkcnZ+a/AiwBn+ WaW8QJO6lVVCdZiM0Qxr9n8+0rdDCDEj0WVXmzZatpF1AUvaGlNuSHQqmekEessX9mok G5nMuoevXRwgfzSLP1h9E312CRl63PLuKZPnaoA481q4g3bfgc5V4VYK/thMml51crRP cDzheVjIhJmoEJdEdhT4SeEs8N6XKaQifXBbEaiZ+/tnNjl3iXnQ0HRF3XqN8ilyV4oO MxFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Y2GDco0ehD6goVqpg5LWLUV7W8+6TVXHcxQmBNgvRYI=; b=luEmNIdPyIFkaxh1EKh0PEmpX9ssepuanzUOjcX8/De6O4XoIfZkTNLrsFPYqlVwBt Wrycl3VPl5LC542xOtos+E+vn1NZGlnLX71Pxca6ZQwcDb1A+Z84yyjbNgsqIDEebfxa GzALYfCwr2cmwysrCf2Qdhziz2FcRJFjGvT9OB2Ji5SU6FS7Qa+r5a1HLCd8Z9+ehepl yoWYF5LLmv5aEhkzxFAWU/x4aFtONRSwl08fufuWmGLmKlxhd6akdcizxfikF0fUHH5X jdW8+L6FgsLU6pBFONmkUyzw89stK+ER6y/Ul1+SW81gNfRg3MbpQ59qamp8XrFr+N6U WPPA== X-Gm-Message-State: AA+aEWar2LfKqWyAqwOs4U+DOggXOpSqqq4tIK6Q5tSsWibYCVXStIiO HNNxXPb4YOPkRDWqZnL9rJA= X-Received: by 2002:a62:f5da:: with SMTP id b87mr7987398pfm.253.1544331458221; Sat, 08 Dec 2018 20:57:38 -0800 (PST) Received: from dtor-ws ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id b26sm14856715pfe.91.2018.12.08.20.57.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 08 Dec 2018 20:57:37 -0800 (PST) Date: Sat, 8 Dec 2018 20:57:35 -0800 From: Dmitry Torokhov To: =?utf-8?B?UGF3ZcWC?= Chmiel Cc: robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, xc-racer2@live.ca, simon@lineageos.org Subject: Re: [PATCH 6/8] Input: dt-bindings: tm2-touchkey: Document new keycodes property Message-ID: <20181209045735.GG211094@dtor-ws> References: <20181207105811.1831-1-pawel.mikolaj.chmiel@gmail.com> <20181207105811.1831-7-pawel.mikolaj.chmiel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181207105811.1831-7-pawel.mikolaj.chmiel@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 07, 2018 at 11:58:09AM +0100, Paweł Chmiel wrote: > From: Jonathan Bakker > > Document new optional property for setting custom keycodes. > > Signed-off-by: Jonathan Bakker > Signed-off-by: Paweł Chmiel > --- > .../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..3b54d997b8de 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 = /bits/ 8 ; We definitely have key codes bigger than 255. Just keep them normal ints please. > }; > }; > -- > 2.17.1 > -- Dmitry