Received: by 10.192.165.156 with SMTP id m28csp1061646imm; Wed, 18 Apr 2018 03:26:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+OP/afuQzULv1OBEyVB1Obc09SFM4k5px+eKRl5Yt4puDyo8alOEEH4CYkBlWls4Y/hR+t X-Received: by 10.98.30.4 with SMTP id e4mr1480915pfe.212.1524047219499; Wed, 18 Apr 2018 03:26:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524047219; cv=none; d=google.com; s=arc-20160816; b=VpZGfsNav5kHGM9PtwyOmNYs/llyM0+2VCMtjIOjdWk4L8FbfdI7DeMXcEbiTRXJLp o0eW+679BUNxmW87N3+HlwFWsJ6nxagEGGsEOzCcYmej5BPl/jJONrsD/BuTo0lbSWNJ AjIRTSX/g6thF7rdV7uVRR/DqZiB4K8FYpRQrtHCqRfAGatq5Ie5GTR6mAkbqs+DTbF2 LUtqgg21KtTdW61v+pIi7u9Yx1NtopqakMf9wbAzwOCOf2Gs9ubLvg0d4sR/QfMt1GuJ Le30VWaJHWQUnwGoFiavDOMTNaHRrIj/Jlr3qHBG9LpWD98oAu7QqdkqHMNL0FoKlxxp AQNw== 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=XCNno0t2OjZiE4DnfDeBOhGznb2g+IQ7y9ny1woACWY=; b=zKcijKWfmMYDhQPKA5447wDlIPkK3jAMXT9Bu+5DBli7DchTW+KW7GGw21q/rKs5u5 GWW24v5AmfzjT1X13ZUWB7/OpvCb2LeaioNP7XU4LV/J3+cJFP67JFwK15hvYxz47SoL mXZp2BX+kpe0GY7DnZQCFOznyDaT8NJR1rbSkapobo73aLKAYNpbmHWEc99aOvOhMtYm 2gf4BmpxaZ/QXwiPfG9gCcMdtSKkXqUXhOE5auq47Bcpr7bCHtdq667Tn5wzSwzZd+6l +Fncgp8FrcEchZM6+U3CBnwoTL6HpKZLrv36u4IIdOseWctIKiyQVP+PdlT3kRo6tXtK 4osQ== 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 y87si889266pfi.141.2018.04.18.03.26.45; Wed, 18 Apr 2018 03:26:59 -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 S1753942AbeDRKZM (ORCPT + 99 others); Wed, 18 Apr 2018 06:25:12 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:65195 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1753841AbeDRKZE (ORCPT ); Wed, 18 Apr 2018 06:25:04 -0400 X-UUID: f02bb6bcf8d149c9b17eb2464045e4c6-20180418 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 309729756; Wed, 18 Apr 2018 18:25:00 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 18 Apr 2018 18:24:58 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Wed, 18 Apr 2018 18:24:58 +0800 From: To: , , , , , , , CC: , , , , Sean Wang Subject: [PATCH v1 0/4] add Mali-450 support to MT7623 SoC Date: Wed, 18 Apr 2018 18:24:52 +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 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 (4): dt-bindings: gpu: mali-utgard: add mediatek,mt7623-mali compatible dt-bindings: clock: mediatek: add g3dsys bindings 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