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>; + }; +}; From patchwork Tue Aug 20 06:42:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171776 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp3992708ily; Mon, 19 Aug 2019 23:44:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwe/4HDGQ8RfpozXx+KTslP6AuXsTOhSSOS+LJ2kRxbvxQHUmQawieHZvbi9wgdtawWHdvu X-Received: by 2002:a17:902:7c8a:: with SMTP id y10mr26210804pll.65.1566283467869; Mon, 19 Aug 2019 23:44:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566283467; cv=none; d=google.com; s=arc-20160816; b=qST4D/12MDeOqrErOlRqsSxmBTTaRxq17oRe+aHdyWk/XQaHjLSI8WgE9jDoJQ6r7C ubTSTG23bXTack1CObjDxvu0Q0K12cv2YIoJqVTSWMKYiQGul/cqarO3QKULnVhCOjxD NS28BLTdWeNA+wcgHI+JQ0lK7eGtfo7X1GZY/yGIwzBYdgETEEu2Gf4jjMZJf4d2+Zet lY9oqNle92P+GnCbysTj1Avoge9/F1DZPnwgi5Q2gYuJYCMdQYa7HXvHQe3TeJnz6rZA NFo0Fma2bjQ7vTfz5OqQFHTXMxO2ztBsvbGiM15cgiFgMPbzeN9LBsXbxMxZq1BB9TNV 8dzA== 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=a2VdpCkVWvNqD+MjoZ08M7WWfP7BUIBlhc7IB06USUw=; b=n9mVcDKOCZooGo5dnVXC+AySEg0UHHR2fwa9sCoNF/l4S7dymGnOJZJasT3YOvyflU cNm3HsDu3Doe/thHs218cmA8VlfAydDM9COzrku7jd6cFbjhxLXMqfZboxE1mO0jtWv1 qNeqAaamQufB8xp74N3bZr9Rp5iDvWr527umASahfpZNlip9nJ2GhtuY5PlCgyWRGJDH z4kd6trERtPFaGJaZjg4M0AeTh6sV116PtpsKoY1WUWFXNHODdyfXY2Gb/g6DbDG9Ggy bxRYmpwHmaBJNXLwpcs9PUJG8YaDc1Y3WJHq0YeHvH6CnEiVnWIPJ+325o3YK9A724WK S++Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OqpoRVnm; 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 c11si12289784pfd.165.2019.08.19.23.44.27; Mon, 19 Aug 2019 23:44:27 -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=OqpoRVnm; 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 S1729348AbfHTGo1 (ORCPT + 8 others); Tue, 20 Aug 2019 02:44:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:40070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729000AbfHTGo0 (ORCPT ); Tue, 20 Aug 2019 02:44:26 -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 B798022CF4; Tue, 20 Aug 2019 06:44:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566283466; bh=4SBMR80jH7/68DYpHXffaDbU2fga05VP6Dnx4GjzTpc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OqpoRVnm8zItMHVVdmq9CLeSBbQpqGgi61XB7wdmKqhns1DZlL8yh2yOo1BwAYEyQ 1cQhP0AQ7qtzzBPhUnr68PmXeu95Qfc3KKJMeYcfEAdvvQaKuTcEiyd0wzX8D4Rlc9 bXsX3sHmC3G1y8+vMp8LMgNISR43vgANlCnWbUW0= 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 5/8] arm64: dts: qcom: sm8150-mtp: add base dts file Date: Tue, 20 Aug 2019 12:12:13 +0530 Message-Id: <20190820064216.8629-6-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 This add base DTS file for sm8150-mtp and enables boot to console, adds tlmm reserved range, resin node, volume down key and also includes pmic file. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/sm8150-mtp.dts | 48 +++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sm8150-mtp.dts -- 2.20.1 diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 0a7e5dfce6f7..1964dacaf19b 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -12,5 +12,6 @@ dtb-$(CONFIG_ARCH_QCOM) += sdm845-cheza-r2.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-cheza-r3.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-db845c.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-mtp.dtb +dtb-$(CONFIG_ARCH_QCOM) += sm8150-mtp.dtb dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-1000.dtb dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-4000.dtb diff --git a/arch/arm64/boot/dts/qcom/sm8150-mtp.dts b/arch/arm64/boot/dts/qcom/sm8150-mtp.dts new file mode 100644 index 000000000000..80b15f4f07c8 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sm8150-mtp.dts @@ -0,0 +1,48 @@ +// SPDX-License-Identifier: BSD-3-Clause +// Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. +// Copyright (c) 2019, Linaro Limited + +/dts-v1/; + +#include "sm8150.dtsi" +#include "pm8150.dtsi" +#include "pm8150b.dtsi" +#include "pm8150l.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. SM8150 MTP"; + compatible = "qcom,sm8150-mtp"; + + aliases { + serial0 = &uart2; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&qupv3_id_1 { + status = "okay"; +}; + +&pon { + pwrkey { + status = "okay"; + }; + + resin { + compatible = "qcom,pm8941-resin"; + interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + linux,code = ; + }; +}; +&tlmm { + gpio-reserved-ranges = <0 4>, <126 4>; +}; + +&uart2 { + status = "okay"; +}; From patchwork Tue Aug 20 06:42:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171778 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp3992864ily; Mon, 19 Aug 2019 23:44:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqxb23BUZwySXYi1GReiLzBaka0qz70tdYBLIUGM6S9GCIkzWhwx6i8C/PYpe1koiPc4aPt/ X-Received: by 2002:a63:ec48:: with SMTP id r8mr22311788pgj.387.1566283477022; Mon, 19 Aug 2019 23:44:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566283477; cv=none; d=google.com; s=arc-20160816; b=WXrQvDm6TLL1cYcsa0VhFjhliEKIGPNN+onHvoQKx77A2kJlH3GBdqPh2ppIsuZORH Q0PybrohKEegrKVy3bxTO5UFyWO/4qe68eIC+HZZ5BmJCw47zf1lDfLFxGDvBoQqWf9w /NhDPdVMPJ3MzkSEhz7BEVx00XKh18ax7r5f/3OH5rWX3PS5L4Vn1CBA0nKxeN0/t4K8 vg/ZEKNV3seYemToLaHSX8fukNtgehB7j3sUWeDF7cL8Y04DUfGWq5UjDjeYDjRS65nK VAv/+FlTjV2I7XvejwxqHJa2szxJb8jp0UM+p9E9OFiqbqL3PJ9+TZQusEhBMDfD+lu0 6Xjw== 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=pErTjkMGyqVdAeOmXe1aLjm/RYwjwnxorPfgRlVPIIA=; b=fq0i6+9CHFje9DL2MxGdvdO5yc/0hM6QxMxHQTb9VRbgYlD9hllp6lYPZdaycw9Bvj N4YvAjeRrnn8aKgsgdpwKAgUo2HZV0jqVgagO7qEs6KUsuMENN4Va5VHP3tJh1WdcAh1 hxPhE8Y6+4/3PWKKxA2cl6K+cH46JWMOBnibzYdX0GODcbK7ZZIZL+8+kcpK7QE3QHpU +4hFJIIow+1Vkqh9y4e6AHhC0jCxb6xlvyNiArng4mzyXgfg2XykYYfsOMDB7JYVQh/g 2oqYqGTiWlHVa0W9S2RabCaFy4Inil86foLd9yv+IpfzxJiD1d6zKDxrjkzlZZdR5Z7b 6bkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fi03OEY0; 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 j12si11644023pgp.261.2019.08.19.23.44.36; Mon, 19 Aug 2019 23:44:37 -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=fi03OEY0; 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 S1729375AbfHTGog (ORCPT + 8 others); Tue, 20 Aug 2019 02:44:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:40220 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728777AbfHTGog (ORCPT ); Tue, 20 Aug 2019 02:44:36 -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 E0FC922CF4; Tue, 20 Aug 2019 06:44:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566283475; bh=yrZrGHUfdwZXKNhVQEfUxetlFdsvfaR96tB5puPCEUQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fi03OEY0JE9bx8uNscb4y9fEYqeVpLLKOSeQBgotqKEN/sh7TgXz1iMtpffiPubQ2 Qmd2+8Ec966p2hrhnRs32pJ8tstVng6Iv594rk66tnAwjKUHw9V3ya7+JZuj3Qi4nP hEqiiZ8+8S6/vLBCLLi1igZyIzL5eVx42K8orpY8= 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 7/8] arm64: dts: qcom: sm8150: Add reserved-memory regions Date: Tue, 20 Aug 2019 12:12:15 +0530 Message-Id: <20190820064216.8629-8-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 the reserved memory regions in SM8150 Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 111 +++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) -- 2.20.1 diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index d9dc95f851b7..8bf4b4c17ae0 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -153,6 +153,117 @@ method = "smc"; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + hyp_mem: memory@85700000 { + reg = <0x0 0x85700000 0x0 0x600000>; + no-map; + }; + + xbl_mem: memory@85d00000 { + reg = <0x0 0x85d00000 0x0 0x140000>; + no-map; + }; + + aop_mem: memory@85f00000 { + reg = <0x0 0x85f00000 0x0 0x20000>; + no-map; + }; + + aop_cmd_db: memory@85f20000 { + compatible = "qcom,cmd-db"; + reg = <0x0 0x85f20000 0x0 0x20000>; + no-map; + }; + + smem_mem: memory@86000000 { + reg = <0x0 0x86000000 0x0 0x200000>; + no-map; + }; + + tz_mem: memory@86200000 { + reg = <0x0 0x86200000 0x0 0x3900000>; + no-map; + }; + + rmtfs_mem: memory@89b00000 { + compatible = "qcom,rmtfs-mem"; + reg = <0x0 0x89b00000 0x0 0x200000>; + no-map; + + qcom,client-id = <1>; + qcom,vmid = <15>; + }; + + camera_mem: memory@8b700000 { + reg = <0x0 0x8b700000 0x0 0x500000>; + no-map; + }; + + wlan_mem: memory@8bc00000 { + reg = <0x0 0x8bc00000 0x0 0x180000>; + no-map; + }; + + npu_mem: memory@8bd80000 { + reg = <0x0 0x8bd80000 0x0 0x80000>; + no-map; + }; + + adsp_mem: memory@8be00000 { + reg = <0x0 0x8be00000 0x0 0x1a00000>; + no-map; + }; + + mpss_mem: memory@8d800000 { + reg = <0x0 0x8d800000 0x0 0x9600000>; + no-map; + }; + + venus_mem: memory@96e00000 { + reg = <0x0 0x96e00000 0x0 0x500000>; + no-map; + }; + + slpi_mem: memory@97300000 { + reg = <0x0 0x97300000 0x0 0x1400000>; + no-map; + }; + + ipa_fw_mem: memory@98700000 { + reg = <0x0 0x98700000 0x0 0x10000>; + no-map; + }; + + ipa_gsi_mem: memory@98710000 { + reg = <0x0 0x98710000 0x0 0x5000>; + no-map; + }; + + gpu_mem: memory@98715000 { + reg = <0x0 0x98715000 0x0 0x2000>; + no-map; + }; + + spss_mem: memory@98800000 { + reg = <0x0 0x98800000 0x0 0x100000>; + no-map; + }; + + cdsp_mem: memory@98900000 { + reg = <0x0 0x98900000 0x0 0x1400000>; + no-map; + }; + + qseecom_mem: memory@9e400000 { + reg = <0 0x9e400000 0 0x1400000>; + no-map; + }; + }; + soc: soc@0 { #address-cells = <1>; #size-cells = <1>; From patchwork Tue Aug 20 06:42:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171779 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp3992918ily; Mon, 19 Aug 2019 23:44:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqz66yZSpNyvqWgbSd+iD7X709CM3qm/OJns7eiSxtRwSyLw6A/98N32yuvIKJFXqz/1Jb/s X-Received: by 2002:a62:1a45:: with SMTP id a66mr29133369pfa.142.1566283481572; Mon, 19 Aug 2019 23:44:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566283481; cv=none; d=google.com; s=arc-20160816; b=Ed0EBkv5Dz1cr/wj13Oze1hqrD+ZR8V3pSINzHpytQ5X1yR97pJDWtbRLlMnyOFYNu 4VqQmP2ilCvaRRGChKwbHR0XyqHsF/+ywSwr4voUPyDgtNYjw2ReVPa/gOTkA9JDpHTH WdfqpQCRJfR1CRUl5QxruFrhADfMof55yCvgLo7N8l4YKvW35rGsdgISvGAGq6bWarfJ IO7KyYcHllom+2O4d/pSMcOjNZmeE4gIBOxSuR2TtRqypcMSwsPpBrx3BzWfGeEGYHy7 csJ/QZZ6Q9UlJJSMq0SXfAfTzE9qmuOUupYHUBBqvsnl9JgnkX+IlZcz3fJAr3RlyetA fCYA== 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=m67KrS4PBW1DJZI/4nA/PxdlORv5p7up9kPkIvYFA+A=; b=eWYi6nwrr9mxfel+NkxUNcxak62MEAGk/KxHNVM29PQZyw3kA4jCPq+yGCCNPqglyh moG2FEl7fA0S65SpkBJn93zxOIiqdikp0SQHC+yT2Ku3v/WmdRt92ddLWyWeE1jTN9NL dok2d+TeYCR1Wax83i8ZLqLSmJYMQz8ENirHK1zM+wTFbWj9FsHyKVak0xxvk+kNv8ev 674pKs6mmgiS2Cu6CFeng8yqsPSLXwmNvRwwgWxqnCNx3djka5KGhymDOWLYFMTM8h0E 1hlpDcKUTl8IvNQRinv5iWjrt2tZ6PTb6uJtQBMRt2+KiE0529NE+zbhrSO7jtSjiZme x2Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XjS884YC; 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 z3si5776619pju.89.2019.08.19.23.44.41; Mon, 19 Aug 2019 23:44:41 -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=XjS884YC; 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 S1729000AbfHTGok (ORCPT + 8 others); Tue, 20 Aug 2019 02:44:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:40302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729273AbfHTGok (ORCPT ); Tue, 20 Aug 2019 02:44:40 -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 F29AF2082F; Tue, 20 Aug 2019 06:44:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566283479; bh=avgQr0nAKi9Nm14cJjqVKLyuHxantFYztUHzrSX7h0w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XjS884YCr3suQERr1OV2u+BcFisAgMI5L9RPSlPLLDrmPAmCmW1gvfuXeiqg/Bomx A1huOWd9tzGWaI4PPyZIFtw1hWHaMDZcb39CDPT0xCUZlKidksbXDhhahKWnCzU/Dw dI2mhyK1p6TUgkYZFxNGfifLwT3cpnlD4iQ72ENs= 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 8/8] arm64: dts: qcom: sm8150: Add apps shared nodes Date: Tue, 20 Aug 2019 12:12:16 +0530 Message-Id: <20190820064216.8629-9-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 apss_shared and apps_rsc including the rpmhcc child node, pmu, SMEM nodes Co-developed-by: Sibi Sankar Signed-off-by: Sibi Sankar Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 63 ++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) -- 2.20.1 diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 8bf4b4c17ae0..cf58b367df28 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -142,12 +142,23 @@ }; }; + tcsr_mutex: hwlock { + compatible = "qcom,tcsr-mutex"; + syscon = <&tcsr_mutex_regs 0 0x1000>; + #hwlock-cells = <1>; + }; + memory@80000000 { device_type = "memory"; /* We expect the bootloader to fill in the size */ reg = <0 0x80000000 0 0>; }; + pmu { + compatible = "arm,armv8-pmuv3"; + interrupts = ; + }; + psci { compatible = "arm,psci-1.0"; method = "smc"; @@ -264,6 +275,12 @@ }; }; + smem { + compatible = "qcom,smem"; + memory-region = <&smem_mem>; + hwlocks = <&tcsr_mutex 3>; + }; + soc: soc@0 { #address-cells = <1>; #size-cells = <1>; @@ -303,6 +320,11 @@ }; }; + tcsr_mutex_regs: syscon@1f40000 { + compatible = "syscon"; + reg = <0x01f40000 0x40000>; + }; + tlmm: pinctrl@3100000 { compatible = "qcom,sm8150-pinctrl"; reg = <0x03100000 0x300000>, @@ -318,6 +340,16 @@ #interrupt-cells = <2>; }; + aoss_qmp: power-controller@c300000 { + compatible = "qcom,sm8150-aoss-qmp"; + reg = <0x0c300000 0x100000>; + interrupts = ; + mboxes = <&apss_shared 0>; + + #clock-cells = <0>; + #power-domain-cells = <1>; + }; + intc: interrupt-controller@17a00000 { compatible = "arm,gic-v3"; interrupt-controller; @@ -327,6 +359,12 @@ interrupts = ; }; + apss_shared: mailbox@17c00000 { + compatible = "qcom,sm8150-apss-shared"; + reg = <0x17c00000 0x1000>; + #mbox-cells = <1>; + }; + timer@17c20000 { #address-cells = <1>; #size-cells = <1>; @@ -386,6 +424,31 @@ }; }; + apps_rsc: rsc@18200000 { + label = "apps_rsc"; + compatible = "qcom,rpmh-rsc"; + reg = <0x18200000 0x10000>, + <0x18210000 0x10000>, + <0x18220000 0x10000>; + reg-names = "drv-0", "drv-1", "drv-2"; + interrupts = , + , + ; + qcom,tcs-offset = <0xd00>; + qcom,drv-id = <2>; + qcom,tcs-config = , + , + , + ; + + rpmhcc: clock-controller { + compatible = "qcom,sm8150-rpmh-clk"; + #clock-cells = <1>; + clock-names = "xo"; + clocks = <&xo_board>; + }; + }; + spmi_bus: spmi@c440000 { compatible = "qcom,spmi-pmic-arb"; reg = <0x0c440000 0x0001100>,