Created
April 7, 2016 18:37
-
-
Save leon-anavi/3a9ddd9daf4a33f223ea34bb4666b980 to your computer and use it in GitHub Desktop.
0001-linux-raspberrypi_4.1-Support-7-touchscreen.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From bd7937858621f3035d7f5696e0e4cf2a3b5b2b53 Mon Sep 17 00:00:00 2001 | |
From: Leon Anavi <[email protected]> | |
Date: Thu, 7 Apr 2016 12:24:08 +0000 | |
Subject: [PATCH] linux-raspberrypi_4.1: Support 7" touchscreen | |
Modify kernel defconfig and provide | |
rpi-ft5406-overlay.dtb for the official 7" | |
touchscreen display for Raspberry Pi. | |
Signed-off-by: Leon Anavi <[email protected]> | |
--- | |
...09_defconfig-Enable-RPI_FT540-touchscreen.patch | 104 +++++++++++++++++++++ | |
...-ft5406-overlay.dts-Support-7-touchscreen.patch | 53 +++++++++++ | |
.../linux/linux-raspberrypi_4.1.bbappend | 3 +- | |
3 files changed, 159 insertions(+), 1 deletion(-) | |
create mode 100644 meta-raspberrypi-gdp/recipes-kernel/linux/linux-raspberrypi/0001-bcm2709_defconfig-Enable-RPI_FT540-touchscreen.patch | |
create mode 100644 meta-raspberrypi-gdp/recipes-kernel/linux/linux-raspberrypi/0002-rpi-ft5406-overlay.dts-Support-7-touchscreen.patch | |
diff --git a/meta-raspberrypi-gdp/recipes-kernel/linux/linux-raspberrypi/0001-bcm2709_defconfig-Enable-RPI_FT540-touchscreen.patch b/meta-raspberrypi-gdp/recipes-kernel/linux/linux-raspberrypi/0001-bcm2709_defconfig-Enable-RPI_FT540-touchscreen.patch | |
new file mode 100644 | |
index 0000000..7efd42a | |
--- /dev/null | |
+++ b/meta-raspberrypi-gdp/recipes-kernel/linux/linux-raspberrypi/0001-bcm2709_defconfig-Enable-RPI_FT540-touchscreen.patch | |
@@ -0,0 +1,104 @@ | |
+From 12bf0b592e3d36e0ce0b39268c58d9f8c7b80ca1 Mon Sep 17 00:00:00 2001 | |
+From: Leon Anavi <[email protected]> | |
+Date: Thu, 7 Apr 2016 15:12:17 +0300 | |
+Subject: [PATCH 1/2] bcm2709_defconfig: Enable RPI_FT540 touchscreen | |
+ | |
+Set CONFIG_TOUCHSCREEN_RPI_FT5406 to m to enable | |
+the support of the official 7" touchscreen | |
+display for Raspberry Pi. | |
+ | |
+Signed-off-by: Leon Anavi <[email protected]> | |
+--- | |
+ arch/arm/configs/bcm2709_defconfig | 20 +++++++++----------- | |
+ 1 file changed, 9 insertions(+), 11 deletions(-) | |
+ | |
+diff --git a/arch/arm/configs/bcm2709_defconfig b/arch/arm/configs/bcm2709_defconfig | |
+index a3067bf..c1e9401 100644 | |
+--- a/arch/arm/configs/bcm2709_defconfig | |
++++ b/arch/arm/configs/bcm2709_defconfig | |
+@@ -39,6 +39,7 @@ CONFIG_MAC_PARTITION=y | |
+ CONFIG_CFQ_GROUP_IOSCHED=y | |
+ CONFIG_ARCH_BCM2709=y | |
+ CONFIG_BCM2709_DT=y | |
++# CONFIG_VDSO is not set | |
+ # CONFIG_CACHE_L2X0 is not set | |
+ CONFIG_SMP=y | |
+ CONFIG_HAVE_ARM_ARCH_TIMER=y | |
+@@ -376,7 +377,6 @@ CONFIG_BT_HCIVHCI=m | |
+ CONFIG_BT_MRVL=m | |
+ CONFIG_BT_MRVL_SDIO=m | |
+ CONFIG_BT_ATH3K=m | |
+-CONFIG_BT_WILINK=m | |
+ CONFIG_MAC80211=m | |
+ CONFIG_MAC80211_MESH=y | |
+ CONFIG_WIMAX=m | |
+@@ -562,12 +562,12 @@ CONFIG_RAW_DRIVER=y | |
+ CONFIG_BRCM_CHAR_DRIVERS=y | |
+ CONFIG_BCM_VC_CMA=y | |
+ CONFIG_BCM_VC_SM=y | |
+-CONFIG_I2C=y | |
+-CONFIG_I2C_CHARDEV=m | |
+-CONFIG_I2C_BCM2708=m | |
++CONFIG_I2C_CHARDEV=y | |
++CONFIG_I2C_MUX=y | |
++CONFIG_I2C_BCM2708=y | |
++CONFIG_I2C_BCM2835=y | |
+ CONFIG_SPI=y | |
+ CONFIG_SPI_BCM2835=m | |
+-CONFIG_SPI_BCM2708=m | |
+ CONFIG_SPI_SPIDEV=y | |
+ CONFIG_PPS=m | |
+ CONFIG_PPS_CLIENT_LDISC=m | |
+@@ -760,7 +760,6 @@ CONFIG_RADIO_TEA5764=m | |
+ CONFIG_RADIO_SAA7706H=m | |
+ CONFIG_RADIO_TEF6862=m | |
+ CONFIG_RADIO_WL1273=m | |
+-CONFIG_RADIO_WL128X=m | |
+ # CONFIG_MEDIA_SUBDRV_AUTOSELECT is not set | |
+ CONFIG_VIDEO_UDA1342=m | |
+ CONFIG_VIDEO_SONY_BTF_MPX=m | |
+@@ -770,7 +769,8 @@ CONFIG_VIDEO_TW9903=m | |
+ CONFIG_VIDEO_TW9906=m | |
+ CONFIG_VIDEO_OV7640=m | |
+ CONFIG_VIDEO_MT9V011=m | |
+-CONFIG_FB=y | |
++CONFIG_DRM=y | |
++CONFIG_DRM_VC4=y | |
+ CONFIG_FB_BCM2708=y | |
+ CONFIG_FB_SSD1307=m | |
+ # CONFIG_BACKLIGHT_GENERIC is not set | |
+@@ -1086,6 +1086,7 @@ CONFIG_OCFS2_FS=m | |
+ CONFIG_BTRFS_FS=m | |
+ CONFIG_BTRFS_FS_POSIX_ACL=y | |
+ CONFIG_NILFS2_FS=m | |
++CONFIG_F2FS_FS=y | |
+ CONFIG_FANOTIFY=y | |
+ CONFIG_QFMT_V1=m | |
+ CONFIG_QFMT_V2=m | |
+@@ -1115,7 +1116,6 @@ CONFIG_SQUASHFS=m | |
+ CONFIG_SQUASHFS_XATTR=y | |
+ CONFIG_SQUASHFS_LZO=y | |
+ CONFIG_SQUASHFS_XZ=y | |
+-CONFIG_F2FS_FS=y | |
+ CONFIG_NFS_FS=y | |
+ CONFIG_NFS_V3_ACL=y | |
+ CONFIG_NFS_V4=y | |
+@@ -1191,14 +1191,12 @@ CONFIG_CRYPTO_CBC=y | |
+ CONFIG_CRYPTO_CTS=m | |
+ CONFIG_CRYPTO_XTS=m | |
+ CONFIG_CRYPTO_XCBC=m | |
+-CONFIG_CRYPTO_SHA1_ARM_NEON=m | |
+-CONFIG_CRYPTO_SHA512_ARM_NEON=m | |
+ CONFIG_CRYPTO_TGR192=m | |
+ CONFIG_CRYPTO_WP512=m | |
+-CONFIG_CRYPTO_AES_ARM_BS=m | |
+ CONFIG_CRYPTO_CAST5=m | |
+ CONFIG_CRYPTO_DES=y | |
+ # CONFIG_CRYPTO_ANSI_CPRNG is not set | |
+ # CONFIG_CRYPTO_HW is not set | |
+ CONFIG_CRC_ITU_T=y | |
+ CONFIG_LIBCRC32C=y | |
++CONFIG_TOUCHSCREEN_RPI_FT5406=m | |
+-- | |
+2.5.0 | |
+ | |
diff --git a/meta-raspberrypi-gdp/recipes-kernel/linux/linux-raspberrypi/0002-rpi-ft5406-overlay.dts-Support-7-touchscreen.patch b/meta-raspberrypi-gdp/recipes-kernel/linux/linux-raspberrypi/0002-rpi-ft5406-overlay.dts-Support-7-touchscreen.patch | |
new file mode 100644 | |
index 0000000..6634f9a | |
--- /dev/null | |
+++ b/meta-raspberrypi-gdp/recipes-kernel/linux/linux-raspberrypi/0002-rpi-ft5406-overlay.dts-Support-7-touchscreen.patch | |
@@ -0,0 +1,53 @@ | |
+From c932295e7b3b3b70976d886bf02c8ae2ce8291a9 Mon Sep 17 00:00:00 2001 | |
+From: Leon Anavi <[email protected]> | |
+Date: Thu, 7 Apr 2016 15:17:28 +0300 | |
+Subject: [PATCH 2/2] rpi-ft5406-overlay.dts: Support 7" touchscreen | |
+ | |
+Add rpi-ft5406-overlay.dtb to support the | |
+official 7" touchscreen display for Raspberry Pi. | |
+ | |
+Signed-off-by: Leon Anavi <[email protected]> | |
+--- | |
+ arch/arm/boot/dts/overlays/Makefile | 1 + | |
+ arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts | 17 +++++++++++++++++ | |
+ 2 files changed, 18 insertions(+) | |
+ create mode 100644 arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts | |
+ | |
+diff --git a/arch/arm/boot/dts/overlays/Makefile b/arch/arm/boot/dts/overlays/Makefile | |
+index 6947556..19eef3c 100644 | |
+--- a/arch/arm/boot/dts/overlays/Makefile | |
++++ b/arch/arm/boot/dts/overlays/Makefile | |
+@@ -35,6 +35,7 @@ dtb-$(RPI_DT_OVERLAYS) += pitft28-resistive-overlay.dtb | |
+ dtb-$(RPI_DT_OVERLAYS) += pps-gpio-overlay.dtb | |
+ dtb-$(RPI_DT_OVERLAYS) += rpi-dac-overlay.dtb | |
+ dtb-$(RPI_DT_OVERLAYS) += rpi-display-overlay.dtb | |
++dtb-$(RPI_DT_OVERLAYS) += rpi-ft5406-overlay.dtb | |
+ dtb-$(RPI_DT_OVERLAYS) += rpi-proto-overlay.dtb | |
+ dtb-$(RPI_DT_OVERLAYS) += sdhost-overlay.dtb | |
+ dtb-$(RPI_DT_OVERLAYS) += spi-bcm2708-overlay.dtb | |
+diff --git a/arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts b/arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts | |
+new file mode 100644 | |
+index 0000000..2e53a17 | |
+--- /dev/null | |
++++ b/arch/arm/boot/dts/overlays/rpi-ft5406-overlay.dts | |
+@@ -0,0 +1,17 @@ | |
++/dts-v1/; | |
++/plugin/; | |
++ | |
++/ { | |
++ compatible = "brcm,bcm2708"; | |
++ | |
++ fragment@0 { | |
++ target-path = "/"; | |
++ __overlay__ { | |
++ rpi_ft5406: rpi_ft5406 { | |
++ compatible = "rpi,rpi-ft5406"; | |
++ firmware = <&firmware>; | |
++ status = "okay"; | |
++ }; | |
++ }; | |
++ }; | |
++}; | |
+-- | |
+2.5.0 | |
+ | |
diff --git a/meta-raspberrypi-gdp/recipes-kernel/linux/linux-raspberrypi_4.1.bbappend b/meta-raspberrypi-gdp/recipes-kernel/linux/linux-raspberrypi_4.1.bbappend | |
index 7eb8e6d..e0962ff 100644 | |
--- a/meta-raspberrypi-gdp/recipes-kernel/linux/linux-raspberrypi_4.1.bbappend | |
+++ b/meta-raspberrypi-gdp/recipes-kernel/linux/linux-raspberrypi_4.1.bbappend | |
@@ -8,7 +8,8 @@ SRC_URI = "\ | |
file://0001-rpi2-setup.patch \ | |
file://0002-drm-vc4-Use-the-fbdev_cma-helpers.patch \ | |
file://0003-drm-vc4-Allow-vblank-to-be-disabled.patch \ | |
- file://rpi2-defconfig.patch \ | |
+ file://0001-bcm2709_defconfig-Enable-RPI_FT540-touchscreen.patch \ | |
+ file://0002-rpi-ft5406-overlay.dts-Support-7-touchscreen.patch \ | |
file://HULK_SMASH.patch \ | |
file://defconfig \ | |
" | |
-- | |
1.9.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment