Commit d8c6f1f0 authored by Icenowy Zheng's avatar Icenowy Zheng Committed by Chen-Yu Tsai

ARM: sun8i: h3/h5: add DE2 CCU device node for H3

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: default avatarIcenowy Zheng <icenowy@aosc.io>
Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
parent fffa5274
...@@ -85,6 +85,10 @@ &ccu { ...@@ -85,6 +85,10 @@ &ccu {
compatible = "allwinner,sun8i-h3-ccu"; compatible = "allwinner,sun8i-h3-ccu";
}; };
&display_clocks {
compatible = "allwinner,sun8i-h3-de2-clk";
};
&mmc0 { &mmc0 {
compatible = "allwinner,sun7i-a20-mmc"; compatible = "allwinner,sun7i-a20-mmc";
clocks = <&ccu CLK_BUS_MMC0>, clocks = <&ccu CLK_BUS_MMC0>,
......
...@@ -40,9 +40,11 @@ ...@@ -40,9 +40,11 @@
* OTHER DEALINGS IN THE SOFTWARE. * 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-h3-ccu.h>
#include <dt-bindings/clock/sun8i-r-ccu.h> #include <dt-bindings/clock/sun8i-r-ccu.h>
#include <dt-bindings/interrupt-controller/arm-gic.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-h3-ccu.h>
#include <dt-bindings/reset/sun8i-r-ccu.h> #include <dt-bindings/reset/sun8i-r-ccu.h>
...@@ -85,6 +87,18 @@ soc { ...@@ -85,6 +87,18 @@ soc {
#size-cells = <1>; #size-cells = <1>;
ranges; 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 { syscon: syscon@1c00000 {
compatible = "allwinner,sun8i-h3-system-controller", compatible = "allwinner,sun8i-h3-system-controller",
"syscon"; "syscon";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment