Received: by 10.192.165.148 with SMTP id m20csp436941imm; Fri, 27 Apr 2018 01:17:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoTIY1XoZPn0sNHbpN+WO3in93QvmftNrKyNLr8vLdUWS21V/1gURJ3Yd3FReap3gPNq1SC X-Received: by 2002:a63:a503:: with SMTP id n3-v6mr1275045pgf.19.1524817078263; Fri, 27 Apr 2018 01:17:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524817078; cv=none; d=google.com; s=arc-20160816; b=V5R85E4LSSbvQnjztPra7Shx2rwk2sFh+Cg7SOzJ5o/a0tBnJol1xAM1gyU/ZCq4QY ZpE+tYX7rdUFVEDk1ZyvsxOEjvBKjPKHHE5jDNrR20QqOc9QugdYiMXifBqV50HeZruC uwR8OzqwK+RkcgfmUIhwGHpmgt8mccIRuDWUaVVfmaWofSANiUZ+d2lUUq5KIW2z8jN+ F8BT+4Vh5M1EQbbOdYjYEydvh3pM4RHBgPSuMNjkKexanWLowO3vF8YkTJct6k6poenP bdqrLaSEx5+EgNSKovKepVwKPcM+USi2DJBeZlVAjfazhLEOug0twNbokQBXKxq6HyE3 vT6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=0npeK+P8hOCu8Y86RPHdkPOmKZvEl5AJkgGS+HcDwQw=; b=DN9QO8Z85aSDItn4ptyz3XMQNh44amtwhXv87HmEjW9Qik61DgnbKeO01FUBV8WeIM +mzMMWmwobPmtOUmaAlShXsuQxWZwTkHpRUOEqvu3DPaxg5VGJm/M1mVQENxxroSwn3b rlVyL7DVJxo/mRC+YsgerJX4AulINHshuP0bdNMHygVTdpxAeCptMnJdL+iavNVOn38C dHaN9dgt1jHLP70Rlmgh/rNApj7336/2pASA1kqy743dmfPdbw+bZPn+n38yXAj5satP DHmFQNyhUpYUwxJxP6z0q98Vhusjk6i13nsRCxcu4TARGa31rv2XAwf3GrwhqpU53YQe cVjw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o7-v6si798088pgc.381.2018.04.27.01.17.44; Fri, 27 Apr 2018 01:17:58 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757825AbeD0IQa (ORCPT + 99 others); Fri, 27 Apr 2018 04:16:30 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:58154 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1757595AbeD0IOy (ORCPT ); Fri, 27 Apr 2018 04:14:54 -0400 X-UUID: cf39828664ac428399fb0fcd5d7431b2-20180427 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 522808744; Fri, 27 Apr 2018 16:14:50 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Fri, 27 Apr 2018 16:14:48 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Fri, 27 Apr 2018 16:14:48 +0800 From: To: , , , , , CC: , , , , , Sean Wang Subject: [PATCH v2 0/6] add Mali-450 support to MT7623 SoC Date: Fri, 27 Apr 2018 16:14:41 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Wang v2: changes from v1 to v2: - Add Reviewed-by tag from v1 result - Split out the changes for dt-bindings .h from the changes for driver - Fix up the typo in g3dsys dt-bindings documentation v1: Hi, The series adds a required resource setup to allow Mali-450 to work on MT7623. This also can benefits other MediaTek SoCs having Mali-450 device. In order to prove the setup is proper, I also have added mediatek port to linux-lima at [1] and make a few of tests along with off-screen rendering [2][3][4][5][6][7] through mesa-lima [8]. All work correctly. [1] https://github.com/objelf/linux-lima/tree/mediatek-lima-4.16-rc5 [2] simple triangle: https://github.com/yuq/gfx/tree/master/gbm-surface [3] vertex shader uniform: https://github.com/yuq/gfx/tree/master/gbm-surface-move [4] multi varying: https://github.com/yuq/gfx/tree/master/gbm-surface-color [5] multi draw: https://github.com/yuq/gfx/tree/master/gbm-surface-draw [6] FBO: https://github.com/yuq/gfx/tree/master/gbm-surface-fbo [7] kmscube: https://github.com/yuq/kmscube [8] https://github.com/yuq/mesa-lima Hope these patches can help people working on BPI-R2. Sean Sean Wang (6): dt-bindings: gpu: mali-utgard: add mediatek,mt7623-mali compatible dt-bindings: clock: mediatek: add g3dsys bindings dt-bindings: clock: mediatek: add entry for Mali-450 node to refer dt-bindings: reset: mediatek: add entry for Mali-450 node to refer clk: mediatek: add g3dsys support for MT2701 and MT7623 arm: dts: mt7623: add Mali-450 and related device nodes .../bindings/arm/mediatek/mediatek,g3dsys.txt | 30 +++++++ .../devicetree/bindings/gpu/arm,mali-utgard.txt | 9 ++ arch/arm/boot/dts/mt7623.dtsi | 70 ++++++++++++++++ arch/arm/boot/dts/mt7623a.dtsi | 4 + drivers/clk/mediatek/Kconfig | 6 ++ drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt2701-g3d.c | 95 ++++++++++++++++++++++ include/dt-bindings/clock/mt2701-clk.h | 4 + include/dt-bindings/reset/mt2701-resets.h | 3 + 9 files changed, 222 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,g3dsys.txt create mode 100644 drivers/clk/mediatek/clk-mt2701-g3d.c -- 2.7.4