Skip to content

Ingenic T23 (CIP 6.12.114-cip34) - #261

Merged
openipc-ai merged 78 commits into
OpenIPC:ingenic-t23-6.12from
difanz:ingenic-t23-6.12
Nov 20, 2026
Merged

openipc-ai merged 78 commits into
OpenIPC:ingenic-t23-6.12from
difanz:ingenic-t23-6.12

Conversation

@difanz

@difanz difanz commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

See #254

Adds Ingenic T23 SoC, board, peripheral, audio, and V4L2/MC media support on top of CIP Linux 6.12.114-cip34 (36226b6091bffd759f9e73ff9ce00e05b02130fc), replacing the frozen 3.10.14 vendor SDK tree and binary libimp stack with in-kernel drivers (78 commits, 179 files, +32991/−127). All changes in shared MIPS/Ingenic drivers and DT bindings are strictly gated to T23 (MACH_INGENIC_T23 / ingenic,t23-*) so non-T23 SoCs are left untouched.

Summary

  • Core SoC & platform: MACH_INGENIC_T23 + TCU watchdog restart, T23-scoped XBurst BTB invalidation + scache DMA range fixes, CGU clocks & opt-in divider/bus-stop reset handshakes, INTC, pinctrl/GPIO, system OST (ingenic-sysost), TCU PWM & WDT, RTC, PDMA (jz4780-dma), SFC v1 SPI-MEM flash controller (+ Zbit ZB25VQ64/ZB25VQ128), SSI SPI, I2C (jz4780), 8250 UART + T23 earlycon fallback, USB OTG PHY + DWC2 params, MSC/MMC (jz4740_mmc), GMAC (dwmac-ingenic), SAR ADC (IIO), eFuse (NVMEM), AES (ingenic-crypto), DTRNG (ingenic-trng), DDR register window mapping, and RISC-V coprocessor remoteproc skeleton.
  • Media (standard V4L2 / Media Controller / M2M):
    • MIPI CSI-2 receiver + D-PHY, VIC, Tiziano ISP core + 3-channel MSCA scaler/DMA capture pipeline (drivers/media/platform/ingenic/tx-isp) with UAPI metadata stats/params (include/uapi/linux/media/ingenic/t23-isp-config.h).
    • Helix hardware H.264/JPEG/MJPEG V4L2 M2M encoder (drivers/media/platform/ingenic/helix) and IPU v1.3 V4L2 M2M converter (drivers/media/platform/ingenic/ipu).
    • GPIO PTZ motor driver (drivers/media/platform/ingenic/ptz-motor.c) and I2C sensor drivers for GalaxyCore GC2053 and SmartSens SC1A4T, SC2336, and SC2337P.
    • (Provenance note: T23 ISP/CSI/VIC and Helix register programming sequences were derived from Ingenic's GPL tx-isp/avpu 3.10.14 sources and T23N board bring-up, rewritten as standalone mainline-style V4L2/MC and V4L2 M2M drivers with no SDK blobs or /proc/jz backdoors.)
  • Audio (ASoC): Ingenic T23 internal codec driver and AIC I2S / reference-capture additions.
  • OpenIPC boards & configs: t23.dtsi, t23-openipc.dts (generic 8 MiB SPI NOR board with GC2053, 24 MiB alloc-ranges CMA pool, and standard fixed-partitions layout matching u-boot-t23n-nor.bin), ja-a10.dts (T23DL), ja-a12.dts (T23N), t23-qemu*.dts profiles, DT bindings, and t23_defconfig.

Tested

  • Build & DT checks: t23_defconfig builds vmlinux.bin (4621600 bytes, < 4.5 MiB U-Boot decompression limit), 128 modules, and all 6 T23 DTBs (make ARCH=mips W=1 dtbs with 0 warnings; scripts/checkpatch.pl --strict with 0 errors across all 18 reconsolidated commits; 35 modified YAML bindings validated with PyYAML).
  • OpenIPC BOARD=t23_lite firmware: Full Buildroot image builds standard fixed-slot NOR outputs within 8 MiB flash slots (uImage.t23 1479 KB / 2048 KB, rootfs.squashfs.t23 4064 KB / 5120 KB) alongside companion branches difanz/openipc-divinus:ingenic-t23-v4l2 (PR OpenIPC/divinus#102) and difanz/openipc-firmware:ingenic/t23-6.12.
  • QEMU -M t23 E2E (run_openipc_e2e.py): Verified 2-boot u-boot-t23n-nor.bin + uImage.t23 (0x50000) + rootfs.squashfs.t23 (0x250000) flow (osmem=40M -> load_ingenic updates osmem=64M -> watchdog reboot; Boot 2 mem=64M, 24576 kB CMA, MemAvailable: 22208 kB, standard 5 cmdlinepart partitions with /dev/mtdblock3 SquashFS root and /dev/mtdblock4 JFFS2 /overlay, eth0 DHCP, aplay -l card 0, ingenic-sadc in_voltage0_scale = 0.439453125), t23-ipa 3A loop + divinus, 1920x1080 HTTP JPEG snapshots, and 15 RTSP H.264 frames decoded with ffmpeg -err_detect explode (0 errors).
  • Hardware note: Underlying T23N register sequences (SFC v1, DWC2 USB Wi-Fi, dual SC1A4T MIPI + ISP NV12 capture, Helix IRQ-driven JPEG & multi-GOP H.264 encoding, ASoC capture, TCU watchdog) were brought up on a physical T23N camera board (JA-A12) on our 4.19 port; on-board validation of this 6.12 rebase is pending next.

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

PR Summary by Qodo

Add Ingenic T23 platform and in-kernel camera support

✨ Enhancement ⚙️ Configuration changes 📝 Documentation 🕐 40+ Minutes

Grey Divider

AI Description

• Add T23 SoC, board, flash, peripheral, and audio support to the CIP 6.12 kernel.
• Replace vendor camera dependencies with V4L2 capture, ISP metadata, conversion, and hardware
 encoding drivers.
• Add Device Tree bindings and configurations for physical boards and QEMU bring-up.
Diagram

graph TD
  DT["T23 Device Trees"] --> Platform["SoC drivers"] --> Flash["NOR root filesystem"]
  DT --> Sensors["Camera sensors"] --> ISP["V4L2 ISP"] --> Encoder["Helix encoder"] --> Apps["Userspace video"]
  ISP --> Apps
  DT --> Audio["ASoC audio"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Stage platform and media integration separately
  • ➕ Smaller review units
  • ➕ Isolates boot and peripheral regressions from media-pipeline issues
  • ➖ Requires coordination across shared Device Trees and clocks
  • ➖ Delays an end-to-end usable camera kernel
2. Retain the vendor SDK media stack
  • ➕ Reuses the established vendor register programming and userspace integration
  • ➖ Preserves dependence on the frozen 3.10 kernel and binary libimp
  • ➖ Does not provide the standard V4L2 interfaces introduced here

Recommendation: The in-kernel, standard-interface approach is preferable to retaining the vendor stack. If integration can be staged, review and merge the platform foundation before the large media subsystem; preserve end-to-end QEMU testing and require 6.12 on-board validation before treating hardware bring-up as complete.

Files changed (185) +33061 / -144

Enhancement (99) +29678 / -70
board-ingenic.cAdd T23 machine restart +71/-0

Add T23 machine restart

• Registers T23 machine support and restarts through the CPM signature and TCU watchdog.

arch/mips/generic/board-ingenic.c

bootinfo.hIdentify T23 machine +1/-0

Identify T23 machine

• Adds a T23 machine identifier to MIPS boot information.

arch/mips/include/asm/bootinfo.h

tlb-r4k.cPreserve T23 firmware TLB setup +1/-1

Preserve T23 firmware TLB setup

• Adjusts TLB initialization for the T23 boot environment.

arch/mips/mm/tlb-r4k.c

ingenic-trng.cRecognize T23 TRNG +1/-0

Recognize T23 TRNG

• Adds the T23 compatible to the existing Ingenic TRNG driver.

drivers/char/hw_random/ingenic-trng.c

cgu.cHandle CGU divider handshakes +102/-15

Handle CGU divider handshakes

• Adds divider update and bus-stop coordination needed by T23 clock changes.

drivers/clk/ingenic/cgu.c

t23-cgu.cImplement T23 clock tree +620/-0

Implement T23 clock tree

• Defines T23 PLLs, muxes, gates, dividers, and their controller registration.

drivers/clk/ingenic/t23-cgu.c

ingenic-sysost.cSupport T23 system OST +3/-0

Support T23 system OST

• Adds T23 compatibility to the system timer driver.

drivers/clocksource/ingenic-sysost.c

ingenic-aes.cImplement hardware AES acceleration +859/-0

Implement hardware AES acceleration

• Adds the T23 AES driver with Crypto API integration.

drivers/crypto/ingenic-aes.c

dma-jz4780.cSupport T23 PDMA +6/-4

Support T23 PDMA

• Extends the existing Ingenic DMA engine for T23 transfers.

drivers/dma/dma-jz4780.c

i2c-jz4780.cSupport T23 I2C timing +9/-5

Support T23 I2C timing

• Adjusts the Ingenic I2C driver for T23 controller behavior.

drivers/i2c/busses/i2c-jz4780.c

ingenic-sadc.cExpose T23 SAR ADC through IIO +268/-0

Expose T23 SAR ADC through IIO

• Adds channel readings and controller registration for the T23 ADC.

drivers/iio/adc/ingenic-sadc.c

irq-ingenic.cRecognize T23 INTC +1/-0

Recognize T23 INTC

• Adds the T23 interrupt-controller compatible.

drivers/irqchip/irq-ingenic.c

gc2053.cAdd GC2053 V4L2 sensor +911/-0

Add GC2053 V4L2 sensor

• Implements GalaxyCore sensor initialization, controls, and camera subdevice operations.

drivers/media/i2c/gc2053.c

sensor-attribute.hDefine SmartSens sensor attributes +74/-0

Define SmartSens sensor attributes

• Provides shared sensor attribute definitions for the SmartSens implementations.

drivers/media/i2c/smartsens/sensor-attribute.h

sensor-common.hShare SmartSens V4L2 operations +1111/-0

Share SmartSens V4L2 operations

• Centralizes sensor allocation, clocks, register access, controls, and subdevice helpers.

drivers/media/i2c/smartsens/sensor-common.h

sensor_sc1a4t.cAdd SC1A4T sensor mode +549/-0

Add SC1A4T sensor mode

• Implements SC1A4T register programming and V4L2 sensor behavior.

drivers/media/i2c/smartsens/sensor_sc1a4t.c

sensor_sc1a4ts1.cAdd SC1A4T S1 variant +577/-0

Add SC1A4T S1 variant

• Provides the S1 variant's mode and gain configuration.

drivers/media/i2c/smartsens/sensor_sc1a4ts1.c

sensor_sc1a4ts1false.cAdd SC1A4T fallback variant +489/-0

Add SC1A4T fallback variant

• Provides fallback S1 sensor programming and frame-synchronization settings.

drivers/media/i2c/smartsens/sensor_sc1a4ts1false.c

sensor_sc2336p.cAdd SC2336P sensor mode +527/-0

Add SC2336P sensor mode

• Implements SC2336P register programming and V4L2 controls.

drivers/media/i2c/smartsens/sensor_sc2336p.c

sensor_sc2336ps1.cAdd SC2336P S1 variant +533/-0

Add SC2336P S1 variant

• Provides S1-specific SC2336P sensor configuration.

drivers/media/i2c/smartsens/sensor_sc2336ps1.c

sensor_sc2336ps1false.cAdd SC2336P fallback variant +482/-0

Add SC2336P fallback variant

• Provides fallback S1 register programming and synchronization settings.

drivers/media/i2c/smartsens/sensor_sc2336ps1false.c

sensor_sc2337p.cAdd SC2337P sensor mode +524/-0

Add SC2337P sensor mode

• Implements SC2337P register programming and V4L2 controls.

drivers/media/i2c/smartsens/sensor_sc2337p.c

sensor_sc2337ps1.cAdd SC2337P S1 variant +533/-0

Add SC2337P S1 variant

• Provides S1-specific SC2337P sensor configuration.

drivers/media/i2c/smartsens/sensor_sc2337ps1.c

sensor_sc2337ps1false.cAdd SC2337P fallback variant +482/-0

Add SC2337P fallback variant

• Provides fallback S1 register programming and synchronization settings.

drivers/media/i2c/smartsens/sensor_sc2337ps1false.c

t23-sensor.hDefine shared sensor state +87/-0

Define shared sensor state

• Declares common T23 sensor structures and interfaces.

drivers/media/i2c/smartsens/t23-sensor.h

helix_drv.cManage Helix hardware lifecycle +352/-0

Manage Helix hardware lifecycle

• Handles device resources, interrupts, and encoder hardware registration.

drivers/media/platform/ingenic/helix/helix_drv.c

helix_drv.hDefine Helix driver state +203/-0

Define Helix driver state

• Declares device and context structures shared across the encoder.

drivers/media/platform/ingenic/helix/helix_drv.h

helix_h264.cProgram H.264 encoding +527/-0

Program H.264 encoding

• Implements Helix hardware setup and frame encoding for H.264.

drivers/media/platform/ingenic/helix/helix_h264.c

helix_h264.hDeclare H.264 interfaces +23/-0

Declare H.264 interfaces

• Exports H.264 encoder operations to the Helix driver.

drivers/media/platform/ingenic/helix/helix_h264.h

helix_h264_tables.hDefine H.264 hardware tables +216/-0

Define H.264 hardware tables

• Supplies encoder tables used by Helix H.264 programming.

drivers/media/platform/ingenic/helix/helix_h264_tables.h

helix_hw.hDefine Helix register interface +263/-0

Define Helix register interface

• Collects hardware register offsets and bit definitions.

drivers/media/platform/ingenic/helix/helix_hw.h

helix_jpeg.cProgram JPEG encoding +327/-0

Program JPEG encoding

• Implements Helix JPEG and MJPEG hardware encoding support.

drivers/media/platform/ingenic/helix/helix_jpeg.c

helix_rc.cControl H.264 rate +152/-0

Control H.264 rate

• Adds encoder rate-control calculations and state updates.

drivers/media/platform/ingenic/helix/helix_rc.c

helix_rc.hDeclare rate-control state +39/-0

Declare rate-control state

• Defines rate-control structures and helper interfaces.

drivers/media/platform/ingenic/helix/helix_rc.h

helix_tables.hProvide encoder lookup tables +122/-0

Provide encoder lookup tables

• Defines shared Helix codec constants and tables.

drivers/media/platform/ingenic/helix/helix_tables.h

helix_v4l2.cExpose Helix V4L2 M2M encoder +1438/-0

Expose Helix V4L2 M2M encoder

• Adds buffer queues, formats, controls, scheduling, and userspace encoder operations.

drivers/media/platform/ingenic/helix/helix_v4l2.c

helix_vdma.cDrive Helix VDMA +134/-0

Drive Helix VDMA

• Programs the encoder's video DMA transfers.

drivers/media/platform/ingenic/helix/helix_vdma.c

helix_vdma.hDeclare VDMA helpers +45/-0

Declare VDMA helpers

• Defines Helix VDMA structures and interfaces.

drivers/media/platform/ingenic/helix/helix_vdma.h

jz_ipu_v13.cAdd V4L2 M2M image conversion +1033/-0

Add V4L2 M2M image conversion

• Implements IPU v1.3 format conversion and buffer scheduling.

drivers/media/platform/ingenic/ipu/jz_ipu_v13.c

jz_regs_v13.hDefine IPU v1.3 registers +249/-0

Define IPU v1.3 registers

• Provides hardware register and bitfield definitions.

drivers/media/platform/ingenic/ipu/jz_regs_v13.h

ptz-motor.cAdd GPIO PTZ motor control +840/-0

Add GPIO PTZ motor control

• Implements pan and tilt motor operation for camera boards.

drivers/media/platform/ingenic/ptz-motor.c

tx-isp-common.hDefine shared ISP helpers +25/-0

Define shared ISP helpers

• Provides common definitions used by ISP pipeline components.

drivers/media/platform/ingenic/tx-isp/tx-isp-common.h

tx-isp-core.cImplement ISP core programming +744/-0

Implement ISP core programming

• Configures Bayer processing and ISP operation for sensor inputs.

drivers/media/platform/ingenic/tx-isp/tx-isp-core.c

tx-isp-csi.cImplement CSI-2 receiver +168/-0

Implement CSI-2 receiver

• Programs T23 CSI and D-PHY reception for camera streams.

drivers/media/platform/ingenic/tx-isp/tx-isp-csi.c

tx-isp-device.hDefine ISP device interfaces +208/-0

Define ISP device interfaces

• Declares shared pipeline device state, subdevices, and operations.

drivers/media/platform/ingenic/tx-isp/tx-isp-device.h

tx-isp-driver.cProbe and assemble ISP pipeline +403/-0

Probe and assemble ISP pipeline

• Manages ISP hardware resources and VIC, CSI, and core child components.

drivers/media/platform/ingenic/tx-isp/tx-isp-driver.c

tx-isp-interrupt.cDispatch ISP interrupts +103/-0

Dispatch ISP interrupts

• Handles and routes pipeline interrupt events.

drivers/media/platform/ingenic/tx-isp/tx-isp-interrupt.c

tx-isp-mdns.cProgram temporal noise reduction +727/-0

Program temporal noise reduction

• Adds sensor-profile register tables and MDNS tuning logic.

drivers/media/platform/ingenic/tx-isp/tx-isp-mdns.c

tx-isp-mdns.hDeclare noise-reduction controls +62/-0

Declare noise-reduction controls

• Defines MDNS tuning interfaces and associated state.

drivers/media/platform/ingenic/tx-isp/tx-isp-mdns.h

tx-isp-meta.cExpose ISP metadata queues +486/-0

Expose ISP metadata queues

• Adds V4L2 statistics capture and parameter output nodes.

drivers/media/platform/ingenic/tx-isp/tx-isp-meta.c

tx-isp-meta.hDefine metadata node state +68/-0

Define metadata node state

• Declares ISP metadata buffers and node interfaces.

drivers/media/platform/ingenic/tx-isp/tx-isp-meta.h

tx-isp-motion.cDetect motion from ISP statistics +255/-0

Detect motion from ISP statistics

• Tracks AE-zone luminance changes and reports V4L2 motion events.

drivers/media/platform/ingenic/tx-isp/tx-isp-motion.c

tx-isp-motion.hDeclare motion detection state +39/-0

Declare motion detection state

• Defines motion tracking structures and controls.

drivers/media/platform/ingenic/tx-isp/tx-isp-motion.h

tx-isp-output.cProgram ISP output processing +742/-0

Program ISP output processing

• Configures image processing and MSCA output paths.

drivers/media/platform/ingenic/tx-isp/tx-isp-output.c

tx-isp-overlay.cAdd ISP overlays and privacy masks +649/-0

Add ISP overlays and privacy masks

• Implements mask, vector-line, and OSD bitmap output controls.

drivers/media/platform/ingenic/tx-isp/tx-isp-overlay.c

tx-isp-overlay.hDeclare ISP overlay interfaces +81/-0

Declare ISP overlay interfaces

• Defines overlay regions, buffers, and helper operations.

drivers/media/platform/ingenic/tx-isp/tx-isp-overlay.h

tx-isp-params.cApply queued ISP parameters +432/-0

Apply queued ISP parameters

• Validates and applies per-input tuning supplied through metadata buffers.

drivers/media/platform/ingenic/tx-isp/tx-isp-params.c

tx-isp-params.hDeclare ISP parameter helpers +29/-0

Declare ISP parameter helpers

• Provides parameter validation and application interfaces.

drivers/media/platform/ingenic/tx-isp/tx-isp-params.h

tx-isp-profile.cSupply ISP tuning profiles +2069/-0

Supply ISP tuning profiles

• Adds register and lookup-table profiles for T23 image processing.

drivers/media/platform/ingenic/tx-isp/tx-isp-profile.c

tx-isp-profile.hDeclare profile programming +13/-0

Declare profile programming

• Exports ISP profile setup interfaces.

drivers/media/platform/ingenic/tx-isp/tx-isp-profile.h

tx-isp-regs.hDefine ISP hardware registers +697/-0

Define ISP hardware registers

• Collects T23 ISP, VIC, CSI, and output register definitions.

drivers/media/platform/ingenic/tx-isp/tx-isp-regs.h

tx-isp-stats.cCollect ISP statistics +174/-0

Collect ISP statistics

• Reads frame statistics for V4L2 metadata and image-control clients.

drivers/media/platform/ingenic/tx-isp/tx-isp-stats.c

tx-isp-stats.hDeclare statistics collection +24/-0

Declare statistics collection

• Defines ISP statistics helper interfaces.

drivers/media/platform/ingenic/tx-isp/tx-isp-stats.h

tx-isp-vic.cConfigure video input controller +271/-0

Configure video input controller

• Implements VIC setup and camera input handling.

drivers/media/platform/ingenic/tx-isp/tx-isp-vic.c

tx-isp-video.cExpose V4L2 capture pipeline +2709/-0

Expose V4L2 capture pipeline

• Connects async sensor subdevices to media entities and main and scaled DMA capture queues.

drivers/media/platform/ingenic/tx-isp/tx-isp-video.c

v4l2-ioctl.cName T23 ISP metadata formats +9/-0

Name T23 ISP metadata formats

• Adds human-readable descriptions for the new V4L2 metadata FourCCs.

drivers/media/v4l2-core/v4l2-ioctl.c

ingenic-t23-ddr.cMap T23 DDR registers +67/-0

Map T23 DDR registers

• Provides access to the T23 DDR controller register window.

drivers/memory/ingenic-t23-ddr.c

jz4740_mmc.cSupport T23 MSC controllers +9/-1

Support T23 MSC controllers

• Extends the Ingenic MMC driver for T23 host variants.

drivers/mmc/host/jz4740_mmc.c

mtdcore.cApply detected OpenIPC partitions +24/-0

Apply detected OpenIPC partitions

• Hooks split-layout detection and root selection into MTD registration.

drivers/mtd/mtdcore.c

core.cRegister Zbit manufacturer +1/-0

Register Zbit manufacturer

• Makes Zbit SPI-NOR parts discoverable.

drivers/mtd/spi-nor/core.c

core.hDeclare Zbit flash table +1/-0

Declare Zbit flash table

• Exports the Zbit manufacturer definition.

drivers/mtd/spi-nor/core.h

zbit.cRecognize Zbit NOR flash +42/-0

Recognize Zbit NOR flash

• Adds ZB25VQ64 and ZB25VQ128 SPI-NOR device definitions.

drivers/mtd/spi-nor/zbit.c

split_layout.cDiscover OpenIPC NOR layout +185/-0

Discover OpenIPC NOR layout

• Finds adjacent uImage and SquashFS images, creates firmware subpartitions, and selects the detected root filesystem.

drivers/mtd/split_layout.c

dwmac-ingenic.cSupport T23 Ethernet MAC +179/-6

Support T23 Ethernet MAC

• Extends Ingenic DWMAC setup for T23 clocks, PHY wiring, and controller behavior.

drivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c

ingenic-efuse.cExpose T23 eFuse through NVMEM +98/-0

Expose T23 eFuse through NVMEM

• Adds read access to T23 eFuse storage.

drivers/nvmem/ingenic-efuse.c

phy-ingenic-usb.cInitialize T23 OTG PHY +121/-0

Initialize T23 OTG PHY

• Adds T23-specific USB PHY power and mode handling.

drivers/phy/ingenic/phy-ingenic-usb.c

pinctrl-ingenic.cDefine T23 pins and functions +167/-0

Define T23 pins and functions

• Adds T23 pin groups, multiplexing, and GPIO controller support.

drivers/pinctrl/pinctrl-ingenic.c

pwm-jz4740.cSupport T23 TCU PWM +5/-0

Support T23 TCU PWM

• Adds T23 compatibility to the Ingenic PWM driver.

drivers/pwm/pwm-jz4740.c

t23_coproc.hDefine coprocessor mailbox ABI +121/-0

Define coprocessor mailbox ABI

• Declares T23 coprocessor registers, mailbox layout, and driver state.

drivers/remoteproc/t23_coproc.h

t23_coproc_core.cProbe T23 RISC-V coprocessor +150/-0

Probe T23 RISC-V coprocessor

• Acquires coprocessor memory, clock, interrupt, and remoteproc resources.

drivers/remoteproc/t23_coproc_core.c

t23_coproc_rproc.cControl coprocessor lifecycle +117/-0

Control coprocessor lifecycle

• Adds firmware-loading hooks and clock, reset, and mailbox start/stop operations; firmware handshaking is not yet established.

drivers/remoteproc/t23_coproc_rproc.c

reset-ingenic-t23.cImplement T23 bus-stop resets +143/-0

Implement T23 bus-stop resets

• Coordinates reset assertions with T23 peripheral bus-stop handshakes.

drivers/reset/reset-ingenic-t23.c

rtc-jz4740.cSupport T23 RTC +8/-1

Support T23 RTC

• Extends the Ingenic RTC driver for T23 hardware.

drivers/rtc/rtc-jz4740.c

spi-ingenic-sfc.cImplement SFC v1 SPI-MEM +469/-0

Implement SFC v1 SPI-MEM

• Adds T23 serial-flash transactions through the SPI-MEM interface.

drivers/spi/spi-ingenic-sfc.c

spi-ingenic.cRecognize T23 SSI +1/-0

Recognize T23 SSI

• Adds T23 compatibility to the existing Ingenic SPI controller.

drivers/spi/spi-ingenic.c

8250_ingenic.cSupport T23 UART and early console +15/-8

Support T23 UART and early console

• Extends Ingenic 8250 setup and early console support for T23.

drivers/tty/serial/8250/8250_ingenic.c

params.cSet T23 DWC2 parameters +19/-0

Set T23 DWC2 parameters

• Adds T23-specific USB OTG controller settings.

drivers/usb/dwc2/params.c

jz4740_wdt.cRecognize T23 watchdog +1/-0

Recognize T23 watchdog

• Adds the T23 compatible to the TCU watchdog driver.

drivers/watchdog/jz4740_wdt.c

ingenic,t23-cgu.hNumber T23 clock IDs +85/-0

Number T23 clock IDs

• Defines clock identifiers shared by Device Trees and the CGU driver.

include/dt-bindings/clock/ingenic,t23-cgu.h

ingenic,t23-reset.hNumber T23 reset IDs +9/-0

Number T23 reset IDs

• Defines reset identifiers for T23 Device Tree consumers.

include/dt-bindings/reset/ingenic,t23-reset.h

split_layout.hDeclare split-layout hooks +32/-0

Declare split-layout hooks

• Exposes OpenIPC partition detection and root-selection interfaces to MTD.

include/linux/mtd/split_layout.h

root_dev.hExpose flash-root state +7/-0

Expose flash-root state

• Declares shared state used to coordinate root-device selection from flash.

include/linux/root_dev.h

t23-isp-config.hProvide namespaced ISP UAPI include +12/-0

Provide namespaced ISP UAPI include

• Makes the T23 ISP configuration ABI available under a media-specific include path.

include/uapi/linux/media/ingenic/t23-isp-config.h

t23-isp-config.hDefine ISP statistics and parameters ABI +355/-0

Define ISP statistics and parameters ABI

• Defines versioned metadata buffers, tuning structures, and ISP controls for userspace.

include/uapi/linux/t23-isp-config.h

v4l2-controls.hReserve T23 V4L2 controls +6/-0

Reserve T23 V4L2 controls

• Adds control identifiers used by the T23 ISP interface.

include/uapi/linux/v4l2-controls.h

videodev2.hDefine T23 metadata FourCCs +5/-0

Define T23 metadata FourCCs

• Adds V4L2 formats for ISP statistics and queued parameters.

include/uapi/linux/videodev2.h

do_mounts.cHonor flash-selected root device +33/-0

Honor flash-selected root device

• Prevents a conflicting root argument from overriding the detected OpenIPC flash root.

init/do_mounts.c

ingenic-t23-codec.cImplement T23 internal codec +717/-0

Implement T23 internal codec

• Adds ASoC codec controls, routing, and audio capture/playback support.

sound/soc/codecs/ingenic-t23-codec.c

jz4740-i2s.cExtend AIC for T23 audio +503/-29

Extend AIC for T23 audio

• Adds T23 I2S behavior and a reference-capture loopback DAI.

sound/soc/jz4740/jz4740-i2s.c

Bug fix (2) +42 / -4
c-r4k.cInvalidate XBurst branch targets +3/-0

Invalidate XBurst branch targets

• Invalidates the branch target buffer after instruction-cache maintenance.

arch/mips/mm/c-r4k.c

sc-mips.cCorrect secondary-cache DMA handling +39/-4

Correct secondary-cache DMA handling

• Orders cache maintenance against device access, optimizes cache-sized ranges, and clears XBurst ECC state.

arch/mips/mm/sc-mips.c

Documentation (37) +1106 / -67
ingenic,cgu.yamlDescribe T23 CGU clocks +24/-14

Describe T23 CGU clocks

• Extends the CGU schema for the T23 clock controller and its clock inputs.

Documentation/devicetree/bindings/clock/ingenic,cgu.yaml

ingenic,t23-aes.yamlBind the T23 AES engine +44/-0

Bind the T23 AES engine

• Defines the AES engine's Device Tree resources and compatible.

Documentation/devicetree/bindings/crypto/ingenic,t23-aes.yaml

ingenic,dma.yamlAllow T23 PDMA +4/-0

Allow T23 PDMA

• Adds the T23 compatible to the Ingenic DMA binding.

Documentation/devicetree/bindings/dma/ingenic,dma.yaml

ingenic,i2c.yamlDescribe T23 I2C +7/-2

Describe T23 I2C

• Extends the I2C controller binding for T23 hardware.

Documentation/devicetree/bindings/i2c/ingenic,i2c.yaml

ingenic,adc.yamlDescribe T23 ADC +4/-2

Describe T23 ADC

• Adds T23 SAR ADC compatibility to the ADC binding.

Documentation/devicetree/bindings/iio/adc/ingenic,adc.yaml

ingenic,intc.yamlAllow T23 interrupt controller +3/-1

Allow T23 interrupt controller

• Recognizes the T23 INTC compatible.

Documentation/devicetree/bindings/interrupt-controller/ingenic,intc.yaml

galaxycore,gc2053.yamlBind the GC2053 camera sensor +87/-0

Bind the GC2053 camera sensor

• Documents sensor clocks, supplies, GPIOs, and video endpoint wiring.

Documentation/devicetree/bindings/media/i2c/galaxycore,gc2053.yaml

smartsens,sc2336.yamlBind SmartSens camera sensors +92/-0

Bind SmartSens camera sensors

• Describes SmartSens sensor resources and camera endpoint connections.

Documentation/devicetree/bindings/media/i2c/smartsens,sc2336.yaml

ingenic,t23-helix.yamlBind Helix video encoder +68/-0

Bind Helix video encoder

• Defines the T23 encoder's registers, interrupt, clocks, and reset resources.

Documentation/devicetree/bindings/media/ingenic,t23-helix.yaml

ingenic,t23-ipu.yamlBind T23 IPU +55/-0

Bind T23 IPU

• Documents the memory-to-memory image processor and its hardware resources.

Documentation/devicetree/bindings/media/ingenic,t23-ipu.yaml

ingenic,t23-isp.yamlBind T23 camera pipeline +144/-0

Bind T23 camera pipeline

• Describes ISP, CSI, and VIC resources and camera input endpoints.

Documentation/devicetree/bindings/media/ingenic,t23-isp.yaml

ingenic,t23-motor.yamlBind GPIO PTZ motors +63/-0

Bind GPIO PTZ motors

• Defines the GPIO-controlled pan and tilt motor configuration.

Documentation/devicetree/bindings/media/ingenic,t23-motor.yaml

ingenic,t23-ddr.yamlBind T23 DDR register window +40/-0

Bind T23 DDR register window

• Documents the DDR controller register resource.

Documentation/devicetree/bindings/memory-controllers/ingenic,t23-ddr.yaml

syscon.yamlRecognize T23 syscon +2/-0

Recognize T23 syscon

• Permits the T23 system-controller compatible.

Documentation/devicetree/bindings/mfd/syscon.yaml

devices.yamlRegister T23 board compatibles +22/-0

Register T23 board compatibles

• Adds T23 SoC and camera-board compatible strings.

Documentation/devicetree/bindings/mips/ingenic/devices.yaml

ingenic,mmc.yamlDescribe T23 MSC variants +15/-2

Describe T23 MSC variants

• Extends the Ingenic MMC schema for T23 controller variants.

Documentation/devicetree/bindings/mmc/ingenic,mmc.yaml

ingenic,mac.yamlDescribe T23 GMAC wiring +38/-9

Describe T23 GMAC wiring

• Adds T23 Ethernet compatibility and its clock and PHY configuration.

Documentation/devicetree/bindings/net/ingenic,mac.yaml

snps,dwmac.yamlAllow T23 DWMAC compatible +1/-0

Allow T23 DWMAC compatible

• Adds the T23 MAC to the common DWMAC schema.

Documentation/devicetree/bindings/net/snps,dwmac.yaml

ingenic,jz4780-efuse.yamlBind T23 eFuse +4/-0

Bind T23 eFuse

• Extends the Ingenic eFuse binding to T23.

Documentation/devicetree/bindings/nvmem/ingenic,jz4780-efuse.yaml

ingenic,phy-usb.yamlDescribe T23 USB PHY +27/-2

Describe T23 USB PHY

• Adds the T23 OTG PHY compatible and relevant resources.

Documentation/devicetree/bindings/phy/ingenic,phy-usb.yaml

ingenic,pinctrl.yamlAllow T23 pin controller +2/-0

Allow T23 pin controller

• Adds the T23 pinctrl compatible.

Documentation/devicetree/bindings/pinctrl/ingenic,pinctrl.yaml

ingenic,vpu.yamlDescribe T23 coprocessor +75/-17

Describe T23 coprocessor

• Extends the remoteproc schema for the T23 RISC-V coprocessor and mailbox resources.

Documentation/devicetree/bindings/remoteproc/ingenic,vpu.yaml

ingenic,t23-reset.yamlBind T23 reset controller +27/-0

Bind T23 reset controller

• Defines the reset-controller compatible and reset cells.

Documentation/devicetree/bindings/reset/ingenic,t23-reset.yaml

ingenic,trng.yamlDescribe T23 TRNG +10/-2

Describe T23 TRNG

• Adds T23 compatibility to the Ingenic random-number generator binding.

Documentation/devicetree/bindings/rng/ingenic,trng.yaml

ingenic,rtc.yamlAllow T23 RTC +4/-0

Allow T23 RTC

• Adds the T23 RTC compatible.

Documentation/devicetree/bindings/rtc/ingenic,rtc.yaml

ingenic,uart.yamlDescribe T23 UART +4/-2

Describe T23 UART

• Extends the Ingenic UART binding for T23.

Documentation/devicetree/bindings/serial/ingenic,uart.yaml

ingenic,aic.yamlDescribe T23 AIC audio +36/-6

Describe T23 AIC audio

• Adds T23 AIC clock, DMA, and DAI binding details.

Documentation/devicetree/bindings/sound/ingenic,aic.yaml

ingenic,codec.yamlBind T23 internal codec +20/-3

Bind T23 internal codec

• Extends the codec schema for the T23 integrated audio codec.

Documentation/devicetree/bindings/sound/ingenic,codec.yaml

ingenic,t23-aic-loop.yamlBind AIC loopback capture +49/-0

Bind AIC loopback capture

• Defines the companion AIC phandle and receive DMA for reference capture.

Documentation/devicetree/bindings/sound/ingenic,t23-aic-loop.yaml

ingenic,spi.yamlAllow T23 SSI +4/-0

Allow T23 SSI

• Adds the T23 SPI controller compatible.

Documentation/devicetree/bindings/spi/ingenic,spi.yaml

ingenic,t23-sfc.yamlBind T23 serial flash controller +64/-0

Bind T23 serial flash controller

• Documents SFC v1 resources and SPI flash child nodes.

Documentation/devicetree/bindings/spi/ingenic,t23-sfc.yaml

ingenic,sysost.yamlDescribe T23 system OST +8/-3

Describe T23 system OST

• Extends the system timer binding for T23.

Documentation/devicetree/bindings/timer/ingenic,sysost.yaml

ingenic,tcu.yamlDescribe T23 TCU +15/-2

Describe T23 TCU

• Adds T23 timer-counter resources and compatibility.

Documentation/devicetree/bindings/timer/ingenic,tcu.yaml

dwc2.yamlAllow T23 DWC2 +4/-0

Allow T23 DWC2

• Recognizes the T23 USB controller compatible.

Documentation/devicetree/bindings/usb/dwc2.yaml

vendor-prefixes.yamlRegister camera vendor prefixes +6/-0

Register camera vendor prefixes

• Adds Jooan, OpenIPC, and SmartSens vendor prefixes.

Documentation/devicetree/bindings/vendor-prefixes.yaml

meta-formats.rstIndex T23 ISP metadata formats +1/-0

Index T23 ISP metadata formats

• Links the T23 ISP metadata format documentation from the V4L2 index.

Documentation/userspace-api/media/v4l/meta-formats.rst

metafmt-t23-isp.rstDocument ISP metadata ABI +33/-0

Document ISP metadata ABI

• Explains the T23 statistics and parameter buffer formats exposed to V4L2 clients.

Documentation/userspace-api/media/v4l/metafmt-t23-isp.rst

Other (47) +2235 / -3
MakefileBuild T23 board DTBs +3/-0

Build T23 board DTBs

• Adds the physical and QEMU T23 Device Trees to MIPS DTB builds.

arch/mips/boot/dts/ingenic/Makefile

ja-a10.dtsDescribe JA-A10 camera board +308/-0

Describe JA-A10 camera board

• Configures the T23DL board's flash, peripherals, and camera connections.

arch/mips/boot/dts/ingenic/ja-a10.dts

ja-a12.dtsDescribe JA-A12 camera board +346/-0

Describe JA-A12 camera board

• Configures the T23N board, including its camera, audio, and peripheral wiring.

arch/mips/boot/dts/ingenic/ja-a12.dts

t23-openipc.dtsDescribe generic OpenIPC T23 board +281/-0

Describe generic OpenIPC T23 board

• Defines the generic SPI-NOR camera board, GC2053, and reusable CMA allocation.

arch/mips/boot/dts/ingenic/t23-openipc.dts

t23-qemu-gc2053.dtsConfigure QEMU GC2053 profile +48/-0

Configure QEMU GC2053 profile

• Selects the GC2053 camera configuration for a T23 QEMU board.

arch/mips/boot/dts/ingenic/t23-qemu-gc2053.dts

t23-qemu-sc2336.dtsConfigure QEMU SC2336 profile +48/-0

Configure QEMU SC2336 profile

• Selects the SC2336 camera configuration for a T23 QEMU board.

arch/mips/boot/dts/ingenic/t23-qemu-sc2336.dts

t23-qemu.dtsDescribe base T23 QEMU board +28/-0

Describe base T23 QEMU board

• Derives from JA-A12 and enables the QEMU console and Ethernet PHY.

arch/mips/boot/dts/ingenic/t23-qemu.dts

t23.dtsiDescribe T23 SoC hardware +617/-0

Describe T23 SoC hardware

• Defines shared T23 clocks, interrupts, buses, media engines, and other on-chip devices.

arch/mips/boot/dts/ingenic/t23.dtsi

t23_defconfigAdd T23 kernel configuration +232/-0

Add T23 kernel configuration

• Selects the platform, storage, network, media, and audio features needed for T23 firmware.

arch/mips/configs/t23_defconfig

KconfigEnable T23 machine selection +12/-0

Enable T23 machine selection

• Introduces the T23 machine option and its MIPS platform dependencies.

arch/mips/ingenic/Kconfig

KconfigEnable Ingenic TRNG selection +2/-2

Enable Ingenic TRNG selection

• Adjusts random-number generator configuration for T23 support.

drivers/char/hw_random/Kconfig

KconfigConfigure T23 CGU driver +10/-0

Configure T23 CGU driver

• Adds a build option for T23 clock generation.

drivers/clk/ingenic/Kconfig

Makefi...

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (9) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Action required

1. USB initialization selects the wrong width ✓ Resolved
Description
t23_usb_phy_init() clears USBPCR1_WORD_IF_16BIT immediately after stating that it is selecting a
16-bit UTMI bus. With the T23 controller configured for 16-bit UTMI, this selects the opposite PHY
interface width and can prevent USB communication.

2. Quad flash transfers lack two data pins 🐞 Bug ≡ Correctness
Description
t23-openipc.dts selects pins_sfc while advertising four-bit SPI transfers for its NOR flash.
That pin group omits the additional pins in pins_sfc_quad, so quad reads or writes selected by the
SFC path cannot use all four data lines on this board.
Code

arch/mips/boot/dts/ingenic/t23-openipc.dts[123]

+	pinctrl-0 = <&pins_sfc>;
Evidence
The board requests four-bit transfers but selects the standard pin group; the SoC defines a separate
group containing the extra quad pins.

arch/mips/boot/dts/ingenic/t23-openipc.dts[121-132]
arch/mips/boot/dts/ingenic/t23.dtsi[215-225]
drivers/spi/spi-ingenic-sfc.c[141-155]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The board enables quad SPI transfers without muxing the two extra data pins.
## Fix Focus Areas
- arch/mips/boot/dts/ingenic/t23-openipc.dts[121-132]
- arch/mips/boot/dts/ingenic/t23.dtsi[215-225]
## Recommended Fix
Select pins_sfc_quad for this SFC node, or restrict the advertised SPI bus widths to the pins actually muxed.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended

3. Encoded video ignores requested crops 🐞 Bug ≡ Correctness
Description
vidioc_s_selection() stores a crop rectangle, but the Helix encode worker derives its input
dimensions from the full source format rather than ctx->crop. When an application sets a smaller
output crop, both H.264 and JPEG encoding still process the full frame despite the successful
selection call.
Code

drivers/media/platform/ingenic/helix/helix_v4l2.c[1033]

+	ctx->crop = s->r;
Evidence
The selection handler stores the rectangle, while the worker passes full-format dimensions to input
preparation and both encoders.

drivers/media/platform/ingenic/helix/helix_v4l2.c[1026-1034]
drivers/media/platform/ingenic/helix/helix_v4l2.c[682-685]
drivers/media/platform/ingenic/helix/helix_v4l2.c[730-749]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The encoder accepts crop selections but encodes the uncropped source frame.
## Fix Focus Areas
- drivers/media/platform/ingenic/helix/helix_v4l2.c[1015-1034]
- drivers/media/platform/ingenic/helix/helix_v4l2.c[682-749]
## Recommended Fix
Apply the selected rectangle consistently to input addressing, visible dimensions and encoded output, or reject non-full-frame selections until cropping is supported.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


4. Voltage readings are four times too high 🐞 Bug ≡ Correctness
Description
ingenic_sadc_read_raw() reports a scale of 1800 / 1024 for raw conversion data that the driver
defines as 12-bit. For values across that 12-bit range, consumers converting raw readings to
millivolts calculate four times the voltage implied by the configured 1.8 V reference.
Code

drivers/iio/adc/ingenic-sadc.c[R142-144]

+		*val = 1800;
+		*val2 = 1024;
+		return IIO_VAL_FRACTIONAL;
Evidence
The driver labels and masks conversion data as 12-bit but divides the 1.8 V scale by 1024.

drivers/iio/adc/ingenic-sadc.c[43-44]
drivers/iio/adc/ingenic-sadc.c[113-116]
drivers/iio/adc/ingenic-sadc.c[141-144]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The reported ADC voltage scale uses a 10-bit denominator for 12-bit conversion data.
## Fix Focus Areas
- drivers/iio/adc/ingenic-sadc.c[43-44]
- drivers/iio/adc/ingenic-sadc.c[141-144]
## Recommended Fix
Report the scale as 1800/4096 for the 12-bit raw range, verifying the reference voltage used by this controller.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


5. Speed changes can disrupt motor timing 🐞 Bug ☼ Reliability
Description
motor_timer_callback() reads the 64-bit step_interval after releasing mdev->lock, while the
speed-control handler writes it under that lock. On the target's 32-bit MIPS CPU, a speed change
concurrent with a timer tick can produce a torn interval and schedule the next motor step
incorrectly.
Code

drivers/media/platform/ingenic/ptz-motor.c[R269-271]

+
+	if (running) {
+		hrtimer_forward_now(timer, mdev->step_interval);
Evidence
The callback unlocks before reading the interval; the speed control modifies that same interval
under the lock.

drivers/media/platform/ingenic/ptz-motor.c[260-274]
drivers/media/platform/ingenic/ptz-motor.c[500-504]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The timer reads a concurrently modified 64-bit interval without synchronization on 32-bit hardware.
## Fix Focus Areas
- drivers/media/platform/ingenic/ptz-motor.c[260-274]
- drivers/media/platform/ingenic/ptz-motor.c[500-504]
## Recommended Fix
Copy step_interval to a local ktime_t while holding mdev->lock, then use that snapshot for hrtimer_forward_now().

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


View review recommended (5)
6. Two-lane sensor descriptions fail checks 🐞 Bug ≡ Correctness
Description
The GC2053 and SC2336 bindings describe one- and two-lane tuples with oneOf but do not limit
either alternative's item count. A `` endpoint also satisfies the one-lane tuple's specified first
item, so it matches both alternatives and fails oneOf, including for the bindings' own examples
and supplied board endpoints.
Code

Documentation/devicetree/bindings/media/i2c/galaxycore,gc2053.yaml[R43-49]

+          data-lanes:
+            oneOf:
+              - items:
+                  - const: 1
+              - items:
+                  - const: 1
+                  - const: 2
Evidence
Both new schemas use overlapping tuple alternatives, and their examples and board endpoints supply
the overlapping two-lane value.

Documentation/devicetree/bindings/media/i2c/galaxycore,gc2053.yaml[43-50]
Documentation/devicetree/bindings/media/i2c/smartsens,sc2336.yaml[48-55]
Documentation/devicetree/bindings/media/i2c/galaxycore,gc2053.yaml[79-82]
arch/mips/boot/dts/ingenic/t23-openipc.dts[224-225]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Both sensor schemas let two-lane arrays match both oneOf alternatives.
## Fix Focus Areas
- Documentation/devicetree/bindings/media/i2c/galaxycore,gc2053.yaml[43-50]
- Documentation/devicetree/bindings/media/i2c/smartsens,sc2336.yaml[48-55]
## Recommended Fix
Give each alternative an exact length using minItems and maxItems, then run binding-example and DT schema validation for both sensors.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


7. Failed ISP removal loses DMA ownership 🐞 Bug ☼ Reliability
Description
tx_isp_core_remove() ignores a failed core_stream_off() and frees core even when
t23_isp_stats_free() refuses to free its active DMA buffer. If the reset fails while statistics
DMA is active, removal loses the buffer's owner and continues tearing down the parent device without
a later way to release that allocation.
Code

drivers/media/platform/ingenic/tx-isp/tx-isp-core.c[R734-740]

+		core_stream_off(&core->sd);
+		if (t23_isp_stats_free(&core->stats))
+			dev_err(&pdev->dev,
+				"ISP statistics memory retained: DMA is not quiescent\n");
+		tx_isp_subdev_deinit(&core->sd);
+		vfree(core->params);
+		kfree(core);
Evidence
A reset error leaves statistics active, the statistics free routine rejects active buffers, and
removal nonetheless frees the sole tracking object.

drivers/media/platform/ingenic/tx-isp/tx-isp-core.c[257-280]
drivers/media/platform/ingenic/tx-isp/tx-isp-stats.c[165-173]
drivers/media/platform/ingenic/tx-isp/tx-isp-core.c[729-743]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
A reset failure prevents statistics DMA cleanup, but removal frees the object tracking the retained allocation.
## Fix Focus Areas
- drivers/media/platform/ingenic/tx-isp/tx-isp-core.c[248-281]
- drivers/media/platform/ingenic/tx-isp/tx-isp-core.c[729-743]
- drivers/media/platform/ingenic/tx-isp/tx-isp-driver.c[357-380]
## Recommended Fix
Keep the statistics allocation and its owning state together when quiescence fails; provide a safe later cleanup path rather than freeing the owner while retaining its DMA buffer.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


8. Failed encoder removal leaks its device 🐞 Bug ☼ Reliability
Description
helix_remove() takes an extra hdev->ref when quiescence fails, but no path releases that
reference. After a reset failure during removal, the retained reference prevents helix_free() from
running and permanently retains the encoder device and its reserved DMA resources.
Code

drivers/media/platform/ingenic/helix/helix_drv.c[R318-321]

+	if (ret || READ_ONCE(hdev->hw_running) || hdev->h264_hold_valid) {
+		/* Keep DMA targets reserved when stop was not acknowledged. */
+		kref_get(&hdev->ref);
+		goto unregister;
Evidence
Removal adds one reference on failure but performs only the ordinary final put; the destructor runs
only when the reference count reaches zero.

drivers/media/platform/ingenic/helix/helix_drv.c[172-180]
drivers/media/platform/ingenic/helix/helix_drv.c[299-330]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The failed-quiescence path retains an unowned device reference indefinitely.
## Fix Focus Areas
- drivers/media/platform/ingenic/helix/helix_drv.c[172-180]
- drivers/media/platform/ingenic/helix/helix_drv.c[299-330]
## Recommended Fix
Preserve DMA safety on failed quiescence while providing an owner and eventual cleanup for retained device state; do not take a reference that no path can release.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


9. MMC command writes change width on all older SoCs ✓ Resolved
Description
jz4740_mmc_send_command() now writes the opcode with writew() instead of writeb(), and the
line has no SoC-version check. JZ4740, JZ4725B, JZ4760, JZ4775/JZ4780 and X1000 controllers share
this path, so on every command they get a 16-bit bus access to a register that was previously only
ever written with a byte, not just T23.

10. Coprocessor loads a different firmware file than the device tree names 🐞 Bug ≡ Correctness
Description
t23_coproc_probe() passes the hard-coded name "ingenic/t23_riscv.elf" to rproc_alloc() and never
calls rproc_of_parse_firmware(). The T23 DT node's firmware-name = "ingenic/t23_coproc_pir.bin"
is therefore ignored, and booting the coprocessor requests a file the board description does not
ship.
Code

drivers/remoteproc/t23_coproc_core.c[R38-39]

+	rproc = rproc_alloc(dev, dev_name(dev), &t23_coproc_rproc_ops,
+			    "ingenic/t23_riscv.elf", sizeof(*priv));
Evidence
The probe hard-codes the firmware string and nothing in the driver reads the DT property, while
t23.dtsi specifies a different file name.

drivers/remoteproc/t23_coproc_core.c[30-49]
arch/mips/boot/dts/ingenic/t23.dtsi[446-459]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The remoteproc driver ignores the DT `firmware-name` property and always requests ingenic/t23_riscv.elf.
## Fix Focus Areas
- drivers/remoteproc/t23_coproc_core.c[30-43]
- arch/mips/boot/dts/ingenic/t23.dtsi[446-459]
## Recommended Fix
Call `rproc_of_parse_firmware(dev, 0, &fw_name)` before `rproc_alloc()`, keep "ingenic/t23_riscv.elf" only as a fallback default, and pass `fw_name` to `rproc_alloc()`. Make the DT name and the expected image format (ELF vs .bin) agree.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Informational

11. Failed audio resume later double-disables clocks 🐞 Bug ☼ Reliability
Description
On T23, if clk_prepare_enable(clk_rx) fails in jz4740_i2s_resume(), the error path disables
clk_tx but leaves both tx_clk_on and rx_clk_on set. The later stream jz4740_i2s_shutdown()
sees those flags and calls clk_disable_unprepare() again on clocks that are no longer enabled,
which unbalances the clock framework's enable counts.
Code

sound/soc/jz4740/jz4740-i2s.c[R800-806]

+			}
+			if (i2s->rx_clk_on && i2s->clk_rx) {
+				ret = clk_prepare_enable(i2s->clk_rx);
+				if (ret) {
+					if (i2s->tx_clk_on && i2s->clk_tx)
+						clk_disable_unprepare(i2s->clk_tx);
+					goto err_disable_aic;
Evidence
The resume error path drops clock references without clearing the flags. Shutdown decides whether to
disable each clock from those flags alone.

sound/soc/jz4740/jz4740-i2s.c[785-814]
sound/soc/jz4740/jz4740-i2s.c[207-225]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The T23 resume error path leaves tx_clk_on/rx_clk_on set after the clocks were disabled (or never re-enabled), so a later shutdown disables them a second time.
## Fix Focus Areas
- sound/soc/jz4740/jz4740-i2s.c[795-806]
## Recommended Fix
On failure, clear `rx_clk_on` (the RX enable failed) and, after disabling `clk_tx`, clear `tx_clk_on`. Alternatively, track the actual enabled state separately from the logical stream state so shutdown only disables clocks that are really enabled.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Tip of the day
💡 Did you know, you can turn on the rule miner and Qodo learns your standards from review history

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@difanz

difanz commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

Updated the series on ingenic-t23-6.12 (6f738445e9, 82 commits):

Flash layout cleanup

  • Dropped drivers/mtd/split_layout.c and the init/do_mounts.c (root_dev_from_flash) patch as well as CONFIG_MTD_SPLIT_LAYOUT* from t23_defconfig. Core MTD (mtdcore.c) and VFS mount paths (init/do_mounts.c) are now completely vanilla CIP 6.12.
  • Companion difanz/openipc-firmware:ingenic/t23-6.12 now builds the standard fixed-slot uImage.t23 (1478 KB / 2048 KB) + rootfs.squashfs.t23 (4064 KB / 5120 KB) outputs matching OpenIPC's $INGENIC assembly flow in image.yml.

Qodo review responses (#issuecomment-6990182505)

  1. USB PHY WORD_IF0 polarity (drivers/phy/ingenic/phy-ingenic-usb.c): Intentional on T23 — unlike older JZ47xx SoCs, T23's CPM_USBPCR1 bit 19 (WORD_IF0) selects 16-bit/30MHz UTMI when cleared (0) and 8-bit/60MHz when set (1), per stock soc-t23/common/cpm_usb.c and T23N USB Wi-Fi bring-up. Replaced the misleading USBPCR1_WORD_IF_16BIT macro reference in t23_usb_phy_init() with USBPCR1_T23_WORD_IF_8BIT and an explicit polarity comment.
  2. SFC SPI NOR bus width (t23-openipc.dts, ja-a12.dts, ja-a10.dts): Fixed — changed spi-rx-bus-width and spi-tx-bus-width from <4> to <2> on all three board DTS files to match pins_sfc (dual I/O; PB15/PB16 are used for GMAC RMII / PTZ coils rather than flash WP#/HOLD#).
  3. Helix crop selection (drivers/media/platform/ingenic/helix/helix_v4l2.c): Fixed — wired ctx->crop consistently across vidioc_s_selection() (with -EBUSY guard and ctx->dst_fmt update), vidioc_try_fmt(), helix_start_streaming(), helix_prepare_input_frame(), and helix_job_work().
  4. SADC voltage scale (drivers/iio/adc/ingenic-sadc.c): Fixed — switched IIO_CHAN_INFO_SCALE to 1800 / 2^12 (IIO_VAL_FRACTIONAL_LOG2, *val = 1800, *val2 = 12) to match the 12-bit AUX channel; verified in_voltage0_scale reads 0.439453125 in QEMU.
  5. PTZ motor 64-bit step_interval read (drivers/media/platform/ingenic/ptz-motor.c): Fixed — snapshotted mdev->step_interval under mdev->lock in motor_timer_callback() before calling hrtimer_forward_now().
  6. Sensor DT data-lanes schema (galaxycore,gc2053.yaml, smartsens,sc2336.yaml): Simplified — replaced the overlapping oneOf alternatives with minItems: 1 + [const: 1, const: 2].
  7. ISP stats DMA on failed bus-stop (drivers/media/platform/ingenic/tx-isp/tx-isp-core.c): Intentional — when the hardware bus-stop reset fails during remove(), coherent DMA allocations remain quarantined (just like tx_isp_remove() skips dma_free_coherent() / of_reserved_mem_device_release() when dma_quiescence_failed is set) so active hardware DMA cannot overwrite recycled kernel pages, while CPU-side core state is freed.
  8. Helix kref_get on failed quiescence (drivers/media/platform/ingenic/helix/helix_drv.c): Fixed — removed the extra kref_get(&hdev->ref) on failed quiescence in helix_remove() and logged an error instead; goto unregister already leaves DMA buffers unfreed while allowing helix_free() to release V4L2/device objects cleanly.
  9. MMC JZ_REG_MMC_CMD write width (drivers/mmc/host/jz4740_mmc.c): Fixed — added JZ_MMC_T23 for ingenic,t23-mmc and gated writew() on host->version >= JZ_MMC_T23, preserving writeb() for all earlier JZ47xx/X1000 SoCs.
  10. Coprocessor firmware-name (drivers/remoteproc/t23_coproc_core.c, arch/mips/boot/dts/ingenic/t23.dtsi): Fixed — t23_coproc_probe() now calls rproc_of_parse_firmware(dev, 0, &fw_name) with "ingenic/t23_riscv.elf" fallback, and t23.dtsi now specifies "ingenic/t23_riscv.elf" to match.
  11. Audio resume error path (sound/soc/jz4740/jz4740-i2s.c): Fixed — cleared tx_clk_on and rx_clk_on across all T23 resume failure paths in jz4740_i2s_resume() so a subsequent jz4740_i2s_shutdown() cannot double-disable clocks.

Re-verified

  • make ARCH=mips W=1 dtbs: all 6 T23 DTBs build with 0 warnings.
  • scripts/checkpatch.pl --strict: 0 errors on all 14 modified commits.
  • Fixed-slot 2-boot QEMU -M t23 E2E (u-boot-t23n-nor.bin + uImage.t23 @ 0x50000 + rootfs.squashfs.t23 @ 0x250000): standard 5 MTD partitions (/dev/mtdblock3 SquashFS root, /dev/mtdblock4 JFFS2 /overlay), in_voltage0_scale = 0.439453125, aplay -l card 0, t23-ipa + divinus, 1920x1080 JPEG snapshot, and 15 RTSP H.264 frames decoded with 0 errors (ALL E2E CHECKS PASSED!).

@openipc-ai openipc-ai left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the port. Moving T23 from the 3.10.14 SDK with binary libimp to standard V4L2/MC, M2M and ASoC drivers is a big step, and the series is well organised. The diff is over GitHub's 20k-line API limit, so I fetched the PR head (6f73844) and diffed it against 36226b6.

I read every change to existing shared code, plus the new SFC, AES, reset, efuse and PTZ motor drivers. I have not reviewed the new media drivers yet (tx-isp, helix, ipu, smartsens sensors, about 20k lines). They will get a separate pass.

I'm requesting changes, mainly because several T23 workarounds change code that every XBurst/Ingenic SoC uses, and nothing limits them to T23. JZ47xx and X1000 boards would pick up behaviour nobody has tested on them. Details are in the inline comments:

Shared code, affects all Ingenic SoCs

  1. 8250_ingenic.c: earlycon from the kernel command line no longer reads /ext (regression on every Ingenic SoC).
  2. tlb-r4k.c: a mips_machtype == MACH_INGENIC_T23 check in generic TLB setup.
  3. c-r4k.c: an unexplained Config7 BIT(1) is set after every icache flush on all XBurst parts.
  4. sc-mips.c: write_c0_ecc(0) runs on every XBurst part that has an L2 cache.
  5. cgu.c: the divider stop bit is now used on disable for every SoC, but set_rate still clears it.

T23 drivers
6. dwmac-ingenic.c: the PHY reset pulse and raw MDIO writes happen after phylink has attached the PHY.
7. jz4740-i2s.c: startup reprograms a TX/RX clock that both directions share.
8. jz4740-i2s.c (aic-loop): a dangling pointer to the AIC's driver data, and the LOOP bits are never cleared.
9. spi-ingenic-sfc.c: a mutex is taken on the polling path meant for panic/IRQs-off context. The DMA mask is also 32-bit, but probe rejects buffers above 29 bits.
10. rtc-jz4740.c: system-power-controller makes the whole RTC probe fail on T23.

Smaller points: the dwmac reg_offset is guessed from the regmap max register; the stmmac ring sizes are changed after probe; efuse support is a new driver even though the jz4780-efuse binding was extended to cover T23 (please either reuse nvmem/jz4780-efuse.c or drop the binding change).

You mention that on-board validation of the 6.12 rebase is still pending. Please attach a JA-A12/T23N boot log, plus network, audio and flash smoke tests, once you have them. Also, if you have a JZ4780 or X1000 board, a quick boot of this branch on it would help confirm the shared changes (or gate them all behind T23 and we can skip that).

Comment thread drivers/tty/serial/8250/8250_ingenic.c Outdated
prop = fdt_getprop(fdt, offset, "clock-frequency", NULL);
if (!prop)
return;
if (!dev->port.uartclk && fdt) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the command-line path (earlycon=jz4740_uart,mmio32,0x10030000,115200), earlycon.c parse_options() has already set port->uartclk = BASE_BAUD * 16 before setup runs, so uartclk is never 0 here and /ext is never read. Before this change /ext always overrode it, so this breaks command-line earlycon on all Ingenic SoCs (the divisor is computed from 1.8432 MHz instead of 24/48 MHz). Could you keep the old unconditional override and use the 24 MHz fallback only when /ext is missing?

Comment thread arch/mips/mm/tlb-r4k.c Outdated

/* From this point on the ARC firmware is dead. */
if (!cpu_has_tlbinv)
if (!cpu_has_tlbinv && mips_machtype != MACH_INGENIC_T23)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generic r4k TLB code shouldn't test a single platform's mips_machtype. The MACH_* values from different platforms share one integer space, and inserting MACH_INGENIC_T23 in the middle of the enum also renumbers X2000/X2100. What goes wrong in r4k_tlb_uniquify() on T23? If it's a CPU property, please express it as a cpu feature/quirk (for example in cpu-probe.c for this PRID), or fix the root cause.

Comment thread arch/mips/mm/c-r4k.c Outdated
}

if (boot_cpu_type() == CPU_XBURST)
set_c0_config7(BIT(1));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This now runs after every flush_icache_range on all XBurst CPUs (JZ4740 to X1830), including hot paths such as module load and signal trampolines. What does Config7 bit 1 do on T23, and is it defined the same way on older XBurst cores? Please give it a named define with a comment, and limit it to the cores that need it (for example via the PRID in cpu-probe).

Comment thread arch/mips/mm/sc-mips.c Outdated
c->scache.ways = 4;
break;
}
write_c0_ecc(0x0);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

write_c0_ecc(0) runs for every XBurst part with an L2 cache, which clears the ErrCtl/ECC state that firmware set up on JZ4770/JZ4775/JZ4780/X1000. Please limit it to T23, or explain why it is safe on the other parts.

Comment thread drivers/clk/ingenic/cgu.c Outdated
spin_unlock_irqrestore(&cgu->lock, flags);
}
if (clk_info->type & CGU_CLK_DIV)
ret = ingenic_cgu_div_set_enabled(cgu, &clk_info->div, false);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stopping the divider through stop_bit on disable now applies to every SoC that defines stop_bit (for example JZ4780 i2s/msc/lcd dividers), but ingenic_clk_set_rate() still clears stop_bit unconditionally. A clk_set_rate() on a disabled clock (after disable_unused, or before prepare_enable) restarts the divider in hardware while the enable count is 0, and is_enabled() then disagrees with the clock framework. set_rate should either keep the current stop state, or this new enable/disable behaviour should be opt-in per SoC.

int phy, id1, bmcr;

if (mac && mac->phy_reset) {
gpiod_set_value_cansleep(mac->phy_reset, 1);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix_soc_reset is called from stmmac_reset() inside stmmac_hw_setup(), which runs after stmmac_init_phy() has attached the PHY and run its config_init. Pulsing the PHY reset line here throws away that setup (RMII ref-clk direction, LEDs, quirks). The raw GMAC_MII_ADDR/DATA accesses to all 32 addresses also run without mdio_lock, while phylib may be polling at the same time. The PHY reset belongs in the MDIO bus/PHY reset handling (reset-gpios on the PHY node, or snps,reset-gpio), not in the MAC soft-reset hook.

Comment thread sound/soc/jz4740/jz4740-i2s.c Outdated
}

if (clk) {
ret = clk_set_rate(clk, 8000 * 256);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the DT doesn't provide separate spk/mic clocks, clk_rx == clk_tx, so opening capture while playback is running at 48 kHz sets the shared clock to 2.048 MHz and playback slows to 1/6 speed. If capture never reaches hw_params, it stays that way. Please skip this when the other direction is active, or drop it and rely on hw_params.

return -EPROBE_DEFER;

loop->aic = &aic->dev;
loop->i2s = platform_get_drvdata(aic);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loop->i2s points at the AIC driver's devm-allocated data, but put_device()/get_device() only pins the struct device, not its driver binding. Unbinding the AIC frees i2s and its regmap while the loop component is still registered, so the next loop trigger or hw_params is a use-after-free. Please use a device link (DL_FLAG_AUTOREMOVE_CONSUMER), or make the loop DAI a part of the AIC driver. Also, the LOOP enable bits are never cleared when the main capture stops.


use_dma = nbytes > SFC_PIO_MAX_BYTES;

mutex_lock(&sfc->lock);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exec_op has a polling branch for irqs_disabled() || oops_in_progress (the mtdoops case), but it takes mutex_lock() unconditionally first. That is illegal in that context: it either warns 'sleeping function called from invalid context', or deadlocks if the oops hit while another task held the lock. Either use a mutex_trylock() fallback for the oops path, or drop the polling branch. Separately, the DMA mask is set to 32 bits while probe rejects memory above 29 bits; dma_set_mask_and_coherent(DMA_BIT_MASK(29)) would let the DMA API bounce buffers instead.

Comment thread drivers/rtc/rtc-jz4740.c Outdated
@@ -350,6 +352,8 @@ static int jz4740_rtc_probe(struct platform_device *pdev)
return -ENOMEM;

rtc->type = (uintptr_t)device_get_match_data(dev);
if (rtc->type == ID_T23 && of_device_is_system_power_controller(np))
return -EOPNOTSUPP;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a T23 board DT marks the RTC as system-power-controller (which the shared binding allows), the RTC device disappears completely: no /dev/rtc0, no hwclock. Please just skip registering power-off for T23 (and/or forbid the property in the binding for ingenic,t23-rtc).

@difanz

difanz commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

wrt the JZ4780 or X1000 issues: this branch is specifically for T23 SoC, so those JZ4780 or X1000 boards does not apply. However, for code hygiene issues, I'll port them properly in the next few commits.

@difanz

difanz commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks for the thorough review @openipc-ai — all of those points were completely legitimate. Since ingenic-t23-6.12 is a dedicated T23 SoC branch, we consolidated the series further so every change in shared MIPS/Ingenic C drivers and DT binding schemas is strictly scoped to T23 (MACH_INGENIC_T23 / ingenic,t23-*) with non-T23 paths left completely untouched.

Force-pushed reconsolidated ingenic-t23-6.12 (52c971b0133563b5612d2e32ff3a25c50da0eb5b, 78 commits):

Shared code & DT schemas (100% T23-isolated)

  1. arch/mips/mm/tlb-r4k.c & arch/mips/include/asm/bootinfo.h (efe9546772): Dropped the tlb-r4k.c change (0 diff against base — the r4k_tlb_uniquify() workaround was left over from our 4.19 base before upstream's split read/write uniquify pass) and moved MACH_INGENIC_T23 to the end of enum ingenic_machine_type.
  2. arch/mips/mm/c-r4k.c & arch/mips/include/asm/mipsregs.h (b0669da553): Defined MIPS_CONF7_XBURST_BTB_INV (BIT(1)) and gated it strictly on CPU_XBURST && (processor_id & PRID_IMP_MASK) == PRID_IMP_XBURST_REV2 && mips_machtype == MACH_INGENIC_T23.
  3. arch/mips/mm/sc-mips.c (d67a2b03de): Reverted mips_sc_probe_cm3(), moved write_c0_ecc(0x0) and scache_size capture into MACH_INGENIC_T23 inside mips_sc_probe(), and gated the __sync() / mips_sc_blast() / __fast_iob() paths in mips_sc_wback_inv() and mips_sc_inv() behind if (mips_machtype == MACH_INGENIC_T23) so all other MIPS CPUs execute the exact upstream lines.
  4. drivers/clk/ingenic/{cgu.c,cgu.h,t23-cgu.c} (3e0f7a32de, a874ee648d): Made divider ce_bit/stop_bit handshakes, empty-slot skipping, and forward-parent resolution opt-in via cgu->stop_div_on_disable (set only in t23_cgu_init()), leaving enable/disable/is_enabled/set_rate and ingenic_register_clock() unchanged for other Ingenic SoCs.
  5. drivers/pinctrl/pinctrl-ingenic.c (0a45e9bce6): Gated regmap_config.max_register = 0x8000 - 4 behind if (chip_info->version == ID_T23).
  6. drivers/clocksource/ingenic-sysost.c (71c78cf972): Folded the OST IRQ flag clear into the T23 OST commit via t23_soc_info.clear_fflag = true so OST_REG_OSTFR is cleared only for "ingenic,t23-ost".
  7. drivers/tty/serial/8250/8250_ingenic.c (ae4e5cb372): Dropped the separate generic earlycon commit (0 diff on ingenic_early_console_setup_clock() / ingenic_early_console_setup()), added t23_early_console_setup() (ordered ahead of x1000_uart), and applied the 24 MHz /ext fallback only on ingenic,t23-uart.
  8. drivers/dma/dma-jz4780.c (cf732c041e): Folded descriptor cleanup / lock ordering into t23_dma_soc_data via JZ_SOC_DATA_T23 so non-T23 PDMA controllers run unchanged.
  9. drivers/i2c/busses/i2c-jz4780.c (d408ce38f3): Folded read-count guards and repeated-start stop_hold preservation into ID_T23 / t23_i2c_config (i2c->cdata->version >= ID_T23).
  10. drivers/phy/ingenic/phy-ingenic-usb.c (46329484d7), drivers/mmc/host/jz4740_mmc.c (96c1e50bd1), drivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c (7eec75c0b2), drivers/rtc/rtc-jz4740.c (300e2f5084): Gated IORESOURCE_MEM index 1 lookup under needs_cpm, gate clock lookup under host->version >= JZ_MMC_T23, macphy clock lookup under data->version == ID_T23 (with ID_T23 placed at the end of enum ingenic_mac_version), and RTC wakeup/poweroff skipping under rtc->type == ID_T23.
  11. sound/soc/jz4740/jz4740-i2s.c (da5c839805): Added dedicated t23_i2s_regmap_config (T23_REG_AIC_LOOP_FIFO) while keeping jz4740_i2s_regmap_config at JZ_REG_AIC_FIFO; kept upstream trigger/hw_params/dev_remove behavior intact when !i2s->soc_info->is_t23; skipped the startup 8000 * 256 seed when shared clocks are active or already configured; added device_link_add() in t23_aic_loop_probe(); and cleared T23_AIC_CTRL_LOOP when main capture stops.
  12. DT binding schemas: Added allOf: conditionals in ingenic,cgu.yaml (6d8fbf7543), ingenic,tcu.yaml (9d200d85ed), ingenic,uart.yaml (1b040214c1), ingenic,i2c.yaml (1eea87f506), ingenic,mmc.yaml (85e7060d58), ingenic,mac.yaml (edcf225859), ingenic,adc.yaml (38e79c87d7), and ingenic,rtc.yaml (2694296e87), plus standalone ingenic,t23-efuse.yaml (0a67d29aea) with ingenic,jz4780-efuse.yaml reverted to base.

T23 driver fixes retained from review

  • dwmac-ingenic.c (7eec75c0b2): Removed ingenic_mac_fix_soc_reset(), raw GMAC_MII_* accesses, regmap_get_max_register() offset probing, and post-probe dma_tx/rx_size = 64 mutation.
  • spi-ingenic-sfc.c (b105bc789a): Removed unreachable irqs_disabled() || oops_in_progress polling under mutex_lock() and set DMA_BIT_MASK(29).

Re-verification on 52c971b013

  • scripts/checkpatch.pl --strict: 0 errors across all 18 reconsolidated commits; PyYAML parse check on all 35 modified .yaml bindings: passed.
  • Build checks (t23_defconfig / t23_lite): vmlinux.bin 4621600 bytes, 128 modules, 0 kernel/module build warnings, and make ARCH=mips W=1 dtbs across all 6 T23 DTBs with 0 warnings.
  • OpenIPC BOARD=t23_lite rebuild (uImage.t23 1479 KB / 2048 KB, rootfs.squashfs.t23 4064 KB / 5120 KB) + full QEMU -M t23 E2E (run_openipc_e2e.py: osmem=40M -> 64M reboot, MemAvailable: 22208 kB, 5 cmdlinepart MTD partitions + JFFS2 /overlay, eth0 DHCP, aplay -l, ingenic-sadc 0.439453125, 1920x1080 JPEG snapshot YMIN=5.0 YAVG=68.3615 YMAX=255.0, 15 RTSP H.264 frames with 0 ffmpeg -err_detect explode decode errors): passed.

Physical JA-A12/T23N 6.12 boot and smoke-test logs (dmesg, flash, audio, Wi-Fi) will be attached once flashed and tested on hardware.

@openipc-ai

Copy link
Copy Markdown

Thanks for the fast and thorough turnaround. I checked 52c971b0 against 36226b6, and all ten points from my review are resolved:

  • Shared code: tlb-r4k.c is back to upstream, and MACH_INGENIC_T23 is now at the end of the enum. The Config7 BTB invalidate has a named define and is gated on XBurst + PRID REV2 + T23. write_c0_ecc(0) is now a T23 case inside the existing XBurst switch. Command-line earlycon goes through the unchanged generic path again, and T23 has its own setup. The CGU stop/CE handshake is opt-in through stop_div_on_disable, and set_rate leaves a stopped divider stopped.
  • T23 drivers: the dwmac PHY reset, raw MII access, reg_offset guess and ring-size change are gone. The SFC uses DMA_BIT_MASK(29) and no longer has the polling branch under the mutex. I2S startup no longer touches a shared clock that is running. aic-loop now has device_link_add(..., DL_FLAG_AUTOREMOVE_CONSUMER), and the LOOP bits are cleared when capture stops. The RTC skips power-off registration instead of failing probe. Efuse now has its own binding.

Build check on my side (OpenIPC mipsel-openipc-linux-musl gcc 13.3): t23_defconfig with W=1 builds vmlinux, 128 modules and all 6 T23 DTBs. None of the warnings are in files this PR touches; the 23 that appear are all W=1 noise from untouched upstream files. vmlinux.bin is 4,621,600 bytes, which matches your number. checkpatch --strict over all 78 commits gives 0 errors. Most of the warnings are lines over 100 columns and msleep < 20ms in the Helix, tx-isp and codec patches, which is fine to tidy up later.

One nit: in sc-mips.c, the new T23 branches in mips_sc_wback_inv() and mips_sc_inv() test only mips_machtype. The probe already checks current_cpu_type() == CPU_XBURST, so adding the same check there would keep the MACH_* number spaces of other platforms from ever matching.

What's left before merge:

  1. I'm leaving "changes requested" in place until I've reviewed the media drivers (tx-isp, helix, ipu, smartsens sensors, about 20k lines). That review comes next.
  2. The JA-A12/T23N boot and smoke-test logs you mentioned.

Register the vendor prefixes used by the T23 camera board and sensor
bindings.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Describe the Ingenic T23 SoC and the Jooan JA-A12, JA-A10 and OpenIPC
QEMU board compatibles.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Register the T23 machine and board selection, and use the CPM scratch
signature and TCU watchdog for system restart. Memory size and reusable
camera CMA are supplied by Device Tree using the standard kernel command
line.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Name CP0 Config7 bit 1 (MIPS_CONF7_XBURST_BTB_INV) and restrict the BTB
invalidation after I-cache range maintenance to T23 XBurst1 cores so older
JZ47xx and XBurst2 parts are unaffected.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Order secondary-cache maintenance against device accesses and use indexed
cache blasts for ranges covering the cache on XBurst T23, leaving other
MIPS platforms untouched. Clear the T23 CP0 ErrCtl state and record
scache_size only during XBurst MACH_INGENIC_T23 setup.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Allow CGU dividers opting into cgu->stop_div_on_disable (T23) to
handshake CE/STOP bits around divider enable/disable and rate updates,
skip empty sparse clock slots, and resolve forward-referenced parents
without altering existing Ingenic CGU SoCs.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Describe the T23 clock generator and publish clock identifiers for its
CPU, bus, peripheral and audio clocks.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Add the T23 APLL and MPLL, clock muxes, dividers and peripheral gates.
Provide fractional I2S dividers for the microphone and speaker clocks.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Describe the CPM bus-stop reset controller and define reset identifiers
for the ISP and Helix VPU.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Stop bus traffic before asserting ISP or VPU reset and wait for the CPM
acknowledgement before releasing the block.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Describe the T23 pin controller and its GPIO-bank compatibles.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Add the T23 PA-PD pin groups and functions, 0x1000 bank stride, shadow
register access, and per-pin pull-up and pull-down configuration.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Describe the T23 hardware compatible and its resources using the
existing Ingenic controller schema.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Match the T23 two-bank interrupt controller to the existing Ingenic INTC
implementation.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Describe the T23 hardware compatible and its resources using the
existing Ingenic controller schema.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Register the ingenic,t23-ost compatible in ingenic-sysost and clear
OST_REG_OSTFR in the event IRQ handler only on T23.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Describe the T23 hardware compatible and its resources using the
existing Ingenic controller schema.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Describe the T23 internal codec register window, clocks and audio
interfaces.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Provide the T23 microphone and speaker routes, gain and mute controls,
and playback reference interface through ASoC.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Describe the T23 AIC and playback-reference DMA interface used for audio
capture and playback.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Handle the T23 speaker and microphone clocks, mono and stereo channel
routing, FIFO resets, and playback-reference FIFO DMA capture.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Define the T23 ISP statistics and extensible parameter metadata
layouts, pixel-format identifiers and user control range. Document the
buffer interfaces for userspace 3A services.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Describe the GPIO phase outputs, travel limits and reset steps of the
T23 camera PTZ mechanism.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Drive the camera pan and tilt stepper phases using GPIO descriptors and
an hrtimer pulse generator, exposed through V4L2 motor controls.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Describe the GC2053 CSI-2 sensor clocks, reset and power-down GPIOs, and
media endpoint.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Add active-state subdevice formats, exposure and analogue gain controls,
writable VBLANK with exposure-range updates, and frame interval
configuration for the GC2053.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Describe the SC1A4T, SC2336 and SC2337P sensor variants and their CSI-2
endpoint and board resources.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Provide the T23 SmartSens sensor variants with common register, power
and V4L2 control handling. Support active subdevice state, live VBLANK
and exposure limits, and stream-time Bayer flip locking.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Describe the T23 ISP register windows, clocks, interrupts and reset
resources.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Add the T23 CSI, VIC, ISP, MDNS and multi-scaler capture pipeline with
Media Controller topology, NV12/NV21 outputs, per-frame statistics and
parameter metadata, scratch-buffer parking and dual-input frame
synchronization.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Describe the T23 Helix encoder register windows, clocks, interrupts and
reset resources.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Add the T23 V4L2 memory-to-memory H.264 and JPEG encoder with
per-context reference buffers, DMA-BUF input, rate control, aligned DMA
staging and encoder STOP/EOS draining.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Describe the T23 IPU converter register windows, clocks, interrupts and
reset resources.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Add the T23 IPU v1.3 memory-to-memory color converter with DMA-BUF
import and NV12/NV21, RGB565 and ARGB32/XRGB32 formats.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Describe the T23 CPU, clocks, interrupts, memory-mapped peripherals and
media blocks with board-specific devices disabled by default.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Describe the JA-A12 64 MiB board, 24 MiB reusable camera CMA, SPI NOR
layout, dual SC1A4T endpoints, USB Wi-Fi power and audio routes. Name
the IR-cut GPIO lines for userspace ownership.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Describe the JA-A10 board with 32 MiB RAM, 8 MiB reusable camera CMA,
sensor, audio and GPIO-controlled peripherals.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Add QEMU profiles for the dual SC1A4T, GC2053 and SC2336 pipelines based
on the JA-A12 description. Enable the virtual UART and Ethernet
interface for emulated regression tests.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Configure the T23 camera kernel for LZMA-compressed SPI NOR boot with
appended DTB, reusable CMA and writable overlay storage. Build media,
sensor, audio and wireless support as modules to fit the flash and RAM
budgets.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Document the openipc,t23 compatible string for generic OpenIPC Ingenic
T23 IP camera boards.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Add a generic OpenIPC Ingenic T23 device tree (t23-openipc.dts)
covering standard SoC peripherals, 64 MiB RAM with a 24 MiB CMA pool
for camera buffers, jz_sfc 8 MiB OpenIPC NOR partition layout, RMII
Ethernet MAC/MDIO, USB OTG, MMC0 with GPIO card detect, internal
audio codec, and a default 2-lane GC2053 MIPI CSI-2 sensor on I2C0
without vendor board-specific GPIOs.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Commit f399df5 ("hwrng: ingenic: Add the T23 DTRNG compatible")
added the ingenic,t23-dtrng compatible to ingenic-trng.c, but
HW_RANDOM_INGENIC_TRNG in Kconfig still depended only on
MACH_X1830 || COMPILE_TEST. Add MACH_T23 to the dependency so the T23
DTRNG driver can be enabled on T23-only builds.

Signed-off-by: Difan Zhang <alex@osqdu.org>
Keep core boot/bus drivers (I2C, regulator, watchdog, SFC) built in while modularizing media, Ethernet/PHY, TUN, LEDs, RTC, PWM, and DTRNG so vmlinux.bin stays comfortably under the 4.5 MiB U-Boot decompression cap.

Signed-off-by: Difan Zhang <alex@osqdu.org>
@difanz

difanz commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

Pushed updated ingenic-t23-6.12 (12dfae2605a3, 78 commits over 36226b6091) addressing the media review feedback (54 files changed, 2835 insertions(+), 5778 deletions(-) vs 337e474a). All fixes were folded into their owning commits and re-verified on both real Jooan JA-A12 (T23N) hardware and QEMU.

(Corresponding OpenIPC firmware branch: difanz/openipc-firmware ingenic/t23-6.12 @ fa40d74983e7.)

Summary of Review Fixes (337e474a -> 12dfae2605a3)

  • UAPI / ABI (include/uapi/linux/media/ingenic/t23-isp-config.h, metafmt-t23-isp.rst, v4l2-controls.h):
    • Relocated V4L2_CID_USER_T23_BASE to V4L2_CID_USER_BASE + 0x1250 and dropped the duplicate include/uapi/linux/t23-isp-config.h header alias.
    • Dropped the legacy fixed params format in favor of the extensible V4L2_META_FMT_T23_ISP_EXT_PARAMS buffer (struct t23_isp_ext_params_cfg), added reserved-zero validation (tx_isp_ext_check_reserved() / tx_isp_mdns_check_config()), and documented histogram set 1, ranges, frame sequence matching, and the four V4L2_CID_T23_* controls in metafmt-t23-isp.rst.
  • SmartSens & GC2053 sensors (drivers/media/i2c/):
    • Removed the *s1 and *s1false split/stub modules (9 -> 3 SmartSens drivers), extracted common logic into smartsens-common.c, moved sensor identification cleanly into probe(), added regulator/runtime PM handling (pm_runtime_resume_and_get() / regulator_bulk_*) and logical gpiod_set_value_cansleep() calls respecting DT active polarity, and parsed/validated link-frequencies and data-lanes via v4l2_fwnode_endpoint_alloc_parse() and v4l2_link_freq_to_bitmap().
  • PTZ motor (drivers/media/platform/ingenic/ptz-motor.c & binding):
    • Reworked to expose a pure V4L2/Media Controller lens subdev (MEDIA_ENT_F_LENS, V4L2_SUBDEV_FL_HAS_DEVNODE) using arc-seconds, independent pan/tilt speeds, reset controls, removed undocumented legacy motor_groups sysfs attributes, and aligned DT binding properties (switch-gpios, ingenic,tilt-step-div, ingenic,pan-reset-steps).
  • Helix encoder (drivers/media/platform/ingenic/helix/):
    • Addressed encoder drain/teardown synchronization, capture sizeimage, header_mode (JOINED_WITH_1ST_FRAME / SEPARATE), resolution-based H.264 level_idc, EPB sizing, and zero-copy bounds, plus v4l2-compliance fixes (V4L2_CID_MIN_BUFFERS_FOR_OUTPUT, vidioc_enum_framesizes, capture rejection on G/S_PARM, and OUTPUT->CAPTURE colorspace propagation).
  • ISP core / Meta / OSD / IPU / Codec:
    • Fixed tx-isp stream stop, async notifier locking, single-sensor port@1 MDNS history priming, format-independent S_CTRL, per-block dirty tracking in tx-isp-params.c, t23_overlay_sync() wait handling, platform:%s bus_info on meta/OSD nodes, G/S_PARM, and -ENOTTY on non-video subdev pads.
    • Updated IPU (jz_ipu_v13.c) to use v4l2_m2m_buf_copy_metadata() and OUTPUT->CAPTURE colorspace propagation.
    • Moved T23 codec register power-down to snd_soc_component_driver.remove (t23_codec_component_remove()) and cleaned up DAI format/DT mapping.
  • Note on the earlycon nit (8250_ingenic.c): x1000_uart still matches before t23_uart in this tested 12dfae2605a3 build (boot log confirms earlycon: x1000_uart0 at MMIO 0x10031000); left unchanged here so the pushed commit matches the exact hardware/QEMU image validated below, and happy to drop/dedup that in a quick follow-up.

Static & Build Checks (12dfae2605a3)

  • ./scripts/checkpatch.pl --strict --git 36226b6091..HEAD: 0 errors across all 78 commits (0 findings on the compliance fixes).
  • Pre-final-fold checks (headers & DT bindings unchanged in the final fold): scripts/kernel-doc -none include/uapi/linux/media/ingenic/t23-isp-config.h passed; yamllint + jsonschema.Draft201909Validator.check_schema passed on all 5 modified YAML bindings.
  • Clean BOARD=t23_lite build size budgets:
    • uImage.t23: 1,516,776 B (<= 2,097,152 B)
    • uImage.ja-a12: 1,517,077 B (<= 2,097,152 B)
    • rootfs.squashfs.t23: 4,345,856 B (<= 5,242,880 B)
    • Packaged JA-A12 8 MiB image: 8,388,608 B (CRC32 03137057)

On-Board Validation: Jooan JA-A12 (T23N) (12dfae2605a3, Build #2)

Tested on real JA-A12 hardware flashed via U-Boot SD card update (uImage.ja-a12 + rootfs.squashfs.t23):

  • Boot & modules: Linux openipc-t23 6.12.114-cip34 #2 PREEMPT Fri Nov 20 03:46:06 PST 2026 mips GNU/Linux; 5 jz_sfc MTD partitions + JFFS2 /overlay + 24 MiB CMA (MemAvailable: 25984 kB); sensor_sc1a4t binds both 0-0030 and 0-0032 with smartsens_common; tx-isp, ptz-motor (MEDIA_ENT_F_LENS), ingenic-helix-v4l2, ingenic-ipu, ja-a12-audio (snd-soc-ingenic-t23-codec), jz4740-mmc, and atbm6132_wifi_usb (007a:888b) all probe cleanly with zero Oops/BUG/WARNING/Entity type warnings in dmesg.
  • Camera 0 (RTSP H.264 + JPEG metadata): rtsp://<board-ip>:554/stream=0 (h264 (High), yuv420p, 1280x720, 15 fps) decoded 46 frames over 2.93s with ffmpeg -err_detect explode (exit 0, 0 errors); /image.jpg returned 1280x720 mjpeg (20160 bytes, YMIN=13 YAVG=87.698 YMAX=223).
  • Camera 1 (sc1a4t 0-0032 on /dev/video2): Captured 5 live NV12 1280x720 (1382400 B/frame) MMAP frames at 15.00 fps (seq 0..4, luma avg ~87.7..88.2, min=16, max=222..223) cleanly with t23-ipa running and no kernel errors.
  • Audio (ja-a12-audio): arecord -D hw:0,0 -f S16_LE -r 16000 -c 1 -d 2 recorded 32,000 samples (64044 B WAV, mean_volume: -55.4 dB, max_volume: -40.4 dB) and aplay -D hw:0,0 played it back cleanly.
  • Wi-Fi (wlan0): Associated cleanly on atbm6132_wifi_usb, 5/5 ICMP echo replies (0% loss, avg 6.975 ms) and sustained SSH/RTSP/SCP traffic.
  • v4l2-compliance (v4l-utils 1.24.1) on hardware: 0 Warnings across every device:
    • /dev/media1 + PTZ /dev/v4l-subdev0: 53/53 Succeeded (0 Failed).
    • /dev/media0: 1578/1604 Succeeded, media0 8/8, t23-isp-core0/1 143/143 each, sc1a4t 0-0030 & 0-0032 44/44 each; /dev/video1..26 46/47 each (and /dev/video1 -s 5 53/54) — the single FAIL on each video node is v4l-utils 1.24.1's v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved)) check running on Linux 6.12 videobuf2 (max_num_buffers introduced in Linux 6.8).
    • /dev/video0 (T23 IPU): 45/46 (-s 5: 52/53, only crbufs.reserved).
    • /dev/video27 (ingenic-helix-v4l2): 43/46 (-s 5: 48/51, only crbufs.reserved + 2 intentional found_bit items from keeping H.264 and JPEG on one V4L2 m2m node for OpenIPC divinus compatibility).
Board info, lsmod, sysfs topology, ALSA, and Wi-Fi logs (JA-A12)
=== UNAME ===
Linux openipc-t23 6.12.114-cip34 #2 PREEMPT Fri Nov 20 03:46:06 PST 2026 mips GNU/Linux
=== MEMINFO ===
MemFree:           16548 kB
MemAvailable:      25984 kB
CmaTotal:          24576 kB
CmaFree:            1916 kB
=== LSMOD ===
Module                  Size  Used by    Tainted: G  
evdev                  20480  0 
ingenic_helix_v4l2     45056  2 
snd_soc_simple_amplifier    12288  1 
snd_soc_simple_card    16384  0 
snd_soc_simple_card_utils    20480  1 snd_soc_simple_card
sensor_sc1a4t          12288  0 
smartsens_common       16384  4 sensor_sc1a4t
ingenic_trng           12288  0 
rng_core               16384  1 ingenic_trng
pwm_jz4740             12288  0 
ptz_motor              20480  0 
gpio_keys              16384  0 
tx_isp                114688  6 
videobuf2_vmalloc      12288  1 tx_isp
v4l2_fwnode            16384  2 smartsens_common,tx_isp
v4l2_async             16384  3 smartsens_common,tx_isp,v4l2_fwnode
ingenic_ipu            20480  0 
v4l2_mem2mem           20480  2 ingenic_helix_v4l2,ingenic_ipu
videobuf2_dma_contig    16384  6 ingenic_helix_v4l2,tx_isp,ingenic_ipu
videobuf2_memops       12288  2 videobuf2_vmalloc,videobuf2_dma_contig
videobuf2_v4l2         20480  4 ingenic_helix_v4l2,tx_isp,ingenic_ipu,v4l2_mem2mem
videobuf2_common       36864  8 ingenic_helix_v4l2,tx_isp,videobuf2_vmalloc,ingenic_ipu,v4l2_mem2mem,videobuf2_dma_contig,videobuf2_memops,videobuf2_v4l2
videodev              176128 16 ingenic_helix_v4l2,smartsens_common,ptz_motor,tx_isp,v4l2_fwnode,v4l2_async,ingenic_ipu,v4l2_mem2mem,videobuf2_v4l2
mc                     28672  8 smartsens_common,ptz_motor,tx_isp,v4l2_async,v4l2_mem2mem,videobuf2_v4l2,videobuf2_common,videodev
leds_gpio              12288  0 
ingenic_crypto         16384  0 
snd_soc_ingenic_t23_codec    16384  1 
snd_soc_jz4740_i2s     16384  4 
snd_soc_core          126976  5 snd_soc_simple_amplifier,snd_soc_simple_card,snd_soc_simple_card_utils,snd_soc_ingenic_t23_codec,snd_soc_jz4740_i2s
snd_pcm_dmaengine      12288  1 snd_soc_core
snd_pcm                69632  5 snd_soc_simple_card_utils,snd_soc_ingenic_t23_codec,snd_soc_jz4740_i2s,snd_soc_core,snd_pcm_dmaengine
snd_timer              28672  1 snd_pcm
snd                    53248  4 snd_soc_ingenic_t23_codec,snd_soc_core,snd_pcm,snd_timer
soundcore              12288  1 snd
input_core             40960  4 evdev,gpio_keys,snd
ingenic_sadc           12288  0 
industrialio           36864  1 ingenic_sadc
ctr                    12288  2 
aes_generic            36864  4 
libaes                 12288  1 aes_generic
ccm                    16384  7 
cryptomgr              12288  0 
af_packet              45056  2 
atbm6132_wifi_usb     139264  0 
mac80211              442368  1 atbm6132_wifi_usb
libarc4                12288  1 mac80211
cfg80211              303104  2 atbm6132_wifi_usb,mac80211
libcryptoutils         12288  4 ingenic_crypto,ctr,ccm,mac80211
crypto_hash            16384  2 ccm,mac80211
crypto_skcipher        20480  4 ingenic_crypto,ctr,ccm,mac80211
aead                   12288  2 ccm,mac80211
crypto_algapi          20480  8 ingenic_crypto,ctr,aes_generic,ccm,cryptomgr,crypto_hash,crypto_skcipher,aead
crypto                 16384  8 ingenic_crypto,ctr,ccm,mac80211,crypto_hash,crypto_skcipher,aead,crypto_algapi
dwc2                   94208  0 
roles                  12288  1 dwc2
usbcore               151552  2 atbm6132_wifi_usb,dwc2
usb_common             12288  2 dwc2,usbcore
phy_ingenic_usb        12288  2 
nls_iso8859_1          12288  1 
nls_cp437              12288  1 
dwmac_ingenic          12288  0 
stmmac_platform        16384  1 dwmac_ingenic
stmmac                180224  2 dwmac_ingenic,stmmac_platform
pcs_xpcs               20480  1 stmmac
mdio_devres            12288  1 pcs_xpcs
of_mdio                12288  3 stmmac_platform,stmmac,mdio_devres
fixed_phy              12288  1 of_mdio
fwnode_mdio            12288  1 of_mdio
phylink                28672  2 stmmac,pcs_xpcs,[permanent]
ptp                    28672  1 stmmac
pps_core               16384  1 ptp
icplus                 12288  0 
libphy                 81920  8 stmmac,pcs_xpcs,mdio_devres,of_mdio,fixed_phy,fwnode_mdio,phylink,icplus
led_class              12288  3 videodev,leds_gpio,libphy
jz4740_mmc             16384  0 
mmc_block              32768  1 
mmc_core               98304  2 jz4740_mmc,mmc_block
exfat                  73728  0 
vfat                   20480  1 
fat                    61440  1 vfat
nls_base               12288  6 usbcore,nls_iso8859_1,nls_cp437,exfat,vfat,fat

=== V4L SYSFS ===
/sys/class/video4linux/v4l-subdev0: t23-motor
/sys/class/video4linux/v4l-subdev1: t23-isp-core0
/sys/class/video4linux/v4l-subdev2: t23-isp-core1
/sys/class/video4linux/v4l-subdev3: sc1a4t 0-0030
/sys/class/video4linux/v4l-subdev4: sc1a4t 0-0032
/sys/class/video4linux/video0: T23 IPU
/sys/class/video4linux/video1: T23 video0
/sys/class/video4linux/video10: T23 scaled1.1
/sys/class/video4linux/video11: T23 osd0.0
/sys/class/video4linux/video12: T23 osd0.1
/sys/class/video4linux/video13: T23 osd0.2
/sys/class/video4linux/video14: T23 osd0.3
/sys/class/video4linux/video15: T23 osd0.4
/sys/class/video4linux/video16: T23 osd0.5
/sys/class/video4linux/video17: T23 osd0.6
/sys/class/video4linux/video18: T23 osd0.7
/sys/class/video4linux/video19: T23 osd1.0
/sys/class/video4linux/video2: T23 video1
/sys/class/video4linux/video20: T23 osd1.1
/sys/class/video4linux/video21: T23 osd1.2
/sys/class/video4linux/video22: T23 osd1.3
/sys/class/video4linux/video23: T23 osd1.4
/sys/class/video4linux/video24: T23 osd1.5
/sys/class/video4linux/video25: T23 osd1.6
/sys/class/video4linux/video26: T23 osd1.7
/sys/class/video4linux/video27: ingenic-helix-v4l2
/sys/class/video4linux/video3: T23 params0
/sys/class/video4linux/video4: T23 stats0
/sys/class/video4linux/video5: T23 params1
/sys/class/video4linux/video6: T23 stats1
/sys/class/video4linux/video7: T23 scaled0
/sys/class/video4linux/video8: T23 scaled0.1
/sys/class/video4linux/video9: T23 scaled1
=== MEDIA SYSFS ===
/sys/bus/media/devices/media0: T23 capture
/sys/bus/media/devices/media1: Ingenic T23 PTZ Motor
=== ALSA ===
**** List of PLAYBACK Hardware Devices ****
card 0: jaa12audio [ja-a12-audio], device 0: 10020000.audio-controller-t23-hifi t23-hifi-0 [10020000.audio-controller-t23-hifi t23-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
**** List of CAPTURE Hardware Devices ****
card 0: jaa12audio [ja-a12-audio], device 0: 10020000.audio-controller-t23-hifi t23-hifi-0 [10020000.audio-controller-t23-hifi t23-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: jaa12audio [ja-a12-audio], device 1: t23-aic-loop-dai-t23-loop t23-loop-1 [t23-aic-loop-dai-t23-loop t23-loop-1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

=== WIFI ===
wlan0     Link encap:Ethernet  HWaddr <wlan-mac>  
          inet addr:<board-ip>  Bcast:<bcast-ip>  Mask:255.255.254.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4142 errors:0 dropped:760 overruns:0 frame:0
          TX packets:1838 errors:0 dropped:2 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2715951 (2.5 MiB)  TX bytes:607847 (593.6 KiB)

wlan0     IEEE 802.11  ESSID:"<redacted>"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: <ap-bssid>   
          Bit Rate=65 Mb/s   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on
          Link Quality=70/70  Signal level=-25 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:321   Missed beacon:0
=== PING GATEWAY ===
PING <gateway-ip> (<gateway-ip>): 56 data bytes
64 bytes from <gateway-ip>: seq=0 ttl=255 time=16.802 ms
64 bytes from <gateway-ip>: seq=1 ttl=255 time=4.550 ms
64 bytes from <gateway-ip>: seq=2 ttl=255 time=4.528 ms
64 bytes from <gateway-ip>: seq=3 ttl=255 time=4.026 ms
64 bytes from <gateway-ip>: seq=4 ttl=255 time=4.969 ms

--- <gateway-ip> ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 4.026/6.975/16.802 ms
Full JA-A12 dmesg log (191 lines)
=== DMESG FULL ===
[    0.000000] Linux version 6.12.114-cip34 (builder@host) (mipsel-openipc-linux-musl-gcc.br_real (Buildroot -g0717d17) 13.3.0, GNU ld (GNU Binutils) 2.40) #2 PREEMPT Fri Nov 20 03:46:06 PST 2026
[    0.000000] CPU0 revision is: 00d00100 (Ingenic XBurst)
[    0.000000] FPU revision is: 00b70000
[    0.000000] MIPS: machine is ingenic T23N
[    0.000000] earlycon: x1000_uart0 at MMIO 0x10031000 (options '115200n8')
[    0.000000] printk: legacy bootconsole [x1000_uart0] enabled
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Reserved memory: created CMA memory pool at 0x02800000, size 24 MiB
[    0.000000] OF: reserved mem: initialized node camera@2800000, compatible id shared-dma-pool
[    0.000000] OF: reserved mem: 0x02800000..0x03ffffff (24576 KiB) map reusable camera@2800000
[    0.000000] Primary instruction cache 16kB, VIVT, 8-way, linesize 32 bytes.
[    0.000000] Primary data cache 16kB, 8-way, VIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 64kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Kernel command line: earlycon loglevel=7 console=ttyS1,115200n8 root=/dev/mtdblock3 rootfstype=squashfs ro rootwait init=/init mtdparts=jz_sfc:256k(boot),64k(env),2048k(kernel),5120k(rootfs),-(rootfs_data)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16384
[    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[    0.000000] SLUB: HWalign=32, Order=0-1, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 256
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.000000] clocksource: ingenic-ost: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000001] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.008016] Calibrating delay loop... 1397.55 BogoMIPS (lpj=6987776)
[    0.046447] pid_max: default: 32768 minimum: 301
[    0.051210] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.058571] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.068725] rcu: Hierarchical SRCU implementation.
[    0.073521] rcu: 	Max phase no-delay instances is 1000.
[    0.079374] Memory: 34224K/65536K available (3634K kernel code, 190K rwdata, 524K rodata, 1212K init, 80K bss, 6324K reserved, 24576K cma-reserved)
[    0.093241] devtmpfs: initialized
[    0.100562] futex hash table entries: 256 (order: 0, 3072 bytes, linear)
[    0.107908] pinctrl core: initialized pinctrl subsystem
[    0.114222] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.123704] /soc/i2c@10050000/sensor@30: Fixed dependency cycle(s) with /soc/isp@13300000
[    0.132024] /soc/i2c@10050000/sensor@32: Fixed dependency cycle(s) with /soc/isp@13300000
[    0.140309] /soc/isp@13300000: Fixed dependency cycle(s) with /soc/i2c@10050000/sensor@32
[    0.148589] /soc/isp@13300000: Fixed dependency cycle(s) with /soc/i2c@10050000/sensor@30
[    0.158452] /soc/i2c@10050000/sensor@30: Fixed dependency cycle(s) with /soc/isp@13300000
[    0.166768] /soc/i2c@10050000/sensor@32: Fixed dependency cycle(s) with /soc/isp@13300000
[    0.175927] /soc/i2c@10050000/sensor@32: Fixed dependency cycle(s) with /soc/isp@13300000
[    0.184353] /soc/i2c@10050000/sensor@30: Fixed dependency cycle(s) with /soc/isp@13300000
[    0.192610] /soc/isp@13300000: Fixed dependency cycle(s) with /soc/i2c@10050000/sensor@32
[    0.200945] /soc/isp@13300000: Fixed dependency cycle(s) with /soc/i2c@10050000/sensor@30
[    0.213256] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    0.223098] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    0.233093] gpio gpiochip2: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    0.245797] jz4780-dma 13420000.dma-controller: JZ4780 DMA controller initialised
[    0.255476] clocksource: Switched to clocksource ingenic-ost
[    0.263261] NET: Registered PF_INET protocol family
[    0.268475] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.276731] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.285266] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.293154] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.300913] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.308059] TCP: Hash tables configured (established 1024 bind 1024)
[    0.314563] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.321203] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.328356] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.334952] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.341562] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.347490] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.355068] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.363315] printk: legacy console [ttyS1] disabled
[    0.368647] 10031000.serial: ttyS1 at MMIO 0x10031000 (irq = 50, base_baud = 1500000) is a 16550A
[    0.377728] printk: legacy console [ttyS1] enabled
[    0.387403] printk: legacy bootconsole [x1000_uart0] disabled
[    0.417233] 5 cmdlinepart partitions found on MTD device jz_sfc
[    0.423164] Creating 5 MTD partitions on "jz_sfc":
[    0.428031] 0x000000000000-0x000000040000 : "boot"
[    0.434025] 0x000000040000-0x000000050000 : "env"
[    0.439999] 0x000000050000-0x000000250000 : "kernel"
[    0.446180] 0x000000250000-0x000000750000 : "rootfs"
[    0.452321] 0x000000750000-0x000000800000 : "rootfs_data"
[    0.459402] jz4780-i2c 10050000.i2c: Bus frequency is 100 KHz
[    0.465436] /soc/isp@13300000: Fixed dependency cycle(s) with /soc/i2c@10050000/sensor@30
[    0.473849] /soc/i2c@10050000/sensor@30: Fixed dependency cycle(s) with /soc/isp@13300000
[    0.482431] /soc/isp@13300000: Fixed dependency cycle(s) with /soc/i2c@10050000/sensor@32
[    0.490810] /soc/i2c@10050000/sensor@32: Fixed dependency cycle(s) with /soc/isp@13300000
[    0.500918] ingenic-t23-ddr 134f0000.memory-controller: mapped controller, phy and apb
[    0.515078] clk: Disabling unused clocks
[    0.522420] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[    0.534136] devtmpfs: mounted
[    0.539174] Freeing unused kernel image (initmem) memory: 1212K
[    0.545113] This architecture does not have kernel memory protection.
[    0.551620] Run /init as init process
[    0.555286]   with arguments:
[    0.555293]     /init
[    0.555300]   with environment:
[    0.555306]     HOME=/
[    0.555313]     TERM=linux
[    1.267041] jffs2: notice: (65) jffs2_build_xattr_subsystem: complete building xattr subsystem, 21 of xdatum (0 unchecked, 11 orphan) and 23 of xref (11 dead, 0 orphan) found.
[    1.310459] overlayfs: upper fs does not support tmpfile.
[    1.316858] overlayfs: upper fs does not support RENAME_WHITEOUT.
[    1.502501] random: crng init done
[    2.278984] jz4740-mmc 13450000.mmc: Got CD GPIO
[    2.305051] jz4740-mmc 13450000.mmc: Ingenic SD/MMC card driver registered
[    2.305078] jz4740-mmc 13450000.mmc: Using DMA, 4-bit mode
[    2.383495] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.385618] mmc0: new high speed SDHC card at address b36b
[    2.386330] mmcblk0: mmc0:b36b SDABC 29.1 GiB
[    2.387836]  mmcblk0:
[    2.414477] pps_core: LinuxPPS API ver. 1 registered
[    2.414498] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    2.434140] PTP clock support registered
[    2.813690] FAT-fs (mmcblk0): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    2.958039] ingenic-usb-phy 1000003c.usb-phy: supply vcc not found, using dummy regulator
[    3.085666] usbcore: registered new interface driver usbfs
[    3.085767] usbcore: registered new interface driver hub
[    3.085877] usbcore: registered new device driver usb
[    3.163004] dwc2 13500000.usb: supply vusb_d not found, using dummy regulator
[    3.165877] dwc2 13500000.usb: supply vusb_a not found, using dummy regulator
[    3.371632] dwc2 13500000.usb: DWC OTG Controller
[    3.371687] dwc2 13500000.usb: new USB bus registered, assigned bus number 1
[    3.371726] dwc2 13500000.usb: irq 21, io mem 0x13500000
[    3.371979] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.12
[    3.372006] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.372020] usb usb1: Product: DWC OTG Controller
[    3.372031] usb usb1: Manufacturer: Linux 6.12.114-cip34 dwc2_hsotg
[    3.372042] usb usb1: SerialNumber: 13500000.usb
[    3.375869] hub 1-0:1.0: USB hub found
[    3.375959] hub 1-0:1.0: 1 port detected
[    3.645893] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    3.645927] cfg80211: failed to load regulatory.db
[    3.705558] usb 1-1: new high-speed USB device number 2 using dwc2
[    3.717093] dwc2 13500000.usb: Not connected
[    3.882493] atbm6132_wifi_usb: loading out-of-tree module taints kernel.
[    3.890875] usbcore: registered new interface driver atbm6012bx
[    4.375510] usb 1-1: new high-speed USB device number 3 using dwc2
[    4.586076] usb 1-1: New USB device found, idVendor=007a, idProduct=888b, bcdDevice= 0.02
[    4.586105] usb 1-1: New USB device strings: Mfr=16, Product=32, SerialNumber=0
[    4.586119] usb 1-1: Product: AltoBeam_WIFI
[    4.586130] usb 1-1: Manufacturer: AltoBeam inc.
[    4.595606] atbm6012bx 1-1:1.0: usb device id 0x7a:0x888b
[    4.595633] atbm: asmlite probe
[    4.601749] ieee80211 phy0: chip version 0x4a, type 12
[    4.601903] ieee80211 phy0: core voltage 1.1v
[    4.899814] ieee80211 phy0: firmware download complete
[    5.008846] ieee80211 phy0: wsm init done, buffers 6 x 1648 bytes, hardware 7.0, WSM firmware [=MODEM==USB=+BLE+Oct 23 2023 14:24:24], ver 18378, build 4228, api 1060, cap 0x1104f189, config 0x8030408 0x9002fdc 0x0, stations 0x8, interfaces 0x3
[    5.056064] ieee80211 phy0: chip is 6012b, ht40 is not supported
[    5.056328] ieee80211 phy0: chip id 0x834 0x10 0x0
[    5.056357] ieee80211 phy0: chip type 6012B-X
[    5.075427] ieee80211 phy0: registered as 'phy0'
[    6.358735] ieee80211 phy0: mac <wlan-mac>
[    6.385535] ieee80211 phy0: interface 0 type 2 added
[    6.437119] NET: Registered PF_PACKET protocol family
[    8.249325] wlan0: authenticate with <ap-bssid> (local address=<wlan-mac>)
[    8.249353] wlan0: send auth to <ap-bssid> (try 1/3)
[    8.252896] wlan0: authenticated
[    8.255783] wlan0: associate with <ap-bssid> (try 1/3)
[    8.266148] wlan0: RX AssocResp from <ap-bssid> (capab=0x431 status=0 aid=3)
[    8.271771] wlan0: associated
[   12.066176] mc: Linux media interface: v0.10
[   12.141540] videodev: Linux video capture interface: v2.00
[   12.245686] platform t23-ipu-dma.0.auto: assigned reserved memory node camera@2800000
[   12.348842] tx-isp 13300000.isp: assigned reserved memory node camera@2800000
[   12.625659] input: keys as /devices/platform/keys/input/input0
[   12.781233] ingenic-trng 10072000.rng: Ingenic DTRNG driver registered
[   12.860336] sc1a4t 0-0030: supply avdd not found, using dummy regulator
[   12.865622] sc1a4t 0-0030: supply dovdd not found, using dummy regulator
[   12.865667] sc1a4t 0-0030: supply dvdd not found, using dummy regulator
[   12.955640] sc1a4t 0-0032: supply avdd not found, using dummy regulator
[   12.955834] sc1a4t 0-0032: supply dovdd not found, using dummy regulator
[   12.955881] sc1a4t 0-0032: supply dvdd not found, using dummy regulator
[   13.054942] simple-amplifier speaker-amplifier: supply VCC not found, using dummy regulator
[   13.086498] ingenic-helix-v4l2 13100000.video-codec: assigned reserved memory node camera@2800000
[  124.434049] t23-isp-core0: =================  START STATUS  =================
[  124.434073] t23-isp-core0: ==================  END STATUS  ==================
[  124.449593] t23-isp-core1: =================  START STATUS  =================
[  124.449617] t23-isp-core1: ==================  END STATUS  ==================
[  124.462116] sc1a4t 0-0030: =================  START STATUS  =================
[  124.462142] sc1a4t 0-0030: ==================  END STATUS  ==================
[  124.469376] sc1a4t 0-0032: =================  START STATUS  =================
[  124.469401] sc1a4t 0-0032: ==================  END STATUS  ==================
[  124.493209] t23-motor: =================  START STATUS  =================
[  124.493236] t23-motor: ==================  END STATUS  ==================
[  124.518210] t23-motor: =================  START STATUS  =================
[  124.518237] t23-motor: ==================  END STATUS  ==================
[  146.840359] use of bytesused == 0 is deprecated and will be removed in the future,
[  146.840380] use the actual size instead.
[ 1258.834284] warning: `iwconfig' uses wireless extensions which will stop working for Wi-Fi 7 hardware; use nl80211
Camera 0 RTSP/JPEG, Camera 1 (/dev/video2) live NV12 capture, and Audio (arecord/aplay) logs
=== FFPROBE RTSP STREAM 0 ===
codec_name=h264
profile=High
width=1280
height=720
pix_fmt=yuv420p
r_frame_rate=15/1
avg_frame_rate=15/1
=== FFMPEG -err_detect explode 3s ===
    title           : librtsp
  Duration: N/A, start: 0.066667, bitrate: N/A
  Stream #0:0: Video: h264 (High), yuv420p(progressive), 1280x720, 15 fps, 15 tbr, 90k tbn
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
Output #0, null, to 'pipe:':
  Metadata:
    title           : librtsp
    encoder         : Lavf60.16.100
  Stream #0:0: Video: wrapped_avframe, yuv420p(progressive), 1280x720, q=2-31, 200 kb/s, 15 fps, 15 tbn
    Metadata:
      encoder         : Lavc60.31.102 wrapped_avframe
frame=    0 fps=0.0 q=-0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
frame=   24 fps=0.0 q=-0.0 size=N/A time=00:00:01.53 bitrate=N/A speed=2.23x    
frame=   32 fps= 26 q=-0.0 size=N/A time=00:00:02.06 bitrate=N/A speed=1.69x    
frame=   40 fps= 23 q=-0.0 size=N/A time=00:00:02.60 bitrate=N/A speed=1.48x    
[out#0/null @ 0x6003c03ba340] video:22kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
frame=   46 fps= 21 q=-0.0 Lsize=N/A time=00:00:02.93 bitrate=N/A speed=1.32x    
RTSP_3S_ERR_EXIT=0
=== JPEG SNAPSHOT METADATA (TEXT ONLY) ===
bytes=20160
codec_name=mjpeg
width=1280
height=720
pix_fmt=yuvj420p
lavfi.signalstats.YMIN=13
lavfi.signalstats.YAVG=87.698
lavfi.signalstats.YMAX=223

=== STOP DIVINUS FOR CMA HEADROOM ===
Stopping divinus: OK
CmaTotal:          24576 kB
CmaFree:           17056 kB
=== RUN CAM1_PROBE /dev/video2 ===
device=/dev/video2 driver=tx-isp card=T23 capture ch1 bus=platform:13300000.isp caps=0x24200001
fmt=NV12 1280x720 bytesperline=1280 sizeimage=1382400
frame 0: seq=0 bytesused=1382400 ts=1304.874445 luma(min=16 avg=87.67 max=222)
frame 1: seq=1 bytesused=1382400 ts=1304.941112 luma(min=16 avg=88.11 max=222)
frame 2: seq=2 bytesused=1382400 ts=1305.007780 luma(min=16 avg=88.17 max=223)
frame 3: seq=3 bytesused=1382400 ts=1305.074448 luma(min=16 avg=88.20 max=223)
frame 4: seq=4 bytesused=1382400 ts=1305.141115 luma(min=16 avg=88.20 max=223)
CAM1_PROBE_EXIT=0
=== DMESG TAIL AFTER CAM1 ===
[  124.434049] t23-isp-core0: =================  START STATUS  =================
[  124.434073] t23-isp-core0: ==================  END STATUS  ==================
[  124.449593] t23-isp-core1: =================  START STATUS  =================
[  124.449617] t23-isp-core1: ==================  END STATUS  ==================
[  124.462116] sc1a4t 0-0030: =================  START STATUS  =================
[  124.462142] sc1a4t 0-0030: ==================  END STATUS  ==================
[  124.469376] sc1a4t 0-0032: =================  START STATUS  =================
[  124.469401] sc1a4t 0-0032: ==================  END STATUS  ==================
[  124.493209] t23-motor: =================  START STATUS  =================
[  124.493236] t23-motor: ==================  END STATUS  ==================
[  124.518210] t23-motor: =================  START STATUS  =================
[  124.518237] t23-motor: ==================  END STATUS  ==================
[  146.840359] use of bytesused == 0 is deprecated and will be removed in the future,
[  146.840380] use the actual size instead.
[ 1258.834284] warning: `iwconfig' uses wireless extensions which will stop working for Wi-Fi 7 hardware; use nl80211
=== RESTART DIVINUS ===
Starting divinus: OK
=== POST CAM1 SNAPSHOT CHECK ===
bytes=20160
codec_name=mjpeg
width=1280
height=720

