From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (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 397F9606A31A for ; Tue, 1 Dec 2026 08:45:32 +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=KT2gXTBI; dkim=fail reason="signature verification failed" (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=EBtp/gnD Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 0D7F740783; Tue, 1 Dec 2026 08:45:32 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id BI_ryT9Da25M; Tue, 1 Dec 2026 08:45:30 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp4.osuosl.org 30EA040785 Authentication-Results: smtp4.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=1796114730; b=nGuQSzDojaN9gZBp4bXgmugXokWDiukdYNGMHdGrrSfIQyMvyu3GTBdSsEF0c4ltEsG2 lKF6XxU7NLTciAFeeDYgKXVlDrhL1f9tK1vzn78DPZmUU/45pfrz3ilkISk8dxapVdhIL LbOrxR+73IGt/Ynyo4iV85IuMelZ0nzkdRApr3q23EL3IliFa2k468Nb4Hh5a4s085Hi2 9avkVTknaTz19r7RBb1xK0oJqn9POojEdyy5O7BZoML36LQhOMgB6YuehvQiPWkS4LKDs psCV64x3c3nix7dnPmN8e+fos6wxe4hiYfIGtv6L3U8qarrNiLKv7rRu4Qzdrnj80pw== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796114730; 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=4pSQ0X7SfA+gQ/DX7RluIzX0An0xMzxLAUZ18ouVoqg=; b=eF21zqZ2RbVAhRRI3VxPyc0wnX2VL8jrbqviTDciCiuctLj2ootLH+29aJFh3qCVBrt5 RnAwN1qVJyMdjOUut3UOjWgmfVxZqtUNsd0CSWn8RQ7rA/Ja1NJr6FiNUxlEf43vFK6DN TRrwM1Q9FvNFV+Ts6JzHkLA+ncj9Eg0vbMbqxhwWfHjQHl6jOdVZ/BvB//eKC2sReuha0 A/ez6SO3t2r8+ZiZCf/yiZln01mQgNgC+dz+sZR7H8voGWdTkbbfLMD8XezbzcCgrT0B5 Q1ClLNCWH9+8djdD6tx2it8LMxDB/1tUJ2hcUyy20P5tUEZSnlFfefDB99qfp22mUkw== ARC-Authentication-Results: i=1; smtp4.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=1796114730; bh=4pSQ0X7SfA+gQ/DX7RluIzX0An0xMzxLAUZ18ouVoqg=; h=From:To:Cc:Date:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=KT2gXTBIgKrlasyyy/a38nSmaGHnQ9HEZm7bXyEpAxaSWLR2bbH0GsKo16hmnpdqF V42pn6q6ZXepKccqeszgr2AMxP3Hlnqk91velWYIBEfLAyxk8HBOr9kkvDZkQ94PV1 zF/uO6ciLGGBgoGcxQEHxQhYT9ADitkl2j6z5VWxOUNsC/mZKQzGJsAJFjO+FeTnHn qblrg3fXXPNYi2XPyJNkjyf/KP5maUfEFyDmpd5PHhsIj3x/FNiS4dOx9r8N/Ow5Px nAs94C4Suc+s+RXG0dBPfyGMF7LApSFnFZEUFWAnkMTt7QgVm+64QiW8IBSE1zrLKs JLZhSliUCY4hQ== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 30EA040785; Tue, 1 Dec 2026 08:45:30 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists1.osuosl.org (Postfix) with ESMTP id 120CD373 for ; Tue, 1 Dec 2026 08:45:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 029AE40087 for ; Tue, 1 Dec 2026 08:45:28 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id qd1bsBSNiRVD for ; Tue, 1 Dec 2026 08:45:26 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp2.osuosl.org 0759F40024 Authentication-Results: smtp2.osuosl.org; arc=none smtp.remote-ip="2a00:1450:4864:20::62e" Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::62e; helo=mail-ej1-x62e.google.com; envelope-from=outtierbert@gmail.com; receiver= Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=EBtp/gnD Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by smtp2.osuosl.org (Postfix) with ESMTPS id 0759F40024 for ; Tue, 1 Dec 2026 08:45:25 +0000 (UTC) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-c4395d31228so1996015966b.1 for ; Tue, 01 Dec 2026 00:45:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796114724; x=1796719524; 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=VBuvPQ7m06+Lcz7+TASgARpo/uPG/DGsq6JI5eyRJGA=; b=EBtp/gnDw8j43E+CBMziPzTV6OSNxXhC/iqrfd3AiGHLKgEJK7Ci74fY+OexIr88L0 V0IcZF20vohCmBPxhZgpKdGsJmhvjM62MAcvTOYaHO3njwP9GtgnyZesoADmXx6ARXcP WVV0JL4DuGSDDujWpKiwbxXcPPdS+VuJWx7zozZX3p8YUdo9oraSVwDgFdqt/szTdLO3 hzJD2pbsb9mYin9SbV2iUHDfFalLn5PUWiQeU4Ozj8LXnEa2Nb+3hhQxOAJzbLCd2Kyr qT7cD7VQQjZ6d5KpN59xYFnLRgT+V+sYeg4Lw++fTyRxMgaceN3bN7rytpg0KwlbJHG5 wmAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796114724; x=1796719524; 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=VBuvPQ7m06+Lcz7+TASgARpo/uPG/DGsq6JI5eyRJGA=; b=GLnQvpjjRbb9/r8keKiJFd8X3vrFlFE68Q7+yMZQY3Nw7KuXTihOW4aKDIe0izJPuL Q/i68VJo1OyWqADC4OP4ZYq05ev2LlpwRpxT/DAVka/TfErpQU1S18r89vaESSE+Yd0c huN87ggxviYg7iNpL8k0kdmQ2Lr53Wup0H/b3ME3PysA/kW+8V3KZ32q3+lMRQt52CLr LwFRrkTNLTWhiXrLOCDaChAr7w/ZXfFj53CGlU53Q4TZaNQwQVhesXQgKQFnfMuAFrCP 4UttjTmcZFXLQVmF+7lI0t0Y85rsCMwSkDYg4t8aC4wwp9JgONAVdXz0uVycdA/p11c+ zxAA== X-Gm-Message-State: APuU4Z/qTVSV3+IFiqGdwGSFgE2V1D7eJJcRX3oBC/W8hmV574jRVDIB BBEZvFzQ+F/oBTRlEnsa941cpzTyQD2/6K9F/E7IoxUGRJvvHwtEFDBsVAmN2w== X-Gm-Gg: AZFdTZeAEW6uOGcSwnXwDg52pQ5uUOxUoOK5aGrTCEDz1ZCYuCYQ96eeBJyY4SrZv9c fijRLxC8aRD0xWS3LRWOK5upqqr2qHYdRVUeAwW3ab8nr5DZmdcoAYxbfFuukwE59jZ7jV3Ka1C 8/hXlaeLfUgFvX9Qt5yM00Ey4lz5W9/Qmzi1cdMcax9cBwHES1Yxj4yxzQfTCLa3JADl3RmWNLx 1WKfF/01hIDQBP28oO23TH5FAKSDCRNERLTo5JmgqU8hHk8PnXdL8O4uEKXGxJsJWAhC2r9x/jr 3Y3ZQE++FceFHGIHhd7Rl4v0eqn1BZTTnMAAN54WbN3f/IqWVP6xnwC8tfekyH6bGkeuFJZKRYg az5uyNDY+XZphW6Q8aUO5VC72RspYnflti5Gr/FOpegPijU1kh/Jgcn0eBEW9FYgc/P0aVFD7FX DHvYUC9bed06XC/LmAHpW6DtA0C111pjkbm/zYjxTmmc0cKrRioze3n1hOrruU6LJ65fASWzxlM GZD+b236odSv3HJioWqRT1tAHGXV/vxcnkzThQuQfS0xFifXtVA+jkaDiZw92pCDeClSBJnbQ4l pvWTIdSK8/ImrC3audS3nKpKYir98qhhlAUOLm+62ansl1g/gJlfHdkWcghQSQWxmoM9641cTVY Oj3VSAY4GGPPl60YP X-Received: by 2002:a17:906:29db:b0:c4c:eb16:4014 with SMTP id a640c23a62f3a-c513a3a0107mr2646795066b.1.1796114723315; Tue, 01 Dec 2026 00:45:23 -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 a640c23a62f3a-c513acfe3b0sm1244783366b.8.2026.12.01.00.45.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 00:45:22 -0800 (PST) From: Bert Outtier To: buildroot@buildroot.org Cc: Julien Olivain Date: Tue, 1 Dec 2026 09:45:17 +0100 Message-ID: <20261201084521.908569-1-outtierbert@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261201055210.777272-1-outtierbert@gmail.com> References: <20261201055210.777272-1-outtierbert@gmail.com> X-Archived-By: MIME-Version: 1.0 Subject: [Buildroot] [PATCH v5] 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.9 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_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 v4 -> v5: - update Linux to 6.18.66, the latest 6.18 now - rebase on master 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 9462f8e5f0..0b226c6ad4 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..ba071a4e0d --- /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 ec20b4abccab56c0656ae93aa869d650b3436edb6a88cf557b66fb44911811a9 linux-6.18.66.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..ce436dbb8c --- /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.66" +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