Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion arch/arm/boot/dts/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,9 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
wifimac.dtbo \
wittypi.dtbo \
wm8960-soundcard.dtbo \
ws2812-pio.dtbo
ws2812-pio.dtbo \
vc4-kms-dsi-edatec-panel-070c.dtbo \
vc4-kms-dsi-edatec-panel-101c.dtbo

targets += dtbs dtbs_install
targets += $(dtbo-y)
Expand Down
105 changes: 105 additions & 0 deletions arch/arm/boot/dts/overlays/vc4-kms-dsi-edatec-panel-070c-overlay.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
/dts-v1/;
/plugin/;

/ {
compatible = "brcm,bcm2835";

i2c_frag: fragment@0 {
target = <&i2c_csi_dsi>;
__overlay__ {
#gpio-cells = <2>;
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

reg_display: reg_display@27 {
reg = <0x27>;
compatible = "rzw,t70p383rk-v2";

gpio-controller;
#gpio-cells = <2>;

port {
panel_in: endpoint {
remote-endpoint = <&dsi_out>;
};
};

Check failure on line 26 in arch/arm/boot/dts/overlays/vc4-kms-dsi-edatec-panel-070c-overlay.dts

View workflow job for this annotation

GitHub Actions / checkpatch review

ERROR: trailing whitespace
};

gt911: gt911@14 {
compatible = "goodix,gt911";
reg = <0x14>;

reset-gpios = <&reg_display 3 0>;
interrupt-parent = <&gpio>;
interrupts = <2 2>;
irq-gpios = <&gpio 2 0>;
};
};
};

fragment@1 {
target = <&dsi1>;
__overlay__ {
status = "okay";
port {
dsi_out: endpoint {
remote-endpoint = <&panel_in>;
};
};
};
};

fragment@2 {
target = <&i2c0if>;
__overlay__ {
status = "okay";
};
};

fragment@3 {
target = <&i2c0mux>;
__overlay__ {
status = "okay";
};
};

fragment@4 {
target = <&i2c_arm>;
__dormant__ {
status = "okay";
};
};

fragment@5 {
target = <&gpio>;
__overlay__ {
gt911_pins: gt911_pins {
brcm,pins = <2>;
brcm,function = <0>;
brcm,pull = <2>;
};
};
};

fragment@6 {
target = <&reg_display>;
__dormant__ {
compatible = "rzw,t70p383rk-lite";
};
};

__overrides__ {
i2c1 = <&i2c_frag>, "target:0=",<&i2c1>,
<0>,"-2-3+4";
interrupt = <&gt911_pins>,"brcm,pins:0",
<&gt911>,"interrupts:0",
<&gt911>,"irq-gpios:4";

pi4 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi>;
cm4 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi>;
pi5 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi>;
cm5 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi0>;
cm0 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi>,<0>, "+6";
};
};
131 changes: 131 additions & 0 deletions arch/arm/boot/dts/overlays/vc4-kms-dsi-edatec-panel-101c-overlay.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
/dts-v1/;
/plugin/;

