Skip to content

Commit cc9ca02

Browse files
xdarklightkhilman
authored andcommitted
dt-bindings: power: meson-ee-pwrc: add support for the Meson GX SoCs
The power domains on the GX SoCs are very similar to G12A. The only known differences so far are: - The GX SoCs do not have the HHI_VPU_MEM_PD_REG2 register (for the VPU power-domain) - The GX SoCs have an additional reset line called "dvin" Add a new compatible string and adjust the reset line expectations for these SoCs. Signed-off-by: Martin Blumenstingl <[email protected]> Signed-off-by: Kevin Hilman <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 18dfc0b commit cc9ca02

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

Documentation/devicetree/bindings/power/amlogic,meson-ee-pwrc.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ properties:
2626
- amlogic,meson8-pwrc
2727
- amlogic,meson8b-pwrc
2828
- amlogic,meson8m2-pwrc
29+
- amlogic,meson-gxbb-pwrc
2930
- amlogic,meson-g12a-pwrc
3031
- amlogic,meson-sm1-pwrc
3132

@@ -42,9 +43,11 @@ properties:
4243

4344
resets:
4445
minItems: 11
46+
maxItems: 12
4547

4648
reset-names:
4749
minItems: 11
50+
maxItems: 12
4851

4952
"#power-domain-cells":
5053
const: 1
@@ -80,6 +83,31 @@ allOf:
8083
- resets
8184
- reset-names
8285

86+
- if:
87+
properties:
88+
compatible:
89+
enum:
90+
- amlogic,meson-gxbb-pwrc
91+
then:
92+
properties:
93+
reset-names:
94+
items:
95+
- const: viu
96+
- const: venc
97+
- const: vcbus
98+
- const: bt656
99+
- const: dvin
100+
- const: rdma
101+
- const: venci
102+
- const: vencp
103+
- const: vdac
104+
- const: vdi6
105+
- const: vencl
106+
- const: vid_lock
107+
required:
108+
- resets
109+
- reset-names
110+
83111
- if:
84112
properties:
85113
compatible:
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* SPDX-License-Identifier: (GPL-2.0+ or MIT) */
2+
/*
3+
* Copyright (c) 2019 BayLibre, SAS
4+
* Author: Neil Armstrong <[email protected]>
5+
*/
6+
7+
#ifndef _DT_BINDINGS_MESON_GXBB_POWER_H
8+
#define _DT_BINDINGS_MESON_GXBB_POWER_H
9+
10+
#define PWRC_GXBB_VPU_ID 0
11+
#define PWRC_GXBB_ETHERNET_MEM_ID 1
12+
13+
#endif

0 commit comments

Comments
 (0)