Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4222778ybp; Mon, 14 Oct 2019 01:00:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwTbJpVs6UM/YUFfWFQKYpwHUEep8EK+w5gpUB4w/4k2k6SxDurpESOaSlQMPrVz8tdio3T X-Received: by 2002:a50:8dc5:: with SMTP id s5mr26664769edh.115.1571040035523; Mon, 14 Oct 2019 01:00:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571040035; cv=none; d=google.com; s=arc-20160816; b=Eg7annenTcJ9VJYkpUiPjnoyP4iqeFwJYPrDAcupWrinzGdCDDSmqaNBMgxtT/NeWG N9ssrXXKJgRQ1Wss+qWwGwJoBzbIufb82eWzdQPyVMRrne+T8nH84V6NwE0zOM3NUlKj YUuVOWKhy3uFFvtCrjZBTIlG7K5PhqjPO9dbDjLqrPOYy/F7vou7s3sT0heoYGKxl919 iITRULWM0yObT/ZMSMdsSpJ550YcxhRWn1PL/l5cHQY7BG1qiOD5iHNLLP9k8Kx2DfbN V4iHW2Hut+pMtLFzBYl7Aa5U0IbWQS0kvHLGpS49tYcqTsISREob3U2RvvXYXu+cJssA I3gw== 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=QVRHT5pDxuvkIfhkJROJMokZUW2BLlyY/F+bHkNxqRo=; b=NLXBJiJ95Z+PWpZc4+qnhzIVPPh/NV3TbXv7v6cRwh07oVWb+TGBMAVX+msN/hSg4t 7sLwBVW7NpJCDbatpHJ8c3VKwhZAslqHhIUMGPdAXwPu1g4gaGvVNcevkx0SF2AvUosv yl1MOe+TKBY/Uhzc61b6xzWvwMrQ4NIxzgZ7fHDkL6WCnIUCod7d99BaFNnPKJpqgzXx XDQ7i+q4GLnZDs3N1JZO47tL91ag0tVMV+WaxMmWnUObpkPhfX5K9yA3hXshglSKokOQ bn7KztnZHVW8thLYom6/o1ShQV2Xy47rZujpkDWANjwjFwyxz2JjBdNVJ8/5w3UJSviD 3EIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@chromium.org header.s=google header.b=Hw6W642x; 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 l54si11561394edb.206.2019.10.14.01.00.12; Mon, 14 Oct 2019 01:00:35 -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=Hw6W642x; 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 S1730292AbfJNH6l (ORCPT + 99 others); Mon, 14 Oct 2019 03:58:41 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:44202 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730281AbfJNH6j (ORCPT ); Mon, 14 Oct 2019 03:58:39 -0400 Received: by mail-pf1-f194.google.com with SMTP id q21so9907644pfn.11 for ; Mon, 14 Oct 2019 00:58:39 -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=QVRHT5pDxuvkIfhkJROJMokZUW2BLlyY/F+bHkNxqRo=; b=Hw6W642xH1aROaObhBlIVPsu/fTpXv1b3H39oxGbXRFLKlZMFQNVzm/PeUsIRcyVO1 zFSz5IqF/qhd7w/CIawaKAsOENgjYRt3UFZqRFFTL49U+18twCrxef7/EDjwtrx2KMDs /Wr+mDjiRbrgNYuI0LhMdjB3jrNL9ioEZ3sBA= 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=QVRHT5pDxuvkIfhkJROJMokZUW2BLlyY/F+bHkNxqRo=; b=OgpSWQSuT6ribOnw8HBwAF7IwOHJ/tr0EPN7fHMbag2ZT3TKwQ5fNh7iwJd9IbUl18 6WlAiGkM2IZSMLDVPX+ywZJl1vO8BnKGcTqFNmSn4LEIQitrzX1ZUgZpZ1XeSbUzruuE 4NM0vL99GFCOgveSG6vdgIEpurdjSCP9tcfAG7NivGGhcTTkbQfF52fq62xmm83K0pr7 mQcX4Wbl9TkEXFHXjmgxpekeA5vhwOMmNHYE+roCx7ReAFX0eokDQANF0uwPPBrG+4jY S3kL3mA/Vb5TLoNy+PY7wdkio0v5hhO4a77jrfl6CQH8f7Wf1zXmL+PZEIjQKSeEc3qa 9zNw== X-Gm-Message-State: APjAAAWFGGcaX9/AMeu5VbCLDL+l/KaxyMjgvqfQiaALyGkkTJd+SBAr GWZLvwsxVEA6nb6q5+o6Z77lO9T2CoU= X-Received: by 2002:a17:90a:6302:: with SMTP id e2mr33759632pjj.20.1571039918605; Mon, 14 Oct 2019 00:58:38 -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 q76sm36695998pfc.86.2019.10.14.00.58.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2019 00:58:38 -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 v20 4/4] arm64: dts: mt8183: add scp node Date: Mon, 14 Oct 2019 15:58:09 +0800 Message-Id: <20191014075812.181942-5-pihsun@chromium.org> X-Mailer: git-send-email 2.23.0.700.g56cf767bdb-goog In-Reply-To: <20191014075812.181942-1-pihsun@chromium.org> References: <20191014075812.181942-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 v19 ... v14: - No change. Changes from v13: - Change the size of the cfg register region. Changes from v12 ... 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 1fb195c683c3..ddb7a7ac9655 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts @@ -24,6 +24,17 @@ memory@40000000 { 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 97f84aa9fc6e..3dd1b76bbaf5 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -269,6 +269,18 @@ clocks = <&topckgen CLK_TOP_MUX_PMICSPI>, clock-names = "spi", "wrap"; }; + scp: scp@10500000 { + compatible = "mediatek,mt8183-scp"; + reg = <0 0x10500000 0 0x80000>, + <0 0x105c0000 0 0x19080>; + 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.23.0.700.g56cf767bdb-goog