[openwrt/openwrt] realtek: fix dts warnings.
LEDE Commits
lede-commits at lists.infradead.org
Fri Sep 19 04:51:54 PDT 2025
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/fc9cf208c5ef56489dcc7664b4ba75223fc51607
commit fc9cf208c5ef56489dcc7664b4ba75223fc51607
Author: Markus Stockhausen <markus.stockhausen at gmx.de>
AuthorDate: Fri Sep 19 04:57:21 2025 -0400
realtek: fix dts warnings.
Currently following warnings are given
dts/rtl930x.dtsi:166.4-23: Warning (reg_format):
/switchcore at 1b000000/i2c at 36c:reg: property has invalid length
(8 bytes) (#address-cells == 2, #size-cells == 1)
Obviously default address-cells size is fixed to 64 bit. Align
with upstream and override address size to 32 bit.
Suggested-by: Jonas Jelonek <jelonek.jonas at gmail.com>
Signed-off-by: Markus Stockhausen <markus.stockhausen at gmx.de>
Link: https://github.com/openwrt/openwrt/pull/20091
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
target/linux/realtek/dts/rtl838x.dtsi | 2 ++
target/linux/realtek/dts/rtl839x.dtsi | 2 ++
target/linux/realtek/dts/rtl930x.dtsi | 2 ++
target/linux/realtek/dts/rtl931x.dtsi | 2 ++
4 files changed, 8 insertions(+)
diff --git a/target/linux/realtek/dts/rtl838x.dtsi b/target/linux/realtek/dts/rtl838x.dtsi
index 3b17c66c0b..ab81c49f8a 100644
--- a/target/linux/realtek/dts/rtl838x.dtsi
+++ b/target/linux/realtek/dts/rtl838x.dtsi
@@ -202,6 +202,8 @@
switchcore at 1b000000 {
compatible = "syscon", "simple-mfd";
reg = <0x1b000000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
mdio_ctrl: mdio-controller {
compatible = "realtek,rtl8380-mdio", "realtek,otto-mdio";
diff --git a/target/linux/realtek/dts/rtl839x.dtsi b/target/linux/realtek/dts/rtl839x.dtsi
index 9eb4be8af8..6b4f4821a2 100644
--- a/target/linux/realtek/dts/rtl839x.dtsi
+++ b/target/linux/realtek/dts/rtl839x.dtsi
@@ -210,6 +210,8 @@
switchcore at 1b000000 {
compatible = "syscon", "simple-mfd";
reg = <0x1b000000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
mdio_ctrl: mdio-controller {
compatible = "realtek,rtl8392-mdio", "realtek,otto-mdio";
diff --git a/target/linux/realtek/dts/rtl930x.dtsi b/target/linux/realtek/dts/rtl930x.dtsi
index 97bf6abe5d..ad06cef6cd 100644
--- a/target/linux/realtek/dts/rtl930x.dtsi
+++ b/target/linux/realtek/dts/rtl930x.dtsi
@@ -160,6 +160,8 @@
switchcore at 1b000000 {
compatible = "syscon", "simple-mfd";
reg = <0x1b000000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
i2c_mst1: i2c at 36c {
compatible = "realtek,rtl9301-i2c";
diff --git a/target/linux/realtek/dts/rtl931x.dtsi b/target/linux/realtek/dts/rtl931x.dtsi
index 352e9547f0..d7b789b9bb 100644
--- a/target/linux/realtek/dts/rtl931x.dtsi
+++ b/target/linux/realtek/dts/rtl931x.dtsi
@@ -190,6 +190,8 @@
switchcore at 1b000000 {
compatible = "syscon", "simple-mfd";
reg = <0x1b000000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
i2c_mst1: i2c at 100c {
compatible = "realtek,rtl9310-i2c";
More information about the lede-commits
mailing list