=== ARECORD ON BOARD ===
Recording WAVE '/tmp/hw_audio.wav' : Signed 16 bit Little Endian, Rate 16000 Hz, Mono
-rw-------    1 root     root         64044 Nov 20 12:11 /tmp/hw_audio.wav
=== FFPROBE WAV ===
codec_name=pcm_s16le
sample_rate=16000
channels=1
duration=2.000000
size=64044
bit_rate=256176
=== FFMPEG VOLUMEDETECT ===
[Parsed_volumedetect_0 @ 0x5f35e5a1f700] n_samples: 0
[Parsed_volumedetect_0 @ 0x5f35e5a25a40] n_samples: 32000
[Parsed_volumedetect_0 @ 0x5f35e5a25a40] mean_volume: -55.4 dB
[Parsed_volumedetect_0 @ 0x5f35e5a25a40] max_volume: -40.4 dB
[Parsed_volumedetect_0 @ 0x5f35e5a25a40] histogram_40db: 271
=== APLAY ON BOARD ===
Playing WAVE '/tmp/hw_audio.wav' : Signed 16 bit Little Endian, Rate 16000 Hz, Mono
JA-A12 on-board v4l2-compliance results (v4l-utils 1.24.1)
>>> MEDIA /dev/media0 (T23 capture) <<<
Total for tx-isp device /dev/media0: 8, Succeeded: 8, Failed: 0, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video1: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video2: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video3: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video4: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video5: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video6: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video7: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video8: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video9: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video10: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video11: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video12: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video13: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video14: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video15: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video16: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video17: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video18: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video19: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video20: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video21: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video22: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video23: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video24: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video25: 47, Succeeded: 46, Failed: 1, Warnings: 0
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video26: 47, Succeeded: 46, Failed: 1, Warnings: 0
Total for tx-isp device /dev/v4l-subdev1: 143, Succeeded: 143, Failed: 0, Warnings: 0
Total for tx-isp device /dev/v4l-subdev2: 143, Succeeded: 143, Failed: 0, Warnings: 0
Total for device /dev/v4l-subdev3: 44, Succeeded: 44, Failed: 0, Warnings: 0
Total for device /dev/v4l-subdev4: 44, Succeeded: 44, Failed: 0, Warnings: 0
Grand Total for tx-isp device /dev/media0: 1604, Succeeded: 1578, Failed: 26, Warnings: 0
EXIT_media0=1
>>> MEDIA /dev/media1 (Ingenic T23 PTZ Motor) <<<
Total for ptz-motor device /dev/media1: 8, Succeeded: 8, Failed: 0, Warnings: 0
Total for ptz-motor device /dev/v4l-subdev0: 45, Succeeded: 45, Failed: 0, Warnings: 0
Grand Total for ptz-motor device /dev/media1: 53, Succeeded: 53, Failed: 0, Warnings: 0
>>> PTZ /dev/v4l-subdev0 (t23-motor) <<<
Total for ptz-motor device /dev/v4l-subdev0: 45, Succeeded: 45, Failed: 0, Warnings: 0
EXIT_PTZ=0
>>> ISP /dev/video1 -s 5 <<<
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for tx-isp device /dev/video1: 54, Succeeded: 53, Failed: 1, Warnings: 0
EXIT_ISP_S=0
>>> IPU /dev/video0 (T23 IPU) <<<
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for t23-ipu device /dev/video0: 46, Succeeded: 45, Failed: 1, Warnings: 0
EXIT_IPU=0
>>> IPU /dev/video0 (T23 IPU) -s 5 <<<
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for t23-ipu device /dev/video0: 53, Succeeded: 52, Failed: 1, Warnings: 0
EXIT_IPU_S=0
>>> HELIX /dev/video27 (ingenic-helix-v4l2) <<<
		fail: v4l2-compliance.cpp(719): found_bit
		fail: v4l2-compliance.cpp(719): found_bit
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for ingenic-helix-v device /dev/video27: 46, Succeeded: 43, Failed: 3, Warnings: 0
EXIT_HELIX=0
>>> HELIX /dev/video27 (ingenic-helix-v4l2) -s 5 <<<
		fail: v4l2-compliance.cpp(719): found_bit
		fail: v4l2-compliance.cpp(719): found_bit
		fail: v4l2-test-buffers.cpp(703): check_0(crbufs.reserved, sizeof(crbufs.reserved))
