From patchwork Fri May 31 07:38:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pi-Hsun Shih X-Patchwork-Id: 10969727 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 546C9933 for ; Fri, 31 May 2019 07:40:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3EF58289DA for ; Fri, 31 May 2019 07:40:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2F3D728A0C; Fri, 31 May 2019 07:40:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CE1D3289DA for ; Fri, 31 May 2019 07:40:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=f7YAu/tQXVRy7aP/reTdBSIHmtkTnAxrXDM5iXvSQhg=; b=dqRyOP3r61WbxA S1D9tUzsNlLu03Iu3CZeA3ndACacUswMGYgXRKAcZDCn98JEOLefH9LyRM9uSHtdQzAgvfEK6wv5w Py8vKy7mnZF76GBVHsKXhcomvu+pqIqfgdR1xil/IMx/LYUxCbVdBMGUeAwpToSZw8uBO+KlES0ue zNLy8n5bWESQBGkfWritAdUMaPu5UlUvYQjG1Mx0aFoSZkW6xVKi430JdsQbAmdwCx3v7gjhbQh9M L93ruRjL0Yf+txyH3BxCNb6xsvdT44FxmYypKTSoXHduPoIBFH9FeiVJwuTvxfK2Tymy0aHQozoN1 o0dhw7DNMtXx/hN7Ux5A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hWc94-0004Ib-CN; Fri, 31 May 2019 07:40:10 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hWc8O-00034E-4G for linux-arm-kernel@lists.infradead.org; Fri, 31 May 2019 07:39:41 +0000 Received: by mail-pl1-x644.google.com with SMTP id x7so2671840plr.12 for ; Fri, 31 May 2019 00:39:27 -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=ejdHdx9aJPFDTdLKuLfQa4XoPCSxip4iB0fegeYSrZY=; b=Q5wCjFWX0X+zb5g9028sfTh6/jgJd2eQo05xjMOOBPDXrV6g/iI4f2uvL46tPj900R C/0u9XYpKeRmSOSCSHy8wo0CGZJ6Y2Hpd6lG+x2lHYFvTPkVLSFCqV+8Mc1RvgE9F7dR 1e9trXJpBMPtQB+kwjB0LE9lqF8M5eXitaXac= 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=ejdHdx9aJPFDTdLKuLfQa4XoPCSxip4iB0fegeYSrZY=; b=qSRPMobiR/MdwC3uobon8cFQmmGa1PYCR3uAn0/1Zq3Tr2r+nLqTXZSqr3UdjihCJT I0vKKoZ6ulMMlwmejceE1gfRmq4wbs3qMMtDW+IeDZP3zYPT88AUG5N1qFPB4AdepQQC ghK0pp77sFaKLIlFagmA+gMovulxPpGd+JKxxKWMlXITzvghH/4WyFM0NdD5/fnDQsmy olp86ChROd0E9gyxOldEyALvdahGv0lWCPBwjfysj/+IvIgPti1yzUR9n9LJDqY2qA02 ywgMGcDgpPpbPOeuiwjg7z16WVVvszevqdV/DXd/7z1fNRhv/HDPQ8dYSffirELzPtFi pc9A== X-Gm-Message-State: APjAAAXWhNh1YkkGC8UGlPefwukjpAOwQOkg384adWpU/2lmex6lKx1Y /5DFkG4LzbzHYokNBIcDa15IYQ== X-Google-Smtp-Source: APXvYqwoNtsvmCcTcLY1kQ0tL5LV8FXN4fOgbtLi9YsFY5vxCjPTuvcDxqSO9x0O0gI1118bfseHVQ== X-Received: by 2002:a17:902:704a:: with SMTP id h10mr7466917plt.294.1559288367311; Fri, 31 May 2019 00:39:27 -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 r71sm17051741pjb.2.2019.05.31.00.39.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 May 2019 00:39:26 -0700 (PDT) From: Pi-Hsun Shih To: Subject: [PATCH v9 7/7] arm64: dts: mt8183: add scp node Date: Fri, 31 May 2019 15:38:48 +0800 Message-Id: <20190531073848.155444-8-pihsun@chromium.org> X-Mailer: git-send-email 2.22.0.rc1.257.g3120a18244-goog In-Reply-To: <20190531073848.155444-1-pihsun@chromium.org> References: <20190531073848.155444-1-pihsun@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190531_003928_638713_146EC828 X-CRM114-Status: GOOD ( 12.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Erin Lo , open list , Rob Herring , "moderated list:ARM/Mediatek SoC support" , Pi-Hsun Shih , Matthias Brugger , Eddie Huang , "moderated list:ARM/Mediatek SoC support" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Eddie Huang Add scp node to mt8183 and mt8183-evb Signed-off-by: Erin Lo Signed-off-by: Pi-Hsun Shih --- Changes from v8: - New patch. --- arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 18 ++++++++++++++++++ arch/arm64/boot/dts/mediatek/mt8183.dtsi | 12 ++++++++++++ 2 files changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts index d8e555cbb5d3..8dd74d7aefdb 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts @@ -24,6 +24,24 @@ chosen { stdout-path = "serial0:921600n8"; }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + reserve-memory-vpu_share { + compatible = "mediatek,reserve-memory-vpu_share"; + no-map; + size = <0 0x01400000>; /* 20 MB share mem size */ + alignment = <0 0x1000000>; + alloc-ranges = <0 0x50000000 0 0x10000000>; + }; + 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";