overlays: Update crystalfontz-cfa050_pi_m for CM5

Update DT Overlay to support CFA050-PI-M with CM5.

Signed-off-by: Mark Williams <mark@crystalfontz.com>
This commit is contained in:
Mark W
2025-06-10 17:30:48 +09:30
committed by Phil Elwell
parent f2a0ca0248
commit bca3662688
2 changed files with 36 additions and 28 deletions

View File

@@ -1081,11 +1081,12 @@ Params: cma-512 CMA is 512MB (needs 1GB)
Name: crystalfontz-cfa050_pi_m
Info: Configures the Crystalfontz CFA050-PI-M series of Raspberry Pi CM4
based modules using the CFA7201280A0_050Tx 7" TFT LCD displays,
and CM5 based modules using the CFA7201280A0_050Tx 7" TFT LCD displays,
with or without capacitive touch screen.
Requires use of vc4-kms-v3d.
Load: dtoverlay=crystalfontz-cfa050_pi_m,<param>=<val>
Params: captouch Enable capacitive touch display
cm5 Enable support for the Raspberry Pi CM5
Name: cutiepi-panel

View File

@@ -9,7 +9,7 @@
// RaspberryPi CM4
compatible = "brcm,bcm2835";
// PCF8574 I2C GPIO EXPANDER
fragment@0 {
frag0: fragment@0 {
target = <&i2c_csi_dsi>;
__overlay__ {
#address-cells = <1>;
@@ -27,7 +27,7 @@
};
};
// LM3630a BACKLIGHT LED CONTROLLER
fragment@1 {
frag1: fragment@1 {
target = <&i2c_csi_dsi>;
__overlay__ {
#address-cells = <1>;
@@ -42,14 +42,28 @@
reg = <0>;
led-sources = <0 1>;
label = "lcd-backlight";
default-brightness = <128>;
default-brightness = <255>;
max-brightness = <255>;
};
};
};
};
// PCF85063A RTC on I2C
frag2: fragment@2 {
target = <&i2c_csi_dsi>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
pcf85063a@51 {
compatible = "nxp,pcf85063a";
reg = <0x51>;
};
};
};
// CFAF7201280A0_050Tx TFT DSI PANEL
fragment@2 {
fragment@3 {
target = <&dsi1>;
__overlay__ {
#address-cells = <1>;
@@ -75,50 +89,43 @@
};
};
// rPI GPIO INPUT FOR TOUCH IC IRQ
fragment@3 {
fragment@4 {
target = <&gpio>;
__dormant__ {
gt928intpins: gt928intpins {
brcm,pins = <26>;
brcm,function = <0>;
brcm,pull = <1>;
brcm,pins = <26>; //gpio pin
brcm,function = <0>; //input
brcm,pull = <2>; //2=pull-up
};
};
};
// GT928 TOUCH CONTROLLER IC
fragment@4 {
frag5: fragment@5 {
target = <&i2c_csi_dsi>;
__dormant__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
gt928@5d {
gt928: gt928@5d {
compatible = "goodix,gt928";
reg = <0x5d>;
interrupt-parent = <&gpio>;
interrupts = <26 2>;
irq-gpios = <&gpio 26 0>;
interrupts = <26 2>; //gpio 26, 2=high-to-low trigger
irq-gpios = <&gpio 26 0>; //gpio 26, 0=active-high
reset-gpios = <&pcf8574a 1 1>;
touchscreen-inverted-x;
touchscreen-inverted-y;
};
};
};
// PCF85063A RTC on I2C
fragment@5 {
target = <&i2c_csi_dsi>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
pcf85063a@51 {
compatible = "nxp,pcf85063a";
reg = <0x51>;
};
};
};
// CAPACITIVE TOUCH OPTION FOR TFT PANEL
//OVERLAY OPTIONS
__overrides__ {
captouch = <0>,"+3+4";
//enables captouch
captouch = <0>,"+4+5";
//changes options to support CM5 (default is CM4)
cm5 = <&frag0>, "target:0=",<&i2c_csi_dsi0>,
<&frag1>, "target:0=",<&i2c_csi_dsi0>,
<&frag2>, "target:0=",<&i2c_csi_dsi0>,
<&frag5>, "target:0=",<&i2c_csi_dsi0>;
};
};