From nobody Fri Nov 14 04:21:12 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4d73qW4tMzz6Gsj6 for ; Fri, 14 Nov 2025 04:21:27 +0000 (UTC) (envelope-from freebsd-hackers-freebsd-org952@ketas.si.pri.ee) Received: from mail.ketas.si.pri.ee (d004-fea2-0bff-021e-13e8-8437-07d0-2001.dyn.estpak.ee [IPv6:2001:7d0:8437:13e8:21e:bff:fea2:d004]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4d73qV2n7Qz3K8n for ; Fri, 14 Nov 2025 04:21:26 +0000 (UTC) (envelope-from freebsd-hackers-freebsd-org952@ketas.si.pri.ee) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ketas.si.pri.ee header.s=ketas-si-pri-ee-20240416002854-4096 header.b=fWfJhTam; dmarc=pass (policy=reject) header.from=ketas.si.pri.ee; spf=pass (mx1.freebsd.org: domain of freebsd-hackers-freebsd-org952@ketas.si.pri.ee designates 2001:7d0:8437:13e8:21e:bff:fea2:d004 as permitted sender) smtp.mailfrom=freebsd-hackers-freebsd-org952@ketas.si.pri.ee X-Original-To: freebsd-hackers@freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ketas.si.pri.ee; s=ketas-si-pri-ee-20240416002854-4096; t=1763094073; bh=fIoNM2ohR4XR6dxImpHFmRMk0if2FdfwgRFxgrFn5bA=; h=Date:From:To:Subject:In-Reply-To:References; b=fWfJhTam/QzC9EfMdR6/0hZv8ZCIMsXT/rsennjBhRi2Sqi++q5bZmdDfxX+VeQHu RqgWjWUE5UPS888LsTC/rwjmVlM4q/8F/uWc9LaujuhaYlc1S9AB4bnluqY9CKUp3T qpUp2skNjZYojgB39ym9/XnxkC3CKupVV6BelqiOdxamNVkr65cWOhm8ctrqUKwMWU 8vPGfBOJx2nn+1xIkgHeHmSF5cfxYspqykJqvQXWxluEsoUYXQnxNqyvPQM41728uK IkXfKVpIs/OcmWUYVGnSvAbW8PPL5dYAMKC9WavFsgxBzgGTFyE1SUTeW67AQRDXMG ybY3+6F6/c49EvpyYuih2PxlsfdLVnJ2p55fX5MbVitUr+frN996vICfazMvdn9hAQ OM5o0O3GQxKeTwHDJZzwbsb9Es0ltgUx60b7TkGB+q0AeegLY20vvc4cAVCvt414VB lTWuwlEsAAhTM4erZeKOZhZf+1hcJ1I+7NfG4yUqSJg+yWK7987bKTyZPR1Fmh6B/k xR8abqo5hq/Gw2IZykLtpQR7Nc57H3949HbhGiPvEgzxyFvjQ6vFfvwyP9Yk0oUMwM 9wrfc5ozn8Ygw6xSPkivH6wtLlq4vBWbuGUh1vR6ytfxhFSpUeMESbg9lV/+wauy1C 1IEPQtW4O0FS1IMS/Gtpi80g= Received: from ehlo.thunderbird.net (0115-0000-0000-0000-13c8-8437-07d0-2001.dyn.estpak.ee [IPv6:2001:7d0:8437:13c8::115]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ketas.si.pri.ee (Postfix) with ESMTPSA id 22ED85B34E0 for ; Fri, 14 Nov 2025 06:21:13 +0200 (EET) Date: Fri, 14 Nov 2025 06:21:12 +0200 From: Sulev-Madis Silber To: freebsd-hackers@freebsd.org Subject: Re: addressable led driver User-Agent: K-9 Mail for Android In-Reply-To: <4DE06290-81C0-4D21-8919-5A39B1DB3949@dons.net.au> References: <4DE06290-81C0-4D21-8919-5A39B1DB3949@dons.net.au> Message-ID: List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ++ X-Spamd-Result: default: False [2.05 / 15.00]; HFILTER_HOSTNAME_5(3.00)[d004-fea2-0bff-021e-13e8-8437-07d0-2001.dyn.estpak.ee]; NEURAL_HAM_MEDIUM(-0.99)[-0.986]; NEURAL_SPAM_LONG(0.94)[0.945]; DMARC_POLICY_ALLOW(-0.50)[ketas.si.pri.ee,reject]; ONCE_RECEIVED(0.20)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:7d0:8437:1300::/56]; R_DKIM_ALLOW(-0.20)[ketas.si.pri.ee:s=ketas-si-pri-ee-20240416002854-4096]; NEURAL_HAM_SHORT(-0.11)[-0.114]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[ketas.si.pri.ee:+] X-Rspamd-Queue-Id: 4d73qV2n7Qz3K8n so i did read the chatgpt driver looks like drivers i read (where this info probably came from, including s= pkr i didn't look yet), character device for data, ioctl for config, bitban= ging and sleep that i don't really get (binary math and cpus are hard) that aside soc is h3, i don't know how well it keeps timings=2E it's ability to keep = actual wall clock time without is bs=2E or is it it's rtc i have a beaglebone with really old fbsd and it's prus i have never tried= =2E new beaglebone doesn't yet work iirc there's always option to go dedicated uc way and use (usb) uarts or usb di= rect but what are realistic results i could get from direct control? i'm aware = that somehow spi and dma could help there's only few spis on h3=2E actually how do they even work? under fbsd i mean i could run out of real hw spis but those signals don't travel that= far anyway so maybe it's enough=2E my idea is not driving screen amount of= leds right now if cpu speed changing would make it bad, could i lock it? would that cause= too much heat? if cpu needs to be unused, maybe i could run it without encryption on netw= ork side if it helps=2E even if only during times i drive the leds=2E for n= etworking i plan to use soc internal eth i'm not really fully getting it all=2E all i know is, this is not a realti= me system=2E it has multiple cpu cores, etc=2E also does other tasks but if i go full gpio software control=2E how much could i dri ve? in whic= h config? would the longer data stream per one gpio be worse or better than= many concurrent streams? i mean i once wrote ws2801 driver in perl with libgpio that ran on bbb=2E = iirc kind of worked similar to old https://freebsdfoundation=2Eorg/our-work/events/blog/blog-post/building-a-= physical-freebsd-build-status-dashboard/ but those things are so tolerant you could even finger-bitbang it but here i don't know=2E actually i read that ws2812 is somewhat tolerant = too, factory datasheet is just for ref but i don't know=2E maybe someone else wants to play=2E get apa106 leds, s= hove on random io, even 3=2E3v vcc iirc worked=2E especially this time of y= ear the non-entertainment use case would be maybe multicolor status leds=2E wh= ich people with colorblindness consider as devil's work, i heard but yeah=2E i'm interested in it main type of leds i will see myself using is long cable where at each 20cm= you have milky epoxy blob with led in it=2E they look very much like regul= ar christmas lights and you could get them lately at 100=E2=82=AC per 1000 = leds roll so i was thinking how well fbsd could direct drive them as it would be nic= e it i could do this without external hw the other options i'm aware (all that arduino, fastled, wled, etc) but i w= as curious about this method as i love fbsd :p