devices: add CP Plus CP-UNC-TA21L2C (gk7205v200_lite, SC223A) (#106)

Dahua-OEM 2 MP camera. The SC223A is on hardware I2C0 routed to the
VI-RAW pads (0x112c0060/0x64 func2) rather than the default mipi-sensor
pads (0x30/0x34 func1) the SDK probes, and needs a 27 MHz MCLK
(0x120100f0=0x19; SDK default 0x11/div4 leaves it unresponsive).
S71devmem re-muxes the pads, selects the SENSOR_RSTN reset (GPIO8_7
func2) and fixes MCLK after S70vendor/load_goke; the stock
open_sensor_i2c then reaches the sensor over /dev/i2c-0. No kernel
module needed.

Verified on hardware: chip-id 0xcb3e over HW I2C0, MIPI lock 1920x1080
zero errors, majestic streams correct colour 1080p.

Co-authored-by: build <build@local>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Adarsh
2026-06-27 07:37:44 +03:00
committed by GitHub
co-authored by build Claude Opus 4.8
parent d6a1c32761
commit edb7251bf3
7 changed files with 217 additions and 0 deletions
@@ -0,0 +1,33 @@
#!/bin/sh
#
# Perform basic settings on a known IP camera
#
#
# Set sensor
#
fw_setenv sensor sc223a
#
# Set custom upgrade url
#
fw_setenv upgrade 'https://github.com/OpenIPC/builder/releases/download/latest/gk7205v200_lite_cpplus-cp-unc-ta21l2c-nor.tgz'
#
#
# Set custom majestic settings
#
cli -s .system.maxFps 30
cli -s .video0.fps 30
cli -s .video0.codec h265
cli -s .osd.enabled true
cli -s .osd.template "OpenIPC | %F %T %Z"
#
# Night mode / IR-cut and audio: the GPIO pins for the IR-cut filter and
# IR LEDs on this board are not characterised yet, so they are left at
# defaults (TODO).
#
#
# This device is wired-only (no wlan).
#
adduser viewer -s /bin/false -D -H
echo viewer:123456 | chpasswd
#
exit 0