Open
Conversation
Update the HDMI connector type from "a" (Standard full size) to "d" (Micro) for both Radxa Zero and Radxa Zero2 boards. This corrects the connector type definition to match the actual hardware. Signed-off-by: Jiali Chen <chenjiali@radxa.com>
Add gpio-line-names properties to the GPIO controllers for Radxa Zero. This provides user-friendly pin mapping labels for GPIO pins according to the physical board layout. Signed-off-by: Jiali Chen <chenjiali@radxa.com>
Add support for the Waveshare 3.5inch RPi LCD (B) to the ili9486 driver. This variant requires different initialization sequences: 1. Inverted color mode enabled via command 0x21 2. Different gamma correction parameters for PGAMCTRL and NGAMCTRL The initialization sequence is from: https://github.com/radxa-pkg/radxa-overlays/blob/569043b975d3f659e561e25539a5d854192adf26/arch/arm64/boot/dts/rockchip/overlays/rk3568-spi3-m1-cs0-waveshare35b.dts#L12-L25 Changes include: - Add "waveshare,rpi-lcd-35-b" to the device tree compatible list - Add corresponding SPI device ID entry - Modify the waveshare_enable() function to detect the B variant and apply appropriate settings: * Send command 0x21 to enable inverted color mode * Use different PGAMCTRL and NGAMCTRL gamma values * Keep DGAMCTRL unchanged for both variants This allows the driver to properly initialize both the original waveshare,rpi-lcd-35 and the new waveshare,rpi-lcd-35-b displays. Signed-off-by: Jiali Chen <chenjiali@radxa.com>
RadxaYuntian
approved these changes
Feb 6, 2026
| @@ -183,6 +194,7 @@ static const struct drm_driver ili9486_driver = { | |||
|
|
|||
| static const struct of_device_id ili9486_of_match[] = { | |||
Member
There was a problem hiding this comment.
上游的做法一般是有个单独的结构放硬件相关数据/回调函数,然后保存到这里的data字段。不过我们自己hack可以就这样弄
Member
Author
There was a problem hiding this comment.
一开始也想这么搞,但是改动有点大,怕时间不等人
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.