Skip to content

Commit f99d4fc

Browse files
wensstorulf
authored andcommitted
dt-bindings: power: Add A523 PPU and PCK600 power controllers
The A523 PPU is likely the same kind of hardware seen on previous SoCs. The A523 PCK600, as the name suggests, is likely a customized version of ARM's PCK-600 power controller. Comparing the BSP driver against ARM's PPU datasheet shows that the basic registers line up, but Allwinner's hardware has some additional delay controls in the reserved register range. As such it is likely not fully compatible with the standard ARM version. Document A523 PPU and PCK600 compatibles. Also reorder the compatible string entries so they are grouped and ordered by family first, then by SoC model. Reviewed-by: Andre Przywara <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Signed-off-by: Chen-Yu Tsai <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent cb1f2eb commit f99d4fc

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ description:
1616
properties:
1717
compatible:
1818
enum:
19-
- allwinner,sun20i-d1-ppu
2019
- allwinner,sun8i-v853-ppu
20+
- allwinner,sun20i-d1-ppu
21+
- allwinner,sun55i-a523-pck-600
22+
- allwinner,sun55i-a523-ppu
2123

2224
reg:
2325
maxItems: 1
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2+
3+
#ifndef _DT_BINDINGS_POWER_SUN55I_A523_PCK600_H_
4+
#define _DT_BINDINGS_POWER_SUN55I_A523_PCK600_H_
5+
6+
#define PD_VE 0
7+
#define PD_GPU 1
8+
#define PD_VI 2
9+
#define PD_VO0 3
10+
#define PD_VO1 4
11+
#define PD_DE 5
12+
#define PD_NAND 6
13+
#define PD_PCIE 7
14+
15+
#endif /* _DT_BINDINGS_POWER_SUN55I_A523_PCK600_H_ */
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2+
3+
#ifndef _DT_BINDINGS_POWER_SUN55I_A523_PPU_H_
4+
#define _DT_BINDINGS_POWER_SUN55I_A523_PPU_H_
5+
6+
#define PD_DSP 0
7+
#define PD_NPU 1
8+
#define PD_AUDIO 2
9+
#define PD_SRAM 3
10+
#define PD_RISCV 4
11+
12+
#endif /* _DT_BINDINGS_POWER_SUN55I_A523_PPU_H_ */

0 commit comments

Comments
 (0)