From patchwork Fri Jun 17 10:22:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 636873 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-wm0-x23f.google.com (mail-wm0-x23f.google.com [IPv6:2a00:1450:400c:c09::23f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rWGXC25Bnz9t2G for ; Fri, 17 Jun 2016 20:22:19 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b=qUWj7ES3; dkim-atps=neutral Received: by mail-wm0-x23f.google.com with SMTP id k184sf24543889wme.1 for ; Fri, 17 Jun 2016 03:22:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender:mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=rHcfIjfi6FX1o4nl0lvVRLeWliYDuiDcmGORxJCobBs=; b=qUWj7ES3dkDiF37iYMqtnEj5T1dka7/LO9nPaddY4VD9BIe69FwFKa6sPlvq1sfjvo i8nIbTeIITYOwUObasdfkEPGIap5L3dhREWovRIigaJOqkX/vN4XJvfNUV+0NSxxOh9j 40r47O4Le1yorc4FkeQROOFDTuocDQZpV0j2YRo7E54HDSporlyak1j7D6KQr4hT8qG0 5LMx90iBvRdh++5mucti+6M7XjbG/bkebX284lbb7wJ3j9brlV1KSAWwWyQ11+7qx7AQ ok5R5WeiFnB8x/gbIBuOU516Eahz4qcvbt7QVpBVfRzfiCvrIQo3j8XVFZN7/mTBm4hT v6ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=rHcfIjfi6FX1o4nl0lvVRLeWliYDuiDcmGORxJCobBs=; b=YVpN6xlG/8tyz5t1+szwWmbVHa4ncrzQuY32SmTf0xU6tbEIlAZMxmYlzo/cjU1GXE me8mQScfEQEMwXelDKJJ92qR21XSk+pHwy9Q8FKIP2NJGbf9v/OBWp12FD1XxFKLC+Nu Z9/ZTIJlmc1M/C3vSkQ7mRDVSvU83F7YGcscITMtj97QAfq9JLikm2d2kxUIhobKtmCg cP+FWnNJq2d2GcdhK4qyrX578CXuRVky8RFGkXNfpDcxGmLXOSqfmhe/3vTYu6TEYnoE wP2RHshRvxGvNl//TTTSclScHdEW2xZLCs+vKy9ZTqVGHyVCxfHo9EIo0qV8g/+ftjfs /U+g== Sender: rtc-linux@googlegroups.com X-Gm-Message-State: ALyK8tIt/ihfmdAhOsMPofvLGY18Mzb5kL5haMjWnkf8mjuBuZeGdVrYonIzItBVe4QbeQ== X-Received: by 10.46.71.195 with SMTP id u186mr55223lja.20.1466158937090; Fri, 17 Jun 2016 03:22:17 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.46.1.134 with SMTP id f6ls137602lji.83.gmail; Fri, 17 Jun 2016 03:22:16 -0700 (PDT) X-Received: by 10.25.169.76 with SMTP id s73mr1373412lfe.5.1466158936115; Fri, 17 Jun 2016 03:22:16 -0700 (PDT) Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com. [2a00:1450:400c:c09::233]) by gmr-mx.google.com with ESMTPS id x70si348169wmf.1.2016.06.17.03.22.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Jun 2016 03:22:16 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning narmstrong@baylibre.com does not designate 2a00:1450:400c:c09::233 as permitted sender) client-ip=2a00:1450:400c:c09::233; Received: by mail-wm0-x233.google.com with SMTP id f126so82534649wma.1 for ; Fri, 17 Jun 2016 03:22:16 -0700 (PDT) X-Received: by 10.28.130.12 with SMTP id e12mr1541288wmd.20.1466158935889; Fri, 17 Jun 2016 03:22:15 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id ej9sm14306819wjd.7.2016.06.17.03.22.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Jun 2016 03:22:15 -0700 (PDT) From: Neil Armstrong To: dmitry.torokhov@gmail.com, andy.gross@linaro.org, david.brown@linaro.org, lee.jones@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, a.zummo@towertech.it, alexandre.belloni@free-electrons.com Cc: Neil Armstrong , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, rtc-linux@googlegroups.com Subject: [rtc-linux] [PATCH 2/5] input: pmic8xxx-pwrkey: Add support for pm8018 pwrkey Date: Fri, 17 Jun 2016 12:22:06 +0200 Message-Id: <1466158929-19524-3-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1466158929-19524-1-git-send-email-narmstrong@baylibre.com> References: <1466158929-19524-1-git-send-email-narmstrong@baylibre.com> X-Original-Sender: narmstrong@baylibre.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com; spf=softfail (google.com: domain of transitioning narmstrong@baylibre.com does not designate 2a00:1450:400c:c09::233 as permitted sender) smtp.mailfrom=narmstrong@baylibre.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: rtc-linux@googlegroups.com X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , In order to support pwrkey for Qualcomm MDM9615 SoC, add support for the pm8018 pwrkey in pmic8xxx-pwrkey. Signed-off-by: Neil Armstrong Reviewed-by: Bjorn Andersson --- Documentation/devicetree/bindings/input/qcom,pm8xxx-pwrkey.txt | 1 + drivers/input/misc/pmic8xxx-pwrkey.c | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/input/qcom,pm8xxx-pwrkey.txt b/Documentation/devicetree/bindings/input/qcom,pm8xxx-pwrkey.txt index 588536c..9e530e2 100644 --- a/Documentation/devicetree/bindings/input/qcom,pm8xxx-pwrkey.txt +++ b/Documentation/devicetree/bindings/input/qcom,pm8xxx-pwrkey.txt @@ -8,6 +8,7 @@ PROPERTIES Definition: must be one of: "qcom,pm8058-pwrkey" "qcom,pm8921-pwrkey" + "qcom,pm8018-pwrkey" - reg: Usage: required diff --git a/drivers/input/misc/pmic8xxx-pwrkey.c b/drivers/input/misc/pmic8xxx-pwrkey.c index 67aab86..f6f9b87 100644 --- a/drivers/input/misc/pmic8xxx-pwrkey.c +++ b/drivers/input/misc/pmic8xxx-pwrkey.c @@ -446,6 +446,7 @@ static int pmic8xxx_pwrkey_remove(struct platform_device *pdev) } static const struct of_device_id pm8xxx_pwr_key_id_table[] = { + { .compatible = "qcom,pm8018-pwrkey", .data = &pm8921_pwrkey_shutdown }, { .compatible = "qcom,pm8058-pwrkey", .data = &pm8058_pwrkey_shutdown }, { .compatible = "qcom,pm8921-pwrkey", .data = &pm8921_pwrkey_shutdown }, { }