From patchwork Tue Sep 4 05:01:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 145841 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3237170ljw; Mon, 3 Sep 2018 21:59:41 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdane3WdGepjm3W7fxZOtUtfFvU1BuqXplne3xdJ/f7i+t01x+fUmRzwm9vQ8dSULDaSJpK0 X-Received: by 2002:a17:902:8a8e:: with SMTP id p14-v6mr31860502plo.213.1536037181219; Mon, 03 Sep 2018 21:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536037181; cv=none; d=google.com; s=arc-20160816; b=By5pnsw4theB8tO3YEDiMLu4yPjrVAqjZoszFe9LMGV/Fo2s8UHLDJ2Jxts0F8lVVx oMTHECVW606FNKUo1Tcs3uAwsTCg6Yc7zucaRQRpVilu5pLz848rLtijnADZw/vVY9fQ GjNtpnhpRslXQmPK2aOvDeFyc1OuuK82B6nroZIJP9WhFRlK9Rpmi26QdXSc3SxgDsvF J7xHkTGGLtOK92gm2Ujh8rL2Y7DhF8ICbQCHFyQTFRJWIsi8D94ezVzTFtf3WysQrl/0 jcsRTeI3O4cTpV4S1qjaHXDroJfPd9Cg37FBFFSpSkMwjQi5hCnFsBNQZkrRtctC0zqZ nY/g== 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:arc-authentication-results; bh=rzoXv4JI/XBl9sTdYh43zCggusy7S3nif7FKYzx4Gas=; b=BDcGEZX0utsK2VXd4gK4yrmq7EyMjEBosDvvYIX9dC4ocR7FMaMPuNa1TNqBB7nbKV BJZFQtzMX3TtvwJP+HdruXCo/CauX6SpaCbaPHqFRb89tqrDsy1CLoHkCO4hFiAcqIuU QkoBuQYscFLJu0qPJpyyAx1AO5HT8c/EKSyLkoT0y7lBsdA/hzbrsoNAz8LOt3GFvtnv j6+lkOwySCFzmZ/lp1tfwcr37TYfKNwl7C2bUr38VcVnAJq7308Z6g8wm7Qof5TughqT st7ujZn4ZzQ1QQpC2tnmQhie9b6D8doE7PQdA8wGvQ2/ZLezJ+QuEY1+xPRkT0SK2zsj HaXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VJwUFCOZ; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w135-v6si21662416pff.8.2018.09.03.21.59.40; Mon, 03 Sep 2018 21:59:41 -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=@linaro.org header.s=google header.b=VJwUFCOZ; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727319AbeIDJXB (ORCPT + 13 others); Tue, 4 Sep 2018 05:23:01 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:38841 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727431AbeIDJXA (ORCPT ); Tue, 4 Sep 2018 05:23:00 -0400 Received: by mail-pg1-f195.google.com with SMTP id f4-v6so1037395pgq.5 for ; Mon, 03 Sep 2018 21:59:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=rzoXv4JI/XBl9sTdYh43zCggusy7S3nif7FKYzx4Gas=; b=VJwUFCOZR0uSvbUlfbEUNdrE7fg8iinaSHZuaWJXpy8iK3VwGVLwTUNuz8UBqQvrOt ws2su6FPf2nn+k/BzLllTzkirKXpF6L9rmklwNrZNvxpvT2TMphX325cykU9uFxJv1da 0E+hOlPFRooBZp8UcK7I04MT8E3q+uAfkTK+E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rzoXv4JI/XBl9sTdYh43zCggusy7S3nif7FKYzx4Gas=; b=ccSYFYDFRxK0e2ulpRSdeE2U7qU3mKcVW7lCuQVLW2S5vpXIFH4Ebip+ouDQ33QuyP wnsrQ1Jc9S1/EddOpIgsTSnRRloDbDkQuVGoM29w/zdFbacGEbAz6mOk1PvM5fMIFDeY W6O5g8VbJcTFgYSqFIWmTS4NNI5AgpN9qdxfsId7iayxUyUkkm/DqSP3FMhAUID6KP4W xbXfBhQOfoORoet5J76mRk99ybzrOnn8XoxVbEVwuu8XPiVexW5xkPT2gvNXy9fg2b40 2QTjCQMYvq8vi7XySVK4uW1BSBCd6VynQ7dyUNUXp8URX91YKoOLHLCVjwKYoKkGpp2J 7Rpg== X-Gm-Message-State: APzg51BDZ9+KNd98lyQswAmnrGCb3ZkkwUEBR59gqcGhBXWirXD1+RL9 4Ran5WCx1MkD56BldIWm6Jiogw== X-Received: by 2002:a65:66d4:: with SMTP id c20-v6mr9117167pgw.55.1536037178777; Mon, 03 Sep 2018 21:59:38 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id v72-v6sm41180378pfj.22.2018.09.03.21.59.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Sep 2018 21:59:38 -0700 (PDT) From: Bjorn Andersson 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 Subject: [PATCH v3 4/8] arm64: dts: qcom: msm8998: Add pmi8998 file Date: Mon, 3 Sep 2018 22:01:19 -0700 Message-Id: <20180904050123.26601-5-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180904050123.26601-1-bjorn.andersson@linaro.org> References: <20180904050123.26601-1-bjorn.andersson@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add new dtsi file for the PMI8998, with its gpios and include all three PMICs in the MSM8998 MTP dts. Signed-off-by: Bjorn Andersson --- Changes since v2: - New patch arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi | 3 ++ arch/arm64/boot/dts/qcom/pmi8998.dtsi | 40 +++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pmi8998.dtsi -- 2.18.0 diff --git a/arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi b/arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi index 202aa1a5cf27..b4276da1fb0d 100644 --- a/arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi @@ -2,6 +2,9 @@ /* Copyright (c) 2016, The Linux Foundation. All rights reserved. */ #include "msm8998.dtsi" +#include "pm8998.dtsi" +#include "pmi8998.dtsi" +#include "pm8005.dtsi" / { aliases { diff --git a/arch/arm64/boot/dts/qcom/pmi8998.dtsi b/arch/arm64/boot/dts/qcom/pmi8998.dtsi new file mode 100644 index 000000000000..da3285e216e2 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pmi8998.dtsi @@ -0,0 +1,40 @@ +// SPDX-License-Identifier: GPL-2.0 +#include +#include + +&spmi_bus { + pmi8998_lsid0: pmic@2 { + compatible = "qcom,pmi8998", "qcom,spmi-pmic"; + reg = <0x2 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pmi8998_gpio: gpios@c000 { + compatible = "qcom,pmi8998-gpio", "qcom,spmi-gpio"; + reg = <0xc000>; + gpio-controller; + #gpio-cells = <2>; + interrupts = <0 0xc0 0 IRQ_TYPE_NONE>, + <0 0xc1 0 IRQ_TYPE_NONE>, + <0 0xc2 0 IRQ_TYPE_NONE>, + <0 0xc3 0 IRQ_TYPE_NONE>, + <0 0xc4 0 IRQ_TYPE_NONE>, + <0 0xc5 0 IRQ_TYPE_NONE>, + <0 0xc6 0 IRQ_TYPE_NONE>, + <0 0xc7 0 IRQ_TYPE_NONE>, + <0 0xc8 0 IRQ_TYPE_NONE>, + <0 0xc9 0 IRQ_TYPE_NONE>, + <0 0xca 0 IRQ_TYPE_NONE>, + <0 0xcb 0 IRQ_TYPE_NONE>, + <0 0xcc 0 IRQ_TYPE_NONE>, + <0 0xcd 0 IRQ_TYPE_NONE>; + }; + }; + + pmi8998_lsid1: pmic@3 { + compatible = "qcom,pmi8998", "qcom,spmi-pmic"; + reg = <0x3 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; +};