Skip to content

Commit 8fd27fb

Browse files
rajanv-xilinxMichal Simek
authored andcommitted
dt-bindings: power: Add ZynqMP power domain bindings
Add documentation to describe ZynqMP power domain bindings. Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com> Signed-off-by: Jolly Shah <jolly.shah@xilinx.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
1 parent ab27264 commit 8fd27fb

2 files changed

Lines changed: 73 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
-----------------------------------------------------------
2+
Device Tree Bindings for the Xilinx Zynq MPSoC PM domains
3+
-----------------------------------------------------------
4+
The binding for zynqmp-power-controller follow the common
5+
generic PM domain binding[1].
6+
7+
[1] Documentation/devicetree/bindings/power/power_domain.txt
8+
9+
== Zynq MPSoC Generic PM Domain Node ==
10+
11+
Required property:
12+
- Below property should be in zynqmp-firmware node.
13+
- #power-domain-cells: Number of cells in a PM domain specifier. Must be 1.
14+
15+
Power domain ID indexes are mentioned in
16+
include/dt-bindings/power/xlnx-zynqmp-power.h.
17+
18+
-------
19+
Example
20+
-------
21+
22+
firmware {
23+
zynqmp_firmware: zynqmp-firmware {
24+
...
25+
#power-domain-cells = <1>;
26+
...
27+
};
28+
};
29+
30+
sata {
31+
...
32+
power-domains = <&zynqmp_firmware 28>;
33+
...
34+
};
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
2+
/*
3+
* Copyright (C) 2018 Xilinx, Inc.
4+
*/
5+
6+
#ifndef _DT_BINDINGS_ZYNQMP_POWER_H
7+
#define _DT_BINDINGS_ZYNQMP_POWER_H
8+
9+
#define PD_USB_0 22
10+
#define PD_USB_1 23
11+
#define PD_TTC_0 24
12+
#define PD_TTC_1 25
13+
#define PD_TTC_2 26
14+
#define PD_TTC_3 27
15+
#define PD_SATA 28
16+
#define PD_ETH_0 29
17+
#define PD_ETH_1 30
18+
#define PD_ETH_2 31
19+
#define PD_ETH_3 32
20+
#define PD_UART_0 33
21+
#define PD_UART_1 34
22+
#define PD_SPI_0 35
23+
#define PD_SPI_1 36
24+
#define PD_I2C_0 37
25+
#define PD_I2C_1 38
26+
#define PD_SD_0 39
27+
#define PD_SD_1 40
28+
#define PD_DP 41
29+
#define PD_GDMA 42
30+
#define PD_ADMA 43
31+
#define PD_NAND 44
32+
#define PD_QSPI 45
33+
#define PD_GPIO 46
34+
#define PD_CAN_0 47
35+
#define PD_CAN_1 48
36+
#define PD_GPU 58
37+
#define PD_PCIE 59
38+
39+
#endif

0 commit comments

Comments
 (0)