From patchwork Wed Jun 29 15:59:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 12900363 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 67458C43334 for ; Wed, 29 Jun 2022 16:12:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KtujBqKRPpKjvEEJnrFbuPOBaALzw0mpQ/AdaTnyLGo=; b=e7gAcNruVtHJiC ViRgSCQoOratCJQXUcFP85l9dJ1NSZ0LhIYZYLO03sNLAkXi6bDb1u1m6JZ1vKRGXey1AWLCVaRxz q+Fq0fHH32+dWzoUMUlIhRl3e13rRGZ8/v0kM1oCg/3WRzkGI/aREnxTIRbbMVZAj9CqK9w4t6AHv qIUoLd989213oaI0bVbXrlvRz6tAj3TH5esBcNu/BMzTMY/jiXQMYl52goAOV3NwyN4mX73fs9ACx Q85ZaADsR+70o1Cw8/Ob16Wdl8REGstM1QlYqdm7dS27ucO4i6pnNyf+xJtvCFrfgTwD19nk9laIi qELGv26+Ao9rf1J7SWBw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6aHZ-00CuOK-BV; Wed, 29 Jun 2022 16:11:13 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6a7D-00CohL-8M; Wed, 29 Jun 2022 16:00:32 +0000 Received: from notapiano.myfiosgateway.com (pool-98-113-53-228.nycmny.fios.verizon.net [98.113.53.228]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id E41E26601942; Wed, 29 Jun 2022 17:00:28 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1656518430; bh=KmNdf8Lk6p2VGyZm7KaMsN4jtyH8AqBYDyDnUr4zQv8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oFvFtIfBURHS3ZZHKugEn0//ZEcsdDsTrErP5vkTXbzEcdAbsOIwyazlkOyABX1he ER6r/KqucfUgDcuSYnU9gui98HdQI+juVDsi8+An/KpWk+5304ocKtlr4elPkS7uFb H4IFywTLAg/VtTN/8VzY9Wt+KUpYIdHwqDTVn1j6UBkytA8IjkxA+ahyoNR0gdUAp/ A8yqflPdo3ZoiU2GlKq3/CMnVMmjal7PBN4UarjnQQxnSsV9362Y5zNWqnwNCQrdIq dk45ILOlvXooKcWslEcJrX4tUR+ilpKGTBte1kptsMEfCQw+KvR/36CrNWI8pdXoB1 ns3qT56GKTOvw== From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= To: Matthias Brugger Cc: AngeloGioacchino Del Regno , kernel@collabora.com, Chen-Yu Tsai , =?utf-8?b?TsOtY29s?= =?utf-8?b?YXMgRi4gUi4gQS4gUHJhZG8=?= , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v4 18/19] arm64: dts: mediatek: asurada: Enable SCP Date: Wed, 29 Jun 2022 11:59:55 -0400 Message-Id: <20220629155956.1138955-19-nfraprado@collabora.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220629155956.1138955-1-nfraprado@collabora.com> References: <20220629155956.1138955-1-nfraprado@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220629_090031_513889_87EB09FB X-CRM114-Status: GOOD ( 11.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable support for the SCP co-processor present on MT8192. It is used as part of the video encoding and decoding processes. A region of memory is carved out for its use, and remoteproc setup for communication with the ChromeOS EC. Signed-off-by: NĂ­colas F. R. A. Prado Reviewed-by: AngeloGioacchino Del Regno Tested-by: Chen-Yu Tsai --- Changes in v4: - Added this patch .../boot/dts/mediatek/mt8192-asurada.dtsi | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi index 7b89f6e552c5..a5625b3cb317 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi @@ -105,6 +105,12 @@ reserved_memory: reserved-memory { #size-cells = <2>; ranges; + scp_mem_reserved: scp@50000000 { + compatible = "shared-dma-pool"; + reg = <0 0x50000000 0 0x2900000>; + no-map; + }; + wifi_restricted_dma_region: wifi@c0000000 { compatible = "restricted-dma-pool"; reg = <0 0xc0000000 0 0x4000000>; @@ -680,6 +686,12 @@ pins-pcie-en-pp3300-wlan { }; }; + scp_pins: scp-pins { + pins-vreq-vao { + pinmux = ; + }; + }; + spi1_pins: spi1-default-pins { pins-cs-mosi-clk { pinmux = , @@ -735,6 +747,20 @@ &pmic { interrupts-extended = <&pio 214 IRQ_TYPE_LEVEL_HIGH>; }; +&scp { + status = "okay"; + + firmware-name = "mediatek/mt8192/scp.img"; + memory-region = <&scp_mem_reserved>; + pinctrl-names = "default"; + pinctrl-0 = <&scp_pins>; + + cros-ec { + compatible = "google,cros-ec-rpmsg"; + mediatek,rpmsg-name = "cros-ec-rpmsg"; + }; +}; + &spi1 { status = "okay";