From patchwork Tue Dec 3 13:41:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Wilczynski X-Patchwork-Id: 13892494 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 AE56BE64AA6 for ; Tue, 3 Dec 2024 13:42:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:MIME-Version:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Qr2OWwqxejtvAxtSca9KOyo+S+mqhmmzxinAoEc/Kiw=; b=QA7EX/tTzDEtm3 qHPobewvxM47k89TQrnzDncS+3QqA564V/roLhvrYrCmrbbOKsmZkvw8c8h1W+kqhdmcIvDikT9Mk fK45kYVlI/BE/94Ls4azFnGBeB0wHct7X1j+0IDetf1GJ83LfvKF5+YFMs21ogBx3KDJPlJI4dCal OWRyx/GZ73Kifi14L2ZgZT9vtQRYSxgCDwERhC2YjT1Tp5Ubvh/K0rntWDdbT9Uf5af/zJCVhqY1z bEYvGYALJT5qwT99W6yQxk2AO80zhbIon2MeePLfhIhlpAGEz4PTjGswV51ysjdbINoYM1hrlEXFH aW7GMMHg23pMh6ENKXqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tITAD-00000009eB9-2rhU; Tue, 03 Dec 2024 13:42:05 +0000 Received: from [210.118.77.11] (helo=mailout1.w1.samsung.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tITA9-00000009e6B-3zJM for linux-riscv@lists.infradead.org; Tue, 03 Dec 2024 13:42:03 +0000 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20241203134200euoutp0138745ac9d45aca1fcce4209fe706dc51~NroWstmqh2577825778euoutp01B for ; Tue, 3 Dec 2024 13:42:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20241203134200euoutp0138745ac9d45aca1fcce4209fe706dc51~NroWstmqh2577825778euoutp01B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1733233320; bh=EW8C3FY5YdJjEkS2Yc5HPO77Vz/fd2iQK7q2W6SPoFI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZiXqqoMUsPzAfHBAntt7aChmN5c8gU+R25xY/qjqpocjOwKUXeP9mRPV02ummPTNm ectZrtBcLmx6PPfSDvWyisOHasRG7XKcTjHo+WrXYsF6aJ4frzg9TBAH62pWcWegFX Xh4JggojA3qConjIk/8f4uAsMbQ5hZ1R3bvn8lmw= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20241203134159eucas1p2e233c85ff41d2e0af5ab47c7dd4287db~NroV7J0at1157511575eucas1p2s; Tue, 3 Dec 2024 13:41:59 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 89.CA.20821.7AA0F476; Tue, 3 Dec 2024 13:41:59 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20241203134159eucas1p1eafefef0dfe7f2b6343a639733012bcf~NroVaZC7t3119131191eucas1p1D; Tue, 3 Dec 2024 13:41:59 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20241203134159eusmtrp180a93901ed8e82f9f619033779cce93c~NroVZgGeV0887308873eusmtrp1Q; Tue, 3 Dec 2024 13:41:59 +0000 (GMT) X-AuditID: cbfec7f2-b09c370000005155-78-674f0aa7012c Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id B1.07.19654.7AA0F476; Tue, 3 Dec 2024 13:41:59 +0000 (GMT) Received: from AMDC4942.home (unknown [106.210.136.40]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20241203134157eusmtip2c106e0c8996c77f30060740310e5e13f~NroUGITQL2454624546eusmtip2M; Tue, 3 Dec 2024 13:41:57 +0000 (GMT) From: Michal Wilczynski To: mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, drew@pdp7.com, guoren@kernel.org, wefu@redhat.com, jassisinghbrar@gmail.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, frank.binns@imgtec.com, matt.coster@imgtec.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch, ulf.hansson@linaro.org, jszhang@kernel.org, m.szyprowski@samsung.com Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-pm@vger.kernel.org, Michal Wilczynski Subject: [RFC PATCH v1 08/14] dt-bindings: power: thead,th1520: Add support for power domains Date: Tue, 3 Dec 2024 14:41:31 +0100 Message-Id: <20241203134137.2114847-9-m.wilczynski@samsung.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241203134137.2114847-1-m.wilczynski@samsung.com> MIME-Version: 1.0 X-Br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c0MTA1NzCwNTC3NjJXEedmunE8TEkhPLEnNTk0tSC2C6WPi4JRqYLIOVjlb 9v606exyy4MTbvH+X8/zVXKnbXLVvg2p6ur5Qle6mz6VBdR87A86y880i/tdSYlXitKGpj2/ bT0F1myIS/y55muOaU99uV2oPoNtYKv0TYYJ0/eH9f1ld51lvuCU+M9t62SCZzEa5N6+FTXn tFfng683UgUmXLE65nU3jL/lIfM3DZXE8wyS2sfLu3iibuceNbS/M1fvyu7DfgzzZ+epbA2r teW0yPmf9PTnycY8YxHtUJb/0pKiur3fvTbvK7RysDBdp3JhesM9KzuDnT5mSivWdU4pND63 Un/Kyk277mzUPmuk+SdgqVgYe8xC6Uem/l0bdy9xdy2c3Za50UZbdtPmNNUM5SfnlViKMxIN tZiLihMB3TtOWLUDAAA= X-CMS-MailID: 20241203134159eucas1p1eafefef0dfe7f2b6343a639733012bcf X-Msg-Generator: CA X-RootMTR: 20241203134159eucas1p1eafefef0dfe7f2b6343a639733012bcf X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20241203134159eucas1p1eafefef0dfe7f2b6343a639733012bcf References: <20241203134137.2114847-1-m.wilczynski@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241203_054202_252976_15B6B84E X-CRM114-Status: GOOD ( 17.03 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add power domain support to the Thead TH1520 clock controller bindings. This enables devices to specify their power domain dependencies, improving power management for components like the GPU. Signed-off-by: Michal Wilczynski --- .../bindings/power/thead,th1520-power.yaml | 52 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/thead,th1520-power.yaml diff --git a/Documentation/devicetree/bindings/power/thead,th1520-power.yaml b/Documentation/devicetree/bindings/power/thead,th1520-power.yaml new file mode 100644 index 000000000000..528af54f4ca6 --- /dev/null +++ b/Documentation/devicetree/bindings/power/thead,th1520-power.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/thead,th1520-power.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: T-HEAD TH1520 Power Domain Controller + +maintainers: + - Michal Wilczynski + +description: | + The T-HEAD TH1520 SoC includes a power domain controller responsible for + managing the power states of various hardware domains such as the GPU. + + This binding describes the power domain controller node, which can be used by + devices to manage their power domains. + +properties: + compatible: + const: "thead,th1520-pd" + + thead,vosys-regmap: + $ref: /schemas/types.yaml#/definitions/phandle + description: | + Phandle to a syscon node representing the shared register space of the VO (Video Output) subsystem. + This register space includes both clock control registers and other control registers used for + operations like resetting the GPU. Since these registers reside in the same address space, + access to them is coordinated through a shared syscon regmap provided by the specified syscon node. + + '#power-domain-cells': + const: 1 + +required: + - compatible + - thead,vosys-regmap + - '#power-domain-cells' + +additionalProperties: false + +examples: + - | + vosys_regmap: vosys@ffef528000 { + compatible = "syscon"; + reg = <0xff 0xef528000 0x0 0x1000>; + }; + + power-controller { + compatible = "thead,th1520-pd"; + thead,vosys-regmap = <&vosys_regmap>; + #power-domain-cells = <1>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 16fb58aa74b1..acbe311087ad 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -20187,6 +20187,7 @@ F: Documentation/devicetree/bindings/clock/thead,th1520-clk.yaml F: Documentation/devicetree/bindings/mailbox/thead,th1520-mbox.yaml F: Documentation/devicetree/bindings/net/thead,th1520-gmac.yaml F: Documentation/devicetree/bindings/pinctrl/thead,th1520-pinctrl.yaml +F: Documentation/devicetree/bindings/power/thead,th1520-power.yaml F: arch/riscv/boot/dts/thead/ F: drivers/clk/thead/ F: drivers/mailbox/mailbox-th1520.c