From nobody Sun Oct 5 18:21:51 2025 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) (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 DC0E92D23A3 for ; Thu, 31 Jul 2025 13:50:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.118.77.12 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753969831; cv=none; b=YJMW/s1KTOF4LELXgxPkr4uu41hfEeLESpXot++H7MQ52O6jJ+taTc3vu+ndauvBsUF7Km2UMGBczmeu5GeL/xBGLOnjOd1d7iqkXc9KcM1+LBiDw//lhKTuxpJZ46229sQcP3UESsdSf5SRoWba31MEEliE9uneOmTVh7zeFVI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753969831; c=relaxed/simple; bh=FJK7jcoW2OTvZWNfJpQX7PrdJmC/ePNdaJ5PJROYE+Y=; h=From:Date:Subject:MIME-Version:Message-Id:In-Reply-To:To:Cc: Content-Type:References; b=mDcH4Hl5UyYF3PF8tPspJ6UuZwv91+sO0eI9/WMvoXuqpgmNzmiR7+8sMOLtxDHOdlSyR97Ps6YeHlXZnrXtBvp1MUOdUMu2HXKdYhA7PNFLudg44rKluHy+blA1TK1OnxXWW6qbCbzUsYn+wwV2K/ifDXmBms7hM+jleSpjq1k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=PlcXZZgb; arc=none smtp.client-ip=210.118.77.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="PlcXZZgb" Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20250731135021euoutp020f6e50903f32ecee7e8bba85f81f5fb5~XWkJpTvzE1417014170euoutp02O for ; Thu, 31 Jul 2025 13:50:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20250731135021euoutp020f6e50903f32ecee7e8bba85f81f5fb5~XWkJpTvzE1417014170euoutp02O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1753969821; bh=6W87Q1x1CQJtR6NEM1xR9BS/avezudE94uTfUvbF1vw=; h=From:Date:Subject:In-Reply-To:To:Cc:References:From; b=PlcXZZgbl9fevamWWHBq2+To55Ns+nxcG+AFIi5AIo9OeUsQECPbYUzyG1uM1lRC1 27ezTwycyDDVo35Rq/wb6OYQ0/Eok92SlkHfUdlJxVkD5MOtG1W0rlSrf34Ur3+7zb E+VpTV24obp9ZAIhq/d034mwkbg4+VJIDW+qfOkc= Received: from eusmtip2.samsung.com (unknown [203.254.199.222]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20250731135020eucas1p1e8f286222a03ec9b63a7409ff66c3238~XWkI6kFKx1671816718eucas1p1R; Thu, 31 Jul 2025 13:50:20 +0000 (GMT) Received: from AMDC4942.eu.corp.samsungelectronics.net (unknown [106.210.136.40]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20250731135019eusmtip2d9c31dd3d47bb7debe5fd189ea191589~XWkH8uhaX3049130491eusmtip2R; Thu, 31 Jul 2025 13:50:19 +0000 (GMT) From: Michal Wilczynski Date: Thu, 31 Jul 2025 15:50:13 +0200 Subject: [PATCH v9 3/5] dt-bindings: gpu: img,powervr-rogue: Add TH1520 GPU compatible Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <20250731-apr_14_for_sending-v9-3-c242dc1ffc14@samsung.com> In-Reply-To: <20250731-apr_14_for_sending-v9-0-c242dc1ffc14@samsung.com> To: Guo Ren , Fu Wei , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michal Wilczynski , Bartosz Golaszewski , Philipp Zabel , Frank Binns , Matt Coster , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Ulf Hansson , Marek Szyprowski , Drew Fustini Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, dri-devel@lists.freedesktop.org X-Mailer: b4 0.15-dev X-CMS-MailID: 20250731135020eucas1p1e8f286222a03ec9b63a7409ff66c3238 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20250731135020eucas1p1e8f286222a03ec9b63a7409ff66c3238 X-EPHeader: CA X-CMS-RootMailID: 20250731135020eucas1p1e8f286222a03ec9b63a7409ff66c3238 References: <20250731-apr_14_for_sending-v9-0-c242dc1ffc14@samsung.com> Update the img,powervr-rogue.yaml to include the T-HEAD TH1520 SoC's specific GPU compatible string. The thead,th1520-gpu compatible, along with its full chain img,img-bxm-4-64, and img,img-rogue, is added to the list of recognized GPU types. While the BXM-4-64 GPU IP is designed with two distinct power domains, the TH1520 SoC integrates it with only a single, unified power gate that is controllable by the kernel. The binding enforces this with a specific if block for the thead,th1520-gpu compatible that requires a single power-domains entry and disallows power-domain-names. The B-series GPU rule is also updated to include img,img-bxm-4-64 and to explicitly exclude the TH1520. Signed-off-by: Michal Wilczynski --- .../devicetree/bindings/gpu/img,powervr-rogue.yaml | 29 ++++++++++++++++++= +++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml b= /Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml index 24ce46ba0b7015fca799f045ee2ccdd258088068..e47e0f3d1b5078b3050e26f6c1a= c175edec528ec 100644 --- a/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml +++ b/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml @@ -21,6 +21,11 @@ properties: # work with newer dts. - const: img,img-axe - const: img,img-rogue + - items: + - enum: + - thead,th1520-gpu + - const: img,img-bxm-4-64 + - const: img,img-rogue - items: - enum: - ti,j721s2-gpu @@ -96,7 +101,29 @@ allOf: properties: compatible: contains: - const: img,img-bxs-4-64 + const: thead,th1520-gpu + then: + properties: + power-domains: + items: + - description: The single, unified power domain for the GPU on= the + TH1520 SoC, integrating all internal IP power domains. + power-domain-names: false + required: + - power-domains + + - if: + properties: + compatible: + contains: + enum: + - img,img-bxm-4-64 + - img,img-bxs-4-64 + not: + properties: + compatible: + contains: + const: thead,th1520-gpu then: properties: power-domains: --=20 2.34.1