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: 10485023 X-Patchwork-Delegate: agross@codeaurora.org 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 9A57B601D5 for ; Mon, 25 Jun 2018 05:10:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8CD38288C6 for ; Mon, 25 Jun 2018 05:10:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 81283288AD; Mon, 25 Jun 2018 05:10:20 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 20AF4288AD for ; Mon, 25 Jun 2018 05:10:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752058AbeFYFKR (ORCPT ); Mon, 25 Jun 2018 01:10:17 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:38819 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751167AbeFYFKP (ORCPT ); Mon, 25 Jun 2018 01:10:15 -0400 Received: by mail-pg0-f67.google.com with SMTP id c9-v6so5548920pgf.5 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=JaowpHVE9CRWmy0N/2V4LP+NdNxRfq9jcgmMWjkQ71iSslYsx5wOAwjamKCrvHR2Vo T1jpo99vBPMr3VycqPluefZPNPhQEwLGbk+QfJaOEqd17uUK+m/nArDd6ARRE6hkASok jQZsgkHGyQTukOTPhB8P6i6a7Qy/z88cp6htJ4hbWMgJi2gutMxONb0qEzSAlk95/qfs vjLlJyw4LzyBfvgTpWpV3Qp4nrgrsNGNpmr6bZfr2xHkWONP4Uq+/p47ZDHo72U4M9aD iA8VWo4Gu2pUdsgFbSbYgi+qkxOcCj3pM5sznbBHZtWFxPqco9+38LWouko0EQIxwdmt siWw== X-Gm-Message-State: APt69E03rAJL9grcQLDPKf6nF5zOCdoxtM1wAKgX5Fvooh+sc0fEu1nl 0RTlaOH+AeCq+ktQMThm1fIb6Q== 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-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 = ; + }; + };