Skip to content

Commit 6054a67

Browse files
YinboZhuarndb
authored andcommitted
soc: dt-bindings: add loongson-2 pm
Add the Loongson-2 SoC Power Management Controller binding with DT schema format using json-schema. Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230803063703.5659-2-zhuyinbo@loongson.cn Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 3cb5b03 commit 6054a67

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/soc/loongson/loongson,ls2k-pmc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Loongson-2 Power Manager controller
8+
9+
maintainers:
10+
- Yinbo Zhu <zhuyinbo@loongson.cn>
11+
12+
properties:
13+
compatible:
14+
items:
15+
- enum:
16+
- loongson,ls2k0500-pmc
17+
- loongson,ls2k1000-pmc
18+
- const: syscon
19+
20+
reg:
21+
maxItems: 1
22+
23+
interrupts:
24+
maxItems: 1
25+
26+
loongson,suspend-address:
27+
$ref: /schemas/types.yaml#/definitions/uint64
28+
description:
29+
The "loongson,suspend-address" is a deep sleep state (Suspend To
30+
RAM) firmware entry address which was jumped from kernel and it's
31+
value was dependent on specific platform firmware code. In
32+
addition, the PM need according to it to indicate that current
33+
SoC whether support Suspend To RAM.
34+
35+
required:
36+
- compatible
37+
- reg
38+
- interrupts
39+
40+
additionalProperties: false
41+
42+
examples:
43+
- |
44+
#include <dt-bindings/interrupt-controller/irq.h>
45+
46+
power-management@1fe27000 {
47+
compatible = "loongson,ls2k1000-pmc", "syscon";
48+
reg = <0x1fe27000 0x58>;
49+
interrupt-parent = <&liointc1>;
50+
interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
51+
loongson,suspend-address = <0x0 0x1c000500>;
52+
};

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12282,6 +12282,12 @@ S: Maintained
1228212282
F: Documentation/devicetree/bindings/hwinfo/loongson,ls2k-chipid.yaml
1228312283
F: drivers/soc/loongson/loongson2_guts.c
1228412284

12285+
LOONGSON-2 SOC SERIES PM DRIVER
12286+
M: Yinbo Zhu <zhuyinbo@loongson.cn>
12287+
L: linux-pm@vger.kernel.org
12288+
S: Maintained
12289+
F: Documentation/devicetree/bindings/soc/loongson/loongson,ls2k-pmc.yaml
12290+
1228512291
LOONGSON-2 SOC SERIES PINCTRL DRIVER
1228612292
M: zhanghongchen <zhanghongchen@loongson.cn>
1228712293
M: Yinbo Zhu <zhuyinbo@loongson.cn>

0 commit comments

Comments
 (0)