Skip to content

Commit 97de44c

Browse files
superna9999khilman
authored andcommitted
dt-bindings: power: amlogic, meson-ee-pwrc: add Amlogic AXG power controller bindings
This add the bindings of the Power Controller found in the Amlogic AXG SoCs. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Kevin Hilman <khilman@baylibre.com> Reviewed-by: Rob Herring <robh@kernel.org> Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Link: https://lore.kernel.org/r/20200917064702.1459-2-narmstrong@baylibre.com
1 parent 9123e3a commit 97de44c

2 files changed

Lines changed: 35 additions & 2 deletions

File tree

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

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ properties:
2727
- amlogic,meson8b-pwrc
2828
- amlogic,meson8m2-pwrc
2929
- amlogic,meson-gxbb-pwrc
30+
- amlogic,meson-axg-pwrc
3031
- amlogic,meson-g12a-pwrc
3132
- amlogic,meson-sm1-pwrc
3233

@@ -42,11 +43,11 @@ properties:
4243
- const: vapb
4344

4445
resets:
45-
minItems: 11
46+
minItems: 5
4647
maxItems: 12
4748

4849
reset-names:
49-
minItems: 11
50+
minItems: 5
5051
maxItems: 12
5152

5253
"#power-domain-cells":
@@ -107,6 +108,24 @@ allOf:
107108
- resets
108109
- reset-names
109110

111+
- if:
112+
properties:
113+
compatible:
114+
enum:
115+
- amlogic,meson-axg-pwrc
116+
then:
117+
properties:
118+
reset-names:
119+
items:
120+
- const: viu
121+
- const: venc
122+
- const: vcbus
123+
- const: vencl
124+
- const: vid_lock
125+
required:
126+
- resets
127+
- reset-names
128+
110129
- if:
111130
properties:
112131
compatible:
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* SPDX-License-Identifier: (GPL-2.0+ or MIT) */
2+
/*
3+
* Copyright (c) 2020 BayLibre, SAS
4+
* Author: Neil Armstrong <narmstrong@baylibre.com>
5+
*/
6+
7+
#ifndef _DT_BINDINGS_MESON_AXG_POWER_H
8+
#define _DT_BINDINGS_MESON_AXG_POWER_H
9+
10+
#define PWRC_AXG_VPU_ID 0
11+
#define PWRC_AXG_ETHERNET_MEM_ID 1
12+
#define PWRC_AXG_AUDIO_ID 2
13+
14+
#endif

0 commit comments

Comments
 (0)