From patchwork Tue Sep 12 10:04:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 138156 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp379545vqx; Tue, 12 Sep 2023 05:47:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEicsf4317/u0PBpIlzf5MDma5UNlpyLetf1pcVvivHC6Wmdf6SQpV9KJatM8R/0wR5MCd5 X-Received: by 2002:a05:6870:569f:b0:1bb:9e49:1b3 with SMTP id p31-20020a056870569f00b001bb9e4901b3mr14703264oao.18.1694522834566; Tue, 12 Sep 2023 05:47:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694522834; cv=none; d=google.com; s=arc-20160816; b=DuBAcEWOw6fGSnrSfxYElOkYgwXfTjHE99932+PPHFjPkFNa6D548h1K/rADMpGF7O ZPkjTQpuLymxRoN5UFMo/dLhFkej2WoTiQ+p/6g9QB1kJA6KdUNEi3m1h72/APH4d7p0 IKS8fvlvrq5Jaed/HSszgZiKPsAJTMQLBqJw4Q/bmoufNXejln1pxYV7h75mLYFCtUAa hrjPnegt5BU/PoG7BI2dtayjszvOizuN326Hvj8yRpdf3KjSUkNIBzVocjHx95iro0N+ sSwfb+5ObiXOGlauKRDFpuj2gWOdFquTCkbu9WhsUWBRGGYIHXTMn+IkRyGrNcL6ufmY N0nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=oBaJ5OsgfXs2kkcWusba2RO2Avkk4yo/xOTdTxq4iI8=; fh=CytQsxHJzc7DD1TmS4HZFaTPcdkYmRH1BJ20JnFHO30=; b=NYvYQL2r5zjVDwFsNzNjzya4aAVux2sY2GlrHqc8p+37BMVNVqmSmFCe3gwGBY+lcI orPEkY788pjdReooJj+iuwnpaFKLfQEiaz9tCYgePU/vAbRD4ZgtPVZ4X0DBfluCj0O5 vzPGtjE50CHqZpE8HRVrA14gIf4SSzq/ilIAgovMB4bxdx1PR+Y1eJW3qmYhG6mOwwwW tM8rs8b9BFBT9xfcraXNbcUvc4VWqJEIKqu232fyUeVwFiHmUClRX9Vao/cxQQQ+1ab+ zJG4iTF1eZzrleXud+v/upJ/kIEPuNXVT2YYv6Lp7TxiisnlWdKoeDrnM494dbGvQN7b 9/Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vWJJpDxy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id i70-20020a638749000000b00573fc6a17dbsi4149474pge.435.2023.09.12.05.47.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 05:47:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vWJJpDxy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 658918021EEC; Tue, 12 Sep 2023 03:05:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233802AbjILKFN (ORCPT + 37 others); Tue, 12 Sep 2023 06:05:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233725AbjILKE4 (ORCPT ); Tue, 12 Sep 2023 06:04:56 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 887F910D1 for ; Tue, 12 Sep 2023 03:04:51 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-9a648f9d8e3so690248766b.1 for ; Tue, 12 Sep 2023 03:04:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694513090; x=1695117890; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=oBaJ5OsgfXs2kkcWusba2RO2Avkk4yo/xOTdTxq4iI8=; b=vWJJpDxy/4NEynNIdaJOXGXNcmrmjTFVV/dPa2Ebcv2jvU1bEBf9Zqk1g6P1csmUhP pEcDtPvOWBFZ9k/6wDf+1O2BWspCZuf5/zP+UPvCPeyyGPCiRMhTW19LBBXJt/ZtPfEA viFn1lBHEV/xnBBIsdBPHfK5w9ltyjkBJ0eAvE+IVKDijyauf3y0vptiVMlrbMrtIXoe NNLLySEYRsX9/o4ryEndUaIsBgD4bNOQNSKf6RfmQjzCkXxK46KR/jkQBU7O+FEOzFBQ wSyjk+6jqHhCOsRJFWniC98wyPuNWEuBjJRZRT5Sozz4IvB5ZNoiAaRQVyieuQEm2PRI +ZEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694513090; x=1695117890; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oBaJ5OsgfXs2kkcWusba2RO2Avkk4yo/xOTdTxq4iI8=; b=IY4O2Hh3sifYNy62Osdo/coL+PDxUcE+eg1nRvaxmZHak7YVmpz9nFdJwHGFuxFm1d Emu1n84ugCcCpLKe8t3qrZHuLlYu2lqRYbXUqItsPRAcx2VYPg2SsFkk8pUaNTD8P3PF Pe3e/Cz1IItcLC904h0OJdnvPQnKs1e9cKdj81YniEyXebJCzW5hSL0ykEISIitBsuzP vY71GKsZo2HjDDjCZ7vQCIHNdiYYxchepfs10zaGLPLGmVepIKhCguly6URREreQhv3m RoXVDKbuNZEp1Pq5NsCjy+k2O1i6xK86nqihz5dalvW4xUZqz470Lh8rzXfAx1FB4gHi cNDA== X-Gm-Message-State: AOJu0YwqRWC5n0aUg9ZCct7mlNc47iiItrU9AuddgCKSvXZa1A8e6rFl zjp8W+22rxBYJ6QiT5lStYhxHA== X-Received: by 2002:a17:907:77c1:b0:99c:75f7:19c1 with SMTP id kz1-20020a17090777c100b0099c75f719c1mr10281192ejc.39.1694513089988; Tue, 12 Sep 2023 03:04:49 -0700 (PDT) Received: from [10.167.154.1] (178235177248.dynamic-4-waw-k-1-1-0.vectranet.pl. [178.235.177.248]) by smtp.gmail.com with ESMTPSA id s3-20020a170906060300b0099ce188be7fsm6592053ejb.3.2023.09.12.03.04.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 03:04:49 -0700 (PDT) From: Konrad Dybcio Date: Tue, 12 Sep 2023 12:04:43 +0200 Subject: [PATCH v4 01/10] dt-bindings: display/msm/gmu: Add Adreno 7[34]0 GMU MIME-Version: 1.0 Message-Id: <20230628-topic-a7xx_drmmsm-v4-1-8b3e402795c1@linaro.org> References: <20230628-topic-a7xx_drmmsm-v4-0-8b3e402795c1@linaro.org> In-Reply-To: <20230628-topic-a7xx_drmmsm-v4-0-8b3e402795c1@linaro.org> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Krzysztof Kozlowski , Neil Armstrong X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694513085; l=2826; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=HNK2SS799OXNh7iy5vESf+h2uwh6BGHa1r43G7UvIKE=; b=+aNhNRKwvuwrMdhWRTbxNVQkwFcWZURLyBD2mwRyP/wVP/eXlh+1jqsekzIPBXb7Jrz+oB2AW 9yvuwejWMdsBoppcj4wodblH7P/o/r0eUQ6Pxz7OycwtF0+lEdiYMWk X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 12 Sep 2023 03:05:17 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776835975708716891 X-GMAIL-MSGID: 1776835975708716891 The GMU on the A7xx series is pretty much the same as on the A6xx parts. It's now "smarter", needs a bit less register writes and controls more things (like inter-frame power collapse) mostly internally (instead of us having to write to G[PM]U_[CG]X registers from APPS) The only difference worth mentioning is the now-required DEMET clock, which is strictly required for things like asserting reset lines, not turning it on results in GMU not being fully functional (all OOB requests would fail and HFI would hang after the first submitted OOB). Describe the A730 and A740 GMU. Reviewed-by: Krzysztof Kozlowski Tested-by: Neil Armstrong # on SM8550-QRD Tested-by: Dmitry Baryshkov # sm8450 Signed-off-by: Konrad Dybcio --- .../devicetree/bindings/display/msm/gmu.yaml | 40 +++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/msm/gmu.yaml b/Documentation/devicetree/bindings/display/msm/gmu.yaml index 5fc4106110ad..20ddb89a4500 100644 --- a/Documentation/devicetree/bindings/display/msm/gmu.yaml +++ b/Documentation/devicetree/bindings/display/msm/gmu.yaml @@ -21,7 +21,7 @@ properties: compatible: oneOf: - items: - - pattern: '^qcom,adreno-gmu-6[0-9][0-9]\.[0-9]$' + - pattern: '^qcom,adreno-gmu-[67][0-9][0-9]\.[0-9]$' - const: qcom,adreno-gmu - const: qcom,adreno-gmu-wrapper @@ -213,6 +213,44 @@ allOf: - const: axi - const: memnoc + - if: + properties: + compatible: + contains: + enum: + - qcom,adreno-gmu-730.1 + - qcom,adreno-gmu-740.1 + then: + properties: + reg: + items: + - description: Core GMU registers + - description: Resource controller registers + - description: GMU PDC registers + reg-names: + items: + - const: gmu + - const: rscc + - const: gmu_pdc + clocks: + items: + - description: GPU AHB clock + - description: GMU clock + - description: GPU CX clock + - description: GPU AXI clock + - description: GPU MEMNOC clock + - description: GMU HUB clock + - description: GPUSS DEMET clock + clock-names: + items: + - const: ahb + - const: gmu + - const: cxo + - const: axi + - const: memnoc + - const: hub + - const: demet + - if: properties: compatible: