From patchwork Tue Feb 28 10:47:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 62424 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2940938wrd; Tue, 28 Feb 2023 02:51:47 -0800 (PST) X-Google-Smtp-Source: AK7set80wGO4abDIbSICL3e/Zdzv1fGYSSKghDTNMns7wgD4Aa3HaBydvIPbHo+QAiqPl9LMgkA0 X-Received: by 2002:a17:906:1954:b0:888:7ac8:c0f4 with SMTP id b20-20020a170906195400b008887ac8c0f4mr2298297eje.25.1677581507097; Tue, 28 Feb 2023 02:51:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677581507; cv=none; d=google.com; s=arc-20160816; b=yjYM7QDlSnC+XUJ7XqPhxZsrMp5MsZB5fLXtynNSUgqH1+mTqjauANdhHiUFzFK/9b raEc9It/qk4Y3QIb4HVcnv2GQH3zN25QfoQo2uS7k8k98ic1c44zMvwMmbLUbdULi4B9 p35L6cIXyQfKbY+QJ/ORARxqWXyczcOj0ZPop0vRaYAdarVm120pfo4maLGworgOWdGZ +hoHGBoXPeEKmf1zz5ZNVxJcywTGnZ9M7FvXuU1Qlu37uNQem5guvtSBnEjfpNzreyee VmvpVIgwjdJ71XBPK4W/U7+ikcLpfke/eYrKgMXaS3WUvbGoUmFpmAC7Cx6PaWInXqDH BCdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Pvz9jF9cHWYjKN5ELO4E3SBWLGlzgvK9sGZ7ydgZBkw=; b=CMpqxpiPm/xAvAl4RF2hURRfSWaS2QkIDqXqfTeTp6fcoWckYay1EjMNj2kBoEDHmx Wrt86n+kfhIStpscdlwrDHH5huNm4JSGL8qBOV3RrHfzPdcs0//kTjGFHHAVqIphTKbc oXY/07YSQJcyRZFy/PVi5r3tZ5MIk9pcvwkO/SHgWm9E7Tps+9HEZCrpSKhu0E+qIYPx wHiI8PJcNvK/n0fdi9sLOtC6FnfW2+yzQekM1syFAm2fYsTf3XmI7tsfvpKBRRM3pnff UeP59GQfvryNQWVI/VnAGykOsuMlUJhK9rdr6wD6Seo6GT8usLgjS5NS36eZCQjvBVvA p9TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=QozOyhjv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a5-20020a170906684500b008d89608d4a2si2294922ejs.204.2023.02.28.02.51.24; Tue, 28 Feb 2023 02:51:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=QozOyhjv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231419AbjB1KtG (ORCPT + 99 others); Tue, 28 Feb 2023 05:49:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231278AbjB1KsU (ORCPT ); Tue, 28 Feb 2023 05:48:20 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F014D2B60A; Tue, 28 Feb 2023 02:48:00 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (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: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 51F626602FD8; Tue, 28 Feb 2023 10:47:59 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677581279; bh=zNRcNap0DKbKus9H9hYNrxN03fzRsqShpCKFraZ9Guk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QozOyhjvhaL80WmrxET48lIxFyT9zy9c+/kvpqlZVra9vyXmqBWX+4+Dst89a9M3K 93U5FDEWYAGoZ4MfEhQVWTVncU03ZqXlkfBYM4Xh2a+KYuM1HfsGGKVuoJgMee5D/7 hGlKkf8tTgyic0FrhNcopub0dp/bYqbZfh863RaTVPS1Q+cc1tmdVtcShU7AHZ1TiM h3EEU8kAy1zPSD8AygJL8bJ/1LdR4VS6f5d2OFraMld1q6P9oK1g3Rpw0rbCr3UGem lB1cLcUl3jMLIZupv4XmKB7F2Pg+lbZZPqmyn6JVbAZrnBKQ1uTMPrDWCd68zRYjjH xO1+OPEONDDZA== From: AngeloGioacchino Del Regno To: matthias.bgg@gmail.com Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, angelogioacchino.delregno@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wenst@chromium.org Subject: [PATCH v3 16/18] arm64: dts: mediatek: mt8186: Add GPU node Date: Tue, 28 Feb 2023 11:47:39 +0100 Message-Id: <20230228104741.717819-17-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230228104741.717819-1-angelogioacchino.delregno@collabora.com> References: <20230228104741.717819-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759071706427217641?= X-GMAIL-MSGID: =?utf-8?q?1759071706427217641?= Add a GPU node for MT8186 SoC but keep it disabled. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai --- arch/arm64/boot/dts/mediatek/mt8186.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi b/arch/arm64/boot/dts/mediatek/mt8186.dtsi index a0d3e1f731bd..78ff8ba5718e 100644 --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi @@ -1075,6 +1075,23 @@ mfgsys: clock-controller@13000000 { #clock-cells = <1>; }; + gpu: gpu@13040000 { + compatible = "mediatek,mt8186-mali", + "arm,mali-bifrost"; + reg = <0 0x13040000 0 0x4000>; + + clocks = <&mfgsys CLK_MFG_BG3D>; + interrupts = , + , + ; + interrupt-names = "job", "mmu", "gpu"; + power-domains = <&spm MT8186_POWER_DOMAIN_MFG2>, + <&spm MT8186_POWER_DOMAIN_MFG3>; + power-domain-names = "core0", "core1"; + #cooling-cells = <2>; + status = "disabled"; + }; + mmsys: syscon@14000000 { compatible = "mediatek,mt8186-mmsys", "syscon"; reg = <0 0x14000000 0 0x1000>;