ARM: STi: STiH416: Add reset controller support.
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>
Tue, 11 Mar 2014 09:35:12 +0000 (09:35 +0000)
committerSrinivas Kandagatla <srinivas.kandagatla@st.com>
Tue, 11 Mar 2014 10:03:27 +0000 (10:03 +0000)
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>
arch/arm/boot/dts/stih416.dtsi
include/dt-bindings/reset-controller/stih416-resets.h [new file with mode: 0644]

index b7ab47b95816de67897c567fcbab4ffb61e90219..e5bec660c55ea7ceac42e1b3ce83890eec8d5986 100644 (file)
@@ -10,6 +10,7 @@
 #include "stih416-clock.dtsi"
 #include "stih416-pinctrl.dtsi"
 #include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/reset-controller/stih416-resets.h>
 / {
        L2: cache-controller {
                compatible = "arm,pl310-cache";
                ranges;
                compatible      = "simple-bus";
 
+               powerdown: powerdown-controller {
+                       #reset-cells = <1>;
+                       compatible = "st,stih416-powerdown";
+               };
+
                syscfg_sbc:sbc-syscfg@fe600000{
                        compatible      = "st,stih416-sbc-syscfg", "syscon";
                        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 (file)
index 0000000..d7da55f
--- /dev/null
@@ -0,0 +1,21 @@
+/*
+ * This header provides constants for the reset controller
+ * based peripheral powerdown requests on the STMicroelectronics
+ * STiH416 SoC.
+ */
+#ifndef _DT_BINDINGS_RESET_CONTROLLER_STIH416
+#define _DT_BINDINGS_RESET_CONTROLLER_STIH416
+
+#define STIH416_EMISS_POWERDOWN                0
+#define STIH416_NAND_POWERDOWN         1
+#define STIH416_KEYSCAN_POWERDOWN      2
+#define STIH416_USB0_POWERDOWN         3
+#define STIH416_USB1_POWERDOWN         4
+#define STIH416_USB2_POWERDOWN         5
+#define STIH416_USB3_POWERDOWN         6
+#define STIH416_SATA0_POWERDOWN                7
+#define STIH416_SATA1_POWERDOWN                8
+#define STIH416_PCIE0_POWERDOWN                9
+#define STIH416_PCIE1_POWERDOWN                10
+
+#endif /* _DT_BINDINGS_RESET_CONTROLLER_STIH416 */
This page took 0.036269 seconds and 5 git commands to generate.