Files
linux/arch/arm/boot/dts/overlays/vc4-kms-dsi-lt070me05000-overlay.dts
Phil Elwell ecf040339a overlays: Ensure that defined pin groups are used
In order to prevent confusing problems where pin configuration is not
be applied, an upcoming change to the overlaycheck utility will add a
check that all added pin groups are in some way referenced by the
overlay. Before that can be done, it is necessary to ensure that all
existing overlays pass that test.

This patch modifies some overlays by adding the required "pinctrl-0"
properties, but for others that are just setting GPIOs to inputs and
outputs, where those same GPIOs are declared by <name>-gpios properties,
it is better to drop the pin groups and let the GPIO subsystem set up
the GPIOs as required. Removing this duplication may be helpful in the
future should we ever decide to enable the exclusive GPIO vs pinctrl
locking (.strict in struct pinmux_ops).

See: https://forums.raspberrypi.com/viewtopic.php?t=393742

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
2025-11-28 09:27:34 +00:00

72 lines
1.6 KiB
Plaintext

/*
* Device Tree overlay to connect a JDI LT070ME05000 DSI panel to DSI1.
* This uses 4 DSI data lanes, so can only be used with a Compute Module.
*
* Credit to forum user gizmomouse on
* https://www.raspberrypi.org/forums/viewtopic.php?f=98&t=253912 and
* Andrey Vostrukhin of Harlab for the overlay.
*
* Refer to https://github.com/harlab/CM4_LCD_LT070ME05000 for schematics and
* other documentation.
*/
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2835";
fragment@0 {
target = <&dsi1>;
__overlay__{
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
port {
dsi_out_port:endpoint {
remote-endpoint = <&panel_dsi_port>;
};
};
lt070me05000:lt070me05000@0 {
compatible = "jdi,lt070me05000";
status = "okay";
reg = <0>;
pinctrl-0 = <&lt070me05000_pins>;
pinctrl-names = "default";
reset-gpios = <&gpio 17 1>; // LCD RST
enable-gpios = <&gpio 4 0>; // LCD Enable
dcdc-en-gpios = <&gpio 5 0>; // LCD DC-DC Enable
port {
panel_dsi_port: endpoint {
remote-endpoint = <&dsi_out_port>;
};
};
};
};
};
fragment@1 {
target = <&gpio>;
__overlay__ {
lt070me05000_pins: lt070me05000_pins {
brcm,pins = <4 5 17>;
brcm,function = <1 1 1>; // out
brcm,pull = <0 0 0>; // off
};
};
};
__overrides__ {
reset = <&lt070me05000_pins>,"brcm,pins:8",
<&lt070me05000>,"reset-gpios:4";
enable = <&lt070me05000_pins>,"brcm,pins:0",
<&lt070me05000>,"enable-gpios:4";
dcdc-en = <&lt070me05000_pins>,"brcm,pins:4",
<&lt070me05000>,"dcdc-en-gpios:4";
};
};