Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: soc: loongson,ls2k-pmc: Allow syscon-reboot/syscon-poweroff as child

The reboot and poweroff features are actually part of the Power
Management Unit system controller, thus allow them as its children,
instead of specifying as separate device nodes with syscon phandle.

Without it, the reboot/poweroff feature becomes unavailable.

Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Binbin Zhou and committed by
Arnd Bergmann
8c4102f2 e26e788a

+26
+26
Documentation/devicetree/bindings/soc/loongson/loongson,ls2k-pmc.yaml
··· 37 37 addition, the PM need according to it to indicate that current 38 38 SoC whether support Suspend To RAM. 39 39 40 + syscon-poweroff: 41 + $ref: /schemas/power/reset/syscon-poweroff.yaml# 42 + type: object 43 + description: 44 + Node for power off method 45 + 46 + syscon-reboot: 47 + $ref: /schemas/power/reset/syscon-reboot.yaml# 48 + type: object 49 + description: 50 + Node for reboot method 51 + 40 52 required: 41 53 - compatible 42 54 - reg ··· 66 54 interrupt-parent = <&liointc1>; 67 55 interrupts = <11 IRQ_TYPE_LEVEL_LOW>; 68 56 loongson,suspend-address = <0x0 0x1c000500>; 57 + 58 + syscon-reboot { 59 + compatible = "syscon-reboot"; 60 + offset = <0x30>; 61 + mask = <0x1>; 62 + }; 63 + 64 + syscon-poweroff { 65 + compatible = "syscon-poweroff"; 66 + regmap = <&pmc>; 67 + offset = <0x14>; 68 + mask = <0x3c00>; 69 + value = <0x3c00>; 70 + }; 69 71 };