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: 10485021 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 72A5960230 for ; Mon, 25 Jun 2018 05:10:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 64A8628858 for ; Mon, 25 Jun 2018 05:10:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 58E0E288EC; Mon, 25 Jun 2018 05:10:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F2BAA28858 for ; Mon, 25 Jun 2018 05:10:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751607AbeFYFKR (ORCPT ); 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-Google-Smtp-Source: ADUXVKLDneyAvxTkVuJZclnsSvUDA5n2t7zsiOBCgzqk9Gqd7j4JlFC0oPKNag/r6z1VetgCcg4+Rw== 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 X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Bjorn Andersson --- .../devicetree/bindings/power/reset/qcom,pon.txt | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/reset/qcom,pon.txt 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 = ; + }; + };