Total for ingenic-helix-v device /dev/video27: 51, Succeeded: 48, Failed: 3, Warnings: 0
EXIT_HELIX_S=0
>>> DMESG POST COMPLIANCE <<<

QEMU Verification (12dfae2605a3)

  • GC2053 / t23_lite (run_openipc_e2e.py): ALL E2E CHECKS PASSED! (MemAvailable = 16660 kB, 1920x1080 MJPEG YMIN=1.0 YAVG=68.0548 YMAX=255.0, 15 RTSP H.264 frames decoded with 0 errors, ingenic-sadc scale 0.439453125, t23-audio playback present).
  • JA-A12 (t23-qemu dual sc1a4t + PTZ): 1280x720 MJPEG (YMIN=0.0 YAVG=78.4403 YMAX=255.0), 15 RTSP H.264 frames (-err_detect explode), PTZ_LEGACY_SYSFS=ABSENT, identical v4l2-compliance pass/fail counts to real hardware, clean dmesg.
  • sc2336 single-sensor (t23-qemu-sc2336): 1920x1080 MJPEG (YMIN=1.0 YAVG=57.9675 YMAX=255.0), 15 RTSP H.264 frames (-err_detect explode), sensor_sc2336p + smartsens_common + t23-ipa + divinus active, clean dmesg.
  • Packaged release 8 MiB image (ja-a12-t23n-initramfs-8m-20261013.bin): Booted to login with sensor_sc1a4t (0-0030 & 0-0032), ptz_motor (t23-motor), t23-ipa, and divinus initialized cleanly.
