From patchwork Tue Jul 31 06:32:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 10550145 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 146DA1708 for ; Tue, 31 Jul 2018 06:33:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0274829582 for ; Tue, 31 Jul 2018 06:33:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EAF7029F4D; Tue, 31 Jul 2018 06:33:36 +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=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 81B7D29582 for ; Tue, 31 Jul 2018 06:33:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726591AbeGaIMS (ORCPT ); Tue, 31 Jul 2018 04:12:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:46962 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726086AbeGaIMS (ORCPT ); Tue, 31 Jul 2018 04:12:18 -0400 Received: from localhost.localdomain (unknown [122.167.122.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 169E1208A2; Tue, 31 Jul 2018 06:33:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1533018815; bh=1rqKFS0hsKAU++YQ4Fv0AR63vzFfIvkdJwAmBewIgv0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pHudgLFQ8yj8MlDtmQEM9DJI915wJh/SS09wdhY/0lndZLBjIrjWlL/U8C95CNb6K DOvW3lBnraB8zdP8DH1G7A0GwfLe5VI9qZbM1WfHB+8zFy6FBwJt8jpIFmefajw/oM bPR3A7FLWQjpd6weC0zvaFq+8f1Ei9mqMMSaawok= From: Vinod Koul To: Andy Gross , David Brown Cc: Bjorn Andersson , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, Vinod Koul Subject: [PATCH 2/2] arm64: dts: qcom: pm8994: Add PON and resin binding Date: Tue, 31 Jul 2018 12:02:39 +0530 Message-Id: <20180731063239.32373-2-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180731063239.32373-1-vkoul@kernel.org> References: <20180731063239.32373-1-vkoul@kernel.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add PON binding and pwrkey and resin as child nodes for PON driver. Also add additional properties for pwrkey i.e., linux,code and pon_child Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/pm8994.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8994.dtsi b/arch/arm64/boot/dts/qcom/pm8994.dtsi index 80024c0b1c7c..bf41cae5b554 100644 --- a/arch/arm64/boot/dts/qcom/pm8994.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8994.dtsi @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 #include #include +#include &spmi_bus { @@ -17,6 +18,31 @@ interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; }; + 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 = ; + }; + + }; + pm8994_gpios: gpios@c000 { compatible = "qcom,pm8994-gpio"; reg = <0xc000>;