Received: by 10.192.165.156 with SMTP id m28csp1061825imm; Wed, 18 Apr 2018 03:27:14 -0700 (PDT) X-Google-Smtp-Source: AIpwx48863QfXTS4VriRU/ovypsTfBs1fu5Tz5kTxunYPx0+BaD8j2ZfVdA/qv9ENTKrK5IAVUT9 X-Received: by 10.99.127.86 with SMTP id p22mr1314518pgn.306.1524047234090; Wed, 18 Apr 2018 03:27:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524047234; cv=none; d=google.com; s=arc-20160816; b=miW4J65GK4spCi6h5SWlvfJADGNgckcPL5Lxo2Nk7xQgtjCP/a3wFGVuQZDbZmOkuA fBLfJClUk1DnGIryXBj2eXcD07W/z+jZBrNgRCJneR1TZ1drzNanEAIHhSqip/6srpjb /VPRtdvmm47nTjDScwedOIrNrjsQiAyCc9dpIrShhKgSnrvNexQQSPYfK7FgC9cVQae9 xyJYmgVgIc16VsygQwUS0irP6hVDVbtGZ3Y9S7VulzBlujlp1RpbQh0d1psd8WKLnzs2 x0r9fYOVAsAwzv5FMfFP9OPwBFO8ZtLwjj+JCMfhSvPkTT25rerYfWaB/4H7diY2zXgq wPWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=+dADo1ib4ZsdfJiUDejAlcgglVPfT+UMZNodX2s2yh8=; b=k06HFLUM6MZTC+ITmTZqvsjO7hnfmmDOMxLpgT80cCFHqlVFkVATd/Vb2g7TYfQ+Sf 7/g5JAlsrPRR5pHrfwFYtP7esTQr2GB6yzafpQxIhaHY0PtSZtzdfCv+iuwyxl78Ns8Q iQfI/ijy1G2D3wjzea5fz/S5hQkVoC0aikTW8Me0ixPfqIldfVj/LNYN7IaED0B8qrVO FDGGQEjXXlCMi4Ix0NO+4D1nJozSZlv2GWpHxSyGsDzMyA6WcKyof6Pe9oLwzIYYlIy3 wEbki8nOHWqIVOI7gLloM3uVGK9ykIYCc+N5seZNrY9nyjpZLImwmecneycVEtYbsyff Pykw== 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 97-v6si938913ple.426.2018.04.18.03.27.00; Wed, 18 Apr 2018 03:27:14 -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 S1753923AbeDRKZL (ORCPT + 99 others); Wed, 18 Apr 2018 06:25:11 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:64856 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1753840AbeDRKZE (ORCPT ); Wed, 18 Apr 2018 06:25:04 -0400 X-UUID: ca0098b149d6499b9ae74950b608dd61-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 680469751; 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:59 +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 4/4] arm: dts: mt7623: add Mali-450 and related device nodes Date: Wed, 18 Apr 2018 18:24:56 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: 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 Add nodes for Mali-450 device, g3dsys device providing required clock gate and reset control and larb3 offering an arbiter through iommu for controlling access to external memory requested from Mali-450. Signed-off-by: Sean Wang --- arch/arm/boot/dts/mt7623.dtsi | 70 ++++++++++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/mt7623a.dtsi | 4 +++ 2 files changed, 74 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index d1eb123..ace92b3 100644 --- a/arch/arm/boot/dts/mt7623.dtsi +++ b/arch/arm/boot/dts/mt7623.dtsi @@ -274,6 +274,17 @@ clock-names = "system-clk", "rtc-clk"; }; + smi_common: smi@1000c000 { + compatible = "mediatek,mt7623-smi-common", + "mediatek,mt2701-smi-common"; + reg = <0 0x1000c000 0 0x1000>; + clocks = <&infracfg CLK_INFRA_SMI>, + <&mmsys CLK_MM_SMI_COMMON>, + <&infracfg CLK_INFRA_SMI>; + clock-names = "apb", "smi", "async"; + power-domains = <&scpsys MT2701_POWER_DOMAIN_DISP>; + }; + pwrap: pwrap@1000d000 { compatible = "mediatek,mt7623-pwrap", "mediatek,mt2701-pwrap"; @@ -305,6 +316,17 @@ reg = <0 0x10200100 0 0x1c>; }; + iommu: iommu@10205000 { + compatible = "mediatek,mt7623-m4u", + "mediatek,mt2701-m4u"; + reg = <0 0x10205000 0 0x1000>; + interrupts = ; + clocks = <&infracfg CLK_INFRA_M4U>; + clock-names = "bclk"; + mediatek,larbs = <&larb3>; + #iommu-cells = <1>; + }; + efuse: efuse@10206000 { compatible = "mediatek,mt7623-efuse", "mediatek,mt8173-efuse"; @@ -680,6 +702,54 @@ status = "disabled"; }; + g3dsys: clock-controller@13000000 { + compatible = "mediatek,mt7623-g3dsys", + "mediatek,mt2701-g3dsys", + "syscon"; + reg = <0 0x13000000 0 0x200>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + + larb3: larb@13010000 { + compatible = "mediatek,mt7623-smi-larb", + "mediatek,mt2701-smi-larb"; + reg = <0 0x13010000 0 0x1000>; + mediatek,smi = <&smi_common>; + mediatek,larb-id = <3>; + clocks = <&clk26m>, <&clk26m>; + clock-names = "apb", "smi"; + power-domains = <&scpsys MT2701_POWER_DOMAIN_MFG>; + }; + + mali: gpu@13040000 { + compatible = "mediatek,mt7623-mali", "arm,mali-450"; + reg = <0 0x13040000 0 0x30000>; + interrupts = , + , + , + , + , + , + , + , + ; + interrupt-names = "gp", "gpmmu", "pp0", "ppmmu0", "pp1", + "ppmmu1", "pp2", "ppmmu2", "pp"; + clocks = <&topckgen CLK_TOP_MMPLL>, + <&g3dsys CLK_G3DSYS_CORE>; + clock-names = "bus", "core"; + power-domains = <&scpsys MT2701_POWER_DOMAIN_MFG>; + mediatek,larb = <&larb3>; + resets = <&g3dsys MT2701_G3DSYS_CORE_RST>; + }; + + mmsys: syscon@14000000 { + compatible = "mediatek,mt2701-mmsys", "syscon"; + reg = <0 0x14000000 0 0x1000>; + #clock-cells = <1>; + }; + hifsys: syscon@1a000000 { compatible = "mediatek,mt7623-hifsys", "mediatek,mt2701-hifsys", diff --git a/arch/arm/boot/dts/mt7623a.dtsi b/arch/arm/boot/dts/mt7623a.dtsi index 0735a1fb8..a42fd46 100644 --- a/arch/arm/boot/dts/mt7623a.dtsi +++ b/arch/arm/boot/dts/mt7623a.dtsi @@ -21,6 +21,10 @@ power-domains = <&scpsys MT7623A_POWER_DOMAIN_ETH>; }; +&mali { + status = "disabled"; +}; + &nandc { power-domains = <&scpsys MT7623A_POWER_DOMAIN_IFR_MSC>; }; -- 2.7.4