From patchwork Tue Oct 30 10:11:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 149730 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5249551ljp; Tue, 30 Oct 2018 03:12:26 -0700 (PDT) X-Google-Smtp-Source: AJdET5ecrFaagRCSE3mPA0mjJIb7C7PZ9wt7gbMJvwgOuEL3gnCXkIw9qgWGWN832XaZaIB667MJ X-Received: by 2002:a62:3301:: with SMTP id z1-v6mr2224077pfz.85.1540894345980; Tue, 30 Oct 2018 03:12:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540894345; cv=none; d=google.com; s=arc-20160816; b=T/08bUyZfoGRDAAr4uDW/14uMHXJhAiZQEOdC9+uHTbekdp14tY8NkxbXO7q9E7DyH xb9pdV85Nwt3bZqhYUVNCOOgMBkr0TtFItb4Usz1YyG6ssPI1PbOgL0dHVQMX8pPJYDO sRaZoJmKm1NKlE5PlYEUC5dzu2oifytReoNP5dCsQgOEoXkStdtD1km7qCdApDcGVPco OSN5/7wma56QIXdku8EqKAW+4MmCXt2wCv8RjORAitsXIXg663gnznSHCOmoJphmHvi5 Uj+p22ebZbXXSo4Q2XVCUHnUlZODGNfXdccdxNpZ2HszOPf47JROg2dyNZrOWJuXgQJy 6qUA== 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=d8dcGrMSnYfGQ8gbexKtzivsz2NrpbuTXPPVkyQ6RCM=; b=ZApoW1yvZfhHxHXvkNz9aWfrwy0ZS63QT9j47YmFhF3VCtNxILKAa+AF72DZ/3oL5P jkGV9ESdq7Zcb8keelSq/O92TTlIn83un0s1+P2AkAi6WyXWn8Ab/QUyuXJDwuMdChzy BVnJhi8tm+IXyoVGT8O6eslSwfqCWyalk4SPqdpswzNjOt3e4qRK7C2vUCGyRAkNeA9e 7CU53otqZcLLbaeFrPSnJTlK2nBEhk2HqAHJxEu/Fuk9Jb0b+z+FTIfO3a2kBrH+PXqm Mg+PQTtsmKF8YKBgDmENOrpa5Uc4npGVjWysXiLcP+Odu0LsJZwBCHtolCsU7m2Z7UO/ iKyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=O0ct7Xnu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 y11-v6si22579091pfm.141.2018.10.30.03.12.25; Tue, 30 Oct 2018 03:12:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=O0ct7Xnu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727847AbeJ3TFN (ORCPT + 32 others); Tue, 30 Oct 2018 15:05:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:43572 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726336AbeJ3TFM (ORCPT ); Tue, 30 Oct 2018 15:05:12 -0400 Received: from localhost.localdomain (unknown [171.61.91.108]) (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 9E20120831; Tue, 30 Oct 2018 10:12:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540894343; bh=qya9btpcDrAIMzH+oZCwrNQVox6P1WhnRhKfz4D8+jY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O0ct7XnutGDyY3Dmjo1+FkODkvV44MfbNlzfM7SNtg1JTj4wBKc+voTEsYOmM1+rD DeI4EHFpBZBwyu24qmSpIDLsUZFDYHGBo2NGEocwgvs145n60NkWRzECeDGmwA6gGb Lvz241uoHqp++xW8rSGZbeRcX778xfb8xmXwJznM= From: Vinod Koul To: Andy Gross , David Brown Cc: Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vinod Koul Subject: [PATCH 17/17] arm64: dts: qcom: pms405: Add pon and pwrkey nodes Date: Tue, 30 Oct 2018 15:41:08 +0530 Message-Id: <20181030101108.11041-18-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181030101108.11041-1-vkoul@kernel.org> References: <20181030101108.11041-1-vkoul@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PMS405 also features PON block, so add PON and PWRKEY nodes Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/pms405.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) -- 2.14.4 diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi b/arch/arm64/boot/dts/qcom/pms405.dtsi index 18410d9f0f8f..2c7cc1e94ff4 100644 --- a/arch/arm64/boot/dts/qcom/pms405.dtsi +++ b/arch/arm64/boot/dts/qcom/pms405.dtsi @@ -2,6 +2,7 @@ // Copyright (c) 2018, Linaro Limited #include +#include &spmi_bus { @@ -18,6 +19,21 @@ interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>; }; + pon@800 { + compatible = "qcom,pms405-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 = ; + }; + }; + pms405_gpios: gpios@c000 { compatible = "qcom,pms405-gpio"; reg = <0xc000>;