1. 14 11月, 2018 5 次提交
  2. 08 11月, 2018 1 次提交
  3. 07 11月, 2018 2 次提交
  4. 19 10月, 2018 2 次提交
  5. 15 10月, 2018 1 次提交
  6. 13 10月, 2018 2 次提交
    • L
      regulator/gpio: Allow nonexclusive GPIO access · b0ce7b29
      Linus Walleij 提交于
      This allows nonexclusive (simultaneous) access to a single
      GPIO line for the fixed regulator enable line. This happens
      when several regulators use the same GPIO for enabling and
      disabling a regulator, and all need a handle on their GPIO
      descriptor.
      
      This solution with a special flag is not entirely elegant
      and should ideally be replaced by something more careful as
      this makes it possible for several consumers to
      enable/disable the same GPIO line to the left and right
      without any consistency. The current use inside the regulator
      core should however be fine as it takes special care to
      handle this.
      
      For the state of the GPIO backend, this is still the
      lesser evil compared to going back to global GPIO
      numbers.
      
      Cc: Marek Szyprowski <m.szyprowski@samsung.com>
      Cc: Jon Hunter <jonathanh@nvidia.com>
      Fixes: efdfeb07 ("regulator: fixed: Convert to use GPIO descriptor only")
      Reported-by: NMarek Szyprowski <m.szyprowski@samsung.com>
      Tested-by: NJon Hunter <jonathanh@nvidia.com>
      Tested-by: NMarek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      b0ce7b29
    • C
      regulator: lochnagar: Add support for the Cirrus Logic Lochnagar · bef9391c
      Charles Keepax 提交于
      Lochnagar is an evaluation and development board for Cirrus
      Logic Smart CODEC and Amp devices. It allows the connection of
      most Cirrus Logic devices on mini-cards, as well as allowing
      connection of various application processor systems to provide a
      full evaluation platform. This driver supports the board
      controller chip on the Lochnagar board.
      
      The Lochnagar board provides power supplies for the attached
      CODEC/Amp device. Currently this driver supports the microphone
      supplies and the digital core voltage for the attached
      device. There are some additional supplies that will be
      added in time but these supplies are sufficient for most
      systems/use-cases.
      Signed-off-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      bef9391c
  7. 10 10月, 2018 1 次提交
  8. 09 10月, 2018 1 次提交
  9. 04 10月, 2018 1 次提交
  10. 02 10月, 2018 1 次提交
  11. 28 9月, 2018 5 次提交
  12. 21 9月, 2018 3 次提交
  13. 20 9月, 2018 1 次提交
  14. 18 9月, 2018 2 次提交
    • L
      regulator: fixed: Convert to use GPIO descriptor only · efdfeb07
      Linus Walleij 提交于
      As we augmented the regulator core to accept a GPIO descriptor instead
      of a GPIO number, we can augment the fixed GPIO regulator to look up
      and pass that descriptor directly from device tree or board GPIO
      descriptor look up tables.
      
      Some boards just auto-enumerate their fixed regulator platform devices
      and I have assumed they get names like "fixed-regulator.0" but it's
      pretty hard to guess this. I need some testing from board maintainers to
      be sure. Other boards are straight forward, using just plain
      "fixed-regulator" (ID -1) or "fixed-regulator.1" hammering down the
      device ID.
      
      It seems the da9055 and da9211 has never got around to actually passing
      any enable gpio into its platform data (not the in-tree code anyway) so we
      can just decide to simply pass a descriptor instead.
      
      The fixed GPIO-controlled regulator in mach-pxa/ezx.c was confusingly named
      "*_dummy_supply_device" while it is a very real device backed by a GPIO
      line. There is nothing dummy about it at all, so I renamed it with the
      infix *_regulator_* as part of this patch set.
      
      Intel MID portions tested by Andy.
      
      Tested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> # Check the x86 BCM stuff
      Acked-by: Tony Lindgren <tony@atomide.com> # OMAP1,2,3 maintainer
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Reviewed-by: NJanusz Krzysztofik <jmkrzyszt@gmail.com>
      Reviewed-by: NMike Rapoport <rppt@linux.vnet.ibm.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      efdfeb07
    • C
      regulator: pfuze100-regulator: fix spelling mistake "standy" -> "standby" · db6565af
      Colin Ian King 提交于
      Trivial fix to spelling mistake in dev_info message
      Signed-off-by: NColin Ian King <colin.king@canonical.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      db6565af
  15. 11 9月, 2018 1 次提交
    • O
      regulator: pfuze100-regulator: provide pm_power_off_prepare handler · c29daffa
      Oleksij Rempel 提交于
      On some boards the SoC can use one pin "PMIC_STBY_REQ" to notify th PMIC
      about state changes. In this case internal state of PMIC must be
      preconfigured for upcomming state change.
      It works fine with the current regulator framework, except with the
      power-off case.
      
      This patch is providing an optional pm_power_off_prepare handler
      which will configure standby state of the PMIC to disable all power lines.
      
      In my power consumption test on RIoTBoard, I got the following results:
      power off without this patch:	320 mA
      power off with this patch:	2   mA
      suspend to ram:			40  mA
      Signed-off-by: NOleksij Rempel <o.rempel@pengutronix.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      c29daffa
  16. 07 9月, 2018 1 次提交
    • D
      regmap: split up regmap_config.use_single_rw · 1c96a2f6
      David Frey 提交于
      Split regmap_config.use_single_rw into use_single_read and
      use_single_write. This change enables drivers of devices which only
      support bulk operations in one direction to use the regmap_bulk_*()
      functions for both directions and have their bulk operation split into
      single operations only when necessary.
      
      Update all struct regmap_config instances where use_single_rw==true to
      instead set both use_single_read and use_single_write. No attempt was
      made to evaluate whether it is possible to set only one of
      use_single_read or use_single_write.
      Signed-off-by: NDavid Frey <dpfrey@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      1c96a2f6
  17. 04 9月, 2018 1 次提交
  18. 03 9月, 2018 2 次提交
    • M
      regulator: Fix useless O^2 complexity in suspend/resume · cd7e36ab
      Marek Szyprowski 提交于
      regulator_pm_ops with regulator_suspend and regulator_resume functions are
      assigned to every regulator device registered in the system, so there is no
      need to iterate over all again in them. Replace class_for_each_device()
      construction with direct operation on the rdev embedded in the given
      regulator device. This saves a lots of useless operations in suspend and
      resume paths.
      
      Fixes: f7efad10: regulator: add PM suspend and resume hooks
      Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      cd7e36ab
    • M
      regulator: Fix 'do-nothing' value for regulators without suspend state · 3edd79cf
      Marek Szyprowski 提交于
      Some regulators don't have all states defined and in such cases regulator
      core should not assume anything. However in current implementation
      of of_get_regulation_constraints() DO_NOTHING_IN_SUSPEND enable value was
      set only for regulators which had suspend node defined, otherwise the
      default 0 value was used, what means DISABLE_IN_SUSPEND. This lead to
      broken system suspend/resume on boards, which had simple regulator
      constraints definition (without suspend state nodes).
      
      To avoid further mismatches between the default and uninitialized values
      of the suspend enabled/disabled states, change the values of the them,
      so default '0' means DO_NOTHING_IN_SUSPEND.
      
      Fixes: 72069f99: regulator: leave one item to record whether regulator is enabled
      Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      Cc: stable@vger.kernel.org
      3edd79cf
  19. 29 8月, 2018 7 次提交