From patchwork Tue Feb 28 10:26:53 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: 62395 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2933164wrd; Tue, 28 Feb 2023 02:29:29 -0800 (PST) X-Google-Smtp-Source: AK7set/GNyrmKJDIZEX4XAjOf1cRoQhGhHpGgG0miw9BCD9epBzllpNg8S47TbNUiOxrq/G2v8Hq X-Received: by 2002:a17:906:9b2:b0:8b1:3a18:9daf with SMTP id q18-20020a17090609b200b008b13a189dafmr2042495eje.74.1677580169640; Tue, 28 Feb 2023 02:29:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677580169; cv=none; d=google.com; s=arc-20160816; b=1G7fbhiL/GHFV/hFsdK8MXXl0GvV074G5uS1M1zQAe9QAogqoEB7dIS4/WT7+gUh0M Ree/1hKY6sWKNJd4twVUJ3hWNsxGoZ9Z22aHtc+VsX2Wc90OhGmEtM6zQqqgudwLmGu8 /c/aeq2CNW985sP49b1hz2UGl8YxwE1WHkcVL/i2FshmEPbzIsuJy1KbNFAzvYXem9Yj 0vS126cWN4dq3kHP9MXplPPufgyWlAWzmjOCxOKzQOFTqeUyItH55nqYx/qAzawx8f9O SlkZqICuv/z6s3nQsNbdikPL+R9tmXJIVIDxI65Q5hY0uAF/sgKaEnj5m182JAEs8JPK 78NQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=WBQ4siMRXVB9SrdHJDrM1tHlRn4OZfx2GTuin+J2Lo4=; b=wlwM+yDo1QEMDlf8/wXPuMF9iMER0c9zqpor65E/P1bd2Af1CopBMNVvkzYTjmg/Pz W1W6DkAoVxRA2ZBIqlARVuTVZsHVMGxDWgkh6kz4F69pXBldivJhsOExiOXuQ14cWw1+ pHl6C2KcUFTXPo2YoseHDl50l+Dgv90gzzfDflYJw3XJ9CvugnyC/7Gc+rJmVGQ6MbKv BFZXIOZ5iWzDu0LJOH+aw/2M3eAEhTjJDAPiK3Ui6mKSEPdhGC+PeMC8haMVATYNIzxV wfr9eZjasPmq5FbAbfsJS9nnQwaQED6Z478cC8Jh4K2/EtKTn067vaW9IDhtqP6NI8qu X/jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="LA/b4pGc"; 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 i24-20020aa7dd18000000b004aa9a77fea3si11408805edv.626.2023.02.28.02.29.07; Tue, 28 Feb 2023 02:29: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="LA/b4pGc"; 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 S231137AbjB1K1O (ORCPT + 99 others); Tue, 28 Feb 2023 05:27:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230373AbjB1K1M (ORCPT ); Tue, 28 Feb 2023 05:27:12 -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 1287F29E30; Tue, 28 Feb 2023 02:27:11 -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 31DF46602F90; Tue, 28 Feb 2023 10:27:09 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677580029; bh=g3NFpJH4/03P+ic0BhIheOKxhuMMGL+BE+w/2aTRtIY=; h=From:To:Cc:Subject:Date:From; b=LA/b4pGc1pYewDwhPssPa64PjNlqjxa1iWFAH07T1+oVAmCIJpmHfi2DrgrlXbnLO m1Anv6hn3Fyb3U8XwyXAKrN46v85PD2nrrUSg7sTLnvlwbCt5CWyPKV7TbLw6krpjI 6SuFxwHXemINV4Swuufmdx1Mj29/0zebztcOBizo93nt1I1jhZW+jB3O981Ko1Cjyy Z341bJKmyJUQ1I70Ofj/WLt9GsCMMDuh/lZHKayubYicQ30TA0Shz5moJLDEAmWglp pQAWHnK9yBUxgIrNBpgDgqg8agXKBviPVnvO78eez7ZbkbOCO4AeMoryvyhSQP5YIH DJmeqg3wSBXow== 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 v4 01/12] dt-bindings: gpu: mali-bifrost: Split out MediaTek power-domains variation Date: Tue, 28 Feb 2023 11:26:53 +0100 Message-Id: <20230228102704.708150-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 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?1759070303885538373?= X-GMAIL-MSGID: =?utf-8?q?1759070303885538373?= In preparation for adding new bindings for new MediaTek SoCs, split out the power-domains variation 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 Tested-by: Chen-Yu Tsai Reviewed-by: Rob Herring --- .../devicetree/bindings/gpu/arm,mali-bifrost.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml index 78964c140b46..7e110751353e 100644 --- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml @@ -109,6 +109,9 @@ allOf: contains: const: amlogic,meson-g12a-mali then: + properties: + power-domains: + maxItems: 1 required: - resets - if: @@ -131,6 +134,8 @@ allOf: - const: gpu - const: bus - const: bus_ace + power-domains: + maxItems: 1 resets: minItems: 3 reset-names: @@ -164,8 +169,6 @@ allOf: - power-domain-names else: properties: - power-domains: - maxItems: 1 sram-supply: false - if: properties: @@ -180,6 +183,8 @@ allOf: items: - const: gpu - const: bus + power-domains: + maxItems: 1 required: - clock-names From patchwork Tue Feb 28 10:26:54 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: 62398 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2933357wrd; Tue, 28 Feb 2023 02:30:04 -0800 (PST) X-Google-Smtp-Source: AK7set8CYS7kyCtUnuKGAzh4jRQN+ORhRX1sIhLN3/EkkhJoo52q8FYy+Pb/OeetLz+Vh5J1IISg X-Received: by 2002:a17:907:7245:b0:8cf:fda0:5b9b with SMTP id ds5-20020a170907724500b008cffda05b9bmr2764510ejc.22.1677580203964; Tue, 28 Feb 2023 02:30:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677580203; cv=none; d=google.com; s=arc-20160816; b=bhGvbOs2Xen/o965diE4ee43sx8K75b4aEq/wO6P2msxE+iHtGudjqO8OFYX7RxPMh GEAVa/F+k7EF+VHx0bvpdTob/uba3NOUecIhU2jjkWe1SXvEqblTh2jsiGKM4XH+xuZn 1cjuJAxEY5/LGTrpn14XW1ZZgCGC9JO1x5JM8kVc2PSKmCFCNO0rws4Wn9CBgi1s5ApH k1mR6vLLxcJ7IvdBRwKn57V2tX+xXrA7CJICQSAorfpWxjlkHZNKx64dV8nQR5gDjBST V0My05vw4WqF9MEsF47AcLMdTPEON04u1atohgKCVeZfIpy7iIbqUINf8v0zJwPkCAcf d0jQ== 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=AoTZEtmrkUQkLMvWbseF56KVXsJKgmVJ5cikWWvBTp4=; b=QyKUJvOnJeq3CVN+Gv8uMmzRqErsPQZ8bLDQQxSdh50R9SJQL4n5mGhABYNG7WTDjz iBJGRhhuVoQgHe32oarW4MbWZfd4e8pgfeVvoXRPgPvaHp8CQ24gThbOGiK0QpkX6gag AoBaYwznkuxVxDu6s6kABvX6/ovTH1lfQLjew4YiJWVW8adoWI8NcuKDZhOldUkCLyNr W5x5IiSTFo7cYZRVyBQFGI5SQJXtwF6nq/3mqj39+VctMn5Jn2sWnivsEsn/j9guI1XV AFO594byortQmJyGlIPPtJPYhrO0rUsvHIKSeCKFhP5N+3xE4qU/wpUuzgvDb6pSlcpW kTzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=HwanA9e8; 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 l4-20020a1709065a8400b008cfb2ae5e81si10250630ejq.625.2023.02.28.02.29.41; Tue, 28 Feb 2023 02:30:03 -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=HwanA9e8; 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 S231213AbjB1K1T (ORCPT + 99 others); Tue, 28 Feb 2023 05:27:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230481AbjB1K1N (ORCPT ); Tue, 28 Feb 2023 05:27:13 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 469B1233EB; Tue, 28 Feb 2023 02:27:12 -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 19EDA6602FD8; Tue, 28 Feb 2023 10:27:10 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677580030; bh=07ttYEO0iBLHOrhXOFTPyKzhESTahMlFIiXlO4bGx5g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HwanA9e8mQdP3F3nehvW+iHlvEKe5WR1w7Ik64jb67REBrVYaOGHmeCnb/cBWmP+3 O0eqLn0o54Vtl2zQIJvaoTCJkmxc1IJTDGM44j2cpFV0SQ80Hb7sqzgFXHNuDSvCUF 6A8nwA2xhX+22Q2aFA2Ckbg3gdo8bsL/CuDxdXJLaB2H0nFXGDQQ5phS42jz2Le6cq UAniRBIPAO0lVda2L67lVGR2ut/B/j/oi7s1bhuBLvCOdJSpEPdmlRYXgYTTHSDlET kU9+dLtg0YnJiLIKrnvEmr2nlQ9+enUFdK7QH50b1vHb5+hTU5C3fCAmOmPlczawXt yS9fsVl5VaL9Q== 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 v4 02/12] dt-bindings: gpu: mali-bifrost: Set power-domains maxItems to 5 Date: Tue, 28 Feb 2023 11:26:54 +0100 Message-Id: <20230228102704.708150-2-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230228102704.708150-1-angelogioacchino.delregno@collabora.com> References: <20230228102704.708150-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?1759070339496034782?= X-GMAIL-MSGID: =?utf-8?q?1759070339496034782?= In preparation for adding (and fixing) power-domain-names and MediaTek MT8192 bindings, allow up to five items for power-domains. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai Tested-by: Chen-Yu Tsai Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml index 7e110751353e..5b7f1c9d2b30 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 resets: minItems: 1 @@ -157,6 +157,7 @@ allOf: properties: power-domains: minItems: 3 + maxItems: 3 power-domain-names: items: - const: core0 From patchwork Tue Feb 28 10:26:55 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: 62401 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2933597wrd; Tue, 28 Feb 2023 02:30:39 -0800 (PST) X-Google-Smtp-Source: AK7set8D8v4vWwhOVTTyM3Ks00tZVBhqKleBOBcLIbk+VH3C18pNd5E4Uf9wYBu1gz3XsI4vonxY X-Received: by 2002:aa7:c419:0:b0:4ac:bab1:feee with SMTP id j25-20020aa7c419000000b004acbab1feeemr2459054edq.24.1677580238850; Tue, 28 Feb 2023 02:30:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677580238; cv=none; d=google.com; s=arc-20160816; b=wBr6b2Pcv2JPgq+PzrbDrodPlX+EhpbkrMqp0mICFxroPbseNXo/Uo8EegvrerYtYb LDKVqnVBFbzwyUL29dbzaw5nCcaqsF41NR5+rGyPOwQPWfaN7vkIyGzm7KE7H245a40p ATkLPapoVnub/ztERVl+Mw0SIsYFu0ade1BsFDzsndUrs5Vz8eof4ZH6tVLNKh+tVvHs TVkQDoUHDmQ+xZadTvpOAnrTWd469jNrHaBx44vj64pH+16qrOA7BVjw+oujX1qj2lAG FvUl/Cmz3EtDydrH47J0B0rKsXQt4cIzOEMY9R/zQy/EnvylVfOWu0dhARwrgwr0Tsei gZTg== 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=xFSNjgvQCbRLKguJlWgZtXeN1OyCNt0GGC7S26hO71c=; b=K8y6W7iK2Adr+qCP+D5iSjniEGSvxv9EKqReGiXUfI0tZsc5D/ngIR/7lk2EZNHsAC rlkxQEUy/E47FvcrQ9AhDbhukny0tt5GXEsvlzpq+Y0k8DjjZCn4nnaEgJEFGQ1dWPsl l1tMdAS/moeyAQqvneBJb1ko7HEkBFZi596hj492ReeDAfTGrv/Cr30TCeHqc9yVaHnl jh04KeCPlFc0cDQHPFG0B7zFXOtAZK3RwE9xPrJjz2N3hUsW6CRl5ENdKhq/HKWfHECF kOq3lMXlgd/P6VbO4ly7N1XT8uKYFDZWQuoswPQ/DF8bRX+eyBdEb+M0ABKTJm0BXG8n O/9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=S8Eds0pn; 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 j17-20020a50ed11000000b004acccc5f7e8si3446507eds.307.2023.02.28.02.30.16; Tue, 28 Feb 2023 02:30:38 -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=S8Eds0pn; 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 S229992AbjB1K1X (ORCPT + 99 others); Tue, 28 Feb 2023 05:27:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230520AbjB1K1N (ORCPT ); Tue, 28 Feb 2023 05:27:13 -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 0A367126D4; Tue, 28 Feb 2023 02:27:12 -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 01DB46602FDA; Tue, 28 Feb 2023 10:27:10 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677580031; bh=IUwSDoZ0KzMAk6G35a7rYGldsO2EXTi5ixj8lVj11EM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S8Eds0pn6StacRidqZGXiX9a612WEx1EH26yZRBqyAP74bbjvEgbKJTpWdOVcnk3k 4r21SW3n48f0VBiyTwGIMgLDxASk32LY0CqLzSnmqnjm42qDhDoeqk8iAPNmrduvsq 8oMChUnwHmO324BfRJ76hwV4dyh06bEzl2scsCSGpXxcvulEoUuJsaIQ9mdrF4iBz/ Nwd3CqURq4E5cOg2w8vAp0ltFLi5qLNJ8ORVj12bTXXbitwOKIMHxp4OWFGjRZoSfe C+FfmzyBZ0qR6J+qwkGC6Xd7VFmGt0lNygeNbG/qRRvaiG5dVPP0pu2Z/BzKog21T7 1V5sIotQniwjQ== 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 v4 03/12] dt-bindings: gpu: mali-bifrost: Fix power-domain-names validation Date: Tue, 28 Feb 2023 11:26:55 +0100 Message-Id: <20230228102704.708150-3-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230228102704.708150-1-angelogioacchino.delregno@collabora.com> References: <20230228102704.708150-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?1759070376074486933?= X-GMAIL-MSGID: =?utf-8?q?1759070376074486933?= Commit ("dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183") incorrectly introduced power domain names for MT8183, causing validation issues. Add power-domain-names to the base schema, allowing a maximum of five elements; since platforms having a single power domain don't need any actual domain name, disallow that for each sub-schema. Fixes: a7a596cd3115 ("dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183") Signed-off-by: AngeloGioacchino Del Regno Tested-by: Chen-Yu Tsai Reviewed-by: Rob Herring --- .../devicetree/bindings/gpu/arm,mali-bifrost.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml index 5b7f1c9d2b30..bf0f7f1f71e0 100644 --- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml @@ -65,6 +65,10 @@ properties: minItems: 1 maxItems: 5 + power-domain-names: + minItems: 1 + maxItems: 5 + resets: minItems: 1 maxItems: 3 @@ -112,6 +116,7 @@ allOf: properties: power-domains: maxItems: 1 + power-domain-names: false required: - resets - if: @@ -136,6 +141,7 @@ allOf: - const: bus_ace power-domains: maxItems: 1 + power-domain-names: false resets: minItems: 3 reset-names: @@ -186,6 +192,7 @@ allOf: - const: bus power-domains: maxItems: 1 + power-domain-names: false required: - clock-names From patchwork Tue Feb 28 10:26:56 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: 62396 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2933305wrd; Tue, 28 Feb 2023 02:29:53 -0800 (PST) X-Google-Smtp-Source: AK7set+PEutGaJt2aJLM7G+ZAGWIVFw8wrVt/IBva125FQ+JsB0dT6Vk/l56PLWMYEmCCnifnQvt X-Received: by 2002:a17:907:20f8:b0:8b1:2dd3:cb45 with SMTP id rh24-20020a17090720f800b008b12dd3cb45mr2192178ejb.42.1677580193827; Tue, 28 Feb 2023 02:29:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677580193; cv=none; d=google.com; s=arc-20160816; b=lAGT3cZyBW8mKVEtpE2CJyTyhtG721u0uhjkw8+ssv2K0jwgYeTSRM2nqbRpi2CTms BRci/MxzxeOdsrKi/o+1TWPu01DoXBYM/NLtvTHaRm/XhXLNPUBPgS5xl1YE9JZ1HXDc /a1tc+d9jjai8PCDjGLh9YSPzh/xfvgyf0aWSsMUzXl+oxaaBqKPIob8LZZlWZMacSpr AKJpM7K3l8Cw89sT+3zxfGJbQ7PYesaynXfa1IkMmlbzdXN7ojNzp6MQoqB6Q8TMyi5r hqp7a+irTP8+XahuriApnmERrBnV5nBfIGvHRCdqZFXNjUUs1Dk6vNsRJ/lxMeq1N19M kq0Q== 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=IXZhRcxoYqPSpvzBcGXmZnDlN3ZQ7TAU9/2jMO7za9M=; b=Rr/MkcxVAH8QYXkq+oBU0YVt5/1ghUFXMzpr+h49ekWSdo96Qsxd6UWMMNpJaiOgFv LAPiYm/yTHAM3jDSVyHlbXTsLrfJ3bQVTNz2Sbr2a6QIBdqtq2t6FjMlAZitmLcNhYtd N+vWPD20XfFe7xMv8kmoIY8idniuSzQmopZukMCm3BMkz1BI/jRqJ+H25lGHih/OmP64 K4TmYlAT4k+L00mRX7qPIiDSxFTBlcKZjf+jqfNySS3oO24symj80BU04afFrSleAwJ8 yyppxnw8oiLeHtXmFAHJGEEAZFk7Q3yTTFNE2aIHSSCwibni+hzyatTZ9gBpYPTDB1IF ZjLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ocPxywjV; 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 dm17-20020a170907949100b008daada6238dsi13921276ejc.64.2023.02.28.02.29.30; Tue, 28 Feb 2023 02:29:53 -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=ocPxywjV; 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 S230437AbjB1K10 (ORCPT + 99 others); Tue, 28 Feb 2023 05:27:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231150AbjB1K1O (ORCPT ); Tue, 28 Feb 2023 05:27:14 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAB82231D3; Tue, 28 Feb 2023 02:27:13 -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 DADA66602FDC; Tue, 28 Feb 2023 10:27:11 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677580032; bh=/lMqqY+ruC5MK523tvrRTFkgnEJHeIu+JnhJU6LE/FE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ocPxywjVq2ceTiRY09SOE0M7Ru5gguOe/lvBF4gy6f1ISt40hyFah22qGAGTB7SlL FCh9Z92toTeVdkuJdabka/dIpLwqclbAgnsmbgMacqiqmXclc7lAAdTkABGss2drxB XVu7V8JnRZhmllRoH4PLpJCGNPCd7yV+Zfrop7KThb+uiL9h902OeQz5m20sBPbjpD czXx2wM3JPFLmX9Ilelz3cHcSZXmNNFsD2hCuOPgF4pTIOC4s3M1vK3wL0XCvvtyyE 6Kjp9e3/yqmwLac/Y9k7FVjkg7HMSVAMmrGtYwO7OHl62CP2HjYmbIgFrUfkWYe4K7 6KN38twFRpH9w== 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 v4 04/12] dt-bindings: gpu: mali-bifrost: Add sub-schema for MT8192's power domains Date: Tue, 28 Feb 2023 11:26:56 +0100 Message-Id: <20230228102704.708150-4-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230228102704.708150-1-angelogioacchino.delregno@collabora.com> References: <20230228102704.708150-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?1759070329362332722?= X-GMAIL-MSGID: =?utf-8?q?1759070329362332722?= MediaTek MT8192 (and similar) needs five power domains for the Mali GPU and no sram-supply: change the binding to allow so by also introducing power-domain-names in the generic binding; while at it, also disallow the newly introduced power-domain-names for all non-MediaTek bindings. 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 Tested-by: Chen-Yu Tsai --- Since the changes are small, I kept the Reviewed-by tags that were released on the previous version of this patch. If that was wrong, please advertise so. .../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 bf0f7f1f71e0..c5bef872114d 100644 --- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml @@ -177,6 +177,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 Tue Feb 28 10:26:57 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: 62397 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2933337wrd; Tue, 28 Feb 2023 02:29:59 -0800 (PST) X-Google-Smtp-Source: AK7set9O1A+C+UFnJq0uj1iI93eje5BdsdJiM/3vV0UiyBgXu2g0A4Akvdy7vzfcl9eQe55Qwscd X-Received: by 2002:aa7:d6c7:0:b0:4ad:828b:970 with SMTP id x7-20020aa7d6c7000000b004ad828b0970mr2385866edr.33.1677580199489; Tue, 28 Feb 2023 02:29:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677580199; cv=none; d=google.com; s=arc-20160816; b=tT3fERe5+B8At+v+FDcNdfX6Oc1YbJnHB2ZSed6dutkxeyQD5T8MeaNlD6pgGiJ2e1 E7ty/AUEi0fhC0T1Iluk6W+zc55QVx94ekP09ePGyxCuH7cGdPo6XirfSqbCqNZLaMFH obJYb2AjiNVl+YasFiSLOStIksewWqRIrdwhzAoTcU9c1oZfFqoAkGES6/o0rMbopuBr WDNAbYVAoEJrC+wKVgehwQFPDO9FxQLm8aOWF9qcuHGPTlN7yL8WpFhijQxlWM56omnW m64hZQCeY+mAp4UMDEl3Mfd88N4vRustokyYrfBVsGy+doN1ibEEEYnzPA5OG40X88Cw ArCA== 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=d4EhRTlJNKqTvjOXCp6RtAo5OeQaDjXq9yFB/mooVfY=; b=ba+ot/cgk9uaynLNP2yBa9GLInq05Kb8u3HktfoUsl7raisKrmUZseowijjLyUfhI7 fYg9OC6N2i9WlwlDyy9Tk7GzjnOifEPAuw5tvftIMf6+KFqOddys3jxf9SrLrSeVmTcf RZQYIZidM2XOAuLtn1fgIQfqbBdUjh1KF2hNscj4+ipwXZPpMCdyMNsb3HeI6gTT8CmN AML2guwI1rNcJ2GtB7gEKzoVl+ctK8HGnR297CwrgMmYuezPc97rx4PXTS7wxU2SPRTx 6yLMvNmNSq6+lA9qPoxpXkCguPkw0GvHdfv4PwoxzEfZi/tiTLyH50F/A2ISbbMywvdy QZVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=TciQedvW; 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 ba26-20020a0564021ada00b004aee5c4837fsi11381789edb.250.2023.02.28.02.29.36; Tue, 28 Feb 2023 02:29:59 -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=TciQedvW; 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 S231150AbjB1K13 (ORCPT + 99 others); Tue, 28 Feb 2023 05:27:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231192AbjB1K1P (ORCPT ); Tue, 28 Feb 2023 05:27:15 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FC872CFD8; Tue, 28 Feb 2023 02:27:14 -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 C18B06602FDB; Tue, 28 Feb 2023 10:27:12 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677580033; bh=DycugKaR5mUM4/B5jFI1O5Chf+Iz4ZY0tMtXPBou2pk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TciQedvWltIU9GlfNDq1yjwAWt4XET1fgMhl0b6ZCnY+lY0vdzRTnVQPCOaA5LNBA tG33T24975UVz71zgw8/NZVKYtYc3CGnkr095mNYN67WrLecErMKuGYEmjI6rXHu2i Z+Qqc+KjsW9mHmrJj65YRImlICLoEANfaAXB37L0ubbEbB9swHQ1IpndwbmF4RurdK kGoXOFGBQMg9FRRmhhAxJ3BpQVIjbBKoP3ujR+RsO6Ws4O7H0VgNYq7HK4aYp3Pt1M eUWnuoCv7eGQsEnLZnkQsXkEqP9OCrfKNobQSrVg8QLYSY7nNSlsnh1pmMnOg01cwi FsELsq2vFknFw== 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 v4 05/12] dt-bindings: gpu: mali-bifrost: Add new MT8183 compatible Date: Tue, 28 Feb 2023 11:26:57 +0100 Message-Id: <20230228102704.708150-5-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230228102704.708150-1-angelogioacchino.delregno@collabora.com> References: <20230228102704.708150-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?1759070335329282334?= X-GMAIL-MSGID: =?utf-8?q?1759070335329282334?= 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 Tested-by: Chen-Yu Tsai --- Since the changes are small, I kept the Reviewed-by tags that were released on the previous version of this patch. If that was wrong, please advertise so. .../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 c5bef872114d..cf24aaba70f2 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 @@ -177,6 +178,24 @@ allOf: else: properties: sram-supply: false + - if: + properties: + compatible: + contains: + const: mediatek,mt8183b-mali + then: + properties: + power-domains: + minItems: 3 + maxItems: 3 + power-domain-names: + items: + - const: core0 + - const: core1 + - const: core2 + required: + - power-domains + - power-domain-names - if: properties: compatible: From patchwork Tue Feb 28 10:26:58 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: 62399 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2933389wrd; Tue, 28 Feb 2023 02:30:08 -0800 (PST) X-Google-Smtp-Source: AK7set+uv8PQzyUrR5kJx+WtOfA4ifVB8GecHnx1NIXRQaieEPCzV3QJz1dweSyKsNltxN6jj0L0 X-Received: by 2002:aa7:d38e:0:b0:4ad:7203:9b2a with SMTP id x14-20020aa7d38e000000b004ad72039b2amr2842171edq.19.1677580208458; Tue, 28 Feb 2023 02:30:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677580208; cv=none; d=google.com; s=arc-20160816; b=KRypEsb9qgMGZhsqt3ocYjCdrzMYmmf1NeHbGjmK3+SS8QYcpoGU4x3iGZkwL9/WMr N6fnNtvV21q1aTBVq6q6tcO3GIBgA7XY9OS5Hbvv8Kenz7ZDc7MoDu0v5zOEOGrGmX0X rzYOLYDQEp7WLuvT1gJbWkBh/qGyy6t+cy3cwcEa3Zj+3KX7eq2Y3K8kuCGouM18rTIQ HjKLTULJOfzxo5NiANL1+T1MnSlexzsGgG9j8gM5iiYGLtfIALiyPvwuTy3+lD5g9GJc fwGMQCy9mMtsFYTvDQ5pNO3FwsWyGn7YSe8r0ogHTRzePrFwxhWJ+55h5KGaOwyW+xNL YaOA== 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=/wQJs05byhrrLM8BF/IW9SqNQZTG2r5owrQyzEoZjSg=; b=MAjs88mEeFnDsJX0YMxXJZqrIrYxAwJfRO8UFZPOdgYpFVVq5D0K+NURoP1CvUNy57 lI0DGMJapalCnr4878AeIQdWZXO3ToGyxlWO6wF+LHssLVXLf1O8egPFd2vkg/Mw++Pg u1wu/zLhcCJAKQlKChcl+SN8qPSbXAqM4y4f1EV7uoQH+EW2JMwHyy6C+VNLEcgNdRCs QOHvNAtrPgg1U+MaEfiUj3RyF54P40NM/WR2FflsSxPvqlBkAEHcGLiqd281YAtJkOB5 afA+p8Olk/+BxaFP+k/9dEhhJlOFUKEacd5horpUU/uVhIPgwSSSYtsH7wCun8kOJ0Ji Qt0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=CaJ6RRwq; 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 v9-20020a170906858900b008c329c6ee2csi10443246ejx.468.2023.02.28.02.29.45; Tue, 28 Feb 2023 02:30: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=CaJ6RRwq; 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 S231192AbjB1K1c (ORCPT + 99 others); Tue, 28 Feb 2023 05:27:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231219AbjB1K1R (ORCPT ); Tue, 28 Feb 2023 05:27:17 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 893742CFFD; Tue, 28 Feb 2023 02:27:15 -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 A91E06602FDE; Tue, 28 Feb 2023 10:27:13 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677580034; bh=bxtPSXtkYJhetgJR72HKbYbaXEEqIZSwJCftN/W21/Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CaJ6RRwqoHEFPQChKcPrJna+kHBLyaulH4Tnj5MYrHoZ/Mn2WE6E8r2yk1PSbODQR PQs+LAenZVzbbSjDYacpUzx08upKuyQpQ9NOZtVALR8899NeM+Nnoc6BxKAV4yZVto o1evuw9nFf0o+nEAMT6uiKeF9ZohB/4Bb5AUwtLdzGHcIgiztATlo/IKmwSYoV+L8q EPgFRWjzmnQ4H9v2bMfK4AjwwE1F95k5TT0pTiWtnccZ//JAVPTb0+8Et8rUYD9CrI BffdDsVpgN8wjN5yN3QQ7LIGqgJgwf9xdrtETmh+xtXLLdoe1dMLDWIR5KYyxAhU9t NU+f3aYmxzZGg== 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 v4 06/12] dt-bindings: gpu: mali-bifrost: Add support for MediaTek MT8186 Date: Tue, 28 Feb 2023 11:26:58 +0100 Message-Id: <20230228102704.708150-6-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230228102704.708150-1-angelogioacchino.delregno@collabora.com> References: <20230228102704.708150-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?1759070344671401360?= X-GMAIL-MSGID: =?utf-8?q?1759070344671401360?= 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 Tested-by: Chen-Yu Tsai Reviewed-by: Rob Herring --- .../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 cf24aaba70f2..9f3991b6deae 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 @@ -196,6 +197,23 @@ allOf: required: - power-domains - power-domain-names + - if: + properties: + compatible: + contains: + const: mediatek,mt8186-mali + then: + properties: + power-domains: + minItems: 2 + maxItems: 2 + power-domain-names: + items: + - const: core0 + - const: core1 + required: + - power-domains + - power-domain-names - if: properties: compatible: From patchwork Tue Feb 28 10:26:59 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: 62402 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2933604wrd; Tue, 28 Feb 2023 02:30:39 -0800 (PST) X-Google-Smtp-Source: AK7set8JAiSSm9KL0OIKhGs4AnHgd11HYSv5/w9KavrVx50yOZQkszLlBbGszZdSWAGl2HLkN/RK X-Received: by 2002:a17:907:a649:b0:878:66bc:2280 with SMTP id vu9-20020a170907a64900b0087866bc2280mr2441460ejc.12.1677580239416; Tue, 28 Feb 2023 02:30:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677580239; cv=none; d=google.com; s=arc-20160816; b=uTR9u/P2l3so5re2/zH35dEcPol/4mBE4JGbicZ30MEIJvUo8KTAL7auWFB5MNCpht amo65hxOBznYV7USL7xf2HX0lFPlR3usA5g5LZ0ZRqQjuOAojII/KsN70zLZ6IrLjg33 00UJcjhdu28MKLH0q8sIWVU+atXkHP3RtbEIuZSrOjlYPUI5nBf5MuF//hOx8BD8xwHR SVIJaE5dkwq0JhRZ4ejhHPGEXTsbvQGgg18UeZoM/kcy5su6TrbgkWllnEP/dv/3QKUE 2RxCkVxuovCgYJXh8rTqX53RvkXFZT5uqp5uH1PK/rm5gBVDVOPOSjq4lD5IPpHP1his sgmQ== 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=H/c7BX5MG88D5PyWJciXj6YiiuWDAq6tBfEEGE2NVj4=; b=Tp9H+lMvHdgIQQ+uUN1IeBqWREkq8yRka7yb5b//+2Abx2+INiOpd5/D0Eql+fP0/o JgudWOXwVOFOyph5FW+bGKe0XloBNH54GlTz5n3lYOirqqXQLNMWQ9MS+VVn8JfPBwWA FP7b3ZOfNpr2+ksVuEMiegRD/7KIYLwTzKN/vR05Q3BpAfmRJUVf59gRI9/sUSYkL+nq iwq7RQWcPdxx3SLuS1OY3MUIvjjs8re9xoiR6Tnu7QMWrE8J+nlgZAuRm2hzE50iOioR uJrY4lTNgn2spc9Fgm7ZVPPcRDfbIx5R/df32OHfJbvSeBCPVQ1RXqzSOMJckBdSLtOz ObMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ZpHJ2Rwv; 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 v3-20020a170906338300b008dbc41587a8si632426eja.730.2023.02.28.02.30.16; Tue, 28 Feb 2023 02:30:39 -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=ZpHJ2Rwv; 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 S231302AbjB1K1h (ORCPT + 99 others); Tue, 28 Feb 2023 05:27:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231225AbjB1K1S (ORCPT ); Tue, 28 Feb 2023 05:27:18 -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 79E2D29E08; Tue, 28 Feb 2023 02:27:16 -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 8F45B6602FD8; Tue, 28 Feb 2023 10:27:14 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677580035; bh=58UmcWTMjp3ueAg+ubm3lZFiBe9/6S/M696EiXUjy5s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZpHJ2RwvYuZTLDri18Sv6a1Pq1wOCNfK2lT5RYzhakbjg9a0VouYr4F9Nm11VQNEn ocqF+A59d6T52VzBOnnqG7RIT1Wk8jz4AOtxUdUMZbFyel6AjAaDtTOO/GfArsvx1f TduSHPIFDGt4J7wFu1F7J4bnhj8sBFq7ZKDkJq58LDIV+/mvJ9kSQAm9mwattgSIfb WCOLN334v+ngVFS0W/FFW48qRXDwU5LhwvVvU7cdLzYqp/vjAaRz45PzEbJoeetP8q zMwfmr+iBD8r+4NnVtHA03bjiIH3YXYRIN/+STUU+UkHzwnCK9awLooMfig1+g27iJ IQhL62jOQTn6g== 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 v4 07/12] dt-bindings: gpu: mali-bifrost: Add compatible for MT8195 SoC Date: Tue, 28 Feb 2023 11:26:59 +0100 Message-Id: <20230228102704.708150-7-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230228102704.708150-1-angelogioacchino.delregno@collabora.com> References: <20230228102704.708150-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?1759070377377379326?= X-GMAIL-MSGID: =?utf-8?q?1759070377377379326?= 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 Tested-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 9f3991b6deae..8a0083800810 100644 --- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml @@ -27,6 +27,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 Tue Feb 28 10:27:00 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: 62404 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2933676wrd; Tue, 28 Feb 2023 02:30:45 -0800 (PST) X-Google-Smtp-Source: AK7set8EEy9XO6XGzffodopaDqHrlut6ukFmB5wuxn9SOblx/fFjlq9VpaI81PIUMnhs72xqHKcD X-Received: by 2002:a17:907:7ea6:b0:8f6:88b7:73a7 with SMTP id qb38-20020a1709077ea600b008f688b773a7mr2984808ejc.7.1677580245404; Tue, 28 Feb 2023 02:30:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677580245; cv=none; d=google.com; s=arc-20160816; b=Cgzdc4vSCNg5NxZAigJ9Yj4dzKJ2M2q2lSa2wOn9/rJpACroGWGNMzC9i9ioHiHNs6 mC5g+DORCfgC+VVFJ1cRnp4hH8nMTQqb0ebqGmxUsHTi0969+hoObGwLuzY/ljXT8Led tStP2M6DtuHOozPyGv2mMGp75WBzqE6uPpH0S2JmpWLsLDjURuJwVHAih9oKEpH8R5Ky rpyrsnnU9Zgl+QjZgVA1/WpkEIe4bayfTWeKIITNeLOm8bvTb4TPPNIPJhYVfPRaFyC2 1/W8a68+iFgGTJsX6LhUvYcz/fKD3IzGp38Bs2eKZHB/UzA3jFsgZgV3XCajQeaBFXxs 33eQ== 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=PDzL1tr758SNtj1xpSZ5wBtqHx3M9z38r6O//bJZs0LUUU1LvCmIOC5dGd0Fxjk0pR Ix9F1h7FmiQJl51MZmG65gFfpBf91sNvmYAIRYjYrNUjroKN/twZcyPRzeIOp2nq4euX JBJIaalYzld/+BBrWS2RQWwBZLSd5cj7f205KyYbM3O0j0ghI33l+TmzIutgCYDn6O+Y KfLuMDzxi0c+ep/J/AABySz2CbMrWo8OCM2ILV5S99+pAuDxsobsYQ5LkzT95pNhA4SG GW2v2CZzHS/SF3lY7oMm6Ym/vV3y9/qWy7elRi153+K7bUtyeIjxozVNL9KPA7ZtOZYi Vw7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=LC9MFIZ8; 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 q17-20020a170906361100b008e77343cad3si9835731ejb.927.2023.02.28.02.30.23; Tue, 28 Feb 2023 02:30:45 -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=LC9MFIZ8; 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 S229637AbjB1K1k (ORCPT + 99 others); Tue, 28 Feb 2023 05:27:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229612AbjB1K1S (ORCPT ); Tue, 28 Feb 2023 05:27:18 -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 5550C2D16B; Tue, 28 Feb 2023 02:27:17 -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 753246602FDC; Tue, 28 Feb 2023 10:27:15 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677580036; bh=X9j7xcxPWqqju4SwMykvvaoqD5cIUMh5cTk3zCzxcjY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LC9MFIZ8VU3/L0enAm8U1kUxOFCW2IuiudOg7BO1K8C3vbjEaj4wXgWLJUrg/0Zis rRNDKijyS67V2kqNFuIeV1gigUbFS2vZFh080XLzKRp5r8P/mQ7D4m0SDtNDhYy6kF qnK+KmXVyYQRsm77z9kv1xVRYblldxk29wFAjMFE9esezF1X6Tp+rDcUHT8z5aMsaw pk9P9xRXcHewK5FR+l64yqlG4XXWsyPEFPyR9buKrEnejvQtY8E4HzobfY/KZIkpGx MUrNbXuhXjYHV1mLedFP9+mrMDqUtNQTrBiJUCLcmJ5LoyBeLQGvk2l0A8tOL2loiG jDlydoESAtpgg== 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 v4 08/12] drm/panfrost: Increase MAX_PM_DOMAINS to 5 Date: Tue, 28 Feb 2023 11:27:00 +0100 Message-Id: <20230228102704.708150-8-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230228102704.708150-1-angelogioacchino.delregno@collabora.com> References: <20230228102704.708150-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?1759070383327729378?= X-GMAIL-MSGID: =?utf-8?q?1759070383327729378?= 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 Tested-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 Tue Feb 28 10:27:01 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: 62400 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2933519wrd; Tue, 28 Feb 2023 02:30:27 -0800 (PST) X-Google-Smtp-Source: AK7set/+m0xo/Z38yGcmnJ8u4s7loP61bDI9tVGu9ib+Y9StNKDRqJKs8ed4kH3lMYAXc0dB9Zjg X-Received: by 2002:aa7:dc17:0:b0:4af:70a5:55ee with SMTP id b23-20020aa7dc17000000b004af70a555eemr2547673edu.3.1677580227468; Tue, 28 Feb 2023 02:30:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677580227; cv=none; d=google.com; s=arc-20160816; b=wztbR7YlGbpwh83FSA5EBdaiOcs0UKoN4aZLwgde5wGMw6r5LChimGSkzcSP5UhxEC KkRctvuHZRDnGTXI05OjNENzSSebTOZwU99xImI8eF+12gtVeNWlthVjbU9+VNECOApW gUkgrlA9w//Np2w7xw/TnK1pZszyEORWUHKU7e0mhqK76j6i49UPC5xUQYnNXhVEGq01 M5aksk0Y2TzOXSDIJqiqbO0ROrL1MauCKV6TEGZ4QPZoQBJnjGmVu/fDOM217UiDLfKg 0Ly8Qh4I6Pg6eiTuv+jODSSsg0AhyPcQLI/2V1BzF8QVaTGMYJ2EC0JqIC2Z3Sws3Ktr 6hDg== 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=QvezWPXdSLni5ufqA9Vnf7A1sBWOfOMGvkteCAS0kquPfR1sJAWO+quWN4HWCtcrSc bxdu1JJhY/du6gU5pTUug6WqPHcv0jSfPulKY4ifRfkyeR68vg7R0z9aXhmUn/UBLQIZ QxDYpCoAI/NUYb+qK69TBDVgyGs39AbOrPlPxyA3oSmhRqYuIcNXd+w3LCpYqP6X/0xl HiVp8uwgCO9DV1fJqwjIit4tqDcawdV+3mw6SgFxOnulCVYQfBEJJxZC/41sl6t87NF0 /oR0zWx+ogTC5OtG91WWWrSbsvJ6U9/5p3iHst7UXjCesumWEDIh4KuReCbs7nJV9u/k YuJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=i3y3MIK8; 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 i19-20020a056402055300b004acbdb25b3bsi11160269edx.628.2023.02.28.02.30.04; Tue, 28 Feb 2023 02:30:27 -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=i3y3MIK8; 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 S230313AbjB1K1n (ORCPT + 99 others); Tue, 28 Feb 2023 05:27:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231266AbjB1K1U (ORCPT ); Tue, 28 Feb 2023 05:27:20 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C4F62D160; Tue, 28 Feb 2023 02:27:18 -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 5A9496602FDF; Tue, 28 Feb 2023 10:27:16 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677580037; bh=HedQD3Ilc5pEnx8vhQO81s7TTNK+oqpJPvaglDZ6DvY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i3y3MIK8tlPXFTrBcJE92aYQveJmU6nA7x6I3fYH7PSDC9nygTAK9zh8T9ygeyXFE TNT54P9E50hy62QWRG1IZEV3tgjZCJLW920xA3a2VNUumEJXBYpBBO3Ats+6jdDbiE frdAVKNaUpJaMY1ndEblkJ41bb+GHhvSJblSU1MDlYgfSEtKjw3rWxhjkYI8BDPyJC IsvuZoZbG/5HGmVpAGZI2jhUCQpqRL99hrxy7ra82MGZle+gFXaYKllkuyeKeLtm7z z1tn6NckeGui7MUHSf8vw68vgI0RN1ak2/f9DzCKlNy+0GYFvv4CqfHrAG/0ZeWus9 6luMsCNwnJzZQ== 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 v4 09/12] drm/panfrost: Add the MT8192 GPU ID Date: Tue, 28 Feb 2023 11:27:01 +0100 Message-Id: <20230228102704.708150-9-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230228102704.708150-1-angelogioacchino.delregno@collabora.com> References: <20230228102704.708150-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?1759070364593156603?= X-GMAIL-MSGID: =?utf-8?q?1759070364593156603?= 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 Tested-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 Tue Feb 28 10:27:02 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: 62403 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2933619wrd; Tue, 28 Feb 2023 02:30:41 -0800 (PST) X-Google-Smtp-Source: AK7set/OGEYeXFt/f6g9LlT27f7iChzZc1pdsHfdXG7A/qGSlF52MrpwVXH6KIAzkY3/fJhto5HY X-Received: by 2002:a17:906:1c81:b0:882:ed4a:f23 with SMTP id g1-20020a1709061c8100b00882ed4a0f23mr2172943ejh.49.1677580241193; Tue, 28 Feb 2023 02:30:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677580241; cv=none; d=google.com; s=arc-20160816; b=GIsXOwWZg+Iv8hQ0wqBGetLTO43Qw6l4XslFRHtYpQ1j1/QM85Ep11q89xNbL7Z6Zp KuJcBQ+TRMgglz45w7/AEVdfgewR6Cubwi5zc3/ms/RPccNAdi8intzp/MgpMACm2TEC 3YVrlR9KYInWMYnU8DPM/OAQ2UV54VW1r6SoaywpfUmd9ymqYf8zF/FXmszZdluxePpQ 1kMfX4of1Gk7bBLNFJA07Q0IXCqs5phiJuxMEpV2yrhEMvme1n4HAbUfZ+Ddl1c8qC/x h6LfLvhs6ceoP8A6jWliG4vQ9/zgEPYcAqFFE5CnOqHEcagZ2/24J6vnNoqP4tfhZfSJ VHgw== 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=wlHZwBa94z9DLcFlm6CmrvPgnWwJIJ/h7AMgoLdS4Eq5vlYJVkEwHK3E13Unxu/wpo UQYeIdXw/jMfzSX9liJPal90HorvBIWfl+mxJH8JxlShca0VTNv6h9zMNN9rGzX8es5C 7aSN9c+tj8waTQqtEXSZIrQNmL/pcjq8aIYpVGi1nMKJc6PQzppjesdwA8wlwYxcD6iD WY5JQ0DpRSM0Ck/M+JixReESzwdEm9oR59CU6qy9WFYg1XNHpQ2op7DWH3uNhdxNv0iR 7t5ku6Z8rMCMdriYPDCb7TnvhV/QkDz51o27rp3MWCKNtvsNUPhXK5mgl1wUPTRt1qm8 joNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=kNjEiIpU; 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 e17-20020a170906045100b008b79a5e743esi10901373eja.253.2023.02.28.02.30.18; Tue, 28 Feb 2023 02:30:41 -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=kNjEiIpU; 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 S231215AbjB1K1q (ORCPT + 99 others); Tue, 28 Feb 2023 05:27:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231222AbjB1K1V (ORCPT ); Tue, 28 Feb 2023 05:27:21 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E4892CFEF; Tue, 28 Feb 2023 02:27:19 -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 406306602FE0; Tue, 28 Feb 2023 10:27:17 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677580037; bh=XOBRNDDFJGfYsIgxMZ/xxG6T/bqER3TGwYBPNyV4tY8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kNjEiIpU5LEKmdXFZ7CYc4ekqBOdxQYUdJ+y+fQEMFo66ksXXaAmFsXx4O/ZZtDu1 f5C2oBTaUqBeok3t/Mnte9PYCUSqmJQvQjp+eiHCGmpv0Sev3Rgz76NJix7iQxryQG jG2EUENslJdW+bRPooV/a6CGLVBb66/+r/qt5xxsHPjU/icT9x+hOaRRFGoPnVyqzY AaDJEvCHtOd49J88gIJWlDvFisxpso75d0v3syCjuqB4KHzPoEWxfv4rDv01ilY4YN 2OjTMrv/gqK57qMOefQSzkzeBUA7brmNlQEEWGA/fdkE1kJaSk4/1n3Gw30qrasLKf 8NVwljvUhO0zA== 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 v4 10/12] drm/panfrost: Add mediatek,mt8192-mali compatible Date: Tue, 28 Feb 2023 11:27:02 +0100 Message-Id: <20230228102704.708150-10-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230228102704.708150-1-angelogioacchino.delregno@collabora.com> References: <20230228102704.708150-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?1759070378886411219?= X-GMAIL-MSGID: =?utf-8?q?1759070378886411219?= 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 Tested-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 Tue Feb 28 10:27:03 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: 62407 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2934471wrd; Tue, 28 Feb 2023 02:32:32 -0800 (PST) X-Google-Smtp-Source: AK7set/gXeEGYtQbuAXPZSoR37VvTEbGb3MyQ6dpXsFL/0oLGtEG2xpsmNRRxIRpCo5O4oF+Ht/Y X-Received: by 2002:a17:906:9f19:b0:8b1:3131:76e9 with SMTP id fy25-20020a1709069f1900b008b1313176e9mr3628151ejc.46.1677580352076; Tue, 28 Feb 2023 02:32:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677580352; cv=none; d=google.com; s=arc-20160816; b=zYYDqAvCcvSpxp+hehuWEI1MMlKnE2c8O8Qeuzp0V/c2ZcnxAqxkGVleKIR5b/sos0 Lp69wMPTNwIbacDHJXzsx9t5IDyzgas4fHFCcSJ9GFx33FbSblUvHrFpiVuGBWz9HWnb 6o4mX/6IR/lCm1ZG7rFDWSt4iEXopPdOQT/7ze5hVAYaWJC/Tre6m8TrFIhEWt0WvP69 qnX0aUMTmgzHX4dMCTe5i7qKMdVPuXhmDG57YAHWd6p/6KsOsRMZdbxTehk4j+i7f0Gt 90bx8WUXDr5/J4X4cKhlF6ia7dLDK5o4PIWdUy4Tf1J81ZV36g1pQ7Iw2d3qdjIRvPfc MLEw== 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=zsmQxSve5Cm7neBdkiIQyGF95Inp0vHFuIxIYrCoNKLeamNgax4bG/sLvTpMrLpuit fA2ZHSVt8vosEHC9G7KOtBLMD7LnlveU68GyW4e5Jv1wwYuFSQq3vJa7Q87tKKHjQTml F9WFnb2O1Ocyofmhc8Fm7py0Pb9pe1cRs3P4rM07c+yJ8RJwvYo4aos0zmzZXPsPoV7J 1RwakBXGzlCWYOycBKcPr9qjD4mozuz6Wj7bJPN+3sLAE/fQSz2HY/w2xN98xZ6jI1C5 O/Z/bxymCUctlNGJscrJ7lTtNv5X7jmQ9k7oLEsLuDhLphq2UcgJLU17ZYjEzof1nv7n 8A3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Qpy69orn; 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 sd10-20020a170906ce2a00b008cb6722b1f2si1833692ejb.991.2023.02.28.02.32.07; Tue, 28 Feb 2023 02:32:32 -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=Qpy69orn; 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 S229762AbjB1K16 (ORCPT + 99 others); Tue, 28 Feb 2023 05:27:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231278AbjB1K1f (ORCPT ); Tue, 28 Feb 2023 05:27:35 -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 521392DE75; Tue, 28 Feb 2023 02:27:20 -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 1ED596602FDD; Tue, 28 Feb 2023 10:27:18 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677580038; bh=d98v4XkYuSdlaBMRVhy8ckf3WPpqfT9gFqNu9PlgtLo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qpy69orntrXDViupi8/DK29prpf9GYT8qb8Ln6gnx4JzEs/k1BRLwAvGJ6LXpp+2g /NvsuUea1bUD0csMXDqBkmm33isexWvMquveQqUidIrHovwyW18uj6dzVf1GkvBOcz RQ503puGDYPDuszsHcytrysZoNnwm44fPgNzuY61k/x3xuziscvAB3Te/dOfD1YyW+ YeQWOvIy8w+3CxbtJXSez8BWjG/O8zalaFEEaQqcXJENRlolxLx6ptROUAtT2f6DGO dtGdu3POoMF52pYdQYCwqUtINTTj5etgVLE9b0GEJnCdyG2T0rawleI1FAv89ZxlmA /5ohiGzZ0Oejg== 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 v4 11/12] drm/panfrost: Add new compatible for Mali on the MT8183 SoC Date: Tue, 28 Feb 2023 11:27:03 +0100 Message-Id: <20230228102704.708150-11-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230228102704.708150-1-angelogioacchino.delregno@collabora.com> References: <20230228102704.708150-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?1759070495413770675?= X-GMAIL-MSGID: =?utf-8?q?1759070495413770675?= 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 Tested-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 Tue Feb 28 10:27:04 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: 62405 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2934049wrd; Tue, 28 Feb 2023 02:31:32 -0800 (PST) X-Google-Smtp-Source: AK7set8Hmi+HVxrDBxdiD0S4aemeRMEpcCAaHMaJ5j86AEKrzcbruY70ewRd+ZVBvsPijTtHsnnn X-Received: by 2002:a17:906:3a4c:b0:884:3174:119d with SMTP id a12-20020a1709063a4c00b008843174119dmr2164438ejf.14.1677580291870; Tue, 28 Feb 2023 02:31:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677580291; cv=none; d=google.com; s=arc-20160816; b=VPpLZYmQw9ORqP+ETPG0vaW13RVTxFezWCFDg6DIkJxobKVS7UuDKbpW7AEyQsSUI7 YhjgS5+uddRe5X6Pvm0hhQBUpNLp5BhG49dSXZuqi+cEDrAE5/DPTBzwNmDsCOLJ8KbD 2IbEvrQ9nGuY/H3nlppspiXeLHIEimvjx0M9gtIVsQcHKW3Na4vlL9pDToWrBL3bCmUE XvPVRO2XxU0UIbsVtZPHWW022mruZl0uG9T7iBvQGR2mUkCkCa9x6hIOxiox7FfCVnZr lV+vy5v81VGNxyZPDwbExkYc3THXoiKBKEkwWpgRc0jM8g7NU+0Z8miV85f06TSbMjEw e2zw== 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=R+tG6JS0Kz0cbXbeKHjMGU0WeFesVUIEOdqPcndUf68=; b=fCZz+lk5iJUZTf4Bw+tQlBxe67KnHhpBNEZKk6HQQqm12JqVzfaj6oBEJz0L7So68i uAI4qX9R41YQMzcv+iliAdopuYxFWzIlQvJ7sFShr4xYRaSGJCCu31UsnaiTx8X8DQ1T wU0dT1fW70z3etha6ghOErAryjkVScsjMFXLPU2VfSMcfR7fbLCPvx1ZL1m+7VMuxDmA I3gfCNELN4bzcYXG4/rDNt6TvH3t50sOj3I0H1EST0KFxyj8RXA36aWdlAQCpA3v64xV j80YjXvdLcI+tQ+vU+fOaq10hiLq70uptCOPAsqdHN1mjdqJt4WGQ5rtaWQzHUHnfDnG a+2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=XBtqrJ66; 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 v24-20020a1709067d9800b008cf79b051cesi3573338ejo.895.2023.02.28.02.31.09; Tue, 28 Feb 2023 02:31: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=XBtqrJ66; 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 S231203AbjB1K2C (ORCPT + 99 others); Tue, 28 Feb 2023 05:28:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231289AbjB1K1g (ORCPT ); Tue, 28 Feb 2023 05:27:36 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F4F02D14A; Tue, 28 Feb 2023 02:27:20 -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 03DE66602FDB; Tue, 28 Feb 2023 10:27:18 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677580039; bh=1JnVPVujLBT5atPy7IIvdnCv3UEvpv+n+JLXQmdBXc4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XBtqrJ661TF65pMMYdFlcwffGxegFzbooParqFCFZ/PsBfC5GB/3luHURrV0BYvch WCUzqm8UyJbNHi0nzLej2N5SMiMMdBKWs2tkkPZwyZjadsTsXN9minzIpXJhksPZjI +ux46nPhjvajG96R8MeOmWfzjPAetD9idFqfaOV8E+17fgrO0Iy21mkoLIVcw++SDJ yHLrAum9cY2qA4NxshgkViXJOCqrA8UzJQq67gtrYEyqY8Wnl3ZXFHR6XVYVxEl1wf nyMaFifj5PlKcovAGTC7SYhuFyW5h3BBhiT4/GGTJAYscxIAyk9k2OM4qV8VWoHXZc minCGbH9D9V/A== 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 v4 12/12] drm/panfrost: Add support for Mali on the MT8186 SoC Date: Tue, 28 Feb 2023 11:27:04 +0100 Message-Id: <20230228102704.708150-12-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230228102704.708150-1-angelogioacchino.delregno@collabora.com> References: <20230228102704.708150-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?1759070432151307762?= X-GMAIL-MSGID: =?utf-8?q?1759070432151307762?= 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 Tested-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 }, {} };