1. 29 Jun, 2019 7 commits
  2. 27 Jun, 2019 1 commit
  3. 26 Jun, 2019 9 commits
  4. 22 Jun, 2019 3 commits
  5. 21 Jun, 2019 5 commits
  6. 14 Jun, 2019 13 commits
  7. 12 Jun, 2019 2 commits
    • Linus Walleij's avatar
      i2c: iop: Use GPIO descriptors · fdb7e884
      Linus Walleij authored
      The IOP3xx has some elaborate code to directly slam the
      GPIO lines multiplexed with I2C down low before enablement,
      apparently a workaround for a hardware bug found in the
      early chips.
      
      After consulting the developer documentation for IOP80321
      and IOP80331 I can clearly see that this may be useful for
      IOP80321 family (mach-iop32x) but it is highly dubious for
      any 80331 series or later chip: in these chips the lines
      are not multiplexed for UARTs.
      
      We convert the code to pass optional GPIO descriptors
      and register these only on the 80321-based boards where
      it makes sense, optionally obtain them in the driver and
      use the gpiod_set_raw_value() to ascertain the line gets
      driven low when needed.
      
      The GPIO driver does not give the GPIO chip a reasonable
      label so the patch also adds that so that these machine
      descriptor tables can be used.
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarDan Williams <dan.j.williams@intel.com>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      fdb7e884
    • Linus Walleij's avatar
      i2c: s3c2410: Convert to use GPIO descriptors · ed7357c9
      Linus Walleij authored
      The S3C2410 does some funny dance around its pins:
      - First try to call back to the platform to get and control
        some GPIO pins
      - If this doesn't work, it tries to get a pin control handle
      - If this doesn't work, it retrieves two GPIOs from the device
        tree node and does nothing with them
      
      If we're gonna retrieve two GPIOs and do nothing with them, we
      might as well do it using the GPIO descriptor API. When we use
      the resource management API, the code gets smaller.
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Acked-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
      ed7357c9