linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/17] MIPS: loongson32: Convert all platform devices to DT
@ 2023-07-29 13:43 Keguang Zhang
  2023-07-29 13:43 ` [PATCH 01/17] MIPS: loongson32: Get the system type from DT Keguang Zhang
                   ` (16 more replies)
  0 siblings, 17 replies; 34+ messages in thread
From: Keguang Zhang @ 2023-07-29 13:43 UTC (permalink / raw)
  To: linux-mips, devicetree, linux-kernel
  Cc: Thomas Bogendoerfer, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Keguang Zhang

Convert all platform devices to devicetree.
Remove all the obsolete code of platform device.
Adapt the common code to support devicetree.
Update Kconfig and Makefile files accordingly.
Update and rename the defconfig.

Keguang Zhang (17):
  MIPS: loongson32: Get the system type from DT
  MIPS: Modify the Loongson1 PRID_REV
  MIPS: dts: Add basic DT support for Loongson-1 boards
  MIPS: loongson32: Modify Loongson-1B/1C related Kconfig options
  MIPS: loongson32: Adapt the common code to support DT
  MIPS: loongson32: Convert platform IRQ driver to DT
  MIPS: loongson32: Convert UART platform device to DT
  MIPS: loongson32: Convert Ethernet platform device to DT
  MIPS: loongson32: Convert GPIO platform device to DT
  MIPS: loongson32: Convert GPIO LED platform device to DT
  MIPS: loongson32: Convert USB host platform device to DT
  MIPS: loongson32: Convert RTC platform device to DT
  MIPS: loongson32: Convert watchdog platform device to DT
  mips: dts: loongson1b: Add PWM timer clocksource
  MIPS: loongson32: Remove all the obsolete code of platform device
  MIPS: configs: Update and rename loongson1b_defconfig
  MIPS: configs: Update and rename loongson1c_defconfig

 arch/mips/Kconfig                             |  62 ++--
 arch/mips/boot/dts/Makefile                   |   1 +
 arch/mips/boot/dts/loongson/Makefile          |   3 +
 arch/mips/boot/dts/loongson/loongson1.dtsi    | 161 ++++++++++
 arch/mips/boot/dts/loongson/loongson1b.dtsi   | 201 ++++++++++++
 arch/mips/boot/dts/loongson/loongson1c.dtsi   | 144 +++++++++
 arch/mips/boot/dts/loongson/lsgz_1b_dev.dts   |  88 ++++++
 arch/mips/boot/dts/loongson/smartloong_1c.dts |  84 +++++
 ...gson1c_defconfig => lsgz_1b_dev_defconfig} |  71 ++++-
 ...on1b_defconfig => smartloong_1c_defconfig} |  70 ++++-
 arch/mips/include/asm/cpu-type.h              |   3 +-
 arch/mips/include/asm/cpu.h                   |   3 +-
 arch/mips/include/asm/mach-loongson32/dma.h   |  21 --
 arch/mips/include/asm/mach-loongson32/irq.h   | 107 -------
 .../include/asm/mach-loongson32/loongson1.h   |  50 ---
 arch/mips/include/asm/mach-loongson32/nand.h  |  26 --
 .../include/asm/mach-loongson32/platform.h    |  26 --
 .../include/asm/mach-loongson32/regs-mux.h    | 124 --------
 arch/mips/kernel/cpu-probe.c                  |   6 +-
 arch/mips/loongson32/Kconfig                  |  41 +--
 arch/mips/loongson32/Makefile                 |  14 +-
 arch/mips/loongson32/common/Makefile          |   6 -
 arch/mips/loongson32/common/irq.c             | 191 ------------
 arch/mips/loongson32/common/platform.c        | 287 ------------------
 arch/mips/loongson32/common/prom.c            |  42 ---
 arch/mips/loongson32/common/setup.c           |  26 --
 arch/mips/loongson32/common/time.c            |  23 --
 arch/mips/loongson32/init.c                   |  83 +++++
 arch/mips/loongson32/ls1b/Makefile            |   6 -
 arch/mips/loongson32/ls1b/board.c             |  57 ----
 arch/mips/loongson32/ls1c/Makefile            |   6 -
 arch/mips/loongson32/ls1c/board.c             |  23 --
 arch/mips/loongson32/proc.c                   |  20 ++
 33 files changed, 941 insertions(+), 1135 deletions(-)
 create mode 100644 arch/mips/boot/dts/loongson/loongson1.dtsi
 create mode 100644 arch/mips/boot/dts/loongson/loongson1b.dtsi
 create mode 100644 arch/mips/boot/dts/loongson/loongson1c.dtsi
 create mode 100644 arch/mips/boot/dts/loongson/lsgz_1b_dev.dts
 create mode 100644 arch/mips/boot/dts/loongson/smartloong_1c.dts
 rename arch/mips/configs/{loongson1c_defconfig => lsgz_1b_dev_defconfig} (59%)
 rename arch/mips/configs/{loongson1b_defconfig => smartloong_1c_defconfig} (59%)
 delete mode 100644 arch/mips/include/asm/mach-loongson32/dma.h
 delete mode 100644 arch/mips/include/asm/mach-loongson32/irq.h
 delete mode 100644 arch/mips/include/asm/mach-loongson32/loongson1.h
 delete mode 100644 arch/mips/include/asm/mach-loongson32/nand.h
 delete mode 100644 arch/mips/include/asm/mach-loongson32/platform.h
 delete mode 100644 arch/mips/include/asm/mach-loongson32/regs-mux.h
 delete mode 100644 arch/mips/loongson32/common/Makefile
 delete mode 100644 arch/mips/loongson32/common/irq.c
 delete mode 100644 arch/mips/loongson32/common/platform.c
 delete mode 100644 arch/mips/loongson32/common/prom.c
 delete mode 100644 arch/mips/loongson32/common/setup.c
 delete mode 100644 arch/mips/loongson32/common/time.c
 create mode 100644 arch/mips/loongson32/init.c
 delete mode 100644 arch/mips/loongson32/ls1b/Makefile
 delete mode 100644 arch/mips/loongson32/ls1b/board.c
 delete mode 100644 arch/mips/loongson32/ls1c/Makefile
 delete mode 100644 arch/mips/loongson32/ls1c/board.c
 create mode 100644 arch/mips/loongson32/proc.c


