From nobody Wed Oct 8 12:53:54 2025 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B84F01DB92C for ; Sat, 28 Jun 2025 03:02:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751079764; cv=none; b=ChW5BuidI6RKXuM8tO/GAEKprcVo4sr1ecnZuSRMoJ4s3w4TY0yM8UkVNVmY9SiMvZBYJw8XE5nKgePTw2H3zdN9m8aQuWzpuGRFY7ckwXari9ePBwUUouKamOvUtYdCkjqU/711RtMoQQ+JuEr5aZXWDSMyPFWOoutdcNQ8hjM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751079764; c=relaxed/simple; bh=9YGIHaPZZVo6xs/Nujkqpj0XLB0+skv7YqMwQaw0Vhk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aJ5+gvWYB0PVTFGYiQKIgViOuZILJIqZbSVp5ZTieRx1A72hAIA9uGwlHcfkq7cpCUKVu16q/tSkx5CfOeA7Kia5ACK2EIqtfLc+hhh8NQT1emXpgQ5f5JQO22qa+5kpLppbZEzzwVxEXGECLji7jmPVptmKJCWH4uNRHqDMn+k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=hnuOdl8P; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="hnuOdl8P" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55S0hK3K019229 for ; Sat, 28 Jun 2025 03:02:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= pn8lRprkqEuCtVcvMr9gW99dcctgojrtSe4TTaHQ1lI=; b=hnuOdl8PyC/YIDJp X68NVOQ312PUDICEvpyATg3ejvJz60foBVljFVZmBQYrZzUh5sjeqFLnlefVmvFq jkApPpDz2nCHT1NJ+WQRhg3rtzoBAVvml4Gh1QyBYECAQ0uyMh4ebVW9cpimTXm7 xjsjKU65ZBBAF1QzjWg6RzvpG2ggcCuweSnaOw+PfEcShLBJoLhRgSXEQuqc5e5K jC+OtcV9gk/DqLlrr36y/5SIuGpahVYRNrTOyLQ5zeUcn32NI9e8fuKoebH/Ic8o 8HYiT2cwTGi1ek8VtoOVjafFHeRQxrupJo1fqyGqH+pAaqGgczkknmLXE5IfEsxk 6LiSdA== Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 47j63k053r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Sat, 28 Jun 2025 03:02:41 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-7d099c1779dso49763285a.0 for ; Fri, 27 Jun 2025 20:02:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751079760; x=1751684560; 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=pn8lRprkqEuCtVcvMr9gW99dcctgojrtSe4TTaHQ1lI=; b=NcKuDWUUO0C15zg21yPBjIER9m8Z3Ra93hdahj3sy3fEZl+AMRSm3iJ0XmuCNQpnNp /RBPX9ed+JqGizH4WoIoexz5B4QiseXrzlAvlpoxTFXbKGYUD4CN06AmW620ZbJPplrC 1Pp7aDQBt2dmRGdRWZ0A5NOSu8P8BIJAL4R0sxEFCv1ATK4lgUaPDYx5xO34A3FQ2ZmV pI4X8qe1/Yr0lSrUCGy704F7r+ICD+7HGhAoFucPwcs9r61ERiQrVIHo1FoTFrNGWNHe jPWdAcCZDr/k3JB4kTft74wDIRZHOofLyjKaV2qPGlRzBvFw4+me6B55JB1EQbYPlCLL xBaQ== X-Forwarded-Encrypted: i=1; AJvYcCUXtO3PjsC1vdE3XtjY92lPTEsEGWjHnkLl6gSbmKxPksv6cZ/7E0V4nSF9L1riEDJsh2G24o86leT3s7o=@vger.kernel.org X-Gm-Message-State: AOJu0YzfpfhsBNbvz7OQyHmrNXI4VAmlbd5o8CgfQk0Gw/5DyVrnKG9L 4S4x1HKc2npMJLOF0k3ruejwJG1vrjJZAh07QPyq3Z6CrzYSNs0uEtCfmT1VB1nDQnlIcfRsT7q 3r/hJZUHpgfTkstNZQVyudKAYJgfsc4asxten/KPfD5EbtLw6hU3tF8ll+rUXXgFzs48= X-Gm-Gg: ASbGncs0pAXCjyq2GWRSWENqlYUo1Ju71xC0I9MLoRObpJnZNRx7fEhfyckgJx1nL5V mUZmNb+jMY3GTvkAig8H0sW2N0uzrQPrb67JRh0Uf7JLGYveZWmNi5f7pJ4cVWdowjDRqfw+Qb9 3BYq00D9ASUD6oXdhvRLED9wz5SYUTzFL0Y0DWBb3XJB6m04Ji/Sx6H6K9e2PpGqn4MEB1glY0I UfuEooU4OuuktwjUJDya3ZNSEK868tILQUpeOJ7ztVAmmkEwTyQw7wDwooLEFEZur4JRwkzFw3g OGHmOMlV1T7iqM1JSuWjeG3CYsgcfkihCi2+W2evpQsBLo9d6QBCWygTHKOPYsmuVIbABJnUs3C u4LXYDWCJFDidrwtgolVn9LM+p4txvMPO29I= X-Received: by 2002:a05:620a:857:b0:7d3:f63c:7ee0 with SMTP id af79cd13be357-7d443994e32mr745059985a.27.1751079760500; Fri, 27 Jun 2025 20:02:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGB6sLiLugweO26s+56NBhBPiiwhHw8p8mHSNpYn0MXz3xXHY1sPymiLX/dVkwjFIvSygbaNQ== X-Received: by 2002:a05:620a:857:b0:7d3:f63c:7ee0 with SMTP id af79cd13be357-7d443994e32mr745058085a.27.1751079760122; Fri, 27 Jun 2025 20:02:40 -0700 (PDT) Received: from umbar.lan (2001-14ba-a0c3-3a00-264b-feff-fe8b-be8a.rev.dnainternet.fi. [2001:14ba:a0c3:3a00:264b:feff:fe8b:be8a]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5550b2cec36sm652162e87.180.2025.06.27.20.02.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jun 2025 20:02:38 -0700 (PDT) From: Dmitry Baryshkov Date: Sat, 28 Jun 2025 06:02:35 +0300 Subject: [PATCH 1/3] dt-bindings: display/msm/gpu: account for 7xx GPUs in clocks conditions Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250628-rework-msm-gpu-schema-v1-1-89f818c51b6a@oss.qualcomm.com> References: <20250628-rework-msm-gpu-schema-v1-0-89f818c51b6a@oss.qualcomm.com> In-Reply-To: <20250628-rework-msm-gpu-schema-v1-0-89f818c51b6a@oss.qualcomm.com> To: Rob Clark , Sean Paul , Konrad Dybcio , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Marijn Suijten , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1390; i=dmitry.baryshkov@oss.qualcomm.com; h=from:subject:message-id; bh=9YGIHaPZZVo6xs/Nujkqpj0XLB0+skv7YqMwQaw0Vhk=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBoX1tM3ZQjq4fHNRB4zWahpGOQAMg5wqPQjtru0 jA5BsH+jqGJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCaF9bTAAKCRCLPIo+Aiko 1fraB/0ZgBnsS9r93leQrl17L1FgdnbkPwM6M4aMOHWDeMy62TP2r4PIX2Bz6oUb7DsbvzSkIvD 5DBQ6e+uEoJ/5xfFhapiM7DO4/mXWypigKZxqk8ZUxu/bEgzCyNGryBDMuiyCASKd77Y5qmCZfq FRh3t95lu9UQR5xb3uL/pt/v/fuys3dMw2okqnYCa5w6yQmaPBN6wTRDwoqe9kNZTiqkaVByF2M SxaOCNCmEeVbvGKwTtsSze05O/DuL9mlGtu+Jm8rN3C4W+WbJaoh1p9mJSHlcp1v9omtZ29y25o jNJjxvsfFdS+8BRvmk8/E2mSw8XWisiLxMAG8/P2i9qseZyb X-Developer-Key: i=dmitry.baryshkov@oss.qualcomm.com; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-Authority-Analysis: v=2.4 cv=ZKfXmW7b c=1 sm=1 tr=0 ts=685f5b51 cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=6IFa9wvqVegA:10 a=EUspDBNiAAAA:8 a=_Kd42T_lrbdN2LGistIA:9 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNjI4MDAyMyBTYWx0ZWRfXxHJ2dLrleCtz aKULtEdospZdrQx5jQVD1ZB7dtzoHT9dN2M51Cc1Pu7HIe6hIw7G/Gi+isT9vHnLYIKsbVsjslo VMuWIP3Ch0LRWsKVgotUtNGYucboH7gpnF7VFtZ2kRL2Tr+uqzHGr1yy69ckC9gsphghxqWcKqI Ab7ZSapzkAEKeVeZqp8wh+fnGWiMtKhEkGrMRp8O4DLipA2xOjLL9J9CGq/T7y8MKEjrZOgn3o6 wMluP8cbJox4KgfZ0PpbobyQzX9Hpwj7uoPCnCEhJRKJqwIpSR0ZJlcKoTllmrEp7KXIzGF8dqT BfCt82ukv2H/2mK7kjbHt/MYjFeyPvzDHg/o2sqdhk7P4BCU115DYsVqhwJdbp3+v5KPLc5KJ+z p5doUjV2LFxkLFN+mHfO52pNCfKVoGzdWo3/+Hu+k2wE1PsWN5WGIrEKP8gHyhMvZCTI/Ckc X-Proofpoint-ORIG-GUID: 4GwfQ8RKIfYCodDL9bgjsxOqPp5fI6Lx X-Proofpoint-GUID: 4GwfQ8RKIfYCodDL9bgjsxOqPp5fI6Lx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.7,FMLib:17.12.80.40 definitions=2025-06-27_05,2025-06-27_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxscore=0 mlxlogscore=967 spamscore=0 suspectscore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 phishscore=0 impostorscore=0 malwarescore=0 clxscore=1015 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2506280023 Handle two cases for Adreno 7xx: - Adreno 702 follows A610 and A619 example and has clocks in the GPU node. - Newer 7xx GPUs use a different pattern for the compatibles and did not match currently. Signed-off-by: Dmitry Baryshkov Acked-by: Konrad Dybcio Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/display/msm/gpu.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/msm/gpu.yaml b/Docum= entation/devicetree/bindings/display/msm/gpu.yaml index 6ddc72fd85b04537ea270754a897b4e7eb269641..97254f90926030c4a4f72ae5e96= 3af1845f0dbbd 100644 --- a/Documentation/devicetree/bindings/display/msm/gpu.yaml +++ b/Documentation/devicetree/bindings/display/msm/gpu.yaml @@ -187,6 +187,7 @@ allOf: enum: - qcom,adreno-610.0 - qcom,adreno-619.1 + - qcom,adreno-07000200 then: properties: clocks: @@ -222,7 +223,9 @@ allOf: properties: compatible: contains: - pattern: '^qcom,adreno-[67][0-9][0-9]\.[0-9]+$' + oneOf: + - pattern: '^qcom,adreno-[67][0-9][0-9]\.[0-9]+$' + - pattern: '^qcom,adreno-[0-9a-f]{8}$' =20 then: # Starting with A6xx, the clocks are usually defined in the GM= U node properties: --=20 2.39.5 From nobody Wed Oct 8 12:53:54 2025 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A9E421B9CE for ; Sat, 28 Jun 2025 03:02:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751079766; cv=none; b=OrQzoAUWgswh9egxo7iq/g4RTby9e1avzBwPJ5Yt5mj2MIyFJMrcK0HgV+Kmn6lx0XOR4JOIlcJ5v8IQIz+WCgW2MiMoLId85HwL27VU2xs633e7ZMNr+QC34SEhPgBX2RKnjeTdvssj2cPg8m1gyvuTvzZPH9gSVyyJ/LBIKj4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751079766; c=relaxed/simple; bh=BZ/L0vXDMrjRpmDOemaXJyxUSi1dw0SrlQJrslusto0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Febj/pKo4O9KoCt3VmkmcJWj3eLYIuUZJbAj+SvauJ6FjZV4d5K42c0CqB9dDSG37Lkox3o8JFRiQMKpe5T+hjZ0PLK35S/HI/CH/aZnpoNzgiOMz5lOFcsRyWJmPIKzzUYdaAUQgOJtc5WL/g5468jNGBOlEd9F6yLR21unKrw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=YlOI21Vg; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="YlOI21Vg" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55S29Jam027450 for ; Sat, 28 Jun 2025 03:02:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= WyIF8ET/8reT+adwEBoFNJ3JczrXUqQ34OWiVHWVjBk=; b=YlOI21VgADrGsTFa UQceUSCXb09Z5rHxdw057aZg7rpgbAclrkCBzuv0NMhNpAoXi1Jhfs46USFLgKfa YuYoCNxuzD/QsWdjp0Er6euYGErF3aXjImPBX6QErHRpIM4qdAgLylXH8Wv4YO79 Z4NfJEG9PInTTrNXUIrA32KcK09JwLzMa40Vn8y9jVXB6abl81H11jf8+jfFjVBz Zl2oIIZYlUCoBxnZTgW+TSz0q6AYtKNabqGa7+0yXedm4RPc2gTvZ2WTFkz0HFlD 4vnQMpe6ub/6z3gnHG/G2srTyDQW289zuwsXsTk9rDkjQiMh6Ql3B4Kuu+Yp/nLT zZ9Fzw== Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 47j7bvg1s9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Sat, 28 Jun 2025 03:02:44 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-7d097fd7b32so118373185a.2 for ; Fri, 27 Jun 2025 20:02:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751079763; x=1751684563; 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=WyIF8ET/8reT+adwEBoFNJ3JczrXUqQ34OWiVHWVjBk=; b=oaL//H2uf9aNHbzYKdwSjrn7iNQB19dFRfuQfu78cCOyrYZPyZR0prrhVlmry7CCqg lRpSG4HSyKhNek8Z99HC+yg07uyZqX/3MdK/1V5YvLxYmEoekTdYr7tLSDS5Z6tRYt87 +Jy1Lf1DqWZzn4JzfTt0A5ct30Sa+Fpc79sT3liGhxkHxOI6hxB6Qy4H/3qvyu1Hb40r 6jOxa6bKQV83cN/M6fDTNBuIE2fdoGdk0VKISTsGOLbeSIIdO8HYL5UDmyv1epULuXy4 JU0NlNHk1HXqoBCuZUbY/neW8z+D3pbYDtYiOpKjZbWiKdGBv+awC96UOu9yjF45W9RM sbjA== X-Forwarded-Encrypted: i=1; AJvYcCWVirYo/BrXDvBbfdgHHkhSATaXOIlyZbORwB1u69W9d3aPWjmuUi5FXznYRGoShTxoYdWzcJE7zn6XvMw=@vger.kernel.org X-Gm-Message-State: AOJu0YxYPxC7yRGBlsLWt64/zVH/Vi28472jd3MMJ02PG8TOvwrrOapo URBG4i3ADSWmAdK+ekWPmjcX1pwjHJof1BUd9yI1rCkLuPo80HFUYPOFYmw4OBIwPH3Wnri012N ZSUzRoPWpdVzuU+cH913Laafy/dNKiETNJhVy6kdRCQ6PavFL5pPsUoTsvt0jF3KeuRw= X-Gm-Gg: ASbGncuYVhkYlFnKTcsmOBRTrBt9HytRRm0ZT/rLq0XpS2bU1YOxISsOHSLXFiy2/uN 1fLPrghoNkTnN1RdTq2XllVF5KKxEDKJ/kLrCyBaS6leX7TDUZ+KLjeH6DFmeEIGpBbCHNrVZY6 5voC/OpQ+auNiw54JgZZzZAyZq7l5J5XY3vQ90BlGgGdQkGC0ZC1tHFuiDQLbGsf6HBDMwbPzNw n7RknvJ2gMDcxUqeU/WrC2IlIdSkB14pndS8NetZzxQ4TUvpOkg+MD89mewLEeZYWdqLN+3s3Xw 6ws0j8+P+AZ4G324kyKBq6/eZzf+eNZCqeNrR1Cm5gjJup/Y8NnQmxNhK2JXHL3Y4IHhDSXGIrm siu0R7qt2nPzJ2ehw7EhKuco/j3cZtEXQZzc= X-Received: by 2002:a05:620a:27c6:b0:7d4:3a17:bafd with SMTP id af79cd13be357-7d4439016admr843511785a.6.1751079763185; Fri, 27 Jun 2025 20:02:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH1qompkvIDrvMFsstdR6uF3g3AklhHt6dKY3yvNkV1TMIXIkwbGM2mjIkNgstKjIzZU8UGnQ== X-Received: by 2002:a05:620a:27c6:b0:7d4:3a17:bafd with SMTP id af79cd13be357-7d4439016admr843508285a.6.1751079762704; Fri, 27 Jun 2025 20:02:42 -0700 (PDT) Received: from umbar.lan (2001-14ba-a0c3-3a00-264b-feff-fe8b-be8a.rev.dnainternet.fi. [2001:14ba:a0c3:3a00:264b:feff:fe8b:be8a]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5550b2cec36sm652162e87.180.2025.06.27.20.02.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jun 2025 20:02:41 -0700 (PDT) From: Dmitry Baryshkov Date: Sat, 28 Jun 2025 06:02:36 +0300 Subject: [PATCH 2/3] dt-bindings: display/msm/gpu: describe alwayson clock Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250628-rework-msm-gpu-schema-v1-2-89f818c51b6a@oss.qualcomm.com> References: <20250628-rework-msm-gpu-schema-v1-0-89f818c51b6a@oss.qualcomm.com> In-Reply-To: <20250628-rework-msm-gpu-schema-v1-0-89f818c51b6a@oss.qualcomm.com> To: Rob Clark , Sean Paul , Konrad Dybcio , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Marijn Suijten , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=942; i=dmitry.baryshkov@oss.qualcomm.com; h=from:subject:message-id; bh=BZ/L0vXDMrjRpmDOemaXJyxUSi1dw0SrlQJrslusto0=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBoX1tMwu76TUVuS3VM0TJPzwdp55YvaGMGur1Jc BNDlSOT86+JATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCaF9bTAAKCRCLPIo+Aiko 1RXkB/sE4FvobjpToVj9wMIBigfVTv34gUAtGw/ot9XYLMvZp1DZYU0PyP+dOJrfdXA2gvEnwCF UsqS3CHNrJ1rY4Ejl0oYihYMHWWU4BmL01lbt0HtM7Jb319esifd2QV0LHKpH4RUcgPnagxdcUJ qQb4DoqHxgDj8rQF5BsRKjflH6lwLFrtfeBzZ5rn2YKCjO4qR3oC547sOcDii9623oU/ZLqTUcD pjDYFw9jqhUG0CB/f/f5bEmgPc1+wbZMVqQ16yB+9o42OKGYFtFOpj9QzVv/3r0zKK9KiRgALfA CZCsttBn4GEOoGKTYOiQI9L5CeTOYcqfMJLQZ7WvggixMg44 X-Developer-Key: i=dmitry.baryshkov@oss.qualcomm.com; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-Proofpoint-GUID: Ucl7zb6ycxz018tB93DmbuW7unvBNDgf X-Authority-Analysis: v=2.4 cv=RJCzH5i+ c=1 sm=1 tr=0 ts=685f5b54 cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=6IFa9wvqVegA:10 a=EUspDBNiAAAA:8 a=LRArfFjgsGaU937PEt0A:9 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 X-Proofpoint-ORIG-GUID: Ucl7zb6ycxz018tB93DmbuW7unvBNDgf X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNjI4MDAyMyBTYWx0ZWRfX6MKGOcQOx4EB CGmgH8rAX33ckeMBovw661AFKvnZalCYMHE9+qnptAHCeyESe4SbxqOBgOlRMFlwDXp9ngV17Xq 8IBBMD8tOQqnt+JbQMd4gQ5Wcp52eOrw52xwvthrqwWLiznu9UtP1roRf4xDtWoA00EBkv6eBJb S/6VdfWD5S3EZGxY2ogLkfQwRZl51kb/9h7KMLr/LbAKG834hCp3zdUpxctR9ZKiJdSjkEXfMZp ZLry8/MLiU9Fc+5ncb1m1m7/rkqcwiQJqbXFmrSlsz7yrOSiwG08TJiERkfSL53oWRaYL1pkX29 bicVWhDlzS/5vs5afCblaVy1oZutwoVeVDpUZ28Nc3+VaO861zJMZ8zOU7rIU7sB9OEQ56QSN26 JC0+ubjOvE1F1CURL4Z9IkyQmICNOszoOTP0OETm+wtZcODM8rjHBrJkGj6zYDUh89SyCv98 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.7,FMLib:17.12.80.40 definitions=2025-06-27_05,2025-06-27_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 priorityscore=1501 mlxlogscore=912 adultscore=0 malwarescore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 phishscore=0 bulkscore=0 suspectscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2506280023 Adreno A506 and A510 have one extra clock, alwayson. Describe it in the schema. Signed-off-by: Dmitry Baryshkov Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/display/msm/gpu.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/msm/gpu.yaml b/Docum= entation/devicetree/bindings/display/msm/gpu.yaml index 97254f90926030c4a4f72ae5e963af1845f0dbbd..af43527188cefda0c127c4674d4= 667203972f583 100644 --- a/Documentation/devicetree/bindings/display/msm/gpu.yaml +++ b/Documentation/devicetree/bindings/display/msm/gpu.yaml @@ -173,6 +173,8 @@ allOf: description: GPU RBBM Timer for Adreno 5xx series - const: rbcpr description: GPU RB Core Power Reduction clock + - const: alwayson + description: GPU AON clock minItems: 2 maxItems: 7 =20 --=20 2.39.5 From nobody Wed Oct 8 12:53:54 2025 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0E6C21D3E3 for ; Sat, 28 Jun 2025 03:02:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751079770; cv=none; b=si4+sdehmbmm4ifJBMP2AjslNsiue7y+yrs3HOf95An36WvgtRScqopOyW0Z6etD/znv9cL7l1V0FcBi1DXn+TSAK6si3J5tnBbaI/TcELR3XtKMnHGUafNEx8ZXIwf1K8+eE021u/wVVrVbUhPA+j/yyueN2tIsEQ2TLVJ4DNQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751079770; c=relaxed/simple; bh=on2BHgBcWkoYT/ewSpxz+0Nn83q7soVlm475P3sXIOM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PYkoJDDWRULBX9eyu1FndM+zJ3NmO9+XuFv4EW+N50drzT12Zzu3T+uvvxN5Sg4N+MN6bdsooJI4/kpnKq3nQE2r5WY7cNF9ReBxSIjGjkg8jQdZz66lVX1vhV8UQ7OcgxVknCiFCJFd8NwS0qvVYn2YGpUi4XBGpEyhXyVdnlY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=YIz48+P3; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="YIz48+P3" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55S28swe024145 for ; Sat, 28 Jun 2025 03:02:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 5aR8fGjAivIsW8Z1WVaLdu7x69SPiAPyD3BZFTe1eAA=; b=YIz48+P3xsJXg6wd 1+L1uf4/U9lp4P+97DCeZK9z60HcfCWiCuAPDmFhVJWhd+rPk9W3cxtGm2jBrDKZ 9A6UlpxGZ7WXAW2i676ZQ61jT4m4dO5Vx7Ic99WwpvbjDnYWxnhtikius2Mw7Yq7 rw49iMfS9AK/0r0qaWsK4cFALEl/GuXRMfIDROukP9275u7QownKubnKesR+Z3Qs tU1sCb9FsA7pG+VWGCvaekZ/p6b3YNJqyvIYhZuJBpMaSeF39bQgoF93v9tw5KP5 WtNA+NdSQcQaZw2U0kXIvhbFk3o6ewx8rHK7sAF7ULi15Ti/2WDi4UxfJNLXre1i X133ng== Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 47j7bvg1sk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Sat, 28 Jun 2025 03:02:48 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-7c955be751aso424129085a.2 for ; Fri, 27 Jun 2025 20:02:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751079767; x=1751684567; 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=5aR8fGjAivIsW8Z1WVaLdu7x69SPiAPyD3BZFTe1eAA=; b=ioGPgcnIHZSft2rgBZ1c+LFrDmFam0ZpWB3pQnzR+4vF91XiulT6O7XdP2C2x0lhRc gMKvnlZeiX/V1pqOjVNpWQ40k44bpY2VxqOc1LIdF6eGfkMfoCOaAT/RgR8RYP+LtCju bOGyJ5/BFKjvV8poaCB3ERcuw6qIkn71O8oHWU213V8lpd1eocJ/Ijncrbj6U4bMxU7j aF+xxFXclVaKSjE6v5yT25xjtnmAJoYr5p5ea53iGI1r5xbmYD5W8QuaBuOVbBFRyc0H YVhEPkH5ItJVQ6l//zQwn5woKdTt+tx82e6O8h8uAe1/r6+ZLJ2aMFWxxg0aSWZPjyS3 JrQg== X-Forwarded-Encrypted: i=1; AJvYcCWWBmp9F0e7zeFJBwBlRT99ADKXSbZptw5dojLOHgrAqGm066BRzo5SdnCv/0mxZ2c9cjsjhW1YXEpSvcM=@vger.kernel.org X-Gm-Message-State: AOJu0YxCo2YxglZ1jeyLnr4ymMv4R4wpuM4lU2n6SfVv/nKXhllRygLZ zZ4c+1GtVv+zTBtN66NZqstAKXEspPSjFFZ/dZpcqxYSgnD3DZOoKQxrfzn/nkf5jL2x8HHY6No D6C4/0mYaSnb7NL2YBPM1zzHxofHUxNqoK1SKtDD/ARe714LpakEQGC21Y5Skoiq9QZw= X-Gm-Gg: ASbGncuHt4cJVbWXrk+IL+m6RpPrRQx6dHdMoB5L1dhXsPZyuUWqoYAf5qNkx6pzDVl Y7TFjO90zmwW0qDHpwmRgWjchKuxSGCiKsV0NPWDubY4jCnZ1a1aKxbk9AioT/BtUqwVD4HpXrj 879qq0NGE/PBXnnxbotMQQK3lndRyZG2w7r3ld7XiGs/kfw+r/uv+kiWLxOC4gc/EO50yurYRs9 Jy1q7ctqx6jDnNZ0EzYlEGBHvrBWvQRtLHwGqn4ZslAy8PJ/uNJnOt8iJ8JPpYOxi3tjTgqz0EE X32Rs89hX6OdRC/fEFyutWmV1gz3najO9Ih0zMkEZEDjfXhfrfV276C+89kFbAxoptnyxNK+ygp ytN+PHeKtLxUeW9F65BIrolkEq5Mv43aNcDs= X-Received: by 2002:a05:620a:1727:b0:7d3:9e75:6953 with SMTP id af79cd13be357-7d44399cea1mr913295785a.52.1751079766770; Fri, 27 Jun 2025 20:02:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHeIaPbr6Eb6DCFi+U0O1m19Bb2BROvDh0XhxtlAu0XGoBDUeVMqWy1lJZwa8PIlZmHgxATKw== X-Received: by 2002:a05:620a:1727:b0:7d3:9e75:6953 with SMTP id af79cd13be357-7d44399cea1mr913293185a.52.1751079766356; Fri, 27 Jun 2025 20:02:46 -0700 (PDT) Received: from umbar.lan (2001-14ba-a0c3-3a00-264b-feff-fe8b-be8a.rev.dnainternet.fi. [2001:14ba:a0c3:3a00:264b:feff:fe8b:be8a]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5550b2cec36sm652162e87.180.2025.06.27.20.02.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jun 2025 20:02:44 -0700 (PDT) From: Dmitry Baryshkov Date: Sat, 28 Jun 2025 06:02:37 +0300 Subject: [PATCH 3/3] dt-bindings: display/msm/gpu: describe clocks for each Adreno GPU type Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250628-rework-msm-gpu-schema-v1-3-89f818c51b6a@oss.qualcomm.com> References: <20250628-rework-msm-gpu-schema-v1-0-89f818c51b6a@oss.qualcomm.com> In-Reply-To: <20250628-rework-msm-gpu-schema-v1-0-89f818c51b6a@oss.qualcomm.com> To: Rob Clark , Sean Paul , Konrad Dybcio , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Marijn Suijten , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=8307; i=dmitry.baryshkov@oss.qualcomm.com; h=from:subject:message-id; bh=on2BHgBcWkoYT/ewSpxz+0Nn83q7soVlm475P3sXIOM=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBoX1tMJ5CQdX181Qavk2jRBSkDutKIttOYQLspI dO14GTIeq+JATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCaF9bTAAKCRCLPIo+Aiko 1Xt3B/4s/QVV4Tn7GK5YrC9I1uckXq9WeLcot75I7GKrsJVje+7LzUciGGirOrkTpC4SFrZbNRp WQ1F9qSOUpWQxcoqdEiOPuDnMIR6/T5IRfkXgGEck+VR0rk5D6HK7ek68vU6XKZIgACVCsDzZ1x XdF/vHHOV+FviOcFLmqQMmzxQA27jMobKgqDAnnGX7Rvaa7XEXbNmVAmlU7bozTiutDP7ZBuRAB WnV9AIMFgLYLyRcMLNT31R7X4OTo/1YuV/BvJIH0zf/SAwkzujl7S8guuhCJPkgeIatQhoDYsyM ZlNo3fNNCDcslxx4+/tFv3Blco1ZYqbK6BkpzLxg7rFf36nF X-Developer-Key: i=dmitry.baryshkov@oss.qualcomm.com; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-Proofpoint-GUID: bYna_78wmsUg0tU4FmpBGUoNSObY0EWj X-Authority-Analysis: v=2.4 cv=RJCzH5i+ c=1 sm=1 tr=0 ts=685f5b58 cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=6IFa9wvqVegA:10 a=EUspDBNiAAAA:8 a=iX1fKmmLQLlQjSsTkigA:9 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 X-Proofpoint-ORIG-GUID: bYna_78wmsUg0tU4FmpBGUoNSObY0EWj X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNjI4MDAyMyBTYWx0ZWRfXy/USEujnXJ9J ZTlDhFdmhxdICAHWCiJZNgbNzLb+bAZJxGI7pNh5kO67SVHuDRXIcmMr33La4nFf+8lxdunfGwY b18UQAXIeE0WY709PsMfW9jvAt31JoFYHZAjdDT8CGHHn4XiLcxKb7VrXgER+sQ1s8yuqashtn2 SkE4eUHx8vm33aXfe+MlM6hHx0XzXU0Mxtan54o3GnvjEFuJjJMFkTr3omhYm4dixnZUe4qZaBF L3l9NXQ9Vc9MW0q6HrJIEnIuep1VESP3y/Vs7O7/TD+qV5kVASBTBkwDzTJBSuCsDjWM6FIqsU/ VnTta6mMg+jAYEojB04BRfvrIeRzJDjpqMqRdflH3cemeahIPCJKciMGRV7Sdt/ll37Y8cacuhY ir6eQti34r7Wlw5V50y3+GzVsrSE69jSbRJ9blHNvS92LLs0AVg7mDdcGe1wX/0O7n7AcLxT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.7,FMLib:17.12.80.40 definitions=2025-06-27_05,2025-06-27_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 priorityscore=1501 mlxlogscore=793 adultscore=0 malwarescore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 phishscore=0 bulkscore=0 suspectscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2506280023 Rather than having a single list with all possible clocks for A3xx-A5xx define individual Adreno GPU types and corresponding clock lists. Signed-off-by: Dmitry Baryshkov Reviewed-by: Rob Herring (Arm) --- .../devicetree/bindings/display/msm/gpu.yaml | 220 +++++++++++++++++= +--- 1 file changed, 194 insertions(+), 26 deletions(-) diff --git a/Documentation/devicetree/bindings/display/msm/gpu.yaml b/Docum= entation/devicetree/bindings/display/msm/gpu.yaml index af43527188cefda0c127c4674d4667203972f583..7ef80f9fac8b2927b2a69100a7f= 6c729d9d188ab 100644 --- a/Documentation/devicetree/bindings/display/msm/gpu.yaml +++ b/Documentation/devicetree/bindings/display/msm/gpu.yaml @@ -146,41 +146,209 @@ allOf: properties: compatible: contains: - pattern: '^qcom,adreno-[3-5][0-9][0-9]\.[0-9]+$' + oneOf: + - pattern: '^qcom,adreno-305\.[0-9]+$' + - pattern: '^qcom,adreno-330\.[0-9]+$' + then: + properties: + clocks: + minItems: 3 + maxItems: 3 + clock-names: + items: + - const: core + description: GPU Core clock + - const: iface + description: GPU Interface clock + - const: mem_iface + description: GPU Memory Interface clock =20 + - if: + properties: + compatible: + contains: + pattern: '^qcom,adreno-306\.[0-9]+$' then: properties: clocks: - minItems: 2 - maxItems: 7 + minItems: 5 + maxItems: 6 + clock-names: + oneOf: + - items: + - const: core + description: GPU Core clock + - const: iface + description: GPU Interface clock + - const: mem_iface + description: GPU Memory Interface clock + - const: alt_mem_iface + description: GPU Alternative Memory Interface clock + - const: gfx3d + description: GPU 3D engine clock + - items: + - const: core + description: GPU Core clock + - const: iface + description: GPU Interface clock + - const: mem + description: GPU Memory clock + - const: mem_iface + description: GPU Memory Interface clock + - const: alt_mem_iface + description: GPU Alternative Memory Interface clock + - const: gfx3d + description: GPU 3D engine clock =20 + - if: + properties: + compatible: + contains: + pattern: '^qcom,adreno-320\.[0-9]+$' + then: + properties: + clocks: + minItems: 4 + maxItems: 4 clock-names: items: - anyOf: - - const: core - description: GPU Core clock - - const: iface - description: GPU Interface clock - - const: mem - description: GPU Memory clock - - const: mem_iface - description: GPU Memory Interface clock - - const: alt_mem_iface - description: GPU Alternative Memory Interface clock - - const: gfx3d - description: GPU 3D engine clock - - const: rbbmtimer - description: GPU RBBM Timer for Adreno 5xx series - - const: rbcpr - description: GPU RB Core Power Reduction clock - - const: alwayson - description: GPU AON clock - minItems: 2 + - const: core + description: GPU Core clock + - const: iface + description: GPU Interface clock + - const: mem + description: GPU Memory clock + - const: mem_iface + description: GPU Memory Interface clock + + - if: + properties: + compatible: + contains: + pattern: '^qcom,adreno-405\.[0-9]+$' + then: + properties: + clocks: + minItems: 7 maxItems: 7 + clock-names: + items: + - const: core + description: GPU Core clock + - const: iface + description: GPU Interface clock + - const: mem + description: GPU Memory clock + - const: mem_iface + description: GPU Memory Interface clock + - const: alt_mem_iface + description: GPU Alternative Memory Interface clock + - const: gfx3d + description: GPU 3D engine clock + - const: rbbmtimer + description: GPU RBBM Timer for Adreno 5xx series =20 - required: - - clocks - - clock-names + - if: + properties: + compatible: + contains: + pattern: '^qcom,adreno-506\.[0-9]+$' + then: + properties: + clocks: + minItems: 6 + maxItems: 6 + clock-names: + items: + - const: core + description: GPU Core clock + - const: iface + description: GPU Interface clock + - const: mem_iface + description: GPU Memory Interface clock + - const: alt_mem_iface + description: GPU Alternative Memory Interface clock + - const: rbbmtimer + description: GPU RBBM Timer for Adreno 5xx series + - const: alwayson + description: GPU AON clock + + - if: + properties: + compatible: + contains: + oneOf: + - pattern: '^qcom,adreno-508\.[0-9]+$' + - pattern: '^qcom,adreno-509\.[0-9]+$' + - pattern: '^qcom,adreno-512\.[0-9]+$' + - pattern: '^qcom,adreno-540\.[0-9]+$' + then: + properties: + clocks: + minItems: 6 + maxItems: 6 + clock-names: + items: + - const: iface + description: GPU Interface clock + - const: rbbmtimer + description: GPU RBBM Timer for Adreno 5xx series + - const: mem + description: GPU Memory clock + - const: mem_iface + description: GPU Memory Interface clock + - const: rbcpr + description: GPU RB Core Power Reduction clock + - const: core + description: GPU Core clock + + - if: + properties: + compatible: + contains: + pattern: '^qcom,adreno-510\.[0-9]+$' + then: + properties: + clocks: + minItems: 6 + maxItems: 6 + clock-names: + items: + - const: core + description: GPU Core clock + - const: iface + description: GPU Interface clock + - const: mem + description: GPU Memory clock + - const: mem_iface + description: GPU Memory Interface clock + - const: rbbmtimer + description: GPU RBBM Timer for Adreno 5xx series + - const: alwayson + description: GPU AON clock + + - if: + properties: + compatible: + contains: + pattern: '^qcom,adreno-530\.[0-9]+$' + then: + properties: + clocks: + minItems: 5 + maxItems: 5 + clock-names: + items: + - const: core + description: GPU Core clock + - const: iface + description: GPU Interface clock + - const: rbbmtimer + description: GPU RBBM Timer for Adreno 5xx series + - const: mem + description: GPU Memory clock + - const: mem_iface + description: GPU Memory Interface clock =20 - if: properties: --=20 2.39.5