Skip to content

Commit

Permalink
arm64: dts: bitmain: Add clock controller support for BM1880 SoC
Browse files Browse the repository at this point in the history
Add clock controller support for Bitmain BM1880 SoC.

Link: https://lore.kernel.org/r/20200114040311.6599-2-manivannan.sadhasivam@linaro.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
  • Loading branch information
Manivannan Sadhasivam authored and Olof Johansson committed Jan 16, 2020
1 parent a0be473 commit e1cd7b8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions arch/arm64/boot/dts/bitmain/bm1880.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Author: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
*/

#include <dt-bindings/clock/bm1880-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/reset/bitmain,bm1880-reset.h>

Expand Down Expand Up @@ -66,6 +67,12 @@
<GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
};

osc: osc {
compatible = "fixed-clock";
clock-frequency = <25000000>;
#clock-cells = <0>;
};

soc {
compatible = "simple-bus";
#address-cells = <2>;
Expand Down Expand Up @@ -94,6 +101,15 @@
reg = <0x400 0x120>;
};

clk: clock-controller@e8 {
compatible = "bitmain,bm1880-clk";
reg = <0xe8 0x0c>, <0x800 0xb0>;
reg-names = "pll", "sys";
clocks = <&osc>;
clock-names = "osc";
#clock-cells = <1>;
};

rst: reset-controller@c00 {
compatible = "bitmain,bm1880-reset";
reg = <0xc00 0x8>;
Expand Down

0 comments on commit e1cd7b8

Please sign in to comment.