mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 03:35:32 -04:00
dt-bindings: power: Add MediaTek MT6858 power domain controller
Add a new compatible and document bindings for the power domain controller of the MT6858 SoC. Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Signed-off-by: Nikolai Burov <nikolai.burov@jolla.com> Signed-off-by: Ulf Hansson <ulfh@kernel.org>
This commit is contained in:
committed by
Ulf Hansson
parent
5250a38c78
commit
61fe51f6d8
@@ -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:
|
||||
|
||||
23
include/dt-bindings/power/mediatek,mt6858-power.h
Normal file
23
include/dt-bindings/power/mediatek,mt6858-power.h
Normal file
@@ -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 */
|
||||
Reference in New Issue
Block a user