Commit 36601dbf authored by Sebastian Hesselbarth's avatar Sebastian Hesselbarth

ARM: dts: berlin: convert BG2 to DT clock nodes

This converts Berlin BG2 SoC dtsi to make use of the new DT clock
nodes for Berlin SoCs. While at it, also fix up twdclk which is
running at cpuclk/3 instead of sysclk.
Signed-off-by: default avatarSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
parent 556f4a33
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
*/ */
#include "skeleton.dtsi" #include "skeleton.dtsi"
#include <dt-bindings/clock/berlin2.h>
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
/ { / {
...@@ -37,24 +38,10 @@ cpu@1 { ...@@ -37,24 +38,10 @@ cpu@1 {
}; };
}; };
clocks { refclk: oscillator {
smclk: sysmgr-clock { compatible = "fixed-clock";
compatible = "fixed-clock"; #clock-cells = <0>;
#clock-cells = <0>; clock-frequency = <25000000>;
clock-frequency = <25000000>;
};
cfgclk: cfg-clock {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <100000000>;
};
sysclk: system-clock {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <400000000>;
};
}; };
soc { soc {
...@@ -88,7 +75,7 @@ local-timer@ad0600 { ...@@ -88,7 +75,7 @@ local-timer@ad0600 {
compatible = "arm,cortex-a9-twd-timer"; compatible = "arm,cortex-a9-twd-timer";
reg = <0xad0600 0x20>; reg = <0xad0600 0x20>;
interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&sysclk>; clocks = <&chip CLKID_TWD>;
}; };
apb@e80000 { apb@e80000 {
...@@ -175,7 +162,7 @@ timer0: timer@2c00 { ...@@ -175,7 +162,7 @@ timer0: timer@2c00 {
compatible = "snps,dw-apb-timer"; compatible = "snps,dw-apb-timer";
reg = <0x2c00 0x14>; reg = <0x2c00 0x14>;
interrupts = <8>; interrupts = <8>;
clocks = <&cfgclk>; clocks = <&chip CLKID_CFG>;
clock-names = "timer"; clock-names = "timer";
status = "okay"; status = "okay";
}; };
...@@ -184,7 +171,7 @@ timer1: timer@2c14 { ...@@ -184,7 +171,7 @@ timer1: timer@2c14 {
compatible = "snps,dw-apb-timer"; compatible = "snps,dw-apb-timer";
reg = <0x2c14 0x14>; reg = <0x2c14 0x14>;
interrupts = <9>; interrupts = <9>;
clocks = <&cfgclk>; clocks = <&chip CLKID_CFG>;
clock-names = "timer"; clock-names = "timer";
status = "okay"; status = "okay";
}; };
...@@ -193,7 +180,7 @@ timer2: timer@2c28 { ...@@ -193,7 +180,7 @@ timer2: timer@2c28 {
compatible = "snps,dw-apb-timer"; compatible = "snps,dw-apb-timer";
reg = <0x2c28 0x14>; reg = <0x2c28 0x14>;
interrupts = <10>; interrupts = <10>;
clocks = <&cfgclk>; clocks = <&chip CLKID_CFG>;
clock-names = "timer"; clock-names = "timer";
status = "disabled"; status = "disabled";
}; };
...@@ -202,7 +189,7 @@ timer3: timer@2c3c { ...@@ -202,7 +189,7 @@ timer3: timer@2c3c {
compatible = "snps,dw-apb-timer"; compatible = "snps,dw-apb-timer";
reg = <0x2c3c 0x14>; reg = <0x2c3c 0x14>;
interrupts = <11>; interrupts = <11>;
clocks = <&cfgclk>; clocks = <&chip CLKID_CFG>;
clock-names = "timer"; clock-names = "timer";
status = "disabled"; status = "disabled";
}; };
...@@ -211,7 +198,7 @@ timer4: timer@2c50 { ...@@ -211,7 +198,7 @@ timer4: timer@2c50 {
compatible = "snps,dw-apb-timer"; compatible = "snps,dw-apb-timer";
reg = <0x2c50 0x14>; reg = <0x2c50 0x14>;
interrupts = <12>; interrupts = <12>;
clocks = <&cfgclk>; clocks = <&chip CLKID_CFG>;
clock-names = "timer"; clock-names = "timer";
status = "disabled"; status = "disabled";
}; };
...@@ -220,7 +207,7 @@ timer5: timer@2c64 { ...@@ -220,7 +207,7 @@ timer5: timer@2c64 {
compatible = "snps,dw-apb-timer"; compatible = "snps,dw-apb-timer";
reg = <0x2c64 0x14>; reg = <0x2c64 0x14>;
interrupts = <13>; interrupts = <13>;
clocks = <&cfgclk>; clocks = <&chip CLKID_CFG>;
clock-names = "timer"; clock-names = "timer";
status = "disabled"; status = "disabled";
}; };
...@@ -229,7 +216,7 @@ timer6: timer@2c78 { ...@@ -229,7 +216,7 @@ timer6: timer@2c78 {
compatible = "snps,dw-apb-timer"; compatible = "snps,dw-apb-timer";
reg = <0x2c78 0x14>; reg = <0x2c78 0x14>;
interrupts = <14>; interrupts = <14>;
clocks = <&cfgclk>; clocks = <&chip CLKID_CFG>;
clock-names = "timer"; clock-names = "timer";
status = "disabled"; status = "disabled";
}; };
...@@ -238,7 +225,7 @@ timer7: timer@2c8c { ...@@ -238,7 +225,7 @@ timer7: timer@2c8c {
compatible = "snps,dw-apb-timer"; compatible = "snps,dw-apb-timer";
reg = <0x2c8c 0x14>; reg = <0x2c8c 0x14>;
interrupts = <15>; interrupts = <15>;
clocks = <&cfgclk>; clocks = <&chip CLKID_CFG>;
clock-names = "timer"; clock-names = "timer";
status = "disabled"; status = "disabled";
}; };
...@@ -253,9 +240,12 @@ aic: interrupt-controller@3000 { ...@@ -253,9 +240,12 @@ aic: interrupt-controller@3000 {
}; };
}; };
generic-regs@ea0184 { chip: chip-control@ea0000 {
compatible = "marvell,berlin-generic-regs", "syscon"; compatible = "marvell,berlin2-chip-ctrl";
reg = <0xea0184 0x10>; #clock-cells = <1>;
reg = <0xea0000 0x400>;
clocks = <&refclk>;
clock-names = "refclk";
}; };
apb@fc0000 { apb@fc0000 {
...@@ -305,7 +295,7 @@ uart0: serial@9000 { ...@@ -305,7 +295,7 @@ uart0: serial@9000 {
reg-shift = <2>; reg-shift = <2>;
reg-io-width = <1>; reg-io-width = <1>;
interrupts = <8>; interrupts = <8>;
clocks = <&smclk>; clocks = <&refclk>;
status = "disabled"; status = "disabled";
}; };
...@@ -315,7 +305,7 @@ uart1: serial@a000 { ...@@ -315,7 +305,7 @@ uart1: serial@a000 {
reg-shift = <2>; reg-shift = <2>;
reg-io-width = <1>; reg-io-width = <1>;
interrupts = <9>; interrupts = <9>;
clocks = <&smclk>; clocks = <&refclk>;
status = "disabled"; status = "disabled";
}; };
...@@ -325,7 +315,7 @@ uart2: serial@b000 { ...@@ -325,7 +315,7 @@ uart2: serial@b000 {
reg-shift = <2>; reg-shift = <2>;
reg-io-width = <1>; reg-io-width = <1>;
interrupts = <10>; interrupts = <10>;
clocks = <&smclk>; clocks = <&refclk>;
status = "disabled"; status = "disabled";
}; };
......
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