Skip to content

Add support for the Pi Vision 10.1" HMI #6915

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 24, 2025
Merged
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
1 change: 1 addition & 0 deletions arch/arm/boot/dts/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
pitft28-capacitive.dtbo \
pitft28-resistive.dtbo \
pitft35-resistive.dtbo \
pivision.dtbo \
pps-gpio.dtbo \
proto-codec.dtbo \
pwm.dtbo \
Expand Down
7 changes: 7 additions & 0 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -4054,6 +4054,13 @@ Params: speed Display SPI bus speed
touch-swapxy Touchscreen swapped x y axis


Name: pivision
Info: Overlay to enable the SECO Pi Vision 10.1 HMI hardware for Compute Module 5.
Will be loaded automatically by up-to-date firmware via EEPROM detection.
Load: dtoverlay=pivision
Params: <None>


Name: pps-gpio
Info: Configures the pps-gpio (pulse-per-second time signal via GPIO).
Load: dtoverlay=pps-gpio,<param>=<val>
Expand Down
155 changes: 155 additions & 0 deletions arch/arm/boot/dts/overlays/pivision-overlay.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

/dts-v1/;
/plugin/;

/ {
compatible = "brcm,bcm2712";

fragment@0 {
target = <&i2c_csi_dsi0>;
__overlay__ {
status = "okay";
pi4io: pi4io@44 {
compatible = "fcs,fxl6408";
reg = <0x44>;
gpio-controller;
#gpio-cells = <2>;
status = "okay";
};

sn65dsi83: bridge@2c {
compatible = "ti,sn65dsi83";
reg = <0x2c>;
status = "okay";

ports {
#address-cells = <1>;
#size-cells = <0>;

port@0 {
reg = <0>;

in_dsi: endpoint {
remote-endpoint = <&dsi_out>;
data-lanes = <1 2 3 4>;
};
};

port@2 {
reg = <2>;

lvds_out: endpoint {
remote-endpoint = <&in_lvds>;
};
};
};
};

mxt1066td: touch@4a {
compatible = "atmel,maxtouch";
reg = <0x4a>;
interrupt-parent = <&rp1_gpio>;
interrupts = <34 IRQ_TYPE_EDGE_FALLING>;
pinctrl-names = "default";
pinctrl-0 = <&rp1_gpio_34>;
reset-gpios = <&pi4io 1 GPIO_ACTIVE_LOW>;
status = "okay";
};
};
};

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

fragment@2 {
target-path = "/";
__overlay__ {
panel: panel {
compatible = "auo,g101ean02-2", "panel-lvds";
width-mm = <217>;
height-mm = <136>;
data-mapping = "vesa-24";
backlight = <&backlight>;
status = "okay";

panel-timing {
clock-frequency = <71100000>;
hactive = <1280>;
vactive = <800>;
hfront-porch = <50>;
hsync-len = <60>;
hback-porch = <50>;
vfront-porch = <7>;
vsync-len = <9>;
vback-porch = <7>;
};

port {
in_lvds: endpoint {
remote-endpoint = <&lvds_out>;
};
};
};

display_enable: display_enable {
compatible = "regulator-fixed";
regulator-name = "display_enable";
regulator-always-on;
enable-active-high;
gpio = <&pi4io 0 GPIO_ACTIVE_HIGH>;
status = "okay";
};

backlight: backlight {
compatible = "pwm-backlight";
pwms = <&pwm1 0 5000000 0>;
brightness-levels = <0 65535>;
num-interpolated-steps = <4096>;
default-brightness-level = <3000>;
status = "okay";
};
};
};

fragment@3 {
target = <&rp1_gpio>;
__overlay__ {
rp1_gpio_34: rp1_gpio_34 {
function = "gpio";
pins = "gpio34";
bias-pull-up;
};
rp1_gpio_35: rp1_gpio_35 {
function = "pwm1";
pins = "gpio35";
};
};
};

fragment@4 {
target = <&cam0_reg>;
__overlay__ {
status = "disabled";
};
};

fragment@5 {
target = <&pwm1>;
__overlay__ {
pinctrl-names = "default";
pinctrl-0 = <&rp1_gpio_35>;
status = "okay";
};
};
};
3 changes: 3 additions & 0 deletions arch/arm64/configs/bcm2711_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@ CONFIG_JOYSTICK_FSIA6B=m
CONFIG_JOYSTICK_SENSEHAT=m
CONFIG_INPUT_TOUCHSCREEN=y
CONFIG_TOUCHSCREEN_ADS7846=m
CONFIG_TOUCHSCREEN_ATMEL_MXT=m
CONFIG_TOUCHSCREEN_EGALAX=m
CONFIG_TOUCHSCREEN_EXC3000=m
CONFIG_TOUCHSCREEN_GOODIX=m
Expand Down Expand Up @@ -1067,6 +1068,7 @@ CONFIG_HD44780=m
CONFIG_DRM=m
CONFIG_DRM_LOAD_EDID_FIRMWARE=y
CONFIG_DRM_UDL=m
CONFIG_DRM_PANEL_LVDS=m
CONFIG_DRM_PANEL_ILITEK_ILI9806E=m
CONFIG_DRM_PANEL_ILITEK_ILI9806E_SPI=m
CONFIG_DRM_PANEL_ILITEK_ILI9881C=m
Expand All @@ -1080,6 +1082,7 @@ CONFIG_DRM_PANEL_WAVESHARE_TOUCHSCREEN_V2=m
CONFIG_DRM_DISPLAY_CONNECTOR=m
CONFIG_DRM_SIMPLE_BRIDGE=m
CONFIG_DRM_TOSHIBA_TC358762=m
CONFIG_DRM_TI_SN65DSI83=m
CONFIG_DRM_V3D=m
CONFIG_DRM_VC4=m
CONFIG_DRM_VC4_HDMI_CEC=y
Expand Down
3 changes: 3 additions & 0 deletions arch/arm64/configs/bcm2711_rt_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@ CONFIG_JOYSTICK_FSIA6B=m
CONFIG_JOYSTICK_SENSEHAT=m
CONFIG_INPUT_TOUCHSCREEN=y
CONFIG_TOUCHSCREEN_ADS7846=m
CONFIG_TOUCHSCREEN_ATMEL_MXT=m
CONFIG_TOUCHSCREEN_EGALAX=m
CONFIG_TOUCHSCREEN_EXC3000=m
CONFIG_TOUCHSCREEN_GOODIX=m
Expand Down Expand Up @@ -1067,6 +1068,7 @@ CONFIG_HD44780=m
CONFIG_DRM=m
CONFIG_DRM_LOAD_EDID_FIRMWARE=y
CONFIG_DRM_UDL=m
CONFIG_DRM_PANEL_LVDS=m
CONFIG_DRM_PANEL_ILITEK_ILI9806E=m
CONFIG_DRM_PANEL_ILITEK_ILI9806E_SPI=m
CONFIG_DRM_PANEL_ILITEK_ILI9881C=m
Expand All @@ -1080,6 +1082,7 @@ CONFIG_DRM_PANEL_WAVESHARE_TOUCHSCREEN_V2=m
CONFIG_DRM_DISPLAY_CONNECTOR=m
CONFIG_DRM_SIMPLE_BRIDGE=m
CONFIG_DRM_TOSHIBA_TC358762=m
CONFIG_DRM_TI_SN65DSI83=m
CONFIG_DRM_V3D=m
CONFIG_DRM_VC4=m
CONFIG_DRM_VC4_HDMI_CEC=y
Expand Down
3 changes: 3 additions & 0 deletions arch/arm64/configs/bcm2712_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,7 @@ CONFIG_JOYSTICK_FSIA6B=m
CONFIG_JOYSTICK_SENSEHAT=m
CONFIG_INPUT_TOUCHSCREEN=y
CONFIG_TOUCHSCREEN_ADS7846=m
CONFIG_TOUCHSCREEN_ATMEL_MXT=m
CONFIG_TOUCHSCREEN_EGALAX=m
CONFIG_TOUCHSCREEN_EXC3000=m
CONFIG_TOUCHSCREEN_GOODIX=m
Expand Down Expand Up @@ -1069,6 +1070,7 @@ CONFIG_HD44780=m
CONFIG_DRM=m
CONFIG_DRM_LOAD_EDID_FIRMWARE=y
CONFIG_DRM_UDL=m
CONFIG_DRM_PANEL_LVDS=m
CONFIG_DRM_PANEL_ILITEK_ILI9806E=m
CONFIG_DRM_PANEL_ILITEK_ILI9806E_SPI=m
CONFIG_DRM_PANEL_ILITEK_ILI9881C=m
Expand All @@ -1082,6 +1084,7 @@ CONFIG_DRM_PANEL_WAVESHARE_TOUCHSCREEN_V2=m
CONFIG_DRM_DISPLAY_CONNECTOR=m
CONFIG_DRM_SIMPLE_BRIDGE=m
CONFIG_DRM_TOSHIBA_TC358762=m
CONFIG_DRM_TI_SN65DSI83=m
CONFIG_DRM_V3D=m
CONFIG_DRM_VC4=m
CONFIG_DRM_VC4_HDMI_CEC=y
Expand Down
Loading