Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp873213imm; Tue, 15 May 2018 10:22:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoQ3WgQK0ZeYxprX2g3EO/2rA6Lq06FCnLTUkr03mCP4SddqD6C1l4WajaUGvVk4oC+n3qM X-Received: by 2002:a17:902:b692:: with SMTP id c18-v6mr15140922pls.307.1526404923957; Tue, 15 May 2018 10:22:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526404923; cv=none; d=google.com; s=arc-20160816; b=khrfMFAvps7RpCeafk6dxrME5JNXkc49YBvyqbFiAYMJFvaunttmNk7ltGtw9nYWDe fLTpO4vxSClwBEnGqB8BEhgA0onGs+l9qWjWaWbo8uv2klzgANF7vRmSv6SUyintTCyy nmFf+iJBLHbUpWe+ODitb1P8NcWbRtmgPAc0IiF/RwlL4j9a2bWs3rPPLu6G5SkxHucR HJF8lU+dSxDgryKCXGSo3eYTJBhER2JfT5EzVUcZwd26/AcyKaf/PIVhYS62idmCKQie UKhmew2xUhAqKKiKbr3qQUlqtWMy6C53Qqb4R+DwKIrhDciSegQAxEg1YlB9skWqaJ3L +4yg== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=RtUBIL5VfCcvuMx1T7SwDuWNoGmxMCVAVP4xSBuW/vw=; b=xGvVL9QkQNU9dczhY6AKJht4yv4GyVZxreL5Mq6FNT32ulxlpJBSocR2iLqeoPhuvO AHewkOSF7KAX4UOHLdTJcMdQjruRXIT/kly+yzX6G4Rd0ljKkLwo10VwVK1TRSm+xNTF sEZzglx/ILSlyswP7/b/KwqYyXFzI0g69CEQ4fQVwiQ9dDw0LmPyc5aLW40jqJAFmrX7 2XskUr352qGE9wGn0PUNEvI6BKYYAqiQqwmiQqaQ2CzCJIzHydVzYcQGCAqJhJicSO70 UWLhqMwFsJlt03htPjZsMns0ulk2puNGJKfvWq/VH2L4vkKAnUgbLcBClFpLGKOQFd3l Liaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ajgX8CVj; 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 g1-v6si364827pgo.637.2018.05.15.10.21.48; Tue, 15 May 2018 10:22:03 -0700 (PDT) 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=ajgX8CVj; 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 S932174AbeEORVB (ORCPT + 99 others); Tue, 15 May 2018 13:21:01 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:33196 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932136AbeEORU7 (ORCPT ); Tue, 15 May 2018 13:20:59 -0400 Received: by mail-pg0-f68.google.com with SMTP id v7-v6so329227pgs.0; Tue, 15 May 2018 10:20:59 -0700 (PDT) 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:in-reply-to:user-agent; bh=RtUBIL5VfCcvuMx1T7SwDuWNoGmxMCVAVP4xSBuW/vw=; b=ajgX8CVjiDEGtCeg8HGv3I8JUJ0tdfKj/q3hbPk0sgNopgNZFFTLHxyukkPhS/9MVd fM9TMkG2aOywytRi8vPdKnfjL9Da+WwElfXryXCrRrTCnbzUolwlPYncqh5B8H0OC4OV TXMKCblLwKANTgMVlDrVjNnc48DNpgWEoFQdJvQpxM3ICEAmF0yEMX0bSWE/7s5H+62O hzwe3v23Grqb0DboskDHdHBmTi19rTiWdCHvRrgoR5cMh5InMtq2G4WjJ+2/zYDkuvwg yCSxE9zpmAORP+x0QoUYj8fvdoqiwc96Hnjm2OJLum+oayn4lsDLAff+95GFMJXtg7jX KETw== 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:in-reply-to:user-agent; bh=RtUBIL5VfCcvuMx1T7SwDuWNoGmxMCVAVP4xSBuW/vw=; b=uPhtKVdbVn6GSo80qISp7lVMyT1k1hACKaowMYNjDXd4zBFQezThHvNioZh0/CLjZt 0qJiu9azYwBfkaSGjegSJw0M+x2xZEUet4AwFYQMJuO682Oz41b/hTY6Pes7+1muOk6R 4MgANLp7+Kgy4nSnQvKRKT4HcSYmeB/GZ6qHYanVuhKfS4PhzrzvRs+pl60hu9zTmnUM wSg7blrE1U3gxvfSsQIoT+TSb0lEs8M63DtvgSf9FCpqEE+uV23/YrVWi+y5/KO0TCpF sBTzIVnxe04r5fs4EbsRRIutdFpY7T9cQrppGQxGTGBO2FG2+YxCjIibMn/QrQY8DsPn OX1A== X-Gm-Message-State: ALKqPwdUjgYVZgGzDVBcDyGQeJSDkARAZsBTAEejM9YrZ/OZpi6UvC8F jNRLuZDOedPEkD6IPKcIJuxzez4n X-Received: by 2002:a62:74b:: with SMTP id b72-v6mr15988686pfd.133.1526404858829; Tue, 15 May 2018 10:20:58 -0700 (PDT) Received: from dtor-ws ([2620:0:1000:1511:8de6:27a8:ed13:2ef5]) by smtp.gmail.com with ESMTPSA id o10-v6sm512225pgc.80.2018.05.15.10.20.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 10:20:57 -0700 (PDT) Date: Tue, 15 May 2018 10:20:55 -0700 From: Dmitry Torokhov To: Bjorn Andersson Cc: Tirupathi Reddy , robh+dt@kernel.org, mark.rutland@arm.com, linux-input@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V3] Input: pm8941-pwrkey: add resin key capabilities Message-ID: <20180515172055.GB205769@dtor-ws> References: <1521786192-19487-1-git-send-email-tirupath@codeaurora.org> <20180505001039.GA112416@dtor-ws> <20180507184659.GG2259@tuxbook-pro> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180507184659.GG2259@tuxbook-pro> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 07, 2018 at 11:46:59AM -0700, Bjorn Andersson wrote: > On Fri 04 May 17:10 PDT 2018, Dmitry Torokhov wrote: > > > Hi Tirupathi, > > > > On Fri, Mar 23, 2018 at 11:53:12AM +0530, Tirupathi Reddy wrote: > > > Add resin key support to handle different types of key events > > > defined in different platforms. > > > > > > Signed-off-by: Tirupathi Reddy > > > --- > > > .../bindings/input/qcom,pm8941-pwrkey.txt | 32 +++++++++ > > > drivers/input/misc/pm8941-pwrkey.c | 81 ++++++++++++++++++++++ > > > 2 files changed, 113 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt b/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt > [..] > > > EXAMPLE > > > > > > pwrkey@800 { > > > @@ -40,4 +66,10 @@ EXAMPLE > > > interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; > > > debounce = <15625>; > > > bias-pull-up; > > > + > > > + resin { > > > + interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; > > > + linux,code = ; > > > + bias-pull-up; > > > + }; > > > }; > > > > The new key and power key bindings are very similar, I would prefer if > > we shared the parsing code and our new DTS looked like: > > > > power { > > ... > > }; > > > > resin { > > ... > > }; > > > > (we can easily keep backward compatibility with power properties being > > in device node). > > > > As discussed here https://patchwork.kernel.org/patch/9751627/ the PON > block does, in addition to providing power and resin key support also > handle the restart reason ("reboot bootloader" in Android). > > My interpretation of our conclusion was to come up with a new binding > for the "pon" and a driver for this block that instantiates the power > key device. > > It seems reasonable for such binding to describe the two keys, as you > propose here Dmitry, and instantiates the two input devices based on > this. OK, I'll wait for the new driver and binding then. Thanks. -- Dmitry