QEMU multi-sensor & v4l2-compliance verification output
=== SUMMARY GREP ===
================ TEST 2 & 4: JA-A12 DUAL-SENSOR + PTZ + V4L2-COMPLIANCE ================
JPEG snapshot (snap.jpg): codec_name=mjpeg width=1280 height=720
PASS snapshot signalstats: {'YMIN': 0.0, 'YAVG': 78.4403, 'YMAX': 255.0}
PASS RTSP H.264 15 frames decoded cleanly (-err_detect explode)
=== V4L SYSFS ===


=== MEDIA SYSFS ===


=== PTZ LEGACY SYSFS ===


PTZ_LEGACY_SYSFS=ABSENT


=== IPA LOGS ===


=== DMESG CHECK ===


>>> MEDIA0 <<<


Total for tx-isp device /dev/media0: 8, Succeeded: 8, Failed: 0, Warnings: 0


Total for tx-isp device /dev/video1: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video2: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video3: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video4: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video5: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video6: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video7: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video8: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video9: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video10: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video11: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video12: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video13: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video14: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video15: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video16: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video17: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video18: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video19: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video20: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video21: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video22: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video23: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video24: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video25: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/video26: 47, Succeeded: 46, Failed: 1, Warnings: 0


Total for tx-isp device /dev/v4l-subdev1: 143, Succeeded: 143, Failed: 0, Warnings: 0


