blob: c3e95c33b01d92eb724c8a6c45fd8e5a29d22148 [file] [log] [blame]
Sam Protsenkoba3b14a2024-01-10 21:08:58 -06001# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/soc/samsung/exynos-pmu.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Samsung Exynos SoC series Power Management Unit (PMU)
8
9maintainers:
10 - Sam Protsenko <semen.protsenko@linaro.org>
11
12description: |+
13 PMU block controls the power and operation states of Exynos SoC. It contains
14 registers for changing the state of next features::
15
16 - Local power control. Exynos SoCs have various power domains, and it's
17 possible to turn them on and off independently, using corresponding
18 registers in PMU block
19 - System-level power control. That allows putting the system into power-down
20 modes (sleep) by turning off the power for most of the domains
21 - Miscellaneous PMU related features
22
23# Custom select to avoid matching all nodes with 'syscon'
24select:
25 properties:
26 compatible:
27 contains:
28 enum:
29 - samsung,exynos850-pmu
30 required:
31 - compatible
32
33properties:
34 compatible:
35 oneOf:
36 - items:
37 - enum:
38 - samsung,exynos850-pmu
39 - const: syscon
40
41 reg:
42 maxItems: 1
43
44 samsung,uart-debug-1:
45 type: boolean
46 description:
47 Enable this property if AP UART lines (Application Processor UART) must be
48 connected to UART_DEBUG_1 path in PMU block. That's usually needed when
49 the serial console is provided by uart1_pins. If this property is not
50 specified, the default behavior will be used (AP UART lines connected to
51 UART_DEBUG_0 path, which usually means uart0_pins are used for the serial
52 console).
53
54 syscon-poweroff:
55 $ref: /schemas/power/reset/syscon-poweroff.yaml#
56 type: object
57 description:
58 Node for power off method
59
60 syscon-reboot:
61 $ref: /schemas/power/reset/syscon-reboot.yaml#
62 type: object
63 description:
64 Node for reboot method
65
66required:
67 - compatible
68 - reg
69
70additionalProperties: false
71
72examples:
73 - |
74 pmu_system_controller: system-controller@11860000 {
75 compatible = "samsung,exynos850-pmu", "syscon";
76 reg = <0x11860000 0x10000>;
77
78 reboot: syscon-reboot {
79 compatible = "syscon-reboot";
80 regmap = <&pmu_system_controller>;
81 offset = <0x3a00>; /* SYSTEM_CONFIGURATION */
82 mask = <0x2>; /* SWRESET_SYSTEM */
83 value = <0x2>; /* reset value */
84 };
85 };