The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: "H. Nikolaus Schaller" <hns@goldelico.com>
To: "Thomas Bogendoerfer" <tsbogend@alpha.franken.de>,
	"Paul Cercueil" <paul@crapouillou.net>,
	"Paul Burton" <paulburton@kernel.org>,
	"H. Nikolaus Schaller" <hns@goldelico.com>,
	"周琰杰, Pengpeng Hou" <pengpeng@iscas.ac.cn>,
	"Takashi Iwai" <tiwai@suse.de>,
	"Janusz Krzysztofik" <jmkrzyszt@gmail.com>,
	"David Heidelberg" <david@ixit.cz>,
	"Paul Boddie" <paul@boddie.org.uk>,
	" Maciej W . Rozycki " <macro@orcam.me.uk>,
	"Jiaxun Yang" <jiaxun.yang@flygoat.com>,
	"Danilo Krummrich" <dakr@kernel.org>,
	"Vinod Koul" <vkoul@kernel.org>
Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org,
	letux-kernel@openphoenux.org
Subject: [PATCH v3 0/8] MIPS: Ingenic: Add XBurst / XBurst II infrastructure and improve overall Ingenic SoC support
Date: Sat, 28 Nov 2026 18:20:37 +0100	[thread overview]
Message-ID: <cover.1795886445.git.hns@goldelico.com> (raw)

PATCH V3 2026-11-28 18:20:45:
The series updates the Ingenic platform support to allow clean transitions
between bootloader-provided Device Trees and built-in fallbacks. It provides
the foundational Kconfig, PRID, and CPU-probe blocks required for newer 
Ingenic/Lumissil hardware generations (X1600, X2000, X2600) and adds JZ4730
for completeness.

Changes since V2:
- Simplify BUILTIN_DTB help text.
- Keep the verified single Fixes trailer and stable Cc in patch 3.
- Set CPU_XBURST2 in the XBurst II CPU probe case.
- Drop the undefined MACH_X1500 and MACH_X2100 selections.
- Clarify the origin of X2000 Kconfig definitions without attributing
  unsupported co-development.
- Drop the platform load-address patch from v2; the addresses are not
  established as universal for the different bootloader setups.

Testing of v3:
The updated series has been successfully merged into the Letux kernel
based on v7.4-rc4 and compile-tested.
Runtime testing on JZ4780 (CI20), X1600 (LX16) and X2000 (LX20)
showed no observed regressions.
The X2600 (LX26) boots into userspace but still exhibits stability
issues. These are being investigated separately and are outside the
intended scope of this series. Regression-free operation on X2600
has not yet been established.
Testing focused on a universal Ingenic kernel using a bootloader-provided
Device Tree, with the following configuration:

    CONFIG_MIPS_GENERIC=y
    CONFIG_MACH_GENERIC_CORE=y
    # CONFIG_MIPS_GENERIC_KERNEL is not set
    # CONFIG_BMIPS_GENERIC is not set
    CONFIG_MACH_INGENIC_GENERIC=y
    CONFIG_INGENIC_GENERIC_BOARD=y
    # CONFIG_BUILTIN_DTB is not set
    CONFIG_MIPS_NO_APPENDED_DTB=y
    # CONFIG_MIPS_ELF_APPENDED_DTB is not set
    # CONFIG_MIPS_RAW_APPENDED_DTB is not set
    # CONFIG_MIPS_CMDLINE_FROM_DTB is not set
    CONFIG_MIPS_CMDLINE_DTB_EXTEND=y

Not all combinations of built-in DTB, appended DTB and generic kernel
configuration have been tested.

Review acknowledgments:
- Paul Cercueil suggested making BUILTIN_DTB selectable and reviewed
  the Fixes trailers, DT bindings, Kconfig selections and attribution.
- Olivier Louvignes contributed more analysis of XBurst PRID values
  and raised the X1600 writecombine configuration question.
- Hunter Laux suggested checking Config1.C2 for MXU support and
  reported a separate X2600 eretnc issue which is not covered here
  because it is not directly related.
- The kernel test robot reported the build issue addressed by the
  CPU_XBURST2 type patch.
- The series was reviewed for consistency and commit messages/notes
  improved using ChatGPT.

PATCH V2 2026-11-12 09:10:31:
Changes to V1
- allow user selection of BUILTIN_DTB (suggested by Paul Cercueil <paul@crapouillou.net>)
- added the CPU_XBURTS2 type here to solve an issue reported by kernel test robot
- removed PRID_IMP_XBURST2_R2 and merged into single commit
- reviewed all PRID_IMP with data sheets and programming manuals
- added full x2600 and jz4730 definition for completeness
- added platform makefile and load address for X1600, X2000, X2600

PATCH V1 2026-10-25 20:20:55:
The series updates the Ingenic platform support to allow clean transitions
between bootloader-provided Device Trees and built-in fallbacks. It provides
the foundational Kconfig, PRID, and CPU-probe blocks required for newer 
Ingenic/Lumissil hardware generations (X1600, X2000, X2600).

The first patch corrects an inverted Kconfig condition regarding appended 
and built-in DTBs. This fix is necessary to allow configurations where 
the kernel relies entirely on a Device Tree provided dynamically by the 
bootloader instead of forcing a built-in fallback.

