From: Rustam Adilov Date: Fri, 7 Aug 2026 15:56:36 +0000 (+0500) Subject: realtek: dts: fix up the wrong soc compatibles X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76d124a18c5176cd5f03098091c4e7c4a0c8e338;p=thirdparty%2Fopenwrt.git realtek: dts: fix up the wrong soc compatibles Some rtl9302 based boards use the realtek,rtl838x-soc compatible in their device tree instead of the correct realtek,rtl9302-soc. This is also the case for main rtl931x and rtl930x device tree files. In preperation for utilizing device data in the board-realtek, fix this up now so that these boards don't end up breaking due to incorrect prom initialization caused by rtl838x-soc compatible. Signed-off-by: Rustam Adilov Link: https://github.com/openwrt/openwrt/pull/24588 Signed-off-by: Markus Stockhausen --- diff --git a/target/linux/realtek/dts/rtl9302_plasmacloud_psx10.dts b/target/linux/realtek/dts/rtl9302_plasmacloud_psx10.dts index a3791363b00..77a8f2a646e 100644 --- a/target/linux/realtek/dts/rtl9302_plasmacloud_psx10.dts +++ b/target/linux/realtek/dts/rtl9302_plasmacloud_psx10.dts @@ -4,7 +4,7 @@ #include "rtl9302_plasmacloud_common.dtsi" / { - compatible = "plasmacloud,psx10", "realtek,rtl838x-soc"; + compatible = "plasmacloud,psx10", "realtek,rtl9302-soc"; model = "Plasma Cloud PSX10"; i2c1: i2c-gpio1 { diff --git a/target/linux/realtek/dts/rtl9302_plasmacloud_psx8.dts b/target/linux/realtek/dts/rtl9302_plasmacloud_psx8.dts index 227a5dc8169..b524096e8ce 100644 --- a/target/linux/realtek/dts/rtl9302_plasmacloud_psx8.dts +++ b/target/linux/realtek/dts/rtl9302_plasmacloud_psx8.dts @@ -4,7 +4,7 @@ #include "rtl9302_plasmacloud_common.dtsi" / { - compatible = "plasmacloud,psx8", "realtek,rtl838x-soc"; + compatible = "plasmacloud,psx8", "realtek,rtl9302-soc"; model = "Plasma Cloud PSX8"; }; diff --git a/target/linux/realtek/dts/rtl9302_zyxel_xgs1210-12-a1.dts b/target/linux/realtek/dts/rtl9302_zyxel_xgs1210-12-a1.dts index e0fd7b23f03..91747a3a084 100644 --- a/target/linux/realtek/dts/rtl9302_zyxel_xgs1210-12-a1.dts +++ b/target/linux/realtek/dts/rtl9302_zyxel_xgs1210-12-a1.dts @@ -4,7 +4,7 @@ #include "rtl9302_zyxel_xgs1210-12-common.dtsi" / { - compatible = "zyxel,xgs1210-12-a1", "realtek,rtl838x-soc"; + compatible = "zyxel,xgs1210-12-a1", "realtek,rtl9302-soc"; model = "Zyxel XGS1210-12 A1 Switch"; }; diff --git a/target/linux/realtek/dts/rtl9302_zyxel_xgs1210-12-b1.dts b/target/linux/realtek/dts/rtl9302_zyxel_xgs1210-12-b1.dts index 33e97fe44e2..516a64051d1 100644 --- a/target/linux/realtek/dts/rtl9302_zyxel_xgs1210-12-b1.dts +++ b/target/linux/realtek/dts/rtl9302_zyxel_xgs1210-12-b1.dts @@ -4,7 +4,7 @@ #include "rtl9302_zyxel_xgs1210-12-common.dtsi" / { - compatible = "zyxel,xgs1210-12-b1", "realtek,rtl838x-soc"; + compatible = "zyxel,xgs1210-12-b1", "realtek,rtl9302-soc"; model = "Zyxel XGS1210-12 B1 Switch"; }; diff --git a/target/linux/realtek/dts/rtl9302_zyxel_xgs1250-12-a1.dts b/target/linux/realtek/dts/rtl9302_zyxel_xgs1250-12-a1.dts index 62ce19730ea..0302cda43e7 100644 --- a/target/linux/realtek/dts/rtl9302_zyxel_xgs1250-12-a1.dts +++ b/target/linux/realtek/dts/rtl9302_zyxel_xgs1250-12-a1.dts @@ -4,7 +4,7 @@ #include "rtl9302_zyxel_xgs1250-12-common.dtsi" / { - compatible = "zyxel,xgs1250-12-a1", "realtek,rtl838x-soc"; + compatible = "zyxel,xgs1250-12-a1", "realtek,rtl9302-soc"; model = "Zyxel XGS1250-12 A1 Switch"; }; diff --git a/target/linux/realtek/dts/rtl9302_zyxel_xgs1250-12-b1.dts b/target/linux/realtek/dts/rtl9302_zyxel_xgs1250-12-b1.dts index 6ee2dc25a6a..1042a5344a5 100644 --- a/target/linux/realtek/dts/rtl9302_zyxel_xgs1250-12-b1.dts +++ b/target/linux/realtek/dts/rtl9302_zyxel_xgs1250-12-b1.dts @@ -4,7 +4,7 @@ #include "rtl9302_zyxel_xgs1250-12-common.dtsi" / { - compatible = "zyxel,xgs1250-12-b1", "realtek,rtl838x-soc"; + compatible = "zyxel,xgs1250-12-b1", "realtek,rtl9302-soc"; model = "Zyxel XGS1250-12 B1 Switch"; }; diff --git a/target/linux/realtek/dts/rtl930x.dtsi b/target/linux/realtek/dts/rtl930x.dtsi index 10507b1d389..fc7acde349d 100644 --- a/target/linux/realtek/dts/rtl930x.dtsi +++ b/target/linux/realtek/dts/rtl930x.dtsi @@ -8,7 +8,7 @@ #address-cells = <1>; #size-cells = <1>; - compatible = "realtek,rtl838x-soc"; + compatible = "realtek,rtl930x-soc"; cpus { #address-cells = <1>; diff --git a/target/linux/realtek/dts/rtl931x.dtsi b/target/linux/realtek/dts/rtl931x.dtsi index a26bfc6d554..8fe331cc38a 100644 --- a/target/linux/realtek/dts/rtl931x.dtsi +++ b/target/linux/realtek/dts/rtl931x.dtsi @@ -9,7 +9,7 @@ #address-cells = <1>; #size-cells = <1>; - compatible = "realtek,rtl838x-soc"; + compatible = "realtek,rtl931x-soc"; cpus { #address-cells = <1>;