From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.119.170.32 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796057935; b=1S/FG+TiINJ6PmpK2rLveIs9Ro4t35DFv8wkHKPH58cvBh3ZYL367mZr+5dvAvYg1aSJ EX+eZBywK47BsmD7ZtymMNtpEcZXyk4xEElMSE5WRTH7tHX+5HAVRpRv7mkZgvSdKYG0A MIKfy5g8cdv7eUuwTMpY/ElsrhN3diFmztuY6/xu4cDYMoP7PEOFRJUVn3o013/BwWiK7 Q+iN1DOMBFcBD1jWQAnXJEZuhNHAPMF6/gPtEYkNLmAkKmZYg+nut9PdvC3q0f1WGBr+6 9kizX8NpRoTkYMrZ61ZTVtLS2jMUMrbXO/F+PI0lgfoT4mWNKi5Hs006ATXcqWrSynQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796057935; h=DMARC-Filter:Message-ID:Subject:From:To:Cc:Date:In-Reply-To: References:Content-Type:Content-Transfer-Encoding:MIME-Version; bh=wwC+MiJ5oXm178qhlv23ZobonldSMuqYaGAQvyBM/PM=; b=DLX9j1xtyGvZlAiq42FKktoIkffc2JIisBypFMWfkDs85EY0UN8PCKCBKpWoKKgu86M2 b5bDdSwPUiUo6JVb0ZXGAbY6RD6IYmwvyZ0wX9rCZW9PtAfq8k9eVKRnbIBq1Q2+f4y3l vscATjKRmVf3tXQvLpfRRINBEnXg9NXZn5D4hlmnQEZACIt037ujoMC+bF0817wHiOvme 0GInYmD/sPNVizaE7GMO60BLZBJoMBIyeuLKsaS1W41vVDpD8BQ4H+9iqgtzQ3EwXS3Fm lvezruTSBdGtoDmCgL5ohi9pfXz1bQ5q6m/EWcL+dFZdjRp6EPuwB1wFJP0mSzlQjOg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=crapouillou.net; spf=pass smtp.mailfrom=crapouillou.net; arc=none smtp.remote-ip=185.119.170.32 Received: from aposti.net (aposti.net [185.119.170.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3DEBD606A325; Mon, 30 Nov 2026 16:58:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3DEBD606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=crapouillou.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=crapouillou.net Message-ID: <00bdfcb30861f04edd5e9ceb420de36c2c30d64d.camel@crapouillou.net> Subject: Re: [PATCH v3 6/8] MIPS: generic: Add MACH_INGENIC type and compatible for X1600 and X2600 From: Paul Cercueil To: "H. Nikolaus Schaller" , Thomas Bogendoerfer , Paul Burton , =?UTF-8?Q?=E5=91=A8=E7=90=B0=E6=9D=B0=2C?= Pengpeng Hou , Takashi Iwai , Janusz Krzysztofik , David Heidelberg , Paul Boddie , "Maciej W . Rozycki" , Jiaxun Yang , Danilo Krummrich , Vinod Koul Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, letux-kernel@openphoenux.org Date: Mon, 30 Nov 2026 17:58:45 +0100 In-Reply-To: <81319f53d94567afe8377cbd4e084c3ba085f533.1795886445.git.hns@goldelico.com> References: <81319f53d94567afe8377cbd4e084c3ba085f533.1795886445.git.hns@goldelico.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Le samedi 28 novembre 2026 =C3=A0 18:20 +0100, H. Nikolaus Schaller a =C3= =A9crit=C2=A0: > Add support for the Ingenic/Lumissil X1600 and X2600 SoC by introducing > new machine types. >=20 > 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. >=20 > 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. >=20 > 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. >=20 > Signed-off-by: H. Nikolaus Schaller Reviewed-by: Paul Cercueil Cheers, -Paul > --- >=20 > Notes: > =C2=A0=C2=A0=C2=A0 Note that there is no bindings document for any of the= compatible values > =C2=A0=C2=A0=C2=A0 so we don't add them. > =C2=A0=C2=A0=C2=A0=20 > =C2=A0=C2=A0=C2=A0 Review: Paul Cercueil noted that the SoC compatible bi= ndings are > =C2=A0=C2=A0=C2=A0 incomplete, but accepted leaving their cleanup to sepa= rate work. >=20 > =C2=A0arch/mips/generic/board-ingenic.c | 8 +++++++- > =C2=A0arch/mips/include/asm/bootinfo.h=C2=A0 | 2 ++ > =C2=A02 files changed, 9 insertions(+), 1 deletion(-) >=20 > 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 @@ > =C2=A0static __init char *ingenic_get_system_type(unsigned long machtype) > =C2=A0{ > =C2=A0 switch (machtype) { > + case MACH_INGENIC_X2600: > + return "X2600"; > =C2=A0 case MACH_INGENIC_X2100: > =C2=A0 return "X2100"; > =C2=A0 case MACH_INGENIC_X2000H: > @@ -34,6 +36,8 @@ static __init char *ingenic_get_system_type(unsigned lo= ng > machtype) > =C2=A0 return "X2000"; > =C2=A0 case MACH_INGENIC_X1830: > =C2=A0 return "X1830"; > + case MACH_INGENIC_X1600: > + return "X1600"; > =C2=A0 case MACH_INGENIC_X1000E: > =C2=A0 return "X1000E"; > =C2=A0 case MACH_INGENIC_X1000: > @@ -146,11 +150,13 @@ static const struct of_device_id ingenic_of_match[] > __initconst =3D { > =C2=A0 { .compatible =3D "ingenic,jz4780", .data =3D (void *)MACH_INGENIC= _JZ4780 > }, > =C2=A0 { .compatible =3D "ingenic,x1000", .data =3D (void *)MACH_INGENIC_= X1000 > }, > =C2=A0 { .compatible =3D "ingenic,x1000e", .data =3D (void *)MACH_INGENIC= _X1000E > }, > + { .compatible =3D "ingenic,x1600", .data =3D (void *)MACH_INGENIC_X1600 > }, > =C2=A0 { .compatible =3D "ingenic,x1830", .data =3D (void *)MACH_INGENIC_= X1830 > }, > =C2=A0 { .compatible =3D "ingenic,x2000", .data =3D (void *)MACH_INGENIC_= X2000 > }, > =C2=A0 { .compatible =3D "ingenic,x2000e", .data =3D (void *)MACH_INGENIC= _X2000E > }, > =C2=A0 { .compatible =3D "ingenic,x2000h", .data =3D (void *)MACH_INGENIC= _X2000H > }, > =C2=A0 { .compatible =3D "ingenic,x2100", .data =3D (void *)MACH_INGENIC_= X2100 > }, > + { .compatible =3D "ingenic,x2600", .data =3D (void *)MACH_INGENIC_X2600 > }, > =C2=A0 {} > =C2=A0}; > =C2=A0 > @@ -188,7 +194,7 @@ static const struct platform_suspend_ops ingenic_pm_o= ps =3D > { > =C2=A0 > =C2=A0static int __init ingenic_pm_init(void) > =C2=A0{ > - if (boot_cpu_type() =3D=3D CPU_XBURST) { > + if (boot_cpu_type() =3D=3D CPU_XBURST || boot_cpu_type() =3D=3D CPU_XBU= RST2) > { > =C2=A0 if (IS_ENABLED(CONFIG_PM_SLEEP)) > =C2=A0 suspend_set_ops(&ingenic_pm_ops); > =C2=A0 _machine_halt =3D 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 { > =C2=A0 MACH_INGENIC_JZ4780, > =C2=A0 MACH_INGENIC_X1000, > =C2=A0 MACH_INGENIC_X1000E, > + MACH_INGENIC_X1600, > =C2=A0 MACH_INGENIC_X1830, > =C2=A0 MACH_INGENIC_X2000, > =C2=A0 MACH_INGENIC_X2000E, > =C2=A0 MACH_INGENIC_X2000H, > =C2=A0 MACH_INGENIC_X2100, > + MACH_INGENIC_X2600, > =C2=A0}; > =C2=A0 > =C2=A0extern char *system_type;