Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] arm64: dts: rockchip: fix audio on Firefly-RK3399
@ 2026-09-21  6:34 Yaozhong Li
  2026-09-21  6:34 ` [PATCH v2 1/3] arm64: dts: rockchip: fix analog headphone output on rk3399-firefly Yaozhong Li
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Yaozhong Li @ 2026-09-21  6:34 UTC (permalink / raw)
  To: heiko; +Cc: linux-rockchip, linux-arm-kernel

This supersedes my earlier two-patch series [1].

Patch 1/2 there dropped the &i2s0 override outright. That is wrong: the
i2s0 pin groups also list GPIO4_A0, which carries SCLK_I2S_8CH_OUT, the
codec MCLK. Dropping the override unmuxes that pin and leaves analog
audio dead. I have asked for that series to be dropped. The HDMI patch
depended on it, so it is not resent on its own but as 3/3 here.

1/3 is independent of the other two and fixes a separate bug: the GPIO
that gates the headphone output is muxed by the board file but never
claimed or driven, so the jack has never worked with a mainline kernel.

2/3 and 3/3 have to stay in this order; 3/3 needs the pl330 channels
that 2/3 frees.

Changes in v2:
- 1/3 is new: model the headphone output enable GPIO as a
  simple-audio-amplifier aux device, the way rk3399-roc-pc-plus.dts
  does.
- 2/3 replaces the old 1/2. It now splits GPIO4_A0 into its own pinctrl
  group and gives it to i2s1 before disabling i2s0, instead of just
  removing the override.
- 3/3 is the old 2/2, unchanged apart from the commit message.

Tested on a Firefly-RK3399 running 6.18. What was not done: the patched
tree was not built as a full kernel, and the DTS was compiled and the
resulting DTB inspected instead; the changes were exercised on the board
through an equivalent DTB rather than a kernel built from this tree. I
have no schematic for the board, so 1/3 relies on measurement rather
than on knowing what the GPIO switches.

[1] https://lore.kernel.org/all/20260903082713.192-1-yaozhonguwl@gmail.com/

Yaozhong Li (3):
  arm64: dts: rockchip: fix analog headphone output on rk3399-firefly
  arm64: dts: rockchip: disable unused i2s0 on rk3399-firefly
  arm64: dts: rockchip: enable HDMI audio on rk3399-firefly

 .../boot/dts/rockchip/rk3399-firefly.dts      | 36 +++++++++++++------
 1 file changed, 26 insertions(+), 10 deletions(-)

-- 
2.55.0.windows.3



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-10-04 21:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-21  6:34 [PATCH v2 0/3] arm64: dts: rockchip: fix audio on Firefly-RK3399 Yaozhong Li
2026-09-21  6:34 ` [PATCH v2 1/3] arm64: dts: rockchip: fix analog headphone output on rk3399-firefly Yaozhong Li
2026-09-21  6:34 ` [PATCH v2 2/3] arm64: dts: rockchip: disable unused i2s0 " Yaozhong Li
2026-09-21  6:34 ` [PATCH v2 3/3] arm64: dts: rockchip: enable HDMI audio " Yaozhong Li
2026-10-04 21:17 ` [PATCH v2 0/3] arm64: dts: rockchip: fix audio on Firefly-RK3399 Heiko Stuebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox