[For Preview] Add Ariaboard Photonicat 2 support#5
Conversation
There was a problem hiding this comment.
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 */ |
c102386 to
a1dece1
Compare
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
@cvb011
I have updated the dts that made it close to immortalwrt.
And there are still some differences from immortalwrt
- ImmortalWrt lacks
backlightnode, this is required to adjust brightness of mini display.
-pwm2_8ch_2is the only required PWM node. I did not add it by kernel patch, but defined in DTS.
a1dece1 to
b7eb2e1
Compare
ea44108 to
8cc990d
Compare
79e7fc4 to
8eb2f12
Compare
1e83870 to
b695e7e
Compare
Will publish photonicat-pm-dkms repo soon. |
338ec14 to
57b00ef
Compare
Board: Ariaboard Photonicat 2 (RK3576)
Board configuration:
- config/boards/photonicat2.csc
Kernel config:
- config/kernel/linux-rockchip64-current.config
- config/kernel/linux-rockchip64-edge.config
Device tree:
- patch/kernel/archive/rockchip64-6.18/dt/rk3576-photonicat2.dts
- patch/kernel/archive/rockchip64-6.18/board-photonicat2.patch
- patch/kernel/archive/rockchip64-6.19/dt/rk3576-photonicat2.dts
- patch/kernel/archive/rockchip64-6.19/board-photonicat2.patch
RK3576 SoC patches (rockchip64-6.18 and rockchip64-6.19):
0001 gpio: rockchip: set input direction when request irq
Author: Ye Zhang <ye.zhang@rock-chips.com>
Source: [PATCH v5 4/4] gpio: rockchip: Update the GPIO driver
https://lore.kernel.org/r/20241112015408.3139996-5-ye.zhang@rock-chips.com
Series: https://lore.kernel.org/r/20241112015408.3139996-1-ye.zhang@rock-chips.com
0002 mmc: dw_mmc-rockchip: add v2 tuning support
Author: Shawn Lin <shawn.lin@rock-chips.com>
Posted-by: Detlev Casanova <detlev.casanova@collabora.com>
Source: [PATCH v3 2/3] Add dw_mmc support for rk3576
https://lore.kernel.org/r/20240814223555.3695-3-detlev.casanova@collabora.com
Series: https://lore.kernel.org/r/20240814223555.3695-1-detlev.casanova@collabora.com
0003 pmdomain: rockchip: Add always on configuration
Author: Finley Xiao <finley.xiao@rock-chips.com>
Source: Rockchip BSP (not posted to lore.kernel.org)
0004 dt-bindings: pwm: Add a new binding for rockchip,rk3576-pwm
0005 mfd: Add Rockchip mfpwm driver
0006 pwm: Add rockchip PWMv4 driver
0007 counter: Add rockchip-pwm-capture driver
0008 arm64: dts: rockchip: add PWM nodes to RK3576 SoC dtsi
Author: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Source: [PATCH v3 0/5] Add Rockchip RK3576 PWM Support Through MFPWM
https://lore.kernel.org/r/20251027-rk3576-pwm-v3-0-654a5cb1e3f8@collabora.com
0009 arm64: dts: rockchip: add dma-coherent for pcie and gmac of RK3576
Author: Shawn Lin <shawn.lin@rock-chips.com>
Source: https://lore.kernel.org/r/1764313762-78063-1-git-send-email-shawn.lin@rock-chips.com
U-Boot:
- patch/u-boot/v2026.01/board_photonicat2/
BSP:
- extensions/photonicat2-drivers-dkms.sh
- packages/bsp/photonicat2/resources/photonicat-pm-dkms_1.0.0-1_all.deb
57b00ef to
5b661b2
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-Fi