From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47EA6606A31A for ; Tue, 1 Dec 2026 05:53:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=buildroot.org header.i=@buildroot.org header.a=rsa-sha256 header.s=default header.b=NtI45qwN; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=z820rXT8 Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 1B53C60DA4; Tue, 1 Dec 2026 05:53:10 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id BYgNEXqXyw-f; Tue, 1 Dec 2026 05:53:07 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org 465806069C Authentication-Results: smtp3.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796104387; b=gkeioEArJ2qdeoHTI59DpXnlS0TNXaUC8BommXZKd0lvdaEFW6W2v66TxWemK75iN29l fGktnneWBZ7qNfIToVwJc32XQdvuruiPGOcXFpDXoyOCVSY62CNmi1fshogAxyQYUnhLH 3JVm0lMyKpOdtEX29AGxexuApVJYCWIA6b0CUZqF+mUZfxtjVWkp174qnD2JCk083K5K5 41BS70wunlwq3dkaaqyH71gj4lD8qgDDcXV/Wxmch5vLx81mjlHlhnkoZXSnMN+q2A3Rp gad/iQACO0Oh1W14IQhZr2xEUGXRfc+aMKaNBcJ4phvOKN3TgzQv7EFc35iJiA2iejA== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796104387; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg: X-Received:Received:From:To:Cc:Date:Message-ID:X-Mailer:In-Reply-To: References:MIME-Version:Subject:X-BeenThere:X-Mailman-Version: Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help: List-Subscribe:Content-Type:Content-Transfer-Encoding:Errors-To: Sender; bh=CscTkKOImnuE5ztZOgDFbTpwnsBTuFdPzlnUumws5hI=; b=kmI5XlBQbpZtWtzzdOiMoIRCfzKpuvSg8A84e5o8OoD3tcSul7x2my8UFkYgCvsWdqY8 XodgiHL6GI9+SYU8jWMzRvWoXAbkQsN5VDK5JGfsiYuJs+GI3TqT0QZef3/AHoLywNecb LX6i038/9JkmWk5H1R/qnlrjUfh1nhLiUe6jmuvUBaiuJOjoGbW5YbCkCWOpJUXNfxAwQ bJx8Nn+zWvL5LmqqW9UKy5wcH289jk0GgEzODu/nBvUP2uMJNXRCUtp3T2nqE9JnSaS2b GM5/lWZhNd3LzpjzAd9iFTe9YFIyj9Me2tAm3/g2ejT8O1y348wY3ddcjrQ77Rwflfw== ARC-Authentication-Results: i=1; smtp3.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org; s=default; t=1796104387; bh=CscTkKOImnuE5ztZOgDFbTpwnsBTuFdPzlnUumws5hI=; h=From:To:Cc:Date:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=NtI45qwNNOLcaZ3zB0WMOLN1EramGDsq69s5LjpxWkvoPnpV2K2YwfhNmrGZQ7/0D J6WIJWDS6hzeaDiSxJRiZe5P7grgqFnz92VPbu1KdaUzkP8DozAh6h7g5+wlZg8aOq ipDd+2xKRexsU2f57yOqS6e0IQvUy/eepDDfTU50/QorpO3dYu8D6+HIeDuCV+YppD +3xGmXPlQ3k5LVPvhIWeMAqZZ5mLznOXopa0gQ4YApSqCzvYAwIwYFBNZvgEMBzLTD JiLflOYeqxVFBN2bcl7Xj6WLPHyui+gJCWzlUnKuDHvmrvuVaNjwNlVNGcML+ks5jM 5tDLj2b/+UbOg== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id 465806069C; Tue, 1 Dec 2026 05:53:07 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists1.osuosl.org (Postfix) with ESMTP id 792C7325 for ; Tue, 1 Dec 2026 05:52:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 56F08810DC for ; Tue, 1 Dec 2026 05:52:16 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id TNBgjdjovwJv for ; Tue, 1 Dec 2026 05:52:15 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org 84E20810C7 Authentication-Results: smtp1.osuosl.org; arc=none smtp.remote-ip="2a00:1450:4864:20::634" Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::634; helo=mail-ej1-x634.google.com; envelope-from=outtierbert@gmail.com; receiver= Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=z820rXT8 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by smtp1.osuosl.org (Postfix) with ESMTPS id 84E20810C7 for ; Tue, 1 Dec 2026 05:52:14 +0000 (UTC) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-c50aaad19fbso1220814066b.0 for ; Mon, 30 Nov 2026 21:52:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796104332; x=1796709132; darn=buildroot.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=H6yJbA/LkK3fvk4yxIHMpyR7bNSSj/WMQp5S6pzUGJE=; b=z820rXT8O6Ex1Y8mbnlnGYXCMIb8fekLcrTk9cgnIN7+xCe8fvmLblK/K7FYy6sAs6 iNNqAM7ghNSAQ/m7yFxj0N3niBnjIhF8TMSoBsnw+Nr4Q/JWGzqERJucZ1D0FVpQfOTu soy+TBLmRI/aiSyGeb6RpfX+NhWTaDyOxI5aLK/5kE9t3uGAfi6BfHqT7dCko1Dk8q4h Kn/iOQxflPB1dnny0mrWJ3s35XlB0LntM0vlUuJyTszmdpbzbsW2OA/LM7++y+p9p3fg pkWSlLG/I8O/c7ZnatW1YVegFg71M+DuvySW7xHLXsW1VK0Kq5JYRXl3s+xswFjNVIFS A6Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796104332; x=1796709132; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=H6yJbA/LkK3fvk4yxIHMpyR7bNSSj/WMQp5S6pzUGJE=; b=oYitaNHOlj0YJWUzEkSvdCeQ59qhplsA6USvuPpGWGfBXHc6XMq0H2VmoX0AywV4kH 2iwS1hBoLakSzJutSnYbfZjS5ds4ND2E7eysAaeQnS0xagw+8/PG2iX0WtoXZl5sTQRX dradJ5veSr+7OFbXQmPzq3EYpx8XoBzBy3eNmJKwSplj2dJuVZY7FZrWK3j1Hfdn9cja GiYXHOW/8vHHtOaO5GREcfTvS5tdrMwoeBDe2W8khi7wAkj6+uF+OHLsbGb57xSGao7j C7S/4ZNcGsaQF+IdGoemwtDSW+uVkE86XraYscdzsCaavFZeUjmvLKWhgHOt9PmJrzcS AxNg== X-Gm-Message-State: APuU4Z/p90XkXAKS/wYrlqMced0o7JPTEZ3F1XLn4lbKs5zxHy59h99G n5/uwKUirO05qdcaVFgMobFO0RL10sjHBHuvcpR+GPd4Dytpn4lDP1qZd2CelQ== X-Gm-Gg: AZFdTZfNjB9/jBiN1xO39gybFPrg4FvVg7XA60uaJ/uVPJBMvflvZmFCqcFcb9E0VLD wvFVMTlZ2pwdlcFbtqvOI/eCcj9DYXgPnTMJfKLZ/ehbV0stIIggF/wVAbNLgJxS4krbtax425y NBxzt7sf6DeOVRFvxpncKXkiGnHxFVCsH9S+oL2n8Om6IZ9kIPnH7jqaHbogzpCoGbNSAeoJr7I ZyZvSevKGTUJcko66uA81ZXWxSo//yr0r48Ym3lN85plEIkrHsewDLWV63aTVDViTJZ4mYZFaZ9 LxQS4TXtf16tC70PhSrpYdRWaXiEze2ogY8y268KuzSqVEWTY131EZAvW8jk1lIyVaPsgs/Zft6 fUeT9+h8Ito2asE2lFLs+aLV6yHQaj+vwleV//r/ncKpQD1tC7xqtxBP2X43K/zgpVJJvfy3nEu cbE8/r8emIgeGexdhsPGkBk1MSq+c4/ivjAWvGXBLsh/k76ol6jf3b5YdOyth82pha8c5oO0s7I Lgya44IekzeyPcN13Uj1OyvygsGQw/ikQFEUySg9dyzM1DnPw3DPkSvT5KV69nV5hWUEmw84uPv H+G1csJWbXT7z6WJcAZds9WxjWP5a++oMbpsEP2BBVFVz2sMzSge+TfU7bhQngYvjUYfZ6PxWBl dI8WZTIT6tevqz5t2S4lR0/cfyREopCHoTaoVbg== X-Received: by 2002:a17:906:2c10:b0:c4c:b545:f29d with SMTP id a640c23a62f3a-c513a9ab757mr2174366866b.36.1796104331953; Mon, 30 Nov 2026 21:52:11 -0800 (PST) Received: from bert-Precision-5530.local (195.6-132-109.adsl-dyn.isp.belgacom.be. [109.132.6.195]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6bbf778adacsm1892104a12.19.2026.11.30.21.52.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 21:52:11 -0800 (PST) From: Bert Outtier To: buildroot@buildroot.org Cc: Julien Olivain Date: Tue, 1 Dec 2026 06:52:03 +0100 Message-ID: <20261201055210.777272-1-outtierbert@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261124211312.2775532-1-outtierbert@gmail.com> References: <20261124211312.2775532-1-outtierbert@gmail.com> X-Archived-By: MIME-Version: 1.0 Subject: [Buildroot] [PATCH v4] configs/phyxbe_tess: new defconfig X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "buildroot" X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Add support for the Phyx Tess board, an Adafruit Feather compatible board built around the Allwinner T113-S3 (2x Cortex-A7, 128 MB DDR3 in package), with: - USB-C connector (USB device, FEL) - microSD card connector on SDC0 - ESP32-C3 WiFi/BLE co-processor (SPI0 for WiFi with esp-hosted, UART2 for BLE HCI) - MIPI DSI display connector - Adafruit Feather headers (UART5, SPI1, I2C3, GPIO, ADC) - USB1 host and UART3 console on extra header pins - Li-ion charger as a gpio-charger power supply: its status, and its charge current, about 450 mA or about 1.2 A (PG13) The board has no upstream device tree yet: it is shared between Linux and U-Boot (BR2_TARGET_UBOOT_CUSTOM_DTS_PATH). U-Boot uses the mangopi_mq_r defconfig (same SoC and DRAM) with a fragment for the device tree. The kernel gets the gpio-charger driver from a fragment, and the command line net.ifnames=0: esp-hosted reports the MAC address of the ESP32-C3 as permanent, so eudev would rename wlan0. The ESP32-C3 comes up a few seconds after the network is started, so ifup waits for wlan0. Signed-off-by: Bert Outtier --- Changes v3 -> v4 (Julien's review): - use the Bootlin armv7-eabihf glibc stable external toolchain, as required for new defconfigs, instead of the internal toolchain with 6.18 headers; linux-headers.hash is removed - update Linux from 6.18.8 to 6.18.65, the latest 6.18 at the time of the review: there was no specific reason for 6.18.8 - update U-Boot from 2026.01 to 2026.10: no specific reason for 2026.01 either; the mangopi_mq_r defconfig and the fragment work unchanged - rebase on master Changes v2 -> v3: - give the kernel the gpio-charger driver (linux.fragment): the sunxi defconfig does not have it, so the charger node did nothing - add net.ifnames=0 to the kernel command line, as eudev renamed wlan0 (esp-hosted reports the ESP32-C3 MAC address as permanent), and make ifup wait for wlan0 (wait-delay), as the ESP32-C3 comes up after the network is started - rebase on master Changes v1 -> v2: - describe the charge current selection of the charger (PG13, about 450 mA by default or about 1.2 A) with charge-current-limit-gpios of the gpio-charger node - rebase on master DEVELOPERS | 4 + board/phyxbe/tess/genimage.cfg | 23 ++ board/phyxbe/tess/linux.fragment | 1 + board/phyxbe/tess/patches/linux/linux.hash | 2 + board/phyxbe/tess/patches/uboot/uboot.hash | 2 + board/phyxbe/tess/readme.txt | 76 +++++ .../boot/extlinux/extlinux.conf | 4 + .../rootfs_overlay/etc/network/interfaces | 7 + .../rootfs_overlay/etc/wpa_supplicant.conf | 8 + board/phyxbe/tess/sun8i-t113s-tess.dts | 294 ++++++++++++++++++ board/phyxbe/tess/uboot.fragment | 7 + configs/phyxbe_tess_defconfig | 48 +++ 12 files changed, 476 insertions(+) create mode 100644 board/phyxbe/tess/genimage.cfg create mode 100644 board/phyxbe/tess/linux.fragment create mode 100644 board/phyxbe/tess/patches/linux/linux.hash create mode 100644 board/phyxbe/tess/patches/uboot/uboot.hash create mode 100644 board/phyxbe/tess/readme.txt create mode 100644 board/phyxbe/tess/rootfs_overlay/boot/extlinux/extlinux.conf create mode 100644 board/phyxbe/tess/rootfs_overlay/etc/network/interfaces create mode 100644 board/phyxbe/tess/rootfs_overlay/etc/wpa_supplicant.conf create mode 100644 board/phyxbe/tess/sun8i-t113s-tess.dts create mode 100644 board/phyxbe/tess/uboot.fragment create mode 100644 configs/phyxbe_tess_defconfig diff --git a/DEVELOPERS b/DEVELOPERS index 59fad7f26b..168af2d47e 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -557,6 +557,10 @@ F: package/zix/ F: package/znc/ F: support/testing/tests/package/test_perl_html_parser.py +N: Bert Outtier +F: board/phyxbe/ +F: configs/phyxbe_tess_defconfig + N: Biagio Montaruli F: board/acmesystems/ F: configs/acmesystems_* diff --git a/board/phyxbe/tess/genimage.cfg b/board/phyxbe/tess/genimage.cfg new file mode 100644 index 0000000000..f4d91abff5 --- /dev/null +++ b/board/phyxbe/tess/genimage.cfg @@ -0,0 +1,23 @@ +# Tess microSD card +# +# 8 KiB U-Boot with SPL (the T113 boot ROM loads it from 8 KiB) +# 4 MiB mmcblk0p1: root filesystem, with the kernel, the device tree +# and /boot/extlinux/extlinux.conf for U-Boot + +image sdcard.img { + hdimage { + } + + partition u-boot { + in-partition-table = "no" + image = "u-boot-sunxi-with-spl.bin" + offset = 8K + size = 1016K # 1MB - 8KB + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext4" + offset = 4M + } +} diff --git a/board/phyxbe/tess/linux.fragment b/board/phyxbe/tess/linux.fragment new file mode 100644 index 0000000000..3931c9fc37 --- /dev/null +++ b/board/phyxbe/tess/linux.fragment @@ -0,0 +1 @@ +CONFIG_CHARGER_GPIO=y diff --git a/board/phyxbe/tess/patches/linux/linux.hash b/board/phyxbe/tess/patches/linux/linux.hash new file mode 100644 index 0000000000..99b8fa41a5 --- /dev/null +++ b/board/phyxbe/tess/patches/linux/linux.hash @@ -0,0 +1,2 @@ +# From https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc +sha256 c92606f956f09dc50b5a0e2af9e86763fce27ada1647de97f8d1ac8cfc95801d linux-6.18.65.tar.xz diff --git a/board/phyxbe/tess/patches/uboot/uboot.hash b/board/phyxbe/tess/patches/uboot/uboot.hash new file mode 100644 index 0000000000..66c72d3afd --- /dev/null +++ b/board/phyxbe/tess/patches/uboot/uboot.hash @@ -0,0 +1,2 @@ +# Locally calculated +sha256 3f856da3cbbc93af51ff95fde18588a348b4a26723b01d9841e999d988481015 u-boot-2026.10.tar.bz2 diff --git a/board/phyxbe/tess/readme.txt b/board/phyxbe/tess/readme.txt new file mode 100644 index 0000000000..0bc12867a3 --- /dev/null +++ b/board/phyxbe/tess/readme.txt @@ -0,0 +1,76 @@ +Phyx Tess +========= + +Tess is an Adafruit Feather compatible board built around the Allwinner +T113-S3 (dual core Cortex-A7, 1 GHz, 128 MB DDR3 in package), made by +Phyx. + +https://phyx.be +https://github.com/phyx-be/TESS + +Board features: +- USB-C connector (USB0: USB device, and the FEL USB bootloader) +- microSD card connector on SDC0 +- ESP32-C3 WiFi/BLE co-processor (SPI0 for WiFi, UART2 for BLE HCI) +- MIPI DSI display connector +- Adafruit Feather headers (UART5, SPI1, I2C3, GPIO, ADC) +- USB1 host and UART3: two extra pins at the end of each Feather + header row +- RESET and BOOT buttons + +How to build +============ + +$ make phyxbe_tess_defconfig +$ make + +This creates output/images/sdcard.img, with: + + 8 KiB U-Boot with SPL (the T113 boot ROM loads it from 8 KiB) + 4 MiB mmcblk0p1: root filesystem (ext4), with the kernel, the + device tree and /boot/extlinux/extlinux.conf for U-Boot + +How to write the image +====================== + +Take the microSD card out of the board and plug it in the host. Write +the image to it, where sdX is the card: + +$ sudo dd if=output/images/sdcard.img of=/dev/sdX bs=1M conv=fsync + +Then plug the card back in the board and power it up: it boots from +the card. + +Serial console +============== + +The Linux and U-Boot console is UART3 (ttyS3), 115200 8N1, 3.3V levels, +on the two extra pins at the end of the 12-pin Feather header row (U3T +and U3R on the silkscreen). Connect a 3.3V USB-serial adapter: + + U3T: UART3.TX (PB6) -> RX of the USB-serial adapter + U3R: UART3.RX (PB7) -> TX of the USB-serial adapter + GND -> GND of the USB-serial adapter + +Do not connect the VCC pin of the adapter, and do not use a 5V adapter. + +$ picocom -b 115200 /dev/ttyUSB0 + +WiFi +==== + +WiFi goes through the ESP32-C3 with esp-hosted: the esp32_spi kernel +module (esp-hosted package) talks over SPI0 to the esp-hosted firmware +on the ESP32-C3. That firmware is not built by Buildroot: the ESP32-C3 +must already run the network_adapter firmware of esp-hosted-linux +(https://github.com/espressif/esp-hosted-linux, esp/esp_driver/) built +from the same commit as the esp-hosted package, as the driver refuses a +firmware of another version. + +Edit board/phyxbe/tess/rootfs_overlay/etc/wpa_supplicant.conf, or +/etc/wpa_supplicant.conf once on the board: + +* Replace YOURSSID with your AP ssid +* Replace YOURPASSWD with your AP password + +The MIPI DSI display is not enabled in this configuration. diff --git a/board/phyxbe/tess/rootfs_overlay/boot/extlinux/extlinux.conf b/board/phyxbe/tess/rootfs_overlay/boot/extlinux/extlinux.conf new file mode 100644 index 0000000000..3a43a5f873 --- /dev/null +++ b/board/phyxbe/tess/rootfs_overlay/boot/extlinux/extlinux.conf @@ -0,0 +1,4 @@ +label TESS + kernel /boot/zImage + devicetree /boot/sun8i-t113s-tess.dtb + append console=ttyS3,115200 root=/dev/mmcblk0p1 rootwait panic=10 net.ifnames=0 ${extra} diff --git a/board/phyxbe/tess/rootfs_overlay/etc/network/interfaces b/board/phyxbe/tess/rootfs_overlay/etc/network/interfaces new file mode 100644 index 0000000000..ef4b2be584 --- /dev/null +++ b/board/phyxbe/tess/rootfs_overlay/etc/network/interfaces @@ -0,0 +1,7 @@ +auto lo +iface lo inet loopback + +auto wlan0 +iface wlan0 inet dhcp +wait-delay 15 +wpa-conf /etc/wpa_supplicant.conf diff --git a/board/phyxbe/tess/rootfs_overlay/etc/wpa_supplicant.conf b/board/phyxbe/tess/rootfs_overlay/etc/wpa_supplicant.conf new file mode 100644 index 0000000000..b43292b0a7 --- /dev/null +++ b/board/phyxbe/tess/rootfs_overlay/etc/wpa_supplicant.conf @@ -0,0 +1,8 @@ +ap_scan=1 + +network={ + ssid="YOURSSID" + scan_ssid=1 + key_mgmt=WPA-PSK + psk="YOURPASSWD" +} diff --git a/board/phyxbe/tess/sun8i-t113s-tess.dts b/board/phyxbe/tess/sun8i-t113s-tess.dts new file mode 100644 index 0000000000..41f22f3dd2 --- /dev/null +++ b/board/phyxbe/tess/sun8i-t113s-tess.dts @@ -0,0 +1,294 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +// Copyright (C) 2024-2026 Bert Outtier + +#include + +/dts-v1/; + +/* resolves in both the Linux and the U-Boot build */ +#include +#include +#include + +/ { + model = "Phyx Tess T113-S3"; + compatible = "phyx,tess-t113", "allwinner,sun8i-t113s"; + + aliases { + i2c2 = &i2c2; /* DSI connector */ + i2c3 = &i2c3; /* feather */ + serial2 = &uart2; /* ESP32-C3 BLE HCI */ + serial3 = &uart3; /* console */ + serial4 = &uart4; /* ESP32-C3 programming */ + serial5 = &uart5; /* feather */ + spi0 = &spi0; /* ESP32-C3 WiFi */ + spi1 = &spi1; /* feather */ + }; + + chosen { + stdout-path = "serial3:115200n8"; + }; + + leds { + compatible = "gpio-leds"; + + led-0 { + color = ; + function-enumerator = <0>; + function = LED_FUNCTION_DISK; + gpios = <&pio 6 14 GPIO_ACTIVE_LOW>; /* PG14 */ + }; + + led-1 { + color = ; + function-enumerator = <1>; + function = LED_FUNCTION_STATUS; + gpios = <&pio 4 9 GPIO_ACTIVE_LOW>; /* PE9 */ + }; + + led-2 { + color = ; + function-enumerator = <2>; + function = LED_FUNCTION_USB; + gpios = <&pio 4 8 GPIO_ACTIVE_LOW>; /* PE8 */ + }; + }; + + /* board wide 5V supply directly from the USB-C socket */ + reg_vcc5v: regulator-5v { + compatible = "regulator-fixed"; + regulator-name = "vcc-5v"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; + + /* + * Li-ion charger: CHG.STAT (PG12) is low while the battery charges. + * PG13 high selects the fast charge current, about 1.2 A, for batteries + * of about 1200 mAh and up; low (and at reset) about 450 mA. + */ + charger { + compatible = "gpio-charger"; + charger-type = "usb-sdp"; + charge-status-gpios = <&pio 6 12 GPIO_ACTIVE_LOW>; + charge-current-limit-gpios = <&pio 6 13 GPIO_ACTIVE_HIGH>; + charge-current-limit-mapping = <1200000 0x1>, <450000 0x0>; + charge-current-limit-default-microamp = <450000>; + }; + + /* SY8008 DC/DC regulator on the board */ + reg_3v3: regulator-3v3 { + compatible = "regulator-fixed"; + regulator-name = "vcc-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <®_vcc5v>; + }; + + /* SY8008 DC/DC regulator on the board, also supplying VDD-SYS */ + reg_vcc_core: regulator-core { + compatible = "regulator-fixed"; + regulator-name = "vcc-core"; + regulator-min-microvolt = <880000>; + regulator-max-microvolt = <880000>; + vin-supply = <®_vcc5v>; + }; +}; + +&cpu0 { + cpu-supply = <®_vcc_core>; +}; + +&cpu1 { + cpu-supply = <®_vcc_core>; +}; + +/* A DSI display can be added with a device tree overlay */ + +/* A0 on the feather header, 0 - 1.8V */ +&gpadc { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + channel@0 { + reg = <0>; + }; +}; + +&dmic { + status = "okay"; +}; + +&rtc { + status = "okay"; +}; + +/* restart handler for reboot */ +&wdt { + status = "okay"; +}; + +&dcxo { + clock-frequency = <24000000>; +}; + +/* microSD card connector */ +&mmc0 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins>; + vmmc-supply = <®_3v3>; + disable-wp; + bus-width = <4>; + status = "okay"; +}; + +&pio { + /* + * Sample the GPIO interrupts with HOSC instead of the 32 kHz LOSC + * reset default, which misses the short ESP32-C3 handshake and + * data-ready pulses (one value per IRQ bank, PB-PG, in us). + */ + input-debounce = <1 1 1 1 1 1>; + vcc-pb-supply = <®_3v3>; + vcc-pd-supply = <®_3v3>; + vcc-pe-supply = <®_3v3>; + vcc-pf-supply = <®_3v3>; + vcc-pg-supply = <®_3v3>; + + /omit-if-no-ref/ + uart2_pe_pins: uart2-pe-pins { + pins = "PE0", "PE1", "PE2", "PE3"; + function = "uart2"; + }; + + /omit-if-no-ref/ + uart4_pe_pins: uart4-pe-pins { + pins = "PE4", "PE5"; + function = "uart4"; + }; + + /omit-if-no-ref/ + uart5_pb_pins: uart5-pb-pins { + pins = "PB4", "PB5"; + function = "uart5"; + }; + + /omit-if-no-ref/ + i2c2_pd_pins: i2c2-pd-pins { + pins = "PD20", "PD21"; + function = "i2c2"; + }; + + /omit-if-no-ref/ + i2c3_pe_pins: i2c3-pe-pins { + pins = "PE6", "PE7"; + function = "i2c3"; + }; + + /omit-if-no-ref/ + spi1_pd_pins: spi1-pd-pins { + pins = "PD11", "PD12", "PD13"; + function = "spi1"; + }; + + /omit-if-no-ref/ + dsi_gpio_pd_pins: dsi-gpio-pd-pins { + pins = "PD14", "PD15"; + function = "gpio_out"; + }; +}; + +/* esp32-c3 BLE uart */ +&uart2 { + pinctrl-names = "default"; + pinctrl-0 = <&uart2_pe_pins>; + uart-has-rtscts; + status = "okay"; +}; + +/* shell */ +&uart3 { + pinctrl-names = "default"; + pinctrl-0 = <&uart3_pb_pins>; + status = "okay"; +}; + +/* esp32-c3 programming */ +&uart4 { + pinctrl-names = "default"; + pinctrl-0 = <&uart4_pe_pins>; + status = "okay"; +}; + +/* feather uart */ +&uart5 { + pinctrl-names = "default"; + pinctrl-0 = <&uart5_pb_pins>; + status = "okay"; +}; + +/* DSI connector i2c */ +&i2c2 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c2_pd_pins>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; +}; + +/* feather i2c */ +&i2c3 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c3_pe_pins>; + status = "okay"; +}; + +/* esp32-c3 wifi spi */ +&spi0 { + pinctrl-names = "default"; + pinctrl-0 = <&spi0_pins>; + status = "okay"; + + wifi@0 { + compatible = "espressif,esp32-spi"; + reg = <0>; + spi-max-frequency = <30000000>; + spi-cpol; /* SPI mode 2 */ + reset-gpios = <&pio 4 11 GPIO_ACTIVE_LOW>; /* PE11: WiFi.EN */ + handshake-gpios = <&pio 2 6 GPIO_ACTIVE_HIGH>; /* PC6 */ + data-ready-gpios = <&pio 3 22 GPIO_ACTIVE_HIGH>; /* PD22 */ + }; +}; + +/* feather spi */ +&spi1 { + pinctrl-names = "default"; + pinctrl-0 = <&spi1_pd_pins>; + status = "okay"; +}; + +/* + * No ehci0/ohci0: they share PHY 0 with usb_otg and would switch the + * USB-C port to host mode. USB1 (extra Feather header pins) is the host + * port. + */ +&ohci1 { + status = "okay"; +}; + +&ehci1 { + status = "okay"; +}; + +/* The USB-C socket has its CC pins pulled to GND, so is hardwired as a UFP. */ +&usb_otg { + dr_mode = "peripheral"; + status = "okay"; +}; + +&usbphy { + usb1_vbus-supply = <®_vcc5v>; + status = "okay"; +}; diff --git a/board/phyxbe/tess/uboot.fragment b/board/phyxbe/tess/uboot.fragment new file mode 100644 index 0000000000..92b143200c --- /dev/null +++ b/board/phyxbe/tess/uboot.fragment @@ -0,0 +1,7 @@ +# Tess on top of the upstream mangopi_mq_r_defconfig (same T113-S3 and +# DRAM settings, console on UART3) + +# Device tree: the Tess DTS, shared with Linux and copied to arch/arm/dts +# by Buildroot (BR2_TARGET_UBOOT_CUSTOM_DTS_PATH), so not from dts/upstream +# CONFIG_OF_UPSTREAM is not set +CONFIG_DEFAULT_DEVICE_TREE="sun8i-t113s-tess" diff --git a/configs/phyxbe_tess_defconfig b/configs/phyxbe_tess_defconfig new file mode 100644 index 0000000000..e8114ce675 --- /dev/null +++ b/configs/phyxbe_tess_defconfig @@ -0,0 +1,48 @@ +BR2_arm=y +BR2_cortex_a7=y +BR2_ARM_FPU_VFPV4=y +BR2_TOOLCHAIN_EXTERNAL=y +BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y +BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV7_EABIHF_GLIBC_STABLE=y +BR2_GLOBAL_PATCH_DIR="board/phyxbe/tess/patches" +BR2_DOWNLOAD_FORCE_CHECK_HASHES=y +BR2_TARGET_GENERIC_HOSTNAME="tess" +BR2_TARGET_GENERIC_ISSUE="Welcome to Tess" +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y +BR2_TARGET_GENERIC_GETTY_PORT="ttyS3" +BR2_ROOTFS_OVERLAY="board/phyxbe/tess/rootfs_overlay" +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/phyxbe/tess/genimage.cfg" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.18.65" +BR2_LINUX_KERNEL_DEFCONFIG="sunxi" +BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/phyxbe/tess/linux.fragment" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="board/phyxbe/tess/sun8i-t113s-tess.dts" +BR2_LINUX_KERNEL_INSTALL_TARGET=y +BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y +BR2_PACKAGE_ESP_HOSTED=y +BR2_PACKAGE_ESP_HOSTED_SPI=y +BR2_PACKAGE_WPA_SUPPLICANT=y +BR2_PACKAGE_WPA_SUPPLICANT_AUTOSCAN=y +BR2_PACKAGE_WPA_SUPPLICANT_CLI=y +BR2_PACKAGE_WPA_SUPPLICANT_WPA_CLIENT_SO=y +BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +# BR2_TARGET_ROOTFS_TAR is not set +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_CUSTOM_VERSION=y +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2026.10" +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="mangopi_mq_r" +BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="board/phyxbe/tess/uboot.fragment" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +BR2_TARGET_UBOOT_NEEDS_OPENSSL=y +BR2_TARGET_UBOOT_NEEDS_GNUTLS=y +BR2_TARGET_UBOOT_SPL=y +BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin" +BR2_TARGET_UBOOT_CUSTOM_DTS_PATH="board/phyxbe/tess/sun8i-t113s-tess.dts" +BR2_PACKAGE_HOST_GENIMAGE=y -- 2.53.0 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot