1. 10 Sep, 2018 1 commit
  2. 04 Sep, 2018 7 commits
  3. 31 Aug, 2018 1 commit
  4. 30 Aug, 2018 3 commits
    • Justin Chen's avatar
      gpio: brcmstb: allow 0 width GPIO banks · bfba223d
      Justin Chen authored
      Sometimes we have empty banks within the GPIO block. This commit allows
      proper handling of 0 width GPIO banks. We handle 0 width GPIO banks by
      incrementing the bank and number of GPIOs, but not initializing them.
      This will mean a call into the non-existent GPIOs will return an error.
      
      Also remove "GPIO registered" dev print. This information is misleading
      since the incremented banks and gpio_base do not reflect the actual GPIOs
      that get initialized. We leave this information out since it is already
      printed with dev_dbg.
      Signed-off-by: default avatarJustin Chen <justinpopo6@gmail.com>
      Acked-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      bfba223d
    • Linus Walleij's avatar
      gpio: ftgpio: Support debounce timer · 36f3f19a
      Linus Walleij authored
      The FTGPIO010 has a debounce timer or rather prescaler that
      will affect interrupts fireing off the block. We can support
      this to get proper debounce on e.g. keypresses.
      
      Since the same prescaler is used across all GPIO lines of
      the silicon block, we need to bail out if the prescaler is
      already set and in use by another line.
      
      If the prescaler is already set to what we need, fine, we
      reuse it. This happens more often than not when the same
      debounce time is set for several GPIO keys, so we support
      that usecase easily with this code.
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      36f3f19a
    • Linus Walleij's avatar
      gpio: ftgpio: Support optional silicon clock · da02d794
      Linus Walleij authored
      The GPIO silicon is clocked with a PCLK (peripheral clock)
      on all systems, however not all platforms model it and include
      it in e.g. the device tree, so add clock handling but make it
      optional so we bail out safely if it is e.g. always on.
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      da02d794
  5. 29 Aug, 2018 28 commits