]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
bcm27xx: package modules for official 7" touchscreen TFT display 19464/head
authorDaniel Golle <daniel@makrotopia.org>
Fri, 18 Jul 2025 00:06:11 +0000 (01:06 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 20 Jul 2025 11:16:13 +0000 (12:16 +0100)
Add driver modules for the official RaspberryPi 7" touchscreen TFT display.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/bcm27xx/modules/video.mk

index 05808d37d5ac230324e87e4c620cfb398bdd27bb..39774a3320a6836b1e49a13ff61e260e337f7d4c 100644 (file)
@@ -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:= \