Skip to content

Add radxa-cm-q64 suppots#545

Open
CodeChenL wants to merge 11 commits intoradxa:linux-6.18.2from
CodeChenL:add_cm-q64
Open

Add radxa-cm-q64 suppots#545
CodeChenL wants to merge 11 commits intoradxa:linux-6.18.2from
CodeChenL:add_cm-q64

Conversation

@CodeChenL
Copy link
Copy Markdown
Member

@CodeChenL CodeChenL commented Apr 27, 2026

Compatible with the manually modified hardware version X1.0, for testing purposes only "Unified Image"

@CodeChenL
Copy link
Copy Markdown
Member Author

@BigfootACA @strongtz 有空也可以review一下,谢谢

6by9 and others added 11 commits April 27, 2026 18:24
The Raspberry Pi 7" 800x480 panel uses a Toshiba TC358762 DSI
to DPI bridge chip, so there is a requirement for the timings
to be specified for the end panel. Add such a definition.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>

drm/panel-simple: Populate bpc when using panel-dpi

panel-dpi doesn't know the bit depth, so in the same way that
DPI is guessed for the connector type, guess that it'll be 8bpc.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>

drm/panel-simple: Allow the bus format to be read from DT for panel-dpi

The "panel-dpi" compatible string configures panel from device tree,
but it doesn't provide any way of configuring the bus format (colour
representation), nor does it populate it.

Add a DT parameter "bus-format" that allows the MEDIA_BUS_FMT_xxx value
to be specified from device tree.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>

drm/panel: simple: add Geekworm MZP280 Panel

Add support for the Geekworm MZP280 Panel

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Acked-by: Maxime Ripard <maxime@cerno.tech>

drm/panel: simple: Add Innolux AT056tN53V1 5.6" VGA

Add support for the Innolux AT056tN53V1 5.6" VGA (640x480) TFT LCD
panel.

Signed-off-by: Joerg Quinten <aBUGSworstnightmare@gmail.com>
Signed-off-by: Phil Elwell <phil@raspberrypi.com>

drm/panel: simple: Alter the timing for the Pi 7" DSI display

vc4 has always fixed up the timing, so the values defined have
never actually appeared on the wire.
The display appears to want a slightly longer HFP, so extend
the timings and recompute the clock to give the same frame rate.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>

drm/panel: add panel-dsi

Equivalent to panel-dpi for configuring a simple DSI panel with
device tree side timings and bus settings.
Motiviation is the same as for panel-dpi of wanting to support
new simple panels without needing to patch the kernel.

Signed-off-by: Timon Skerutsch <kernel@diodes-delight.com>

drm/panel-simple: Remove custom handling of orientation

The framework now handles reading orientation from DT, therefore
remove the custom get_orientation hook from panel-simple.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>

drm/panel-simple: Fix 7inch panel mode for misalignment

The 7inch panel is one line off the screen both horizontally
and vertically.

Alter the panel mode to correct this.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>

drm/panel-simple: Increase pixel clock on Pi 7inch panel

The Toshiba bridge is very fussy and doesn't like the CM3
output when being told to produce a 27.777MHz pixel clock, which
is an almost perfect match to the DSI link integer divider.

Increasing to 30MHz will switch the DSI link from 333MHz to 400MHz
and makes the bridge happy with the same video timing as works
on Pi4.
(Pi4 will be using a link frequency of 375MHz due to a 3GHz
parent PLL).

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Add Belling BL24C16F EEPROM compatible string alongside the
existing BL24C16A entry.

Signed-off-by: Jiali Chen <chenjiali@radxa.com>
Add GPIO1 through GPIO4 voltage channel definitions
to the ADC7 PMIC channel table.

Signed-off-by: Jiali Chen <chenjiali@radxa.com>
Add set_continuous_clock callback to the 7nm 7280 PHY
configuration, enabling continuous DSI clock mode support.

Signed-off-by: Jiali Chen <chenjiali@radxa.com>
Change DSI mode from MIPI_DSI_MODE_VIDEO_SYNC_PULSE to
MIPI_DSI_MODE_VIDEO_BURST for improved display compatibility.

Signed-off-by: Jiali Chen <chenjiali@radxa.com>
Add V4L2 driver for the Sony IMX708 image sensor with CCI
framework support. Includes 4608x2592 full resolution, 2x2 binned,
720p, and HDR modes. Add corresponding dt-bindings documentation.

Signed-off-by: Jiali Chen <chenjiali@radxa.com>
…avoid instability

Signed-off-by: Junhao Xie <bigfoot@radxa.com>
Add driver for Lontium LT8712sx Single DisplayPort to Dual HDMI bridge.
The LT8713sx is in place, but is untested.

Signed-off-by: Jiali Chen <chenjiali@radxa.com>
add "radxa,cm-q64" as compatible device for QSEECOM

This is required to get access to efivars and uefi boot loader support.
Signed-off-by: Jiali Chen <chenjiali@radxa.com>
…ction

Rework PM7325 GPIO pinctrl for hardware version selection. Add
gpio-line-names, hardware_version_sel pin configuration, and
hardware_version_adc VADC channel for board revision identification.

Signed-off-by: Jiali Chen <chenjiali@radxa.com>
Add device tree for Radxa CM-Q64 compute module on Raspberry Pi
CM5 IO carrier board. Includes full PMIC, PCIe, USB, DP, audio
(WCD938x), UFS, and SD card support. Add KVM overlay for
hypervisor mode configuration.

Signed-off-by: Jiali Chen <chenjiali@radxa.com>
@CodeChenL
Copy link
Copy Markdown
Member Author

rebase了一下到linux-6.18.2分支的最新提交

u32 max_vrefresh;
} msm_dp_bridge_mode_filters[] = {
{ "radxa,dragon-q6a", 3440 * 1440, 30 },
{}
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.

是不是少了q64的设置

Copy link
Copy Markdown
Member Author

@CodeChenL CodeChenL Apr 27, 2026

Choose a reason for hiding this comment

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

q6a转换芯片性能不行才限制,cm-q64不用限制

* Copyright (C) 2022-2023, Raspberry Pi Ltd
*
* Based on Sony imx477 camera driver
* Copyright (C) 2020 Raspberry Pi Ltd
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.

如果是别人的现成代码那尽量保留别人的提交信息,跟第一个提交一样

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

这个驱动是结合树莓派内核源码+邮件列表(他们之中单拎出来一个在主线都不能用),独立新创建的驱动,所以可能git不好溯源,我补一下版权信息吧

};

chosen {
stdout-path = "serial0:115200n8";
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.

其他设备树也有么?这个好像是bootloader去配置的

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

直接从q6a设备树拷的

};
};

// hdmi-edp-connector {
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.

不要提交注释了的代码

regulator-max-microvolt = <1800000>;
vin-supply = <&vreg_l18b_1p8>;

regulator-boot-on;
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.

regulator-boot-on一般是不需要的属性

};

&remoteproc_adsp {
firmware-name = "qcom/qcs6490/radxa/dragon-q6a/adsp.mbn";
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.

可能要用单独的名字

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

声卡实现方案还不确定,所以可能先不动,后期再改


&sound {
compatible = "qcom,qcs6490-rb3gen2-sndcard";
model = "QCS6490-Radxa-Dragon-Q6A";
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.

新model?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

声卡实现方案还不确定,所以可能先不动,后期再改

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.

4 participants