From patchwork Mon Jun 18 14:35:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 10471739 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 BEFE66032A for ; Mon, 18 Jun 2018 14:36:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B0CB328A42 for ; Mon, 18 Jun 2018 14:36:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A4D38287F0; Mon, 18 Jun 2018 14:36:12 +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 447EE287F0 for ; Mon, 18 Jun 2018 14:36:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935032AbeFROgL (ORCPT ); Mon, 18 Jun 2018 10:36:11 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:44830 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934998AbeFROgJ (ORCPT ); Mon, 18 Jun 2018 10:36:09 -0400 Received: by mail-pf0-f195.google.com with SMTP id h12-v6so8271197pfk.11 for ; Mon, 18 Jun 2018 07:36:09 -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=aGOOuznHJVPbQT4F+VPliRavwoDA3pJ/tDt6hwX/Irk=; b=YNvpKiRBsrtKP5qR6Mb0MF2ottYERVOnNiqGMzSatIf02AMXAj3TT2XEwj0c6oPZ35 RvWhNIJe4+3ebE+aVWHqtpPrGuAb6rQ2RHXhlR3hbxut8fTYJrj1XFil41jSoHhMu2XL cb89Od2lruBO6DLkGI+7eDId3qjcpzWfN2ZRo= 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=aGOOuznHJVPbQT4F+VPliRavwoDA3pJ/tDt6hwX/Irk=; b=mQT5Y0SAhG2SxKa/cRYfXpJgPZAxP3P6jKhoEeaptTvYehO0KyQe/Ruiluty0MJwG+ pdhgA/x/vBt3+WGWDa7yDPgXdCcED2DqTTX1xDJX7ltXQRKHUTB+Q1qIcgj3f8cKAoCn 6zCBfpVps91UIAqjqkAAXreYHHR8GAy9lRhsWWjv9zNvVsFUOVoguvT/8J7g8PY4BJ+5 VlPkxxzb9fHMTKVuqwBe7vXLn80btGts16Gqac9gsB6dCMYJGlRr+2PcJ165DmVNNLP9 7xjYLsZN6MygY7e75hKyAnb5k8qCinHl1T0aNtr7rS2H5jPkA7zJi/BnBTC7Y3Nu8Rxq hGcg== X-Gm-Message-State: APt69E3sXNL00HHakPyBW9T3FFivZ/4UzctWJfHPepvaF7qrvGh49wF9 mG7zZeq21PB81vqvsNjrOvXwLVhz508= X-Google-Smtp-Source: ADUXVKJ+/T3PINHd2MypeUfV7AKhukKGnzNr5k+neFwt3dIH/IV9u1InCAbgIJl9LlEVV/djAwLKnQ== X-Received: by 2002:a62:40dc:: with SMTP id f89-v6mr13625725pfd.194.1529332568815; Mon, 18 Jun 2018 07:36:08 -0700 (PDT) Received: from localhost.localdomain ([27.59.118.133]) by smtp.gmail.com with ESMTPSA id n10-v6sm28163604pfb.27.2018.06.18.07.36.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Jun 2018 07:36:08 -0700 (PDT) From: Vinod Koul X-Google-Original-From: Vinod Koul To: linux-input@vger.kernel.org, linux-pm@vger.kernel.org Cc: Dmitry Torokhov , Rob Herring , Sebastian Reichel , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vinod Koul Subject: [PATCH 1/5] dt-bindings: power: reset: Add qcom pon binding Date: Mon, 18 Jun 2018 20:05:44 +0530 Message-Id: <20180618143548.29900-2-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180618143548.29900-1-vkoul@kernel.org> References: <20180618143548.29900-1-vkoul@kernel.org> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@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 --- .../devicetree/bindings/power/reset/qcom,pon.txt | 47 ++++++++++++++++++++++ 1 file changed, 47 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..d923835425c6 --- /dev/null +++ b/Documentation/devicetree/bindings/power/reset/qcom,pon.txt @@ -0,0 +1,47 @@ +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 property: +-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"; + reg = <0x800>; + interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + linux,code = ; + }; + + resin { + compatible = "qcom,pm8941-resin"; + reg = <0x800>; + interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + linux,code = ; + }; + };