/ {
compatible = "brcm,bcm2835";

fragment@0 {
target-path = "/";
__overlay__ {
vdd_lcd: fixedregulator_lcd {
compatible = "regulator-fixed";
regulator-name = "vdd_lcd";
regulator-max-microvolt = <5000000>;
regulator-min-microvolt = <5000000>;

gpios = <&reg_display 4 0>;
regulator-boot-on;
enable-active-high;

Check failure on line 18 in arch/arm/boot/dts/overlays/vc4-kms-dsi-edatec-panel-101c-overlay.dts

View workflow job for this annotation

GitHub Actions / checkpatch review

ERROR: trailing whitespace
};
};
};

fragment@1 {
target = <&dsi1>;
__overlay__{
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
port {
dsi_out_port:endpoint {
remote-endpoint = <&panel_dsi_port>;
};
};

ili9881c:ili9881c@0 {
compatible = "rzw,t101p136cq-rpi4";
status = "okay";
reg = <0>;

reset-gpios = <&reg_display 2 0>;
backlight = <&reg_display>;
power-supply = <&vdd_lcd>;
rotation = <270>;

Check failure on line 44 in arch/arm/boot/dts/overlays/vc4-kms-dsi-edatec-panel-101c-overlay.dts

View workflow job for this annotation

GitHub Actions / checkpatch review

ERROR: trailing whitespace
port {
panel_dsi_port: endpoint {
remote-endpoint = <&dsi_out_port>;
};
};
};
};
};

fragment@2 {
target = <&i2c0if>;
__overlay__ {
status = "okay";
};
};

fragment@3 {
target = <&i2c0mux>;
__overlay__ {
status = "okay";
};
};

fragment@4 {
target = <&gpio>;
__overlay__ {
gt928_pins: gt928_pins {
brcm,pins = <16>;
brcm,function = <0>;
brcm,pull = <2>;
};
};
};

i2c_frag: fragment@5 {
target = <&i2c_csi_dsi>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

reg_display: reg_display@27 {
compatible = "edatec,disp-regulator";
reg = <0x27>;
gpio-controller;
#gpio-cells = <2>;
};

gt928:gt928@14 {
compatible = "goodix,gt928";
reg = <0x14>;

reset-gpios = <&reg_display 3 0>;
interrupt-parent = <&gpio>;
interrupts = <16 2>;
irq-gpios = <&gpio 16 0>;
};
};
};

fragment@6 {
target = <&ili9881c>;
__dormant__ {
compatible = "rzw,t101p136cq-rpi4-lite";
};
};

fragment@7 {
target = <&ili9881c>;
__dormant__ {
compatible = "rzw,t101p136cq-rpi5";
};
};

__overrides__ {
interrupt = <&gt928_pins>,"brcm,pins:0",
<&gt928>,"interrupts:0",
<&gt928>,"irq-gpios:4";
rotation = <&ili9881c>,"rotation:0";

pi4 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi>,<0>, "+6";
cm4 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi>;
pi5 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi>,<0>, "+7";
cm5 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi0>,<0>, "+7";
cm0 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi>,<0>, "+6";
};
};
10 changes: 10 additions & 0 deletions drivers/gpu/drm/panel/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1221,4 +1221,14 @@
Say Y here if you want to enable support for the Xinpeng
XPP055C272 controller for 720x1280 LCD panels with MIPI/RGB/SPI
system interfaces.

config DRM_PANEL_EDATEC_7INCH

Check failure on line 1225 in drivers/gpu/drm/panel/Kconfig

View workflow job for this annotation

GitHub Actions / checkpatch review

WARNING: please write a help paragraph that fully describes the config symbol
tristate "EDATEC 7INCH TFT LCD panel driver"
depends on OF
depends on DRM_MIPI_DSI
depends on BACKLIGHT_CLASS_DEVICE
help
Say Y here if you want to enable support for the EDATEC
7inch Touchscreens. To compile this driver as a module,
choose M here.
endmenu
1 change: 1 addition & 0 deletions drivers/gpu/drm/panel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,4 @@ obj-$(CONFIG_DRM_PANEL_WAVESHARE_TOUCHSCREEN) += panel-waveshare-dsi.o
obj-$(CONFIG_DRM_PANEL_WAVESHARE_TOUCHSCREEN_V2) += panel-waveshare-dsi-v2.o
obj-$(CONFIG_DRM_PANEL_WIDECHIPS_WS2401) += panel-widechips-ws2401.o
obj-$(CONFIG_DRM_PANEL_XINPENG_XPP055C272) += panel-xinpeng-xpp055c272.o
obj-$(CONFIG_DRM_PANEL_EDATEC_7INCH) += panel-edatec-dsi.o
Loading
Loading