From patchwork Thu Sep 20 01:49:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 147078 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1382614ljw; Wed, 19 Sep 2018 18:47:13 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaJqohyIFQ9rPfhxlYnrF0L3vgIKw8UWdzWmMul2g+T3eePEC5XnYM/2QFoHryeGEeXrYfN X-Received: by 2002:a62:9402:: with SMTP id m2-v6mr38209902pfe.3.1537408033675; Wed, 19 Sep 2018 18:47:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537408033; cv=none; d=google.com; s=arc-20160816; b=0nzyfRGx/PAizuInxAzflPMdQhAsiljj2/0Z+y3OuELVzXvjEey39Eo6u2l/KpENfI nxqJ1UjE1dYt6BZ3rZxTtYy0S86/6oL6t0ePLwVpeq7+GhsMtOaPGAk6CG2IOuwdDllD lk9xMqgMgc9lCjKDDD4FKpdM7UDSeLW2QdJVSgZqn8nY8czDX3GQHtsNx33sxSkCPKYR 1TmoeHMoffyXVkcjAO+wv/8JqGIyf9HoKG6WLEhDGbNgEgEl5WWa73mK+GuAHI9df9Ys EsguojTGZMRqRoOUikRbacxYUKEOA6v7THnVDx0K/JVErr+lZbG7B0lIlw43jDSqntz1 s0hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=E6zcIw9zQ5bCQE64THbvHJveHe9wTWSLs4jU/7WjM7Y=; b=Ur40XCfVp6YmR71tZUwkevR0LHhyAL57CZj+CI4BzosFHmVZe04GWbZe+78pbkqwDi 8KnQV6eKDTLsQsY3EW5pJS7hOK+X4jJ2GOqEtkry32NvA/+ON4Mnhcy5Gn6mGKLHj/xr LXUaDBIsyZvJbtEUQbVTpCHA6JMq/IVdRC0dt+JGz5DcpAWuSFSHXcsOtWe5LlAt+bmM YRZSu9qL5eSgmnBJg64NV+7pYHb5JvOg1TkTSDHsycy9kAiaWhknXrs2GZ1BHegJeL/j +Zi2N3TB/QrjDTDRkf6oShPkLsDiV+1v6V3sXZ/Mq1OH0nlD3E2QQR8YumYdNCjfaPX7 eJiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Hp0ByJ3w; spf=pass (google.com: best guess record for domain of linux-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c2-v6si22442221pgm.236.2018.09.19.18.47.13 for ; Wed, 19 Sep 2018 18:47:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-input-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=@linaro.org header.s=google header.b=Hp0ByJ3w; spf=pass (google.com: best guess record for domain of linux-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726123AbeITH14 (ORCPT ); Thu, 20 Sep 2018 03:27:56 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:43520 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726006AbeITH1z (ORCPT ); Thu, 20 Sep 2018 03:27:55 -0400 Received: by mail-pf1-f195.google.com with SMTP id j26-v6so3546634pfi.10 for ; Wed, 19 Sep 2018 18:47:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=E6zcIw9zQ5bCQE64THbvHJveHe9wTWSLs4jU/7WjM7Y=; b=Hp0ByJ3wyin48Yr7ImhmijYfBNSpuhBuqaP8YFlyuCtaASe7LzsoZY9Q4drTdTrIdp ipfeMBu8EBzzjqsZl4RGly1qv2tA6lfPfBsQQcd8tvt8G/VGLvCKsjkrWzM7gdLW0qNH AX+0uqeQTF1y3CfDcbJw+5bLMpdhFtPGMxvVk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=E6zcIw9zQ5bCQE64THbvHJveHe9wTWSLs4jU/7WjM7Y=; b=SV2K7QxoohRAA5uzQ//aH+AbGHwKrM8RvqYkrwtAYMwMY/orfx0Ogsaz5Z3VjBSHR2 abASDjuY+tTE/AyhSn9hre+hTiLGs/fw8DrMPrAGHi5phBKeEPUp/oPBpj6iWuNKlhZl Akvn/crwg5N53rf9ewLyaGcm7zsPdnV17dZizL7XtnwHKruebo2Ln1PffvspSgjrVQlx DNbUbtH+jvEVw/h4vas0YTd8q5DRbtb9/Xwmxdmmc2p52G34b8Vg5NKHq4pEDh2sogOs Bv7lAcPHDB2E0NVI/iWVFAX4QD5+Jur6XE44Xi+UOS6gcBxHMD+Imhwn3ozUB3z5oqFW D6nA== X-Gm-Message-State: APzg51A91PVVV6+LDUunpY1WxrhsrvQddvlBOKShHrLJeJ4m3iZdMy91 sBTIcl36bxsXT6SVJmISE2esaw== X-Received: by 2002:a62:5047:: with SMTP id e68-v6mr38112206pfb.157.1537408031833; Wed, 19 Sep 2018 18:47:11 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id m15-v6sm67227308pfk.149.2018.09.19.18.47.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Sep 2018 18:47:11 -0700 (PDT) From: Bjorn Andersson To: Dmitry Torokhov , Rob Herring , Mark Rutland , Vinod Koul , Bjorn Andersson Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Input: pm8941-pwrkey - Add pms405 pwrkey support Date: Wed, 19 Sep 2018 18:49:28 -0700 Message-Id: <20180920014928.15422-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org From: Vinod Koul Update the binding and driver for pms405 pwrkey. Signed-off-by: Vinod Koul Signed-off-by: Bjorn Andersson --- Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt | 1 + drivers/input/misc/pm8941-pwrkey.c | 1 + 2 files changed, 2 insertions(+) -- 2.18.0 diff --git a/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt b/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt index 34ab5763f494..736fba3bad54 100644 --- a/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt +++ b/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt @@ -8,6 +8,7 @@ PROPERTIES Definition: must be one of: "qcom,pm8941-pwrkey" "qcom,pm8941-resin" + "qcom,pms405-pwrkey" - reg: Usage: required diff --git a/drivers/input/misc/pm8941-pwrkey.c b/drivers/input/misc/pm8941-pwrkey.c index 48153e0ca19a..fccf63263c1c 100644 --- a/drivers/input/misc/pm8941-pwrkey.c +++ b/drivers/input/misc/pm8941-pwrkey.c @@ -317,6 +317,7 @@ static const struct pm8941_data resin_data = { static const struct of_device_id pm8941_pwr_key_id_table[] = { { .compatible = "qcom,pm8941-pwrkey", .data = &pwrkey_data }, { .compatible = "qcom,pm8941-resin", .data = &resin_data }, + { .compatible = "qcom,pms405-pwrkey", .data = &pwrkey_data }, { } }; MODULE_DEVICE_TABLE(of, pm8941_pwr_key_id_table);