realtek: fix dts warnings.
Some checks are pending
Build Kernel / Build all affected Kernels (push) Waiting to run

Currently following warnings are given

dts/rtl930x.dtsi:166.4-23: Warning (reg_format):
/switchcore@1b000000/i2c@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@gmail.com>
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/20091
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Markus Stockhausen 2025-09-19 04:57:21 -04:00 committed by Robert Marko
parent 41aaebad98
commit fc9cf208c5
4 changed files with 8 additions and 0 deletions

View file

@ -202,6 +202,8 @@
switchcore@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";

View file

@ -210,6 +210,8 @@
switchcore@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";

View file

@ -160,6 +160,8 @@
switchcore@1b000000 {
compatible = "syscon", "simple-mfd";
reg = <0x1b000000 0x10000>;
#address-cells = <1>;
#size-cells = <1>;
i2c_mst1: i2c@36c {
compatible = "realtek,rtl9301-i2c";

View file

@ -190,6 +190,8 @@
switchcore@1b000000 {
compatible = "syscon", "simple-mfd";
reg = <0x1b000000 0x10000>;
#address-cells = <1>;
#size-cells = <1>;
i2c_mst1: i2c@100c {
compatible = "realtek,rtl9310-i2c";