From patchwork Thu Aug 21 16:02:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 35775 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 83CC62055D for ; Thu, 21 Aug 2014 16:03:12 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id wp18sf56427027obc.1 for ; Thu, 21 Aug 2014 09:03:12 -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=7/cNXH/q3+QSS3SC27rte/FjIVUaIRXmi6sERlpfkPQ=; b=HusIUlKcOFFDerQrT9+SQkwScXHZh7tZ+ReZcGsOp0zJVcoVsjB7rS1mg4uJGvx5Es R0af674bRYkjYYgVpoR3urxsDJVG6UcHmuaL7f9bPMp02NjMQYSItt34WEaEWepHLWkX CDqiwHQHch2ydU0nOdZ6NXY4g4ie69CiFT8ieXgsqUbGtsFSJQV82u+48ADAljZDyFPl u/Vjd8yyq47Zz+SwuHU06TSB4GAJNDP8mjwkE18g9icyCybL0p8G5+iuTUeaUOv/uX5g PXoTDdDDqExeklo5pno2zs2n4KCzqtvN5cUHQUmar5NRoOe5QwfleuJjbWmrugwtziS/ pcVw== X-Gm-Message-State: ALoCoQlNf6tBxr4aYR7shQm4OAB1a30NupamAtP+8CRWHaWvq34UWJKqEeOE60lZic5gFa/oNH1v X-Received: by 10.182.66.234 with SMTP id i10mr30170979obt.12.1408636992114; Thu, 21 Aug 2014 09:03:12 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.94.87 with SMTP id f81ls791381qge.65.gmail; Thu, 21 Aug 2014 09:03:11 -0700 (PDT) X-Received: by 10.52.26.206 with SMTP id n14mr15514502vdg.0.1408636991874; Thu, 21 Aug 2014 09:03:11 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id dg6si12499151vcb.23.2014.08.21.09.03.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Aug 2014 09:03:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.178 as permitted sender) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id la4so11166417vcb.9 for ; Thu, 21 Aug 2014 09:03:11 -0700 (PDT) X-Received: by 10.220.190.134 with SMTP id di6mr796131vcb.43.1408636991779; Thu, 21 Aug 2014 09:03:11 -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.45.67 with SMTP id uj3csp147297vcb; Thu, 21 Aug 2014 09:03:11 -0700 (PDT) X-Received: by 10.66.123.75 with SMTP id ly11mr62390290pab.82.1408636990739; Thu, 21 Aug 2014 09:03:10 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id am3si37070442pad.207.2014.08.21.09.03.09 for ; Thu, 21 Aug 2014 09:03:10 -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 S1752604AbaHUQDF (ORCPT + 26 others); Thu, 21 Aug 2014 12:03:05 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:51493 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752403AbaHUQCx (ORCPT ); Thu, 21 Aug 2014 12:02:53 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s7LG2NDr004156; Thu, 21 Aug 2014 11:02:23 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s7LG2NJL005598; Thu, 21 Aug 2014 11:02:23 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Thu, 21 Aug 2014 11:02:22 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s7LG2MTR018918; Thu, 21 Aug 2014 11:02:22 -0500 From: Nishanth Menon To: Dmitry Torokhov , Dmitry Torokhov CC: , , , , , Nishanth Menon Subject: [PATCH V2 1/2] doc: dt/bindings: input: introduce palmas power button description Date: Thu, 21 Aug 2014 11:02:14 -0500 Message-ID: <1408636935-29515-2-git-send-email-nm@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1408636935-29515-1-git-send-email-nm@ti.com> References: <1408392810-16011-1-git-send-email-nm@ti.com> <1408636935-29515-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.178 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 --- Changes in v2: - Added debounce description for palmas variants like TWL6037 that actually allow it. - Review comments incorportated. V1: https://patchwork.kernel.org/patch/4739061/ .../bindings/input/ti,palmas-pwrbutton.txt | 36 ++++++++++++++++++++ 1 file changed, 36 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..a3dde8c --- /dev/null +++ b/Documentation/devicetree/bindings/input/ti,palmas-pwrbutton.txt @@ -0,0 +1,36 @@ +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. Valid values are 6, 8, 10 and 12. +- ti,palmas-pwron-debounce-milli-seconds: Duration in milliseconds + which the power button should be kept pressed for Palmas to register + a press for debouncing purposes. NOTE: This depends on specific + Palmas variation capability. Valid values are 15, 100, 500 and 1000. + +Example: + +&palmas { + palmas_pwr_button: pwrbutton { + compatible = "ti,palmas-pwrbutton"; + interrupt-parent = <&tps659038>; + interrupts = <1 IRQ_TYPE_EDGE_FALLING>; + ti,palmas-long-press-seconds = <12>; + ti,palmas-pwron-debounce-milli-seconds = <15>; + }; +};