diff options
author | Sibi Sankar <sibis@codeaurora.org> | 2018-06-27 10:24:42 -0400 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2018-07-16 06:15:38 -0400 |
commit | b79df1ec22a3924a09028b98807fa71ea612af9d (patch) | |
tree | 87349554d6dd69f5e3478993ac671fcfb6b03fdd | |
parent | ce397d215ccd07b8ae3f71db689aedb85d56ab40 (diff) |
dt-bindings: reset: Add AOSS reset bindings for SDM845 SoCs
Add SDM845 AOSS (always on subsystem) reset controller binding
Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
-rw-r--r-- | Documentation/devicetree/bindings/reset/qcom,aoss-reset.txt | 52 | ||||
-rw-r--r-- | include/dt-bindings/reset/qcom,sdm845-aoss.h | 17 |
2 files changed, 69 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/reset/qcom,aoss-reset.txt b/Documentation/devicetree/bindings/reset/qcom,aoss-reset.txt new file mode 100644 index 000000000000..510c748656ec --- /dev/null +++ b/Documentation/devicetree/bindings/reset/qcom,aoss-reset.txt | |||
@@ -0,0 +1,52 @@ | |||
1 | Qualcomm AOSS Reset Controller | ||
2 | ====================================== | ||
3 | |||
4 | This binding describes a reset-controller found on AOSS-CC (always on subsystem) | ||
5 | for Qualcomm SDM845 SoCs. | ||
6 | |||
7 | Required properties: | ||
8 | - compatible: | ||
9 | Usage: required | ||
10 | Value type: <string> | ||
11 | Definition: must be: | ||
12 | "qcom,sdm845-aoss-cc" | ||
13 | |||
14 | - reg: | ||
15 | Usage: required | ||
16 | Value type: <prop-encoded-array> | ||
17 | Definition: must specify the base address and size of the register | ||
18 | space. | ||
19 | |||
20 | - #reset-cells: | ||
21 | Usage: required | ||
22 | Value type: <uint> | ||
23 | Definition: must be 1; cell entry represents the reset index. | ||
24 | |||
25 | Example: | ||
26 | |||
27 | aoss_reset: reset-controller@c2a0000 { | ||
28 | compatible = "qcom,sdm845-aoss-cc"; | ||
29 | reg = <0xc2a0000 0x31000>; | ||
30 | #reset-cells = <1>; | ||
31 | }; | ||
32 | |||
33 | Specifying reset lines connected to IP modules | ||
34 | ============================================== | ||
35 | |||
36 | Device nodes that need access to reset lines should | ||
37 | specify them as a reset phandle in their corresponding node as | ||
38 | specified in reset.txt. | ||
39 | |||
40 | For list of all valid reset indicies see | ||
41 | <dt-bindings/reset/qcom,sdm845-aoss.h> | ||
42 | |||
43 | Example: | ||
44 | |||
45 | modem-pil@4080000 { | ||
46 | ... | ||
47 | |||
48 | resets = <&aoss_reset AOSS_CC_MSS_RESTART>; | ||
49 | reset-names = "mss_restart"; | ||
50 | |||
51 | ... | ||
52 | }; | ||
diff --git a/include/dt-bindings/reset/qcom,sdm845-aoss.h b/include/dt-bindings/reset/qcom,sdm845-aoss.h new file mode 100644 index 000000000000..476c5fc873b6 --- /dev/null +++ b/include/dt-bindings/reset/qcom,sdm845-aoss.h | |||
@@ -0,0 +1,17 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
2 | /* | ||
3 | * Copyright (C) 2018 The Linux Foundation. All rights reserved. | ||
4 | */ | ||
5 | |||
6 | #ifndef _DT_BINDINGS_RESET_AOSS_SDM_845_H | ||
7 | #define _DT_BINDINGS_RESET_AOSS_SDM_845_H | ||
8 | |||
9 | #define AOSS_CC_MSS_RESTART 0 | ||
10 | #define AOSS_CC_CAMSS_RESTART 1 | ||
11 | #define AOSS_CC_VENUS_RESTART 2 | ||
12 | #define AOSS_CC_GPU_RESTART 3 | ||
13 | #define AOSS_CC_DISPSS_RESTART 4 | ||
14 | #define AOSS_CC_WCSS_RESTART 5 | ||
15 | #define AOSS_CC_LPASS_RESTART 6 | ||
16 | |||
17 | #endif | ||