The remaining patches implement CPU-probe initialization, correct PRID 
mappings (including vendor-kernel values for the Ingenic A1 SoC), 
platform load addresses, Kconfig updates, and generic board match updates.

Structure of the series:
1. MIPS: Ingenic: Fix inverted MIPS_NO_APPENDED_DTB logic in Kconfig
2. MIPS: Ingenic: Add and update PRIDs for XBurst II R0 and R2
3. MIPS: Ingenic: Expand Kconfig for X1600, X2000, and X2600 SoCs
4. MIPS: Ingenic: Add cpu-probe setup for XBurst and XBurst II R2
5. MIPS: generic: Add MACH_INGENIC type and compatible for X1600
6. MIPS: Ingenic: Add Platform makefile for X1600 and X2000

Testing:
The series has been compile-tested for generic Ingenic targets. PRID 
values for jz4780, x1600, X2000, X2600 were verified on real hardware 
(CI20, LX16, LX20 and LX26 boards respectively).

Please review and consider for inclusion.


H. Nikolaus Schaller (7):
  MIPS: Kconfig: Allow user selection of BUILTIN_DTB with description
  MIPS: Ingenic: Configure CONFIG_BUILTIN_DTB=y for Ingenic based
    devices
  MIPS: Ingenic: Do not force BUILTIN_DTB in Kconfig
  MIPS: Ingenic: Update Ingenic XBurst implementation IDs
  MIPS: generic: Add MACH_INGENIC type and compatible for X1600 and
    X2600
  MIPS: Ingenic: Expand Kconfig for X1600, X2000, and X2600 SoCs
  MIPS: Ingenic: Expand Kconfig by MACH_JZ4730

周琰杰 (Zhou Yanjie) (1):
  MIPS: Ingenic: Add a new CPU_XBURST2 type

 arch/mips/Kconfig                      | 16 ++++++++--
 arch/mips/configs/ci20_defconfig       |  1 +
 arch/mips/configs/cu1000-neo_defconfig |  1 +
 arch/mips/configs/cu1830-neo_defconfig |  1 +
 arch/mips/configs/qi_lb60_defconfig    |  1 +
 arch/mips/configs/rs90_defconfig       |  1 +
 arch/mips/generic/board-ingenic.c      |  8 ++++-
 arch/mips/include/asm/bootinfo.h       |  2 ++
 arch/mips/include/asm/cpu-type.h       |  1 +
 arch/mips/include/asm/cpu.h            | 13 ++++----
 arch/mips/ingenic/Kconfig              | 41 ++++++++++++++++++++++++++
 arch/mips/kernel/cpu-probe.c           |  9 +++++-
 arch/mips/kernel/idle.c                |  1 +
 arch/mips/mm/dma-noncoherent.c         |  1 +
 arch/mips/mm/tlbex.c                   |  1 +
 15 files changed, 88 insertions(+), 10 deletions(-)

-- 
2.56.0


             reply	other threads:[~2026-11-28 17:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-28 17:20 H. Nikolaus Schaller [this message]
2026-11-28 17:20 ` [PATCH v3 1/8] MIPS: Kconfig: Allow user selection of BUILTIN_DTB with description H. Nikolaus Schaller
2026-11-28 17:20 ` [PATCH v3 2/8] MIPS: Ingenic: Configure CONFIG_BUILTIN_DTB=y for Ingenic based devices H. Nikolaus Schaller
2026-11-28 17:20 ` [PATCH v3 3/8] MIPS: Ingenic: Do not force BUILTIN_DTB in Kconfig H. Nikolaus Schaller
2026-11-28 17:20 ` [PATCH v3 4/8] MIPS: Ingenic: Add a new CPU_XBURST2 type H. Nikolaus Schaller
2026-11-28 17:20 ` [PATCH v3 5/8] MIPS: Ingenic: Update Ingenic XBurst implementation IDs H. Nikolaus Schaller
2026-11-28 17:20 ` [PATCH v3 6/8] MIPS: generic: Add MACH_INGENIC type and compatible for X1600 and X2600 H. Nikolaus Schaller
2026-11-28 17:20 ` [PATCH v3 7/8] MIPS: Ingenic: Expand Kconfig for X1600, X2000, and X2600 SoCs H. Nikolaus Schaller
2026-11-28 17:20 ` [PATCH v3 8/8] MIPS: Ingenic: Expand Kconfig by MACH_JZ4730 H. Nikolaus Schaller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1795886445.git.hns@goldelico.com \
    --to=hns@goldelico.com \
    --cc=dakr@kernel.org \
    --cc=david@ixit.cz \
    --cc=jiaxun.yang@flygoat.com \
    --cc=jmkrzyszt@gmail.com \
    --cc=letux-kernel@openphoenux.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=macro@orcam.me.uk \
    --cc=paul@boddie.org.uk \
    --cc=paul@crapouillou.net \
    --cc=paulburton@kernel.org \
    --cc=pengpeng@iscas.ac.cn \
    --cc=tiwai@suse.de \
    --cc=tsbogend@alpha.franken.de \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox