From patchwork Wed Nov 15 15:24:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 10059753 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 75ABC60596 for ; Wed, 15 Nov 2017 15:25:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6595729F76 for ; Wed, 15 Nov 2017 15:25:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5ABD22A035; Wed, 15 Nov 2017 15:25:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8BA4329F76 for ; Wed, 15 Nov 2017 15:25:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=LERKzJKrvFuViwjPStMdr4cI6vpAxvBfRXHEPZfnVvA=; b=X8SSkvaafL+9lNhrhEL3JfvmPE M8r51arKmHiJeZPhJ33/yiKK3kITTrFuELeF92zjffCaeklJ+xNFs1BR/WsNFfIpCeYdnousEjcR2 WPwnBc9j/iJWkExRi50mB8kwKFkoa92UPDOfLk214n76eEDnl7ksoQQDUH8G2XP+kV0y9JWs1nDNJ j1NB/oDXUhlxeFJSsP7AZKYj97w3aXqzhvoNuTkFLNkh+6hxefZ+yVQlGxBxBQSxlGY9ylj2WRB5e Okg0XDyd/5OTGpirGlbsf5Y7l7luxRUO+RmoI9QsPxG9XK2znU7m8yRY23zSphWywesIbpyZVKzPp kM10EHdA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eEzZ6-00052z-Oy; Wed, 15 Nov 2017 15:25:24 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eEzZ0-0003Nl-DU for linux-mediatek@lists.infradead.org; Wed, 15 Nov 2017 15:25:22 +0000 Received: by mail-wm0-x244.google.com with SMTP id v186so3714853wma.2 for ; Wed, 15 Nov 2017 07:24:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=WMKl5E1x/yD6AdKtWZ4TmfeUUFckrsRB+18v5BNJvxM=; b=Tqv/Ks/PBUpfwSkkJL6dCHD9e7nH2x3HpH1bj4CJR6RIRJBC0jbm1PIuJLHY+hOYAo gfagtMM6HrtrmpNt1z37MFr5qQkEe8UjDKx3UlvqB5vuuRYm0cmb3aR7nU+vBJsjUDV3 DmzYOf2m831gUwJ4aqN6fgtFWKNCsegsFuTBo93TFdIzpK6Qz32MFTr70QmtW8rcz++N Jd+6U/WHbwHAynFhr+2NGLwd1ov38DrG1RRxxiWMDWBIpum2EFpl+cXvHKtAYU7W8gEk c7+LjUMpdTJgOfSgvKeV4ZtnFbHTM/86mltSat4dWi2GTxDJ8Rw3DC4FVZc06BxpOKw/ SL3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=WMKl5E1x/yD6AdKtWZ4TmfeUUFckrsRB+18v5BNJvxM=; b=FFS8UD7gQwOqjZd0xM5k4pQQPfd6SBVAygk2QBxATbDhXooCN3Z42qSk4srtsPdPmP qwJyg2EQj26idnK/1n8UGRsCYHN4hGUP6BoItSa9v5CE+qZyT2SRq5lITcQNZCatxXDo h/f0l3BYKPyEFCdPH9uyimmtwHDFPOzsMg+cPrybOxdEMoAK19IqO6fC2yefy+wTEEvQ XoQerqO9izG7M+m1s4CGTaGjwy+pLTtQkXX/jX5PRDeDIy4sTXIol1PMYpk445fHXQV+ gyYnN2OAZLebw6/SuUxp+ENxVH1j0vWTXSZ0+B6FfT2Pu0B3aUaeUu957kGZ6lw6Llyn ZxJQ== X-Gm-Message-State: AJaThX60cWC2qKBL20B1f/HsSxDYy04Vr1tb3NW3LKZB5I3sqra7S5FS +XIhK3nwCXG8zrWPKDg1zZRodLo= X-Google-Smtp-Source: AGs4zMbLQ8qSa+CAb9DeTDtNpuso6G7Zvfox12QXWIaDH96ZXfRnr5cQUBTus1iqFcs91jse+ihd7Q== X-Received: by 10.28.30.151 with SMTP id e145mr11019176wme.8.1510759496653; Wed, 15 Nov 2017 07:24:56 -0800 (PST) Received: from groucho.site (ipbcc0ce42.dynamic.kabel-deutschland.de. [188.192.206.66]) by smtp.gmail.com with ESMTPSA id s12sm51547104wrc.89.2017.11.15.07.24.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Nov 2017 07:24:56 -0800 (PST) From: Ulrich Hecht To: linux-mediatek@lists.infradead.org Subject: [POC 15/16] arm64: dts: mt8173: add GPU device Date: Wed, 15 Nov 2017 16:24:22 +0100 Message-Id: <1510759463-30201-16-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510759463-30201-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1510759463-30201-1-git-send-email-ulrich.hecht+renesas@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171115_072518_805114_5777C24D X-CRM114-Status: UNSURE ( 6.90 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ulrich Hecht , mbrugger@suse.com, magnus.damm@gmail.com, laurent.pinchart@ideasonboard.com, dri-devel@lists.freedesktop.org MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 41 ++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index f454efa33..43775a6 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi @@ -279,6 +279,11 @@ cooling-device = <&cpu2 0 0>; contribution = <1024>; }; + map@2 { + trip = <&target>; + cooling-device = <&gpu 0 0>; + contribution = <2048>; + }; }; }; }; @@ -884,6 +889,42 @@ }; }; + mfgsys: mfgsys@13fff000 { + compatible = "mediatek,mt8173-mfgsys", "syscon"; + reg = <0 0x13fff000 0 0x1000>; + #clock-cells = <1>; + }; + + gpu: mfgsys-gpu@13000000 { + compatible = "mediatek,mt8173-gpu"; + reg = <0 0x13000000 0 0xffff>, <0 0x13fff000 0 0x1000>; + power-domains = <&scpsys MT8173_POWER_DOMAIN_MFG_ASYNC>, + <&scpsys MT8173_POWER_DOMAIN_MFG_2D>, + <&scpsys MT8173_POWER_DOMAIN_MFG>; + clocks = <&apmixedsys CLK_APMIXED_MMPLL>, + <&topckgen CLK_TOP_MEM_MFG_IN_SEL>, + <&topckgen CLK_TOP_AXI_MFG_IN_SEL>, + <&topckgen CLK_TOP_AXI_SEL>, + <&topckgen CLK_TOP_MEM_SEL>, + <&topckgen CLK_TOP_MFG_SEL>, + <&topckgen CLK_TOP_MMPLL>, + <&clk26m>; + clock-names = "mmpll_clk", + "mfg_mem_in_sel", + "mfg_axi_in_sel", + "top_axi", + "top_mem", + "top_mfg", + "top_mmpll", + "clk26m"; + interrupts = <0 217 IRQ_TYPE_LEVEL_LOW>; + interrupt-names = "RGX"; + status = "disabled"; + #cooling-cells = <2>; + #cooling-min-level = <0>; + #cooling-max-level = <3>; + }; + mmsys: clock-controller@14000000 { compatible = "mediatek,mt8173-mmsys", "syscon"; reg = <0 0x14000000 0 0x1000>;