Skip to content

Commit

Permalink
mpc85xx: fix some dtc warnings
Browse files Browse the repository at this point in the history
Mostly missing/wrong addresses.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
  • Loading branch information
neheb authored and chunkeey committed Dec 2, 2023
1 parent 34d2964 commit 78d259e
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
reg = <0 0xffe05000 0 0x1000>;
ranges = <0x0 0x0 0x0 0xec000000 0x4000000>;

nor@0,0 {
#address-cells = <1>;
#size-cells = <1>;
nor@0 {
compatible = "cfi-flash";
reg = <0x0 0x0 0x4000000>;
bank-width = <2>;
Expand Down Expand Up @@ -158,8 +156,6 @@

switch@10 {
compatible = "qca,qca8327";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x10>;
reset-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
0x1 0x0 0x0 0xff800000 0x00010000
0x3 0x0 0x0 0xffb00000 0x00000020>;

nand@1,0 {
nand@100000000 {
compatible = "fsl,ifc-nand";
reg = <0x1 0x0 0x10000>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
reg = <0 0xffe05000 0 0x1000>;
ranges = <0x0 0x0 0x0 0xec000000 0x4000000>;

nor@0,0 {
nor@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "cfi-flash";
Expand Down
2 changes: 1 addition & 1 deletion target/linux/mpc85xx/files/arch/powerpc/boot/dts/panda.dts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
0x2 0x0 0x0 0xffa00000 0x00020000
0x3 0x0 0x0 0xffb00000 0x00020000>;

nand@1,0 {
nand@100000000 {
compatible = "fsl,p1020-fcm-nand", "fsl,elbc-fcm-nand";
reg = <0x1 0x0 0x40000>;

Expand Down
26 changes: 15 additions & 11 deletions target/linux/mpc85xx/files/arch/powerpc/boot/dts/red-15w-rev1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
0x1 0x0 0x0 0xff800000 0x00010000
0x3 0x0 0x0 0xffb00000 0x00000020>;

nand@1,0 {
nand@100000000 {
compatible = "fsl,ifc-nand";
reg = <0x1 0x0 0x10000>;

Expand Down Expand Up @@ -165,19 +165,23 @@
read-only;
};

partition@300000 {
reg = <0x300000 0x800000>;
label = "kernel";
};

partition@b00000 {
reg = <0xb00000 0x7500000>;
label = "ubi";
};

oem-partition@300000 {
reg = <0x300000 0x1900000>;
label = "sophos-os1";

compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

partition@0 {
reg = <0x0 0x800000>;
label = "kernel";
};

partition@800000 {
reg = <0x800000 0x7500000>;
label = "ubi";
};
};

oem-partition@1c00000 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,8 @@
reg = <4>;
};

switch@0 {
switch@10 {
compatible = "qca,qca8327";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x10>;

ports {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
reg = <0 0xffe05000 0 0x1000>;
ranges = <0x0 0x0 0x0 0xee000000 0x2000000>;

nor@0,0 {
nor@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "cfi-flash";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
0x1000000 0x0 0x0
0x0 0x100000>;

wifi@0,0,0 {
wifi@0,0 {
compatible = "pci168c,0033";
reg = <0x0 0 0 0 0>;
ieee80211-freq-limit = <2400000 2500000>;
Expand All @@ -173,7 +173,7 @@
0x1000000 0x0 0x0
0x0 0x100000>;

wifi@0,0,0 {
wifi@0,0 {
compatible = "pci168c,0033";
reg = <0x0 0 0 0 0>;
ieee80211-freq-limit = <5000000 6000000>;
Expand Down

0 comments on commit 78d259e

Please sign in to comment.