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: 139808 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp3622819lji; Sun, 24 Jun 2018 23:39:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLgJAB+v/nAEiFCyEpmePEm2i0nUx+TDo/ibDa8mhEPCduh4DJKchsnjNF9F5Fg4GZ7x/eg X-Received: by 2002:a63:5c7:: with SMTP id 190-v6mr1716909pgf.385.1529908756475; Sun, 24 Jun 2018 23:39:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529908756; cv=none; d=google.com; s=arc-20160816; b=ychVHkn0sNE6+8aBXkAEQ/DVHYlaND7E20iVSgMrEAP4eQKNQpFV/bnTCOK01TNs2P epzuWYhYpf1b+I0oI4c3LYl7U4vlWNw7nN5Swv541nox7FD9a/fkn5XJePQF2KXjgD9n DYJ/VwaJR0NbIdLQaymYte3TTJ25QTSKbsoZndm0HYPk/2ivrsAzAqghWHHUPS6hrsmd yJ1YTsGLtaaXhTzmaY3Tbmg5zRhTSs1DUKsTXpqrMyZxNrahRk8AW01RwOZRrEd93rJo 7+cQvPgT0/vMV0JmvlPGMm1CJcWXOEZPXlP9U7KE4ztfLXUisACkxw0jAi7P/cNJeW/M +mtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=hMpT3erpWkMbqS8iO6CLKxJ2mqujjnVwV4tFqczaCr0=; b=IhU0WaPtb3RTReI4qvJvn+P2BGhWTLanteNyo6F7j5Mx2runhbh4tMz0ToTGtMlNqT hUrEzS81kPZQb/eX0MQ7g8Qqjc8ZBf7FxhCveYdkVZIMdbDhgK/EXTKcRaAbEibIwfm9 qdV46uDGe3Ld59zvK921sojP05QqmNAU7zhd5V8pLHDd7HMpWnnUvddLW+wPNZt8lejX b9eWcD96xO5HeLiqulXgUZ5vYpde9Cs9bDPwi7ANJcJRkNvBhsgXB0Z1ux57xau/GKag bS2AW3Blc11Qun29/FPV6dykx0Dsoto0Ke86IHFNKPdJCHPVEHin0uan/tFgH7HQoSa7 BonQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ImX21kbe; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o10-v6si11097303pgp.153.2018.06.24.23.39.16; Sun, 24 Jun 2018 23:39:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ImX21kbe; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752235AbeFYGjO (ORCPT + 5 others); Mon, 25 Jun 2018 02:39:14 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:38770 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751556AbeFYGjM (ORCPT ); Mon, 25 Jun 2018 02:39:12 -0400 Received: by mail-pf0-f194.google.com with SMTP id a1-v6so2145097pfi.5 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=unUxxaO4MSplfcc6O87I5tK6PPqB4SZdpH/VTHrx+1Y5QR1kfydDxPqaa59R+3kN8u riHRiDGT/mUslZ4645j8t0qsKSErszD5EMujxSZs8l23h9tLTy8vGZKGRvzil32yGAgM e/5o7wtkFdkIHKNQcY7KFle9YhzfOW3SjMudfqPnWeNRVJGDZ5d7EvUXOLqCYFYv1DRC 1KdziO1qBA7iRqPmwxKrG0bBkyejCTWeCsDhRmtbRTvydoiliEhulf/85w9oq2Z9Xuaj 6FlAqio5XOO5Rx5yGa8omL3rmDCZBPyESuLSKPscUAxvUJcThjEDc8nakxRE7tNmleMZ FDlg== X-Gm-Message-State: APt69E0NPcryW7Fu/A+OOTm8O90K+x3TVw4Pt9uhrmKr4hjgcf9WPwCw a4gDR5wZh35rEotkByTOOt0oAg== 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 -- 2.14.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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 = ; + }; + };