Total for tx-isp device /dev/v4l-subdev2: 143, Succeeded: 143, Failed: 0, Warnings: 0


Total for device /dev/v4l-subdev3: 44, Succeeded: 44, Failed: 0, Warnings: 0


Total for device /dev/v4l-subdev4: 44, Succeeded: 44, Failed: 0, Warnings: 0


Grand Total for tx-isp device /dev/media0: 1604, Succeeded: 1578, Failed: 26, Warnings: 0


EXIT_MEDIA0=1


>>> MEDIA1 <<<


Total for ptz-motor device /dev/media1: 8, Succeeded: 8, Failed: 0, Warnings: 0


Total for ptz-motor device /dev/v4l-subdev0: 45, Succeeded: 45, Failed: 0, Warnings: 0


Grand Total for ptz-motor device /dev/media1: 53, Succeeded: 53, Failed: 0, Warnings: 0


EXIT_MEDIA1=0


>>> PTZ /dev/v4l-subdev0 (t23-motor) <<<


Total for ptz-motor device /dev/v4l-subdev0: 45, Succeeded: 45, Failed: 0, Warnings: 0


EXIT_PTZ=0


>>> ISP /dev/video1 -s 5 <<<


Total for tx-isp device /dev/video1: 54, Succeeded: 53, Failed: 1, Warnings: 0


