mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-07 02:19:54 +00:00
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:
@@ -1081,11 +1081,12 @@ Params: cma-512 CMA is 512MB (needs 1GB)
|
|||||||
|
|
||||||
Name: crystalfontz-cfa050_pi_m
|
Name: crystalfontz-cfa050_pi_m
|
||||||
Info: Configures the Crystalfontz CFA050-PI-M series of Raspberry Pi CM4
|
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.
|
with or without capacitive touch screen.
|
||||||
Requires use of vc4-kms-v3d.
|
Requires use of vc4-kms-v3d.
|
||||||
Load: dtoverlay=crystalfontz-cfa050_pi_m,<param>=<val>
|
Load: dtoverlay=crystalfontz-cfa050_pi_m,<param>=<val>
|
||||||
Params: captouch Enable capacitive touch display
|
Params: captouch Enable capacitive touch display
|
||||||
|
cm5 Enable support for the Raspberry Pi CM5
|
||||||
|
|
||||||
|
|
||||||
Name: cutiepi-panel
|
Name: cutiepi-panel
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
// RaspberryPi CM4
|
// RaspberryPi CM4
|
||||||
compatible = "brcm,bcm2835";
|
compatible = "brcm,bcm2835";
|
||||||
// PCF8574 I2C GPIO EXPANDER
|
// PCF8574 I2C GPIO EXPANDER
|
||||||
fragment@0 {
|
frag0: fragment@0 {
|
||||||
target = <&i2c_csi_dsi>;
|
target = <&i2c_csi_dsi>;
|
||||||
__overlay__ {
|
__overlay__ {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
// LM3630a BACKLIGHT LED CONTROLLER
|
// LM3630a BACKLIGHT LED CONTROLLER
|
||||||
fragment@1 {
|
frag1: fragment@1 {
|
||||||
target = <&i2c_csi_dsi>;
|
target = <&i2c_csi_dsi>;
|
||||||
__overlay__ {
|
__overlay__ {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
@@ -42,14 +42,28 @@
|
|||||||
reg = <0>;
|
reg = <0>;
|
||||||
led-sources = <0 1>;
|
led-sources = <0 1>;
|
||||||
label = "lcd-backlight";
|
label = "lcd-backlight";
|
||||||
default-brightness = <128>;
|
default-brightness = <255>;
|
||||||
max-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
|
// CFAF7201280A0_050Tx TFT DSI PANEL
|
||||||
fragment@2 {
|
fragment@3 {
|
||||||
target = <&dsi1>;
|
target = <&dsi1>;
|
||||||
__overlay__ {
|
__overlay__ {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
@@ -75,50 +89,43 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
// rPI GPIO INPUT FOR TOUCH IC IRQ
|
// rPI GPIO INPUT FOR TOUCH IC IRQ
|
||||||
fragment@3 {
|
fragment@4 {
|
||||||
target = <&gpio>;
|
target = <&gpio>;
|
||||||
__dormant__ {
|
__dormant__ {
|
||||||
gt928intpins: gt928intpins {
|
gt928intpins: gt928intpins {
|
||||||
brcm,pins = <26>;
|
brcm,pins = <26>; //gpio pin
|
||||||
brcm,function = <0>;
|
brcm,function = <0>; //input
|
||||||
brcm,pull = <1>;
|
brcm,pull = <2>; //2=pull-up
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
// GT928 TOUCH CONTROLLER IC
|
// GT928 TOUCH CONTROLLER IC
|
||||||
fragment@4 {
|
frag5: fragment@5 {
|
||||||
target = <&i2c_csi_dsi>;
|
target = <&i2c_csi_dsi>;
|
||||||
__dormant__ {
|
__dormant__ {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
gt928@5d {
|
gt928: gt928@5d {
|
||||||
compatible = "goodix,gt928";
|
compatible = "goodix,gt928";
|
||||||
reg = <0x5d>;
|
reg = <0x5d>;
|
||||||
interrupt-parent = <&gpio>;
|
interrupt-parent = <&gpio>;
|
||||||
interrupts = <26 2>;
|
interrupts = <26 2>; //gpio 26, 2=high-to-low trigger
|
||||||
irq-gpios = <&gpio 26 0>;
|
irq-gpios = <&gpio 26 0>; //gpio 26, 0=active-high
|
||||||
reset-gpios = <&pcf8574a 1 1>;
|
reset-gpios = <&pcf8574a 1 1>;
|
||||||
touchscreen-inverted-x;
|
touchscreen-inverted-x;
|
||||||
touchscreen-inverted-y;
|
touchscreen-inverted-y;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
// PCF85063A RTC on I2C
|
//OVERLAY OPTIONS
|
||||||
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
|
|
||||||
__overrides__ {
|
__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>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user