From nobody Sun Oct 5 14:18:32 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 B837B291166 for ; Mon, 4 Aug 2025 23:25:17 +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=1754349919; cv=none; b=eCNl8/HgWsUHDoGn8p49YEPOzJbEga+/aOIfQsFOP0owJ1fT7+wtSSeJbgQxof3wTBXXysvJzPD0Ji/r0ifm/hr8pSCU7SrACJKl7erNsEKYVdwMazkg4+zm3AcAgcTKZp/fYrmCXh1o5l049REEg/+BmU7lnwoeQwn+oO1Mm8M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754349919; c=relaxed/simple; bh=J9nSoGIUUBX/RwJcPgs11RnLDI8Wd23qmgJoOPrObJk=; h=From:Date:Subject:MIME-Version:Message-Id:In-Reply-To:To:Cc: Content-Type:References; b=u1NqxkzyI3lLi5Rzf8xoRMYC29ggNifDkYMM1CO3PjAYuGBmtAxE1YFI5x8x8kLP7J0khyBefLl4KLaKh6QCr27pklhfhZlowX6nyDtBgg3yiEXyGKvsIaYXdO7jM8lDpRtLXULI/RKVBuUKiFnsPofw/u8J7zcAf+T1UCE0+Vo= 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=iqjLSUZU; 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="iqjLSUZU" Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20250804232515euoutp0255e194a588e0330798a5b1e242734575~Ys-P9D9rX0919509195euoutp02B for ; Mon, 4 Aug 2025 23:25:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20250804232515euoutp0255e194a588e0330798a5b1e242734575~Ys-P9D9rX0919509195euoutp02B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1754349915; bh=7wXhsNFx7wk73mU27MUzNudMLyhrgEdd1dRIZ0ZRJc0=; h=From:Date:Subject:In-Reply-To:To:Cc:References:From; b=iqjLSUZUO6SDHJEWLWGjRmDTy8HMew3+8PAWAyMyW0Tk/3OCUobuDVpsRkgd6F61g 7IokWPpINZFkiQW6p3HXK8VHnSAFFPQwLhnFRWCndxppLxQnU66Hhfw3nxMIMwHXv9 83mVvU5J2zR/KGiONlv6tx/ftYR5AMS1gedh019Y= Received: from eusmtip2.samsung.com (unknown [203.254.199.222]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20250804232513eucas1p18bfc7473db5b8269fbc905f2dedd31a0~Ys-Ord0FH1211212112eucas1p1I; Mon, 4 Aug 2025 23:25:13 +0000 (GMT) Received: from AMDC4942.eu.corp.samsungelectronics.net (unknown [106.210.136.40]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20250804232512eusmtip297551e7beaa82db199120ff132a6625d~Ys-Nl6uvT0793707937eusmtip2Q; Mon, 4 Aug 2025 23:25:12 +0000 (GMT) From: Michal Wilczynski Date: Tue, 05 Aug 2025 01:25:02 +0200 Subject: [PATCH v11 2/4] dt-bindings: gpu: img,powervr-rogue: Add TH1520 GPU support 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: <20250805-apr_14_for_sending-v11-2-b7eecefcfdc0@samsung.com> In-Reply-To: <20250805-apr_14_for_sending-v11-0-b7eecefcfdc0@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, Krzysztof Kozlowski X-Mailer: b4 0.15-dev X-CMS-MailID: 20250804232513eucas1p18bfc7473db5b8269fbc905f2dedd31a0 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20250804232513eucas1p18bfc7473db5b8269fbc905f2dedd31a0 X-EPHeader: CA X-CMS-RootMailID: 20250804232513eucas1p18bfc7473db5b8269fbc905f2dedd31a0 References: <20250805-apr_14_for_sending-v11-0-b7eecefcfdc0@samsung.com> Rework the PowerVR Rogue GPU binding to use an explicit, per variant style for defining power domain properties and add support for the T-HEAD TH1520 SoC's GPU. To improve clarity and precision, the binding is refactored so that power domain items are listed explicitly for each variant [1]. The previous method relied on an implicit, positional mapping between the `power-domains` and `power-domain-names` properties. This change replaces the generic rules with self contained if/then blocks for each GPU variant, making the relationship between power domains and their names explicit and unambiguous. The generic if block for img,img-rogue, which previously required power-domains and power-domain-names for all variants, is removed. Instead, each specific GPU variant now defines its own power domain requirements within a self-contained if/then block, making the schema more explicit. This new structure is then used to add support for the `thead,th1520-gpu`. While its BXM-4-64 IP has two conceptual power domains, the TH1520 SoC integrates them behind a single power gate. The new binding models this with a specific rule that enforces a single `power-domains` entry and disallows the `power-domain-names` property. Link: https://lore.kernel.org/all/4d79c8dd-c5fb-442c-ac65-37e7176b0cdd@lina= ro.org/ [1] Reviewed-by: Krzysztof Kozlowski Signed-off-by: Michal Wilczynski --- .../devicetree/bindings/gpu/img,powervr-rogue.yaml | 37 +++++++++++++++++-= ---- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml b= /Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml index 4450e2e73b3ccf74d29f0e31e2e6687d7cbe5d65..c87d7bece0ecd6331fc7d1a479b= bdaf68bac6e6d 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 @@ -77,14 +82,18 @@ required: additionalProperties: false =20 allOf: - # Constraints added alongside the new compatible strings that would othe= rwise - # create an ABI break. - if: properties: compatible: contains: - const: img,img-rogue + const: img,img-axe-1-16m then: + properties: + power-domains: + items: + - description: Power domain A + power-domain-names: + maxItems: 1 required: - power-domains - power-domain-names @@ -93,13 +102,20 @@ allOf: properties: compatible: contains: - const: img,img-axe-1-16m + const: thead,th1520-gpu then: properties: + clocks: + minItems: 3 + clock-names: + minItems: 3 power-domains: - maxItems: 1 - power-domain-names: - maxItems: 1 + 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 =20 - if: properties: @@ -109,9 +125,14 @@ allOf: then: properties: power-domains: - minItems: 2 + items: + - description: Power domain A + - description: Power domain B power-domain-names: minItems: 2 + required: + - power-domains + - power-domain-names =20 - if: properties: --=20 2.34.1