-
Notifications
You must be signed in to change notification settings - Fork 0
[For Preview] Add Ariaboard Photonicat 2 support #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.
| + case PCAT_PM_COMMAND_PMU_REQUEST_SHUTDOWN: | ||
| + dev_info(&pm_data->serdev->dev, | ||
| + "Power button pressed, initiating shutdown\n"); | ||
| + /* Trigger graceful system shutdown */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed #3
c102386 to
a1dece1
Compare
There was a problem hiding this comment.
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
a1dece1 to
b7eb2e1
Compare
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?
photonicat-pmpower manager driver worked (can check battery status, control fan, do graceful shutdown)aic8800driver worked for onboard Wi-FiScenarios to test NIC interfaces stability after reboot: