From patchwork Tue Jul 2 06:05:28 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: 11027277 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 4AE0C14C0 for ; Tue, 2 Jul 2019 06:08:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2EA3928837 for ; Tue, 2 Jul 2019 06:08:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2185D28892; Tue, 2 Jul 2019 06:08:17 +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=unavailable 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 CA77B28837 for ; Tue, 2 Jul 2019 06:08:16 +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=ciuAJPbbeY23mET7fzDYIltJAlPH6VWENgVE7HL03+s=; b=m0Si4o+vu8idXQ 8Py+K/AyTJY17ronJMaVNFcbs6DhBK9xfISZz4jvoU34EYG1e0llVRe51UWdhjbfZtRlJRUjPKDY6 ncE9FehEni1jWfSXDYKBUz52WPK4N46jvz/MqtluZx5E9jRVlCzfq4mA+o4a1BJjmFWS8T+QfLSWP 3BW99lPd0d+qAaR83+c55DwouM7quQ7icTHCWFYdr8g4QMAaW3eXDy7V5HGp0gRReS/nNmksD9+1Y 1M+umfBcmSITGtNl2Y9vTZzNHotGofo07VUVZxqYhunGYpqcv/XMreCnIRuC5y+SANb/0e+OfmMyY d1b3GOZ4Y0hrpGS6u7qA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hiBxg-0008I5-6E; Tue, 02 Jul 2019 06:08:16 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hiBvx-0006sN-GM for linux-mediatek@lists.infradead.org; Tue, 02 Jul 2019 06:06:33 +0000 Received: by mail-pf1-x443.google.com with SMTP id p184so7705363pfp.7 for ; Mon, 01 Jul 2019 23:06:29 -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=nNXEhYbACG3wS6zZ+/NER8qwkGIj64bXToXY5tJo9+8=; b=Zs5QYHjOyP0GPhSCaojxBm5NKDm/ZBM1cNN3ukko+UckelVJV3+/MLFm/ZwbOe7VdH Kg2iThAYU5eGMsdaY9lH7yvBhRUSqc4M0ukNXAnVFoP7nWp94ZKRfa17Xtej92aogHQA WOYl9tqsnjN8xNxMFivqFieyF0IIN8Zdb9uFk= 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=nNXEhYbACG3wS6zZ+/NER8qwkGIj64bXToXY5tJo9+8=; b=IvANfoXUyQq3NIhBZ+KVKkPDvUPWauoBCCsFy0YTZbsZNg5fn7NPiYwfQSMA03ts8e edDJ0UKdH05+qrTNCJu+RW2ILmNwzckFOdTXefdBCwbT6C6E1rVTpk6Vl47qLc8Za/h6 UW077mHlWdFK9zAzkQCmFv1d5ycoUPWrZrgp1CsnyfjLrUUJv1mDokq2kdzzARhMoAtM yjrblyWxffX6EJHr8kXXDhllfCc9O0MBfITi1e3byvVKn8D8na+tZyV7RlNCIzsvtYxm hw5ZlUXP7OfbUbXJfjF48sqnHlRhOfadN47QzC9ZsQ7ndjgCW80gGLTuMa4xNrnQKt9n do0g== X-Gm-Message-State: APjAAAX1oaIOLkDh4AnDscVydf7PjWhXw6kirPwoqXK8WDB90gJ63i15 kP/EojqytKl80ICG/9wuhkgdkg== X-Google-Smtp-Source: APXvYqx9q6Jq9njI2deztF53gf7lPgnmCZz9TLU5PjauoSu7fMCqseLeN/IAkEJkyNltOEZQRWj9mQ== X-Received: by 2002:a63:d756:: with SMTP id w22mr28152157pgi.156.1562047588891; Mon, 01 Jul 2019 23:06:28 -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 d1sm10284013pgd.50.2019.07.01.23.06.26 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 01 Jul 2019 23:06:28 -0700 (PDT) From: Pi-Hsun Shih To: Subject: [PATCH v12 5/5] arm64: dts: mt8183: add scp node Date: Tue, 2 Jul 2019 14:05:28 +0800 Message-Id: <20190702060546.222934-6-pihsun@chromium.org> X-Mailer: git-send-email 2.22.0.410.gd8fdbe21b5-goog In-Reply-To: <20190702060546.222934-1-pihsun@chromium.org> References: <20190702060546.222934-1-pihsun@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190701_230629_567868_BC7C5A3B X-CRM114-Status: GOOD ( 10.30 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 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-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=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 Signed-off-by: Eddie Huang --- Changes from 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..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";