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: 10485111 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 59EF7604D3 for ; Mon, 25 Jun 2018 06:39:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4093A285CD for ; Mon, 25 Jun 2018 06:39:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 35804286A3; Mon, 25 Jun 2018 06:39:18 +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=unavailable 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 DDEB0285F9 for ; Mon, 25 Jun 2018 06:39:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752218AbeFYGjO (ORCPT ); Mon, 25 Jun 2018 02:39:14 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:33254 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752059AbeFYGjM (ORCPT ); Mon, 25 Jun 2018 02:39:12 -0400 Received: by mail-pf0-f196.google.com with SMTP id b17-v6so6010708pfi.0 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=HenMmcW4vLHvvI3t2y3lAxO9A5/zl7rpHV7fBX+SrN6IrZWPyMnz70SSjNw981wMhe 4YZMk/mNmdZ/KxqMeKiJ7ibgNbMZJu0kLxQ/sB7xS0b0taXkegYLA6fCzyrgF2h7otME m7MCmej7UjiigEqu3jh7stQ6LlMGiVq4S7BkzkpiIf41V4PrUI7O2OfTTKYr/hZirl/J b3X/sP8WVCOf20xkyMTzd81rsWRiPyZpNfpRzx38RSbdtVkncajxoloHr862i9thOw3l +JzU2Oypzj+9/Ve+Xh9RVfiU0LwkdK5zyaiMGWAvAyVX4f8eEeMluPUwwdNahEMP5icg FeuA== X-Gm-Message-State: APt69E073iKwdlHIrXR6a4Z3kItyhHoqsPr8d1rqu0H+eyuLNZgCeKdh f2gc+5hbWA9XaWXRSHzRI9Mnx1W4w2E= 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-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 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 = ; + }; + };