EXIT_ISP_S=1


>>> /dev/video0 (T23 IPU) <<<


Total for t23-ipu device /dev/video0: 46, Succeeded: 45, Failed: 1, Warnings: 0


EXIT_IPU=1


>>> /dev/video0 (T23 IPU) -s 5 <<<


Total for t23-ipu device /dev/video0: 53, Succeeded: 52, Failed: 1, Warnings: 0


EXIT_IPU_S=1


>>> /dev/video27 (ingenic-helix-v4l2) <<<


Total for ingenic-helix-v device /dev/video27: 46, Succeeded: 43, Failed: 3, Warnings: 0


EXIT_HELIX=1


>>> /dev/video27 (ingenic-helix-v4l2) -s 5 <<<


Total for ingenic-helix-v device /dev/video27: 51, Succeeded: 48, Failed: 3, Warnings: 0


EXIT_HELIX_S=1


>>> DMESG POST COMPLIANCE <<<


================ TEST 3: SC2336 SINGLE-SENSOR ================
JPEG snapshot (snap.jpg): codec_name=mjpeg width=1920 height=1080
PASS snapshot signalstats: {'YMIN': 1.0, 'YAVG': 57.9675, 'YMAX': 255.0}
PASS RTSP H.264 15 frames decoded cleanly (-err_detect explode)
PASS: SC2336 QEMU test PASSED!
================ TEST 2B: RELEASE JA-A12 IMAGE BOOT CHECK ================
PASS: Packaged release JA-A12 8 MiB image booted & initialized cleanly!

