From patchwork Mon Dec 10 13:22:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10721287 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 82A8B112E for ; Mon, 10 Dec 2018 13:23:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 727DB2A455 for ; Mon, 10 Dec 2018 13:23:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 70F5A2A462; Mon, 10 Dec 2018 13:23:21 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 224402A475 for ; Mon, 10 Dec 2018 13:23:21 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=Du049S9bP8FptG5Gs/uDQUEIY+nJP6SejMjyZ3/p5Iw=; b=K/EJvAV+s87PmJ 7FetgYeMXVBRHRpAKjVBpnLIpyBznaANTwW3o1jXaNL8qg+e2EFgQhyTzswqVDUdQtAZZbJTjcfvi FL1WoUNLPJkqG46Ticnt0O8/vGO9Ew5diE5XJ7P9LVi8sm3AvW3TIv9Wh/1LWkYF1oLLssB3mTRXz iDI2IEUp7Y4JmiT+W1egolb9CWDV29X6zloeh0QVzPoytQ0CbG5E8lGVRSk60DPvvpxykSqqhmxNW KxCyQ+ABgRT83N6JEdzrS16uXz2wZt0D+7JQvvaRPxTENaLcQDryqvwt/wIVyscYl01mjdbsnMi1u VBLRvSH82Kt9f2JgOLug==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gWLWh-0005gw-QL; Mon, 10 Dec 2018 13:23:11 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gWLWF-0005Cv-MB for linux-arm-kernel@lists.infradead.org; Mon, 10 Dec 2018 13:22:46 +0000 Received: by mail-wr1-x442.google.com with SMTP id x10so10438047wrs.8 for ; Mon, 10 Dec 2018 05:22:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wPFj6MLu/M8G4PTHe2LZz+FX5iaOvPF1UuFtv4gFdoM=; b=iooce9HIO/IlQvwj9SUjEVZnfs4JA8YOgJDRilfuZl6auKf8xTrYC9R5wRQ+C0bHxX ZoFdLXyU3el2I9dN9udnFGLs4UxW6Gg5ijO2IoI9UK+vPkV3zubFGZUNq3RRD7yR0si5 66F9q1JZHKxsUODKLPhESXtIAOv+SDnoCVVfNIezW2czQtrLsbRQIs2xotIRdGhS1Wl1 xdUkmfyWQD++JJNL9TQVCq08kwEK4ZRHGDCJ6oaYtwoRRXp3otKtUoEHPJBCX7gWrcSM Ewwf5pqG3wqhf9DckZw2fqS9rqIWcZ271KOBsQHQ/Y5GvgJdW2lwVzUWjy+zssTlFyef 1TiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wPFj6MLu/M8G4PTHe2LZz+FX5iaOvPF1UuFtv4gFdoM=; b=FWE6fPjZ0TLrgGUGGNkPkWwhW0j7AFKtyHtbnmAN4Y26V1vC+kKV3s2it+xjvT0ose FzuHxI1JAe6ecd+BiivJ8FTH59vYo1n66Wmeat+EPkXfgxGmH1gms9KqyktaI4WjnuMW HVnq4j/9EY8F/7q30Vom+p3o/koZZBNROaE8xq879phr0Y7aLGSmufGZILRRF3GQ0ULH VSWZV9Sz0ASIGfGpp4HJHum/exGOfoEmzU9Cea+eWxhXpMP3Q2fgASGEvUmAJImRiStN 6oD3guugBSoBhux5eKhRZTP4TAMc8bXJ6MV9Am6zaBTStM8e64oHyGa2K9pR2E868EX4 pLMA== X-Gm-Message-State: AA+aEWaMpLBn2U7XLL4alijw0m3Z/y+VK85v+lxvjar+2cgWCIaN7RF1 ir28wfhutMVnkSAjFn0xPTFwtA== X-Google-Smtp-Source: AFSGD/VMEYq9rPP0ewBLKlh/rB6emjkoSuKndni9TE55hTZ/5s2L+oaavtKw/KDurpcOrw1X+emiDw== X-Received: by 2002:adf:92a4:: with SMTP id 33mr9607298wrn.11.1544448151513; Mon, 10 Dec 2018 05:22:31 -0800 (PST) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id l3sm11208424wru.36.2018.12.10.05.22.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 10 Dec 2018 05:22:30 -0800 (PST) From: Neil Armstrong To: devicetree@vger.kernel.org, khilman@baylibre.com Subject: [PATCH 1/2] dt-bindings: gpu: mali-midgard: Add resets property Date: Mon, 10 Dec 2018 14:22:26 +0100 Message-Id: <20181210132227.29262-2-narmstrong@baylibre.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181210132227.29262-1-narmstrong@baylibre.com> References: <20181210132227.29262-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181210_052243_751530_D5E02896 X-CRM114-Status: GOOD ( 11.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, Neil Armstrong Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Amlogic ARM Mali Midgard requires reset controls to power on and software reset the GPU, adds these as optional in the bindings. Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt b/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt index 18a2cde2e5f3..24d83ec952f1 100644 --- a/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt +++ b/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt @@ -37,6 +37,8 @@ Optional properties: - operating-points-v2 : Refer to Documentation/devicetree/bindings/opp/opp.txt for details. +- resets : Phandle to the reset controls for the Mali Midgard device. + Example for a Mali-T760: From patchwork Mon Dec 10 13:22:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10721293 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B2009112E for ; Mon, 10 Dec 2018 13:23:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9EFD329A94 for ; Mon, 10 Dec 2018 13:23:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9CAEE29AA8; Mon, 10 Dec 2018 13:23:39 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 2723A28668 for ; Mon, 10 Dec 2018 13:23:39 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=Z+WopL2dPluRK3NLNUs8b4she2iVuPG0jjEoCq2uH1U=; b=myAjsrt4Gb+YmB 7SE4pk0WhIyVITRGvQYryEW4UyNjVdOUYzJyMN9JJuWS0ouKi0JwKwPs4KyHUzMJ7geXGmQYWh/uv C7hZRL/naf8KpGtW6CU0XyXnBYh70APnnjuZ5hnmqipjp+K0Wouj/q1C9F+HvJ7SF3nqeJFfaKU0V CCdrZOL9wZ57AHd8Zos5q02wVfFnTjPZh9H8z3cXZsDI1YlETu9pKiVjEtFHbhoDwewXNNY4UkQBe Sq0EndDplDse/fJ8wA4DvpHLaCTZT/EvaDd5wk7SHI+AN/wyQocgUnAjI62NNV8Oo2Mm3CSdOnqC7 wU2zemmuWUNhCgypQjDw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gWLX2-00062O-My; Mon, 10 Dec 2018 13:23:32 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gWLWG-0005Cw-Rp for linux-arm-kernel@lists.infradead.org; Mon, 10 Dec 2018 13:22:48 +0000 Received: by mail-wm1-x342.google.com with SMTP id a18so11267252wmj.1 for ; Mon, 10 Dec 2018 05:22:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uBjdffJIS6e81RZXl0D/cVk1PRz+k7NxIO5RxlBhn+w=; b=ihkzGFbddzBhg7/l98TR3HElWWrO7AG3D5dq2YA45xQZqkZ8mucv9c45zqYilltaHA qdPCJYzke/x2SyUCfzPW351/KNQ4i853vaPH9lvPQ/pM/ynE6nH8tsi9+KS+mAsEnVmf A0q0qvIzGpxE9KFTIRP/LJ+rnfGrfX/GgnJXulyu5nJ1xBNjewiuErZPMASk0QwUU3pz iCxesQcHicy3VTNhEB9MZHosmhlAb4vz55RyDasb1KF9TC4U6SXp+D7Pn6mP7RqXpXtJ Dsf/vLX2Up+Oby27kPdZLlDWu2SLnWd3XX8lPD/vrAYUKoq5iVbT9nxJJwr7ki+wDR6V 0EKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uBjdffJIS6e81RZXl0D/cVk1PRz+k7NxIO5RxlBhn+w=; b=NugN8EccJoPBfd2JatCTOqU3OKuqWerzusQpOwmpWRXTMilSXa51uhuMrnKtnCaCYU eZTJTbP/BldSnN65k6cpxOOZvw4eWG5zgg81llekM9Zjivc5NUcBUGnoIwpFNNWh+Xnj v6dX4GmEOFXH26x7fQwaUpmj/ymQCxf6fPYJo9YsO7NHeMWEkGSMwo8+2RRF/h9w9Qav hEaZFfEURQ7B4N+riXL3EiLQLaf0jhVPSQHLIbf25pgAWdBPAn9Kx+St+iCs8NohUrIY oNNJtMNybMqRjYH8/PlAeIpAXUrSGqLNcSUI+PyF0Xiy33XPh/T3MGNn9BZvsFbsrMCj fRxg== X-Gm-Message-State: AA+aEWY6R43rKBxV5P1cBmpjHd36/wjpm88jn0moG7Yygt0zbCxZl1Sz Ig3Vde17i/6GkFag2JKC3vbkjg== X-Google-Smtp-Source: AFSGD/VNKgkJdWqMIdXGD3Xop2viNm6jJ/VTo9k/ZE2rcJTd/CFg0jW+zJt4sl4Ns8NHop4RRUZdMQ== X-Received: by 2002:a1c:ad43:: with SMTP id w64mr10122640wme.32.1544448152953; Mon, 10 Dec 2018 05:22:32 -0800 (PST) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id l3sm11208424wru.36.2018.12.10.05.22.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 10 Dec 2018 05:22:31 -0800 (PST) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH 2/2] arm64: dts: meson-gxm: Add Mali-T820 node Date: Mon, 10 Dec 2018 14:22:27 +0100 Message-Id: <20181210132227.29262-3-narmstrong@baylibre.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181210132227.29262-1-narmstrong@baylibre.com> References: <20181210132227.29262-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181210_052244_925681_A5845EDD X-CRM114-Status: GOOD ( 13.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Christian Hewitt , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Christian Hewitt The Amlogic Meson GXM SoC embeds an ARM Mali T820 GPU. This patch adds the node with all the needed properties to power on the GPU. This has been tested with the work-in-progress PanFrost project aiming support for ARM Mali Midgard and later GPUs. Signed-off-by: Christian Hewitt Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gxm.dtsi | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi index 247888d68a3a..35e59d390903 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi @@ -91,6 +91,33 @@ reset-names = "phy"; status = "okay"; }; + + mali: gpu@c0000 { + compatible = "amlogic,meson-gxm-mali", "arm,mali-t820"; + reg = <0x0 0xc0000 0x0 0x40000>; + interrupt-parent = <&gic>; + interrupts = , + , + ; + interrupt-names = "gpu", "mmu", "job"; + clocks = <&clkc CLKID_MALI>; + resets = <&reset RESET_MALI_CAPB3>, <&reset RESET_MALI>; + + /* + * Mali clocking is provided by two identical clock paths + * MALI_0 and MALI_1 muxed to a single clock by a glitch + * free mux to safely change frequency while running. + */ + assigned-clocks = <&clkc CLKID_MALI_0_SEL>, + <&clkc CLKID_MALI_0>, + <&clkc CLKID_MALI>; /* Glitch free mux */ + assigned-clock-parents = <&clkc CLKID_FCLK_DIV3>, + <0>, /* Do Nothing */ + <&clkc CLKID_MALI_0>; + assigned-clock-rates = <0>, /* Do Nothing */ + <666666666>, + <0>; /* Do Nothing */ + }; }; &clkc_AO {