From patchwork Tue Aug 20 17:23:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171821 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4722360ily; Tue, 20 Aug 2019 10:25:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqy590RsLTkBWiNKMEZZnTD0BPuQCSRL6wf5tMrKHoLCGeI/Prh0CGOSQPc1iGN6IiKjwQF7 X-Received: by 2002:a65:6216:: with SMTP id d22mr23858593pgv.404.1566321930409; Tue, 20 Aug 2019 10:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566321930; cv=none; d=google.com; s=arc-20160816; b=qXjBowgyl8SqrPpkMFHbzg3487wiNin09qgKzp8uYV1LBBMXFZi0R5uKUkkYAtkkal BY+Goy5TtgRVJWyW171C0zktVKbWhMImKawK31QdG4jAR2ozEP9MLK2RwyfXBLyE33Kd ONP8lYYcShkK3uBiZBwr9hfHpvETe8IlwaHECvempOE677uvjvhBCJQGLJqd9kq2yYIr +wOVhB33/Q8kSwCqqKlWNoV5AB6PQ8cltrDViiXUkZZ0a2DOnxQJDFNAKOddTksYzaoH C8taVy/+XXatynem8A87o8WvtZcjxXTOme6pXlNz/mFXJqI3j6sapgHgx5vUjw+2yuY7 nGyA== 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=L/upg3xCklPMMcEgoJAZ3exQ7XgbE8W8Jcbs3lMKmtg=; b=K9QnbL1M8l1hL5O8VPQ9zfJPHZ+DZiSlHHyl+i1ELB0TcIt4dmYWiXYUzHxqEGoMrm NkDwrRGZA7JFNxtrzSiSpTNT4+kb21uweKvH7J8XJ8GxK9Lwd1dx6FT5Xm5D8B0p7ptX JC1f9qD/IytJR1Jhbx4SIwVqIpSURIjRShGJQzoD7HTM9wLsqsH91/UuHeYyloFQuNEj STHILSngBEZferi7aFVN+O0a8YEzxBGXyBlG+t+RHhDgXlEtnZGF6JVS7szrEMPTVoAK FboKMc5CCSQGBHFgOrilYJ7zpCAM9BW1HlZkw5JPDEgA6l+LMlsBGs2520kGNPCONFW0 8uHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mlpGYbKg; 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 w17si12585824plp.404.2019.08.20.10.25.30; Tue, 20 Aug 2019 10:25:30 -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=mlpGYbKg; 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 S1730541AbfHTRZ3 (ORCPT + 8 others); Tue, 20 Aug 2019 13:25:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:48484 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730473AbfHTRZ2 (ORCPT ); Tue, 20 Aug 2019 13:25:28 -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 DF51222DD3; Tue, 20 Aug 2019 17:25:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566321927; bh=3Kr7FEvwlf9S+mmB31zEV63IF8XzGkPhu+d71HxLXro=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mlpGYbKgMSGD1ez2ivcxt1qerIJvMMgc0NvQdHTvAznj4N4Ioqt0oM9XobcnSQPsF nVjLVnZenuLF7R8HmMDMO6V7RDr4wShTJMMQJL0kXDp6cHJ+6uRW4n0QwxcSuMe43V 4snQP5uexyyjiPRzVXXZj5QYUQ204rbSIC1rid3o= 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 v3 3/8] arm64: dts: qcom: pm8150b: Add base dts file Date: Tue, 20 Aug 2019 22:53:45 +0530 Message-Id: <20190820172351.24145-4-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190820172351.24145-1-vkoul@kernel.org> References: <20190820172351.24145-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 pm8150b is a slave pmic and this adds base DTS file for pm8150b with power-on, adc, and gpio nodes Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/pm8150b.dtsi | 86 +++++++++++++++++++++++++++ 1 file changed, 86 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..322379d5c31f --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pm8150b.dtsi @@ -0,0 +1,86 @@ +// 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 0x0 IRQ_TYPE_NONE>, + <0x2 0xc1 0x0 IRQ_TYPE_NONE>, + <0x2 0xc2 0x0 IRQ_TYPE_NONE>, + <0x2 0xc3 0x0 IRQ_TYPE_NONE>, + <0x2 0xc4 0x0 IRQ_TYPE_NONE>, + <0x2 0xc5 0x0 IRQ_TYPE_NONE>, + <0x2 0xc6 0x0 IRQ_TYPE_NONE>, + <0x2 0xc7 0x0 IRQ_TYPE_NONE>, + <0x2 0xc8 0x0 IRQ_TYPE_NONE>, + <0x2 0xc9 0x0 IRQ_TYPE_NONE>, + <0x2 0xca 0x0 IRQ_TYPE_NONE>, + <0x2 0xcb 0x0 IRQ_TYPE_NONE>; + }; + }; + + pmic@3 { + compatible = "qcom,pm8150b", "qcom,spmi-pmic"; + reg = <0x3 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; +};