From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 4B897382F27; Mon, 20 Jul 2026 20:46:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784580410; cv=none; b=bd5ydFhuJFP7hpo9ephTrW0hr9mxEYH5C62etcd4ulChcHcpLtjKiRszVJY5NFqshLuRWYgHRxEovtqEiUnIS8FUnZzNsj5AS4szAvF1UQMv+TfuyMfU4wxT1YjX88QVM2ldc6NiwUe/PBhqUVqSJv9Q9M4Q81Rbd1FJOUPCMus= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784580410; c=relaxed/simple; bh=++tqNz0w46PKOszkoc7YtTJHJu2VjERDiHNyBjrIcXk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SkKdoY5NSvwwM7va3Ywhp+R5xI/y0PNUpX8yYtFjCPHDWjgyc7kLiQxSaLp2OceM9VamgxIwoPPGJI+76DOOzQSj9/pWQ296jY1YnEfUgrQjLYDp/6e7BSUj6EDrGmCSv9qRbZh08nHRtFlBZF/V6mhLG8gtWiJDvdauf7kizm0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tyKDSPlK; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tyKDSPlK" Received: by smtp.kernel.org (Postfix) with ESMTPS id EBE57C2BCB8; Mon, 20 Jul 2026 20:46:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1784580410; bh=++tqNz0w46PKOszkoc7YtTJHJu2VjERDiHNyBjrIcXk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=tyKDSPlKKeshnqwu+oVymUlOeljevfMNMsFgtk1FlS8R4i5GPjNw4MudoVj+KX0rr tw4iRstHtDS0oJeBYQiWPg8TaxyM2GehsJGhGKh0twvrf5psnWUhh0buYytR8RlJB8 U5eV+9v2R0lzVxtqjBkL4nzx4x/t5pi4U5mhTaTebI0eFrRNYKxhs1HrHDbe1txVtp F/+PCnyCe8jnYrdSyHzo11ITr1Zz6kiW7rV26A2cGKlm24IAp4Zi/Kt7gfx5MMHr35 FntJAUDEUzrDlLDIBrSmTx3k0g6KxghNacmr4oYto4n/Btpd6bImJuPkZflJ0I4T0p OxyQFe2VZDp5g== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC0E0C44529; Mon, 20 Jul 2026 20:46:49 +0000 (UTC) From: Nikolai Burov via B4 Relay Date: Mon, 20 Jul 2026 23:46:46 +0300 Subject: [PATCH v3 1/3] dt-bindings: power: Add MediaTek MT6858 power domain controller Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260720-mt6858-pmdomain-v3-1-8966d8de93c8@jolla.com> References: <20260720-mt6858-pmdomain-v3-0-8966d8de93c8@jolla.com> In-Reply-To: <20260720-mt6858-pmdomain-v3-0-8966d8de93c8@jolla.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Ulf Hansson Cc: Matthias Brugger , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-pm@vger.kernel.org, Nikolai Burov , Nikolai Burov , Krzysztof Kozlowski X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1784580408; l=3911; i=nikolai.burov@jolla.com; s=20260707; h=from:subject:message-id; bh=W6TBGlPoz+wr3HRnReTsA6f8fojOcfN5I/9q7eazDAE=; b=obt8TGgrKPH3ll5K4ECO8yp1lxTDtpFOvX0sfaq0JqFByH6mQ7YG1qXPqe5LsAH0ph02m/GzN KQeELHc/iWpAIAWOS01QZloVlAXohdta79RHX6Tn/mRXMl8t/gC+qrd X-Developer-Key: i=nikolai.burov@jolla.com; a=ed25519; pk=yzpa+PD+ovHUFMIOBA9o2QqGwI110jM6hdGHLc7jtoQ= X-Endpoint-Received: by B4 Relay for nikolai.burov@jolla.com/20260707 with auth_id=859 X-Original-From: Nikolai Burov Reply-To: nikolai.burov@jolla.com From: Nikolai Burov Add a new compatible and document bindings for the power domain controller of the MT6858 SoC. Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Krzysztof Kozlowski Signed-off-by: Nikolai Burov --- .../bindings/power/mediatek,power-controller.yaml | 21 +++++++++++++++++++- include/dt-bindings/power/mediatek,mt6858-power.h | 23 ++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml index 070c6e5666dc..d03e4a925163 100644 --- a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml +++ b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml @@ -25,6 +25,7 @@ properties: enum: - mediatek,mt6735-power-controller - mediatek,mt6795-power-controller + - mediatek,mt6858-power-controller - mediatek,mt6893-power-controller - mediatek,mt8167-power-controller - mediatek,mt8173-power-controller @@ -56,7 +57,7 @@ properties: faults while enabling or disabling a power domain. For example, this may hold phandles to INFRACFG and SMI. minItems: 1 - maxItems: 3 + maxItems: 6 patternProperties: "^power-domain@[0-9a-f]+$": @@ -103,6 +104,7 @@ $defs: description: | Power domain index. Valid values are defined in: "include/dt-bindings/power/mt6795-power.h" - for MT8167 type power domain. + "include/dt-bindings/power/mediatek,mt6858-power.h" - for MT6858 type power domain. "include/dt-bindings/power/mediatek,mt6893-power.h" - for MT6893 type power domain. "include/dt-bindings/power/mt8167-power.h" - for MT8167 type power domain. "include/dt-bindings/power/mt8173-power.h" - for MT8173 type power domain. @@ -156,6 +158,23 @@ required: - compatible allOf: + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt6858-power-controller + then: + properties: + access-controllers: + items: + - description: handle to INFRACFG register block + - description: handle to IMG_SUB0 register block + - description: handle to CAM_SUB1 register block + - description: handle to CAM_SUB0 register block + - description: handle to IPE_SUB0 register block + - description: handle to VLPCFG register block + - if: properties: compatible: diff --git a/include/dt-bindings/power/mediatek,mt6858-power.h b/include/dt-bindings/power/mediatek,mt6858-power.h new file mode 100644 index 000000000000..6ed9e82d4ad3 --- /dev/null +++ b/include/dt-bindings/power/mediatek,mt6858-power.h @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ + +#ifndef _DT_BINDINGS_POWER_MT6858_POWER_H +#define _DT_BINDINGS_POWER_MT6858_POWER_H + +#define MT6858_POWER_DOMAIN_MD 0 +#define MT6858_POWER_DOMAIN_CONN 1 +#define MT6858_POWER_DOMAIN_AUDIO 2 +#define MT6858_POWER_DOMAIN_MM_INFRA 3 +#define MT6858_POWER_DOMAIN_ISP_IMG1 4 +#define MT6858_POWER_DOMAIN_ISP_IMG2 5 +#define MT6858_POWER_DOMAIN_ISP_IPE 6 +#define MT6858_POWER_DOMAIN_VDE0 7 +#define MT6858_POWER_DOMAIN_VEN0 8 +#define MT6858_POWER_DOMAIN_CAM_MAIN 9 +#define MT6858_POWER_DOMAIN_CAM_SUBA 10 +#define MT6858_POWER_DOMAIN_CAM_SUBB 11 +#define MT6858_POWER_DOMAIN_DIS0 12 +#define MT6858_POWER_DOMAIN_MM_PROC_DORMANT 13 +#define MT6858_POWER_DOMAIN_CSI_RX 14 +#define MT6858_POWER_DOMAIN_SSUSB 15 + +#endif /* _DT_BINDINGS_POWER_MT6858_POWER_H */ -- 2.54.0