[openwrt/openwrt] apm821xx: DTB: fix warnings related to sata-port warnings

LEDE Commits lede-commits at lists.infradead.org
Sat Aug 29 11:15:59 EDT 2020


chunkeey pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/90909ef4ba85084d032b30f59c0bc72e45aaf60e

commit 90909ef4ba85084d032b30f59c0bc72e45aaf60e
Author: Christian Lamparter <chunkeey at gmail.com>
AuthorDate: Wed Aug 12 18:13:47 2020 +0200

    apm821xx: DTB: fix warnings related to sata-port warnings
    
    This patch silences the following warnings:
    >netgear-wndr4700.dts:168.3-13:Warning (reg_format): /plb/sata at bffd1800/sata-port at 0:reg:property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
    >netgear-wndr4700.dts:167.26-170.4: Warning (avoid_default_addr_size):/plb/sata at bffd1800/sata-port at 0: Relying on default #address-cells value
    >netgear-wndr4700.dts:167.26-170.4: Warning (avoid_default_addr_size):/plb/sata at bffd1800/sata-port at 0: Relying on default #size-cells value
    
    Signed-off-by: Christian Lamparter <chunkeey at gmail.com>
---
 target/linux/apm821xx/dts/apm82181.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/target/linux/apm821xx/dts/apm82181.dtsi b/target/linux/apm821xx/dts/apm82181.dtsi
index 65032ba217..d17e269a55 100644
--- a/target/linux/apm821xx/dts/apm82181.dtsi
+++ b/target/linux/apm821xx/dts/apm82181.dtsi
@@ -407,6 +407,8 @@
 			dmas = <&AHBDMA0 0 0 1>;
 			dma-names = "sata-dma";
 			status = "disabled";
+			#address-cells = <1>;
+			#size-cells = <0>;
 		};
 
 		SATA1: sata at bffd1800 {
@@ -417,6 +419,8 @@
 			dmas = <&AHBDMA0 1 0 2>;
 			dma-names = "sata-dma";
 			status = "disabled";
+			#address-cells = <1>;
+			#size-cells = <0>;
 		};
 
 		MSI: ppc4xx-msi at c10000000 {



More information about the lede-commits mailing list