dts: optimize the dts for em_starterkit

eliminate unnecessary duplication

Signed-off-by: Wayne Ren <wei.ren@synopsys.com>
This commit is contained in:
Wayne Ren 2018-04-28 10:22:21 +08:00 committed by ruuddw
commit 99e1f849bf
7 changed files with 104 additions and 112 deletions

View file

@ -1,6 +1,38 @@
/dts-v1/;
#include <em9d.dtsi>
#include <emsk.dtsi>
/ {
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
device_type = "cpu";
compatible = "snps,arcem9d";
reg = <1>;
};
intc: arcv2-intc@0 {
compatible = "snps,arcv2-intc";
interrupt-controller;
#interrupt-cells = <2>;
};
};
iccm0: iccm@0 {
device_type = "memory";
compatible = "arc,iccm";
reg = <0x0 0x40000>;
};
dccm0: dccm@80000000 {
device_type = "memory";
compatible = "arc,dccm";
reg = <0x80000000 0x20000>;
};
};
/ {
model = "em_starterkit-em9d";

View file

@ -1,6 +1,37 @@
/dts-v1/;
#include <em11d.dtsi>
#include <emsk.dtsi>
/ {
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
device_type = "cpu";
compatible = "snps,arcem11d";
reg = <1>;
};
intc: arcv2-intc@0 {
compatible = "snps,arcv2-intc";
interrupt-controller;
#interrupt-cells = <2>;
};
};
iccm0: iccm@0 {
device_type = "memory";
compatible = "arc,iccm";
reg = <0x0 0x10000>;
};
dccm0: dccm@80000000 {
device_type = "memory";
compatible = "arc,dccm";
reg = <0x80000000 0x10000>;
};
};
/ {
model = "em_starterkit-em11d";

View file

@ -1,9 +1,40 @@
/dts-v1/;
#include <em7d.dtsi>
#include <emsk.dtsi>
/ {
model = "em_starterkit-em7";
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
device_type = "cpu";
compatible = "snps,arcem7d";
reg = <1>;
};
intc: arcv2-intc@0 {
compatible = "snps,arcv2-intc";
interrupt-controller;
#interrupt-cells = <2>;
};
};
iccm0: iccm@0 {
device_type = "memory";
compatible = "arc,iccm";
reg = <0x0 0x40000>;
};
dccm0: dccm@80000000 {
device_type = "memory";
compatible = "arc,dccm";
reg = <0x80000000 0x20000>;
};
};
/ {
model = "em_starterkit-em7d";
compatible = "snps,em_starterkit-em7d", "snps,em_starterkit";
aliases {

View file

@ -1,38 +0,0 @@
#include <emsk.dtsi>
/ {
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
device_type = "cpu";
compatible = "snps,arcem11d";
reg = <1>;
};
intc: arcv2-intc@0 {
compatible = "snps,arcv2-intc";
interrupt-controller;
#interrupt-cells = <2>;
};
};
iccm0: iccm@0 {
device_type = "memory";
compatible = "arc,iccm";
reg = <0x0 0x10000>;
};
sram0: memory@10000000 {
device_type = "memory";
compatible = "mmio-sram";
reg = <0x10000000 0x8000000>;
};
dccm0: dccm@80000000 {
device_type = "memory";
compatible = "arc,dccm";
reg = <0x80000000 0x10000>;
};
};

View file

@ -1,38 +0,0 @@
#include <emsk.dtsi>
/ {
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
device_type = "cpu";
compatible = "snps,arcem7d";
reg = <1>;
};
intc: arcv2-intc@0 {
compatible = "snps,arcv2-intc";
interrupt-controller;
#interrupt-cells = <2>;
};
};
iccm0: iccm@0 {
device_type = "memory";
compatible = "arc,iccm";
reg = <0x0 0x40000>;
};
sram0: memory@10000000 {
device_type = "memory";
compatible = "mmio-sram";
reg = <0x10000000 0x8000000>;
};
dccm0: dccm@80000000 {
device_type = "memory";
compatible = "arc,dccm";
reg = <0x80000000 0x20000>;
};
};

View file

@ -1,32 +0,0 @@
#include <emsk.dtsi>
/ {
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
device_type = "cpu";
compatible = "snps,arcem9d";
reg = <1>;
};
intc: arcv2-intc@0 {
compatible = "snps,arcv2-intc";
interrupt-controller;
#interrupt-cells = <2>;
};
};
iccm0: iccm@0 {
device_type = "memory";
compatible = "arc,iccm";
reg = <0x0 0x40000>;
};
dccm0: dccm@80000000 {
device_type = "memory";
compatible = "arc,dccm";
reg = <0x80000000 0x20000>;
};
};

View file

@ -8,6 +8,12 @@
compatible = "simple-bus";
ranges;
sram0: memory@10000000 {
device_type = "memory";
compatible = "mmio-sram";
reg = <0x10000000 0x8000000>;
};
i2c0: i2c@f0004000 {
compatible = "snps,designware-i2c";
clock-frequency = <I2C_BITRATE_STANDARD>;