Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp389473ybc; Tue, 12 Nov 2019 03:07:38 -0800 (PST) X-Google-Smtp-Source: APXvYqwXuBKWrCxn/pWxtdCS9sjVIB/Fa6Ezvlk63pI/tDJzLv9FvYapJhm0qbc/CirMJ9C2b+f4 X-Received: by 2002:aa7:d1c2:: with SMTP id g2mr2901390edp.164.1573556858314; Tue, 12 Nov 2019 03:07:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573556858; cv=none; d=google.com; s=arc-20160816; b=cVww4+Z8Nn5CrMs8JV7q2oykafIFo+UY2CyDQ2ERlxS4IOoYnzZgK/DhJs8kj5cNdU NDcOtRLDvDViviyCqXn63LSuOkOdK754EzQRVwByhu9bElmo62MtxSzqZJORSwMKkIn3 8ei30G/ubDlpWWwEFOW2mtzgyUiDYlfEBrdJ3PiPyj5HvbGqmykeLb/O1fdJPWr0Isvc iEmENIccyNw+j/xWmQBPL7apwwxCKRfcnqeMIIf1tr13fc6MPQreCEOdCVDfE7ly+/VB GOhfAOr46ZgUDk+VP8EX4//Wt3W80a37gEO36ewtRleuRgK7ZsJGkbb3fojdaH2dPj5E DIbw== 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=gpsL+1OsfAr2EbSe7/d6AgWIawat7sBvrVvMWd1mlyI=; b=sBck1vD2XrZ8crQ3LPzh0ok516xcqg8BNAkdr9o4bMF5EMd/Si/z7pg6C6k2tvZs0C 6qLnqaDy35k0y3ZAQAJsyymg2Qz7rAWV5+nE68s0ZP1u4L+mcJF/AmDNN4arXVsxdrFW HIQsjLj4NG1Z22FQ9c0w0CpWitXgmTBYNzlgGS2+a+n6XKzDTdlSZI6xSBFCIXDJ5NBu HOygQKwqIGsXMpDB8GyYp9o9awKBcuKFGu+dmOxYXGPzbz0O+Wl4rXqEOlRIG4MIlfc0 pcc0T9RhL3zT4/lamBx/TtsgdaBVst3GyyDPUtJ9i119Co/KqQmJ+CUX1UleIiHQ5EgH 7JVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@chromium.org header.s=google header.b=Q88zUNqM; 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 w18si12106507ejv.378.2019.11.12.03.07.13; Tue, 12 Nov 2019 03:07:38 -0800 (PST) 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=Q88zUNqM; 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 S1727103AbfKLLEk (ORCPT + 99 others); Tue, 12 Nov 2019 06:04:40 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:38541 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727001AbfKLLEj (ORCPT ); Tue, 12 Nov 2019 06:04:39 -0500 Received: by mail-pg1-f193.google.com with SMTP id 15so11619689pgh.5 for ; Tue, 12 Nov 2019 03:04:38 -0800 (PST) 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=gpsL+1OsfAr2EbSe7/d6AgWIawat7sBvrVvMWd1mlyI=; b=Q88zUNqMQUpbDmlFg31NtvbjEfiLkeIvDZ0qmbtAoJcLECe9708wdE4XVjMIpiIlJm uUxdBDo0ZlZ/1XDgsGTZGAVA/VckiGDwD7eTp5FGI09QmDiaYB10riXEcVUYxupTWFcY F2v/jEvdXbnBP/iXmrdqM/XMkkX7al8P20mC8= 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=gpsL+1OsfAr2EbSe7/d6AgWIawat7sBvrVvMWd1mlyI=; b=ug7qa+9MI9CSxOa9TQ1oNhpUxH6GMOp9U323wafEPpVoopAPz02LJicey7mDHzQzUy W5eeGcVpCJpg+SrADGHWPjC6smQSwJSmis10loGv0BRKhD30bSMS3MbXDHmtpNqzP8Nm tpinMY84i8Xni4xrgLkv3LW+cXQ3rVLZ7lRG5Vd7aXa9AOmtYxyIgxeM8+DQ0EQTRYcH 0F73Ue1LDyrVKkdcBq/+T0Jo6nMoM64jJ+sCa5zqenAjYP2gQQYxX6sI1jPFYsLTQV2l ota3IHbNUdrI+68eaaXgVTTyZCh7Hma7iQJ1Tfh7AakkjsGACOv0TfyW3PHkBE05zehp LJaw== X-Gm-Message-State: APjAAAVdx4E/dPCcIXtDzHzUPeIR5zktce35w3MSNK6kdHCKYvco56WD PN2ejLhId3YAhvkRyQse0OE72m59s9g= X-Received: by 2002:a62:ac06:: with SMTP id v6mr35247435pfe.210.1573556677548; Tue, 12 Nov 2019 03:04:37 -0800 (PST) Received: from pihsun-z840.tpe.corp.google.com ([2401:fa00:1:10:7889:7a43:f899:134c]) by smtp.googlemail.com with ESMTPSA id 6sm21528389pfy.43.2019.11.12.03.04.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2019 03:04:36 -0800 (PST) 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 v21 4/4] arm64: dts: mt8183: add scp node Date: Tue, 12 Nov 2019 19:03:27 +0800 Message-Id: <20191112110330.179649-5-pihsun@chromium.org> X-Mailer: git-send-email 2.24.0.rc1.363.gb1bccd3e3d-goog In-Reply-To: <20191112110330.179649-1-pihsun@chromium.org> References: <20191112110330.179649-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 v20 ... 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 10b32471bc7b..e582f5e6691d 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -269,6 +269,18 @@ pwrap: pwrap@1000d000 { 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"; + }; + systimer: timer@10017000 { compatible = "mediatek,mt8183-timer", "mediatek,mt6765-timer"; -- 2.24.0.rc1.363.gb1bccd3e3d-goog