diff options
| -rw-r--r-- | README | 3 | ||||
| -rw-r--r-- | conf/machine/include/rpi-base.inc | 1 | ||||
| -rw-r--r-- | recipes-bsp/bootfiles/rpi-config_git.bb | 6 | ||||
| -rw-r--r-- | recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/98-pitft.conf (renamed from recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/99-pitft.conf) | 0 | ||||
| -rw-r--r-- | recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/99-calibration.conf | 6 | ||||
| -rw-r--r-- | recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend | 6 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-raspberrypi.inc | 2 |
7 files changed, 21 insertions, 3 deletions
| @@ -204,7 +204,7 @@ kernels. | |||
| 204 | NOTE: KERNEL_DEVICETREE is default enabled for kernel >= 3.18 and always disabled for | 204 | NOTE: KERNEL_DEVICETREE is default enabled for kernel >= 3.18 and always disabled for |
| 205 | older kernel versions. | 205 | older kernel versions. |
| 206 | 206 | ||
| 207 | 3.L. Eenable SPI bus | 207 | 3.L. Enable SPI bus |
| 208 | ==================== | 208 | ==================== |
| 209 | When using device tree kernels, set this variable to enable the SPI bus | 209 | When using device tree kernels, set this variable to enable the SPI bus |
| 210 | ENABLE_SPI_BUS = "1" | 210 | ENABLE_SPI_BUS = "1" |
| @@ -232,6 +232,7 @@ the modelname should be added as a MACHINE_FEATURES in local.conf like below: | |||
| 232 | 232 | ||
| 233 | List of currently supported models: | 233 | List of currently supported models: |
| 234 | - pitft22 | 234 | - pitft22 |
| 235 | - pitft28r | ||
| 235 | 236 | ||
| 236 | 237 | ||
| 237 | 4. Extra apps | 238 | 4. Extra apps |
diff --git a/conf/machine/include/rpi-base.inc b/conf/machine/include/rpi-base.inc index 792150e..a9e8053 100644 --- a/conf/machine/include/rpi-base.inc +++ b/conf/machine/include/rpi-base.inc | |||
| @@ -33,6 +33,7 @@ KERNEL_DEVICETREE ?= " \ | |||
| 33 | overlays/iqaudio-dacplus-overlay.dtb \ | 33 | overlays/iqaudio-dacplus-overlay.dtb \ |
| 34 | overlays/lirc-rpi-overlay.dtb \ | 34 | overlays/lirc-rpi-overlay.dtb \ |
| 35 | overlays/pitft22-overlay.dtb \ | 35 | overlays/pitft22-overlay.dtb \ |
| 36 | overlays/pitft28-resistive-overlay.dtb \ | ||
| 36 | overlays/pps-gpio-overlay.dtb \ | 37 | overlays/pps-gpio-overlay.dtb \ |
| 37 | overlays/w1-gpio-overlay.dtb \ | 38 | overlays/w1-gpio-overlay.dtb \ |
| 38 | overlays/w1-gpio-pullup-overlay.dtb \ | 39 | overlays/w1-gpio-pullup-overlay.dtb \ |
diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb index 4d41723..2941982 100644 --- a/recipes-bsp/bootfiles/rpi-config_git.bb +++ b/recipes-bsp/bootfiles/rpi-config_git.bb | |||
| @@ -17,6 +17,7 @@ PR = "r4" | |||
| 17 | 17 | ||
| 18 | PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" | 18 | PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" |
| 19 | PITFT22="${@bb.utils.contains("MACHINE_FEATURES", "pitft22", "1", "0", d)}" | 19 | PITFT22="${@bb.utils.contains("MACHINE_FEATURES", "pitft22", "1", "0", d)}" |
| 20 | PITFT28r="${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "1", "0", d)}" | ||
| 20 | 21 | ||
| 21 | inherit deploy | 22 | inherit deploy |
| 22 | 23 | ||
| @@ -90,6 +91,11 @@ do_deploy() { | |||
| 90 | echo "# Enable PITFT22 display" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 91 | echo "# Enable PITFT22 display" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 91 | echo "dtoverlay=pitft22,rotate=270,speed=32000000,txbuflen=32768" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 92 | echo "dtoverlay=pitft22,rotate=270,speed=32000000,txbuflen=32768" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 92 | fi | 93 | fi |
| 94 | |||
| 95 | if [ "${PITFT28r}" = "1" ]; then | ||
| 96 | echo "# Enable PITFT28r display" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 97 | echo "dtoverlay=pitft28-resistive,rotate=90,speed=32000000,txbuflen=32768" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 98 | fi | ||
| 93 | } | 99 | } |
| 94 | 100 | ||
| 95 | addtask deploy before do_package after do_install | 101 | addtask deploy before do_package after do_install |
diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/99-pitft.conf b/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/98-pitft.conf index 0d2b36b..0d2b36b 100644 --- a/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/99-pitft.conf +++ b/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/98-pitft.conf | |||
diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/99-calibration.conf b/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/99-calibration.conf new file mode 100644 index 0000000..f8b578c --- /dev/null +++ b/recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/99-calibration.conf | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | Section "InputClass" | ||
| 2 | Identifier "calibration" | ||
| 3 | MatchProduct "stmpe-ts" | ||
| 4 | Option "Calibration" "3800 200 200 3800" | ||
| 5 | Option "SwapAxes" "1" | ||
| 6 | EndSection | ||
diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend b/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend index 0ae2ee0..062de2d 100644 --- a/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend +++ b/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 2 | 2 | ||
| 3 | SRC_URI_append_rpi = " file://xorg.conf.d/10-evdev.conf \ | 3 | SRC_URI_append_rpi = " file://xorg.conf.d/10-evdev.conf \ |
| 4 | file://xorg.conf.d/99-pitft.conf \ | 4 | file://xorg.conf.d/98-pitft.conf \ |
| 5 | file://xorg.conf.d/99-calibration.conf \ | ||
| 5 | " | 6 | " |
| 6 | 7 | ||
| 7 | do_install_append_rpi () { | 8 | do_install_append_rpi () { |
| @@ -10,7 +11,8 @@ do_install_append_rpi () { | |||
| 10 | 11 | ||
| 11 | PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" | 12 | PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" |
| 12 | if [ "${PITFT}" = "1" ]; then | 13 | if [ "${PITFT}" = "1" ]; then |
| 13 | install -m 0644 ${WORKDIR}/xorg.conf.d/99-pitft.conf ${D}/${sysconfdir}/X11/xorg.conf.d/ | 14 | install -m 0644 ${WORKDIR}/xorg.conf.d/98-pitft.conf ${D}/${sysconfdir}/X11/xorg.conf.d/ |
| 15 | install -m 0644 ${WORKDIR}/xorg.conf.d/99-calibration.conf ${D}/${sysconfdir}/X11/xorg.conf.d/ | ||
| 14 | fi | 16 | fi |
| 15 | } | 17 | } |
| 16 | 18 | ||
diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc index 24e7fe2..142ad7f 100644 --- a/recipes-kernel/linux/linux-raspberrypi.inc +++ b/recipes-kernel/linux/linux-raspberrypi.inc | |||
| @@ -27,6 +27,8 @@ CMDLINE_append = ' ${@base_conditional("ENABLE_KGDB", "1", "kgdboc=ttyAMA0,11520 | |||
| 27 | 27 | ||
| 28 | UDEV_GE_141 ?= "1" | 28 | UDEV_GE_141 ?= "1" |
| 29 | 29 | ||
| 30 | KERNEL_MODULE_AUTOLOAD += "${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "stmpe-ts", "", d)}" | ||
| 31 | |||
| 30 | # Set programmatically some variables during recipe parsing | 32 | # Set programmatically some variables during recipe parsing |
| 31 | # See http://www.yoctoproject.org/docs/current/bitbake-user-manual/bitbake-user-manual.html#anonymous-python-functions | 33 | # See http://www.yoctoproject.org/docs/current/bitbake-user-manual/bitbake-user-manual.html#anonymous-python-functions |
| 32 | python __anonymous () { | 34 | python __anonymous () { |
