From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A5AF606A329 for ; Thu, 26 Nov 2026 11:21:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=CHEFyNOb; dkim=fail reason="signature verification failed" (1024-bit key) header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=zohomail header.b=HR7zEAtb DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=GczkTPDCek66SSIKGgPkXm2JnbDcP99KRi3QG+0sG8Y=; b=CHEFyNOb7i83in8bnNl6P6563k x8O2cCw7f8a/TcGh09zPBcAPOu37d5z4NYeQ6B0zhuLgw58xufsgtf6RfKRqzy0U+tJgLKqMedN5I 5cAndjns3cbw5e6y95D66vAhOqtLfNFEh91tZUXI5GFqU1Lpiv9U/SMpYcYbzbyuwIfJITlmJHctE lIvmEXojep83ig/uymMjYV8VCYFWJMl94cK8a4LzTrS1nauQw2Gj+MB1OVsxhXsUly3ou4a86ASmG VAcMKZwd0DJNxMSHDeh6YNu2xOfZgm66FlNS8dD4u2CS1dB5XYSBpIDJENEB4QkN6RQFmW847furj 0hbIwhLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xWXXz-0000000Cx3D-0I1M; Thu, 26 Nov 2026 11:21:51 +0000 Received: from sender5-op-o11.zoho.com ([165.173.182.11]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xWXWq-0000000Cvm6-0W9f; Thu, 26 Nov 2026 11:20:54 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1795692034; cv=none; d=zohomail.com; s=zohoarc; b=ek+UYjxkb+O5h1TyaLaLshnnt6B2gv7GjvrcgG6alx3oahVF+7U2Y0u+FACamB7p2tsTOlmkgvuwkh6pL7BRvA7ZmT4Qq3XO7S/icKfd4TTz9iI6MFtce+wolUaKJyXBQxOJup8JiauwSOFedPguXosbfnHNIC1xeJfOGr00EtY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795692034; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=7/hs/MVV/u171MHZfbxcW7bNCuk/hpU5mbRf0FENAYM=; b=e6kJo3a79dT63hOwxhefU1ON8CGVopKuVjQsCadgfiXQ2CMxsfyylI7YPtFRzBeB8u/qMR7Oe26RomtQ8ctY4vSEnPkot8m1bvUYgbOzd7GcHSgaCh4LdoEL12lgqpUvv9D730OvoLRs6rvd8dJZ/6yxHSmYjU7S6YOSB01omHQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=sebastian.reichel@collabora.com; dmarc=pass header.from= DKIM-Signature: a=rsa-sha256; b=HR7zEAtb9iE1gygNpEiZUov2cBiGoqk0uRxdjOlIV1wWvcvlnSupTQA4yiZR2p+dGX7TS4j7VbkbRk3tlFxAJHEgwQLEqt8/BEm1o3krMc8UF6ey8Bcsi9xc9uvp8hOOQ2NKEAFwt1FiMeES7flJUlkU0LBxCEUx89Tgdl85vJw=; c=relaxed/relaxed; s=zohomail; d=collabora.com; v=1; bh=7/hs/MVV/u171MHZfbxcW7bNCuk/hpU5mbRf0FENAYM=; h=Content-Description:Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Resent-Sender:Resent-Cc:Resent-Date:Resent-To:Reply-To:Resent-Message-ID:Resent-From:Sender:Subject:To:Date:From:Message-Id:Reply-To:Subject:To:Cc; Received: by smtp.zohomail.com with SMTPS id 179569203157959.58715006715579; Thu, 26 Nov 2026 03:20:31 -0800 (PST) Received: by venus (Postfix, from userid 1000) id 9520D18040B; Thu, 26 Nov 2026 12:20:26 +0100 (CET) Date: Thu, 26 Nov 2026 12:20:26 +0100 From: Sebastian Reichel To: Freimut Diener Cc: Chaoyi Chen , Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Midgy Balon , Diederik de Haas , Elaine Zhang , Pengutronix Kernel Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: power: rockchip: Allow post-init-providers for domains Message-ID: References: <20261125-rock5t-regulator-deps-v1-0-6a3470ad1855@pengutronix.de> <20261125-rock5t-regulator-deps-v1-1-6a3470ad1855@pengutronix.de> <962182b2-6fa0-4aaa-a47a-f78339b5d89e@rock-chips.com> <8733snj1tg.fsf@theta.mail-host-address-is-not-set> X-Archived-By: MIME-Version: 1.0 In-Reply-To: <8733snj1tg.fsf@theta.mail-host-address-is-not-set> X-Zoho-Virus-Status: 1 X-Zoho-AV-Stamp: zmail-av-0.2.13.1.5.4/295.675.79 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261126_032040_577307_F8E9E866 X-CRM114-Status: GOOD ( 20.72 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0233599324280475933==" Sender: "Linux-rockchip" X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 --===============0233599324280475933== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hxq6aiht4vag4qw6" Content-Disposition: inline --hxq6aiht4vag4qw6 Content-Type: text/plain; protected-headers=v1; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH 1/2] dt-bindings: power: rockchip: Allow post-init-providers for domains MIME-Version: 1.0 Hi, On Thu, Nov 26, 2026 at 11:59:23AM +0100, Freimut Diener wrote: > Sebastian Reichel writes: >=20 > > [...] an alternative solution is moving [affected power domains] to a > > separete device. > > [...] > > Now the kernel has dependency informations, which are also used for > > suspend/resume. So the kernel knows it should resume the power > > domains required for SPI/I2C (bus used by regulator) first, then the > > regulator driver and then the power domains needing regulators. >=20 > Since the power domains are managed by a single hardware power > controller, would you envision splitting them into separate devices > internally in the Rockchip power-domain driver while retaining the > existing DT representation, or would this also require changing the DT > bindings? It should be possible to create the subdevices in the driver using the current DT; there is a node for each power domain already. The decision to create a sub-device can be made based on the regulator property. The part making it interesting is that all power domains are accessed via phandles to the main node instead of referencing the specific domain node. We cannot change that, as it would be a massive ABI break. So this requires some extra work in the pmdomain core code to allow partial registration of "early" power domains with some stubs for the late domains. The late (regulator using) domains can then probe later, once the regulator becomes available. At this point they need to register their pmdomain subtree. This setup also allows moving the regulator acquistion to probe like any other device. Greetings, -- Sebastian --hxq6aiht4vag4qw6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAmsIFfYACgkQ2O7X88g7 +pqFoQ//TJW+WHm9ovyjlgf4ZjKaP9RPRF+9OAyd0mYxCIcuD6SU61XG6V/YNfvJ 0lK7E6UINxvd2QcfHPlzJ4LoyW8X4eGctOxSaGCndYYDuK0vi2aqEncNi9+yivm5 BW+loHE3uyztrmnzeSr33AYSSLkfIQUtS25g2dt0f/OjA7Pyt1Q2ShydVBKB/qct MAgXQaIJuL+OhvAWPqJdQUwNWxpcZANWIK8d6JCCtA5vGM044bLsfzsoKRe5Ahuk Ya/+pETH/Aej30C9m2EmXTKw7dF675Um+OVINBX55K2DcuOtSsuzf9KpDxNbB3Z+ OyZGygOE8Vy/wdtLDd8j7X97ut6H6ASGYR1qyCBqxZynSDOE0qe485DyWNeYXzMj N30l5y8DrD+O19leSKdyHg4d2zmcLSEHXKbuWK9GIphpDiDV1nhxW88ZWnVeZPZa kOOLrkMsCl4rxTxNY1cCDFtGMpllmKWzRaya7iL5Rnv1rjGESC1ZJcAk6uI6mKod L4bVxB75S4lyna9eAU+m1riizJ0qFWPkTHlZbXFg1fUAB8GEcWhey6nDyXOl1TSD 6EiVqQH2jRqSAY0REBQ9xlb1QzVuyCQSQO26m6Qwu4tWVbgko/sBtJ5wIuRXyhYG sxRH8oM6CM2ok7DIbiiVf1cXC8xo8SieMQYAtrFjkP5xOFa3lbE= =5BFT -----END PGP SIGNATURE----- --hxq6aiht4vag4qw6-- --===============0233599324280475933== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip --===============0233599324280475933==--