Skip to content

Commit

Permalink
ARM: Kirkwood: Move common portions into a kirkwood-dnskw.dtsi
Browse files Browse the repository at this point in the history
A lot of device setup is shared between DNS-320 and DNS-325, move the
definitions into a common include.

Signed-off-by: Jamie Lentin <jm@lentin.co.uk>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
  • Loading branch information
Jamie Lentin authored and Andrew Lunn committed Jul 27, 2012
1 parent 09059e9 commit 5b60c14
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 82 deletions.
42 changes: 1 addition & 41 deletions arch/arm/boot/dts/kirkwood-dns320.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/dts-v1/;

/include/ "kirkwood.dtsi"
/include/ "kirkwood-dnskw.dtsi"

/ {
model = "D-Link DNS-320 NAS (Rev A1)";
Expand Down Expand Up @@ -50,45 +50,5 @@
clock-frequency = <166666667>;
status = "okay";
};

sata@80000 {
status = "okay";
nr-ports = <2>;
};

nand@3000000 {
status = "okay";

partition@0 {
label = "u-boot";
reg = <0x0000000 0x100000>;
read-only;
};

partition@100000 {
label = "uImage";
reg = <0x0100000 0x500000>;
};

partition@600000 {
label = "ramdisk";
reg = <0x0600000 0x500000>;
};

partition@b00000 {
label = "image";
reg = <0x0b00000 0x6600000>;
};

partition@7100000 {
label = "mini firmware";
reg = <0x7100000 0xa00000>;
};

partition@7b00000 {
label = "config";
reg = <0x7b00000 0x500000>;
};
};
};
};
42 changes: 1 addition & 41 deletions arch/arm/boot/dts/kirkwood-dns325.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/dts-v1/;

/include/ "kirkwood.dtsi"
/include/ "kirkwood-dnskw.dtsi"

/ {
model = "D-Link DNS-325 NAS (Rev A1)";
Expand Down Expand Up @@ -53,45 +53,5 @@
clock-frequency = <200000000>;
status = "okay";
};

sata@80000 {
status = "okay";
nr-ports = <2>;
};

nand@3000000 {
status = "okay";

partition@0 {
label = "u-boot";
reg = <0x0000000 0x100000>;
read-only;
};

partition@100000 {
label = "uImage";
reg = <0x0100000 0x500000>;
};

partition@600000 {
label = "ramdisk";
reg = <0x0600000 0x500000>;
};

partition@b00000 {
label = "image";
reg = <0x0b00000 0x6600000>;
};

partition@7100000 {
label = "mini firmware";
reg = <0x7100000 0xa00000>;
};

partition@7b00000 {
label = "config";
reg = <0x7b00000 0x500000>;
};
};
};
};
48 changes: 48 additions & 0 deletions arch/arm/boot/dts/kirkwood-dnskw.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/include/ "kirkwood.dtsi"

/ {
model = "D-Link DNS NASes (kirkwood-based)";
compatible = "dlink,dns-kirkwood", "mrvl,kirkwood-88f6281", "mrvl,kirkwood";

ocp@f1000000 {
sata@80000 {
status = "okay";
nr-ports = <2>;
};

nand@3000000 {
status = "okay";

partition@0 {
label = "u-boot";
reg = <0x0000000 0x100000>;
read-only;
};

partition@100000 {
label = "uImage";
reg = <0x0100000 0x500000>;
};

partition@600000 {
label = "ramdisk";
reg = <0x0600000 0x500000>;
};

partition@b00000 {
label = "image";
reg = <0x0b00000 0x6600000>;
};

partition@7100000 {
label = "mini firmware";
reg = <0x7100000 0xa00000>;
};

partition@7b00000 {
label = "config";
reg = <0x7b00000 0x500000>;
};
};
};
};

0 comments on commit 5b60c14

Please sign in to comment.