diff options
author | Srinivas Kandagatla <srinivas.kandagatla@st.com> | 2014-03-11 05:35:12 -0400 |
---|---|---|
committer | Srinivas Kandagatla <srinivas.kandagatla@st.com> | 2014-03-11 06:03:27 -0400 |
commit | da3e02a2366dd30f1f2bcd5ff528c0057f7e2f04 (patch) | |
tree | ad791e94f85faa6d44fd6f802c38479466e9fc2f | |
parent | fc58fcf6da7377eeac217b3b187bb004c9564467 (diff) |
ARM: STi: STiH416: Add reset controller support.
This patch adds a reset controller node to the SOC device tree and also
adds new header files with reset lines required for other device tree
nodes.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
-rw-r--r-- | arch/arm/boot/dts/stih416.dtsi | 6 | ||||
-rw-r--r-- | include/dt-bindings/reset-controller/stih416-resets.h | 21 |
2 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/stih416.dtsi b/arch/arm/boot/dts/stih416.dtsi index b7ab47b95816..e5bec660c55e 100644 --- a/arch/arm/boot/dts/stih416.dtsi +++ b/arch/arm/boot/dts/stih416.dtsi | |||
@@ -10,6 +10,7 @@ | |||
10 | #include "stih416-clock.dtsi" | 10 | #include "stih416-clock.dtsi" |
11 | #include "stih416-pinctrl.dtsi" | 11 | #include "stih416-pinctrl.dtsi" |
12 | #include <dt-bindings/interrupt-controller/arm-gic.h> | 12 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
13 | #include <dt-bindings/reset-controller/stih416-resets.h> | ||
13 | / { | 14 | / { |
14 | L2: cache-controller { | 15 | L2: cache-controller { |
15 | compatible = "arm,pl310-cache"; | 16 | compatible = "arm,pl310-cache"; |
@@ -27,6 +28,11 @@ | |||
27 | ranges; | 28 | ranges; |
28 | compatible = "simple-bus"; | 29 | compatible = "simple-bus"; |
29 | 30 | ||
31 | powerdown: powerdown-controller { | ||
32 | #reset-cells = <1>; | ||
33 | compatible = "st,stih416-powerdown"; | ||
34 | }; | ||
35 | |||
30 | syscfg_sbc:sbc-syscfg@fe600000{ | 36 | syscfg_sbc:sbc-syscfg@fe600000{ |
31 | compatible = "st,stih416-sbc-syscfg", "syscon"; | 37 | compatible = "st,stih416-sbc-syscfg", "syscon"; |
32 | reg = <0xfe600000 0x1000>; | 38 | reg = <0xfe600000 0x1000>; |
diff --git a/include/dt-bindings/reset-controller/stih416-resets.h b/include/dt-bindings/reset-controller/stih416-resets.h new file mode 100644 index 000000000000..d7da55f08cd6 --- /dev/null +++ b/include/dt-bindings/reset-controller/stih416-resets.h | |||
@@ -0,0 +1,21 @@ | |||
1 | /* | ||
2 | * This header provides constants for the reset controller | ||
3 | * based peripheral powerdown requests on the STMicroelectronics | ||
4 | * STiH416 SoC. | ||
5 | */ | ||
6 | #ifndef _DT_BINDINGS_RESET_CONTROLLER_STIH416 | ||
7 | #define _DT_BINDINGS_RESET_CONTROLLER_STIH416 | ||
8 | |||
9 | #define STIH416_EMISS_POWERDOWN 0 | ||
10 | #define STIH416_NAND_POWERDOWN 1 | ||
11 | #define STIH416_KEYSCAN_POWERDOWN 2 | ||
12 | #define STIH416_USB0_POWERDOWN 3 | ||
13 | #define STIH416_USB1_POWERDOWN 4 | ||
14 | #define STIH416_USB2_POWERDOWN 5 | ||
15 | #define STIH416_USB3_POWERDOWN 6 | ||
16 | #define STIH416_SATA0_POWERDOWN 7 | ||
17 | #define STIH416_SATA1_POWERDOWN 8 | ||
18 | #define STIH416_PCIE0_POWERDOWN 9 | ||
19 | #define STIH416_PCIE1_POWERDOWN 10 | ||
20 | |||
21 | #endif /* _DT_BINDINGS_RESET_CONTROLLER_STIH416 */ | ||