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 F2116606A31E for ; Tue, 24 Nov 2026 21:13:21 +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=jPBQjE8A; 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=dnY/Vw56 Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id C606F405C5; Tue, 24 Nov 2026 21:13:21 +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 el2Ay1LojyUr; Tue, 24 Nov 2026 21:13:20 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp4.osuosl.org 20548405BD 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=1795554800; b=s+p+8aCQBfUlEhC4ffNMaSE/c00aaLe5fTilk67e5XwK/fWf925kbb2p6m/5BTou0oFM BHfDyG27EGotqklPHoJ8W+RmRCfDMOPJobozLhvQvsez8R7p7WLJRVdAvx2rt4hdkoSsu cv/+9k6iwQv7jBT5d70YRjHHxX6Z6V0CTd5sUU2L2me/gW3u6EyPHpWV0cBiPy6afxGpZ t3RWUrabI7fJ7YIIRFkM9T8Dff3o0h9C95zicwGsVeczl4NNJbXMceGCwPIdWugiRtXE1 /Gssnc1t6B7LLIvUJOUKJ/Zxad3d4sZy8auB+DYJvTLgDsktFkdKNORdog+lJxcXoWA== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1795554800; 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=EDvhefWpsoxZUCNCgkd3EZCoZKQLbY9K04t3vqQ+sx0=; b=bqhBwhJaMFVagLvj5aPV4uyfrO6ZlNrjKHqAZDXNT4UdbRwqLJTp4J3oqBogMZNpXJQM F5F6NjYrslyryNuH8U+uN2pMaYrziIOg/6+3eySDLBcaQlIFWzzVExPiEfNL8y7UjAN8k 7jbShT2MQDj7g/klTNGifIPOco0lVd8zCvo5DzDpRCv+VP5r6lUtE9/yY0AJ8uKzH2Bl9 hjrBr/JclbjhFYKNXUhaPQQjGauBSDKwv9JSN2bm4jUFo+4UjVXJqtmmyNSa4bu8BqILQ Q6t0YeToPsGJ6X1BeDHDWsfUZZlQlm6JbflWCWoMXS1Nv7Y6fsTN7vAXkrGZ7q9Ov/w== 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=1795554800; bh=EDvhefWpsoxZUCNCgkd3EZCoZKQLbY9K04t3vqQ+sx0=; h=From:To:Cc:Date:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=jPBQjE8AOae7uBFQLaoEyHaoyth/UhNSK4rBw576aZp7QvYbzxpWMCrmxc58O6vUy +A9kj4l5ZGucODujivJU1pP4xFmQ7gTHomGDgrrE/chP6Mb8ce0xjonbWUcQRASfhd R4HA+j23BqbGb6tqcF53cydIVIMqhc1r5b4MUKFYWE8xYk9MNwMGM5jk6qQwLxhsLC i46fwqslSNJtQapEEr/HLMeFiXRdIcTd87oW0AErY+pynlVOqLAf7oiG9SqBPPQqQE tSrONxAGs1FJyYNMMIcngNDUqP92MgpZNZwnxAjjvWAwHp5qem2+ukX4crkgKy+4+9 dNQeGG9nUMzFA== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 20548405BD; Tue, 24 Nov 2026 21:13:20 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists1.osuosl.org (Postfix) with ESMTP id 1343A26D for ; Tue, 24 Nov 2026 21:13:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 04DD860689 for ; Tue, 24 Nov 2026 21:13:19 +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 K9nGe9ct1-Qv for ; Tue, 24 Nov 2026 21:13:17 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org 03FE8605E7 Authentication-Results: smtp3.osuosl.org; arc=none smtp.remote-ip="2a00:1450:4864:20::52f" Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::52f; helo=mail-ed1-x52f.google.com; envelope-from=outtierbert@gmail.com; receiver= Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=dnY/Vw56 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by smtp3.osuosl.org (Postfix) with ESMTPS id 03FE8605E7 for ; Tue, 24 Nov 2026 21:13:16 +0000 (UTC) Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-6b8815693e2so5771895a12.0 for ; Tue, 24 Nov 2026 13:13:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795554794; x=1796159594; 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=fVDEK5xmHYE5iUGF+QdTpq8sGLNZ1Lg1gJJmAPCJ560=; b=dnY/Vw567lARNMQJIwE7avkSyJECjx5hGzMGoDgCccy6NMyQ/0oBLMXCUpYSmD09ES ef3sL5EoRD+UXCQVKQAwgcFSa+Xo7EAPz9EkTHzNIjNJbefBxmpOHlY5cwLHZv7DENRB NSVkep4+5+0UAtK4Pt6Hh4SCIsgOI5Ivr5GXa2RzMR1Opdzf17vz9ybJxmJR+2c66KiJ esTM5ct1xW9yTNJAM8JIWxEIVfKO+I/EnFNfpcTj5l1ZCV8gkEaFgzew8FaIsdh9+Y8H se5oo3UNf8o5qbCrprcIKv7CTneXCyJbSoMKayzhU78iesOIXUxeGMwZJtGQ+EPMbq0x n6OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795554794; x=1796159594; 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=fVDEK5xmHYE5iUGF+QdTpq8sGLNZ1Lg1gJJmAPCJ560=; b=1YEhOvBYCH420WPkkSgZDfKisolXFfI6AFUEXYnxXLeiEdPdN/RfrJYfKFi0hIja+K IJFtrhgWeyb+BlDokUQTRFV3fcn3qDz0/9Wbl1MNuBA3n4M2POpnqrA7ebFmmlKWqUIe HPiGaCMv1dmxmjUoxW/xp/6f7kf6YDmBloJVrZgX0yOGYwyOiymdh7PnIOKnxmS0VpuL QS1xF4+C1yGnNEpCQGx8YaX7VNUBBXKazooJoi8MvF6Uhv/bQXOwMsM9d28/6cBzCJVA mu/fRK8Nl8o/QBMmTKUX3KrDR55Qd6qg9xNKtsHsQvjpCx6ByWs3fnm+LA2H7rc7ZITK H9EA== X-Gm-Message-State: APuU4Z8j8gPKa5Y5CEtTSgAUt8JcF+W8hR5UB2yxGvj34fr7Rroxl+V4 K4O0RKaczMsyY53h4OBHIBDplLMHuHwAb3Zcg8ZYyMi5hljtN8fcmAPe9Zhu2A== X-Gm-Gg: AZFdTZfwRjOyHzGYP89SuxZ9iIvDZOO1mWG4plB3sijs1hd+yA39QCQGxf8j6c2Z6x7 cTg5QAQtGnRn7J884DWkYGPi640IgxFkD2Nc6wX+8Ew4fyGmC4gHcui4vJ2c8I99snyGMr3cz09 O1r1mGg2BBvvYL5p81+9p8fjzL9j4cnkh/Pp+7vdPmfWK7LZTVKHwVlTs6f+xiKFYmihAkoV6e1 IxVifeNe/daLz+Ym5+673BbCKbQeKAgudUn/onllVcKKft+YNcmV03RN6yIlzRcCkFDWSz00Iw5 DcFAD20QC2khbsZMW77CICZPhyoRPQzm6g98e/rWvfgOYbgSSRkOvbDNrhCo8EysTHVNIaansbz xylgTd0aykY9foBlZBoHSs3D0BdEgqhHYHxHNZ2LenrGh5wDujhZdfSed1Asa5jEl99doBLbdRU Xue8zElfe17y0CM9urDrEqmSYJetC2VrveelDHnZenpzk4JeKuGgR5ezOn7+SklM5BkK+PUjugz YUKnGTkjeBmAx7dgVYlIYEZnn6aQfPPcM7rxeWj/Eu9MqclWATOShvw3r/pjLXGwDZQFVscJfs+ 2LTa12DhkSDOQ5D0GoCJ3RYvvhMvzwOoUEkB0os6U28X0owaA7oUtcodNfk9t68t3evGQAwL1QF wwh9TuIijVvXGT5euQYptr1cgbl0jTRk36+jayA== X-Received: by 2002:a05:6402:2714:b0:6ba:7762:3dd9 with SMTP id 4fb4d7f45d1cf-6ba776242b6mr7250319a12.24.1795554793852; Tue, 24 Nov 2026 13:13:13 -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-6ba370faeeasm7552350a12.22.2026.11.24.13.13.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 13:13:13 -0800 (PST) From: Bert Outtier To: buildroot@buildroot.org Cc: Bert Outtier Date: Tue, 24 Nov 2026 22:13:10 +0100 Message-ID: <20261124211312.2775532-1-outtierbert@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261124113103.2422768-1-outtierbert@gmail.com> References: <20261124113103.2422768-1-outtierbert@gmail.com> X-Archived-By: MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3] 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 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 + .../patches/linux-headers/linux-headers.hash | 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 | 46 +++ 13 files changed, 475 insertions(+) create mode 100644 board/phyxbe/tess/genimage.cfg create mode 100644 board/phyxbe/tess/linux.fragment create mode 120000 board/phyxbe/tess/patches/linux-headers/linux-headers.hash 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-headers/linux-headers.hash b/board/phyxbe/tess/patches/linux-headers/linux-headers.hash new file mode 120000 index 0000000000..5808d92afe --- /dev/null +++ b/board/phyxbe/tess/patches/linux-headers/linux-headers.hash @@ -0,0 +1 @@ +../linux/linux.hash \ No newline at end of file diff --git a/board/phyxbe/tess/patches/linux/linux.hash b/board/phyxbe/tess/patches/linux/linux.hash new file mode 100644 index 0000000000..f83883b936 --- /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 37f0c5d5c242c1d604e87d48f08795e861a5a85f725b4ca11d0a538f12ff8cff linux-6.18.8.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..b6a925ea4e --- /dev/null +++ b/board/phyxbe/tess/patches/uboot/uboot.hash @@ -0,0 +1,2 @@ +# Locally calculated +sha256 b60d5865cefdbc75da8da4156c56c458e00de75a49b80c1a2e58a96e30ad0d54 u-boot-2026.01.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..c70f938db8 --- /dev/null +++ b/configs/phyxbe_tess_defconfig @@ -0,0 +1,46 @@ +BR2_arm=y +BR2_cortex_a7=y +BR2_ARM_FPU_VFPV4=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_18=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.8" +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.01" +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