Skip to content
Snippets Groups Projects
  1. Sep 15, 2020
  2. Sep 11, 2020
    • Norman Stetter's avatar
      gfxml2dto:README.md: Change fetch URLs for garz-fricke gitlab · 067332a3
      Norman Stetter authored and Clemens Terasa's avatar Clemens Terasa committed
      The Garz & Fricke gitlab has been restructured, change fetch URL of
      the gfxml2dto as well as the README.md documentation.
      067332a3
    • Clemens Terasa's avatar
      linux-guf: Move linux-stable to linux-guf AUTOREV · 1b287136
      Clemens Terasa authored
      Rename the linux kernel repository to linux-guf.
      Switch to SRCREV="${AUTOREV}" for the kernel development.
      
      The team decision is to rename the linux kernel repository from
      linux-stable to linux-guf to show that it actually does not mirror the
      linux-stable directly but uses it as a basis source for our Garz &
      Fricke development.
      
      This changes include renaming the recipe, adjusting the Gitlab URL and
      renaming the PREFERRED_PROVIDER_virtual/kernel.
      
      With this change we also want to use the bitbake AUTOREV feature to pull
      the latest development kernel. Right now we do not have the release
      method to pin the revision to a specific version.
      1b287136
  3. Sep 04, 2020
    • Clemens Terasa's avatar
      machine: Add packagegroup-guf-touchdriver · 3700d467
      Clemens Terasa authored
      To be able to use the externally built touch drivers we provide in the
      BSP we need to add the touch drivers. This is done with the help of the
      packagegroup-guf-touchdriver that combines all drivers.
      
      Compared to Rocko the EDT driver was not ported: we want to use he
      mainline one.
      
      It is still unclear if we want to use the touchgpio helper driver. It
      provides general functionality for the GPIO handling of teh drivers,
      however this shall be part of the drivers.
      Setting GPIO options may very well be possible by using the gpiod_*
      interface instead of the legacy gpio kernel interface.
      3700d467
    • Clemens Terasa's avatar
      gfxml2dto: Update for touch support · 6d6579fc
      Clemens Terasa authored
      A minor mapping bug was fixed and the irq-gpio, reset-gpio and wake-gpio
      parsing was introduced. This is currently only used by
      rbtouch-eeti-exc3000-v00.xml however we will adapt the other touch
      settings accordingly.
      6d6579fc
    • Clemens Terasa's avatar
      packagegroup-guf-touchdriver: Remove edt-ftx06 driver · 5183b21a
      Clemens Terasa authored
      Use the mainline kernel driver instead.
      This, however, also remove the touchgpio functionality form the driver.
      It might be OK if the touchgpio driver is deprecated anyway.
      5183b21a
    • Clemens Terasa's avatar
      ni-force-ts: Port to Kernel 5.8 · e45ea649
      Clemens Terasa authored
      Add a valid fall through comment to the switch fall though.
      See https://lwn.net/Articles/794944/ why this is necessary since Linux
      5.3.
      
      Also replace the VLA (Variable Length Arrays) expression by adding a
      constexpr max().
      See https://stackoverflow.com/a/49481218 for a detailed explanation of
      __is_constexpr() in the linux kernel used for max() and useful links.
      e45ea649
    • Clemens Terasa's avatar
      eetii2c: Port to Kernel 5.4 · a80c8227
      Clemens Terasa authored
      The access_ok macro has changed and abolished the first parameter with
      commit 96d4f267e40f9509e8a66e2b39e8b95655617693 (v5.0).
      Thus change the  eetii2c driver accordingly and remove the first
      parameter.
      a80c8227
    • Clemens Terasa's avatar
      ilitek: Port to Kernel 5.4 · 109d1fb0
      Clemens Terasa authored
      Replace deprecated functions vfs_read/vfs_write with
      kernel_read/kernel_write.  Use the KERNEL_DS define instead of the
      deprecated get_de() function.
      
      Replace the deprecated do_gettimeofday() function call with the recent
      ktime_get_real_ts64() function and move from struct timeval to struct
      timespec64 to do this.
      
      Fix a compiler error that complains about large frames by reducing the
      stack size in the function ilitek_sensortest_write().
      109d1fb0
    • Clemens Terasa's avatar
      ili2118: Port to Kernel 5.4 · 759990b9
      Clemens Terasa authored
      Replace the usage of the deprecated do_gettimeofday() function using
      struct  timeval with the newer ktime_get_real_ts64() function using
      timespec64. This makes it necessary to change the time difference
      calculation as well.
      
      Also replace the deprecated get_ds() function call with the recent
      KERNEL_DS define.
      
      Remove the FB_EARLY_EVENT_BLANK that was removed with Linux kernel
      commit e7642f35851da14b78be7a38b0bb0d4068254859.
      759990b9
    • Clemens Terasa's avatar
      egalaxi2c: Fix variable length array · 5f48a8c1
      Clemens Terasa authored
      The compiler complained about a variable length array declaration.
      It is no valid C90 and is considered "STUPID" by Linus Torvalds :)
      https://lkml.org/lkml/2018/3/7/621
      
      The function egalax_I2C_write is only called once with a fix value of
      MAX_I2C_LEN and thus use this valie instead.
      5f48a8c1
    • Clemens Terasa's avatar
      touch: Add G&F touch drivers · 72208adb
      Clemens Terasa authored
      * Copied touch drivers from G&F Rocko
      * Includes the drivers for several touches including
      ** atmel-mtx
      ** AUO pixcir
      ** EDT ft5x05 and ft5x06
      ** EETI EXC7200 (i2c)
      ** EETI EXC3000 (i2c) including 80H80
      ** Himax
      ** Ilitek 2118
      ** Ilitek 25xx
      ** SCX050000
      ** SIS
      * Also includes touchgpio kernel module that generalizes the GPIO
      handling
      * Include a guf-kernel-module.inc include file
      72208adb
    • Clemens Terasa's avatar
      rtc-pcf8563-guf: Fix rtc-pcf8563-guf build · 520622d9
      Clemens Terasa authored
      Somehow the Garz & Fricke specific PCF8563 driver rtc-pcf8563-guf was
      not buildable.
      
      On cause was a missing and unused config.h file. Remove this file from
      the recipe.
      
      Another error was due to the removal of the register resets in the
      PCF8563 that should be prevented by the driver. However the buffer
      variable is used later on so we cannot comment it out.
      520622d9
  4. Sep 03, 2020
    • Norman Stetter's avatar
      Rename machine definitions · 6867e5ab
      Norman Stetter authored
      * Use known scheme: imx6guf for SAN*, imx6ullguf for NALLINO
      * Machine overrides are now set directly in the corresponding machine
      configs instead of relying on 'imx-base.inc' from meta-freescale
      * Update README
      6867e5ab
  5. Aug 24, 2020
  6. Aug 20, 2020
    • Clemens Terasa's avatar
      gfxml2dto: Add the gfxml2dto tool · 5e527ee0
      Clemens Terasa authored
      To convert the Garz & Fricke specific XML files to the more general
      Device Tree overlay files a tool is needed.
      
      This tool is called gfxml2dto.
      It is capable of reading the G&F XML file (by default located in
      /etc/shared/config.xml) and converting some of the parts to device tree
      overlay blobs.
      
      These blobs together with a base device tree can be used to generate a
      system specific device tree. The base device tree needs to be created
      including the symbols. (This is achieved by using the "-@" flag when
      using the `dtc` tool.)
      
      We currently have no versioning applied to gfxml2dto.
      
      Add this gfxml2dto to the MACHINE_EXTRA_RRECOMMENDS to install it in
      images using this machine layer.
      5e527ee0
  7. Aug 19, 2020
    • Clemens Terasa's avatar
      gfplatdetect: Add FnGBoot revision · 89ac7e0d
      Clemens Terasa authored
      The Flash-N-Go Boot bootloader propagates its version using ATAGS.
      ATAGS, however, will be destroyed after bootup if an appended device tree
      was found. Thus it needs to be saved to the device tree by the kernel
      before.
      
      Souch a kernel patch has been added and now get the FnGBoot info from
      the device tree.
      
      The Device Tree entry used for this is FnGBoot agnostic and was called
      "atag-revision".
      89ac7e0d
    • Clemens Terasa's avatar
      linux-stable: Pull kernel for ATAGS_REVISION · 249ce48e
      Clemens Terasa authored
      Pull in the ATAGS_REVISION propagation from git commit
      adddc460e1f761b7c41ec171dd88d6db92faee47.
      
      This will later enable the gfplatdetect module to parse the atag-revision
      entry from teh Device Tree. This is used by the FnGBoot bootloader to
      propagate its version.
      249ce48e
  8. Aug 18, 2020
    • Clemens Terasa's avatar
      kernel: Pull gfplatdetect adaptions · 2b91f89f
      Clemens Terasa authored
      Pull the latest kernel version fa7cf8de40b0695d856dab2a417bcb3c53620d36.
      This adds support for the gfplatdetect module that needs some exported
      symbols.
      
      It also activates the gfplatdetect in the device tree.
      2b91f89f
    • Clemens Terasa's avatar
      gfplatdetect: Activate the module for san* images · 77dd234c
      Clemens Terasa authored
      With the gfplatdetect module it is possible for all Garz & Fricke
      iMX6QDL platforms (San* platforms) to detect the board type, board
      revision and more information form the so caled PFID GPIO pins.
      
      Because of legacy we propagate this info to the `/proc/cpuinfo`.
      Add the gfplatdetect module for all Garz & Fricke San* boards.
      77dd234c
    • Clemens Terasa's avatar
      modules: gfplatdetect: Add platform detection for imx6qdl · 6c7a8329
      Clemens Terasa authored
      This commit establishes a working module and adds the real code to detect the
      platform and to propagate the platform to the /proc/cpuinfo file.
      The platform detection module is meant to replace the previous platform
      detection code in the imx6 board file.
      
      The kernel, however, needs some adaptions namely the exported symbols for
      the system_rev, board_rev, fngboot_rev and macghine_name.
      These are defined in arc/arm/kernel/setup.c and are meant to be
      displayed via the /proc/cpuinfo file.
      
      The other explicit exports are imx_get_soc_revision and a new function
      mxc_get_cpu_type which returns the __mxc_cpu_type variable.
      
      The main parts are taken from the previous implementation in the current
      rocko G&F kernel and from the Flash-N-Go Boot board detection code.
      
      Read the "pfid-gpios" from the device tree entry to get the correct
      GPIOs. This prevents the need for gpio definitions in this driver.
      
      Backup the previous information in case we want to unload the driver.
      Do this mainly for the machine_name string to prevent a dangling
      string pointer.
      
      Add another new sysfs interface to read the board and board revision.
      This might deprecate the /proc/cpuinfo part so that we do not have to
      touch it in the future anymore.
      And with teh sysfs we get a consistent method to propagate G&F specific
      board information.
      
      Right now only the imx6qdl (San*) platforms are supported. The imx6ull
      devices (NALLINO) are not yet supported.
      6c7a8329
  9. Aug 14, 2020
  10. Aug 13, 2020
    • Clemens Terasa's avatar
      bootscript: Remove device specific device trees · 9e6b9117
      Clemens Terasa authored
      We want to overlay the device tree in the install script. Thus we can
      create a device specific device tree with the generic name
      "devicetree.dtb".
      
      This removes the neccessary pacthing of the boot.cfg.
      
      However, currently we cannot load the devicetree with the bootloader and
      thus append the device tree to the kernel at installation time and name
      the resulting binary "linuximage".
      9e6b9117
    • Clemens Terasa's avatar
      bootscript: Add inital bootscript recipe · 7bb5d8e7
      Clemens Terasa authored
      Add the bootscript from current rocko commit
      ad543879 with following modifications:
      - Move imx6guf to san and imx6ullguf to nallino
      - Remove the "inherit release" as the release is not supported right now
      
      The bootscript recipe builds but does not output the correct script yet.
      7bb5d8e7
    • Clemens Terasa's avatar
      san:nallino: Move IMAGE_* variables to meta-guf-distro · eb43e1ab
      Clemens Terasa authored
      The variables IMAGE_BOOT_FILES and IMAGE_FSTYPES are less machine
      dependent and are more distro options.
      
      Thus move them to meta-guf-distro.
      
      Also edit the README accordingly.
      eb43e1ab
    • Clemens Terasa's avatar
      linux-stable: Remove DEPENDS and use inherited · bb6ab5a2
      Clemens Terasa authored
      The ordinary kernel.bbclass should implement all necessary dependencies
      needed to build the linux kernel.
      
      I tried to remove the build dependencies and it worked for me, thus
      remove the unneccessary dependencies.
      bb6ab5a2
    • Clemens Terasa's avatar
      linux-stable: Build device tree with symbols · 6b70c0e9
      Clemens Terasa authored
      Normally teh device tree blobs will be built without symbols like the
      aliases that may be used like references.
      
      However, the overlay method relies on the fact that the symbols are
      present in the devcie tree to be overlayed. This can be eigther achieved
      by using a textual representation of the devcie tree or by additional
      symbols in the device tree blob.
      
      Introduce the latter, so that we can use the device tree blob as overlay
      basis.
      6b70c0e9
    • Norman Stetter's avatar
      RTC: pcf8563, prevent writing to TD[1:0] to work with bootselect · d33cdd49
      Norman Stetter authored
      * disable TIMER_CONTROL register TD[1:0] bit configuration in PCF8563 driver
        probe since we use that bits for bootselect
      d33cdd49
    • Norman Stetter's avatar
      RTC: Modularize rtc-pcf8563 driver · 774256a1
      Norman Stetter authored
      * Pull the rtc-pcf8563.c source from the kernel-tree at v5.4.23
       (bfe3046ecafdd71ba6932deebe2eb357048b7bfc)
      * Remove the in-tree driver from the defconfig
      * Add the module to the MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS for san* and
      nallino platforms
      774256a1
  11. Jul 25, 2020
  12. Jul 01, 2020
  13. Jun 09, 2020
  14. Jun 07, 2020
Loading