Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4031734imj; Tue, 12 Feb 2019 08:39:25 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibqh5ppek21235/7ct/+/qvJPy1jyhlS34aBMgg0rqk2GrkLwohAEMNn6sSLS1qZVJsTmp+ X-Received: by 2002:a63:7f46:: with SMTP id p6mr4431077pgn.54.1549989565254; Tue, 12 Feb 2019 08:39:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549989565; cv=none; d=google.com; s=arc-20160816; b=M4mQkyqPJDfWgkGgc8AqnYGruvy8z0byzd9zts5ooqxbMVpHYNRAG0Hj4YP0GYY2OU nzRpatPuzG9OA4WxsSwildW3zNirZPS8atf2hNI5XFVbdZuHl9yZ7v/DVDvc726Xrnyg 6RWuZTPMDXIB8af+Qva1ReScVZtxLKXHXwuxvic0n9nFfZ/OEzEOq+8s1Qdc8NONbVDb YOZeCRB0DYaoukJRTUMRJ3bAGKBt4738QHONLV573XFamn3Gpneh/TsZTVEb+fNWQaup Ldboky5WZMwgtgIS1dQ6gnFa6Hda+62Kx5He21YBFJP1M4HnPLYxxzpOIALbWpR2ppOI dk7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ClTUzezi3cfuWIoAAbFTrjOhNUbiBoeL1rpDXNmQzB4=; b=wlvL4+Op/oPribGiNY5T7tKeBMQlncOdLpZoeHYlogrrCXD7XOo+jw3pmS0Lm6ILvf LXSfCh/X33YR+Hd6gn15VK3TwRGDJI6ZjzFHa3kDtt+UXzjgzqC5r0H5jqXRNAONib04 4MQ3YzO0x2wFZLm+0o8knr+KM8NQPqb3SQF99c//Fr3PQ8zhHDoibXcclHlOx6bGBatP 2PewySA25v+C6gYBXNhlOMjp5VsZld7fBaeFpE15d88IJ629my84z60NSbyIVeEjx0Ub RAkCjFA0jpfUYWAcQZq73nbb9nqmddViNGjO0rm6qmneohallI7ABGuzsnVpYFqReJC/ gwRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=t45TfQUB; 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 a20si3617123pgk.581.2019.02.12.08.39.08; Tue, 12 Feb 2019 08:39:25 -0800 (PST) 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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=t45TfQUB; 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 S1731069AbfBLQiq (ORCPT + 99 others); Tue, 12 Feb 2019 11:38:46 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:35386 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730735AbfBLQiq (ORCPT ); Tue, 12 Feb 2019 11:38:46 -0500 Received: by mail-wr1-f68.google.com with SMTP id t18so3432657wrx.2 for ; Tue, 12 Feb 2019 08:38:45 -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:mime-version :content-transfer-encoding; bh=ClTUzezi3cfuWIoAAbFTrjOhNUbiBoeL1rpDXNmQzB4=; b=t45TfQUBTPQ+9tg2cFrO4qK/7DJLyUHFwlXzvpynxsp4PrnN/0h9ZjidtgSuF1xuMw i1WmiU+eQLrvqbJfTBEWVEJ+jxcJu44n3Qkefc07sC/pzAePq+zIYieXrUksRb30gNqb wy6gNLVd+YQXMFP1jIXR92XeoNcZ8xL6KK7olZp+VeYeWn2jiseLnDdKXDm33nmm0p5D OaU2xUthA+UJjSJ0UINM7zU7SVUmtkS/kF/6jwjs2NZddUQtk2RmHu+f+YMOg7bBLfW0 0S3mvIimyaHiU/Jwo72ANMpoXlfhKUolmRnbqZx3RKiH07eBYl7q3sIhYEapz9wGwi/6 iKdA== 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:mime-version :content-transfer-encoding; bh=ClTUzezi3cfuWIoAAbFTrjOhNUbiBoeL1rpDXNmQzB4=; b=nnXwWOpo688YNOkuqjndAnF9lWdoMTPJN/gJ5UHsqxjCtFC74Ab4hSZSKdXjBtLxbk blHC6B2EUgrNcWyFAk1gDQ5i9hF+AQ8X1ES7MHn1glkiw0dS1wGxyaBKoWpfObOSPMV7 wC0Pk+hetOzqRzWdxakB53aVhzdv3gy9lEkiGWXbB+uzt0PEjL3T3muDTwk/i6905Qtj +CNGrDDJuk3IvDVBIjPS+l42FVzy/4PGqUOSjQNszRbhkSessJT8liQcptoPLG3N5Lpn FJecpn0yrLr8/Qsmvm55n+PkoxZ0XcwV3PbiVzvgJyxGj2YkrnHkVu4MtmORVV+LuOmq zfDw== X-Gm-Message-State: AHQUAub8EnNbc+8pMLxgYSdb7azcfHEg1wSp6UQIBzTqyg/0jAPP/fjN 2MI69XoGxYpWwgkC0ZAdRcWoCg== X-Received: by 2002:adf:eb07:: with SMTP id s7mr3670318wrn.158.1549989524502; Tue, 12 Feb 2019 08:38:44 -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 v6sm10325610wro.57.2019.02.12.08.38.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Feb 2019 08:38:43 -0800 (PST) From: Neil Armstrong To: daniel@ffwll.ch Cc: Neil Armstrong , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2] dt-bindings: gpu: add bindings for the ARM Mali Bifrost GPU Date: Tue, 12 Feb 2019 17:38:38 +0100 Message-Id: <20190212163838.22644-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the bindings for the Bifrost family of ARM Mali GPUs. The Bifrost GPU architecture is similar to the Midgard family, but with a different Shader Core & Execution Engine structures. Bindings are based on the Midgard family bindings, but the inner architectural changes makes it a separate family needing separate bindings. The Bifrost GPUs are present in a number of recent SoCs, like the Amlogic G12A Family, and many other vendors. The Amlogic vendor specific compatible is added to handle the specific IP integration differences and dependencies. Signed-off-by: Neil Armstrong --- Changes since v1: - adding missing G31 and G52 - fixed example .../bindings/gpu/arm,mali-bifrost.txt | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpu/arm,mali-bifrost.txt diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.txt b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.txt new file mode 100644 index 000000000000..04a1d63ee578 --- /dev/null +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.txt @@ -0,0 +1,96 @@ +ARM Mali Bifrost GPU +==================== + +Required properties: + +- compatible : + * Must contain one of the following: + + "arm,mali-g31" + + "arm,mali-g51" + + "arm,mali-g52" + + "arm,mali-g71" + + "arm,mali-g72" + + "arm,mali-g76" + * which must be preceded by one of the following vendor specifics: + + "amlogic,meson-g12a-mali" + +- reg : Physical base address of the device and length of the register area. + +- interrupts : Contains the three IRQ lines required by Mali Bifrost devices. + +- interrupt-names : Contains the names of IRQ resources in the order they were + provided in the interrupts property. Must contain: "job", "mmu", "gpu". + + +Optional properties: + +- clocks : Phandle to clock for the Mali Bifrost device. + +- mali-supply : Phandle to regulator for the Mali device. Refer to + Documentation/devicetree/bindings/regulator/regulator.txt for details. + +- operating-points-v2 : Refer to Documentation/devicetree/bindings/opp/opp.txt + for details. + +- resets : Phandle of the GPU reset line. + +Vendor-specific bindings +------------------------ + +The Mali GPU is integrated very differently from one SoC to +another. In order to accomodate those differences, you have the option +to specify one more vendor-specific compatible, among: + +- "amlogic,meson-g12a-mali" + Required properties: + - resets : Should contain phandles of : + + GPU reset line + + GPU APB glue reset line + +Example for a Mali-G31: + +gpu@ffa30000 { + compatible = "amlogic,meson-g12a-mali", "arm,mali-g31"; + reg = <0xffe40000 0x10000>; + interrupts = , + , + ; + interrupt-names = "job", "mmu", "gpu"; + clocks = <&clk CLKID_MALI>; + mali-supply = <&vdd_gpu>; + operating-points-v2 = <&gpu_opp_table>; + resets = <&reset RESET_DVALIN_CAPB3>, <&reset RESET_DVALIN>; +}; + +gpu_opp_table: opp_table0 { + compatible = "operating-points-v2"; + + opp@533000000 { + opp-hz = /bits/ 64 <533000000>; + opp-microvolt = <1250000>; + }; + opp@450000000 { + opp-hz = /bits/ 64 <450000000>; + opp-microvolt = <1150000>; + }; + opp@400000000 { + opp-hz = /bits/ 64 <400000000>; + opp-microvolt = <1125000>; + }; + opp@350000000 { + opp-hz = /bits/ 64 <350000000>; + opp-microvolt = <1075000>; + }; + opp@266000000 { + opp-hz = /bits/ 64 <266000000>; + opp-microvolt = <1025000>; + }; + opp@160000000 { + opp-hz = /bits/ 64 <160000000>; + opp-microvolt = <925000>; + }; + opp@100000000 { + opp-hz = /bits/ 64 <100000000>; + opp-microvolt = <912500>; + }; +}; -- 2.20.1