From patchwork Tue Aug 20 06:42:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171773 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp3992509ily; Mon, 19 Aug 2019 23:44:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFKfT46N8uqrDg8H7uEqxJjeeTzZddgIrwdbQTUDlwaQjSb9+azbh0at+TYkICCs6V16yH X-Received: by 2002:a63:dd17:: with SMTP id t23mr23246982pgg.295.1566283455780; Mon, 19 Aug 2019 23:44:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566283455; cv=none; d=google.com; s=arc-20160816; b=Vp2f+7QjlBMbNCWZmL7khoh/XVQ73JkU1nNvBx+C1LqZhgBfFEP2lLIKHPR0FHTnn6 +YEapnXDC16IbyGxLs6xn+etLvNqySENPqndjuTD/gat4e2JTzBz+Wce2gd5HTAv8hCq D2fTyiJfhfrWqq5e/JMnHZaFY8UJF+k+pVWpDFpJS33ZzT4wziqBwc8xaVwcysNsQrKg bXkugIGbR9n79r6Coe8h0lXlMfXq1tXHwz32e6XvvD64H5+ln813vaEumH6RSGyp3i8Q xIV7U+TU695iYLpPPiAINk6xAbLrUsW/qP9ZrPH0IEOA1BuFU6yhoU193k6ibTCNYgto zRPQ== 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=ju8Pkamu6ACe4YgIgqz3IB33wIx0PQzkThvlqfLMHUo=; b=Zd9JD+K46zVJQHP+k80zh+8yWR3Y1zvZyx/MSnZTCKuvlqS++mxmpsgJ8t3L8Po6fO TxORJImrp+SKehGoODVcfsOiGRJuEAtvWUfPlPfQEkdORvJtbLq/WTzYiRU6jyob/x5x iVxfBQUf7dFWRZpxJpsXTV6aQ8MCYjPrkyvNcVwI9XxK9QHkMqsSxbag5Y5Axi+jp7Bj piXXNnhYSYPlEHTZP2Ckccr4LAaXghYuU2QWT4fCoNIFOBYYVSrm34dufdr7gKFlsso9 kJwfks6nRjr5IkHkF8YPvt0eg0QC9YZ5Dpawz2DxLyHjbbTqWtMRDMP7OGwo0mwHgsu1 kjzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=w4wvKKZZ; 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 y7si11616421pgj.486.2019.08.19.23.44.15; Mon, 19 Aug 2019 23:44:15 -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=w4wvKKZZ; 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 S1727006AbfHTGoP (ORCPT + 8 others); Tue, 20 Aug 2019 02:44:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:39810 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729000AbfHTGoP (ORCPT ); Tue, 20 Aug 2019 02:44:15 -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 805AB2082F; Tue, 20 Aug 2019 06:44:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566283453; bh=aI905li1OJUj5no38V9tDDK8HCtwIOe7KAwh6xZ+I/E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=w4wvKKZZoDAPQpAihl0hFJ+JQTDxGOfSDZeVnD9I8pUSBi5vt3Yibzr8paSPj4gV8 vAkl6crHOM7kfmezZ3x+Vfje+voo4ApI/fTmv7ILD+E4W91E2FcHvvuPEgDMLDonU7 2NKZ6HmqPglUo9KlRq6Ln+KXPP2h9WMJ5VzKxQe4= 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 2/8] arm64: dts: qcom: pm8150: Add Base DTS file Date: Tue, 20 Aug 2019 12:12:10 +0530 Message-Id: <20190820064216.8629-3-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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add base DTS file for pm8150 along with GPIOs, power-on, rtc and vadc nodes Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/pm8150.dtsi | 95 ++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pm8150.dtsi -- 2.20.1 diff --git a/arch/arm64/boot/dts/qcom/pm8150.dtsi b/arch/arm64/boot/dts/qcom/pm8150.dtsi new file mode 100644 index 000000000000..4a678be46d37 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pm8150.dtsi @@ -0,0 +1,95 @@ +// SPDX-License-Identifier: BSD-3-Clause +// Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. +// Copyright (c) 2019, Linaro Limited + +#include +#include +#include +#include + +&spmi_bus { + pm8150_0: pmic@0 { + compatible = "qcom,pm8150", "qcom,spmi-pmic"; + reg = <0x0 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pon: power-on@800 { + compatible = "qcom,pm8916-pon"; + reg = <0x0800>; + pwrkey { + compatible = "qcom,pm8941-pwrkey"; + interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + linux,code = ; + + status = "disabled"; + }; + }; + + pm8150_adc: adc@3100 { + compatible = "qcom,spmi-adc5"; + reg = <0x3100>; + #address-cells = <1>; + #size-cells = <0>; + #io-channel-cells = <1>; + interrupts = <0x0 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"; + }; + }; + + rtc@6000 { + compatible = "qcom,pm8941-rtc"; + reg = <0x6000>; + reg-names = "rtc", "alarm"; + interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>; + + status = "disabled"; + }; + + pm8150_gpios: gpio@c000 { + compatible = "qcom,pm8150-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>; + }; + }; + + pmic@1 { + compatible = "qcom,pm8150", "qcom,spmi-pmic"; + reg = <0x1 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; +};