16054a676SYinbo Zhu# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 26054a676SYinbo Zhu%YAML 1.2 36054a676SYinbo Zhu--- 46054a676SYinbo Zhu$id: http://devicetree.org/schemas/soc/loongson/loongson,ls2k-pmc.yaml# 56054a676SYinbo Zhu$schema: http://devicetree.org/meta-schemas/core.yaml# 66054a676SYinbo Zhu 76054a676SYinbo Zhutitle: Loongson-2 Power Manager controller 86054a676SYinbo Zhu 96054a676SYinbo Zhumaintainers: 106054a676SYinbo Zhu - Yinbo Zhu <zhuyinbo@loongson.cn> 116054a676SYinbo Zhu 126054a676SYinbo Zhuproperties: 136054a676SYinbo Zhu compatible: 14*380054cbSBinbin Zhou oneOf: 15*380054cbSBinbin Zhou - items: 16*380054cbSBinbin Zhou - const: loongson,ls2k0500-pmc 17*380054cbSBinbin Zhou - const: syscon 18*380054cbSBinbin Zhou - items: 196054a676SYinbo Zhu - enum: 206054a676SYinbo Zhu - loongson,ls2k1000-pmc 21*380054cbSBinbin Zhou - loongson,ls2k2000-pmc 22*380054cbSBinbin Zhou - const: loongson,ls2k0500-pmc 236054a676SYinbo Zhu - const: syscon 246054a676SYinbo Zhu 256054a676SYinbo Zhu reg: 266054a676SYinbo Zhu maxItems: 1 276054a676SYinbo Zhu 286054a676SYinbo Zhu interrupts: 296054a676SYinbo Zhu maxItems: 1 306054a676SYinbo Zhu 316054a676SYinbo Zhu loongson,suspend-address: 326054a676SYinbo Zhu $ref: /schemas/types.yaml#/definitions/uint64 336054a676SYinbo Zhu description: 346054a676SYinbo Zhu The "loongson,suspend-address" is a deep sleep state (Suspend To 356054a676SYinbo Zhu RAM) firmware entry address which was jumped from kernel and it's 366054a676SYinbo Zhu value was dependent on specific platform firmware code. In 376054a676SYinbo Zhu addition, the PM need according to it to indicate that current 386054a676SYinbo Zhu SoC whether support Suspend To RAM. 396054a676SYinbo Zhu 406054a676SYinbo Zhurequired: 416054a676SYinbo Zhu - compatible 426054a676SYinbo Zhu - reg 436054a676SYinbo Zhu - interrupts 446054a676SYinbo Zhu 456054a676SYinbo ZhuadditionalProperties: false 466054a676SYinbo Zhu 476054a676SYinbo Zhuexamples: 486054a676SYinbo Zhu - | 496054a676SYinbo Zhu #include <dt-bindings/interrupt-controller/irq.h> 506054a676SYinbo Zhu 516054a676SYinbo Zhu power-management@1fe27000 { 52*380054cbSBinbin Zhou compatible = "loongson,ls2k1000-pmc", "loongson,ls2k0500-pmc", "syscon"; 536054a676SYinbo Zhu reg = <0x1fe27000 0x58>; 546054a676SYinbo Zhu interrupt-parent = <&liointc1>; 556054a676SYinbo Zhu interrupts = <11 IRQ_TYPE_LEVEL_LOW>; 566054a676SYinbo Zhu loongson,suspend-address = <0x0 0x1c000500>; 576054a676SYinbo Zhu }; 58