From patchwork Thu Feb 23 13:34:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 60969 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp315098wrd; Thu, 23 Feb 2023 05:36:30 -0800 (PST) X-Google-Smtp-Source: AK7set91IU4bqgVofBibfNkj20EsU6g5FnIyUUPnX4jqlcgppL3SKmaQ5gvTHU//7CkOS4+1rhh8 X-Received: by 2002:a17:906:73da:b0:8d3:be84:1cc6 with SMTP id n26-20020a17090673da00b008d3be841cc6mr9631075ejl.3.1677159389840; Thu, 23 Feb 2023 05:36:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159389; cv=none; d=google.com; s=arc-20160816; b=kINOQQXlsU6Y9Vvdt0GY4cN03YKZLR7/KEPjdNAjqckUX0PuulrfnPKKTlnrF82tL9 uyJ8TX7ctBnmvpBcCXn/7O4kZ5pEkSRqjQIR2vxKHPqTxhvBo0zsQEN/mcKQHRWsI3Pb YsgngCkaeVnetog8Wls/iWdsXxUfY4jBVistyhpcdX21ibREtEEsdWY9CgPKU34bEOAR G+cwEFraD87gjD1641ljMCLwNMNsiPdQZ6jFZryj8GGN6W5DOqOj0+EloXLGpCJyFviz 9ZabsqiqiDocJcBb6Edxv6wQnxOs+TQFE6u+Pbboy4hk6OLGhdV10Y8GhrvAUKfJQiGQ mZ2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=U1/arpsFTNupPbknD64llFhKUm/wlNgsw1KbnSZuMME=; b=e12UeNscTLV+HGP4M038ZTipSMkpYpD3y62nYK51T1WnjFTHWqTVhFs36XUv3x8rh7 eoqVXkxlxxrAx1PYOFWCO8NpbUSJq/m1UvLxMogwWgzkbgRYKN3B6cjAYsI1644t6+qu EvwjERIjXVQC9F9n+6yNV2NqZ3y8ekIWqZ+Giu3t9Nd8LkQJSg9ycT1cE/cGYFZdVNkL yCOVvdEy610KQXaKsj0oyewEM+OgckS2KVkXCVzgmlhaPzgGXVXrGwbNDTc26O4snk2q Jn8FVklC5Yz3l0jClv/egiVLVOcha1afS0krjo3yVVHunu3KjCKGFDhEqPugftPSrIve i8Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=NYu03vv1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d26-20020aa7d69a000000b004af6e956bd7si1787250edr.421.2023.02.23.05.35.57; Thu, 23 Feb 2023 05:36:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=NYu03vv1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234069AbjBWNfB (ORCPT + 99 others); Thu, 23 Feb 2023 08:35:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234236AbjBWNe6 (ORCPT ); Thu, 23 Feb 2023 08:34:58 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5CF531E37; Thu, 23 Feb 2023 05:34:55 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 98B0E6602207; Thu, 23 Feb 2023 13:34:53 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159294; bh=DZyb8vw6qbtsYIBlP4pzm++AodTcvCv6AvAETopyIuw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NYu03vv1qJuOYlmylMrIAyYrmCCeql0wrQvbiOajOzEtWMk9fe2QClrSXl5UKBq7F gnBv7pcmHASD9KHn9aA8CYcQjSaz5T5fcM+kbDOExSgearlpCRBas/XTGpT5+o/vDI CvVsacZ/DGPBhH6QBAudtY1bmf5NjNlMbNCuF3n8etvKB2aBijiQSCOYMWIYYDpXcM YQbUXF9UpbvdB0vTfPN00MjxPShFufEUoPr9vo+FYil4d5wyB5m69+RwLNIFFLEevV g0Rh0xjEusaGljfQTj3+SHcAr3LYy+s+85UxTjYgeyaUjp2Il2Zg3U7SMHK3y2HlEQ rSJuihO2Whkwg== From: AngeloGioacchino Del Regno To: airlied@gmail.com Cc: daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, steven.price@arm.com, alyssa.rosenzweig@collabora.com, matthias.bgg@gmail.com, robh@kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wenst@chromium.org, AngeloGioacchino Del Regno Subject: [PATCH v3 01/11] dt-bindings: gpu: mali-bifrost: Add power-domain-names to base schema Date: Thu, 23 Feb 2023 14:34:30 +0100 Message-Id: <20230223133440.80941-2-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> References: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758629084373801326?= X-GMAIL-MSGID: =?utf-8?q?1758629084373801326?= From: Chen-Yu Tsai In commit a7a596cd3115 ("dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183"), "power-domain-names" was added to the mt8183-mali sub-schema, but was not added to the base mali-bifrost schema. Because validation happens for the base schema and any sub-schemas separately, this causes errors to be emitted when validating the MT8183 device trees. Add power-domain-names to the base schema to silence the error. Fixes: a7a596cd3115 ("dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183") Signed-off-by: Chen-Yu Tsai Signed-off-by: AngeloGioacchino Del Regno --- Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml index 78964c140b46..02699d389be1 100644 --- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml @@ -65,6 +65,8 @@ properties: minItems: 1 maxItems: 3 + power-domain-names: true + resets: minItems: 1 maxItems: 3 @@ -166,6 +168,7 @@ allOf: properties: power-domains: maxItems: 1 + power-domain-names: false sram-supply: false - if: properties: From patchwork Thu Feb 23 13:34:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 60970 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp315560wrd; Thu, 23 Feb 2023 05:37:26 -0800 (PST) X-Google-Smtp-Source: AK7set8Rr8UCkF8x+XcmsgB7FMgNN5TAc4TQtJay7IZ3EThzal+cc75rkDRC94q86pBfq+KZd8Ta X-Received: by 2002:a05:6402:4315:b0:4ad:d9c:35a6 with SMTP id m21-20020a056402431500b004ad0d9c35a6mr13912887edc.1.1677159446250; Thu, 23 Feb 2023 05:37:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159446; cv=none; d=google.com; s=arc-20160816; b=LC6pYJCQGBP7VQZMSBC25rtqML18lfzV0GuirpVRdI1LrcgGkT85y4UkIiCjdaSaqm EKgwHiHIw9XyqC6ti8KIQhAGFF9JHp6Dec5bwVcYCV/C4Yc5w7/tNIiSk0FlN6+CQivw rQSU0H1EDOrYO27Qzb/URsar+E7tMKO2BZinl4sMEcUH18/ia4gy+a+aeF/IzDbVgmus Xqbt0rd2Ujopo463/l2bulVms00PWyxxvSR4Godtavx5NF/iIlTY6lznzW8OW2f44X++ sPdA5WyWEMFc6L3B/cpI0BecqYdP+LOzt2xRLv3u6SPz6zvP1q0ibslU3AWjomLowvMl YD3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Ux2XCuCi78DmCxhmj2ukCazKOuQq87GMBp4lF8TlRzI=; b=GFAeyheWrS6fPOe5SmrLrrKpHnPKZ83oziEOi2RWc4vd8Ed6Rr1DMIO/lNYETTTMmV +knR70I1jpeTD+qCLklp31qXo6XIQVHlp6T+0i9HglHVqdzjWflYePcEseDTJ4D2QagD mr4VgX4ApfaTKZlU3i+5m7VlynR4Nz1PrXTsLoDibEZOI1zX+NLkwHfF99JNtwu8njvd mPgHBe1/XhvPYVxlALgju9tk1sVlWBNAFi7uig+1Ck8RGCXaW0ntZap58G83dNtRv3bJ hh+30fSk3u+SENQm9CdmK8PFYR/cIUR+Ooj1Aq/xcy8fbbj8e6XajUf5g2y9hXG32TFO IwUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=FGiXI4Pe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y25-20020a170906519900b008b176ccbf45si25158807ejk.621.2023.02.23.05.36.50; Thu, 23 Feb 2023 05:37:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=FGiXI4Pe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234048AbjBWNfJ (ORCPT + 99 others); Thu, 23 Feb 2023 08:35:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233420AbjBWNe6 (ORCPT ); Thu, 23 Feb 2023 08:34:58 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75003366BC; Thu, 23 Feb 2023 05:34:56 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 849BC6602208; Thu, 23 Feb 2023 13:34:54 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159295; bh=dYSlQLXMyB6AD5hy1+lsca8EHSPk5mj7QuNmBK+ZBoM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FGiXI4PexxD/JDfciqJmMleb9tUNND4UDMfKXb7gr+GV9mJ4UeWxUFvWgwbXc3xiE mLw9wEN0gS2VSpf17qZOpU0jYnEIps5xluIiMRlV0Vo0wUISCL33Jhwhfasa+u0RYr Z/JCi930T4A4pte/8K4b+1cPA6URW32CJauGvdR8AYcX7ANSaVC2zb1vef9iNdVpJN UlBRkx+8toCzdc43xXxMd3QjDEP37ypIo4EnWA6yNZ2J30W4LZFUWNGmRW21I7txRC RS9b3Fz3UYGn0CouDtWNuU6DKUV3PD30d4PIetfRHOODdro60dWKW8GYu0TNoxV7tl QXMUbDwsiw2hw== From: AngeloGioacchino Del Regno To: airlied@gmail.com Cc: daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, steven.price@arm.com, alyssa.rosenzweig@collabora.com, matthias.bgg@gmail.com, robh@kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wenst@chromium.org, AngeloGioacchino Del Regno Subject: [PATCH v3 02/11] dt-bindings: gpu: mali-bifrost: Split out MediaTek power-domains variation Date: Thu, 23 Feb 2023 14:34:31 +0100 Message-Id: <20230223133440.80941-3-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> References: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758629143526340503?= X-GMAIL-MSGID: =?utf-8?q?1758629143526340503?= In preparation for adding new bindings for new MediaTek SoCs, split out the power-domain-names and power-domainsvariation from the `else` in the current mediatek,mt8183-mali conditional. The sram-supply part is left in place to be disallowed for anything that is not compatible with "mediatek,mt8183-mali" as this regulator is MediaTek-specific and it is, and will ever be, used only for this specific string due to the addition of the mediatek-regulator-coupler driver. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai Reviewed-by: Chen-Yu Tsai --- .../devicetree/bindings/gpu/arm,mali-bifrost.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml index 02699d389be1..ac174c17e25f 100644 --- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml @@ -145,6 +145,18 @@ allOf: - power-domains - resets - reset-names + - if: + not: + properties: + compatible: + contains: + enum: + - mediatek,mt8183-mali + then: + properties: + power-domains: + maxItems: 1 + power-domain-names: false - if: properties: compatible: @@ -166,9 +178,6 @@ allOf: - power-domain-names else: properties: - power-domains: - maxItems: 1 - power-domain-names: false sram-supply: false - if: properties: From patchwork Thu Feb 23 13:34:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 60972 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp315759wrd; Thu, 23 Feb 2023 05:37:48 -0800 (PST) X-Google-Smtp-Source: AK7set+6EGnhxeXkD6iKV632qO7dVC1UloZM0vrhgOpz4NrxI/AQG+s6GrcdWso8bIpWVvJDv5UW X-Received: by 2002:a05:6402:35d0:b0:4ad:6f56:a362 with SMTP id z16-20020a05640235d000b004ad6f56a362mr13940111edc.4.1677159468211; Thu, 23 Feb 2023 05:37:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159468; cv=none; d=google.com; s=arc-20160816; b=NA070A+g0hF0Da7fgo5n/k6cdOIsYPZmLPZiJuVIUWsKXhuljYbLB89D11wn/WlCFi ojIdhJ1R9eOq1FcDNvb4BeSenpX47l/6VlbTZT2CxIjdGP02Kk/v8dTqmJh0ic9YKN0v 3rJREb2czSQ8GyWjmvpF7iVqMDfPylbTstbzxLsZKQ85MQGO7pBzLFr3xV2l4f/i99P+ Q/joOPHUY6mvV3NfoWvUVk8TSdg2G+fCFa8H8NO4KOGyPKgrgfeqSK01Cr0ZcU8NySl3 KaJHSr3tcgQQJXQV6cznv1o/iLPh1Y8Ls9cc0ySEmxAZFv5FN9v4oENNBR9fTEDhEGtM +nug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9ywC0lpWIV9O+8/h0oC75OVWnYnh4CTXbd+m738N5ds=; b=TZIcq+af0fbMl6nVMoc8qcS7mHheM3auNPcUy59MAxV8Msdv0Hd0dep7STJLthM9Df qqHNOa6zjzLNRHaM80OG3Lcj0ZeiGaxV0aFtdu7ac0gsb4d1KujaiYrRc0Z0QLX02ZYt 1pi05U70gksOQXMSoR8K+66wzq7B+3ry3iD/od7Za3zX4brGBKBFoxpYKsrza5ZhRJlE nNgnvxYx+RJYeAZwbFWODirJwJB/Cj3vPoYh42inGPfyITIU6zGrjpjjdTJ/0oFGTUxG 8OoXV4xHiF0p6Hdin8ceee1oHURKhB9rIByka/4+J38Ayww+C6eVfATp4o9G6qrb2L67 0j1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=S2rgnFPD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k25-20020aa7c059000000b004acbdf2227dsi8401545edo.82.2023.02.23.05.37.24; Thu, 23 Feb 2023 05:37:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=S2rgnFPD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234150AbjBWNfO (ORCPT + 99 others); Thu, 23 Feb 2023 08:35:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233860AbjBWNe6 (ORCPT ); Thu, 23 Feb 2023 08:34:58 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 659A7367F0; Thu, 23 Feb 2023 05:34:57 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 6F3126602209; Thu, 23 Feb 2023 13:34:55 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159296; bh=JLv1ypqmRwA4sZAh0v4tJj4CqhA/6gB3AMkCmc8wtN0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S2rgnFPD+fTyfHhqgstB7LTl1kGPo44M2phl54QzydFcD2EUaaGWwsajUDcCzkbWs FKvY20+PnWDFfQ0Wzfb5Zy5jEUvSg8jRWUEArHqkY5kwnSZMq+fxlXute/9c2DBFVd BXUrFqYwiPgMWRMEPG5wq8UY3QBdb5xbBV5D73aPEmbpEbzxRfksb5Dmw906xQAVq2 9tyLADgKSJ/ON1K8uLTlWf1PBHBUsSd+GsCW1nQ8GELVlLIw0q6CrvQA70K2sNzJdY fHivw5MkRRtvH/lL3lu43e1ftJn86jz+p1P6ZZdwQLqx2M4s1IXRmGXNxl0i7Jc1aT /ejkmKq5/z3vw== From: AngeloGioacchino Del Regno To: airlied@gmail.com Cc: daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, steven.price@arm.com, alyssa.rosenzweig@collabora.com, matthias.bgg@gmail.com, robh@kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wenst@chromium.org, AngeloGioacchino Del Regno Subject: [PATCH v3 03/11] dt-bindings: gpu: mali-bifrost: Allow up to 5 power domains for MT8192 Date: Thu, 23 Feb 2023 14:34:32 +0100 Message-Id: <20230223133440.80941-4-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> References: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758629166648250528?= X-GMAIL-MSGID: =?utf-8?q?1758629166648250528?= MediaTek MT8192 (and similar) needs five power domains for the Mali GPU and no sram-supply: change the binding to allow so. Fixes: 5d82e74a97c2 ("dt-bindings: Add compatible for Mali Valhall (JM)") Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Rob Herring Reviewed-by: Chen-Yu Tsai --- .../bindings/gpu/arm,mali-bifrost.yaml | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml index ac174c17e25f..65fe139ceb83 100644 --- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml @@ -63,7 +63,7 @@ properties: power-domains: minItems: 1 - maxItems: 3 + maxItems: 5 power-domain-names: true @@ -152,6 +152,7 @@ allOf: contains: enum: - mediatek,mt8183-mali + - mediatek,mt8192-mali then: properties: power-domains: @@ -179,6 +180,25 @@ allOf: else: properties: sram-supply: false + - if: + properties: + compatible: + contains: + const: mediatek,mt8192-mali + then: + properties: + power-domains: + minItems: 5 + power-domain-names: + items: + - const: core0 + - const: core1 + - const: core2 + - const: core3 + - const: core4 + required: + - power-domains + - power-domain-names - if: properties: compatible: From patchwork Thu Feb 23 13:34:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 60971 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp315752wrd; Thu, 23 Feb 2023 05:37:47 -0800 (PST) X-Google-Smtp-Source: AK7set+QLwjgDSkwHwZB4tZEoGLCE8KeZPYHWGcc6Fp5vDcqXerQKRxeiR9LMfXqE4PAmBLezOT7 X-Received: by 2002:a05:6402:268e:b0:4ab:178f:e2fe with SMTP id w14-20020a056402268e00b004ab178fe2femr11828266edd.0.1677159467319; Thu, 23 Feb 2023 05:37:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159467; cv=none; d=google.com; s=arc-20160816; b=CCT5wFN/5ncNIA1ZO+GPfcPTF/R2wjNZNCuKC4xzP+jHym5u6wJ5qBc5QUkqQpxyZ4 x8gCuKt1ZetxRUWqC9nNsULXwdK9P/KrPO7jGjlTXrP7DzAYT8pItsQVB/nLbh8T3/+c gLO3p+jUk8bSTTRVncz1+kSwgKJoKUeEzylNXoDtxD+aRcb5yh2XjOEuJ1T0UpDU88mv /ubbodfCkll19puZu6PvPapHpSDM2+oSEHF/LoA/HwIjvo4xBCDiZu9CQs64saksVxqy 7xah0vYKbxb5SJ395ChALCgCt/qERdXRxpEKVlIOHDOo1ekUGibY5SUGAB2KZKIH/r3/ D3GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HE1nmL/pK+99rwUcEZBSlqoNXqs5jByJDekHuPe79dk=; b=PYl5XG3z2+5OLHxrncQMALuYxvDHV7rsCZBr1LwuOCh6nr2KD795JWDDLcrHOKM1XW HwPH9yMEdJFTH3O/MW9n0KKnot5hCu91z4rrmCJNSWtL0pNM7XHzcLTuzjgsnv4vDyOh OZksNapWWEA+lHVaPA50ZmSGdoOhDBGB16h3YCXt/nwpu94Nr4lTr15UgV0yXTBwGm17 R9oqJYM5iAL3/edKXb2Fhps+QIZS69rDHlLRGnDNFPrzGzS/oUqqcBnVEv4ev8ly+if3 JGD36hoqnpLjb/Qzfrp3cIILhZsu3ueT4oLe/+ud6KQxZnoc0etRwvrzhjwG9q4llIYY Kueg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=kntM5Awg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w2-20020a056402070200b004ab09d10379si3509637edx.450.2023.02.23.05.37.23; Thu, 23 Feb 2023 05:37:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=kntM5Awg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234283AbjBWNfL (ORCPT + 99 others); Thu, 23 Feb 2023 08:35:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233920AbjBWNe7 (ORCPT ); Thu, 23 Feb 2023 08:34:59 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 328B83346F; Thu, 23 Feb 2023 05:34:58 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 5502D660220A; Thu, 23 Feb 2023 13:34:56 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159297; bh=jFlvEa9umviwW9HdtIpX7rwDDrEbdIW1Lu37fWHY6Jc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kntM5AwgKX26gYdEGJ3RvpEOmIRLr4Ms4C4mKuT+bG3cAcqlAt3c1T3uAwjkYhfbL daYeus0x3tKaahnQkyiZLSSVmS0roW4+Wd95DYEjVJQDmFG0oVhKOblEx1H08SjO8Y SldPs9Ov6jVmj10004fTmDDHRF7euDMO0pQAek7wUbECOYcpOGftGN+O6aMEDhiM1c IH20vtcSEmZe5q2zuiVuN6/kJXj+dj9nHRv0FsPOuMLOogsBYtxhdd3zDOmAa6BbXg IBPSR6xM7FkfXHv2raMEntf5Dfsgt8Cps9BMRFtlo134gGRkFW3qzFsWVI5Gsx8YNw Tuskcltn3d0Nw== From: AngeloGioacchino Del Regno To: airlied@gmail.com Cc: daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, steven.price@arm.com, alyssa.rosenzweig@collabora.com, matthias.bgg@gmail.com, robh@kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wenst@chromium.org, AngeloGioacchino Del Regno Subject: [PATCH v3 04/11] dt-bindings: gpu: mali-bifrost: Add compatible for MT8195 SoC Date: Thu, 23 Feb 2023 14:34:33 +0100 Message-Id: <20230223133440.80941-5-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> References: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758629165527733542?= X-GMAIL-MSGID: =?utf-8?q?1758629165527733542?= The MediaTek MT8195 SoC has a Mali G57 MC5 (Valhall-JM) and has the same number of power domains and requirements as MT8192 in terms of bindings. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Rob Herring Reviewed-by: Chen-Yu Tsai --- Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml index 65fe139ceb83..4d9ab4702582 100644 --- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml @@ -25,6 +25,11 @@ properties: - rockchip,px30-mali - rockchip,rk3568-mali - const: arm,mali-bifrost # Mali Bifrost GPU model/revision is fully discoverable + - items: + - enum: + - mediatek,mt8195-mali + - const: mediatek,mt8192-mali + - const: arm,mali-valhall-jm # Mali Valhall GPU model/revision is fully discoverable - items: - enum: - mediatek,mt8192-mali From patchwork Thu Feb 23 13:34:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 60974 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp315998wrd; Thu, 23 Feb 2023 05:38:20 -0800 (PST) X-Google-Smtp-Source: AK7set/A0JpsEP0FvX493YcGeO8PtnvOYnINn+qgDu+WmHNC5FerONbeyTJuv8ozPtBn24rq26Se X-Received: by 2002:a17:906:73d2:b0:87c:c1:111 with SMTP id n18-20020a17090673d200b0087c00c10111mr15306059ejl.4.1677159500248; Thu, 23 Feb 2023 05:38:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159500; cv=none; d=google.com; s=arc-20160816; b=bsO/OwBoGECX/2E0aHfPtjWJSXZ31Xm3db2skFpj19mP50ml1wzqvgtPYqTaLZVPml wZh3EztZaH56iQNhGM28AZSX3hbgzzv5SQonK03/WARow2hqRWjl88XpnToltwBDDMGF mOytlu2SRFYIbh8Ai+/MA73ed/7TGbJ/LtLR30XXAxrHDndDuA9a3nRmEfOnxah+IfrL xe2lPWmpNykePeB+ux+LBOF5yj2ySPF6VJfOyTuP6ROOd4RjddawCejQ6EekQvpxXNbX gGVzziU1Bp2rQhEwwXWFiacm9vNbbogDZyXkXpccn54WpZFV/OvMA8obrZxB679RkZ2X zPYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qbFCyiDnazR31Wpk8O7uCqJDZQcBF26z3rz3IXEylsw=; b=oDBqF32iYWPyVqoxW58x1RYr0XwTzsyfgcXMtNKWdo5aUmGsLx+uYWoWLRii1bg3UJ vyChGpcIKhgWlVSLnTMT0Kwz29zQAq18BIzqFrpDddvCgRfQ9E04FL2whaqjq4/Yqvjk rY8QJQn9LG3qFICy16iZLY29Po+C1ExfFChteZj1PLACqzh8KtemxFP5XcaDoaS2/noW I0C4+cmz54aB//NXFbrTi5UA6iblGiehPOlE9RO24gQ5YtqRA9n0m8nYMVtyldQ6UWYh ffWd/HnSrSdYI/8UDoOTEA6SeE15gZw4RwAi4Ft7aJP01EZFeZ2XHmy8bHXdxfoTYKQq nR2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=EGliHEY2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fq6-20020a1709069d8600b008e457e36ac3si6388587ejc.989.2023.02.23.05.37.41; Thu, 23 Feb 2023 05:38:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=EGliHEY2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234256AbjBWNfR (ORCPT + 99 others); Thu, 23 Feb 2023 08:35:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234047AbjBWNfA (ORCPT ); Thu, 23 Feb 2023 08:35:00 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EF4B30B0D; Thu, 23 Feb 2023 05:34:59 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 3E522660220B; Thu, 23 Feb 2023 13:34:57 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159298; bh=laOGM5qspmdr3Jbg8tYgPNAcwC0TKu24Y1j4uxBmTgs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EGliHEY2FfpU6ewOZ7Gre6/MTmOaJCwo/t4Arc33peJ3l5axYDKF8/A4na6/ER1AF toY/zW0lqddMZwoZlLsGiIYuy5mLRapDP0tLpSlEejPblTa8sPpZMVeXbrLsKyNkU+ rPyweyMABKl5lhSI8QPqLv46N0UDHuJQ8Vw99CI6XsnHWgN4lOOTZOX+cTs2kDgbUF TiPztTla2J93t2mg16jotppsSM71hY/mg0oc25XA++kE1ZkZTx3jB+01rBuu9LjGoR S7B5CAZvh40jslAKvY9Sxi7me4yAXOZT7qXu82Pyogefim6OylU49J6dIR0tjv2PSH IZe54ja4qT+Vw== From: AngeloGioacchino Del Regno To: airlied@gmail.com Cc: daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, steven.price@arm.com, alyssa.rosenzweig@collabora.com, matthias.bgg@gmail.com, robh@kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wenst@chromium.org, AngeloGioacchino Del Regno Subject: [PATCH v3 05/11] dt-bindings: gpu: mali-bifrost: Add new MT8183 compatible Date: Thu, 23 Feb 2023 14:34:34 +0100 Message-Id: <20230223133440.80941-6-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> References: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758629199891375220?= X-GMAIL-MSGID: =?utf-8?q?1758629199891375220?= Since new platform data was required in Panfrost for getting GPU DVFS finally working on MediaTek SoCs, add a new "mediatek,mt8183b-mali" compatible. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Rob Herring Reviewed-by: Chen-Yu Tsai --- .../bindings/gpu/arm,mali-bifrost.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml index 4d9ab4702582..be18b161959b 100644 --- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml @@ -19,6 +19,7 @@ properties: - enum: - amlogic,meson-g12a-mali - mediatek,mt8183-mali + - mediatek,mt8183b-mali - realtek,rtd1619-mali - renesas,r9a07g044-mali - renesas,r9a07g054-mali @@ -157,6 +158,7 @@ allOf: contains: enum: - mediatek,mt8183-mali + - mediatek,mt8183b-mali - mediatek,mt8192-mali then: properties: @@ -185,6 +187,23 @@ allOf: else: properties: sram-supply: false + - if: + properties: + compatible: + contains: + const: mediatek,mt8183b-mali + then: + properties: + power-domains: + minItems: 3 + power-domain-names: + items: + - const: core0 + - const: core1 + - const: core2 + required: + - power-domains + - power-domain-names - if: properties: compatible: From patchwork Thu Feb 23 13:34:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 60975 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp316057wrd; Thu, 23 Feb 2023 05:38:29 -0800 (PST) X-Google-Smtp-Source: AK7set+mvaHlN62jj1wiunTCRKbJshPjNYlhsTQdrhvSzf+MrCsaCMz5tEQQjtBkjOEaS47PqpED X-Received: by 2002:a05:6402:34d5:b0:4ab:dde:dea7 with SMTP id w21-20020a05640234d500b004ab0ddedea7mr12886236edc.2.1677159509115; Thu, 23 Feb 2023 05:38:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159509; cv=none; d=google.com; s=arc-20160816; b=VKe8aadJ0J+h8YDyjrOIMlDrrWyrmR4jVh0hJWxavkX+/mJqzVAWp1f6qIiHwgdQNR XNb9LWxRZo4QDuwgCLP29MEQNMFhBFpdD40DcwXPM5PWIfKD40dL319CEBdAKnBUQahC FRzp8/Zg+6qrE7++CsQb+0QyqGgO3dsnbNSEFVZgm5JQ0bzeR264iGDbuqaEup/+yTzq D/zdNcxPfkPSVonyX+/tASDMyT5O8M1k5guGvWqA/nwQK0j+u+mnKAhhPCsd/Ov726EE oLgxPtxthJ7+nefOKYIJ8MMoPvQrRHKg08o/iLZPx0AtN7ksyBffiulIaS2Gd38VaujU MhQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5PFdmTvEkXL5Fq1d/s1QVn/IJt1nY9cmUPxoQNK3fHQ=; b=fjBFKec3t0Sj/gzJQWn+wns4+QlpURVJTYJ+WimJfsp/e64UML5629Dn0AiawvgLEJ LVvp0GWZGGDLvLBBsofKEzQVUqHDOmeBMGXAZsuYXRMHkG8Oggp+VPiTze67cusHUj2v 2EZ8fTRmBG8D/7d0eFm5t7WdnsNAurt8dOpmAHVZ2cc1zUp0SpRZHvF2srzvIUlRmJH9 1Zjr73noJdd0GK/o6srWemPnxue/g7Xd9ax1qYIuGarY+QujuqbT7ZHUtfXeScsvg599 7t8X4+rfEwVHwTjhyJfF2xap3LpXtLpZTmXJvaU+EfNaMlwN19W/cshSrj2C+t6n+YRR /lHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ELHcbqVZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c9-20020aa7df09000000b004ace655ef52si12252118edy.523.2023.02.23.05.37.52; Thu, 23 Feb 2023 05:38:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ELHcbqVZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234367AbjBWNfT (ORCPT + 99 others); Thu, 23 Feb 2023 08:35:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234061AbjBWNfA (ORCPT ); Thu, 23 Feb 2023 08:35:00 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05C0731E37; Thu, 23 Feb 2023 05:35:00 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 242906602206; Thu, 23 Feb 2023 13:34:58 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159298; bh=8laopmxtR2OlouaKlRNp419Yf1O5zDNFgjtz+3x6w6g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ELHcbqVZlsGf9F5eWvkeUdUS6r54S6c20urNg8COWvLiOWeQLN+XvJdtF111drNqG j88UAdHB5EORMwWIwMyIohA02twGQKeDj7ZETlgdk8i+7kUKvsgdAqKBilxs2I3+fT xpq8W+03OxqlTT9zaJHwvHYhm/olqxKQWy2zyaXgvYVVyLtjeYrLxYFiD/0CtTh0Vh GokQAcANcL3X+dGcE05wB/n2KO8NzQc9cJgF//kOPUj8iUDBRVLq+rqephLG5oUx20 r+31XHYb3qsKZU+qoykzHtdlotX6tbGfzwcUtfEqoQWDMRM9JllelqjpF414w2xzzy Oih3Cp9+LICgQ== From: AngeloGioacchino Del Regno To: airlied@gmail.com Cc: daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, steven.price@arm.com, alyssa.rosenzweig@collabora.com, matthias.bgg@gmail.com, robh@kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wenst@chromium.org, AngeloGioacchino Del Regno Subject: [PATCH v3 06/11] dt-bindings: gpu: mali-bifrost: Add support for MediaTek MT8186 Date: Thu, 23 Feb 2023 14:34:35 +0100 Message-Id: <20230223133440.80941-7-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> References: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758629209800809559?= X-GMAIL-MSGID: =?utf-8?q?1758629209800809559?= MT8186 has a Mali-G52 MC2 2EE GPU (two cores): add a binding with two power domains (one per core) for it. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai --- .../bindings/gpu/arm,mali-bifrost.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml index be18b161959b..b9424f3ebd5f 100644 --- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml @@ -20,6 +20,7 @@ properties: - amlogic,meson-g12a-mali - mediatek,mt8183-mali - mediatek,mt8183b-mali + - mediatek,mt8186-mali - realtek,rtd1619-mali - renesas,r9a07g044-mali - renesas,r9a07g054-mali @@ -159,6 +160,7 @@ allOf: enum: - mediatek,mt8183-mali - mediatek,mt8183b-mali + - mediatek,mt8186-mali - mediatek,mt8192-mali then: properties: @@ -204,6 +206,22 @@ allOf: required: - power-domains - power-domain-names + - if: + properties: + compatible: + contains: + const: mediatek,mt8186-mali + then: + properties: + power-domains: + minItems: 2 + power-domain-names: + items: + - const: core0 + - const: core1 + required: + - power-domains + - power-domain-names - if: properties: compatible: From patchwork Thu Feb 23 13:34:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 60978 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp316874wrd; Thu, 23 Feb 2023 05:40:34 -0800 (PST) X-Google-Smtp-Source: AK7set8+kY3IvyDuISk9fUQ9Cny+OAN1cBh0FMoFUaVuLr0avtuEkFjwBMt3XbEZVhcliSreT5ci X-Received: by 2002:a05:6402:34d5:b0:4ab:dde:dea7 with SMTP id w21-20020a05640234d500b004ab0ddedea7mr12893825edc.2.1677159634161; Thu, 23 Feb 2023 05:40:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159634; cv=none; d=google.com; s=arc-20160816; b=ulXco3ujZ4fNMBinKl4yIqaANhKy/9v3uzqXuaHFliVlRFZ6+UrC0DGNw2hrB0xtl2 W5+Ykm6vmxpo9kV07C/qF1EKGGHZyZs3jSFLnpK1FpTevVXmmkMJ0dBWJ/HhJemjSkOS ZVbbTI8J3PTMQTQsSgSOQRJKCXHt0JJpd3c+DO68lz8z0p+tP5WMXS8fYmsCvw8k0exW thFPcb68IjIn35/jaeJrMP1ANAoyI6XD0utkmW0GCgCG3X2Fzh61SvX/9Kl9qpf5HUBH YPrV4nkQYdyEXzCFEA5B93YKlgJW0/kM4HkKMLPXsp1tH8UKq5YWoEOMgiEc9eT/lsEY XKcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Uu2ko/I2+FIAVizMpk+6MoW16wk0zrb3QEtaQNGzMgc=; b=aBXVGPvGV4kP+/Hq/1w7Vg+uFjkFAsE2msIOlCJ80ThYNWkj7rJGdbydwllcrl/9L0 cI+il9a66n0hj0WCf8ok93I1VF18k87rkkkZ/NyvyYta2sDWyf91zkGogCrmcBixMmOp Da/PSsgmeMSsMMQDMADSOaPKho+3uTj6C4YrX47onASNKKes7jIt+fUmgo/s5bCEogM2 b68LNmKH8BQMVl3wVB8/Ij2wQYTVpy5VhUwASbQqBmE7cbqVBIklfQy/lQOnVYPX5i1A 4DT0HOpu1tO1qJXtZdOWeIFitO0jE2CRU4VVtA5jSJmqiO9qVC+5UWDFW5KFOsb9QX7K iXZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Ct53OBIo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s7-20020a056402014700b004acda72375fsi3223239edu.84.2023.02.23.05.40.10; Thu, 23 Feb 2023 05:40:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Ct53OBIo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234571AbjBWNfX (ORCPT + 99 others); Thu, 23 Feb 2023 08:35:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233852AbjBWNfB (ORCPT ); Thu, 23 Feb 2023 08:35:01 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01D9A35273; Thu, 23 Feb 2023 05:35:01 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 08D39660220D; Thu, 23 Feb 2023 13:34:58 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159299; bh=X9j7xcxPWqqju4SwMykvvaoqD5cIUMh5cTk3zCzxcjY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ct53OBIozlhWIY3U/hyAhuOh03mRrpYYSm5EBI9k2O1t+NmARG3qpK6MZq7Usp1a7 e3Fk357GSQz7mhlI3a0J/hSn5f7MgDOuWhdNIUsV3Z+CYohayKPPJRRHaPxL5PYWRG 9t60KGEUMw9N+JwvU7WsJBKwBzAMyF9Sh3ADLSseFNb0hduGBvGL/FFJrt1nZ2nVPD S+OqEa/NcM5b3j8sfa56GsBACsyTpHarPuCc/4k/2x7uFgdlIaixZrqrnSWNQr5+rq s7IWJoofM/siC9v0IpFNbNlczNwXdmns2AGOm17TdgEDm5ybSdeschCbrp8VeszaZj 3oMABsiIUQRAw== From: AngeloGioacchino Del Regno To: airlied@gmail.com Cc: daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, steven.price@arm.com, alyssa.rosenzweig@collabora.com, matthias.bgg@gmail.com, robh@kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wenst@chromium.org, AngeloGioacchino Del Regno Subject: [PATCH v3 07/11] drm/panfrost: Increase MAX_PM_DOMAINS to 5 Date: Thu, 23 Feb 2023 14:34:36 +0100 Message-Id: <20230223133440.80941-8-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> References: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758629340422429748?= X-GMAIL-MSGID: =?utf-8?q?1758629340422429748?= From: Alyssa Rosenzweig Increase the MAX_PM_DOMAINS constant from 3 to 5, to support the extra power domains required by the Mali-G57 on the MT8192. Signed-off-by: Alyssa Rosenzweig Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Steven Price Reviewed-by: Chen-Yu Tsai --- drivers/gpu/drm/panfrost/panfrost_device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_device.h b/drivers/gpu/drm/panfrost/panfrost_device.h index d9ba68cffb77..b0126b9fbadc 100644 --- a/drivers/gpu/drm/panfrost/panfrost_device.h +++ b/drivers/gpu/drm/panfrost/panfrost_device.h @@ -23,7 +23,7 @@ struct panfrost_job; struct panfrost_perfcnt; #define NUM_JOB_SLOTS 3 -#define MAX_PM_DOMAINS 3 +#define MAX_PM_DOMAINS 5 struct panfrost_features { u16 id; From patchwork Thu Feb 23 13:34:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 60980 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp317890wrd; Thu, 23 Feb 2023 05:43:09 -0800 (PST) X-Google-Smtp-Source: AK7set8cQOGNpKSosKOv7pNMw4QBMr2plny/gL4FHEJwL9qroqK7/k+KGbzN60BK27bBasMXXpOR X-Received: by 2002:a05:6402:40cb:b0:4af:5ff1:8842 with SMTP id z11-20020a05640240cb00b004af5ff18842mr7582055edb.4.1677159788985; Thu, 23 Feb 2023 05:43:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159788; cv=none; d=google.com; s=arc-20160816; b=zFIYo2n4Uc7HV1RZoH0ohfgfjLAgfMrs64p9Ow/977WDxlpg3y0Aql0F/rYjNZI4oS kporU7j3xB2moUnAQjWUIA5NuVh6N/k6+Bsk36JMrrDHkXm1jhRVNfcpM0WfHFMMpA2F OhApSF0i3rXTeOqvLqYcLewhNy7q+FoFGggHvYzsL1pDhXm2JVoSZyevajSiyC0gPW45 0H/dBFA4k3oCmAEDHWA4hKuzY72v52QT4Oi04NNAqfZYeIMDB51qGuFzJCJ1bm346vnk T5iZX9Gk+PEFs/TB1YDYYGAWI+WtNLcwcWlDQysOLaDKVvSyFntNMWDNRGHGHritwCi+ BTNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oRRbmSQ3Rq/4N4LJOPHJPIMC9cy1PqF0Em/E+4AfhBU=; b=tr5VN0KM9p5GR0o4XvgZ0GNA3G5GdsBUViJ/YaXinrv/Ip4i50HT1kd9zhurtcfMuJ 5KLVWMkshDVxEAEzm+5DqG0BjzXhv6u+mtY+r0S7buS/xQ9DZ+Hbcz9P93+qTSql8NSp 2TYMeid89G43D4KNtOVg1atSUeycVpC68vv6Zr07dn4f+UqYp61ZUAXonT67zbCXQFIN Sk3gpko85c20frwviTHo2fyc+v+jxu4ofpPO4Pc2TCXyCP97nsN5UkoxlADXOgaoB5Gn LoyvqchSqdndRDzamcS49EZV8Iv5gNxCc5KSytGcsBovd5csVQA1QxFyKcPvgZbtS9Pv c0tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ObJ4LF5X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w2-20020a056402070200b004ab09d10379si3509637edx.450.2023.02.23.05.42.46; Thu, 23 Feb 2023 05:43:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ObJ4LF5X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234617AbjBWNfa (ORCPT + 99 others); Thu, 23 Feb 2023 08:35:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234032AbjBWNfD (ORCPT ); Thu, 23 Feb 2023 08:35:03 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7034498A0; Thu, 23 Feb 2023 05:35:01 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id DA46F660220C; Thu, 23 Feb 2023 13:34:59 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159300; bh=HedQD3Ilc5pEnx8vhQO81s7TTNK+oqpJPvaglDZ6DvY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ObJ4LF5X4PZNlRDmnrWekg9i9g2IizcQbV6DRR2GJSeASIpU55TnttDCZPkW9wK7F oUEhnbgnMZuYUxMivnVUUIu78obGY9N+2hbQebVBpSrL3J6iNUE6QPtN9zMLJMWQJn oYow2HNSSLAkeGQdcye85zzh8jm6DWR4dmTDrthfu/YItt4/N5dG6E+KqNS9UP+yMV qoYDuBiX0DSgSIFDYBkJBs8gi/y70dnXLP19Ie7af1tGWI9HxOGWpd0b6tXFKbNwk8 7h8/l2kY1WGogawQoutk9u6HwFXujUyvGsY/9rXodKqZdIzAtYqf+iLsW6PNZc0xAn rl6X23v6rdpwA== From: AngeloGioacchino Del Regno To: airlied@gmail.com Cc: daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, steven.price@arm.com, alyssa.rosenzweig@collabora.com, matthias.bgg@gmail.com, robh@kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wenst@chromium.org, AngeloGioacchino Del Regno Subject: [PATCH v3 08/11] drm/panfrost: Add the MT8192 GPU ID Date: Thu, 23 Feb 2023 14:34:37 +0100 Message-Id: <20230223133440.80941-9-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> References: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758629502962758235?= X-GMAIL-MSGID: =?utf-8?q?1758629502962758235?= From: Alyssa Rosenzweig MediaTek MT8192 has a Mali-G57 with a special GPU ID. Add its GPU ID, but treat it as otherwise identical to a standard Mali-G57. We do _not_ fix up the GPU ID here -- userspace needs to be aware of the special GPU ID, in case we find functional differences between MediaTek's implementation and the standard Mali-G57 down the line. Signed-off-by: Alyssa Rosenzweig Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Steven Price Reviewed-by: Chen-Yu Tsai --- drivers/gpu/drm/panfrost/panfrost_gpu.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/panfrost/panfrost_gpu.c b/drivers/gpu/drm/panfrost/panfrost_gpu.c index 6452e4e900dd..d28b99732dde 100644 --- a/drivers/gpu/drm/panfrost/panfrost_gpu.c +++ b/drivers/gpu/drm/panfrost/panfrost_gpu.c @@ -204,6 +204,14 @@ static const struct panfrost_model gpu_models[] = { GPU_MODEL(g57, 0x9001, GPU_REV(g57, 0, 0)), + + /* MediaTek MT8192 has a Mali-G57 with a different GPU ID from the + * standard. Arm's driver does not appear to handle this model. + * ChromeOS has a hack downstream for it. Treat it as equivalent to + * standard Mali-G57 for now. + */ + GPU_MODEL(g57, 0x9003, + GPU_REV(g57, 0, 0)), }; static void panfrost_gpu_init_features(struct panfrost_device *pfdev) From patchwork Thu Feb 23 13:34:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 60976 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp316471wrd; Thu, 23 Feb 2023 05:39:31 -0800 (PST) X-Google-Smtp-Source: AK7set93fxS5nFGQqbtP1kvmv4f8nwgzaWN2VGmx9eIIGqmeo2+2/F9vSfT210kJ/qGXJSrKWVtA X-Received: by 2002:a05:6402:35c9:b0:4ad:9b2:5e70 with SMTP id z9-20020a05640235c900b004ad09b25e70mr13502833edc.1.1677159570929; Thu, 23 Feb 2023 05:39:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159570; cv=none; d=google.com; s=arc-20160816; b=w6rsjhsQ26Lvon8nddze5x4gSVFUTglldM322Vfk2xqOLCecZ+IE74ZcKXxHt8LZ6Y PmVlmYWZaPY6ijXiEPTwmX6sPNF3fPsaJMvZnu/3mnjnyNpttKb5FluvIpyIrrSKfCrL NgBXYEqNDU9JYs3lj9Hnmf++LvV2n7CfTLHpBWCkRwUb/WsA0HIsmPruuUnxdLLe7wmU Wkj9hJI9l+EorrjUmb5MwMkd7olRdH8vT49ZUTqTfVwzJutgpqPCl3QouqAHKP2zbfZC +4gF+JduvTKN+aPmohwzdJ7OBT04pKA0HjGe1XzWKb3t0odqPYoNK+kTAEPa2vhgB6rb UxrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/rRZquBeL2jOnSPHoHCrDfUkL4Y+iXOG/ZqD2+1dOXQ=; b=vE1C8WDRFaPkS54QgEi6/Utn2KVJfQt6wYnLAGrZ4uScpWoYKAvc0cZgwrqQv+avJc fDYmpWYBIA0qIcTOFexXNFR4MOQoxIsoD3xLW/9Ua6hjL7Aqa+Yqo3kkBDfG5HXvoao0 8y7gy47wL8TxiBAUCiAXf8gv40l/ix0kdqSG0Vlbg+//sq2SRYOkCk3RV9T7O0Ip1K8u jxHTncfo7bxsQXzTTZGmyE9x6KEdySA2+UMi8FHHE2dR3p+dnNTlcDlC16vlYEUnCJ5F r9LWSgjPYDKaq8spmgYOhNvWYzq48uXKptFPVUIIBntOdhEELBDGWySQP3dK9UwhR0M5 iMJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=K2hEs3qW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa9-20020a170907868900b008eb33b0bb02si5980109ejc.427.2023.02.23.05.39.07; Thu, 23 Feb 2023 05:39:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=K2hEs3qW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233883AbjBWNf0 (ORCPT + 99 others); Thu, 23 Feb 2023 08:35:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234041AbjBWNfE (ORCPT ); Thu, 23 Feb 2023 08:35:04 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E26B35273; Thu, 23 Feb 2023 05:35:02 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id C04366602207; Thu, 23 Feb 2023 13:35:00 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159301; bh=XOBRNDDFJGfYsIgxMZ/xxG6T/bqER3TGwYBPNyV4tY8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K2hEs3qWTn6Jo3MfIL2vRN2fscHXem6euUhAtaPSESk/8f+QmDgSKg4RNQkN7ADfG yNLagQDw1+8fH4IyI5bf9aUaxNRXWGD3K1LHA/QpY0nPMqJLmwsv+Hz1XHoaCiBdEK 3lWrNGkg5nsymLLa3V4R64G9yrDPZxlAgLgsomQyGPj1WpI8YXQ1E29Kc9CTlDpV6G BbiUu1CpwYfCkqsgdqJP4x255zFuZfC8gQdVd+uN70vEz6Wykcqj3dlu7DHrmQata3 hSjaG5/xFnUII6Gd3ZUu/r7S9OKfK9KE95yWYbGhkyQ3IgObvy9x7HYXI7mxj6Lf1/ jJnNG8vAes+wA== From: AngeloGioacchino Del Regno To: airlied@gmail.com Cc: daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, steven.price@arm.com, alyssa.rosenzweig@collabora.com, matthias.bgg@gmail.com, robh@kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wenst@chromium.org, AngeloGioacchino Del Regno Subject: [PATCH v3 09/11] drm/panfrost: Add mediatek,mt8192-mali compatible Date: Thu, 23 Feb 2023 14:34:38 +0100 Message-Id: <20230223133440.80941-10-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> References: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758629273899387301?= X-GMAIL-MSGID: =?utf-8?q?1758629273899387301?= From: Alyssa Rosenzweig Required for Mali-G57 on the Mediatek MT8192 and MT8195, which uses even more power domains than the MT8183 before it. Signed-off-by: Alyssa Rosenzweig [Angelo: Removed unneeded "sram" supply, added mt8195 to commit description] Co-developed-by: AngeloGioacchino Del Regno Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Steven Price Reviewed-by: Chen-Yu Tsai --- drivers/gpu/drm/panfrost/panfrost_drv.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/panfrost/panfrost_drv.c index abb0dadd8f63..5d25e77e1037 100644 --- a/drivers/gpu/drm/panfrost/panfrost_drv.c +++ b/drivers/gpu/drm/panfrost/panfrost_drv.c @@ -663,6 +663,16 @@ static const struct panfrost_compatible mediatek_mt8183_data = { .pm_domain_names = mediatek_mt8183_pm_domains, }; +static const char * const mediatek_mt8192_supplies[] = { "mali", NULL }; +static const char * const mediatek_mt8192_pm_domains[] = { "core0", "core1", "core2", + "core3", "core4" }; +static const struct panfrost_compatible mediatek_mt8192_data = { + .num_supplies = ARRAY_SIZE(mediatek_mt8192_supplies) - 1, + .supply_names = mediatek_mt8192_supplies, + .num_pm_domains = ARRAY_SIZE(mediatek_mt8192_pm_domains), + .pm_domain_names = mediatek_mt8192_pm_domains, +}; + static const struct of_device_id dt_match[] = { /* Set first to probe before the generic compatibles */ { .compatible = "amlogic,meson-gxm-mali", @@ -681,6 +691,7 @@ static const struct of_device_id dt_match[] = { { .compatible = "arm,mali-bifrost", .data = &default_data, }, { .compatible = "arm,mali-valhall-jm", .data = &default_data, }, { .compatible = "mediatek,mt8183-mali", .data = &mediatek_mt8183_data }, + { .compatible = "mediatek,mt8192-mali", .data = &mediatek_mt8192_data }, {} }; MODULE_DEVICE_TABLE(of, dt_match); From patchwork Thu Feb 23 13:34:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 60977 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp316856wrd; Thu, 23 Feb 2023 05:40:31 -0800 (PST) X-Google-Smtp-Source: AK7set8Dj2YE7PvUDfhMSZpMHLQHB2Fh95ZfgJWtTTZQYfB5cSmNQ17bGetPD+WEeYOrbKm/DTAc X-Received: by 2002:a05:6402:11c6:b0:4af:593c:c07f with SMTP id j6-20020a05640211c600b004af593cc07fmr10361787edw.3.1677159631234; Thu, 23 Feb 2023 05:40:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159631; cv=none; d=google.com; s=arc-20160816; b=WaHE5kOkdDbIeW5duu04QoU0IQseR3Lh7xc4qbD0eRPqY8mYGY8t5viXogElexHZ0S hqiCyQ3QteWp2t//4SHyJfmzyjnnAFudEvDWQfQRIZHzs5tzmDGvAWN0yQqxcJqcgIW/ kYX2zOqgnbs3MWKhdsNf3QOZ58SwXj39ZuJhyqgQg5BqYBb/QOG6InmCf5ac0TX/dLIx MCPu/ycUwuN4GcjI5P5aGa27NNN1TbgLE4YxT8paQmnXNh5fQLDT1sTOOvqySvDqiJF5 ZE/9ERjKf6yk/5IUg8xhXZTrs2se86UdsE1vWISm4mXM8f9CCcSrMZctemLDpqWyvHcX 8B4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kJkPXXd0E1FJFKrycqmi608Pd6u8FQxFygP/oYqBqwk=; b=lL5rcty7U/tO3yRHCqGrVThlviNwEUx/D01MzxQDxG7hK9k29zD01eDt6OEvC7qi8Z pgGgh5caWQ1utTqEVBOB7GAyE3evpEtHxQHivBH9mYhgnT1n3AH4GAGJbbKeOJBb3lke WkbQy9Pg0nJMb0xLVyI6u2HVDWy16moSbwezNB1YmG4QeCgFZPyTAzAklax51mPBRV5N H0cuDQYP6Fb8tzcufpN+8zMDlSFHx14lySthBfuygdyQK0kIR9aWQrD69DavPvCVAdVO oZ0s0nLfS1oUiZLc6lxYS6xVB481qJwhqZIYYiNreR8Ecm0WnxGfu7v2LN/kk0dCECcu N1qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=BiGnh69I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h23-20020aa7c617000000b004acbdeffe51si9035705edq.603.2023.02.23.05.40.07; Thu, 23 Feb 2023 05:40:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=BiGnh69I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234607AbjBWNf2 (ORCPT + 99 others); Thu, 23 Feb 2023 08:35:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234119AbjBWNfF (ORCPT ); Thu, 23 Feb 2023 08:35:05 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 971015679F; Thu, 23 Feb 2023 05:35:03 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id A474E6602208; Thu, 23 Feb 2023 13:35:01 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159302; bh=d98v4XkYuSdlaBMRVhy8ckf3WPpqfT9gFqNu9PlgtLo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BiGnh69IV/fDTW/ttFIjrRlyQipfGpN6lJfGvE8RG2QP5PA2XxzKvXP5T0Ng30Nbu RPgrEYsC2hIJHKsn+o/2NYBKQ9jEsCy2fur4ybtcGZNpVj3tQ1RPclzrvY4ehkELXv qTproiq1OpDgtg28YiTGIaxko0qMPLWKxsSdMg0KRImVJzxDUGCaeQuSjjec5g/Wkz 8u9XDpkT2rBpeC/ReF60wO+BuIIRTK3ZzPVxsbtrA01FkZ/pNVOuPUJdfv72MaCrET gNF76Um5JwfxiPt318kFBhfmNHuUfMmvoLEjMu/hZ8p1LH2fMEdCvE4SqoWq9Cr4zh lrM0jQS0jAynw== From: AngeloGioacchino Del Regno To: airlied@gmail.com Cc: daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, steven.price@arm.com, alyssa.rosenzweig@collabora.com, matthias.bgg@gmail.com, robh@kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wenst@chromium.org, AngeloGioacchino Del Regno Subject: [PATCH v3 10/11] drm/panfrost: Add new compatible for Mali on the MT8183 SoC Date: Thu, 23 Feb 2023 14:34:39 +0100 Message-Id: <20230223133440.80941-11-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> References: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758629337389768738?= X-GMAIL-MSGID: =?utf-8?q?1758629337389768738?= The "mediatek,mt8183-mali" compatible uses platform data that calls for getting (and managing) two regulators ("mali" and "sram") but devfreq does not support this usecase, resulting in DVFS not working. Since a lot of MediaTek SoCs need to set the voltages for the GPU SRAM regulator in a specific relation to the GPU VCORE regulator, a MediaTek SoC specific driver was introduced to automatically satisfy, through coupling, these constraints: this means that there is at all no need to manage both regulators in panfrost but to otherwise just manage the main "mali" (-> gpu vcore) regulator instead. Keeping in mind that we cannot break the ABI, the most sensible route (avoiding hacks and uselessly overcomplicated code) to get a MT8183 node with one power supply was to add a new "mediatek,mt8183b-mali" compatible, which effectively deprecates the former. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Steven Price Reviewed-by: Chen-Yu Tsai --- drivers/gpu/drm/panfrost/panfrost_drv.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/panfrost/panfrost_drv.c index 5d25e77e1037..14cdeaeeb5c4 100644 --- a/drivers/gpu/drm/panfrost/panfrost_drv.c +++ b/drivers/gpu/drm/panfrost/panfrost_drv.c @@ -654,6 +654,14 @@ static const struct panfrost_compatible amlogic_data = { .vendor_quirk = panfrost_gpu_amlogic_quirk, }; +/* + * The old data with two power supplies for MT8183 is here only to + * keep retro-compatibility with older devicetrees, as DVFS will + * not work with this one. + * + * On new devicetrees please use the _b variant with a single and + * coupled regulators instead. + */ static const char * const mediatek_mt8183_supplies[] = { "mali", "sram", NULL }; static const char * const mediatek_mt8183_pm_domains[] = { "core0", "core1", "core2" }; static const struct panfrost_compatible mediatek_mt8183_data = { @@ -663,6 +671,14 @@ static const struct panfrost_compatible mediatek_mt8183_data = { .pm_domain_names = mediatek_mt8183_pm_domains, }; +static const char * const mediatek_mt8183_b_supplies[] = { "mali", NULL }; +static const struct panfrost_compatible mediatek_mt8183_b_data = { + .num_supplies = ARRAY_SIZE(mediatek_mt8183_b_supplies) - 1, + .supply_names = mediatek_mt8183_b_supplies, + .num_pm_domains = ARRAY_SIZE(mediatek_mt8183_pm_domains), + .pm_domain_names = mediatek_mt8183_pm_domains, +}; + static const char * const mediatek_mt8192_supplies[] = { "mali", NULL }; static const char * const mediatek_mt8192_pm_domains[] = { "core0", "core1", "core2", "core3", "core4" }; @@ -691,6 +707,7 @@ static const struct of_device_id dt_match[] = { { .compatible = "arm,mali-bifrost", .data = &default_data, }, { .compatible = "arm,mali-valhall-jm", .data = &default_data, }, { .compatible = "mediatek,mt8183-mali", .data = &mediatek_mt8183_data }, + { .compatible = "mediatek,mt8183b-mali", .data = &mediatek_mt8183_b_data }, { .compatible = "mediatek,mt8192-mali", .data = &mediatek_mt8192_data }, {} }; From patchwork Thu Feb 23 13:34:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 60979 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp317591wrd; Thu, 23 Feb 2023 05:42:20 -0800 (PST) X-Google-Smtp-Source: AK7set8X0iA8VNRVnlJW7gZ1E899zb/XmnqMamZtqCODgSdCesAL5en6xqk8dpDJsUK4sl1Kue8g X-Received: by 2002:a17:906:150:b0:894:4341:77d6 with SMTP id 16-20020a170906015000b00894434177d6mr18683186ejh.1.1677159740678; Thu, 23 Feb 2023 05:42:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159740; cv=none; d=google.com; s=arc-20160816; b=YExV+el79RvY4SJuUoFPq2A9fRkT/gD2UkQp2VkVlr2fA1IcBo0v7HEdJjXevCfICw KUFO4QVkPY5kXomraGqFpIrGAWobM8j9+d+T5B4SDjaqVafT1Rb8fuls278hcIEXx18F uQAPzNrkJaC92U2Hc0JfS610edx4Hb0U4WPKqb4wEGmeSR8kGGp+CdJYfmoZdCS/3+IS o0cHty2fn8jvFmqCbXmMMU2lIoPvD8H/6lCqhWb1mMIrqGIBGXgjELV7Tb53BuuIGVS7 uGpQi+Ga8ROVaUDHMw7ZzhLFAYaxVd1fywxX2a/8NFVSODcYTJWUPbSbomimDDZmdFxf +JTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FMfdiM13fhNnqDKSct6SZ9/VsenkCovJxjsYEtqYwCE=; b=CjQ4dWojEtsBSPYnMBv9LByteQ73lCiQLtoxzI3ZO1ezyA1ndab+TDyEI71wj5kVNP Iaqo6o3PPKseKBL0CMs5eo5Ee2mX1GI1okhX9pJpsKJjsbaDF6ViEMCUQ4aXIRIt+ABK KhSUwt+hr0FMTkySVpIEKEYiYgobNQYlCqXeIwsrTetTvqAU+8o4i2llUEcd0otERwU1 uCGW1Gt2507vSlvQ+26bjTvDjz5nKX7I46SSqYITxDl8T5sYobWMyuSkEV9CAuMX5hOI efw55e973H4BJ+w1MVO60OYTgBN+g2i0TTJHQUOnBkMacBm603bNY2uHE0wwJFP//uKu GgUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=DU3AqJ0z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kb3-20020a170907924300b008b97df5bd54si17304349ejb.961.2023.02.23.05.41.57; Thu, 23 Feb 2023 05:42:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=DU3AqJ0z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234629AbjBWNfe (ORCPT + 99 others); Thu, 23 Feb 2023 08:35:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234247AbjBWNfG (ORCPT ); Thu, 23 Feb 2023 08:35:06 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67C3430E89; Thu, 23 Feb 2023 05:35:04 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 8C6CA6602206; Thu, 23 Feb 2023 13:35:02 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159303; bh=hkk4f6FFc9GkAmhDJ/1AiRSfMxb8riRRgIr9wuciCH0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DU3AqJ0zCCiOWwKjRhzNTq4/7HwCBpb9jEPw1PWupbABOHnMVA1gWQgVpgd9kHSqN v54YewBfLsyLZP4fA0GVryUdVTTG3Mytud2s8G7t2Pf9FBJDacdlgUCEcIhN8RvqJo ZvXHitMOwFh28a/EsK1vNvT16Mss035RjZuHjZN+AJv0rd6wYtbwVkU9wfvAeNThVg mRuxTEQJH3sbODV+l2h6xljlgD16lkvD/RjrPXDqQYp0SsyEoJemHQuDJ6DyfcLhXy XyDgx0r2fTFZflf/zIc51MCARWXOJOjbu1toIj3odbWDB95bbnMs18uZJrHmS3qd07 wvWOh2NW9HVZw== From: AngeloGioacchino Del Regno To: airlied@gmail.com Cc: daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, steven.price@arm.com, alyssa.rosenzweig@collabora.com, matthias.bgg@gmail.com, robh@kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wenst@chromium.org, AngeloGioacchino Del Regno Subject: [PATCH v3 11/11] drm/panfrost: Add support for Mali on the MT8186 SoC Date: Thu, 23 Feb 2023 14:34:40 +0100 Message-Id: <20230223133440.80941-12-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> References: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758629452261628682?= X-GMAIL-MSGID: =?utf-8?q?1758629452261628682?= MediaTek MT8186 has a Mali-G52 MC2 2EE (Bifrost): add a new compatible and platform data using the same supplies list as "mt8183_b" (only one regulator), and a new pm_domains list with only two power domains. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Steven Price Reviewed-by: Chen-Yu Tsai --- drivers/gpu/drm/panfrost/panfrost_drv.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/panfrost/panfrost_drv.c index 14cdeaeeb5c4..e4053bf84c62 100644 --- a/drivers/gpu/drm/panfrost/panfrost_drv.c +++ b/drivers/gpu/drm/panfrost/panfrost_drv.c @@ -679,6 +679,14 @@ static const struct panfrost_compatible mediatek_mt8183_b_data = { .pm_domain_names = mediatek_mt8183_pm_domains, }; +static const char * const mediatek_mt8186_pm_domains[] = { "core0", "core1" }; +static const struct panfrost_compatible mediatek_mt8186_data = { + .num_supplies = ARRAY_SIZE(mediatek_mt8183_b_supplies) - 1, + .supply_names = mediatek_mt8183_b_supplies, + .num_pm_domains = ARRAY_SIZE(mediatek_mt8186_pm_domains), + .pm_domain_names = mediatek_mt8186_pm_domains, +}; + static const char * const mediatek_mt8192_supplies[] = { "mali", NULL }; static const char * const mediatek_mt8192_pm_domains[] = { "core0", "core1", "core2", "core3", "core4" }; @@ -708,6 +716,7 @@ static const struct of_device_id dt_match[] = { { .compatible = "arm,mali-valhall-jm", .data = &default_data, }, { .compatible = "mediatek,mt8183-mali", .data = &mediatek_mt8183_data }, { .compatible = "mediatek,mt8183b-mali", .data = &mediatek_mt8183_b_data }, + { .compatible = "mediatek,mt8186-mali", .data = &mediatek_mt8186_data }, { .compatible = "mediatek,mt8192-mali", .data = &mediatek_mt8192_data }, {} };