Skip to content

arm64: allwinner: a64: fix video output on Pinebook

Vasily Khoruzhick linux-arm-kernel linux-clk linux-devicetree linux-sunxi lkml 2 versions – Applied

Status from this message: Applied to sunxi/for-next in sunxi/linux.git, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 10 repliesApplied
  2. v13 patches 13 repliesSuperseded

Changes in v2 from the cover letter

- split device tree binding change into its own patch
- add rationale into commit message and into comment in the code
- gather the tags

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4dt-bindings: clock: sunxi: Export PLL_VIDEO_2X and PLL_MIPIinclude/dt-bindings/clock/sun50i-a64-ccu.h+2 -09 replies
2/4clk: sunxi-ng: a64: drop redundant CLK_PLL_VIDEO0_2X and CLK_PLL_MIPIdrivers/clk/sunxi-ng/ccu-sun50i-a64.h+0 -20 replies
3/4arm64: dts: allwinner: a64: explicitly assign clock parent for TCON0arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi+6 -00 replies
4/4clk: sunxi-ng: a64: stop force-selecting PLL-MIPI as TCON0 parentdrivers/clk/sunxi-ng/ccu-sun50i-a64.c+4 -90 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchDragan SimicChen-Yu TsaiFrank OltmannsStuart GathmanKrzysztof Kozlowski
1/4R-b R-b T-b T-b A-b
2/4R-b R-b T-b T-b
3/4R-b R-b T-b T-b
4/4R-b R-b T-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/4] arm64: allwinner: a64: fix video output on Pinebook

Since commit ca1170b69968 ("clk: sunxi-ng: a64: force select PLL_MIPI in TCON0 mux"), TCON0 clock parent is always set to PLL_MIPI, but unfortunately it breaks video output on Pinebook.

I did an experiment: I manually configured PLL_MIPI and PLL_VIDEO0_2X to the same clock rate and flipped the switch with devmem. Experiment clearly showed that whenever PLL_MIPI is selected as TCON0 clock parent, the video output stops working.

To fix the issue, I partially reverted mentioned commit and added explicit TCON0 clock parent assignment to device tree. By default, it will be PLL_MIPI, and the only users with RGB output - Pinebook and Teres-I will override it in their dts.

v2:
- split device tree binding change into its own patch
- add rationale into commit message and into comment in the code
- gather the tags

Vasily Khoruzhick (4):
dt-bindings: clock: sunxi: Export PLL_VIDEO_2X and PLL_MIPI
clk: sunxi-ng: a64: drop redundant CLK_PLL_VIDEO0_2X and CLK_PLL_MIPI
arm64: dts: allwinner: a64: explicitly assign clock parent for TCON0
clk: sunxi-ng: a64: stop force-selecting PLL-MIPI as TCON0 parent

 .../boot/dts/allwinner/sun50i-a64-pinebook.dts      |  2 ++
 .../arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts |  2 ++
 arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi       |  2 ++
 drivers/clk/sunxi-ng/ccu-sun50i-a64.c               | 13 ++++---------
 drivers/clk/sunxi-ng/ccu-sun50i-a64.h               |  2 --
 include/dt-bindings/clock/sun50i-a64-ccu.h          |  2 ++
 6 files changed, 12 insertions(+), 11 deletions(-)
Signature · 1 line
2.47.1