diff options
author | Leo Yan <leo.yan@linaro.org> | 2015-08-07 11:41:30 +0800 |
---|---|---|
committer | Leo Yan <leo.yan@linaro.org> | 2015-08-07 11:41:30 +0800 |
commit | 4051fb333338715b198edce78ffe163887257d6f (patch) | |
tree | f598a8ce57e7a5ec2d860fa94fa73d12e43f2843 | |
parent | cd070f6c53ca8dd21980e832e1f57a899e73172b (diff) |
arm64: dts: add Hi6220's stub clock node
Enable SRAM node and stub clock node for Hi6220; furthermore
add the CPU's clock so it will be used by cpufreq-dt driver.
Signed-off-by: Leo Yan <leo.yan@linaro.org>
-rw-r--r-- | arch/arm64/boot/dts/hi6220.dtsi | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/arch/arm64/boot/dts/hi6220.dtsi b/arch/arm64/boot/dts/hi6220.dtsi index ac572b5a615e..7ae13d80d1fc 100644 --- a/arch/arm64/boot/dts/hi6220.dtsi +++ b/arch/arm64/boot/dts/hi6220.dtsi @@ -4,6 +4,7 @@ * Copyright (C) 2014, Hisilicon Ltd. */ +#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/clock/hi6220-clock.h> #include <dt-bindings/thermal/thermal.h> #include <dt-bindings/pinctrl/hisi.h> @@ -23,7 +24,7 @@ device_type = "cpu"; reg = <0x0 0x0>; enable-method = "psci"; - clocks = <&clock_acpu HI6220_STUB_ACPU0>; + clocks = <&stub_clock 0>; clock-names = "acpu0"; clock-latency = <0>; operating-points = < @@ -112,11 +113,6 @@ }; }; - cpufreq { - compatible = "hisilicon,hisi-acpu-cpufreq"; - hisilicon,coupled-clusters = <1>; - }; - gic: interrupt-controller@f6800000 { compatible = "arm,gic-400", "arm,cortex-a15-gic"; reg = <0x0 0xf6801000 0x0 0x1000>, /* GICD */ @@ -129,15 +125,6 @@ interrupts = <1 9 0xf04>; }; - clock_acpu: clock_acpu { - compatible = "hisilicon,hi6220-clock-stub"; - #address-cells = <2>; - #size-cells = <2>; - reg = <0x0 0xFFF81AF4 0x0 0x000C>, - <0x0 0xF7510000 0x0 0x1000>; - - #clock-cells = <1>; - }; ao_ctrl: ao_ctrl { compatible = "hisilicon,aoctrl", "syscon"; @@ -228,6 +215,11 @@ interrupt-parent = <&gic>; ranges; + sram: sram@fff80000 { + compatible = "hisilicon,hi6220-sramctrl", "syscon"; + reg = <0x0 0xfff80000 0x0 0x12000>; + }; + uart0: uart@f8015000 { /* console */ compatible = "arm,pl011", "arm,primecell"; reg = <0x0 0xf8015000 0x0 0x1000>; @@ -1067,6 +1059,12 @@ interrupts = <0 77 0x4>; }; + stub_clock: stub_clock { + compatible = "hisilicon,hi6220-stub-clk"; + hisilicon,hi6220-clk-sram = <&sram>; + #clock-cells = <1>; + mboxes = <&mailbox 1>; + }; tsensor: tsensor@0,f7030700 { compatible = "hisilicon,tsensor"; |