From patchwork Mon Nov 5 15:45:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 150211 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2759686ljp; Mon, 5 Nov 2018 07:47:09 -0800 (PST) X-Google-Smtp-Source: AJdET5cf9apzAUXfTpRPmPdkWEPZtzRbVmLAyQyAe5RsW4C2PI+baprsGIeWlGahG3P6J9+DI821 X-Received: by 2002:a63:151f:: with SMTP id v31mr9707080pgl.34.1541432829809; Mon, 05 Nov 2018 07:47:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541432829; cv=none; d=google.com; s=arc-20160816; b=j7BVDGnXI9IzkPlAWKpbgp2SshKywbPl2+QT8u8hFpAjVf4Yc+Ua1ytMH9SDnQ7nEg 07gRHviO7aIdBjmMmQMAM64Mr96fCk1DAYvGpDoKdGxX3QMYlPlC1xiWw23oTnZMnhf6 62sQXQTp1zlFJMoONcF2e7sRbPrgCiK1COM6yMKLYpAKaJTdqIzPKMKii20tnOZric0i 9M3pHBjc2Th+VsptkaurGa/uP97T1ey7/INz6bCuz7Gv3t6H/QZ/9navOhvT6cz9gAZD W+qmM5vNJHY0fVNndYULje/C9+BmsaxOR8VGL7O/Z/Id+uwCkl2UY0GetU54nWYdS8of 6+qQ== 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=jPou/fi5pzDFB0h2jq2+fb04tKGUuvDPW/xQPPDwBL8zg8nr1LxaUAU67VSZy0K+IG pb9/ffz3uUkiN7mjhfmRGbH/SuAdmGC8p3TV4vdVq7kVV0MFOLTDIrOBlip2EGH3y9y0 Haxc8ratAwNx08dfhdYfeqvWxjJnqVSGWH7Q0fbzfp9CSZbRXj35etEAXVJml3btVLN6 cYDIroDoWYr1pYGTW3BwK+aoaph8EvdUfdeb/HwofkJL7nI/Go1QPJNTFWd67Q4vhZG2 R/Y1afzK2eFKBIvv/ngG9jgPygnUAojPNFkOdaXoyh9hxliMzxGbjrQYd+2NH3ntczkV 4qug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SnBs3jJr; 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 d38-v6si44439004pla.273.2018.11.05.07.47.09; Mon, 05 Nov 2018 07:47:09 -0800 (PST) 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=SnBs3jJr; 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 S1730363AbeKFBHZ (ORCPT + 32 others); Mon, 5 Nov 2018 20:07:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:52994 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729657AbeKFBHY (ORCPT ); Mon, 5 Nov 2018 20:07:24 -0500 Received: from localhost.localdomain (unknown [171.76.98.79]) (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 97AE62085B; Mon, 5 Nov 2018 15:47:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541432826; bh=qya9btpcDrAIMzH+oZCwrNQVox6P1WhnRhKfz4D8+jY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SnBs3jJrEjGfMm09rd5Ul4Q1Dut/BO9+6h/4qXCm5sE43agUPXMVbsVMSElZ2Axgt 1NNb5PjgBbLSwrk1SvDxVfy59wJb4m63TC52xUeSGD4Vfkb+sVN4RVSjRsyV/tOZHp vv8hzj0G/u3t7yp1bZGgCuzIkQr1CVfEDDCdtosE= 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 v2 17/17] arm64: dts: qcom: pms405: Add pon and pwrkey nodes Date: Mon, 5 Nov 2018 21:15:29 +0530 Message-Id: <20181105154529.7614-18-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181105154529.7614-1-vkoul@kernel.org> References: <20181105154529.7614-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>;