mediatek: mt7622: various dtc warning fixes for D-Link EAGLE PRO AI
- Add missing #address-cells and #size-cells to the partition nodes. - Add missing #address-cells and #size-cells to the switch ports nodes. This patch fixes the following dtc warnings: ../dts/mt7622-dlink-eagle-pro-ai-r32-a1.dts:74.3-20: Warning (reg_format): /spi@1100d000/flash@0/partitions/partition@180000/nvmem-layout/macaddr@81:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7622-dlink-eagle-pro-ai-ax3200-a1.dtsi:289.6-36: Warning (reg_format): /spi@1100d000/flash@0/partitions/partition@2C0000/partition@0:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7622-dlink-eagle-pro-ai-ax3200-a1.dtsi:294.6-36: Warning (reg_format): /spi@1100d000/flash@0/partitions/partition@2C0000/partition@800000:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7622-dlink-eagle-pro-ai-ax3200-a1.dtsi:306.6-36: Warning (reg_format): /spi@1100d000/flash@0/partitions/partition@2FC0000/partition@0:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7622-dlink-eagle-pro-ai-ax3200-a1.dtsi:311.6-36: Warning (reg_format): /spi@1100d000/flash@0/partitions/partition@2FC0000/partition@800000:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7622-dlink-eagle-pro-ai-ax3200-a1.dtsi:90.6-16: Warning (reg_format): /ethernet@1b100000/mdio-bus/switch@1f/ports/port@4:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7622-dlink-eagle-pro-ai-ax3200-a1.dtsi:97.6-16: Warning (reg_format): /ethernet@1b100000/mdio-bus/switch@1f/ports/port@6:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7622-dlink-eagle-pro-ai-r32-a1.dts:50.4-14: Warning (reg_format): /ethernet@1b100000/mdio-bus/switch@1f/ports/port@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7622-dlink-eagle-pro-ai-r32-a1.dts:55.4-14: Warning (reg_format): /ethernet@1b100000/mdio-bus/switch@1f/ports/port@1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7622-dlink-eagle-pro-ai-m32-a1.dts:45.4-14: Warning (reg_format): /ethernet@1b100000/mdio-bus/switch@1f/ports/port@2:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7622-dlink-eagle-pro-ai-m32-a1.dts:50.4-14: Warning (reg_format): /ethernet@1b100000/mdio-bus/switch@1f/ports/port@3:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7622-dlink-eagle-pro-ai-r32-a1.dts:60.4-14: Warning (reg_format): /ethernet@1b100000/mdio-bus/switch@1f/ports/port@2:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7622-dlink-eagle-pro-ai-r32-a1.dts:65.4-14: Warning (reg_format): /ethernet@1b100000/mdio-bus/switch@1f/ports/port@3:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
This commit is contained in:
parent
5bead4a0b2
commit
6854b19202
1 changed files with 15 additions and 6 deletions
|
@ -86,6 +86,9 @@
|
||||||
reset-gpios = <&pio 54 0>;
|
reset-gpios = <&pio 54 0>;
|
||||||
|
|
||||||
ports {
|
ports {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
|
||||||
wan: port@4 {
|
wan: port@4 {
|
||||||
reg = <4>;
|
reg = <4>;
|
||||||
label = "wan";
|
label = "wan";
|
||||||
|
@ -263,6 +266,8 @@
|
||||||
read-only;
|
read-only;
|
||||||
odm_partition: nvmem-layout {
|
odm_partition: nvmem-layout {
|
||||||
compatible = "fixed-layout";
|
compatible = "fixed-layout";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -279,11 +284,13 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@2C0000 {
|
partition@2C0000 {
|
||||||
label = "Kernel1";
|
|
||||||
reg = <0x002C0000 0x02D00000>;
|
|
||||||
|
|
||||||
compatible = "denx,fit";
|
compatible = "denx,fit";
|
||||||
|
reg = <0x002C0000 0x02D00000>;
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
label = "Kernel1";
|
||||||
openwrt,cmdline-match = "boot_part=Kernel1";
|
openwrt,cmdline-match = "boot_part=Kernel1";
|
||||||
|
|
||||||
partition@0 {
|
partition@0 {
|
||||||
label = "kernel";
|
label = "kernel";
|
||||||
reg = <0x00000000 0x00800000>;
|
reg = <0x00000000 0x00800000>;
|
||||||
|
@ -296,11 +303,13 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@2FC0000 {
|
partition@2FC0000 {
|
||||||
label = "Kernel2";
|
|
||||||
reg = <0x02FC0000 0x02D00000>;
|
|
||||||
|
|
||||||
compatible = "denx,fit";
|
compatible = "denx,fit";
|
||||||
|
reg = <0x02FC0000 0x02D00000>;
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
label = "Kernel2";
|
||||||
openwrt,cmdline-match = "boot_part=Kernel2";
|
openwrt,cmdline-match = "boot_part=Kernel2";
|
||||||
|
|
||||||
partition@0 {
|
partition@0 {
|
||||||
label = "kernel";
|
label = "kernel";
|
||||||
reg = <0x00000000 0x00800000>;
|
reg = <0x00000000 0x00800000>;
|
||||||
|
|
Loading…
Reference in a new issue