ssc377_lite: add TP-Link Tapo C120 device profile (#162)

SSC377, SmartSens SC430AI, 16 MB NOR, RTL8188FTV on USB. The generic
ssc377_lite defconfig with the 16 MB layout, the rtl8188fu driver and the
SAE-capable wpa_supplicant-openipc; the Wi-Fi module's power gate (GPIO 42)
in the wireless/usb entry; IR-cut, backlight and IR LED pins; the SC430AI
IQ file.

Depends on OpenIPC/sensors#7 (driver), OpenIPC/firmware#2445 (loader entry)
and OpenIPC/firmware#2449 (supplicant package).

Co-authored-by: nzzane <12163646+nzzane@users.noreply.github.com>
This commit is contained in:
Zane
2026-09-19 15:44:14 +03:00
committed by GitHub
co-authored by nzzane
parent c98adedbeb
commit 5e1bb92866
7 changed files with 162 additions and 0 deletions
@@ -0,0 +1,33 @@
#!/bin/sh
# Tapo C120: majestic drives the IR-cut filter on GPIO 81 (1 = day, 0 = night) but has no
# IR-LED output in this build, so mirror the night state onto the IR LEDs (GPIO 12 + 13).
PID=/var/run/irled.pid
case "$1" in
start)
for p in 12 13; do
[ -d /sys/class/gpio/gpio$p ] || echo $p > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio$p/direction
done
(
last=
while :; do
v=$(cat /sys/class/gpio/gpio81/value 2>/dev/null)
if [ -n "$v" ] && [ "$v" != "$last" ]; then
for p in 12 13; do echo $((1 - v)) > /sys/class/gpio/gpio$p/value; done
last=$v
fi
sleep 3
done
) &
echo $! > $PID
;;
stop)
[ -f $PID ] && kill "$(cat $PID)" 2>/dev/null; rm -f $PID
;;
restart)
$0 stop; $0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"; exit 1
;;
esac
@@ -0,0 +1,16 @@
#!/bin/sh
set_gpio() {
[ "$2" -eq 1 ] && gpio set $1 || gpio clear $1
sleep 1
}
# The RTL8188FTV sits on a USB daughterboard whose power is gated by GPIO 42
if [ "$1" = "rtl8188fu-tapo-c120" ]; then
set_gpio 42 1
sleep 2
modprobe 8188fu
exit 0
fi
exit 1
@@ -0,0 +1,27 @@
#!/bin/sh
#
# Perform basic settings on a known IP camera
#
#
# Set custom upgrade url
#
fw_setenv upgrade 'https://github.com/OpenIPC/builder/releases/download/latest/ssc377_lite_tp-link-tapo-c120-nor.tgz'
#
#
# Set custom majestic settings
#
cli -s .nightMode.irCutPin1 81
cli -s .nightMode.irCutSingleInvert true
cli -s .nightMode.backlightPin 14
cli -s .nightMode.colorToGray true
cli -s .audio.codec opus
#
#
# Set wlan device and credentials if need
#
fw_setenv wlandev rtl8188fu-tapo-c120
fw_setenv sensor sc430ai
#fw_setenv wlanssid Router
#fw_setenv wlanpass 12345678
exit 0
@@ -0,0 +1,17 @@
/etc/sensors/gc4653.bin
/etc/sensors/imx335.bin
/etc/sensors/imx415.bin
/etc/sensors/os04a10.bin
/etc/sensors/sc401ai.bin
/etc/sensors/sc830ai.bin
#
/lib/modules/5.10.61/sigmastar/sensor_gc4653_mipi.ko
/lib/modules/5.10.61/sigmastar/sensor_imx335_mipi.ko
/lib/modules/5.10.61/sigmastar/sensor_imx415_mipi.ko
/lib/modules/5.10.61/sigmastar/sensor_os04a10_mipi.ko
/lib/modules/5.10.61/sigmastar/sensor_sc401ai_mipi.ko
/lib/modules/5.10.61/sigmastar/sensor_sc4336p_mipi.ko
/lib/modules/5.10.61/sigmastar/sensor_sc450ai_mipi.ko
/lib/modules/5.10.61/sigmastar/sensor_sc501ai_mipi.ko
/lib/modules/5.10.61/sigmastar/sensor_sc830ai_mipi.ko
/lib/modules/5.10.61/sigmastar/sensor_sc850sl_mipi.ko