Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2953645ybi; Mon, 1 Jul 2019 23:09:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTe8T6SiTKCNbZIZf/T+L7BcIeKd0WCAjT5MQ5qS8Xgph5OIrOp3dvukKKT+eVV2ZWTZZ0 X-Received: by 2002:a17:902:f089:: with SMTP id go9mr33232968plb.81.1562047744044; Mon, 01 Jul 2019 23:09:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562047744; cv=none; d=google.com; s=arc-20160816; b=pkkujQHddtzuECGGfybIDP23Vo02lZIncW99nbQ9OCiXiqW9z4c5+7DmFUClyLeWzX pbRgAhyi2+qCPuc1S625Kz6vWG3oTa+APYrc4KRQAMwXwl9uo7BM6Rjd80GYHN9RJFCs NmWjwduNjRti1uRpuzRl2zRB5gfrChEAuUKAY6yvM49kfXnWB9d7SUkVIYfZh+mBLNq0 rICfFHBtu5cpJe/z4llabhFuVCVCPDs4WDenhJcfGBwhAlTprERvr0KVmWJNklhDdaaH 6Pv1/yTPi2C6w8AAZt9lHukkE6YonCw9pifYvq1MpGIQp7cZ1gHoJDbx9Pky21oN+2xh scFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=nNXEhYbACG3wS6zZ+/NER8qwkGIj64bXToXY5tJo9+8=; b=pQiHgSc9DrCyt/6khSjMRuOJcZlB0VE/ebxtYhGmfZHzFp0Arod6W4ebAQi5mZ+eVK 1ha+fCzkcOcG6VQcTf81Y4dJk+ibeTpOFCqJOgFDACoz1uyCwFRbqaa0Qfm5zrTvrBZz ZyLNYewFb4luIzyh9mDFS5vWOOVDfKhfoWpfwStzh4omUamSpBwvobYVYrcuZUEEykZy jhdms9xgblY4WEZT6DaBO4u0rrF/n72eQ7SVuR3TVBC8NUsLqfR48GiBDJ/EaIiTHY9n 6EwWp2kMip9aEOjVfwLsQv3JpHtWW6jP+v+EoVFEpNv6RchvPECq9GShjTX04MjHT0hE R1DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@chromium.org header.s=google header.b=Zs5QYHjO; 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=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t36si12245436pga.32.2019.07.01.23.08.49; Mon, 01 Jul 2019 23:09:04 -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=fail header.i=@chromium.org header.s=google header.b=Zs5QYHjO; 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=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727022AbfGBGGa (ORCPT + 99 others); Tue, 2 Jul 2019 02:06:30 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:32806 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725801AbfGBGG3 (ORCPT ); Tue, 2 Jul 2019 02:06:29 -0400 Received: by mail-pf1-f194.google.com with SMTP id x15so7721315pfq.0 for ; Mon, 01 Jul 2019 23:06:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nNXEhYbACG3wS6zZ+/NER8qwkGIj64bXToXY5tJo9+8=; b=Zs5QYHjOyP0GPhSCaojxBm5NKDm/ZBM1cNN3ukko+UckelVJV3+/MLFm/ZwbOe7VdH Kg2iThAYU5eGMsdaY9lH7yvBhRUSqc4M0ukNXAnVFoP7nWp94ZKRfa17Xtej92aogHQA WOYl9tqsnjN8xNxMFivqFieyF0IIN8Zdb9uFk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nNXEhYbACG3wS6zZ+/NER8qwkGIj64bXToXY5tJo9+8=; b=r9ROYLobi2+eigQWweSfYeGQFvA8bx/bEK3aOCLe7rfPYdJnwVBY05/uiSZxH9w6Rz L6Qdxds73aXgZlO+5rrk+3PeNoPHoD3NpDpFp/AnDIOqhIIzEGAVVkdH48I+5pM4JfG5 K6k7waw3+US35hanm2/GGQU4ZDbuA3q23h6Hm/Qro5OPfAqb+7riqIJSGft2CwT+52q8 R/PaEtCdycN3R6JxOdtQCdFKnttaGAzqXS7ep+pfGLMKEDtAVZhpKMvNqfpRyajZm269 q3h54bOKIGrcbvxqODoX5UEjIytsEOnZq5vY8SPguxiFcJF/6BilDUCu4wwP9VjCFg5/ Zgpg== X-Gm-Message-State: APjAAAWAw+r034fw0qSBehV4QfjlVzYeaW2O/aJyZkMxn905wUPVg27t aMhIfAo1bsKnd96R4J3e3116Qg== X-Received: by 2002:a63:d756:: with SMTP id w22mr28152157pgi.156.1562047588891; Mon, 01 Jul 2019 23:06:28 -0700 (PDT) Received: from pihsun-z840.tpe.corp.google.com ([2401:fa00:1:10:7889:7a43:f899:134c]) by smtp.googlemail.com with ESMTPSA id d1sm10284013pgd.50.2019.07.01.23.06.26 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 01 Jul 2019 23:06:28 -0700 (PDT) From: Pi-Hsun Shih Cc: Pi-Hsun Shih , Eddie Huang , Erin Lo , Rob Herring , Mark Rutland , Matthias Brugger , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Mediatek SoC support), linux-mediatek@lists.infradead.org (moderated list:ARM/Mediatek SoC support), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v12 5/5] arm64: dts: mt8183: add scp node Date: Tue, 2 Jul 2019 14:05:28 +0800 Message-Id: <20190702060546.222934-6-pihsun@chromium.org> X-Mailer: git-send-email 2.22.0.410.gd8fdbe21b5-goog In-Reply-To: <20190702060546.222934-1-pihsun@chromium.org> References: <20190702060546.222934-1-pihsun@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Eddie Huang Add scp node to mt8183 and mt8183-evb Signed-off-by: Erin Lo Signed-off-by: Pi-Hsun Shih Signed-off-by: Eddie Huang --- Changes from v11, v10: - No change. Changes from v9: - Remove extra reserve-memory-vpu_share node. Changes from v8: - New patch. --- arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 11 +++++++++++ arch/arm64/boot/dts/mediatek/mt8183.dtsi | 12 ++++++++++++ 2 files changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts index d8e555cbb5d3..e46e34ce3159 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts @@ -24,6 +24,17 @@ chosen { stdout-path = "serial0:921600n8"; }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + scp_mem_reserved: scp_mem_region { + compatible = "shared-dma-pool"; + reg = <0 0x50000000 0 0x2900000>; + no-map; + }; + }; }; &auxadc { diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index c2749c4631bc..133146b52904 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -254,6 +254,18 @@ clock-names = "spi", "wrap"; }; + scp: scp@10500000 { + compatible = "mediatek,mt8183-scp"; + reg = <0 0x10500000 0 0x80000>, + <0 0x105c0000 0 0x5000>; + reg-names = "sram", "cfg"; + interrupts = ; + clocks = <&infracfg CLK_INFRA_SCPSYS>; + clock-names = "main"; + memory-region = <&scp_mem_reserved>; + status = "disabled"; + }; + auxadc: auxadc@11001000 { compatible = "mediatek,mt8183-auxadc", "mediatek,mt8173-auxadc"; -- 2.22.0.410.gd8fdbe21b5-goog