=== SC2336 & RELEASE SECTIONS ===
================ TEST 3: SC2336 SINGLE-SENSOR ================
Launching QEMU: <workspace>/build/qemu-bench/qemu-system-mipsel -M t23,variant=t23n,audiodev=snd0,flash-file=<verify>/sc2336/flash-sc2336.bin,flash-type=zb25vq64,sensor=sc2336 -m 64M -audiodev none,id=snd0 -nic user,restrict=on,hostfwd=tcp:127.0.0.1:58163-:80,hostfwd=tcp:127.0.0.1:58159-:554 -display none -serial stdio
JPEG snapshot (snap.jpg): codec_name=mjpeg width=1920 height=1080
PASS snapshot signalstats: {'YMIN': 1.0, 'YAVG': 57.9675, 'YMAX': 255.0}
PASS RTSP H.264 15 frames decoded cleanly (-err_detect explode)
SC2336 GUEST CHECKS:
sensor_sc2336p         12288  0 


smartsens_common       16384  3 sensor_sc2336p


tx_isp                114688  6 


videobuf2_vmalloc      12288  1 tx_isp


v4l2_fwnode            16384  2 smartsens_common,tx_isp


v4l2_async             16384  3 smartsens_common,tx_isp,v4l2_fwnode


videobuf2_dma_contig    16384  6 ingenic_helix_v4l2,tx_isp,ingenic_ipu


