From patchwork Tue Nov 7 09:35:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 10046077 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 9028060247 for ; Tue, 7 Nov 2017 09:36:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8521429DB0 for ; Tue, 7 Nov 2017 09:36:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7902D29DB1; Tue, 7 Nov 2017 09:36:11 +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_SIGNED, DKIM_VALID,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 BB66A29DB6 for ; Tue, 7 Nov 2017 09:36:10 +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: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:In-Reply-To: References:List-Owner; bh=QXLuLr1x3fNbVPq2GoKUQLjmoiJfPfqo7OCqatXg/YQ=; b=EVk JBl2zi97rmndUNuL55mzPOj9HFSGUu8nRbBsAT7pWabYYW0Y+cVs/rdUiC4XFaAtsnARTojelUbd3 LywRwivZCO0YFMAcoDR8zw3fH1M7VnV5msvTRv8U52DivQjPupjmhlJ7NOpy2tKXw+ek1++OEumhT ZJwvZuTdQNU5d82BwMV0rJUmT8+wpRHkJ02p+NlbVQvYT55a2rrFVfzrRA0wQdQZkYWjwskfVRu/c oEBpCJ5N7Y9D19Efca2icmAurcg3vcaV6MIODXxS0dmNipb52+eFgIzmFpEJU2rg20AtaGcr6AqY6 7B0eCIFk9fzNgoEEKrcmbHJsvYDNIEg==; 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 1eC0IU-0004Lb-Ut; Tue, 07 Nov 2017 09:35:54 +0000 Received: from mail.micronovasrl.com ([212.103.203.10]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eC0IO-00044A-7J for linux-arm-kernel@lists.infradead.org; Tue, 07 Nov 2017 09:35:51 +0000 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id 59E67B01552 for ; Tue, 7 Nov 2017 10:35:25 +0100 (CET) Authentication-Results: mail.micronovasrl.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=micronovasrl.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=micronovasrl.com; h=x-mailer:message-id:date:date:subject:subject:to:from:from; s=dkim; t=1510047325; x=1510911326; bh=+xL9h3Mzp03tJ603g5FSo+P6 HBjB+CDmKRYQdkcvfSk=; b=MHEJb5eOOEAQd8L/LqpDUW+AjXfiaEu+CWt36Bbn KeJHZLPVg+uH3UAEGUIsU68NcMMqh8qqJpfkc6WYkn062btjWQkH9XOR+9/Y5jVV z3/7caIVSB6vGZlfDOYMFTMA0DVs9jWgt/3n6tiw5vT3pp58OiJEVh8cXz5Ib4KI f+s= X-Virus-Scanned: Debian amavisd-new at mail.micronovasrl.com Received: from mail.micronovasrl.com ([127.0.0.1]) by mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id XVx7LFNyXGvM for ; Tue, 7 Nov 2017 10:35:25 +0100 (CET) Received: from localhost.localdomain (benettig-pc.dominio.micronovasrl.com [192.168.123.215]) by mail.micronovasrl.com (Postfix) with ESMTPSA id E85F1B00958; Tue, 7 Nov 2017 10:35:24 +0100 (CET) From: Giulio Benetti To: robh+dt@kernel.org Subject: [PATCH 1/1] add mali r6p2 dt node Date: Tue, 7 Nov 2017 10:35:20 +0100 Message-Id: <1510047320-5480-1-git-send-email-giulio.benetti@micronovasrl.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171107_013548_477191_37ACB0FD X-CRM114-Status: UNSURE ( 7.55 ) X-CRM114-Notice: Please train this message. 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: mark.rutland@arm.com, devicetree@vger.kernel.org, linux@armlinux.org.uk, linux-kernel@vger.kernel.org, wens@csie.org, maxime.ripard@free-electrons.com, Giulio Benetti , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 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 This patch adds device tree mali node compatible with r6p2 utgard kernel driver provided by ARM and patched by maxime ripard on his github. It can be easily used in target.dts with: &mali { status = "okay"; } then loading mali.ko in user space. Best regards Giulio Benetti Micronova srl Signed-off-by: Giulio Benetti --- arch/arm/boot/dts/sun7i-a20.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index 228c368..e402596 100644 --- a/arch/arm/boot/dts/sun7i-a20.dtsi +++ b/arch/arm/boot/dts/sun7i-a20.dtsi @@ -1216,6 +1216,33 @@ #size-cells = <0>; }; + mali: gpu@1c40000 { + compatible = "allwinner,sun8i-a23-mali", + "allwinner,sun7i-a20-mali", "arm,mali-400"; + reg = <0x01c40000 0x10000>; + interrupts = , + , + , + , + , + , + ; + interrupt-names = "gp", + "gpmmu", + "pp0", + "ppmmu0", + "pp1", + "ppmmu1", + "pmu"; + clocks = <&ccu CLK_AHB_GPU>, <&ccu CLK_GPU>; + clock-names = "bus", "core"; + resets = <&ccu RST_GPU>; + #cooling-cells = <2>; + + assigned-clocks = <&ccu CLK_GPU>; + assigned-clock-rates = <381000000>; + }; + gmac: ethernet@1c50000 { compatible = "allwinner,sun7i-a20-gmac"; reg = <0x01c50000 0x10000>;