An error occurred fetching the project authors.
  1. 20 Jan, 2012 4 commits
  2. 14 Dec, 2011 1 commit
  3. 23 Nov, 2011 1 commit
  4. 12 Oct, 2011 1 commit
  5. 09 Oct, 2011 1 commit
    • Heiko Stübner's avatar
      regulator: Add driver for gpio-controlled regulators · 3f0292ae
      Heiko Stübner authored
      This patch adds support for regulators that can be controlled via gpios.
      
      Examples for such regulators are the TI-tps65024x voltage regulators
      with 4 fixed and 1 runtime-switchable voltage regulators
      or the TI-bq240XX charger regulators.
      
      The number of controlling gpios is not limited, the mapping between
      voltage/current and target gpio state is done via the states map
      and the driver can be used for either voltage or current regulators.
      
      A mapping for a regulator with two GPIOs could look like:
      
      gpios = {
      	{ .gpio = GPIO1, .flags = GPIOF_OUT_INIT_HIGH, .label = "gpio name 1" },
      	{ .gpio = GPIO2, .flags = GPIOF_OUT_INIT_LOW,  .label = "gpio name 2" },
      }
      
      The flags element of the gpios array determines the initial state of
      the gpio, set during probe. The initial state of the regulator is also
      calculated from these values
      
      states = {
      	{ .value = volt_or_cur1, .gpios = (0 << 1) | (0 << 0) },
      	{ .value = volt_or_cur2, .gpios = (0 << 1) | (1 << 0) },
      	{ .value = volt_or_cur3, .gpios = (1 << 1) | (0 << 0) },
      	{ .value = volt_or_cur4, .gpios = (1 << 1) | (1 << 0) },
      }
      
      The target-state for the n-th gpio is determined by the n-th bit
      in the bitfield of the target-value.
      Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      3f0292ae
  6. 31 Jul, 2011 2 commits
  7. 23 Jul, 2011 1 commit
  8. 27 May, 2011 1 commit
  9. 24 May, 2011 1 commit
  10. 26 Mar, 2011 1 commit
  11. 23 Mar, 2011 2 commits
  12. 12 Jan, 2011 4 commits
  13. 28 Oct, 2010 2 commits
  14. 11 Aug, 2010 7 commits
  15. 07 Mar, 2010 2 commits
  16. 03 Mar, 2010 4 commits
  17. 17 Dec, 2009 2 commits
  18. 13 Dec, 2009 1 commit
  19. 22 Sep, 2009 2 commits