]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: sun8i: h3/h5: add DE2 CCU device node for H3
authorIcenowy Zheng <icenowy@aosc.io>
Fri, 22 Dec 2017 12:22:37 +0000 (20:22 +0800)
committerChen-Yu Tsai <wens@csie.org>
Fri, 29 Dec 2017 08:41:03 +0000 (16:41 +0800)
The DE2 in H3/H5 has a clock control unit in it, and the behavior is
slightly different between H3 and H5.

Add the common parts in H3/H5 DTSI, and add the compatible string in H3
DTSI.

The compatible string of H5 DE2 CCU will be added in a separated patch.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm/boot/dts/sun8i-h3.dtsi
arch/arm/boot/dts/sunxi-h3-h5.dtsi

index b36f9f423c39d9d872bbbf6dc745473906494a4f..8495deecedad469a432875f89828776b15ac80a1 100644 (file)
        compatible = "allwinner,sun8i-h3-ccu";
 };
 
+&display_clocks {
+       compatible = "allwinner,sun8i-h3-de2-clk";
+};
+
 &mmc0 {
        compatible = "allwinner,sun7i-a20-mmc";
        clocks = <&ccu CLK_BUS_MMC0>,
index 8d40c00d64bb39a893d2f74c3d859ea42db59589..fcb909658cf0a088285d64e0e7bb302885702186 100644 (file)
  *     OTHER DEALINGS IN THE SOFTWARE.
  */
 
+#include <dt-bindings/clock/sun8i-de2.h>
 #include <dt-bindings/clock/sun8i-h3-ccu.h>
 #include <dt-bindings/clock/sun8i-r-ccu.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/reset/sun8i-de2.h>
 #include <dt-bindings/reset/sun8i-h3-ccu.h>
 #include <dt-bindings/reset/sun8i-r-ccu.h>
 
                #size-cells = <1>;
                ranges;
 
+               display_clocks: clock@1000000 {
+                       /* compatible is in per SoC .dtsi file */
+                       reg = <0x01000000 0x100000>;
+                       clocks = <&ccu CLK_DE>,
+                                <&ccu CLK_BUS_DE>;
+                       clock-names = "mod",
+                                     "bus";
+                       resets = <&ccu RST_BUS_DE>;
+                       #clock-cells = <1>;
+                       #reset-cells = <1>;
+               };
+
                syscon: syscon@1c00000 {
                        compatible = "allwinner,sun8i-h3-system-controller",
                                "syscon";