From patchwork Wed Aug 21 18:42:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171985 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp1347446ily; Wed, 21 Aug 2019 11:44:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIl4fi57KqV9kgNZAQApZUkBUCk3PH83uYubghvPahysZG5tr4mDz4EtfaV8UAnHW4t1GU X-Received: by 2002:a62:8246:: with SMTP id w67mr38111602pfd.226.1566413064136; Wed, 21 Aug 2019 11:44:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566413064; cv=none; d=google.com; s=arc-20160816; b=nha+TIn0NYRuETH0xuBLkLGX2dwQ2tNPKD2/DLx0GnXShkNkGIKRlfLp0xZ9+kYQ0V sY8bODS+5Rxc2So3y1WlBy9sFKrHxb76cBZH6zasiCiAevIAFaHkPCOEQkhk2ptwWlpD L8vC1og/76Le1GSZ6+khJ9AVPllbB51aeDNaxYO3L5ot0sHGtF3sCaIapmQlI0y1z4mu GGeQX+cO5EiPIXoKlJrx8mAMnBdB4MB9sgR7blDMz+siYeVG4uFrPJsBOivadmqEE8As xk9J575euTDTvssH4ufdB6sxEmGVq7fDcZP1x7GfpDTHysh9W4PAUdl1vb0zQuwiQOql x4tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WCeda0JiXBLw3HOthdh9HBJYZGPECMCSEf0ymyUJfo0=; b=c1y2X5j37Deqj8/lcXHqFEsz8afzpVvVt13KeZqvh6pTduPQPzAOtqV8tPNgdOoRy4 cXeKuC8+wWV3CrySHJIPlgXWuNICZESaVx575iHzwVO8iJr8M0/Deku8JHn9tECYpXhd CupHNhh29bqZetAb7Ow6IWUGfWQK7mVlEAMOrXYbTd9dneubw/PgCDpWoQE+MG4jMyfK C+5ox7eTw81j3kYZoCe7dhLgK4mtUEFM4Kj09udroW6KrVOkOTcTcfR+rDNcb5ADLxI8 siMVZRjl9EucedZlrp7i1FkN5aD9pMBUlGJuMP6ALCpAv4Iap6/xWNBn/nKWrIl2V9kd DpBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=u8+MgHcm; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 g13si15319519pgo.274.2019.08.21.11.44.23; Wed, 21 Aug 2019 11:44:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=u8+MgHcm; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1728903AbfHUSoX (ORCPT + 8 others); Wed, 21 Aug 2019 14:44:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:40064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727795AbfHUSoW (ORCPT ); Wed, 21 Aug 2019 14:44:22 -0400 Received: from localhost.localdomain (unknown [106.201.100.47]) (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 36916214DA; Wed, 21 Aug 2019 18:44:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566413061; bh=lA7mFEKysJjHKo4nB5lYSbTCshSJwNxXj0rtmarFzok=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u8+MgHcm2wea77yRMXB5nTVO7V00jgDGVTh9Z4yii5vcyvhLC2ZEh/rCbORcUSs2p 4oKg0xN0CwSmFBTiC2zaAPSRnQbn4nlXmEXHo2PpjH5iqQVN0kEIKGogw2aI+1TrK5 udGudYdtpUPfLR3a+lzMTWnX5hPU2D5GOAn/rrHo= From: Vinod Koul To: Andy Gross Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Rob Herring , Mark Rutland , Stephen Boyd , Sibi Sankar , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Niklas Cassel Subject: [PATCH v4 4/8] arm64: dts: qcom: pm8150l: Add base dts file Date: Thu, 22 Aug 2019 00:12:35 +0530 Message-Id: <20190821184239.12364-5-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190821184239.12364-1-vkoul@kernel.org> References: <20190821184239.12364-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org PMIC pm8150l is a slave pmic and this adds base DTS file for pm8150l with power-on, adc and gpio nodes Signed-off-by: Vinod Koul Reviewed-by: Niklas Cassel --- arch/arm64/boot/dts/qcom/pm8150l.dtsi | 80 +++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pm8150l.dtsi -- 2.20.1 diff --git a/arch/arm64/boot/dts/qcom/pm8150l.dtsi b/arch/arm64/boot/dts/qcom/pm8150l.dtsi new file mode 100644 index 000000000000..eb0e9a090e42 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pm8150l.dtsi @@ -0,0 +1,80 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. + * Copyright (c) 2019, Linaro Limited + */ + +#include +#include +#include + +&spmi_bus { + pmic@4 { + compatible = "qcom,pm8150l", "qcom,spmi-pmic"; + reg = <0x4 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + power-on@800 { + compatible = "qcom,pm8916-pon"; + reg = <0x0800>; + + status = "disabled"; + }; + + adc@3100 { + compatible = "qcom,spmi-adc5"; + reg = <0x3100>; + #address-cells = <1>; + #size-cells = <0>; + #io-channel-cells = <1>; + interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>; + + status = "disabled"; + + ref-gnd@0 { + reg = ; + qcom,pre-scaling = <1 1>; + label = "ref_gnd"; + }; + + vref-1p25@1 { + reg = ; + qcom,pre-scaling = <1 1>; + label = "vref_1p25"; + }; + + die-temp@6 { + reg = ; + qcom,pre-scaling = <1 1>; + label = "die_temp"; + }; + }; + + pm8150l_gpios: gpio@c000 { + compatible = "qcom,pm8150l-gpio"; + reg = <0xc000>; + gpio-controller; + #gpio-cells = <2>; + interrupts = <0x4 0xc0 0x0 IRQ_TYPE_NONE>, + <0x4 0xc1 0x0 IRQ_TYPE_NONE>, + <0x4 0xc2 0x0 IRQ_TYPE_NONE>, + <0x4 0xc3 0x0 IRQ_TYPE_NONE>, + <0x4 0xc4 0x0 IRQ_TYPE_NONE>, + <0x4 0xc5 0x0 IRQ_TYPE_NONE>, + <0x4 0xc6 0x0 IRQ_TYPE_NONE>, + <0x4 0xc7 0x0 IRQ_TYPE_NONE>, + <0x4 0xc8 0x0 IRQ_TYPE_NONE>, + <0x4 0xc9 0x0 IRQ_TYPE_NONE>, + <0x4 0xca 0x0 IRQ_TYPE_NONE>, + <0x4 0xcb 0x0 IRQ_TYPE_NONE>; + }; + }; + + pmic@5 { + compatible = "qcom,pm8150l", "qcom,spmi-pmic"; + reg = <0x5 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; +};