[openwrt/openwrt] realtek: use physical addresses in soc dtsi in 5.10

LEDE Commits lede-commits at lists.infradead.org
Sat Sep 25 15:37:44 PDT 2021


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/45b2a5d840590fb9b8a4c64fba4deca51a2b0b65

commit 45b2a5d840590fb9b8a4c64fba4deca51a2b0b65
Author: INAGAKI Hiroshi <musashino.open at gmail.com>
AuthorDate: Wed Aug 11 19:06:09 2021 +0900

    realtek: use physical addresses in soc dtsi in 5.10
    
    Use physical addresses instead of virtual address in dts files.
    
    Signed-off-by: INAGAKI Hiroshi <musashino.open at gmail.com>
---
 target/linux/realtek/dts-5.10/rtl838x.dtsi | 16 ++++++++--------
 target/linux/realtek/dts-5.10/rtl930x.dtsi |  8 ++++----
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/target/linux/realtek/dts-5.10/rtl838x.dtsi b/target/linux/realtek/dts-5.10/rtl838x.dtsi
index f2824cdceb..a72addcf36 100644
--- a/target/linux/realtek/dts-5.10/rtl838x.dtsi
+++ b/target/linux/realtek/dts-5.10/rtl838x.dtsi
@@ -79,7 +79,7 @@
 		compatible = "simple-bus";
 		#address-cells = <1>;
 		#size-cells = <1>;
-		ranges = <0x0 0xb8000000 0x10000>;
+		ranges = <0x0 0x18000000 0x10000>;
 
 		intc: rtlintc at 3000 {
 			compatible = "realtek,rtl-intc";
@@ -167,9 +167,9 @@
 		status = "disabled";
 	};
 
-	pinmux: pinmux at bb001000 {
+	pinmux: pinmux at 1b001000 {
 		compatible = "pinctrl-single";
-		reg = <0xbb001000 0x4>;
+		reg = <0x1b001000 0x4>;
 
 		pinctrl-single,bit-per-mux;
 		pinctrl-single,register-width = <32>;
@@ -182,9 +182,9 @@
 	};
 
 	/* LED_GLB_CTRL */
-	pinmux_led: pinmux at bb00a000 {
+	pinmux_led: pinmux at 1b00a000 {
 		compatible = "pinctrl-single";
-		reg = <0xbb00a000 0x4>;
+		reg = <0x1b00a000 0x4>;
 
 		pinctrl-single,bit-per-mux;
 		pinctrl-single,register-width = <32>;
@@ -197,9 +197,9 @@
 		};
 	};
 
-	ethernet0: ethernet at bb00a300 {
+	ethernet0: ethernet at 1b00a300 {
 		compatible = "realtek,rtl838x-eth";
-		reg = <0xbb00a300 0x100>;
+		reg = <0x1b00a300 0x100>;
 		interrupt-parent = <&intc>;
 		interrupts = <24>;
 		#interrupt-cells = <1>;
@@ -211,7 +211,7 @@
 		};
 	};
 
-	switch0: switch at bb000000 {
+	switch0: switch at 1b000000 {
 		compatible = "realtek,rtl83xx-switch";
 
 		interrupt-parent = <&intc>;
diff --git a/target/linux/realtek/dts-5.10/rtl930x.dtsi b/target/linux/realtek/dts-5.10/rtl930x.dtsi
index d01307a35d..e78e9ebeb8 100644
--- a/target/linux/realtek/dts-5.10/rtl930x.dtsi
+++ b/target/linux/realtek/dts-5.10/rtl930x.dtsi
@@ -91,7 +91,7 @@
 		compatible = "simple-bus";
 		#address-cells = <1>;
 		#size-cells = <1>;
-		ranges = <0x0 0xb8000000 0x10000>;
+		ranges = <0x0 0x18000000 0x10000>;
 
 		intc: rtlintc at 3000 {
 			compatible = "realtek,rtl-intc";
@@ -179,9 +179,9 @@
 		};
 	};
 
-	ethernet0: ethernet at bb00a300 {
+	ethernet0: ethernet at 1b00a300 {
 		compatible = "realtek,rtl838x-eth";
-		reg = <0xbb00a300 0x100>;
+		reg = <0x1b00a300 0x100>;
 		interrupt-parent = <&intc>;
 		interrupts = <24>;
 		#interrupt-cells = <1>;
@@ -193,7 +193,7 @@
 		};
 	};
 
-	switch0: switch at bb000000 {
+	switch0: switch at 1b000000 {
 		compatible = "realtek,rtl83xx-switch";
 
 		interrupt-parent = <&intc>;



More information about the lede-commits mailing list