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: 10471741 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 1FB34601D7 for ; Mon, 18 Jun 2018 14:36:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 10A71287F0 for ; Mon, 18 Jun 2018 14:36:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 051F028A42; Mon, 18 Jun 2018 14:36:13 +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 A84D228A37 for ; Mon, 18 Jun 2018 14:36:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935001AbeFROgL (ORCPT ); Mon, 18 Jun 2018 10:36:11 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:43411 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934678AbeFROgJ (ORCPT ); Mon, 18 Jun 2018 10:36:09 -0400 Received: by mail-pf0-f193.google.com with SMTP id y8-v6so8273052pfm.10 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=IvFYGzCAtNdmYsFESJc/D0oQCE97ElUYSydk3BDzgnID4ib+DMCxnczP7hgakZ7qmn UiOvchcQ4Mos87I76RViHRGY3SSyhnbDbou97Bm3LuwgnG1Qh+c8ll6jouaeXu5+IzIb r8jtP/pb3+gnaG++ggcoOzDv1Bugc87XhFUUbqTCuA6Ef2Y+virIXmck1A6YWYEQgXOL i7PkgUPJ6QhAET5PGI9/Xf4q/r4LRuLDaZzmZPvWRzpvG2yWapMomOWnCkKFWZvqIr1C IKp+Jq8HyH5p9otgKOi5Q1VQio/8FEqAm5ecMatVupIj3clYxyPLA9Cyr6rcy+7829BG q83w== X-Gm-Message-State: APt69E29DMFqmLLR0yLJIo0+ytyBVrB9PJCKHuFsHCCfNglsCBfcWcVf WsUupSj0zVWyjz4gJA7OhMzS1w== 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-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 --- .../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 = ; + }; + };