Skip to content

enabled fiq debug & fix wifi/bt issue & fix gmac issue & enabled CONFIG_CPU_RK3308#578

Open
chenxmqqqq wants to merge 4 commits into
radxa:linux-6.1-stan-rkr5.1from
chenxmqqqq:linux-6.1-stan-rkr5.1
Open

enabled fiq debug & fix wifi/bt issue & fix gmac issue & enabled CONFIG_CPU_RK3308#578
chenxmqqqq wants to merge 4 commits into
radxa:linux-6.1-stan-rkr5.1from
chenxmqqqq:linux-6.1-stan-rkr5.1

Conversation

@chenxmqqqq

Copy link
Copy Markdown

No description provided.

Switch from stdout-path to bootargs with root=UUID.

Enable fiq_debugger on serial0 and disable uart0.

Signed-off-by: Xinming Chen <chenxinming@radxa.com>
Update rk3308-rock-pi-s DTS to fix WiFi and Bluetooth support:
- Add io_domains configuration
- Update sdio node: increase max-frequency to 150MHz, add bus-width,
  change to sd-uhs-sdr104 mode

Fix 8250 serial DMA RX handling for Rockchip that caused frame errors
and break interrupts on Bluetooth UART (ttyS4):
- handle_rx_dma() now properly handles UART_IIR_RDI and UART_IIR_RLSI
  interrupts instead of only UART_IIR_RX_TIMEOUT, preventing RX FIFO
  data loss and subsequent frame/break errors during high-speed BT

Signed-off-by: Xinming Chen <chenxinming@radxa.com>
Changes were ported from linux-6.1-stan-rkr7.

stmmac_main.c: Save DMA TX buffer address to the last descriptor
instead of the first, preventing premature DMA buffer unmapping
that corrupts GMAC state and causes PHY link loss.

stmmac_platform.c: Refactor stmmac_dt_phy() into stmmac_of_get_mdio().

stmmac_mdio.c: Use IS_ERR_OR_NULL()/PTR_ERR_OR_ZERO() in
stmmac_mdio_idle() and stmmac_mdio_reset() to safely handle
a missing snps,reset-gpios property.

Signed-off-by: Xinming Chen <chenxinming@radxa.com>
Signed-off-by: Xinming Chen <chenxinming@radxa.com>

chosen {
stdout-path = "serial0:1500000n8";
bootargs = "root=UUID=bbc884d7-bf5a-4713-9301-03dbb8cacab0 earlycon=uart8250,mmio32,0xff0a0000 swiotlb=1 kpti=0 console=ttyFIQ0 rw rootwait coherent_pool=1m";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

这个改动应该会导致启动问题,我们的bootargs都是uboot读取启动配置再传入的

reg = <1>;
interrupt-parent = <&gpio0>;
interrupts = <RK_PA0 IRQ_TYPE_LEVEL_HIGH>;
interrupts = <RK_PA0 GPIO_ACTIVE_HIGH>;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

中断不能使用GPIO相关的常量

GPIOD_OUT_HIGH);
if (IS_ERR(reset_gpio))
return PTR_ERR(reset_gpio);
if (IS_ERR_OR_NULL(reset_gpio))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

所以电路上是没有接reset么?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@RadxaYuntian 天哥,明天重新整理下所有提交,stephen 说让我找找linux-6.1-stan-rkr7的提交,最好 cherry-pick

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