From patchwork Sun Jun 23 20:03:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13708728 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C78918410F for ; Sun, 23 Jun 2024 20:03:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719173010; cv=none; b=cRwBkdGsFKmDbel+AXpnBmk35F4O3lUnZCJ1H9/gcC84HGB5RbsP3bJoGSl0XWB1/yLszEOFRNeq5PuP6AYSUNd6QpBAj3XJvB3WtPSDUODDQdCh8e2ouUFpLUtLr0N53bcldPJ/PZQoDdJ+U9frRaPdYjR+QlicVzPaQvykwhQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719173010; c=relaxed/simple; bh=4/9Aq/arFNn+xRSwSsZRPh1izhnXURJa1LwMF+ulWIA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cU5eMmIPOtPAx1u3RB/jIsw9M1Q/Lh3sKZbdlQYoBXYzlDyn/fFKPLCMZ/+dCwIvUI2q4y8YRn2/Xo6HyJvSN3jmsIeSz0TKsjadzx2O0x/wDeCP5y1QXr3WKUvMV5VAGC49U5PuiDNvItKHt7qhl20srGVSerk0MNhwLtaXiY8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=E0GLX5pC; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="E0GLX5pC" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-421820fc26dso31216065e9.2 for ; Sun, 23 Jun 2024 13:03:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719173006; x=1719777806; 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=dRwsnzJtrZqzT+Su1tk781Q5TL7jN+Wj95SuluafSco=; b=E0GLX5pCQXaobxqucSlqO4alw44/XygXWGzIoevVGbEyA1A6YDOo6STSqw2w5aefRD XKg3NuE67aYFCEF0W3lkj0Gd0iIM4GsJ6xkh7Riv8lnbJXeqnETHeWjVkYMXHj/M81DR cfMK+rIpSQCV0NaLCU6dFGS3jvtny1fb/ZQaCsVPIm+F65WXgxvw5w3RQr708rcTJn0Q AK0uYSA8hYEUfQ6I2kwJ7BQOGD/EZv2x9DF0nrlX2VeQq0yifhIvWHzjc6DfzB5UFxyf PRjl5C+4eyFFtWUDdSvzkMpnHqyFpKBPepKBNs3GL1iMeYQuQGXZYN9aDTcIJ6t/OzpR CUyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719173006; x=1719777806; 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=dRwsnzJtrZqzT+Su1tk781Q5TL7jN+Wj95SuluafSco=; b=Lycn7kuoYPcZpdjda+oZQlVw3iHh4RfSsPmMGOXrXZfpYW6nKCdbYakDcgQhVWl9p/ AjUlGrJIbNA+C9tAm8pIMRwDcPDoYAunUHzeFCo40F2ZQExEom9N7qfyEGzMznG/w1pM RCI1R7Zkh5xVUu7bzb7j/tC6Jdig6JJk9Nfn/b+eniYJPQohrZO3xlvKfu9TZ8LvNncG 6uxnPZH4gXD0r7BQuDzrguDwSUW90V2E4nFKVZiQrAwU3wCK0HStIazqegXE3Wf95y3i 7qNBFWnsb0Q3fWDs4fJtcdokLZe6UoBBzt9aeN5UCGs80Gsi6UOuumgDAAxKDCUcZBXX QflQ== X-Gm-Message-State: AOJu0YyGUzesWrJMqUB2Ox0Bgch08oDsli3B6/SDEmNz3fpOzbHEvfge xXg+nkrxMLmjO3exAvYc4/TQkMrRKJ0UcuaJJNLGumEvHppdUbWGwRTPz/x7rKc= X-Google-Smtp-Source: AGHT+IFJpv39zP4029Ssli5x6YQ1Ds7nJ3+NECE5rAgHlYqbz/JJirZIdj6Ljc5SlMfSG2LXJ09QnA== X-Received: by 2002:a05:600c:240c:b0:424:9477:ba19 with SMTP id 5b1f17b1804b1-4249477be72mr1664375e9.0.1719173006056; Sun, 23 Jun 2024 13:03:26 -0700 (PDT) Received: from [127.0.1.1] ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4247d0c54c9sm150685345e9.27.2024.06.23.13.03.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jun 2024 13:03:25 -0700 (PDT) From: Krzysztof Kozlowski Date: Sun, 23 Jun 2024 22:03:00 +0200 Subject: [PATCH v2 1/4] dt-bindings: display/msm/gpu: constrain clocks in top-level Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240623-qcom-adreno-dts-bindings-driver-v2-1-9496410de992@linaro.org> References: <20240623-qcom-adreno-dts-bindings-driver-v2-0-9496410de992@linaro.org> In-Reply-To: <20240623-qcom-adreno-dts-bindings-driver-v2-0-9496410de992@linaro.org> To: Rob Clark , Sean Paul , Konrad Dybcio , Abhinav Kumar , Dmitry Baryshkov , Marijn Suijten , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , 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, Conor Dooley , Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1071; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=4/9Aq/arFNn+xRSwSsZRPh1izhnXURJa1LwMF+ulWIA=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmeH+GBCUCUJpJdjHiAhVps4qq/mnaC30VIybMf k4SsU1FP9WJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZnh/hgAKCRDBN2bmhouD 1zJpD/4hFM10qme9VeV2lS5WgpaIGfkSCtPbJ9yqeAmaQunz1ilA8smxq8cdUVXE9gLxmFhU5l1 lQI+Lt85hl+Y5dXEqzVKxzrxeWj7YMdNX//e9a3b76kZPr3OESjU6xFZ8wYcAsFPyTqiKUFh8FU hGD0Cy+ql0nbC4mA3mQSyQDKuDymYy55LJjnruaHgjIx8dE1LugaPIOsIbfgU2tC3TMhLBqkvrw jpIfJu0wJd2iY7blxkFwA2i3gAvo1FHIlj9k0oUMNo/miPH4Bc6NEux0tDGkDftTKM9gn67wz4D 7YdaDJ24YV7g1pckorl4PYZS6cLcJ8+MXl+ovS4oYAf3/21eqYYUiPTCYvLvCjDCh/t+gcki17U b5gZFIG+X7H5IDDEQNk9QWbjP9fNQdqeMkgyEF4p6fF7j10zzpGh4IllsMEO2bY0h91CXKqG+A0 Kkku9mY+F7xAWHFIB38ZkRxZFcP3VicGP8HmGnase3+7GOWNG+xSNnkzUdRhwB9uZH/taKN2e22 v8jUhjV3gEsrLWjXqsrIja17NJDgakeyCKRqJizfHMBJIuE1lkP642irbb2BCnfknwUSdQVhDpM EaiPu+ZJ9ZmllVhplasqbS8nXwQoCwCL8Ct9Mm4dmk7Y3SnKlr8mxcNmqB08LjmKjTkxsEVronl XRvouwunMTYdgig== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B We expect each schema with variable number of clocks, to have the widest constrains in top-level "properties:". This is more readable and also makes binding stricter, if there is no "if:then:" block for given variant. Acked-by: Conor Dooley Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/display/msm/gpu.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/display/msm/gpu.yaml b/Documentation/devicetree/bindings/display/msm/gpu.yaml index 40b5c6bd11f8..253e68d92779 100644 --- a/Documentation/devicetree/bindings/display/msm/gpu.yaml +++ b/Documentation/devicetree/bindings/display/msm/gpu.yaml @@ -32,9 +32,13 @@ properties: - pattern: '^amd,imageon-200\.[0-1]$' - const: amd,imageon - clocks: true + clocks: + minItems: 2 + maxItems: 7 - clock-names: true + clock-names: + minItems: 2 + maxItems: 7 reg: minItems: 1 From patchwork Sun Jun 23 20:03:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13708729 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A5FEE18308E for ; Sun, 23 Jun 2024 20:03:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719173011; cv=none; b=lgGyBVplTqcxkekIRJA6CZnDTtUo7Gg+6r1BPWDvGKlxV5MLRc0WpGTpqcj2Cafv7LSK3jN6vrazot/MbcOetGnX3DAV2gr75293o1aKvQwpH7z/REuEm0eCYkW3hG4LIjLgSgzNBGf37AFbeQ6UPkAKDKMkXdaqAiJ2IpIZumE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719173011; c=relaxed/simple; bh=JAgl9N70T7nBjWq6sfG0RrGjlyZ1vYMXOKdaL4AiRxw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=q5vK2R2wDVEt8HA/ZpSyUgqQHkX8/w3BbD+xOVf8mYhhsd5AumLl3rEqjxntQzZ3uAxbXPwSyGjVJ1bjVaAvlSD5FqmtAgHTxC3S09J59ONSsYaNojTvsG+M0JZN3AzA5ZfY6/Bbg8vXah6RxRYdxUFvLH/kbdUGHSalfqN197U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=TSG+YYBG; arc=none smtp.client-ip=209.85.128.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="TSG+YYBG" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-4217990f997so26885765e9.2 for ; Sun, 23 Jun 2024 13:03:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719173008; x=1719777808; 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=8xw3d8h1KtA4Bw9HNT33Bp9fAotcAbqf6CP/+FNxfG4=; b=TSG+YYBGzk7qoIT3XlKJoxzmgWFeXwkEfILDhzEvPC4ToA5WQ79OR037hCAru1keMa 4wdVqHB0nuZBhdvlXHoJcPLOF61fI/KFTXY4bvGFpOyW/4XtkiYZgTSzs1L1m+8NSitv RDW4J6cjE9dy/p0eVO8VC57r/HVGHqfmPApMwIlKtfX30uZ0F4Qg1WNMVohTKWrJzr1Y kJgZSh5Ki235P1xjbwTNGWMIQDVNryj9d81lR2MS6kX/s+jVaXJPWAqrG0I0tNxYCvYU OwBmobJ7QBh36Zku/f+V6NsYNi4PGbkLRsGFPjfDHmXk0pGCIFFHA5YSQWSi/bOpzkSv ixGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719173008; x=1719777808; 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=8xw3d8h1KtA4Bw9HNT33Bp9fAotcAbqf6CP/+FNxfG4=; b=dUcB5GWGz3rjHePSAsW6JZn+i6riox0DMNUsIMhxXOPRb9eGoRw178qn9zqftQqP7n wIptXmvhrlBfeamjFi/xXzEHjJRDF6my0DCa9QJfG0wTFIxt/3Mjab69aRkxXaDaUbgg 8/JRRkNsHNg0CvJEaeJXTBgNEVXBmEdJq8i+c/xA19IOldiEZVhcQPbuwqBR0AedytIQ EsuU9kl4qOBDvedTmVhcEoq1Xxm8ipl4u0BfNwKKd9PxlEdAzkXVI7b28dh5v1t8TkBL /5+mPFVjP28Tm2TvZRRpbppgyeUblY/jLLmro8WolN0F3dBipbLSdH784ji3nsZ/dqzm cTEg== X-Gm-Message-State: AOJu0YwnxKbBaRmSox1cMeNuP5SEp7oGaCYBHJwJsR67NUQq3Al0KZmt SXDaBVLREJRkLlqtgiO9s5jucWNN2D1XMCcyvbU4jHopUN5ODx2dwWoA68nwUkc= X-Google-Smtp-Source: AGHT+IHe+47qKRRfSwrj79ONMz16tzlLcTL5okV4sa+DoIkXOUUXKXA75900ckiItgh0XPvu+g9aIQ== X-Received: by 2002:a05:600c:1c02:b0:424:8e37:f4bd with SMTP id 5b1f17b1804b1-4248e37f5fcmr13985735e9.7.1719173007957; Sun, 23 Jun 2024 13:03:27 -0700 (PDT) Received: from [127.0.1.1] ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4247d0c54c9sm150685345e9.27.2024.06.23.13.03.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jun 2024 13:03:27 -0700 (PDT) From: Krzysztof Kozlowski Date: Sun, 23 Jun 2024 22:03:01 +0200 Subject: [PATCH v2 2/4] dt-bindings: display/msm/gpu: define reg-names in top-level Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240623-qcom-adreno-dts-bindings-driver-v2-2-9496410de992@linaro.org> References: <20240623-qcom-adreno-dts-bindings-driver-v2-0-9496410de992@linaro.org> In-Reply-To: <20240623-qcom-adreno-dts-bindings-driver-v2-0-9496410de992@linaro.org> To: Rob Clark , Sean Paul , Konrad Dybcio , Abhinav Kumar , Dmitry Baryshkov , Marijn Suijten , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , 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, Conor Dooley , Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=946; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=JAgl9N70T7nBjWq6sfG0RrGjlyZ1vYMXOKdaL4AiRxw=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmeH+HKVRaplObRNxhgegl2aew/fV0tzsAie8BX 7Qgmsz2c86JAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZnh/hwAKCRDBN2bmhouD 15M9D/4rFV3sFT+G51uJJNM74lvKwiFFLUuu6qyMY6Pn6XV51y5H7sSrgp7UqVzWmTsNEy4TAVL zh0cQUl1FTpnBwyCrkailFQMuMU3sbpUjECCFUkAjkOHkQ221wRccVFQCofbbAQfLVb3ipDhqWG hDa5+cSZa13fakg9gOFD0Iy7UknBSpncDRpPiO0yNXW1ocHU1EjYr2+Da9V4LPIWOKwxTLpE/Pf RGFIEuHmCpMRtyFDAjC6mwSZo3g0iAuhYe2SbyhjrvK506zVZ8NLGN0y57ErKA78BzlIlBcWTgx F8tOb8VEv1VQRIaqlqVt4oZ1U++Xm/TlHX1ILDk3fJGsTID/Sgj7+ozSHiRH5MHjY4G+0Wk78sC YYfmdY7UoJuYbFCLb02FuyWfm3TcKu1QbqPd/fYQlA+eT8Pd5w87htvIVjavUJ6SmiHqU5JFjO9 DdUSQupa1kWFnF3meplTgyCuBRyNX3kApnP1qSF+vwYiXINHCHftcG+WKq5Tq8pROFKxKdeEO+V q2FbmpsWNs9twhn3OArE2Xa6U8MyZMRGqWYxmZMakqY96Zgcl9rLxjbrmyHsEaTNy4RmOyBkjH8 PmNVAidrjBDFEk2KnxpsWplocLPx+s48I7HHtCV7VC/Mlqe9yio5hUZv6Q5SQB5/3+d117brxE3 Oqjr5j50S6Obb6g== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B All devices should (and actually do) have same order of entries, if possible. That's the case for reg/reg-names, so define the reg-names in top-level to enforce that. Acked-by: Conor Dooley Signed-off-by: Krzysztof Kozlowski --- 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/Documentation/devicetree/bindings/display/msm/gpu.yaml index 253e68d92779..baea1946c65d 100644 --- a/Documentation/devicetree/bindings/display/msm/gpu.yaml +++ b/Documentation/devicetree/bindings/display/msm/gpu.yaml @@ -46,7 +46,10 @@ properties: reg-names: minItems: 1 - maxItems: 3 + items: + - const: kgsl_3d0_reg_memory + - const: cx_mem + - const: cx_dbgc interrupts: maxItems: 1 From patchwork Sun Jun 23 20:03:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13708730 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 194AC1850AD for ; Sun, 23 Jun 2024 20:03:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719173012; cv=none; b=n6K5IYzrksw5yFYLl9y2gvTK0lo0IgA2TqyZmilSK7YQtUImTauYdBb8XNeiOF9f774nzSb8E0HogTlWg1nNgBEzdYZrwq2hxie0oXylvBXAxB3sk45Mr4/Qq7pRtglYP2cuakLC6E6wQ8PoLsJUAY6H6O2ZA0OCF84b9APFtr0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719173012; c=relaxed/simple; bh=kTOjE3SJPwtUEM3ek0Ts7GXtebcamPz3ppbmsVldcPo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=gI2GDOpJX93b5mv+qQJ6uyXqMsVR4GkbRH3/SN9/Ghh26t9/yMguNYa2loontwDpGtg9WtTX4lsDxE293tz5GQSiyaCz8T5amNmnbcMupSv9/gqQQ0pOr4mN4SRuc1b/wQzrXVxUONsPzp5obxWQSwo7bjLHo+SJ7C7zqmXQRjc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=JnDSLNCb; arc=none smtp.client-ip=209.85.221.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JnDSLNCb" Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-356c4e926a3so3379568f8f.1 for ; Sun, 23 Jun 2024 13:03:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719173009; x=1719777809; 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=G+6qL3IbNbDQ7NbNJW9ZWKAgjOjLvdUH02qEn+4RvBY=; b=JnDSLNCblB6TCdXA7FDoAsgR943vvcOrp6E6aY0FoPzi806S3ZwjZDuKRyj9+AqlEH j9Cgp0EoaWREs93BsLrr34raXEYsfUpjBN0jhy/DAy4GKVqBlxjUQ3RkWm/Cj8EI+wWz MD5Ds6VO+ILpI6qI1t00blncOgrm6BLn8uxeDiDhpOFEraGXJnzWKbRZyim4zOVGrAxO g3RgoLbJ1R4bKTbkDb9OxCSUO99uYlQxuXfhJziPGFlq30l/GHCikwmd5lUSR9Kr37BF yKRe+T8YMGI3NCHuWs5rKf7qhW7YYlxBvLQ+EJQqMMJ5+jExX//aPFClEYRdehIoiHdf ZYdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719173009; x=1719777809; 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=G+6qL3IbNbDQ7NbNJW9ZWKAgjOjLvdUH02qEn+4RvBY=; b=iHnSQT8qnb5L9WYi6w2GFzaKQ3F0gTsShQE+BjvoWzSx+gaS5dGnwZ9gNBXETq7fL0 Smj3ds5qFsQtTryct3NrNuwbhhB5C//BrYulYsT4fy4m9a0wBi8UWWRbRKEF7pwDA6He lStL9nDy9EsigVG5wjpOc0tUMVwQzIebRMoOtnXNx0qQiOPR5k5XMnCoFwvEsLmTBKfW +tYdRKnf2ndTBzT1Wr8MEhdMtjR1Zl/vdJgvbakqmRNXJsTLrTEryFVOSmhWII/vW8Ah XGeWvRzkHi+kWVpScXLApBD2ZrPdvFyw3PIvP00BbWNHZ7OkvemkPEMtRtZB1IPFFVjO TW7g== X-Gm-Message-State: AOJu0YzRflkqlKy7655s/nyD5wZlFkZHlXOds9gl677HqkrSziZpMgyp V3Tv8a2imP3zbKt3A28wFK+CwQRYmQ194Ow6/vdMsB88wdunh7Tb7EVYs6JCI5Y= X-Google-Smtp-Source: AGHT+IHSfTUXKpuQEhA7mqTVvrXfmo/dGWjKRQLxfYcpyBFQqAWlUT5gQ4Nn8QebW4B8BvDmSP56lw== X-Received: by 2002:adf:ec51:0:b0:35f:24dc:ad97 with SMTP id ffacd0b85a97d-366e94d15eamr1671210f8f.34.1719173009661; Sun, 23 Jun 2024 13:03:29 -0700 (PDT) Received: from [127.0.1.1] ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4247d0c54c9sm150685345e9.27.2024.06.23.13.03.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jun 2024 13:03:29 -0700 (PDT) From: Krzysztof Kozlowski Date: Sun, 23 Jun 2024 22:03:02 +0200 Subject: [PATCH v2 3/4] dt-bindings: display/msm/gpu: simplify compatible regex Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240623-qcom-adreno-dts-bindings-driver-v2-3-9496410de992@linaro.org> References: <20240623-qcom-adreno-dts-bindings-driver-v2-0-9496410de992@linaro.org> In-Reply-To: <20240623-qcom-adreno-dts-bindings-driver-v2-0-9496410de992@linaro.org> To: Rob Clark , Sean Paul , Konrad Dybcio , Abhinav Kumar , Dmitry Baryshkov , Marijn Suijten , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , 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, Conor Dooley , Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1024; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=kTOjE3SJPwtUEM3ek0Ts7GXtebcamPz3ppbmsVldcPo=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmeH+Ie3/89b8rXNK7ftiXK0IL3Kr+0MXppEPhl AfxZvPNu2yJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZnh/iAAKCRDBN2bmhouD 1z/fD/9gbJW6LOjV3ohG5X8o2SeH7jWNu/xjf+IJB2X9lBDx3kxyVoQdooX/Rc/m+82NlC/rFuL 64CzgFWRwPSrTP1+7GuPP7N0ICU6XLLRgpxStTrz1HEGk+mep2MSZPtjWlt85+isckAK2lBhnIk lkfj3QxPQjr5UZ6cvjgHRaU86LK6PiVC97duB9lmilZxv+7KtoJUQLo3mnVjMLgV2nbVfrg/UX5 GcGXBOrKSgd25hrOMLHMddMuG707Br6f3lfFOUDJPUBn1RimfSjOg9nAy38JjJzPeBO2qmXRyAW /C0xtyXRXJ3HHiTXhDiVuK5DoGs/7EvwG0cbKhqpaW8dIetDZ5x7ohID1eGTJ5dI/yqna+gjPS2 gx23YMb1ZYZTFLhQmkzvPBgzCuu+gF7tOmo67x1gbKLBaG0xkNWEUHVhI4PgNYwknvc/MSQ2rhS 9udWYWRO41Jfnr+4DYhiHLlBTnuRDQDaowvjGnJdiwv/XSosGCAS3XpltBbptpLW5iq6zTgGb9C uYPdptPPSr182ldp1oaZcNLDSdb+m635epPwT6SWF78TFKOy8w3Fwb7DUQFFJqS17LhQgnUrnFT 7nfpmaDVCASVRyZzwVqMs+p7771BoUvUDRaZyvJRLdF5bgOfhyvSZfIyrrKWg7E7lqpN9WsSZ+w pFYC80/Ftcyr0Pg== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Regex for newer Adreno compatibles can be simpler. Suggested-by: Conor Dooley Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/display/msm/gpu.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/msm/gpu.yaml b/Documentation/devicetree/bindings/display/msm/gpu.yaml index baea1946c65d..03aaced1abda 100644 --- a/Documentation/devicetree/bindings/display/msm/gpu.yaml +++ b/Documentation/devicetree/bindings/display/msm/gpu.yaml @@ -17,7 +17,7 @@ properties: The driver is parsing the compat string for Adreno to figure out the chip-id. items: - - pattern: '^qcom,adreno-[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]$' + - pattern: '^qcom,adreno-[0-9a-f]{8}$' - const: qcom,adreno - description: | The driver is parsing the compat string for Adreno to From patchwork Sun Jun 23 20:03:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13708731 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BBDC9185E76 for ; Sun, 23 Jun 2024 20:03:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719173014; cv=none; b=b7JeEq4DqJKqaO12bPt7m5N3ASbOansv845foN2hCpJTy65U5nWBaU1VluYp13PPUil7f3pKc7JinARTQXfF9hvJfAH1+G5YsvTpfWmFQH8vF9Xv30sNaXHw3YFdcm+jQ00u3PsnrNJYQ9iXJSQLkYWdhPHTlwzRByrM1m3hgLI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719173014; c=relaxed/simple; bh=uYQQZshlwOKHfwbC3/MKr6ThTNfJ0nfXfyifQvYX5aw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mPxAI5ayxWNqcR7pw6X27jxfx+Zdc1V2HqdsdSQnLpF8R7/usZOz2JW10kcudRPVcTJxdrTu5LqSU0KlW52nsxTjw0lRnUGFXJTP73tLLTdoXREra3F+Ip2xT4nUowf0t0W2Rt2VKx2LVlnQOzil/HfUr/vecm4E5WqKNGu8Xc4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=nkSmZ0oy; arc=none smtp.client-ip=209.85.128.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="nkSmZ0oy" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-42172ed3597so21036505e9.0 for ; Sun, 23 Jun 2024 13:03:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719173011; x=1719777811; 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=5ow/UhD/hlWMO1wQnP7yw4KEZ9Zhh7chAKMjsQ2L54M=; b=nkSmZ0oyXO8mlQyHxhT6RnBu2203ZHg2TZjOVe7UeIFH1BfRHHDeML/DPDiFL1cIpk qC/oLUY6HTsCrjGSpps1qnH0ryk1JXUDrbhzbGWG5zusBOYsW66/pSp9yBgubKiV71jY 9XBcqn1Gn+TzmSPCwdOXrgFaFKhUjYeqoKoczxrhl6Q5C+qw1DDvJRGey5cYnyZpn2an Y+nfjkhHHn3V7n8jlbl04bjS1k+7f9pFAETNNajXyq+Gm8uBA8xHuD7f7gIWOWBXg+AI oIS2nqVLgi1sbdOmM7dh/WnHyv77EWyD8Ax89mjHJ5opCGgtlNk1/KrOPfdy3eeOw3CR p2QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719173011; x=1719777811; 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=5ow/UhD/hlWMO1wQnP7yw4KEZ9Zhh7chAKMjsQ2L54M=; b=hf9YabzEgwOB25jktGqdTtVPHcAZ8RszBbhnx5Ts2fBgW1NE1e/GSm7+qqgxQLbBGE cbZQmpOt2vP6XgDSA1b3x6uY39UtaP5x5AqrBp3yZnYPBW9iw52bvzHSncktfzzf7xlm 6Tv/W6mrcp0nAdWSuKJWwjNV8QT5Dreno9g6RkN7Ftn9MhvOd+idhI9uiouw43vggjQn 3xB+l6CzLJuoWNvNUWpC3DVG2v1Ov4nUypSmjKGlaSYnNa3pDueEamj8+RALjogqgtG/ cD9QmEEAOSM+S9NaPpWiKIcGJtEAnETlbHLyWkDSiOE/rKMFAotakkJBXy+SiTZskgbH rL/A== X-Gm-Message-State: AOJu0Yz5ZYam048YjzFWi9tE65wz/aKYc2bsnPz+vQshexBTwekGlV6B WncIpdlC/upXWUKta1aAL6HZHnWVsdLIjj0lFdZeST7Iq4xp4D1K/c9Y3DFfigg= X-Google-Smtp-Source: AGHT+IHrrG07tlhKq0T0Q79qbLjtMFRHlvGdVpaV7mYi8SG2IESOG+UD+fskJ99LX6kwwDcvImU8NA== X-Received: by 2002:a05:600c:511a:b0:421:b906:8088 with SMTP id 5b1f17b1804b1-4248932858fmr38166325e9.0.1719173011286; Sun, 23 Jun 2024 13:03:31 -0700 (PDT) Received: from [127.0.1.1] ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4247d0c54c9sm150685345e9.27.2024.06.23.13.03.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jun 2024 13:03:30 -0700 (PDT) From: Krzysztof Kozlowski Date: Sun, 23 Jun 2024 22:03:03 +0200 Subject: [PATCH v2 4/4] dt-bindings: display/msm/gpu: fix the schema being not applied Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240623-qcom-adreno-dts-bindings-driver-v2-4-9496410de992@linaro.org> References: <20240623-qcom-adreno-dts-bindings-driver-v2-0-9496410de992@linaro.org> In-Reply-To: <20240623-qcom-adreno-dts-bindings-driver-v2-0-9496410de992@linaro.org> To: Rob Clark , Sean Paul , Konrad Dybcio , Abhinav Kumar , Dmitry Baryshkov , Marijn Suijten , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , 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, Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1593; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=uYQQZshlwOKHfwbC3/MKr6ThTNfJ0nfXfyifQvYX5aw=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmeH+JCn5CmF8odDAYUWyh3ZfkGfRdXyfcRPrJC IUygQKvOO+JAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZnh/iQAKCRDBN2bmhouD 1+3WD/44hZ2+Ejzsx7aMXg7D/6Ygl8Izp702yxIeltA13k0IeWn+kA+5s2BTVil3rTgt/eg87Ow pNEQEF2kPTwsKyWTK0Bwbx7IK3JSLwM3aO2Uj1616luFBxWM9iVZwbuzBB+QTZi9EkOA2kLNKqb cbaBPJnQanCj2mWNljqDNzqTdKI7jQz//kb3+lwgiyUUQAdlyJ8ADEWhIyzi7UMdJ/zxtPkOkM5 o5HLek/GG/EHEUbmwfDVCbf5pY8hvvSN+67LfWH4bVhHuwWohjw9HyJZtKgsYGML1sgywvSxW9v pNp+lTs5c9YNRSZthyT/h3WaAM/l/8Jtn9jappiCgUVs9GZr3A8O2wt+8d7HhSWZC9d17JCVzVp Uop25wBsZd/YFGz8kpUcbhfkWl+1Sv4th0n+VRnKamr2a0s8sxRssNagsSIeqb89dUgxhDexXbA zeNwrh9uuRvimJXbSgDGsYEYUo1ElgfTAz+pMCwNEliycnK3lhhIVswP4dIIT4iAKHHO/CLldnn pO5RPMxBKYpHl5w9i+Y2uEG1JM7h/5AxcWKzmfhY4pnSrEBqnhcjS0YShfrTBOzjmXZebLKO3qR jmrwZayAczdOZrTwDuHNN7p4irlhLZqBNytEjqQJVghirPOHu/Erx6xpbOtHu7zanf/Q9sP8Xss vcRgKjFhttepKyw== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B dtschema v2024.4, v2024.5 and maybe earlier do not select device nodes for given binding validation if the schema contains compatible list with pattern and a const fallback. This leads to binding being a no-op - not being applied at all. Issue should be fixed in the dtschema but for now add a work-around do the binding can be used against DTS validation. Signed-off-by: Krzysztof Kozlowski --- This will uncover issues with DTS, which is expected and fixed in: 1. Incorrect AMD compatible: https://lore.kernel.org/linux-arm-msm/20240623193420.333735-1-krzysztof.kozlowski@linaro.org/T/#t 2. alwayson clock: https://lore.kernel.org/linux-arm-msm/20240121194221.13513-6-a39.skl@gmail.com/ --- Documentation/devicetree/bindings/display/msm/gpu.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/display/msm/gpu.yaml b/Documentation/devicetree/bindings/display/msm/gpu.yaml index 03aaced1abda..6ddc72fd85b0 100644 --- a/Documentation/devicetree/bindings/display/msm/gpu.yaml +++ b/Documentation/devicetree/bindings/display/msm/gpu.yaml @@ -10,6 +10,18 @@ title: Adreno or Snapdragon GPUs maintainers: - Rob Clark +# dtschema does not select nodes based on pattern+const, so add custom select +# as a work-around: +select: + properties: + compatible: + contains: + enum: + - qcom,adreno + - amd,imageon + required: + - compatible + properties: compatible: oneOf: