Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp351429ybe; Wed, 4 Sep 2019 21:47:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/Z2jLlCPfttrvxudKNOvyr4QCaEYnPiV1Q3YUHoOErWnGzMATGxfxoAdIZoLuVpKjju7j X-Received: by 2002:a17:902:8345:: with SMTP id z5mr1391079pln.29.1567658830035; Wed, 04 Sep 2019 21:47:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567658830; cv=none; d=google.com; s=arc-20160816; b=GgxRbyXxRbkkIFGPMhNtekhS1Ndgh8Q3Z6m7R69G8K9GxCuYCKSS2M0m+/jmDTrgTi eX6cLIdjm8iw4kieNV57THUcYIxGPtX2JiaksN+asBqsW/exNLDuHxK7be4wGnUKRMBx aUkdF3GwAaqw+ZiqieNJ3bIDg0WtchGmtiWrA1I0SiZ1irtNe8cIG717/p6MwldUBEyj BlF5/HxJo5z6c9A45cDqOowoydvyw9UsDAYnf6EwIlK0q/WUlSyvKg6UoR55vycPef0L ljLVqmAQeAlMtmhFHQDiY2UkRiYQ4VQta2DHnPyxJxpbnCG+6zRrPu8wIAAzdCGDO6b6 hD6Q== 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=7VF9YheeXhAjJyIl6t7c6PBAXPHMp5xAy2HeigDHRwg=; b=Lftv+XrcnlQZBRsowcwGAKfYUpov9rDTWtDuw+yGizTXD5pI9EcNLxadV8AdONLelx kHc8Qr98AgV6FPtemdBEXDuJK9HX44zRvA1903ACuiWliU9kAfcBbmn9keyvo+2jWMvE b2+ww8Q3Gt2/RoIV1kIDXCzph1+wqAlfj8l4+DCNbRFqbiqLNVnNQf3BexNipn1WIrPw +L8l+J/j/nFMghaHR0T+Wv0kx+HoNXpOXxz2TCnJsKkEpDwC6JCraXPoGlqse+jcisbX B+x+ktiGBjwFZDToKTkAGZaBI9Z7Sn8osLADBDezwJLOjVu7oEopnXi7Z2DOCgFFVJxY KpKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@chromium.org header.s=google header.b=SajC19KK; 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 a8si897185plp.136.2019.09.04.21.46.54; Wed, 04 Sep 2019 21:47:10 -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=SajC19KK; 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 S1731170AbfIEEpM (ORCPT + 99 others); Thu, 5 Sep 2019 00:45:12 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:44181 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731142AbfIEEpJ (ORCPT ); Thu, 5 Sep 2019 00:45:09 -0400 Received: by mail-pf1-f194.google.com with SMTP id q21so869310pfn.11 for ; Wed, 04 Sep 2019 21:45:08 -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=7VF9YheeXhAjJyIl6t7c6PBAXPHMp5xAy2HeigDHRwg=; b=SajC19KKIOWUFXSNHogt2YAD8LpKAtF7I3Nx9j762W1mZnHqg2Te8Y7InfFgU8f+Ni DP2Ye9sc51qZ6jB/0GVOoJyU0Am7a9yX9rQ1mlkXyxXvo++Uf2q6zXXITEHmEpSEKMFu SAfdfnomboehsJtwgY0tyQzJhO/GyhhxMjIcM= 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=7VF9YheeXhAjJyIl6t7c6PBAXPHMp5xAy2HeigDHRwg=; b=UZHQcDlqosHNffTXkDLYLtEScx6+yE+hjVoJIzuCFEek2Ovfe1FJRK26AQlut0Ahbq f2t0nVt/dEVQkhyZsgFVPoWtggIy8Cnm0lZVMHu3Ll2dAKNaYPFBf4JFkNPAghNV2K92 ZS2CCfR/JMFW5924C+db/OfnLhBiwaTLX4H55lXs1dBk9ohqI9ygCjEaxl49X9WrkBVl uqMpS9m1UfDkgoJFrh8RtaKseTGwgYrRpTPTPJtLpA3kDc4nTcgJTQfXtYvhU01HiA7a ktbyVyoZw9dKlIVf2ITiH4OdlKvD9HGS3UiC0wWYEfuXJ8LteG9KAGpJIXrig4oAXd1E 7G7w== X-Gm-Message-State: APjAAAWkt0XOlqlo5srppbY1avHHMuXfcqTMBHvoDhmwQ3tdh6EX2pgu zIsy7KG2ju9grF4OQW3pBQWDFQ== X-Received: by 2002:aa7:9253:: with SMTP id 19mr1501529pfp.126.1567658708199; Wed, 04 Sep 2019 21:45:08 -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 v22sm602272pgk.69.2019.09.04.21.45.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 21:45:07 -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 v18 5/5] arm64: dts: mt8183: add scp node Date: Thu, 5 Sep 2019 12:44:26 +0800 Message-Id: <20190905044432.150131-6-pihsun@chromium.org> X-Mailer: git-send-email 2.23.0.187.g17f5b7556c-goog In-Reply-To: <20190905044432.150131-1-pihsun@chromium.org> References: <20190905044432.150131-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 v17, v16, v15, 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 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 @@ 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 @@ 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.187.g17f5b7556c-goog