From patchwork Mon Sep 10 09:48:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 146976 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2289520ljw; Mon, 10 Sep 2018 02:49:35 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbifF57FIFXxby7vMLyTEilc5zdQ3bYGBKTHd3LrhQwEWwP9a28irmQEHpVk1/42+cm4SKh X-Received: by 2002:a17:902:ab94:: with SMTP id f20-v6mr21175658plr.231.1536572975510; Mon, 10 Sep 2018 02:49:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536572975; cv=none; d=google.com; s=arc-20160816; b=eOAP/HBd2ImuDRsu86HU8BWW7i+iBjfPGZalAvs6zeSNa3wsYO7hlybHblOcsI/bXr +AUxiuWZxY6OR2hGtFgpvLrqup44t1SybX9SYjugv1lrD8yW5H6a2Smgu4Ic0dhI8rDk tIuxlcqqlTwvHuC0CgYB9bTx1dLxKbNQGLQ4XqRWyoXcXumEA0JU1v3/EQKIQj+5do1F 81ZFHOXc9B2hCDUdZXMYZlC24F9Y+y7l6WWLyqj42UdO1fX+6JxqRyKX8PPhLMgg5hFP Lwyla4sRx3eIu3SLOyhkcPK67laT48wHSDRGbFhhBObggPCrFD4PDGhyPIfcWEfoeSv2 D+JQ== 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; bh=52IWv4OX+UYlxR2Nq8axZR1bbh2QIxmTdP8X1K3Ibj0=; b=Me+iLtdTT+SLW915/W5wfJ9JDjjjS028+WYXVhg/ZXtdCfEZc6EBDef1tJp8XCqZd3 SdGMZC4lfptKIL+6khjhzu8hEHrYy3fEntFqzaeD5+oLNP5ucEewiHPCiUY3vsqat1Z0 L/htiVO4aihkh4sMbNPrr8i1k2++8XwR90CcypycQGBcvZBgfvDpFkuLxWQKOrv3lDcl MrLWv9OZCzJQSa2VhhQWgTxjyMcZ2/SW0EBWJkDsU4Yrhlk/psK7uKIvauumYcqfZHCk vjMNIvETjDlKrf/G6eDzHoBwPysMGoCZmlw917nY5S9grAnH+nINZf85mWuL157j50cy f3jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0CokMa3r; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v3-v6si16461434pgc.447.2018.09.10.02.49.35; Mon, 10 Sep 2018 02:49:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0CokMa3r; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727646AbeIJOmq (ORCPT + 13 others); Mon, 10 Sep 2018 10:42:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:32882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726907AbeIJOmq (ORCPT ); Mon, 10 Sep 2018 10:42:46 -0400 Received: from localhost.localdomain (unknown [171.76.126.1]) (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 639B620866; Mon, 10 Sep 2018 09:49:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1536572974; bh=cmH4tQKZj6d2w0iyEyIBUGQlX1XWaf6CqE4G3+2yriM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0CokMa3rzvQ68O27GNNi31Su4ItuuVKqD8K6iN2fiN146KeYcl5+z5qAuIqMcPM99 X8jdsjRyz6RF+l8LEzxXGqhMnS7B4+iA5CfcE2qEPVaDevO6qpyrXIkdhIYtBTGfom IpA5FlXADmVFI8Y+wEd5AEeCPcK3GbHnm8BeX3vE= 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 v5 1/4] arm64: dts: qcom: pm8916: Add PON node Date: Mon, 10 Sep 2018 15:18:46 +0530 Message-Id: <20180910094849.25173-2-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180910094849.25173-1-vkoul@kernel.org> References: <20180910094849.25173-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 Add PON and pwrkey as child nodes for PON device. 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(-) -- 2.14.4 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 {