Skip to content

Conversation

@HackingGate
Copy link
Owner

@HackingGate HackingGate commented Dec 13, 2025

Description

This is a preview only PR for updated content of Photonicat 2 support before making a pull request to Armbian.

How Has This Been Tested?

  • Successfully built photonicat2 on edge branch against 6.18
  • Successfully flashed trixie image on Photonicat2's eMMC
  • Device booted
  • HDMI video output worked
  • USB HID worked
  • Ethernet connection worked
  • Wi-Fi connection worked (both onboard Wi-Fi AIC8800 on USB and M.2 Wi-Fi QCNFA765 on PCI)
  • Onboard USB hub worked (onboard Wi-Fi AIC8800 and M.2 GSM modem recognized)
  • Mini LCD screen can display
  • Mini LCD screen can change its brightness
  • photonicat-pm power manager driver worked (can check battery status, control fan, do graceful shutdown)
  • aic8800 driver worked for onboard Wi-Fi
  • Onboard USB hub enumeration fixed with a watchdog driver

Scenarios to test NIC interfaces stability after reboot:

  • On battery, software reboot on battery, all NIC still works, repeat twice consecutively.
  • On charging, software reboot on charging, all NIC still works, repeat twice consecutively.
  • On battery, power button hold 3s off, wait, and 3s on all NIC still works, repeat twice consecutively.
  • On charging, power button hold 3s off, wait, and 3s on, all NIC still works, repeat twice consecutively.

Copilot AI review requested due to automatic review settings December 13, 2025 12:18
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive support for the Ariaboard Photonicat 2 board based on the Rockchip RK3576 SoC, including U-Boot configuration, device tree definitions, kernel patches for PWM/MFPWM drivers, and board-specific customizations.

Key changes:

  • U-Boot and kernel device tree support for RK3576-based Photonicat 2
  • New PWM v4 and MFPWM drivers for advanced PWM functionality
  • Custom USB watchdog driver for USB hub monitoring
  • Kernel configuration updates for networking and USB functionality

Reviewed changes

Copilot reviewed 24 out of 25 changed files in this pull request and generated no comments.

Show a summary per file
File Description
patch/u-boot/v2026.01/add-photonicat2-support.patch Adds U-Boot v2026.01 device tree and defconfig for Photonicat 2
patch/u-boot/legacy/u-boot-radxa-rk35xx/dt/rk3576-photonicat2.dts Device tree source for legacy U-Boot support
patch/u-boot/legacy/u-boot-radxa-rk35xx/dt/rk3576-photonicat2-u-boot.dtsi U-Boot-specific device tree includes for pre-relocation setup
patch/u-boot/legacy/u-boot-radxa-rk35xx/defconfig/photonicat2-rk3576_defconfig Legacy U-Boot configuration for Photonicat 2
patch/u-boot/legacy/u-boot-radxa-rk35xx/board_photonicat2/*.patch Board-specific patches for eMMC frequency and variable initialization
patch/kernel/archive/rockchip64-6.18/rk3576-00*.patch Kernel patches for GPIO, MMC tuning, power domain, USB, PWM/MFPWM drivers
patch/kernel/archive/rockchip64-6.18/dt/rk3576-photonicat2.dts Main kernel device tree for Photonicat 2 board
patch/kernel/archive/rockchip64-6.18/board-photonicat2*.patch Board integration and USB watchdog driver
config/kernel/linux-rockchip64-edge.config Kernel configuration updates for networking, USB, and board-specific drivers
config/boards/photonicat2.csc Board configuration file defining boot parameters and packages

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@HackingGate HackingGate changed the title [For View] Add Ariaboard Photonicat 2 support [For Preview] Add Ariaboard Photonicat 2 support Dec 13, 2025
@HackingGate HackingGate self-assigned this Dec 13, 2025
+ case PCAT_PM_COMMAND_PMU_REQUEST_SHUTDOWN:
+ dev_info(&pm_data->serdev->dev,
+ "Power button pressed, initiating shutdown\n");
+ /* Trigger graceful system shutdown */
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed #3

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don’t you just use the dts modded by immortalwrt instead? It’s more upstream friendly and then can drop the usb watchdog driver.
Currently the “photonicat-pm” node lack a fan node, please add it if you want to use more “official” device tree.

…shutdown handling

- Move PCIe WiFi regulator control from device tree to photonicat-pm driver for better power cycling
- Add pcie-wifi-regulator-gpio support to control both WLAN_EN and regulator independently
- Implement proper WiFi power cycling with 10s delay to ensure full discharge when on charger
- Add pcie_wifi_reset sysfs attribute for manual WiFi power cycling
- Power off WiFi GPIOs immediately on power button press before
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants