Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1895558yba; Sun, 7 Apr 2019 03:18:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxa70NOb5s9Qbzs46Cn/oiA3ZaIEHf0P2PGS2kImQ+pUdCsP8xratsckSXjFygDhDANzol9 X-Received: by 2002:a63:e554:: with SMTP id z20mr21987620pgj.234.1554632311047; Sun, 07 Apr 2019 03:18:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554632311; cv=none; d=google.com; s=arc-20160816; b=x8z1ZudPog/QpeRi5tWK9Mo96EXnDzbXtvhA4Hug8bXw4uakzTRmmFgBVeeqSCkCXC aAqFbZsE6Z8kSGBV+dG9AYZjq+74JFXhMU3f3h5JJZdLTM6xbGWnhW/UYmwzHg5jKcO6 cQLIrsN4CYOpWnQU4L/qRopqwq2sDMSdvKhtl0x1TOWQYDG3T6Ej2bYuPqfDBfo2UEnv hMrD55Xs/h/D3+fDwZQ0qfZsCxiSdxjAh/a3HUdNxFQ3b0uXibUQErsU0vX0hNuh//cy FE0ldwGXbkEriUbY+ADWrWYtsLZf0hlbiOcnQ/Vl7RmbW6fMYwLs6+1rPL3Wbd8gzZtf TOHA== 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:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id:dkim-signature; bh=5lcB7Wch1bi7eOnQ+uFbKmPRUk4kHkGbfW5/BeV2uIc=; b=UNe0qt8sfkwDj2+VnZ1CP25FZoOH6IcQWEk3ncinmIH8B+MP6+f4Yau9+0p1+3L6Hq VlMAg4Y2g5qJN+BadTsg+OvrRHKFAG//Nsc71yLZQWd8dFX+20KMIYXYVAiaUr523fom A31df/FatPT3kivlOeuTtgxZulZbnGaqJq/ySDXCPPsplCJGDwEdbQieQKygB+h/NuYL DwZPpVV0lnl28cWzYrAf0CqcDuQwROCoeXyjmZoS23MgJV1qgIPYKGinEv2a3k6uRXp/ jDbt7Vf4M4KLpXx/5xV+UXS7QkxCq2wi1ZvZisWE51+ndJTKKRvEP1V330BiY0r4pgyv DdTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=LTeLSoEf; 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 h5si23377491pgq.224.2019.04.07.03.18.02; Sun, 07 Apr 2019 03:18:31 -0700 (PDT) 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=LTeLSoEf; 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 S1726246AbfDGKRD (ORCPT + 99 others); Sun, 7 Apr 2019 06:17:03 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:46298 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726086AbfDGKRC (ORCPT ); Sun, 7 Apr 2019 06:17:02 -0400 Received: by mail-wr1-f65.google.com with SMTP id t17so12815004wrw.13 for ; Sun, 07 Apr 2019 03:17:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=5lcB7Wch1bi7eOnQ+uFbKmPRUk4kHkGbfW5/BeV2uIc=; b=LTeLSoEfp7pdTE4fl5R9s8skKop8jQpclNFb9vNaPwmyXQjSp3Gd1wxIk9jQFVcbx/ YfRVEoRpGreZRn+bg+VZJtpbB3ysNUUnE1r2S9TPzapoyIAkOXowxINbOKtAEzOHE9Gy HrZqQ+0Y+mZfQQURpeRT+1/AnDgs5A3DbRrkCkymG+q8uA+UjgfW+yrNRPP9dqRvoIkD u+tFG2Z0hIGZVqfx/ObCmMMG6l7gyl9i1MM4FCssvT67vu79Rf0xsDBX+TyoyzOWkgt/ MR2dT/NegM6NDWuhCM++9TK4CCTXxRB4E4nDnOt1z2j0qqBgPgRkh+NXPANiLG934rTq Ni2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-transfer-encoding; bh=5lcB7Wch1bi7eOnQ+uFbKmPRUk4kHkGbfW5/BeV2uIc=; b=fsdx2WNxkt03pBWoOZI2xVRqYoR7SxN1rkihH1aQUPe0H9YQB5h5LCeci0bCMR8hod Q6AUaeR9vJZV/RUV1KttVH3ZEA/cOJnm3DjnF1KBlcWGLA9ng7yI06tNRwrPGJUjdZLM xTO1Ina7BxelECvhjEXxW2CZ5wGtmucbiBoEybC0Y9ZO//EhTHXnQUpraKOEoa2oWYl0 T9o6til0JrBGNkUDMJqxC9x8ZwFRjTMElauOyxTLmxsEj1ssjFE0DDBJFgb065PGKiR3 5SId9pA1JvVDzVJJihnQCfBCTLffzrN0a1evLXPUsj//KZ0sOgrSMxaexHXUwTR6qzIg 4G+A== X-Gm-Message-State: APjAAAWxC4eTfYoD8SdeqaafAOx4GmhyegoLppfjoKCjgfTsjD5GdCFw mt7F0QAxSQkbe2ybEqTbUIfdIw== X-Received: by 2002:adf:b6a3:: with SMTP id j35mr13980118wre.25.1554632220509; Sun, 07 Apr 2019 03:17:00 -0700 (PDT) Received: from [192.168.1.77] (176-150-251-154.abo.bbox.fr. [176.150.251.154]) by smtp.gmail.com with ESMTPSA id a17sm7881057wmg.40.2019.04.07.03.16.59 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 07 Apr 2019 03:16:59 -0700 (PDT) Message-ID: <5CA9CE1A.6060109@baylibre.com> Date: Sun, 07 Apr 2019 12:16:58 +0200 From: Neil Armstrong User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: robh@kernel.org CC: Steven Price , daniel@ffwll.ch, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4] dt-bindings: gpu: add bindings for the ARM Mali Bifrost GPU References: <20190401080949.14550-1-narmstrong@baylibre.com> <1640dd7b-3576-d9ce-0641-6b6a64a87275@arm.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, Le 01/04/2019 13:24, Neil Armstrong a écrit : > On 01/04/2019 12:00, Steven Price wrote: >> On 01/04/2019 09:09, Neil Armstrong wrote: >>> 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 | 92 +++++++++++++++++++ >>> 1 file changed, 92 insertions(+) >>> create mode 100644 Documentation/devicetree/bindings/gpu/arm,mali-bifrost.txt >>> >>> Changes since v3: >>> - Added note about discoverable model/revision >>> - Enforced fixed defined irq order >>> - Fixed typo in accommodate >>> >>> Changes since v2: >>> - moved to a single compatible since HW is fully discoverable >>> >>> 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..711c9ead17a2 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.txt >>> @@ -0,0 +1,92 @@ >>> +ARM Mali Bifrost GPU >>> +==================== >>> + >>> +Required properties: >>> + >>> +- compatible : >>> + * Since Mali Bifrost GPU model/revision if fully discoverable by reading >> ^^ >> s/if/is/ Should I still send a v5 to fixing this typo ? I can fix it while applying it. Neil > > Thanks for pointing this. > >> >>> + some determined registers, must contain the following: >>> + + "arm,mali-bifrost" >>> + * 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, >>> + in the following defined order. >>> + >>> +- interrupt-names : Contains the names of IRQ resources in this exact defined >>> + order: "job", "mmu", "gpu". >> >> Is there any point in having "interrupt-names" if we're fixing the >> order? Although I guess it helps match the Midgard bindings. > > Exact. > > Neil > >> >> Steve >> >>> + >>> +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 accommodate 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-bifrost"; >>> + 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>; >>> + }; >>> +}; >>> >> >