Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp5286291ybh; Wed, 7 Aug 2019 03:46:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyhpsG2ftT7dTa2i5CyfZd4fMBim0X8WhRSObaz9GXGXYoPeLvXV7tv6ofhPNcWqM8NMix0 X-Received: by 2002:aa7:9f1c:: with SMTP id g28mr8529261pfr.81.1565174766126; Wed, 07 Aug 2019 03:46:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565174766; cv=none; d=google.com; s=arc-20160816; b=hRZH5hCFkhpNWzl0RSXd8/1Cxl1CZ7XwlVMFzJcWoF54luGmK/ugIY+Pko2vuTVYyQ xcWIDBKidQ3zQXL41eDacNuKSBTPIm0RXa5jUUsSw3a7HubS9H7JrwiDBvAUUpQvyRqE GlfTwPXEqHjVzjvUOUWqi/CXnJRqRCM2qZFULkNSgJvs1ATqxhTGzCx1ZBiL9oujLltp cmkCljKxkv8ypsBJP7IzfyeCC2SCsYfbPPgNmn4y0ciGgYXAyNnxdv6hGtuunElq9Td1 ZLC+9wi8klFgkH+0YYJ2yWybR+Ydt+XsIJkv6oBDqaIs3r9bjHyy9CjVpZ3jH2qFZOST wzwg== 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=eX+SsKj7wCX5hpAONm8nrhKL/i5I8BdLEJsX/4HZeqg=; b=PrkMy50oQZw5E6SkGOeG45QD7xNPJ66ypRuzO7QWgmNQwKlO09yDb5TV8RzE4sRFxg Ui6KwEB361zlJ8gUCYYxhA1PA1emwcv4NLyjcT/WdycH79acgwHwyg5q0hIuybvUE9KA FcLnhiSoyg8NkNM0EF62FCY7sthlDge3A/nU6OayuxGp44sANciyQ/0IvqkAaP8eReAX 7ImLpxK2SKfU13+zZK5f1SMshXUqHump0TjQkBUjoWNnieei18tuH4OzKD6rdynaTNOa GFQ3PH3MTJVNU7kWPqCCEXlMOYhR8h2yOjMHyb5WK9+YGb55XROsErMwQ0qceT6E18rg lCEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@chromium.org header.s=google header.b=nOzuOuiX; 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 3si44811771plh.265.2019.08.07.03.45.50; Wed, 07 Aug 2019 03:46:06 -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=nOzuOuiX; 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 S2387775AbfHGKoW (ORCPT + 99 others); Wed, 7 Aug 2019 06:44:22 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:47094 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387763AbfHGKoU (ORCPT ); Wed, 7 Aug 2019 06:44:20 -0400 Received: by mail-pl1-f196.google.com with SMTP id c2so40179970plz.13 for ; Wed, 07 Aug 2019 03:44:20 -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=eX+SsKj7wCX5hpAONm8nrhKL/i5I8BdLEJsX/4HZeqg=; b=nOzuOuiXeCCRH6aNy4g4MZJfGjqWtSEcVkpEdqpIabLwBFKnW5ZoI1lXcjrWj2ZSbe d0LW99oQoXP8TVeSNKvkXHKKqDgLaJZEWvQ3sygQhC/ettmLShoqjVe7pirOkwsRYCUe BJD7hc0ZSTE3fGYvRTaGfJUnIHgofb1PG9rTQ= 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=eX+SsKj7wCX5hpAONm8nrhKL/i5I8BdLEJsX/4HZeqg=; b=lUk8zTwcbBa7OSr+eUSVli7qIEPCT8y7kQYSbq62RvxHjFaRLUXBUEnX3dkBYDJKtv vwh0RrT2Y9dB7PZR47t9me6zT9q0yjtJ5l80j0xg+ML8zar6OUx5wAqZvzEgOpADE6gA ngVc4FbgTw5zFmXPX6zF9iFQ9PdDcxZxopBl3DbFXmjDK7+uxQPnNfyRdVKNHJ7LIfH4 CIkIzmJUf6NhJkSRui/dqOB8kdaT1h45/LNS80Vjw9Awny0Ex1MwtDl49YGfBjE6tM7S Oy9nun/u5QG1lJ/JAM1TLMgaYJLz9OgjPizvp4yC2l5lu3bbpHo3jHN8iXIIfI+7ZtPd zHAw== X-Gm-Message-State: APjAAAWQEl+KcsXBFwmJzQdq9WTxHlO590ILG9NRcIGxuSaFiQZSXUtU xaFIUn8zRgRgc5o5/lOO1GI7r3siFcA= X-Received: by 2002:a63:4a51:: with SMTP id j17mr7160132pgl.284.1565174659766; Wed, 07 Aug 2019 03:44:19 -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 a3sm24747697pje.3.2019.08.07.03.44.17 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 07 Aug 2019 03:44:19 -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 v15 5/5] arm64: dts: mt8183: add scp node Date: Wed, 7 Aug 2019 18:43:46 +0800 Message-Id: <20190807104352.259767-6-pihsun@chromium.org> X-Mailer: git-send-email 2.22.0.770.g0f2c4a37fd-goog In-Reply-To: <20190807104352.259767-1-pihsun@chromium.org> References: <20190807104352.259767-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 v14: - No change. Changes from v13: - Change the size of the cfg register region. Changes from v12, 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..871754c2f477 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 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.22.0.770.g0f2c4a37fd-goog