⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

fix some amlogic issues#525

Open
CodeChenL wants to merge 3 commits intoradxa:linux-6.18.2from
CodeChenL:linux-6.18.2_amlogic
Open

fix some amlogic issues#525
CodeChenL wants to merge 3 commits intoradxa:linux-6.18.2from
CodeChenL:linux-6.18.2_amlogic

Conversation

@CodeChenL
Copy link
Member

No description provided.

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>
@@ -183,6 +194,7 @@ static const struct drm_driver ili9486_driver = {

static const struct of_device_id ili9486_of_match[] = {
Copy link
Member

Choose a reason for hiding this comment

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

上游的做法一般是有个单独的结构放硬件相关数据/回调函数,然后保存到这里的data字段。不过我们自己hack可以就这样弄

Copy link
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.

2 participants