<div dir="ltr">Is it ever going to be added so this endless spam can end?<br><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 8 May 2017 at 22:11, Linus Walleij <span dir="ltr"><<a href="mailto:linus.walleij@linaro.org" target="_blank">linus.walleij@linaro.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This adds device tree bindings and a header for the Gemini SoC<br>
Clock Controller.<br>
<br>
Signed-off-by: Linus Walleij <<a href="mailto:linus.walleij@linaro.org">linus.walleij@linaro.org</a>><br>
---<br>
ChangeLog v1->v2:<br>
- Move the clock controller to be directly in the parent syscon<br>
  node.<br>
---<br>
 .../clock/cortina,gemini-<wbr>clock-controller.txt      | 22 ++++++++++++++++<br>
 include/dt-bindings/clock/<wbr>cortina,gemini-clock.h   | 29 ++++++++++++++++++++++<br>
 2 files changed, 51 insertions(+)<br>
 create mode 100644 Documentation/devicetree/<wbr>bindings/clock/cortina,gemini-<wbr>clock-controller.txt<br>
 create mode 100644 include/dt-bindings/clock/<wbr>cortina,gemini-clock.h<br>
<br>
diff --git a/Documentation/devicetree/<wbr>bindings/clock/cortina,gemini-<wbr>clock-controller.txt b/Documentation/devicetree/<wbr>bindings/clock/cortina,gemini-<wbr>clock-controller.txt<br>
new file mode 100644<br>
index 000000000000..ae0046bccba0<br>
--- /dev/null<br>
+++ b/Documentation/devicetree/<wbr>bindings/clock/cortina,gemini-<wbr>clock-controller.txt<br>
@@ -0,0 +1,22 @@<br>
+Clock bindings for the Cortina Systems Gemini SoC Clock Controller<br>
+<br>
+Required properties :<br>
+- compatible : shall contain the following:<br>
+  "cortina,gemini-clock-<wbr>controller"<br>
+- #clock-cells should be <1><br>
+<br>
+The Gemini clock controller needs to be identical to the system controller<br>
+node.<br>
+<br>
+All available clocks are defined as preprocessor macros in<br>
+dt-bindings/clock/cortina,<wbr>gemini-clock.h header and can be used in device<br>
+tree sources.<br>
+<br>
+Example:<br>
+<br>
+syscon: syscon@40000000 {<br>
+       compatible = "cortina,gemini-syscon", "cortina,gemini-clock-<wbr>controller",<br>
+                    "syscon", "simple-mfd";<br>
+       reg = <0x40000000 0x1000>;<br>
+       #clock-cells = <1>;<br>
+};<br>
diff --git a/include/dt-bindings/clock/<wbr>cortina,gemini-clock.h b/include/dt-bindings/clock/<wbr>cortina,gemini-clock.h<br>
new file mode 100644<br>
index 000000000000..acf5cd550b0c<br>
--- /dev/null<br>
+++ b/include/dt-bindings/clock/<wbr>cortina,gemini-clock.h<br>
@@ -0,0 +1,29 @@<br>
+#ifndef DT_BINDINGS_CORTINA_GEMINI_<wbr>CLOCK_H<br>
+#define DT_BINDINGS_CORTINA_GEMINI_<wbr>CLOCK_H<br>
+<br>
+/* RTC, AHB, APB, CPU, PCI, TVC, UART clocks and 13 gates */<br>
+#define GEMINI_NUM_CLKS 20<br>
+<br>
+#define GEMINI_CLK_RTC 0<br>
+#define GEMINI_CLK_AHB 1<br>
+#define GEMINI_CLK_APB 2<br>
+#define GEMINI_CLK_CPU 3<br>
+#define GEMINI_CLK_PCI 4<br>
+#define GEMINI_CLK_TVC 5<br>
+#define GEMINI_CLK_UART 6<br>
+#define GEMINI_CLK_GATES 7<br>
+#define GEMINI_CLK_GATE_SECURITY 7<br>
+#define GEMINI_CLK_GATE_GMAC0 8<br>
+#define GEMINI_CLK_GATE_GMAC1 9<br>
+#define GEMINI_CLK_GATE_SATA0 10<br>
+#define GEMINI_CLK_GATE_SATA1 11<br>
+#define GEMINI_CLK_GATE_USB0 12<br>
+#define GEMINI_CLK_GATE_USB1 13<br>
+#define GEMINI_CLK_GATE_IDE 14<br>
+#define GEMINI_CLK_GATE_PCI 15<br>
+#define GEMINI_CLK_GATE_DDR 16<br>
+#define GEMINI_CLK_GATE_FLASH 17<br>
+#define GEMINI_CLK_GATE_TVC 18<br>
+#define GEMINI_CLK_GATE_BOOT 19<br>
+<br>
+#endif /* DT_BINDINGS_CORTINA_GEMINI_<wbr>CLOCK_H */<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.9.3<br>
______________________________<wbr>_________________<br>
openwrt-devel mailing list<br>
<a href="mailto:openwrt-devel@lists.openwrt.org">openwrt-devel@lists.openwrt.<wbr>org</a><br>
<a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel" rel="noreferrer" target="_blank">https://lists.openwrt.org/cgi-<wbr>bin/mailman/listinfo/openwrt-<wbr>devel</a><br>
</font></span></blockquote></div><br></div>