From patchwork Sat Dec 8 17:12:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10719549 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 47E6E1750 for ; Sat, 8 Dec 2018 17:14:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2B3F5295A8 for ; Sat, 8 Dec 2018 17:14:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1F95C2A076; Sat, 8 Dec 2018 17:14:49 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable 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 C4FE6295A8 for ; Sat, 8 Dec 2018 17:14:48 +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=0varxy8a7cI3KZ9IW7sp4zG3LkR4ga7AwdVsCDTQG3g=; b=pLNPm6W/oRdVoE /Stt/VVh3lTS5uT5U121lJQfa6i9EnHtLGZBgSEmmo2dR/YCqYoqxNDsWPkuitIIWOCAHQ0EwGOat LCL+stWktXXp0VvRV12CUL1Xxjn11MOAmp79gajOQpY9AFZuW051uATQInkgilWAEdglZgCHpHyGE 9Ov8MoYmsvCfyNEXoWTaBCnCCIvlmkDU9IbM6Y58Js85kjJ3hOEB0XzbAsJZJibiOVyq+2ZL+8j1K 44CvdumjPi9IR7nwAkGf3qtnvdKE2U+jUNK2G6YDblmegTLiStQn6l/OsQ1psoYAmXHiVngPhoP0X wsDHlW35iwF3NYwTvoKQ==; 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 1gVgBj-00057y-7C; Sat, 08 Dec 2018 17:14:47 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gVgAP-0003bi-A0; Sat, 08 Dec 2018 17:13:32 +0000 Received: by mail-wm1-x343.google.com with SMTP id z18so7124328wmc.4; Sat, 08 Dec 2018 09:13:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ufWx9PbgvHd9u7lf9dIhnJP1Zesf1aI0AT2ABxZ8FWo=; b=JCUbcy8fbbriT57TP9EbGaiaRen5dOCaEiISWaE3Vds2FvaKPFRRP/8G0KisekQrml seG1pJZd4ccrt+6vjQ7L16FxkbcsLYdIy0+xA3TwGVq2xYQCVbp+D5Sy78X0JzCdpio4 l3StGo6j5L9BBFtrRRYXn+fay+aYMqAv33V/K/ijB/KnBjxFXHKkkUgPoEtxrCoVPgfj IJkQXg90NqfYeqOcUxGDLqCrJkIUdUqWXDVVaVU9ZPo4Rt3kchilKMxLvbPn3MTWrSXP UPxq4duDD0bEprwNPxWZVPztSnw1/3bcDCpE380NO+hCz/4cDCcRyOj9xKsq8V2b+1Oz VuPA== 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=ufWx9PbgvHd9u7lf9dIhnJP1Zesf1aI0AT2ABxZ8FWo=; b=YABUhgj0h0u25L8MDaDwVNNrANcNG3bO2LWmIXYKuIbtz9AEBKEPcl97P1U8tWibLZ l4Wtci/mtooWiUZiyjcIkWNFlbJGuF85bd7PJ3YR2zWD84iUsET3llVjjpGqAE5S4myZ ofp/EZtbryaGGS1zgHqmoBqvvuW6Ph4gnu4EuNOUWdI4TcEJYi57l9YDcfGWD4mWkCtO F574OjZYYUgBBRViE6kUF9nhqCaIB9Ms8VQHTy07EJs3PXZniSd1ooC21H4CuDX8Uaox OVdbvGe2BVkqoR6kzxicfJ/pnzbLUcKewNmpbEXPzxWg+oty5qCaAYcJWWZ4YY6h0buw KGcA== X-Gm-Message-State: AA+aEWbQdEcdAG/8jkQzPAtztELtxTKJA/ZEoziHEo3IsBT6cupxT87i uqlEmQg5hWXa8nPvPGDw1Y/hsvZ7 X-Google-Smtp-Source: AFSGD/V6NFAWTfGZ5JvBUa068LACjLxWCimV72QfskWrn1em9hf1ynaHN1tLJ6ZdJ5uUDtKMbv20TQ== X-Received: by 2002:a1c:650b:: with SMTP id z11mr5656692wmb.23.1544289193388; Sat, 08 Dec 2018 09:13:13 -0800 (PST) Received: from blackbox.darklights.net (p200300DCD73FBA00428D5CFFFEB99DB8.dip0.t-ipconnect.de. [2003:dc:d73f:ba00:428d:5cff:feb9:9db8]) by smtp.googlemail.com with ESMTPSA id r12sm4995851wrq.3.2018.12.08.09.13.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Dec 2018 09:13:12 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, jbrunet@baylibre.com, narmstrong@baylibre.com, khilman@baylibre.com, robh+dt@kernel.org Subject: [PATCH 4/5] ARM: dts: meson8: add the Mali-450 MP6 GPU Date: Sat, 8 Dec 2018 18:12:46 +0100 Message-Id: <20181208171247.22238-5-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181208171247.22238-1-martin.blumenstingl@googlemail.com> References: <20181208171247.22238-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181208_091325_760102_8B51685E X-CRM114-Status: GOOD ( 11.54 ) 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: devicetree@vger.kernel.org, sboyd@kernel.org, mturquette@baylibre.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Martin Blumenstingl , 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 Add the Mali-450 GPU and it's OPP table for the Meson8 and Meson8m2 (the latter inherits meson8.dtsi). These SoCs have a Mali-450 GPU with six pixel processors. The OPP table is taken from the 3.10 vendor kernel which uses the following table: FCLK_DEV7 | 1, /* 182.1 Mhz */ FCLK_DEV4 | 1, /* 318.7 Mhz */ FCLK_DEV3 | 1, /* 425 Mhz */ FCLK_DEV5 | 0, /* 510 Mhz */ FCLK_DEV4 | 0, /* 637.5 Mhz */ This describes the mux (FCLK_DEVx) and a 0-based divider in the clock controller. "FCLK" is "fixed_pll" which is running at 2550MHz. The "turbo" setting is described by "turbo_clock = 4" where 4 is the index of the table above. Signed-off-by: Martin Blumenstingl --- arch/arm/boot/dts/meson8.dtsi | 58 +++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/arch/arm/boot/dts/meson8.dtsi b/arch/arm/boot/dts/meson8.dtsi index 3fd8260eba92..1ea5a36c5040 100644 --- a/arch/arm/boot/dts/meson8.dtsi +++ b/arch/arm/boot/dts/meson8.dtsi @@ -166,6 +166,32 @@ }; }; + gpu_opp_table: gpu-opp-table { + compatible = "operating-points-v2"; + + opp-182150000 { + opp-hz = /bits/ 64 <182150000>; + opp-microvolt = <1150000>; + }; + opp-318750000 { + opp-hz = /bits/ 64 <318750000>; + opp-microvolt = <1150000>; + }; + opp-425000000 { + opp-hz = /bits/ 64 <425000000>; + opp-microvolt = <1150000>; + }; + opp-510000000 { + opp-hz = /bits/ 64 <510000000>; + opp-microvolt = <1150000>; + }; + opp-637500000 { + opp-hz = /bits/ 64 <637500000>; + opp-microvolt = <1150000>; + turbo-mode; + }; + }; + pmu { compatible = "arm,cortex-a9-pmu"; interrupts = , @@ -208,6 +234,38 @@ #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0xd0000000 0x200000>; + + mali: gpu@c0000 { + compatible = "amlogic,meson8-mali", "arm,mali-450"; + reg = <0xc0000 0x40000>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + interrupt-names = "gp", "gpmmu", "pp", "pmu", + "pp0", "ppmmu0", "pp1", "ppmmu1", + "pp2", "ppmmu2", "pp4", "ppmmu4", + "pp5", "ppmmu5", "pp6", "ppmmu6"; + resets = <&reset RESET_MALI>; + clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_MALI>; + clock-names = "bus", "core"; + operating-points-v2 = <&gpu_opp_table>; + switch-delay = <0xffff>; + }; }; }; /* end of / */