From: Daniel Golle Date: Fri, 18 Jul 2025 00:06:11 +0000 (+0100) Subject: bcm27xx: package modules for official 7" touchscreen TFT display X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07a7281ebddccd56e470aa84ac2daeb395bcf2a5;p=thirdparty%2Fopenwrt.git bcm27xx: package modules for official 7" touchscreen TFT display Add driver modules for the official RaspberryPi 7" touchscreen TFT display. Signed-off-by: Daniel Golle --- diff --git a/target/linux/bcm27xx/modules/video.mk b/target/linux/bcm27xx/modules/video.mk index 05808d37d5a..39774a3320a 100644 --- a/target/linux/bcm27xx/modules/video.mk +++ b/target/linux/bcm27xx/modules/video.mk @@ -39,6 +39,42 @@ endef $(eval $(call KernelPackage,rp1-cfe)) +define KernelPackage/rpi-panel-attiny-regulator + TITLE:=Raspberry Pi 7-inch touchscreen panel ATTINY regulator + SUBMENU:=$(VIDEO_MENU) + KCONFIG:=CONFIG_REGULATOR_RASPBERRYPI_TOUCHSCREEN_ATTINY + FILES:=$(LINUX_DIR)/drivers/regulator/rpi-panel-attiny-regulator.ko + AUTOLOAD:=$(call AutoLoad,67,rpi-panel-attiny-regulator) + DEPENDS:=+kmod-regmap-i2c +kmod-backlight +endef + +define KernelPackage/rpi-panel-attiny-regulator/description + Driver for the ATTINY regulator on the Raspberry Pi 7-inch + touchscreen unit. The regulator is used to enable power to the + TC358762, display and to control backlight. +endef + +$(eval $(call KernelPackage,rpi-panel-attiny-regulator)) + + +define KernelPackage/rpi-panel-7inch-touchscreen + TITLE:=Raspberry Pi 7-inch touchscreen panel + SUBMENU:=$(VIDEO_MENU) + KCONFIG:= \ + CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN + CONFIG_DRM_MIPI_DSI=y + FILES:=$(LINUX_DIR)/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.ko + AUTOLOAD:=$(call AutoProbe,/panel-raspberrypi-touchscreen) + DEPENDS:=+kmod-drm +endef + +define KernelPackage/rpi-panel-7inch-touchscreen/description + Driver for the Raspberry Pi 7" Touchscreen. +endef + +$(eval $(call KernelPackage,rpi-panel-7inch-touchscreen)) + + define KernelPackage/codec-bcm2835 TITLE:=BCM2835 Video Codec KCONFIG:= \