From patchwork Fri Sep 7 06:11:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 146981 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp775404ljw; Thu, 6 Sep 2018 23:12:20 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbXIH0bUKnXVpBVlIXAPIXOPwuci58v6tS2Nr88GFc7lQ7s/lTl+bNcXjZe22Dq/UtKV1Zm X-Received: by 2002:aa7:8118:: with SMTP id b24-v6mr6829509pfi.78.1536300740193; Thu, 06 Sep 2018 23:12:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536300740; cv=none; d=google.com; s=arc-20160816; b=Ir4tn6kcwUathotol4R4jtL0JgtCGP/tpuA7sNeNEwlqLCPzhFmnZlfCm7xbhmFeXo 3AyTvcmFnbev2Xx6Dk8kYsJ4HThCNPAQlqmndf8SfqXXKPM1If8yHkoE1kdcZiT2d12n bKrANyD+MURUfGPD44tVeueq1LALv5yNwpLD/ao7Bim+MSE5X6Pe2diNtzcJOjkdiVf+ mdWq3cM3jC6c2wSBD9y1gk9GiWPDzWFkJTWNv+A0Ner+37Ck5c5s+v0argGubJm4Sbi1 rAZIDjHQcboJLnUvyD8YSY7t2op51rWH36iCmdOUlYXtllFpSXWfE8PWifiCn1vzkA3a +uRg== 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=CSyPo/PejjQid2XnrG7ZCCaVk7ZPajy78wO/5P7VS0ZkCyzcTU4fq8YwSmHND70Wtp 5uftrrOwO9FdXs8LANYhlZcqHywSxNT9JM88ORMPEzeYlojOAhiwnPK4FuiROUYKlsfE vMdo8vo2SFh5qLfC46kB3ubBP6Zg4GjGXaehtFTvQDHsXc4n2UiuTMjyDTTQj7voRKDy 9JZipBu62j5/l1CThKKZpM6jPEkjj4VdY3U/khrPTqCfvEH4Td5jTRspHadS0KDfVu6I i68UdJ4mMNs0n5sAnTnX8uhuECKn+Wv9X350GCYJwijkqmaPfJ0vg6Xr8Nr910zP2Kgu Cjag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2iJ5x1e3; 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 c10-v6si7017396plr.155.2018.09.06.23.12.19; Thu, 06 Sep 2018 23:12:20 -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=2iJ5x1e3; 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 S1725970AbeIGKvi (ORCPT + 13 others); Fri, 7 Sep 2018 06:51:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:41224 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725831AbeIGKvi (ORCPT ); Fri, 7 Sep 2018 06:51:38 -0400 Received: from localhost.localdomain (unknown [122.178.217.164]) (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 39E2420861; Fri, 7 Sep 2018 06:12:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1536300738; bh=cmH4tQKZj6d2w0iyEyIBUGQlX1XWaf6CqE4G3+2yriM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2iJ5x1e3FRfiX+JLMqRvuPwk72nrwdCv4lxrOaOSoxygOEiNm6YbFvncUoSiuhJR1 g0dZokcEj/Re887m0tiFmPK3DnkOM3RVDb/lxrtjyePpwKqxieTP8HV1sFinRWiiaE XluZYzbZaqASV/rhePrx+PT2LFKkxDBOduWCs988= 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 v4 1/4] arm64: dts: qcom: pm8916: Add PON node Date: Fri, 7 Sep 2018 11:41:26 +0530 Message-Id: <20180907061129.10416-2-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180907061129.10416-1-vkoul@kernel.org> References: <20180907061129.10416-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 {