videobuf2_v4l2         20480  4 ingenic_helix_v4l2,tx_isp,ingenic_ipu,v4l2_mem2mem


videobuf2_common       36864  8 ingenic_helix_v4l2,tx_isp,videobuf2_vmalloc,ingenic_ipu,v4l2_mem2mem,videobuf2_dma_contig,videobuf2_memops,videobuf2_v4l2


videodev              176128 16 ingenic_helix_v4l2,smartsens_common,ptz_motor,tx_isp,v4l2_fwnode,v4l2_async,ingenic_ipu,v4l2_mem2mem,videobuf2_v4l2


mc                     28672  8 smartsens_common,ptz_motor,tx_isp,v4l2_async,v4l2_mem2mem,videobuf2_v4l2,videobuf2_common,videodev


  540 root      0:02 /usr/sbin/t23-ipa -i 0 -c /etc/sensor/sc2336-t23.yaml -F 15 -f 0 -d auto -L ir:illumination


  546 root      0:11 /usr/bin/divinus


  609 root      0:00 grep -E t23-ipa|divinus


[   42.366092] tx-isp 13300000.isp: assigned reserved memory node camera@2800000



PASS: SC2336 QEMU test PASSED!

================ TEST 2B: RELEASE JA-A12 IMAGE BOOT CHECK ================
Launching QEMU: <workspace>/build/qemu-bench/qemu-system-mipsel -M t23,variant=t23n,audiodev=snd0,flash-file=<verify>/ja-a12-release/release-copy.bin,flash-type=zb25vq64,sensor=sc1a4t,sensor1=sc1a4ts1 -m 64M -audiodev none,id=snd0 -display none -serial stdio
RELEASE IMAGE CHECK:
sensor_sc1a4t          12288  0 


smartsens_common       16384  4 sensor_sc1a4t


ptz_motor              20480  0 


tx_isp                114688  6 


videobuf2_vmalloc      12288  1 tx_isp


v4l2_fwnode            16384  2 smartsens_common,tx_isp


v4l2_async             16384  3 smartsens_common,tx_isp,v4l2_fwnode


videobuf2_dma_contig    16384  6 ingenic_helix_v4l2,tx_isp,ingenic_ipu


videobuf2_v4l2         20480  4 ingenic_helix_v4l2,tx_isp,ingenic_ipu,v4l2_mem2mem


videobuf2_common       36864  8 ingenic_helix_v4l2,tx_isp,videobuf2_vmalloc,ingenic_ipu,v4l2_mem2mem,videobuf2_dma_contig,videobuf2_memops,videobuf2_v4l2


videodev              176128 15 ingenic_helix_v4l2,smartsens_common,ptz_motor,tx_isp,v4l2_fwnode,v4l2_async,ingenic_ipu,v4l2_mem2mem,videobuf2_v4l2


mc                     28672  8 smartsens_common,ptz_motor,tx_isp,v4l2_async,v4l2_mem2mem,videobuf2_v4l2,videobuf2_common,videodev


  499 root      0:11 /usr/sbin/t23-ipa -i 0 -c /etc/sensor/sc1a4t-t23.yaml -F 15 -f 0 -d auto -L ir:illumination


  504 root      0:03 /usr/bin/divinus


  558 root      0:00 grep -E t23-ipa|divinus


/sys/class/video4linux/v4l-subdev0: t23-motor


/sys/class/video4linux/v4l-subdev1: t23-isp-core0


/sys/class/video4linux/v4l-subdev2: t23-isp-core1


/sys/class/video4linux/v4l-subdev3: sc1a4t 0-0030


/sys/class/video4linux/v4l-subdev4: sc1a4t 0-0032


/sys/class/video4linux/video0: T23 IPU


/sys/class/video4linux/video1: T23 video0


/sys/class/video4linux/video10: T23 scaled1.1


/sys/class/video4linux/video11: T23 osd0.0


/sys/class/video4linux/video12: T23 osd0.1


/sys/class/video4linux/video13: T23 osd0.2


/sys/class/video4linux/video14: T23 osd0.3


/sys/class/video4linux/video15: T23 osd0.4


/sys/class/video4linux/video16: T23 osd0.5


/sys/class/video4linux/video17: T23 osd0.6


/sys/class/video4linux/video18: T23 osd0.7


/sys/class/video4linux/video19: T23 osd1.0


/sys/class/video4linux/video2: T23 video1


/sys/class/video4linux/video20: T23 osd1.1


/sys/class/video4linux/video21: T23 osd1.2


/sys/class/video4linux/video22: T23 osd1.3


/sys/class/video4linux/video23: T23 osd1.4


/sys/class/video4linux/video24: T23 osd1.5


/sys/class/video4linux/video25: T23 osd1.6


/sys/class/video4linux/video26: T23 osd1.7


/sys/class/video4linux/video27: ingenic-helix-v4l2


/sys/class/video4linux/video3: T23 params0


/sys/class/video4linux/video4: T23 stats0


/sys/class/video4linux/video5: T23 params1


/sys/class/video4linux/video6: T23 stats1


/sys/class/video4linux/video7: T23 scaled0


/sys/class/video4linux/video8: T23 scaled0.1


/sys/class/video4linux/video9: T23 scaled1


[   29.168833] tx-isp 13300000.isp: assigned reserved memory node camera@2800000


[   34.061183] sc1a4t 0-0030: supply avdd not found, using dummy regulator


[   34.075435] sc1a4t 0-0030: supply dovdd not found, using dummy regulator


[   34.075824] sc1a4t 0-0030: supply dvdd not found, using dummy regulator


[   34.203499] sc1a4t 0-0032: supply avdd not found, using dummy regulator


[   34.204258] sc1a4t 0-0032: supply dovdd not found, using dummy regulator


[   34.204453] sc1a4t 0-0032: supply dvdd not found, using dummy regulator



PASS: Packaged release JA-A12 8 MiB image booted & initialized cleanly!

@openipc-ai openipc-ai left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is a big step up. I checked 12dfae26 against 337e474a, and all eight inline points from the media review are fixed:

  • ext params are copied into a kernel shadow in buf_prepare, and check + merge only ever see that copy;
  • V4L2_CID_USER_T23_BASE moved to +0x1250, which is free in current mainline;
  • PTZ absolute controls are VOLATILE | EXECUTE_ON_WRITE, and the motor is now a MEDIA_ENT_F_LENS subdev with no fake video node;
  • gc2053 powers off exactly once on the error path;
  • Helix sends LAST/EOS whatever the encode result;
  • the IPU panic() is gone;
  • the ISP bounce buffer grows when needed;
  • the ISP binding now matches what probe requires.

I also checked a few of the summary points: MDNS top[] is masked, the Helix workqueue is destroyed from the final kref release, the SmartSens drivers are down to 3 with the chip ID checked in probe, and the duplicate UAPI header is gone. The jz4740_mmc change keeps END_CMD_RES-only behaviour for every non-T23 SoC.

On my side, a W=1 build of t23_defconfig (vmlinux, 129 modules, all T23 DTBs) gives no warnings in PR files, and checkpatch --strict over the 78 commits has 0 errors. Together with your JA-A12 results (both sensors binding, 0-error RTSP decode, NV12 capture on the second camera, audio, Wi-Fi, and v4l2-compliance with no warnings), I'm happy to approve this for the ingenic-t23-6.12 branch.

Small follow-ups, none of them blocking:

  1. ingenic,t23-helix.yaml still doesn't list resets under required, but helix_drv.c:218 uses devm_reset_control_get_exclusive().
  2. The earlycon dedup you mentioned (drop the T23 entry or the x1000 fallback compatible).
  3. The crbufs.reserved failure should go away with a current v4l-utils, since 1.24.1 predates the max_num_buffers field. A run with a newer version would confirm it isn't a driver issue.
  4. If this ever goes upstream: split H.264 and JPEG into separate Helix m2m nodes, and expect another review round on the reworked SmartSens common code and PTZ lens driver. I only spot-checked those here.

@openipc-ai
openipc-ai merged commit 89719dd into OpenIPC:ingenic-t23-6.12 Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants