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>,
	"Maciej W. Rozycki" <macro@orcam.me.uk>,
	Pengpeng Hou <pengpeng@iscas.ac.cn>,
	"Christophe Leroy, David Heidelberg" <david@ixit.cz>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Takashi Iwai <tiwai@suse.de>,
	 Janusz Krzysztofik	 <jmkrzyszt@gmail.com>,
	Paul Boddie <paul@boddie.org.uk>,
	Olivier Louvignes	 <olivier@mgcrea.io>
Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org,
	 letux-kernel@openphoenux.org
Subject: Re: [PATCH v2 6/9] MIPS: generic: Add MACH_INGENIC type and compatible for X1600 and X2600
Date: Thu, 12 Nov 2026 15:09:26 +0100	[thread overview]
Message-ID: <0ec3716fb00fe25b3b03a7abc45348901fee05dd.camel@crapouillou.net> (raw)
In-Reply-To: <87a3ba40389df599efe30af922ba1564813be8f6.1794471031.git.hns@goldelico.com>

Hi Nikolaus,

Le jeudi 12 novembre 2026 à 09:10 +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.
> 
> 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>
> ---
> 
> Notes:
>     Note that there is no bindings document for any of the compatible values
>     so we don't add them.
> 
>  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
> },

I was going to say that if you add compatibles here you'll also need to add them
to the bindings documentation, but it seems we don't have one?

We have Documentation/devicetree/bindings/mips/ingenic/devices.yaml for boards
but most SoCs listed here don't have an accompanying board.

Given that it's not your mess I'm OK with the patch, but we should really fix
this at some point.

Cheers,
-Paul

>  	{}
>  };
>  
> @@ -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-12 14:09 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-12  8:10 [PATCH v2 0/9] MIPS: Ingenic: Add XBurst / XBurst II infrastructure and improve overall Ingenic SoC support H. Nikolaus Schaller
2026-11-12  8:10 ` [PATCH v2 1/9] MIPS: Kconfig: Allow user selection of BUILTIN_DTB with description H. Nikolaus Schaller
2026-11-12  8:10 ` [PATCH v2 2/9] MIPS: Ingenic: Configure CONFIG_BUILTIN_DTB=y for Ingenic based devices H. Nikolaus Schaller
2026-11-12  8:10 ` [PATCH v2 3/9] MIPS: Ingenic: Do not force BUILTIN_DTB in Kconfig H. Nikolaus Schaller
2026-11-12 13:57   ` Paul Cercueil
2026-11-12 15:30     ` H. Nikolaus Schaller
2026-11-12  8:10 ` [PATCH v2 4/9] MIPS: Ingenic: Add a new CPU_XBURST2 type H. Nikolaus Schaller
2026-11-12  8:10 ` [PATCH v2 5/9] MIPS: Ingenic: Update Ingenic XBurst implementation IDs H. Nikolaus Schaller
2026-11-12 14:03   ` Paul Cercueil
2026-11-12 15:37     ` H. Nikolaus Schaller
2026-11-12 15:49       ` Paul Cercueil
2026-11-12  8:10 ` [PATCH v2 6/9] MIPS: generic: Add MACH_INGENIC type and compatible for X1600 and X2600 H. Nikolaus Schaller
2026-11-12 14:09   ` Paul Cercueil [this message]
2026-11-12 15:41     ` H. Nikolaus Schaller
2026-11-12  8:10 ` [PATCH v2 7/9] MIPS: Ingenic: Expand Kconfig for X1600, X2000, and X2600 SoCs H. Nikolaus Schaller
2026-11-12 14:16   ` Paul Cercueil
2026-11-12 15:48     ` H. Nikolaus Schaller
2026-11-12  8:10 ` [PATCH v2 8/9] MIPS: Ingenic: Expand Kconfig by MACH_JZ4730 H. Nikolaus Schaller
2026-11-12  8:10 ` [PATCH v2 9/9] MIPS: Ingenic: Add Platform makefile and load addresses for X1600, X2000, X2600 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=0ec3716fb00fe25b3b03a7abc45348901fee05dd.camel@crapouillou.net \
    --to=paul@crapouillou.net \
    --cc=david@ixit.cz \
    --cc=gregkh@linuxfoundation.org \
    --cc=hns@goldelico.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=olivier@mgcrea.io \
    --cc=paul@boddie.org.uk \
    --cc=paulburton@kernel.org \
    --cc=pengpeng@iscas.ac.cn \
    --cc=tiwai@suse.de \
    --cc=tsbogend@alpha.franken.de \
    /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®