From patchwork Mon Jun 25 05:09:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 139799 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp3546775lji; Sun, 24 Jun 2018 22:10:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK8p/pdg9xr+EBE6mDg8Rw+2qgOcM8cQh/4dfykKJQSVseQmsRNcuSXfhw8RrKTe6BDR8rd X-Received: by 2002:a62:c498:: with SMTP id h24-v6mr480885pfk.181.1529903419258; Sun, 24 Jun 2018 22:10:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529903419; cv=none; d=google.com; s=arc-20160816; b=c6R0c0laUEqu9CDFQnR/foe+kfRnEyMthYyw61UloFarbnQWbhjp8aaDEu7YY8k0lP Y2KtutSXJsSZcwlxKRiatMsHy8RzV1GKB1kzZonT34zDZkPG5QjU/vJjFlddE6hm/GwU 5FPdKpqtqyhtOMLvkk3VywC/29ADLAQRZy5kuzoyK78v/6iW57LDcTpJs4RfDvL7XCkN Pkvn5bCEq8P7RKvGr44lnoTS0SkR+Mlwgc+qjdPrxwmcbLqJ1+3yPBWD5BhSXlXNx5yC 5O621Pc152mPQxeyMfPDLBaQzJh2948K5O6LTz40dyekvcSGngcXhOeEANPqoMLoHf9p kqgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=9GWqkUgECJP6DOUc0HUjCsnRhgaHElLSDkUIHfpJHqk=; b=dv/nU+iIMl/3yzPV85S82z3vHx2Qdhs29OXeVwq0rGv/4TpydvZYloKmyUXReHAxin 5hCiJnNCBOfWqISnjyfuaZrsCbhm8WuOuFdrEFkspTbG0iFUDsZq6QETJ2civNygQ05x GE1KCYRJOO6wuFdUlzZB1hEbmpuTc7RdD4AJX+wlKkxpdnviSlMk2q1T42brX03jCX7w sxebipIFwT5jU2qNS+GFHTwXB9PLQoojsaeskIMiylv6k8EqJ5RcklF6rNHId1SLf+zD B+XRW8Qie9MywkNFUpTDxl2fThZuWb23ab41dz4wM1WTmkiNTL4dd4bwE6PI7gdb/Rd3 6nUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ECXTMVG8; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 22-v6si13548468pfh.308.2018.06.24.22.10.18; Sun, 24 Jun 2018 22:10:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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=ECXTMVG8; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S1751607AbeFYFKR (ORCPT + 10 others); Mon, 25 Jun 2018 01:10:17 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:40233 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751094AbeFYFKP (ORCPT ); Mon, 25 Jun 2018 01:10:15 -0400 Received: by mail-pg0-f66.google.com with SMTP id w8-v6so5539318pgp.7 for ; Sun, 24 Jun 2018 22:10:15 -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:in-reply-to:references; bh=9GWqkUgECJP6DOUc0HUjCsnRhgaHElLSDkUIHfpJHqk=; b=ECXTMVG86nfnuAzvZIPPLv6c2dVJnzjROpuTbLxLXNh9oQyYfLLtdEMxDV8Lf2kRoJ ifcKzRJKEi//+VfE0+bqfvGJWOH0GnyU99nyl9vRQW9JmZE6FZHQxulyrKcO457zMi5D 0OItd+ZzAy1ExFK//Cg9oJYnpjCyreYOv+L3g= 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:in-reply-to :references; bh=9GWqkUgECJP6DOUc0HUjCsnRhgaHElLSDkUIHfpJHqk=; b=STnNcGhCb4KGRdDJUNievK60xKe66QJyyu95+YIyeMra2Vruo4cNTGCrob85Tug1f+ cMbqP+MophQvMcqhf73I4KYgoq7J0czg2EcrblXTfD/CPIS22LxbyiIILho6lBFasM5z aNU+IOxDQot4ma2xIVwyy7RAe6UJLKB7Ixc165FA4sXbMi8Dpc28iguLbKxUvMuQkYsi MHqxxVxyZZA3wSaoUva2c4+LAooRT/MKCmXyrsw1exGzNoOVNI7NuqVU0QiO91dSfE21 QfVq94fkwe+XE8C11Le0APiM9jkX+Xh+3VCk396LwYtlD7we/T6MnHEB870NTKpPsbnC dIBw== X-Gm-Message-State: APt69E2YvGhMmZzbOWVJNi6NQKkn2B9nm99CI5TQ6nGvNYVQioHfrbSP cESU6Yh1ue7L5IwourBsy4ZC9w== X-Received: by 2002:a63:6ec1:: with SMTP id j184-v6mr9388427pgc.332.1529903415405; Sun, 24 Jun 2018 22:10:15 -0700 (PDT) Received: from localhost.localdomain ([223.226.41.70]) by smtp.gmail.com with ESMTPSA id h16-v6sm20272308pfn.80.2018.06.24.22.10.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Jun 2018 22:10:14 -0700 (PDT) From: Vinod Koul X-Google-Original-From: Vinod Koul To: linux-input@vger.kernel.org, linux-pm@vger.kernel.org Cc: Bjorn Andersson , Dmitry Torokhov , Rob Herring , Sebastian Reichel , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vinod Koul Subject: [PATCH v2 1/5] dt-bindings: power: reset: Add qcom pon binding Date: Mon, 25 Jun 2018 10:39:34 +0530 Message-Id: <20180625050938.4700-2-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180625050938.4700-1-vkoul@kernel.org> References: <20180625050938.4700-1-vkoul@kernel.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The Power On driver for Qcom PM 8xxx is a MFD supporting pwrkey and resin along with the Android reboot-mode. Add the binding describing this. Suggested-by: Bjorn Andersson Signed-off-by: Vinod Koul --- .../devicetree/bindings/power/reset/qcom,pon.txt | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/reset/qcom,pon.txt -- 2.14.4 diff --git a/Documentation/devicetree/bindings/power/reset/qcom,pon.txt b/Documentation/devicetree/bindings/power/reset/qcom,pon.txt new file mode 100644 index 000000000000..0dc24c9b93d5 --- /dev/null +++ b/Documentation/devicetree/bindings/power/reset/qcom,pon.txt @@ -0,0 +1,45 @@ +Qualcomm PON Driver + +The Power On driver for Qualcomm PM8xxx is MFD supporting pwrkey and +resin along with the Android reboot-mode. + +This DT node has pwrkey and resin as sub nodes. + +Required Properties: +-compatible: "qcom,pm8916-pon" +-reg: Specifies the physical address of the pon register + +Optional subnodes: +-prwrkey: Specifies the subnode pwrkey and should follow the + qcom,pm8xxx-pwrkey.txt description. +-resin: Specifies the subnode resin and should follow the + qcom,pm8xxx-pwrkey.txt description. + +The rest of the properties should follow the generic reboot-mode description +found in reboot-mode.txt + +Example: + + pon@800 { + compatible = "qcom,pm8916-pon"; + + reg = <0x800>; + mode-bootloader = <0x2>; + mode-recovery = <0x1>; + + pwrkey { + compatible = "qcom,pm8941-pwrkey"; + interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + linux,code = ; + }; + + resin { + compatible = "qcom,pm8941-resin"; + interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + linux,code = ; + }; + };