From patchwork Sun Jun 23 12:00:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13708587 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8190EC27C4F for ; Sun, 23 Jun 2024 12:00:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6940210E013; Sun, 23 Jun 2024 12:00:32 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="g9wgUsy5"; dkim-atps=neutral Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7C3FC10E036 for ; Sun, 23 Jun 2024 12:00:31 +0000 (UTC) Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4217a96de38so25343715e9.1 for ; Sun, 23 Jun 2024 05:00:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719144029; x=1719748829; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Wq0GDSPoIp4+sLNJUnd9TkEoaORchJ/hKSadjq9Ps7M=; b=g9wgUsy5Cosu70629IeRBRxj2yqLUudk4TPbnX3xV4Rb8HKKW1c4B+CVpOGq5BTvYF aqkVnK6vqacBAwSav56jW60TaI35YrKhsdRxaRrZP9ifpLtMsEhUOzEo6B2QAwUEsTE1 sdTLWN6WrxtsPIL/NvQAiq4TzSu6QmlAduSFPjSEgj9q9v7NTF9SURCzJHbVd8ZAPRm2 nMYqrbCV++jAcocXe0Y6ckkXRSLCzi/zp95O6dggMug0LQcaJ9l37j8cjkzotlee/UPW pgrg+4HegwaDLbg4ju5beeSIcAdoKbWwpFrzjTsyMR35D+wwXdpyMcYegvTrvFh5uI4H 243Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719144029; x=1719748829; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Wq0GDSPoIp4+sLNJUnd9TkEoaORchJ/hKSadjq9Ps7M=; b=YwORRCxNglh5T9qgBGCKeDX7ueplZStdWeIm9UbCLR2zbQITw8ZXGQZKzo8Mmhxl4p DTUs4mLungWVhK3qTGUvxlzqjXABDN0YVfRyhmjCgTHI/PWC6fDjQHthBu5WDJ7fvtlJ HrObGWxvIbSaJiDkme0WJu2OCixPQ1EP1dIJjWgFYE9VqMOubjgPMlJE8akochjsagDM A75lqX08WEvnrbGxROhnRn31YoiFU7vibqsD8ztPGakiShrc6JBmnuHdb+PmSgpzdkcs 6WqjGz+gLZu8zrKUG5A05t5qEM7vMnuWgA4V3x84Z+v30f5vNSI1/cbR98Qq4EErWc+i bq2g== X-Forwarded-Encrypted: i=1; AJvYcCWnc+UqV6hHlkA6RgPbiMb0xbmguIKqOstdv+HFmTlMclgbpqj3eHcCBIMov3Hf45HUS6CoWGSgI4ygSkF0JoHmg5qtjYqjSKEgV/efdgEY X-Gm-Message-State: AOJu0YzGmFA/orcSi7YjpUXOISG5ksCV2m2E4oXIxhd7/Smhwktv7Efw JS/qo4P8j9xo2DdbQVF1mwDTG6L2Tt48Vg17882beEKmNq08lL5eNat4ny13qJU= X-Google-Smtp-Source: AGHT+IENFAK7IVpV/k8lzPMo9UahIiF1uHLMk0nrZAmjoYC0Fijkz3aInqbbeS6fxxaaR/xdi+aTqA== X-Received: by 2002:a05:600c:b44:b0:424:784c:b13b with SMTP id 5b1f17b1804b1-42489e3ac94mr22668335e9.13.1719144029481; Sun, 23 Jun 2024 05:00:29 -0700 (PDT) Received: from krzk-bin.. ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4248179d3basm105465515e9.4.2024.06.23.05.00.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jun 2024 05:00:28 -0700 (PDT) From: Krzysztof Kozlowski 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 , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/3] dt-bindings: display/msm/gpu: constrain clocks in top-level Date: Sun, 23 Jun 2024 14:00:24 +0200 Message-ID: <20240623120026.44198-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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. Signed-off-by: Krzysztof Kozlowski Acked-by: Conor Dooley --- 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 12:00:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13708589 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6E3E7C27C4F for ; Sun, 23 Jun 2024 12:00:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1CCCC10E214; Sun, 23 Jun 2024 12:00:40 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="haTFACx1"; dkim-atps=neutral Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by gabe.freedesktop.org (Postfix) with ESMTPS id F1A8E10E18E for ; Sun, 23 Jun 2024 12:00:32 +0000 (UTC) Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-421eab59723so25295255e9.3 for ; Sun, 23 Jun 2024 05:00:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719144031; x=1719748831; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=D5pRySu+ARf8jWv+YeotUn57i8P3KF+qPMZ7wIjslP8=; b=haTFACx1p1xFvTBE67WuaBCq7zDCWwlmGqZUiCQS3fDknEuogt/BlFsxFAjbtV4GXW WBtkPlVd+3tFXmJiFKYPU0A1HCtG4pIevuCx/RxwRtj0XGsuyVbTVbtdD5Du8iBf8p4P qs2K75Q72aKzla7BHGbUitI5rbPVarUIPsKDRMWgWpNQPs8hOQUeSYAnHOlnGClKESh7 j4pss8fRsanWTkw27FT+G/GyalHsdOWVgS1O7V2T7kYZZC5KhvLGjNqTCF48kpo2+MoF J+ndui26NMmyY2ORNTIGQsoaJ7yo1WVy8rvQtivZpwzRIKkkSK/gjuZOvqkt+Hz7TeSd /wkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719144031; x=1719748831; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=D5pRySu+ARf8jWv+YeotUn57i8P3KF+qPMZ7wIjslP8=; b=rlVdcV5FjNO1ZCKs5FObklMM9VKGL90TFFJpKpmbGjLH/3zGpDU4wqgT1/KSHfKZAs SAYzMtS2oPDa8r28FVbf2IPduESZbAswWYh5NhpYl7nlXeCAZVKn0DxxR42MvhWWlFgK x9Z3XIYi5jj9j8PnGrHJVaNtGSwm7CFBTYYvrQFYnzT6ux3M+dM99poyqxUJtUbCifFJ 7eyR/7W/GoY2bsVgEMe/5w9gLejLhs+al95dEJ6hVGBaC7aPReyLU7ZQsQjv2cI4ciTP nAngirFiNhM5KkhrNY4pUA5jXmwZV4q6NYma2WVqkFy/QwUAFKzsadHX5F+o753rnTI2 x6Aw== X-Forwarded-Encrypted: i=1; AJvYcCU+zlyBJptVHTJvHEXZTPw3iD3LdGaZFwJjg1b8R+BpMKE04syqgWxbEAG6RgH94vG4K9F9TXoD0B3J/6V6gv1miJkiOAyOqjmQsVgyI2FV X-Gm-Message-State: AOJu0Yw0zLa5mjxfF+0KC98eA4grMei6V2BriMFrJn+88z2mKhv6Si/n rcAm9LmrcwkTLqoUrjK9cPsxqFFS4PfXnKLzTVkTs5dALCPOiFMFpopl8Bq5e+s= X-Google-Smtp-Source: AGHT+IEXP7AJ8wGYP4P3O8ghUgKEsx/NMem41iq5obFqMs7hv1GsRgZtKTmlmuq84/7vHtVQVzL0xQ== X-Received: by 2002:a7b:c4d3:0:b0:421:7c1e:5d70 with SMTP id 5b1f17b1804b1-42489e3ab62mr20397615e9.16.1719144031293; Sun, 23 Jun 2024 05:00:31 -0700 (PDT) Received: from krzk-bin.. ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4248179d3basm105465515e9.4.2024.06.23.05.00.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jun 2024 05:00:30 -0700 (PDT) From: Krzysztof Kozlowski 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 , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/3] dt-bindings: display/msm/gpu: define reg-names in top-level Date: Sun, 23 Jun 2024 14:00:25 +0200 Message-ID: <20240623120026.44198-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240623120026.44198-1-krzysztof.kozlowski@linaro.org> References: <20240623120026.44198-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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. Signed-off-by: Krzysztof Kozlowski Acked-by: Conor Dooley --- 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 12:00:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13708588 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2D10FC2BBCA for ; Sun, 23 Jun 2024 12:00:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0547210E211; Sun, 23 Jun 2024 12:00:40 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="nb4VXRZO"; dkim-atps=neutral Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by gabe.freedesktop.org (Postfix) with ESMTPS id 72A4A10E18E for ; Sun, 23 Jun 2024 12:00:34 +0000 (UTC) Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-421b9068274so30611235e9.1 for ; Sun, 23 Jun 2024 05:00:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719144033; x=1719748833; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ecK+toW3Ns4ZNrqgQybbNewCzjgaGGXdUaWN+FWF27c=; b=nb4VXRZOH79yNQkMFAz4/sC5vDesd7ZDK9y5EjWlr9ybW/Ari346D2P55FoMRJJigA O20aeVCMv2hrugTDQbvidMMnTgImvHcu6Y5u6soB6BzoOWRNoSnk1g5NQpdDOV8xWmcH nZWgwPhv0jU16fQs0ONQt+EX4qIWtnUiGP1+j0czte2PFDq3faXdw2cxOpR3QgYjr9sP 7HsaUCMfyFYREeIA5l/WSKEZOXQCstM7gcNDf8xY3gkGECy9vqp90jZpfnS4INPGjELg N/eG5lu9fuLLXguG0mYDNKLp0lE/nksnyXtn1cxeuuTGwnmBnZ2YZ7yoAfWLgcpMCq/x dgRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719144033; x=1719748833; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ecK+toW3Ns4ZNrqgQybbNewCzjgaGGXdUaWN+FWF27c=; b=LwoBBLEsMxRrKnHabnbk1IDrv7qeZ9L8o7Pf5PAFL7NLtOo3d09SpuyhW+4gEcaIq9 dPio0ekWZvJiBesK+iXNFXQcd4RIKBMIe5m5p1piPX9AsYOsm06doWg0pGP/DmT7LyXo zsjNStFHyptXkkS5Rl4wbls28irNS1nFcBruoAY9RIfuVpL751kwaW5z3bbu50gMpOqh V7y6aUo70hPjHgIo14mcRIJ4woA2HCJH+bEjll8E6HGSUtVfaRTy5XKlnkL+Ou5B+Dbo 2tSHY0YH+o8yPFz/fhlkRBVXDz2m5CwEsloRthcLHeEtqKFbSHrJJBr77Cf0oWT9B6He NkdA== X-Forwarded-Encrypted: i=1; AJvYcCUu+YEGmUZwpcSUsxnoS7PZ7XyaolCtDK5Nwt1rePQsnrwSg5rMSFfnTF2wXCaiASGjch0yHDFnSImkFcwXkSakFENLJRZ5tx+V4eFb7ZER X-Gm-Message-State: AOJu0Yxenrc+oMwfRmTJKrp7a2/2EzCPfzY9PH2YVC8O5UNz1MHPNGtr 1YpT1Ah9QXzWJIQEpQfOBLI6HSwkUmsSxUAgStDSgnERkW2t92N65mIJTLVyavY= X-Google-Smtp-Source: AGHT+IGH65kKS7M6vcnw+GFLjPcYiLfNI3yhUCA7KwnzudEhnrCZRo0tzHlu9MxebLYKwwKlOaegOQ== X-Received: by 2002:a05:600c:3c93:b0:424:9024:d468 with SMTP id 5b1f17b1804b1-4249024d4e1mr4347895e9.17.1719144032825; Sun, 23 Jun 2024 05:00:32 -0700 (PDT) Received: from krzk-bin.. ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4248179d3basm105465515e9.4.2024.06.23.05.00.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jun 2024 05:00:32 -0700 (PDT) From: Krzysztof Kozlowski 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 , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 3/3] dt-bindings: display/msm/gpu: constrain reg/reg-names per variant Date: Sun, 23 Jun 2024 14:00:26 +0200 Message-ID: <20240623120026.44198-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240623120026.44198-1-krzysztof.kozlowski@linaro.org> References: <20240623120026.44198-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" MMIO address space is known per each variant of Adreno GPU, so we can constrain the reg/reg-names entries for each variant. There is no DTS for A619, so that part is not accurate but could be corrected later. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/display/msm/gpu.yaml | 87 +++++++++++++++++-- 1 file changed, 79 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/display/msm/gpu.yaml b/Documentation/devicetree/bindings/display/msm/gpu.yaml index baea1946c65d..e83f13123fc9 100644 --- a/Documentation/devicetree/bindings/display/msm/gpu.yaml +++ b/Documentation/devicetree/bindings/display/msm/gpu.yaml @@ -130,6 +130,22 @@ required: additionalProperties: false allOf: + - if: + properties: + compatible: + contains: + 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]$' + then: + properties: + reg: + minItems: 3 + + reg-names: + items: + - const: kgsl_3d0_reg_memory + - const: cx_mem + - const: cx_dbgc + - if: properties: compatible: @@ -164,6 +180,13 @@ allOf: minItems: 2 maxItems: 7 + reg: + maxItems: 1 + + reg-names: + items: + - const: kgsl_3d0_reg_memory + required: - clocks - clock-names @@ -196,11 +219,12 @@ allOf: - const: xo description: GPUCC clocksource clock + reg: + maxItems: 1 + reg-names: - minItems: 1 items: - const: kgsl_3d0_reg_memory - - const: cx_dbgc required: - clocks @@ -217,12 +241,59 @@ allOf: clocks: false clock-names: false - reg-names: - minItems: 1 - items: - - const: kgsl_3d0_reg_memory - - const: cx_mem - - const: cx_dbgc + - if: + properties: + compatible: + contains: + enum: + - qcom,adreno-640.1 + - qcom,adreno-680.1 + then: + properties: + reg: + maxItems: 1 + + reg-names: + items: + - const: kgsl_3d0_reg_memory + + - if: + properties: + compatible: + contains: + enum: + - qcom,adreno-619.0 + - qcom,adreno-630.2 + then: + properties: + reg: + minItems: 2 + maxItems: 2 + + reg-names: + items: + - const: kgsl_3d0_reg_memory + - const: cx_mem + + - if: + properties: + compatible: + contains: + enum: + - qcom,adreno-618.0 + - qcom,adreno-635.0 + - qcom,adreno-690.0 + - qcom,adreno-730.1 + then: + properties: + reg: + minItems: 3 + + reg-names: + items: + - const: kgsl_3d0_reg_memory + - const: cx_mem + - const: cx_dbgc examples: - |