From patchwork Mon Aug 18 20:13:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 35537 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f200.google.com (mail-pd0-f200.google.com [209.85.192.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4668B20676 for ; Mon, 18 Aug 2014 20:14:59 +0000 (UTC) Received: by mail-pd0-f200.google.com with SMTP id w10sf45025055pde.11 for ; Mon, 18 Aug 2014 13:14:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=KxT980Pb3/a4Ywngj81qTK7QqZ8p9539B+xdexyxDTE=; b=mbB8BpA8+9JZmijEHqtF3Ve56gj6VNLTuFlZYVbrFp+LJlqtJoyc2rxR09JfMMvPOZ IAY+qbpKSkbJ4GKnMuiNv95tXrvG1vHEhhdp7vI36O3Ns4AiBbaVqvi/NiW927sQw/fD zUrUCHtWoPI/XYKOUkurnxPAVParmFOZQfBuiirBqoTXh7dcEiQ0e4MUGukwUxr4KObY UEiflJ7/1h02lLNZb7UPJe27Xm5fk8eNe6Qh1wmB+asXRst5CPXb3QESiRKnkw6PdKH9 PQik5nya3axIz5BkFdBVfcBLSYZhzhDjOwoBtm92bMLjM0cw/juzRcU/b8I9kmKq50eh LvHg== X-Gm-Message-State: ALoCoQngIY2C2C9rYcnl4VrzFlqaLop9mwRV4mYkdX/beiI/bNcQsUFj7K08REnA6goaNbPFf5LX X-Received: by 10.66.66.196 with SMTP id h4mr19172655pat.22.1408392897423; Mon, 18 Aug 2014 13:14:57 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.86.9 with SMTP id o9ls2124607qgd.47.gmail; Mon, 18 Aug 2014 13:14:57 -0700 (PDT) X-Received: by 10.220.116.196 with SMTP id n4mr26637254vcq.6.1408392897249; Mon, 18 Aug 2014 13:14:57 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id v2si7570612vck.65.2014.08.18.13.14.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Aug 2014 13:14:57 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id hq11so6364380vcb.2 for ; Mon, 18 Aug 2014 13:14:56 -0700 (PDT) X-Received: by 10.52.0.132 with SMTP id 4mr3625583vde.10.1408392896893; Mon, 18 Aug 2014 13:14:56 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp181974vcb; Mon, 18 Aug 2014 13:14:56 -0700 (PDT) X-Received: by 10.66.246.229 with SMTP id xz5mr38395454pac.119.1408392895963; Mon, 18 Aug 2014 13:14:55 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ki10si23379008pbd.62.2014.08.18.13.14.55 for ; Mon, 18 Aug 2014 13:14:55 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752283AbaHRUOg (ORCPT + 22 others); Mon, 18 Aug 2014 16:14:36 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:36103 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751423AbaHRUOc (ORCPT ); Mon, 18 Aug 2014 16:14:32 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id s7IKE2fx024747; Mon, 18 Aug 2014 15:14:02 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s7IKE226030722; Mon, 18 Aug 2014 15:14:02 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Mon, 18 Aug 2014 15:14:02 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s7IKE22t024830; Mon, 18 Aug 2014 15:14:02 -0500 From: Nishanth Menon To: Dmitry Torokhov , Dmitry Torokhov CC: , , , , , Nishanth Menon Subject: [PATCH 1/2] doc: dt/bindings: input: introduce palmas power button description Date: Mon, 18 Aug 2014 15:13:29 -0500 Message-ID: <1408392810-16011-2-git-send-email-nm@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1408392810-16011-1-git-send-email-nm@ti.com> References: <1408392810-16011-1-git-send-email-nm@ti.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: nm@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Many palmas family of PMICs have support for interrupt based power button. This allows the device to notify the processor of external push button events over the shared palmas interrupt. Document the hardware support for the same. Signed-off-by: Nishanth Menon --- .../bindings/input/ti,palmas-pwrbutton.txt | 32 ++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/ti,palmas-pwrbutton.txt diff --git a/Documentation/devicetree/bindings/input/ti,palmas-pwrbutton.txt b/Documentation/devicetree/bindings/input/ti,palmas-pwrbutton.txt new file mode 100644 index 0000000..6a89bcd --- /dev/null +++ b/Documentation/devicetree/bindings/input/ti,palmas-pwrbutton.txt @@ -0,0 +1,32 @@ +Texas Instruments Palmas family power button module + +This module is part of the Palmas family of PMICs. For more details +about the whole chip see: +Documentation/devicetree/bindings/mfd/palmas.txt. + +This module provides a simple power button event via an Interrupt. + +Required properties: +- compatible: should be one of the following + - "ti,palmas-pwrbutton": For Palmas compatible power on button +- interrupt-parent: Parent interrupt device, must be handle of palmas node. +- interrupts: Interrupt number of power button submodule on device. + +Optional Properties: + +- ti,palmas-long-press-seconds: Duration in seconds which the power + button should be kept pressed for Palmas to power off automatically. + NOTE: This depends on OTP support and POWERHOLD signal configuration + on platform. + +Example: + +&palmas { + palmas_pwr_button: pwrbutton { + compatible = "ti,palmas-pwrbutton"; + interrupt-parent = <&tps659038>; + interrupts = <1 IRQ_TYPE_NONE>; + wakeup-source; + ti,palmas-long-press-seconds = <12>; + }; +};