* [Buildroot] [PATCH] configs/phyxbe_tess: new defconfig @ 2026-11-23 21:10 Bert Outtier 2026-11-24 11:31 ` [Buildroot] [PATCH v2] " Bert Outtier 0 siblings, 1 reply; 7+ messages in thread From: Bert Outtier @ 2026-11-23 21:10 UTC (permalink / raw) To: buildroot; +Cc: Bert Outtier 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, its status as a gpio-charger power supply 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. Signed-off-by: Bert Outtier <outtierbert@gmail.com> --- DEVELOPERS | 4 + board/phyxbe/tess/genimage.cfg | 23 ++ .../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 | 6 + .../rootfs_overlay/etc/wpa_supplicant.conf | 8 + board/phyxbe/tess/sun8i-t113s-tess.dts | 287 ++++++++++++++++++ board/phyxbe/tess/uboot.fragment | 7 + configs/phyxbe_tess_defconfig | 45 +++ 12 files changed, 465 insertions(+) create mode 100644 board/phyxbe/tess/genimage.cfg 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 1d2960f9b3..55fe1a0531 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -556,6 +556,10 @@ F: package/zix/ F: package/znc/ F: support/testing/tests/package/test_perl_html_parser.py +N: Bert Outtier <outtierbert@gmail.com> +F: board/phyxbe/ +F: configs/phyxbe_tess_defconfig + N: Biagio Montaruli <biagio.hkr@gmail.com> 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/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..d71da347db --- /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 ${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..89e7d74aff --- /dev/null +++ b/board/phyxbe/tess/rootfs_overlay/etc/network/interfaces @@ -0,0 +1,6 @@ +auto lo +iface lo inet loopback + +auto wlan0 +iface wlan0 inet dhcp +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..0cf9a46caa --- /dev/null +++ b/board/phyxbe/tess/sun8i-t113s-tess.dts @@ -0,0 +1,287 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +// Copyright (C) 2024-2026 Bert Outtier <outtierbert@gmail.com> + +#include <dt-bindings/interrupt-controller/irq.h> + +/dts-v1/; + +/* <arm/...> resolves in both the Linux and the U-Boot build */ +#include <arm/allwinner/sun8i-t113s.dtsi> +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/leds/common.h> + +/ { + 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 = <LED_COLOR_ID_GREEN>; + function-enumerator = <0>; + function = LED_FUNCTION_DISK; + gpios = <&pio 6 14 GPIO_ACTIVE_LOW>; /* PG14 */ + }; + + led-1 { + color = <LED_COLOR_ID_GREEN>; + function-enumerator = <1>; + function = LED_FUNCTION_STATUS; + gpios = <&pio 4 9 GPIO_ACTIVE_LOW>; /* PE9 */ + }; + + led-2 { + color = <LED_COLOR_ID_GREEN>; + 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 */ + charger { + compatible = "gpio-charger"; + charger-type = "usb-sdp"; + charge-status-gpios = <&pio 6 12 GPIO_ACTIVE_LOW>; + }; + + /* 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..5cd1f323c5 --- /dev/null +++ b/configs/phyxbe_tess_defconfig @@ -0,0 +1,45 @@ +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_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 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2] configs/phyxbe_tess: new defconfig 2026-11-23 21:10 [Buildroot] [PATCH] configs/phyxbe_tess: new defconfig Bert Outtier @ 2026-11-24 11:31 ` Bert Outtier 2026-11-24 21:13 ` [Buildroot] [PATCH v3] " Bert Outtier 0 siblings, 1 reply; 7+ messages in thread From: Bert Outtier @ 2026-11-24 11:31 UTC (permalink / raw) To: buildroot; +Cc: Bert Outtier 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. Signed-off-by: Bert Outtier <outtierbert@gmail.com> --- 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 ++ .../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 | 6 + .../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 | 45 +++ 12 files changed, 472 insertions(+) create mode 100644 board/phyxbe/tess/genimage.cfg 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 1cfa212f15..cedd6589b8 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -556,6 +556,10 @@ F: package/zix/ F: package/znc/ F: support/testing/tests/package/test_perl_html_parser.py +N: Bert Outtier <outtierbert@gmail.com> +F: board/phyxbe/ +F: configs/phyxbe_tess_defconfig + N: Biagio Montaruli <biagio.hkr@gmail.com> 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/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..d71da347db --- /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 ${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..89e7d74aff --- /dev/null +++ b/board/phyxbe/tess/rootfs_overlay/etc/network/interfaces @@ -0,0 +1,6 @@ +auto lo +iface lo inet loopback + +auto wlan0 +iface wlan0 inet dhcp +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 <outtierbert@gmail.com> + +#include <dt-bindings/interrupt-controller/irq.h> + +/dts-v1/; + +/* <arm/...> resolves in both the Linux and the U-Boot build */ +#include <arm/allwinner/sun8i-t113s.dtsi> +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/leds/common.h> + +/ { + 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 = <LED_COLOR_ID_GREEN>; + function-enumerator = <0>; + function = LED_FUNCTION_DISK; + gpios = <&pio 6 14 GPIO_ACTIVE_LOW>; /* PG14 */ + }; + + led-1 { + color = <LED_COLOR_ID_GREEN>; + function-enumerator = <1>; + function = LED_FUNCTION_STATUS; + gpios = <&pio 4 9 GPIO_ACTIVE_LOW>; /* PE9 */ + }; + + led-2 { + color = <LED_COLOR_ID_GREEN>; + 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..5cd1f323c5 --- /dev/null +++ b/configs/phyxbe_tess_defconfig @@ -0,0 +1,45 @@ +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_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 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v3] configs/phyxbe_tess: new defconfig 2026-11-24 11:31 ` [Buildroot] [PATCH v2] " Bert Outtier @ 2026-11-24 21:13 ` Bert Outtier 2026-11-25 19:10 ` Julien Olivain via buildroot 2026-12-01 5:52 ` [Buildroot] [PATCH v4] " Bert Outtier 0 siblings, 2 replies; 7+ messages in thread From: Bert Outtier @ 2026-11-24 21:13 UTC (permalink / raw) To: buildroot; +Cc: Bert Outtier 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 <outtierbert@gmail.com> --- 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 <outtierbert@gmail.com> +F: board/phyxbe/ +F: configs/phyxbe_tess_defconfig + N: Biagio Montaruli <biagio.hkr@gmail.com> 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 <outtierbert@gmail.com> + +#include <dt-bindings/interrupt-controller/irq.h> + +/dts-v1/; + +/* <arm/...> resolves in both the Linux and the U-Boot build */ +#include <arm/allwinner/sun8i-t113s.dtsi> +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/leds/common.h> + +/ { + 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 = <LED_COLOR_ID_GREEN>; + function-enumerator = <0>; + function = LED_FUNCTION_DISK; + gpios = <&pio 6 14 GPIO_ACTIVE_LOW>; /* PG14 */ + }; + + led-1 { + color = <LED_COLOR_ID_GREEN>; + function-enumerator = <1>; + function = LED_FUNCTION_STATUS; + gpios = <&pio 4 9 GPIO_ACTIVE_LOW>; /* PE9 */ + }; + + led-2 { + color = <LED_COLOR_ID_GREEN>; + 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 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [Buildroot] [PATCH v3] configs/phyxbe_tess: new defconfig 2026-11-24 21:13 ` [Buildroot] [PATCH v3] " Bert Outtier @ 2026-11-25 19:10 ` Julien Olivain via buildroot 2026-12-01 5:52 ` [Buildroot] [PATCH v4] " Bert Outtier 1 sibling, 0 replies; 7+ messages in thread From: Julien Olivain via buildroot @ 2026-11-25 19:10 UTC (permalink / raw) To: Bert Outtier; +Cc: buildroot Hi Bert, Thanks for the patch. I have few comments, see below. On 24/11/2026 22:13, Bert Outtier wrote: > 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 <outtierbert@gmail.com> > --- [...] > 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 This linux-headers.hash can be removed, since the defconfig should use a Bootlin glibc stable external toolchain. See below. > @@ -0,0 +1 @@ > +../linux/linux.hash > \ No newline at end of file [...] > 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 According to defconfig rules from: https://elinux.org/Buildroot:DeveloperDaysELCE2024#Rules_for_defconfigs New defconfigs should now use a Bootlin glibc stable external toolchain. The previous line should be removed, and be replaced by: 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.8" Is there any specific reason to select 6.18.8, while the latest 6.18 series is 6.18.65 as of now? If not, could you change it to the latest 6.18 version available, please? > +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" Same question: any specific reason to select 2026.01 while there is 2026.10 available? See: https://git.u-boot-project.org/u-boot/u-boot/-/tags If not, could you change it to the latest version, please? > +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 Could you send an updated patch addressing those comments, please? Best regards, Julien. _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v4] configs/phyxbe_tess: new defconfig 2026-11-24 21:13 ` [Buildroot] [PATCH v3] " Bert Outtier 2026-11-25 19:10 ` Julien Olivain via buildroot @ 2026-12-01 5:52 ` Bert Outtier 2026-12-01 8:45 ` [Buildroot] [PATCH v5] " Bert Outtier 1 sibling, 1 reply; 7+ messages in thread From: Bert Outtier @ 2026-12-01 5:52 UTC (permalink / raw) To: buildroot; +Cc: Julien Olivain 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 <outtierbert@gmail.com> --- 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 <outtierbert@gmail.com> +F: board/phyxbe/ +F: configs/phyxbe_tess_defconfig + N: Biagio Montaruli <biagio.hkr@gmail.com> 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 <outtierbert@gmail.com> + +#include <dt-bindings/interrupt-controller/irq.h> + +/dts-v1/; + +/* <arm/...> resolves in both the Linux and the U-Boot build */ +#include <arm/allwinner/sun8i-t113s.dtsi> +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/leds/common.h> + +/ { + 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 = <LED_COLOR_ID_GREEN>; + function-enumerator = <0>; + function = LED_FUNCTION_DISK; + gpios = <&pio 6 14 GPIO_ACTIVE_LOW>; /* PG14 */ + }; + + led-1 { + color = <LED_COLOR_ID_GREEN>; + function-enumerator = <1>; + function = LED_FUNCTION_STATUS; + gpios = <&pio 4 9 GPIO_ACTIVE_LOW>; /* PE9 */ + }; + + led-2 { + color = <LED_COLOR_ID_GREEN>; + 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 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v5] configs/phyxbe_tess: new defconfig 2026-12-01 5:52 ` [Buildroot] [PATCH v4] " Bert Outtier @ 2026-12-01 8:45 ` Bert Outtier 2026-12-01 11:20 ` Julien Olivain via buildroot 0 siblings, 1 reply; 7+ messages in thread From: Bert Outtier @ 2026-12-01 8:45 UTC (permalink / raw) To: buildroot; +Cc: Julien Olivain 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 <outtierbert@gmail.com> --- 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 <outtierbert@gmail.com> +F: board/phyxbe/ +F: configs/phyxbe_tess_defconfig + N: Biagio Montaruli <biagio.hkr@gmail.com> 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 <outtierbert@gmail.com> + +#include <dt-bindings/interrupt-controller/irq.h> + +/dts-v1/; + +/* <arm/...> resolves in both the Linux and the U-Boot build */ +#include <arm/allwinner/sun8i-t113s.dtsi> +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/leds/common.h> + +/ { + 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 = <LED_COLOR_ID_GREEN>; + function-enumerator = <0>; + function = LED_FUNCTION_DISK; + gpios = <&pio 6 14 GPIO_ACTIVE_LOW>; /* PG14 */ + }; + + led-1 { + color = <LED_COLOR_ID_GREEN>; + function-enumerator = <1>; + function = LED_FUNCTION_STATUS; + gpios = <&pio 4 9 GPIO_ACTIVE_LOW>; /* PE9 */ + }; + + led-2 { + color = <LED_COLOR_ID_GREEN>; + 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 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [Buildroot] [PATCH v5] configs/phyxbe_tess: new defconfig 2026-12-01 8:45 ` [Buildroot] [PATCH v5] " Bert Outtier @ 2026-12-01 11:20 ` Julien Olivain via buildroot 0 siblings, 0 replies; 7+ messages in thread From: Julien Olivain via buildroot @ 2026-12-01 11:20 UTC (permalink / raw) To: Bert Outtier; +Cc: buildroot On 01/12/2026 09:45, Bert Outtier wrote: > 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 <outtierbert@gmail.com> Applied to branch next, thanks for the updates. Best regards, Julien. _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-12-01 11:20 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-11-23 21:10 [Buildroot] [PATCH] configs/phyxbe_tess: new defconfig Bert Outtier 2026-11-24 11:31 ` [Buildroot] [PATCH v2] " Bert Outtier 2026-11-24 21:13 ` [Buildroot] [PATCH v3] " Bert Outtier 2026-11-25 19:10 ` Julien Olivain via buildroot 2026-12-01 5:52 ` [Buildroot] [PATCH v4] " Bert Outtier 2026-12-01 8:45 ` [Buildroot] [PATCH v5] " Bert Outtier 2026-12-01 11:20 ` Julien Olivain via buildroot
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.