mirror of https://lore.kernel.org/lkml/
 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 8/8] MIPS: Ingenic: Expand Kconfig by MACH_JZ4730
Date: Sat, 28 Nov 2026 18:20:45 +0100	[thread overview]
Message-ID: <fb77b09fe64aab86a81aa139e3dfe30d955cc07f.1795886445.git.hns@goldelico.com> (raw)
In-Reply-To: <cover.1795886445.git.hns@goldelico.com>

The jz4730 is a single core SoC by Ingenic with peripherals
like LCD controller, NAND controller, Timers, PWM, GPIOs

This SoC is used in the Skytone Alpha 400 Netbook:
https://en.wikipedia.org/wiki/Skytone_Alpha-400

Without this flag, the ingenic-pinctrl driver can not be
configured to support this SoC.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---

Notes:
    (More) support for jz4730 making use of the new MACH_JZ4730 config
    flag is in the upstreaming queue. The chip is used in the Alpha 400
    netbooks.
    
    Changes in v3:
    - Assign CPU_XBURST2 to the existing XBurst II CPU probe case.
    - Hardware readings of Config1.C2 on JZ4780, X1600, X2000 and X2600
      all returned zero. Without reliable documentation connecting this bit
      to MXU variants, no new MXU capability assumptions are introduced.
    
    Changes in v2:
    - removed the PRID_IMP_XBURST2_R2 definition and hints for an x2100 as
      there is no public reference
    - merged into single commit changing the PRID definitions and code
    - reviewed details and rewrote commit message
    
    Open Issue:
    Olivier Louvignes <olivier@mgcrea.io> pointed out that he has
    simply reused the definition of the X1830 for the X1600. This
    sets c->writecombine differently (_CACHE_CACHABLE_WA) from
    _CACHE_UNCACHED_ACCELERATED as we do here.
    Both settings appear to work but it needs expert comment which
    is the right/better one.
    
    Review: Olivier Louvignes discussed the PRID microarchitecture
    interpretation and the alternative X1600 writecombine setting.
    Paul Cercueil requested checking the X1600 MXU capabilities and
    noted the missing CPU DT binding. Hunter Laux suggested reading
    CP0 Config1.C2; the hardware measurements and their limitations
    are documented above.
    
    Additional v3 review against v7.4-rc4:
    - Preserve idle, non-coherent DMA and TLB handling for CPU_XBURST2.
    - Keep the XBurst I secondary cache geometry workarounds unchanged.

 arch/mips/ingenic/Kconfig | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/mips/ingenic/Kconfig b/arch/mips/ingenic/Kconfig
index ca9d40fe874f8..30e8e37cbbd86 100644
--- a/arch/mips/ingenic/Kconfig
+++ b/arch/mips/ingenic/Kconfig
@@ -3,6 +3,7 @@
 config MACH_INGENIC_GENERIC
 	bool
 	select MACH_INGENIC
+	select MACH_JZ4730
 	select MACH_JZ4740
 	select MACH_JZ4725B
 	select MACH_JZ4750
@@ -56,6 +57,10 @@ config MACH_JZ4725B
 	bool
 	select SYS_HAS_CPU_MIPS32_R1
 
+config MACH_JZ4730
+	bool
+	select SYS_HAS_CPU_MIPS32_R1
+
 config MACH_JZ4740
 	bool
 	select SYS_HAS_CPU_MIPS32_R1
-- 
2.56.0


      parent 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 [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-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 ` H. Nikolaus Schaller [this message]

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=fb77b09fe64aab86a81aa139e3dfe30d955cc07f.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

all inboxes | Powered by JetHome®