From patchwork Mon Aug 27 10:30:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 10576895 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 0D455920 for ; Mon, 27 Aug 2018 10:31:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC2A329723 for ; Mon, 27 Aug 2018 10:31:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DE09D29729; Mon, 27 Aug 2018 10:31:14 +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 8A52829723 for ; Mon, 27 Aug 2018 10:31:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726868AbeH0ORS (ORCPT ); Mon, 27 Aug 2018 10:17:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:45076 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726785AbeH0ORS (ORCPT ); Mon, 27 Aug 2018 10:17:18 -0400 Received: from localhost.localdomain (unknown [106.200.197.151]) (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 448B6208D4; Mon, 27 Aug 2018 10:31:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1535365873; bh=k8uo/Co4TcW6Cq+okdMSTqCBo1nrqHjw+JMYIlQ1z3A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j3IkUEIraEnUH2xNk9jZQjzEZAEWNqO9biM4P4X0gZ4O52ne0lLKy4ZBokOA4KFnX UAOXLp/YCdGc0FDoftThl0siqobmzQPUbnof3HFaL9yY/+CP+WyA9kC5wR0JM082Ys 6CZs1cgGpxmgqvdZo1sM+C2b4U2rCWrhUV+doIJU= 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 v3 1/4] arm64: dts: qcom: pm8916: Add PON binding Date: Mon, 27 Aug 2018 16:00:30 +0530 Message-Id: <20180827103033.6359-2-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180827103033.6359-1-vkoul@kernel.org> References: <20180827103033.6359-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 as child nodes for PON driver. Also add additional properties for pwrkey i.e., linux,code Signed-off-by: Vinod Koul Reviewed-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/pm8916.dtsi | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm8916.dtsi b/arch/arm64/boot/dts/qcom/pm8916.dtsi index 196b1c0ceb9b..15a37cbcd216 100644 --- a/arch/arm64/boot/dts/qcom/pm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8916.dtsi @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 #include #include +#include #include &spmi_bus { @@ -18,12 +19,19 @@ interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; }; - pwrkey@800 { - compatible = "qcom,pm8941-pwrkey"; + pon@800 { + compatible = "qcom,pm8916-pon"; reg = <0x800>; - interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; - debounce = <15625>; - bias-pull-up; + 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 = ; + }; }; pm8916_gpios: gpios@c000 { From patchwork Mon Aug 27 10:30:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 10576897 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 66FFD139B for ; Mon, 27 Aug 2018 10:31:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 53BE729723 for ; Mon, 27 Aug 2018 10:31:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 47D0729729; Mon, 27 Aug 2018 10:31: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=-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 383B429723 for ; Mon, 27 Aug 2018 10:31:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726887AbeH0ORV (ORCPT ); Mon, 27 Aug 2018 10:17:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:45104 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726785AbeH0ORV (ORCPT ); Mon, 27 Aug 2018 10:17:21 -0400 Received: from localhost.localdomain (unknown [106.200.197.151]) (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 0F60E208B8; Mon, 27 Aug 2018 10:31:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1535365876; bh=SE1uBOXF4H2pirytrUeAVdGsWQCTH8KJ+xmjeFa3Aso=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JTSfE/jP/bwPkCmHXptKSCnOeVh6sY+T2ilbUVFIH7ckjJRtJ6F8BoH2VdeGSt+n0 z5LrZ3Ql8f7AlG7MhpT08eCGpEQRfUD0SuC8vK37DlfKYXIoAl85zwCJxXLKRmLL+n o6GDnli+B71Y0OzBHmFd+RsslW/RJwl2t6NEQIAU= 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 v3 2/4] arm64: dts: qcom: pm8994: Add PON binding Date: Mon, 27 Aug 2018 16:00:31 +0530 Message-Id: <20180827103033.6359-3-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180827103033.6359-1-vkoul@kernel.org> References: <20180827103033.6359-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 as child nodes for PON driver. Signed-off-by: Vinod Koul Reviewed-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/pm8994.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8994.dtsi b/arch/arm64/boot/dts/qcom/pm8994.dtsi index 80024c0b1c7c..76b5a3e6a2b5 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,23 @@ 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 = ; + }; + + }; + pm8994_gpios: gpios@c000 { compatible = "qcom,pm8994-gpio"; reg = <0xc000>; From patchwork Mon Aug 27 10:30:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 10576899 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 95370139B for ; Mon, 27 Aug 2018 10:31:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8298229724 for ; Mon, 27 Aug 2018 10:31:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 77366297B8; Mon, 27 Aug 2018 10:31:20 +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 2DC8729724 for ; Mon, 27 Aug 2018 10:31:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726891AbeH0ORY (ORCPT ); Mon, 27 Aug 2018 10:17:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:45124 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726785AbeH0ORY (ORCPT ); Mon, 27 Aug 2018 10:17:24 -0400 Received: from localhost.localdomain (unknown [106.200.197.151]) (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 CE490208B8; Mon, 27 Aug 2018 10:31:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1535365879; bh=98wx6QkrlZuzxWeskUegAEwZj8+6sBO8r8hszN9beaU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k3VqWsV55hpBy9SclHggWFAvC2sDlanNhHhxDP8TizL8dy9LhFSEdaJ/TS1JR1tkZ juoyN65gvPKS7fwTV9FxvMTCovXt78dAtZzQXbGQncpfRsFafEDNUZ038crcvqut33 JjpP2UMdbCpJrpDYtIUvvPlPYQsk/XMzeJYPtOUs= 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 v3 3/4] arm64: dts: qcom: apq8016-sbc: Add resin binding Date: Mon, 27 Aug 2018 16:00:32 +0530 Message-Id: <20180827103033.6359-4-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180827103033.6359-1-vkoul@kernel.org> References: <20180827103033.6359-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 Signed-off-by: Vinod Koul Reviewed-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi index 78ce3979ef09..46feedf7c989 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi @@ -545,6 +545,20 @@ }; }; +&spmi_bus { + pm8916_0: pm8916@0 { + pon@800 { + resin { + compatible = "qcom,pm8941-resin"; + interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + linux,code = ; + }; + }; + }; +}; + &wcd_codec { status = "okay"; clocks = <&gcc GCC_CODEC_DIGCODEC_CLK>; From patchwork Mon Aug 27 10:30:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 10576901 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 480CB920 for ; Mon, 27 Aug 2018 10:31:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3531629723 for ; Mon, 27 Aug 2018 10:31:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 29F6429729; Mon, 27 Aug 2018 10:31:23 +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 DE88429723 for ; Mon, 27 Aug 2018 10:31:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726895AbeH0OR1 (ORCPT ); Mon, 27 Aug 2018 10:17:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:45158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726785AbeH0OR0 (ORCPT ); Mon, 27 Aug 2018 10:17:26 -0400 Received: from localhost.localdomain (unknown [106.200.197.151]) (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 990CD208B8; Mon, 27 Aug 2018 10:31:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1535365881; bh=dLi5+WdCOktH23l2x6gMxaToeBzeibwL2mkNQfn4cwA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ylXHrObyVRCEHx17wfeuf7nSRI7vtkAhr28OjWWDhk8AVJARKvUtb0HGvxmA+wZW1 O5V/GaAunSDXFNUiS2YX5IHdf5PhUNzLilNrWe/3j+pUOeGoFE3jhpuHOvVmdsUvVz qClnzD6L40XrvN2YCCEKeoculcluA2w88l1ZKhh8= 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 v3 4/4] arm64: dts: qcom: apq8096-db820c: Add resin binding Date: Mon, 27 Aug 2018 16:00:33 +0530 Message-Id: <20180827103033.6359-5-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180827103033.6359-1-vkoul@kernel.org> References: <20180827103033.6359-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 Signed-off-by: Vinod Koul Reviewed-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi index 0ef90c6554a9..bf20c55a6bc4 100644 --- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi @@ -623,3 +623,17 @@ }; }; }; + +&spmi_bus { + pmic@0 { + pon@800 { + resin { + compatible = "qcom,pm8941-resin"; + interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + linux,code = ; + }; + }; + }; +};