From patchwork Mon Jun 25 06:38:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 10485107 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 09D80601D5 for ; Mon, 25 Jun 2018 06:39:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF633285CE for ; Mon, 25 Jun 2018 06:39:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B3F4C285DA; Mon, 25 Jun 2018 06:39:16 +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 4BE7A285CD for ; Mon, 25 Jun 2018 06:39:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752156AbeFYGjO (ORCPT ); Mon, 25 Jun 2018 02:39:14 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36584 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752047AbeFYGjM (ORCPT ); Mon, 25 Jun 2018 02:39:12 -0400 Received: by mail-pf0-f196.google.com with SMTP id u16-v6so2231233pfh.3 for ; Sun, 24 Jun 2018 23:39:12 -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=v+pBkqkPfhu5i8o1mMOVFUtxRY8tAdUdD+hhWdX/ikQ=; b=ImX21kbe8qgq0UwnD8rYMM6SUT04drjqYsPkGNI4gnkStYxl4O1QLEr2pk3Xnc9aMg qK2tWLCwft1rlOUKxjk/ePLv6MSI12UaC+RnamKDDXV0RLrWdFZkC0AVpaeXkrv1nEgb Tc9gm8sfN1SdpmPuHNPEZhItd+EnSTq6CWT5A= 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=v+pBkqkPfhu5i8o1mMOVFUtxRY8tAdUdD+hhWdX/ikQ=; b=d1HEQ2M0vIlmXE6tpemQ0KdSVwzIZozPx3HQh/OE5KTIuQ6D/uKKsagueqIzRwH+PT CQNNqHxxRfnYpIUvXNeE7CIT4kgeqOwOL09C7UhZeOlUu6fbH4Q9rCvsqZ8G4GjbNJr4 b8WpoIyHsCIRx8zV45ohuZ5UN2hlMtxDY6RKpwXhxTtKMJptuueq+1QNIWPAvzEn8ElK piRn/sEZZutoCLyLa9UnD1RB8VLLrB4pZ17ALwRMQJXCu5UfGLxWwmxjdLEFOwkhbTO4 1549eNZe9mKTuWFra4knqbUjxdJrMhoNfTEpTYOw1lEuZv52+rDqqC58nrv5/LU1aZsi HzaA== X-Gm-Message-State: APt69E3bJ1k4y8IQVDLRs6AHTMKeHyuFR5WfuCr1zYi0jCZaiZC+7E/1 Pvm+YD0uiCox7mtA0xhJHu0JzA== X-Google-Smtp-Source: ADUXVKI7Lp/+rcIR9aLoBC8UbONYo/LuIjwAIlQ3ACeOXzQMIRTlWuHAOO30NTQBevzQnfmoUsBSwA== X-Received: by 2002:a63:6642:: with SMTP id a63-v6mr9423896pgc.408.1529908751882; Sun, 24 Jun 2018 23:39:11 -0700 (PDT) Received: from localhost.localdomain ([223.226.41.70]) by smtp.gmail.com with ESMTPSA id a10-v6sm18271742pgw.90.2018.06.24.23.39.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Jun 2018 23:39:11 -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 v3 1/5] dt-bindings: power: reset: Add qcom pon binding Date: Mon, 25 Jun 2018 12:08:36 +0530 Message-Id: <20180625063840.30173-2-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180625063840.30173-1-vkoul@kernel.org> References: <20180625063840.30173-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 Reviewed-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 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 = ; + }; + };