]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
MIPS: Loongson: Rename CPU device-tree binding
authorHuacai Chen <chenhc@lemote.com>
Mon, 15 Jun 2020 06:04:16 +0000 (14:04 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 8 Jul 2020 09:23:26 +0000 (11:23 +0200)
Loongson-3A R1/R2/R3 and Loongson-3B R1/R2 use the same package naming
in dts, and Loongson-3A R4 will be different. In cpu.h the classic 64bit
Loongson processors are called Loongson64C (C for classic, pre Loongson-
3A R4), and the new 64bit Loongson processors are called Loongson64G (G
for generic, Loongson-3A R4+). To keep consistency and make extensible,
we rename the classic "loongson3" prefix to "loongson64c", and the new
prefix for Loongson-3A R4+ will be "loongson64g".

Signed-off-by: Huacai Chen <chenhc@lemote.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Documentation/devicetree/bindings/mips/loongson/devices.yaml
arch/mips/boot/dts/loongson/Makefile
arch/mips/boot/dts/loongson/loongson64c-package.dtsi [moved from arch/mips/boot/dts/loongson/loongson3-package.dtsi with 100% similarity]
arch/mips/boot/dts/loongson/loongson64c_4core_rs780e.dts [moved from arch/mips/boot/dts/loongson/loongson3_4core_rs780e.dts with 93% similarity]
arch/mips/boot/dts/loongson/loongson64c_8core_rs780e.dts [moved from arch/mips/boot/dts/loongson/loongson3_8core_rs780e.dts with 93% similarity]
arch/mips/include/asm/mach-loongson64/builtin_dtbs.h
arch/mips/loongson64/env.c

index 74ed4e397a78e6accb56a5910f715f9fe83e14cf..0516fe2b2897cacffa2895c7d112f465c80c1f24 100644 (file)
@@ -17,11 +17,11 @@ properties:
   compatible:
     oneOf:
 
-      - description: Generic Loongson3 Quad Core + RS780E
+      - description: Classic Loongson64 Quad Core + RS780E
         items:
-          - const: loongson,loongson3-4core-rs780e
+          - const: loongson,loongson64c-4core-rs780e
 
-      - description: Generic Loongson3 Octa Core + RS780E
+      - description: Classic Loongson64 Octa Core + RS780E
         items:
-          - const: loongson,loongson3-8core-rs780e
+          - const: loongson,loongson64c-8core-rs780e
 ...
index 56d3794712623fa6f423a8cdaa7b2650f334cabc..aa5069a05da95a3de204b2284cec6bd541479251 100644 (file)
@@ -1,4 +1,4 @@
 # SPDX_License_Identifier: GPL_2.0
-dtb-$(CONFIG_MACH_LOONGSON64)  += loongson3_4core_rs780e.dtb loongson3_8core_rs780e.dtb
+dtb-$(CONFIG_MACH_LOONGSON64)  += loongson64c_4core_rs780e.dtb loongson64c_8core_rs780e.dtb
 
 obj-$(CONFIG_BUILTIN_DTB)      += $(addsuffix .o, $(dtb-y))
similarity index 93%
rename from arch/mips/boot/dts/loongson/loongson3_4core_rs780e.dts
rename to arch/mips/boot/dts/loongson/loongson64c_4core_rs780e.dts
index 6b5694ca0f9574dbbd5bdc31f0cd077d205d233b..acd53a13cc7a19352a7286a669eaf70f6bc9ac63 100644 (file)
@@ -2,7 +2,7 @@
 
 /dts-v1/;
 
-#include "loongson3-package.dtsi"
+#include "loongson64c-package.dtsi"
 #include "rs780e-pch.dtsi"
 
 / {
similarity index 93%
rename from arch/mips/boot/dts/loongson/loongson3_8core_rs780e.dts
rename to arch/mips/boot/dts/loongson/loongson64c_8core_rs780e.dts
index ffefa2f829b094ddeab23747fd4562abd29c875e..433f9c3d01b86ce507d77405c79e5a6e28b2d0af 100644 (file)
@@ -2,7 +2,7 @@
 
 /dts-v1/;
 
-#include "loongson3-package.dtsi"
+#include "loongson64c-package.dtsi"
 #include "rs780e-pch.dtsi"
 
 / {
index 853c6d80887b20061f9f805d8db0ee58887d9f46..930c8a1c1e21bc2c5fde803142df638f2e224c86 100644 (file)
@@ -8,6 +8,6 @@
 #ifndef __ASM_MACH_LOONGSON64_BUILTIN_DTBS_H_
 #define __ASM_MACH_LOONGSON64_BUILTIN_DTBS_H_
 
-extern u32 __dtb_loongson3_4core_rs780e_begin[];
-extern u32 __dtb_loongson3_8core_rs780e_begin[];
+extern u32 __dtb_loongson64c_4core_rs780e_begin[];
+extern u32 __dtb_loongson64c_8core_rs780e_begin[];
 #endif
index d11bc346bbcaf11c5a4ca4e714b94143e377dfe2..3e7caba8e788ad389a3028a5caa8b3331194356b 100644 (file)
@@ -133,11 +133,11 @@ void __init prom_init_env(void)
                case PRID_REV_LOONGSON3A_R2_1:
                case PRID_REV_LOONGSON3A_R3_0:
                case PRID_REV_LOONGSON3A_R3_1:
-                       loongson_fdt_blob = __dtb_loongson3_4core_rs780e_begin;
+                       loongson_fdt_blob = __dtb_loongson64c_4core_rs780e_begin;
                        break;
                case PRID_REV_LOONGSON3B_R1:
                case PRID_REV_LOONGSON3B_R2:
-                       loongson_fdt_blob = __dtb_loongson3_8core_rs780e_begin;
+                       loongson_fdt_blob = __dtb_loongson64c_8core_rs780e_begin;
                        break;
                default:
                        break;