Skip to content

Commit f287826

Browse files
alexcaoysUlf Hansson
authored andcommitted
dt-bindings: power: Add Support for Allwinner A733 PCK600 Power Domain Controller
The A733 PCK600, similar to A523 PCK600, is likely a customized version of ARM PCK-600 power controller. They share the same BSP drivers in the package provided by Radxa, with the only difference being the lack of resets. Therefore, document A733 compatible and make resets required only for the other models, as well as prepare the PD definitions for future device trees. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Signed-off-by: Yuanshen Cao <alex.caoys@gmail.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 35ff3cc commit f287826

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

Documentation/devicetree/bindings/power/allwinner,sun20i-d1-ppu.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ properties:
2020
- allwinner,sun20i-d1-ppu
2121
- allwinner,sun55i-a523-pck-600
2222
- allwinner,sun55i-a523-ppu
23+
- allwinner,sun60i-a733-pck-600
2324

2425
reg:
2526
maxItems: 1
@@ -38,9 +39,23 @@ required:
3839
- compatible
3940
- reg
4041
- clocks
41-
- resets
4242
- '#power-domain-cells'
4343

44+
allOf:
45+
- if:
46+
properties:
47+
compatible:
48+
contains:
49+
enum:
50+
- allwinner,sun8i-v853-ppu
51+
- allwinner,sun20i-d1-ppu
52+
- allwinner,sun55i-a523-pck-600
53+
- allwinner,sun55i-a523-ppu
54+
55+
then:
56+
required:
57+
- resets
58+
4459
additionalProperties: false
4560

4661
examples:
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2+
3+
#ifndef _DT_BINDINGS_POWER_SUN60I_A733_PCK600_H_
4+
#define _DT_BINDINGS_POWER_SUN60I_A733_PCK600_H_
5+
6+
#define PD_VI 0
7+
#define PD_DE_SYS 1
8+
#define PD_VE_DEC 2
9+
#define PD_VE_ENC 3
10+
#define PD_NPU 4
11+
#define PD_GPU_TOP 5
12+
#define PD_GPU_CORE 6
13+
#define PD_PCIE 7
14+
#define PD_USB2 8
15+
#define PD_VO 9
16+
#define PD_VO1 10
17+
18+
#endif /* _DT_BINDINGS_POWER_SUN60I_A733_PCK600_H_ */

0 commit comments

Comments
 (0)