mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Cercueil <paul@crapouillou.net>
To: "H. Nikolaus Schaller" <hns@goldelico.com>,
	"Thomas Bogendoerfer" <tsbogend@alpha.franken.de>,
	"Paul Burton" <paulburton@kernel.org>,
	"周琰杰, 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: Re: [PATCH v3 6/8] MIPS: generic: Add MACH_INGENIC type and compatible for X1600 and X2600
Date: Mon, 30 Nov 2026 17:58:45 +0100	[thread overview]
Message-ID: <00bdfcb30861f04edd5e9ceb420de36c2c30d64d.camel@crapouillou.net> (raw)
In-Reply-To: <81319f53d94567afe8377cbd4e084c3ba085f533.1795886445.git.hns@goldelico.com>

Le samedi 28 novembre 2026 à 18:20 +0100, H. Nikolaus Schaller a écrit :
> Add support for the Ingenic/Lumissil X1600 and X2600 SoC by introducing
> new machine types.
> 
> Update the system type string mapping and add the "ingenic,x1600" and
> "ingenic,x2600" compatible strings to the DT match table in the generic
> Ingenic board support.
> 
> Extend the existing Ingenic power-management initialization to
> recognize CPU_XBURST2 as well as CPU_XBURST, preserving the previous
> initialization path after the CPU type is distinguished.
> 
> Note that we do not separate between e.g. X1600, X1600E, X1600H since
> they differ only in built-in memory size which can be handled by the
> boot loader.
> 
> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>

Reviewed-by: Paul Cercueil <paul@crapouillou.net>

Cheers,
-Paul

> ---
> 
> Notes:
>     Note that there is no bindings document for any of the compatible values
>     so we don't add them.
>     
>     Review: Paul Cercueil noted that the SoC compatible bindings are
>     incomplete, but accepted leaving their cleanup to separate work.
> 
>  arch/mips/generic/board-ingenic.c | 8 +++++++-
>  arch/mips/include/asm/bootinfo.h  | 2 ++
>  2 files changed, 9 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/mips/generic/board-ingenic.c b/arch/mips/generic/board-
> ingenic.c
> index 1f4906875e7bc..5840293913977 100644
> --- a/arch/mips/generic/board-ingenic.c
> +++ b/arch/mips/generic/board-ingenic.c
> @@ -24,6 +24,8 @@
>  static __init char *ingenic_get_system_type(unsigned long machtype)
>  {
>  	switch (machtype) {
> +	case MACH_INGENIC_X2600:
> +		return "X2600";
>  	case MACH_INGENIC_X2100:
>  		return "X2100";
>  	case MACH_INGENIC_X2000H:
> @@ -34,6 +36,8 @@ static __init char *ingenic_get_system_type(unsigned long
> machtype)
>  		return "X2000";
>  	case MACH_INGENIC_X1830:
>  		return "X1830";
> +	case MACH_INGENIC_X1600:
> +		return "X1600";
>  	case MACH_INGENIC_X1000E:
>  		return "X1000E";
>  	case MACH_INGENIC_X1000:
> @@ -146,11 +150,13 @@ static const struct of_device_id ingenic_of_match[]
> __initconst = {
>  	{ .compatible = "ingenic,jz4780", .data = (void *)MACH_INGENIC_JZ4780
> },
>  	{ .compatible = "ingenic,x1000", .data = (void *)MACH_INGENIC_X1000
> },
>  	{ .compatible = "ingenic,x1000e", .data = (void *)MACH_INGENIC_X1000E
> },
> +	{ .compatible = "ingenic,x1600", .data = (void *)MACH_INGENIC_X1600
> },
>  	{ .compatible = "ingenic,x1830", .data = (void *)MACH_INGENIC_X1830
> },
>  	{ .compatible = "ingenic,x2000", .data = (void *)MACH_INGENIC_X2000
> },
>  	{ .compatible = "ingenic,x2000e", .data = (void *)MACH_INGENIC_X2000E
> },
>  	{ .compatible = "ingenic,x2000h", .data = (void *)MACH_INGENIC_X2000H
> },
>  	{ .compatible = "ingenic,x2100", .data = (void *)MACH_INGENIC_X2100
> },
> +	{ .compatible = "ingenic,x2600", .data = (void *)MACH_INGENIC_X2600
> },
>  	{}
>  };
>  
> @@ -188,7 +194,7 @@ static const struct platform_suspend_ops ingenic_pm_ops =
> {
>  
>  static int __init ingenic_pm_init(void)
>  {
> -	if (boot_cpu_type() == CPU_XBURST) {
> +	if (boot_cpu_type() == CPU_XBURST || boot_cpu_type() == CPU_XBURST2)
> {
>  		if (IS_ENABLED(CONFIG_PM_SLEEP))
>  			suspend_set_ops(&ingenic_pm_ops);
>  		_machine_halt = ingenic_halt;
> diff --git a/arch/mips/include/asm/bootinfo.h
> b/arch/mips/include/asm/bootinfo.h
> index 2128ba9033911..f6ae983577f6f 100644
> --- a/arch/mips/include/asm/bootinfo.h
> +++ b/arch/mips/include/asm/bootinfo.h
> @@ -81,11 +81,13 @@ enum ingenic_machine_type {
>  	MACH_INGENIC_JZ4780,
>  	MACH_INGENIC_X1000,
>  	MACH_INGENIC_X1000E,
> +	MACH_INGENIC_X1600,
>  	MACH_INGENIC_X1830,
>  	MACH_INGENIC_X2000,
>  	MACH_INGENIC_X2000E,
>  	MACH_INGENIC_X2000H,
>  	MACH_INGENIC_X2100,
> +	MACH_INGENIC_X2600,
>  };
>  
>  extern char *system_type;

  reply	other threads:[~2026-11-30 16:58 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-28 17:20 [PATCH v3 0/8] MIPS: Ingenic: Add XBurst / XBurst II infrastructure and improve overall Ingenic SoC support H. Nikolaus Schaller
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-30 16:47   ` Paul Cercueil
2026-11-28 17:20 ` [PATCH v3 3/8] MIPS: Ingenic: Do not force BUILTIN_DTB in Kconfig H. Nikolaus Schaller
2026-11-30 16:48   ` Paul Cercueil
2026-11-28 17:20 ` [PATCH v3 4/8] MIPS: Ingenic: Add a new CPU_XBURST2 type H. Nikolaus Schaller
2026-11-30 16:52   ` Paul Cercueil
2026-11-28 17:20 ` [PATCH v3 5/8] MIPS: Ingenic: Update Ingenic XBurst implementation IDs H. Nikolaus Schaller
2026-11-30 16:58   ` Paul Cercueil
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-30 16:58   ` Paul Cercueil [this message]
2026-11-28 17:20 ` [PATCH v3 7/8] MIPS: Ingenic: Expand Kconfig for X1600, X2000, and X2600 SoCs H. Nikolaus Schaller
2026-11-30 17:01   ` Paul Cercueil
2026-11-28 17:20 ` [PATCH v3 8/8] MIPS: Ingenic: Expand Kconfig by MACH_JZ4730 H. Nikolaus Schaller
2026-11-30 17:05   ` Paul Cercueil
2026-11-30 19:56     ` Hunter Laux

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=00bdfcb30861f04edd5e9ceb420de36c2c30d64d.camel@crapouillou.net \
    --to=paul@crapouillou.net \
    --cc=dakr@kernel.org \
    --cc=david@ixit.cz \
    --cc=hns@goldelico.com \
    --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=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

all inboxes | Powered by JetHome®