Skip to content

Comments

[For Preview] Add Ariaboard Photonicat 2 support#5

Open
HackingGate wants to merge 1 commit intomainfrom
photonicat2
Open

[For Preview] Add Ariaboard Photonicat 2 support#5
HackingGate wants to merge 1 commit intomainfrom
photonicat2

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

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.

Copy link
Owner Author

@HackingGate HackingGate Feb 2, 2026

Choose a reason for hiding this comment

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

@cvb011
I have updated the dts that made it close to immortalwrt.

And there are still some differences from immortalwrt

  • ImmortalWrt lacks backlight node, this is required to adjust brightness of mini display.
    - pwm2_8ch_2 is the only required PWM node. I did not add it by kernel patch, but defined in DTS.

@HackingGate HackingGate force-pushed the photonicat2 branch 3 times, most recently from ea44108 to 8cc990d Compare January 31, 2026 08:56
@HackingGate HackingGate force-pushed the photonicat2 branch 10 times, most recently from 79e7fc4 to 8eb2f12 Compare February 8, 2026 16:16
@HackingGate HackingGate force-pushed the photonicat2 branch 8 times, most recently from 1e83870 to b695e7e Compare February 12, 2026 15:55
@HackingGate
Copy link
Owner Author

HackingGate commented Feb 12, 2026

b695e7e

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

Will publish photonicat-pm-dkms repo soon.

@HackingGate HackingGate force-pushed the photonicat2 branch 2 times, most recently from 338ec14 to 57b00ef Compare February 18, 2026 07:47
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
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.

2 participants