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

dt-bindings: power: Add Actions Semi S700 SPS

Define power domains for Actions Semi S700 SoC Smart Power System (SPS).

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Andreas Färber <afaerber@suse.de>

+21
+2
Documentation/devicetree/bindings/power/actions,owl-sps.txt
··· 2 2 3 3 Required properties: 4 4 - compatible : "actions,s500-sps" for S500 5 + "actions,s700-sps" for S700 5 6 - reg : Offset and length of the register set for the device. 6 7 - #power-domain-cells : Must be 1. 7 8 See macros in: 8 9 include/dt-bindings/power/owl-s500-powergate.h for S500 10 + include/dt-bindings/power/owl-s700-powergate.h for S700 9 11 10 12 11 13 Example:
+19
include/dt-bindings/power/owl-s700-powergate.h
··· 1 + // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 + /* 3 + * Actions Semi S700 SPS 4 + * 5 + * Copyright (c) 2017 Andreas Färber 6 + */ 7 + #ifndef DT_BINDINGS_POWER_OWL_S700_POWERGATE_H 8 + #define DT_BINDINGS_POWER_OWL_S700_POWERGATE_H 9 + 10 + #define S700_PD_VDE 0 11 + #define S700_PD_VCE_SI 1 12 + #define S700_PD_USB2_1 2 13 + #define S700_PD_HDE 3 14 + #define S700_PD_DMA 4 15 + #define S700_PD_DS 5 16 + #define S700_PD_USB3 6 17 + #define S700_PD_USB2_0 7 18 + 19 + #endif