Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7140024imu; Thu, 31 Jan 2019 05:42:28 -0800 (PST) X-Google-Smtp-Source: ALg8bN6VOsXNwX+/Z82vbSzK8t6ACos+oYzzt4hKRE8lRfngbyBp3UAfmZnG9FHKS8LZXvmNupLR X-Received: by 2002:a17:902:43e4:: with SMTP id j91mr34194617pld.147.1548942148239; Thu, 31 Jan 2019 05:42:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548942148; cv=none; d=google.com; s=arc-20160816; b=j7sjrku8GotRhSfP1uZznfMpYYKmgoMXGGI3H4VUmPfT/Cd2o+zmQM0ukSiVSnHdQs IdITFXJZdKc2HkbX72l+UyFi1gM49fPvULr8Zlp12Mux7i3kRuWTDU9DPbt/EQdV6MrZ tjVkh+4+IZzHONkvHAQO6obDaw/G6C7cxFCdlM1HGI3jC0JI0v8NF4CUD5steELnENbl A+TM9L3QyrNb/fvVLzwG1TP9IcqWzVAdCjyIE+s3RIEEQgQ72F9D8yCo3WfFvvTuzv5m GeQFgcPkRpskBODCY1fD6wzkTZTe3/J9/oILdl/FwQ7IGXYlkimkh4Bb2maS5QO4+qc1 fI5g== 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=oBv+ePDnjlJOS70jVWx32cfATbisSYPzzmaKr5EYuvM=; b=GBOgzJYgRM+mCFuCNsrsAf8+/UyQvmokbtVHy3gKMy9pTJUFo7W0G0A2JZVP5GpZym 6KY2/rIaKcS3Lnd38caXFJ8WYgQ8gw+XJVkTK3kx1wZ7QpwBE5FZphQpcSzCfKS6vBHu Xgg/VFrVd6RYYPg6v9Lqci8Dz1agnaUqGpJplZMNnsj6KgM+ReafxpfXvm9QLkAYIV4r 7S7x22043/vwth6hhmYlS3zFsfERHqkt/0kGKgBvAYCJckc1OD92vbut2WnQv6hmoHXI FxXztugET2vEa9+tWG65fh26Oi/9GBrctM6X2zcPcFhhOYh5IFwWqB92FxedO5h3MpZV 3Zcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=fLb8poL9; 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 m15si5089931pfd.3.2019.01.31.05.41.59; Thu, 31 Jan 2019 05:42:28 -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=fLb8poL9; 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 S2387416AbfAaN3n (ORCPT + 99 others); Thu, 31 Jan 2019 08:29:43 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:36723 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732650AbfAaN3n (ORCPT ); Thu, 31 Jan 2019 08:29:43 -0500 Received: by mail-wr1-f65.google.com with SMTP id u4so3309157wrp.3 for ; Thu, 31 Jan 2019 05:29:42 -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=oBv+ePDnjlJOS70jVWx32cfATbisSYPzzmaKr5EYuvM=; b=fLb8poL941xh3DQtCqT7bvVri6EmV83l7xUb3njpfuobp1/nczWkIOyFQsFm3wHUaG o9wwXX3mxbmUrsatznFfulXH/yVJIAhB6FcEzVk9vU+ypIeGHK9Ml/vDyiu2nBfs99Qn mLkdigB0j4tzYeYfiyDVAFbhwfgJ47Xyl12Vx8jmtw2bd6iOptQ6b9HLLt/c/R8vyu+f fpnqiDuV71h+BTmrT86wJQoWCHS5ZSBbw/yVPK6pvkVi+1IxVo68AYgOHjfdVZiv3WSP QsZQQBynCDFpHWqhH8fOxa2e07MGcpBtyGHR8sXWjCfVmkSlaNFLphPA97dbsdduxLon z5NQ== 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=oBv+ePDnjlJOS70jVWx32cfATbisSYPzzmaKr5EYuvM=; b=tOIL2Huc4T4SZK6zWD4z/X9cnWhmGqzvZQYLySUpAVEZkWBjndTTYULMC+kYMPlFNN koyGGZCKiOBXtUj7RP9rcsnp27eqaLsrRyf27J81HqFUQKpPGxztth+nIFtaDyN3T9LD 670aLPbPM5RnuxWOc7F6cT1umf3vGe3gpDlSxUQCd5TlGcQfhaPVx+ojhy7M/B/dwPRV gECY1NAOIJ+J+qOhTytsf/BrG+z9sQKjkK8sHsbApYJyQzRkHwpc7qO7vMj6oEtAsUSW qmhFe3qyhN+1D9oBtBJhLJiS6Y5PEeNnrLjctq3EgoTL7a70KSB5ZfFkcyv9Bf+3FPQ6 0/xg== X-Gm-Message-State: AJcUuke4EvRXw8/tCSYa82teVfyut50ZXGkCS+ksbXNZZSVYnZ3xsa1Y /v5thWgJ83UBu5QpW/EocRJorNAn6SXA5w== X-Received: by 2002:adf:9c01:: with SMTP id f1mr35750825wrc.286.1548941381163; Thu, 31 Jan 2019 05:29:41 -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 t199sm4978584wmt.1.2019.01.31.05.29.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 31 Jan 2019 05:29:40 -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 Subject: [PATCH] dt-bindings: gpu: add bindings for the ARM Mali Bifrost GPU Date: Thu, 31 Jan 2019 14:29:39 +0100 Message-Id: <20190131132939.2263-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 --- .../bindings/gpu/arm,mali-bifrost.txt | 94 +++++++++++++++++++ 1 file changed, 94 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..a632f5136b08 --- /dev/null +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.txt @@ -0,0 +1,94 @@ +ARM Mali Bifrost GPU +==================== + +Required properties: + +- compatible : + * Must contain one of the following: + + "arm,mali-g71" + + "arm,mali-g51" + + "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-G71: + +gpu@ffa30000 { + compatible = "amlogic,meson-g12a-mali", "arm,mali-g71"; + 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