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: 930945 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="YNvpKiRB"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 418YYp2sK4z9s19 for ; Tue, 19 Jun 2018 00:36:14 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935005AbeFROgL (ORCPT ); Mon, 18 Jun 2018 10:36:11 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:40165 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934720AbeFROgJ (ORCPT ); Mon, 18 Jun 2018 10:36:09 -0400 Received: by mail-pf0-f194.google.com with SMTP id z24-v6so8275343pfe.7 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=YGwR62lKASwJJ6IPuafN2hEY2F7Ar8lNZetWkzGTYrdnWrRTckrrSq9ZN/AjCpQBNu zfmyazGD8snMzS5rudZgzBlvCuCSpWs7ItA3jXUaQYLPgIKj4wbcEO5ITFSmBLXi3cPH q/RPDnto8TFF5VYNJMvHGCrYB7gHoj/+XWhS9tVhfWXn0DI1jjzKD1U3ElG3v8yTma+o Vuai6pJvq8fpVfqHwTjyxnrAaiqWbDLgehbGKSEsoOXn7SI0lnxvjxSi9zzRDmYNgTj0 K5Gt02i0nhvAIhQ/2646E6j2CdECORCUy7vQWocPBKIZ2GvmJqsTRg04thPeXS06zyrz Tnxg== X-Gm-Message-State: APt69E1s/S5P0L2JdTnDt5wEDJ3eqZE6ZuQn2+ET+KrceFcQKLjlqYVN VfHKMmDN017oWgiiBxkDKJeefQ== 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: 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 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 = ; + }; + };