We want to use the same device tree blobs in both Linux and U-Boot for ARC boards. Earlier device tree sources in U-Boot were very simplified and hadn't been updated for quite a long period of time. So this commit is the first step on the road to unified device tree blobs. First of all we re-organize device tree sources for AXS10X boards. As AXS101 and AXS103 boards consist of AXS10X motherboard and AXC001 and AXC003 cpu tiles respectively we add corresponding device tree source files: axs10x_mb.dtsi for motherboard, axc001.dtsi and axc003.dtsi for cpu tiles and axs101.dts and axs103.dts to represent actual boards. Also we delete axs10x.dts as it is no longer used. One more important change - we add timer device to ARC skeleton device tree sources as both ARC700 and ARCHS cores contain such timer. We add core_clk nodes to abilis_tb100, nsim, axc001 and axc003 device tree sources as it is referenced via phandle from timer node in common skeleton.dtsi file. Signed-off-by: Vlad Zakharov <vzakhar@synopsys.com> Reviewed-by: Simon Glass <sjg@chromium.org>master
parent
20699e6b79
commit
7c760f6021
@ -0,0 +1,19 @@ |
||||
/* |
||||
* Copyright (C) 2017 Synopsys, Inc. All rights reserved. |
||||
* |
||||
* SPDX-License-Identifier: GPL-2.0+ |
||||
*/ |
||||
|
||||
/include/ "skeleton.dtsi" |
||||
|
||||
/ { |
||||
cpu_card { |
||||
core_clk: core_clk { |
||||
#clock-cells = <0>; |
||||
compatible = "fixed-clock"; |
||||
clock-frequency = <750000000>; |
||||
u-boot,dm-pre-reloc; |
||||
}; |
||||
}; |
||||
}; |
||||
|
@ -0,0 +1,19 @@ |
||||
/* |
||||
* Copyright (C) 2017 Synopsys, Inc. All rights reserved. |
||||
* |
||||
* SPDX-License-Identifier: GPL-2.0+ |
||||
*/ |
||||
|
||||
/include/ "skeleton.dtsi" |
||||
|
||||
/ { |
||||
cpu_card { |
||||
core_clk: core_clk { |
||||
#clock-cells = <0>; |
||||
compatible = "fixed-clock"; |
||||
clock-frequency = <100000000>; |
||||
u-boot,dm-pre-reloc; |
||||
}; |
||||
}; |
||||
}; |
||||
|
@ -0,0 +1,17 @@ |
||||
/* |
||||
* Copyright (C) 2017 Synopsys, Inc. All rights reserved. |
||||
* |
||||
* SPDX-License-Identifier: GPL-2.0+ |
||||
*/ |
||||
/dts-v1/; |
||||
|
||||
/include/ "axc001.dtsi" |
||||
/include/ "axs10x_mb.dtsi" |
||||
|
||||
|
||||
/ { |
||||
chosen { |
||||
stdout-path = &uart0; |
||||
}; |
||||
}; |
||||
|
@ -0,0 +1,17 @@ |
||||
/* |
||||
* Copyright (C) 2017 Synopsys, Inc. All rights reserved. |
||||
* |
||||
* SPDX-License-Identifier: GPL-2.0+ |
||||
*/ |
||||
/dts-v1/; |
||||
|
||||
/include/ "axc003.dtsi" |
||||
/include/ "axs10x_mb.dtsi" |
||||
|
||||
|
||||
/ { |
||||
chosen { |
||||
stdout-path = &uart0; |
||||
}; |
||||
}; |
||||
|
@ -1,57 +0,0 @@ |
||||
/* |
||||
* Copyright (C) 2015 Synopsys, Inc. All rights reserved. |
||||
* |
||||
* SPDX-License-Identifier: GPL-2.0+ |
||||
*/ |
||||
/dts-v1/; |
||||
|
||||
#include "skeleton.dtsi" |
||||
|
||||
/ { |
||||
#address-cells = <1>; |
||||
#size-cells = <1>; |
||||
|
||||
aliases { |
||||
console = &uart0; |
||||
}; |
||||
|
||||
clocks { |
||||
apbclk: apbclk { |
||||
compatible = "fixed-clock"; |
||||
clock-frequency = <50000000>; |
||||
#clock-cells = <0>; |
||||
}; |
||||
}; |
||||
|
||||
uart0: serial0@e0022000 { |
||||
compatible = "snps,dw-apb-uart"; |
||||
reg = <0xe0022000 0x1000>; |
||||
reg-shift = <2>; |
||||
reg-io-width = <4>; |
||||
}; |
||||
|
||||
ethernet@e0018000 { |
||||
#interrupt-cells = <1>; |
||||
compatible = "altr,socfpga-stmmac"; |
||||
reg = < 0xe0018000 0x2000 >; |
||||
interrupts = < 25 >; |
||||
interrupt-names = "macirq"; |
||||
phy-mode = "gmii"; |
||||
snps,pbl = < 32 >; |
||||
clocks = <&apbclk>; |
||||
clock-names = "stmmaceth"; |
||||
max-speed = <100>; |
||||
}; |
||||
|
||||
ehci@0xe0040000 { |
||||
compatible = "generic-ehci"; |
||||
reg = < 0xe0040000 0x100 >; |
||||
interrupts = < 8 >; |
||||
}; |
||||
|
||||
ohci@0xe0060000 { |
||||
compatible = "generic-ohci"; |
||||
reg = < 0xe0060000 0x100 >; |
||||
interrupts = < 8 >; |
||||
}; |
||||
}; |
@ -0,0 +1,66 @@ |
||||
/* |
||||
* Copyright (C) 2017 Synopsys, Inc. All rights reserved. |
||||
* |
||||
* SPDX-License-Identifier: GPL-2.0+ |
||||
*/ |
||||
|
||||
/ { |
||||
axs10x_mb@e0000000 { |
||||
compatible = "simple-bus"; |
||||
#address-cells = <1>; |
||||
#size-cells = <1>; |
||||
ranges = <0x00000000 0xe0000000 0x10000000>; |
||||
u-boot,dm-pre-reloc; |
||||
|
||||
clocks { |
||||
compatible = "simple-bus"; |
||||
u-boot,dm-pre-reloc; |
||||
|
||||
apbclk: apbclk { |
||||
compatible = "fixed-clock"; |
||||
clock-frequency = <50000000>; |
||||
#clock-cells = <0>; |
||||
}; |
||||
|
||||
uartclk: uartclk { |
||||
compatible = "fixed-clock"; |
||||
clock-frequency = <33333333>; |
||||
#clock-cells = <0>; |
||||
u-boot,dm-pre-reloc; |
||||
}; |
||||
}; |
||||
|
||||
ethernet@18000 { |
||||
#interrupt-cells = <1>; |
||||
compatible = "altr,socfpga-stmmac"; |
||||
reg = < 0x18000 0x2000 >; |
||||
interrupts = < 25 >; |
||||
interrupt-names = "macirq"; |
||||
phy-mode = "gmii"; |
||||
snps,pbl = < 32 >; |
||||
clocks = <&apbclk>; |
||||
clock-names = "stmmaceth"; |
||||
max-speed = <100>; |
||||
}; |
||||
|
||||
ehci@0x40000 { |
||||
compatible = "generic-ehci"; |
||||
reg = < 0x40000 0x100 >; |
||||
interrupts = < 8 >; |
||||
}; |
||||
|
||||
ohci@0x60000 { |
||||
compatible = "generic-ohci"; |
||||
reg = < 0x60000 0x100 >; |
||||
interrupts = < 8 >; |
||||
}; |
||||
|
||||
uart0: serial0@22000 { |
||||
compatible = "snps,dw-apb-uart"; |
||||
reg = <0x22000 0x100>; |
||||
clocks = <&uartclk>; |
||||
reg-shift = <2>; |
||||
reg-io-width = <4>; |
||||
}; |
||||
}; |
||||
}; |
Loading…
Reference in new issue