base-commit: f11a9967413281b49690d864795e7c5f8f8e4fda
-- 
2.39.2


^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2023-08-02 12:43 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-29 13:43 [PATCH 00/17] MIPS: loongson32: Convert all platform devices to DT Keguang Zhang
2023-07-29 13:43 ` [PATCH 01/17] MIPS: loongson32: Get the system type from DT Keguang Zhang
2023-07-29 13:43 ` [PATCH 02/17] MIPS: Modify the Loongson1 PRID_REV Keguang Zhang
2023-08-01 13:52   ` Philippe Mathieu-Daudé
2023-07-29 13:43 ` [PATCH 03/17] MIPS: dts: Add basic DT support for Loongson-1 boards Keguang Zhang
2023-07-30 17:11   ` Du Huanpeng
2023-07-31  3:06     ` Keguang Zhang
2023-07-29 13:43 ` [PATCH 04/17] MIPS: loongson32: Modify Loongson-1B/1C related Kconfig options Keguang Zhang
2023-07-29 13:43 ` [PATCH 05/17] MIPS: loongson32: Adapt the common code to support DT Keguang Zhang
2023-07-29 13:43 ` [PATCH 06/17] MIPS: loongson32: Convert platform IRQ driver to DT Keguang Zhang
2023-07-30  8:24   ` Krzysztof Kozlowski
2023-07-31  2:52     ` Keguang Zhang
2023-07-29 13:43 ` [PATCH 07/17] MIPS: loongson32: Convert UART platform device " Keguang Zhang
2023-07-30  8:26   ` Krzysztof Kozlowski
2023-07-31  3:04     ` Keguang Zhang
2023-07-31  3:32       ` Keguang Zhang
2023-07-31  6:56         ` Krzysztof Kozlowski
2023-07-29 13:43 ` [PATCH 08/17] MIPS: loongson32: Convert Ethernet " Keguang Zhang
2023-08-01 18:21   ` Serge Semin
2023-08-02  3:10     ` Keguang Zhang
2023-08-02  9:44       ` Serge Semin
2023-08-02 11:19         ` Keguang Zhang
2023-08-02 12:42           ` Serge Semin
     [not found]       ` <ZMowbm9n1PuQhPLt@rc20>
2023-08-02 11:30         ` Keguang Zhang
2023-07-29 13:43 ` [PATCH 09/17] MIPS: loongson32: Convert GPIO " Keguang Zhang
2023-07-29 13:43 ` [PATCH 10/17] MIPS: loongson32: Convert GPIO LED " Keguang Zhang
2023-07-29 13:43 ` [PATCH 11/17] MIPS: loongson32: Convert USB host " Keguang Zhang
2023-07-29 13:43 ` [PATCH 12/17] MIPS: loongson32: Convert RTC " Keguang Zhang
2023-07-29 13:43 ` [PATCH 13/17] MIPS: loongson32: Convert watchdog " Keguang Zhang
2023-07-29 13:43 ` [PATCH 14/17] mips: dts: loongson1b: Add PWM timer clocksource Keguang Zhang
2023-07-30  8:27   ` Krzysztof Kozlowski
2023-07-29 13:43 ` [PATCH 15/17] MIPS: loongson32: Remove all the obsolete code of platform device Keguang Zhang
2023-07-29 13:43 ` [PATCH 16/17] MIPS: configs: Update and rename loongson1b_defconfig Keguang Zhang
2023-07-29 13:43 ` [PATCH 17/17] MIPS: configs: Update and rename loongson1c_defconfig Keguang Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).