From patchwork Tue Aug 20 06:42:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171774 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp3992585ily; Mon, 19 Aug 2019 23:44:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxV8fvHbahprriQVY/Ynh8T3Ciy8CwENwZBlH6aGY95m++Et+x3FG2r/TAD6zk5Y35hdjDV X-Received: by 2002:a63:9245:: with SMTP id s5mr23854345pgn.123.1566283460728; Mon, 19 Aug 2019 23:44:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566283460; cv=none; d=google.com; s=arc-20160816; b=TAIzmWbK3YHo5M+dYQZSOB+EJmQPXmtER5f7u9ChPV+MqtasFA/PSuMg1gSvS8isNK 6vgWRgsbcK54AwGrbphS5A8HQ6aMA/tSs5hkNGPcLx3E7XAXm3QVE+tOHATuYx7VG47x xfbmZfeDG+oC4jpNiI+zc7xIuToc+GoLd3/Z06fp4X12++t4kqrbc+RK8W/JEgOWxfR6 tji7b26onqRs5fg/MWz0481/yXuJ0Z9tQIkqbNDLRJpl+ITH2aR3wZqY93Cv39hOV5ko nyogoovUwJtxt/ITUYTX2Y72h6O5i91tussn6Tj/AtzluYHjQqptB4XZbDXQnJPpoD7k EK4A== 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=zNW+4F34wVM6H5yZKu2NaMkQ1G4aTwuU0WCELza7kWc=; b=dSiyC5QzJ/vpf/y9mSOfx9FR5fo0iHwZVGHHg/wZ68FtCLBZyBoHO34VUZ852iM5X7 b+QQkm2CwPY2dJpxP9SzIchMFC9Jl7OFVJS7nCiLNeHq9tBxLB0Ywp+rXQzvUUSVFm/z AXxXrIyXsHPX+8pPNqTdJWBrr9qY2OL6tmPw/Volla2JKrnmXlIuo6pHJR1M01vbaHJD kvb829V+bBppFLa0KxgYskKTLrQHca5euzXijlHNfv/ynui2tMq3kCaGZC2V3+B8Y7p/ zPPVTNWTFWR/BP4Zp89esugeLPVUvvkO/XrNbiFQTggMnhuOR/J2KvIDSJgWs2NVHVP5 bebg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Z7vXzUK0; 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 w21si11383908pgh.316.2019.08.19.23.44.20; Mon, 19 Aug 2019 23:44:20 -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=Z7vXzUK0; 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 S1729330AbfHTGoT (ORCPT + 28 others); Tue, 20 Aug 2019 02:44:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:39890 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729000AbfHTGoS (ORCPT ); Tue, 20 Aug 2019 02:44:18 -0400 Received: from localhost.localdomain (unknown [106.201.62.126]) (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 8FDD522CF8; Tue, 20 Aug 2019 06:44:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566283458; bh=mmQH2esYZ1N+wsWUb12A/fzu4sEoHA+QJHLpq/196p4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z7vXzUK0oQ6lX56iwC3pw/cyQhsL6EoNhSqNnHlDhzoAglCmipXzhcHF6y93Tf70m 0LWemwnPOb2sXmlRhTpLL3TxZQ15mH6g4V3PNKTzUEY7Dx6PI1Kf6rk3Lx83AOFXks /jjfhJancoaPC+zqVxmuvM/UvOmsQCLua86EKnOw= 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 Subject: [PATCH v2 3/8] arm64: dts: qcom: pm8150b: Add Base DTS file Date: Tue, 20 Aug 2019 12:12:11 +0530 Message-Id: <20190820064216.8629-4-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190820064216.8629-1-vkoul@kernel.org> References: <20190820064216.8629-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PMIC pm8150b is a slave pmic and this adds base DTS file for pm8150b with pon, adc, and gpio nodes Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/pm8150b.dtsi | 84 +++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pm8150b.dtsi -- 2.20.1 diff --git a/arch/arm64/boot/dts/qcom/pm8150b.dtsi b/arch/arm64/boot/dts/qcom/pm8150b.dtsi new file mode 100644 index 000000000000..dfb71fb8c90a --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pm8150b.dtsi @@ -0,0 +1,84 @@ +// 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@2 { + compatible = "qcom,pm8150b", "qcom,spmi-pmic"; + reg = <0x2 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 = <0x2 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"; + }; + + chg-temp@9 { + reg = ; + qcom,pre-scaling = <1 1>; + label = "chg_temp"; + }; + }; + + pm8150b_gpios: gpio@c000 { + compatible = "qcom,pm8150b-gpio"; + reg = <0xc000>; + gpio-controller; + #gpio-cells = <2>; + interrupts = <0x2 0xc0 0 IRQ_TYPE_NONE>, + <0x2 0xc1 0 IRQ_TYPE_NONE>, + <0x2 0xc2 0 IRQ_TYPE_NONE>, + <0x2 0xc3 0 IRQ_TYPE_NONE>, + <0x2 0xc4 0 IRQ_TYPE_NONE>, + <0x2 0xc5 0 IRQ_TYPE_NONE>, + <0x2 0xc6 0 IRQ_TYPE_NONE>, + <0x2 0xc7 0 IRQ_TYPE_NONE>, + <0x2 0xc8 0 IRQ_TYPE_NONE>, + <0x2 0xc9 0 IRQ_TYPE_NONE>, + <0x2 0xca 0 IRQ_TYPE_NONE>, + <0x2 0xcb 0 IRQ_TYPE_NONE>; + }; + }; + + pmic@3 { + compatible = "qcom,pm8150b", "qcom,spmi-pmic"; + reg = <0x3 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; +};