1. 23 Nov, 2011 4 commits
    • Rajendra Nayak's avatar
      regulator: map consumer regulator based on device tree · 69511a45
      Rajendra Nayak authored
      Device nodes in DT can associate themselves with one or more
      regulators/supply by providing a list of phandles (to regulator nodes)
      and corresponding supply names.
      
      For Example:
      	devicenode: node@0x0 {
      		...
      		...
      		vmmc-supply = <&regulator1>;
      		vpll-supply = <&regulator2>;
      	};
      
      The driver would then do a regulator_get(dev, "vmmc"); to get
      regulator1 and do a regulator_get(dev, "vpll"); to get
      regulator2.
      
      of_get_regulator() extracts the regulator node for a given
      device, based on the supply name.
      
      Use it to look up the regulator for a given consumer from device tree, during
      a regulator_get(). If not found fallback and lookup through
      the regulator_map_list instead.
      
      Also, since the regulator dt nodes can use the same binding to
      associate with a parent regulator/supply, allow the drivers to
      specify a supply_name, which can then be used to lookup dt
      to find the parent phandle.
      Signed-off-by: default avatarRajendra Nayak <rnayak@ti.com>
      Acked-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      69511a45
    • Rajendra Nayak's avatar
      regulator: pass additional of_node to regulator_register() · 2c043bcb
      Rajendra Nayak authored
      With device tree support for regulators, its needed that the
      regulator_dev->dev device has the right of_node attached.
      To be able to do this add an additional parameter to the
      regulator_register() api, wherein the dt-adapted driver can
      then pass this additional info onto the regulator core.
      Signed-off-by: default avatarRajendra Nayak <rnayak@ti.com>
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      2c043bcb
    • Rajendra Nayak's avatar
      regulator: adapt fixed regulator driver to dt · cef49102
      Rajendra Nayak authored
      The fixed regulator driver uses of_get_fixed_voltage_config()
      to extract fixed_voltage_config structure contents from device tree.
      
      Also add documenation for additional bindings for fixed
      regulators that can be passed through dt.
      Signed-off-by: default avatarRajendra Nayak <rnayak@ti.com>
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      cef49102
    • Rajendra Nayak's avatar
      regulator: helper routine to extract regulator_init_data · 8f446e6f
      Rajendra Nayak authored
      The helper routine is meant to be used by the regulator drivers
      to extract the regulator_init_data structure from the data
      that is passed from device tree.
      'consumer_supplies' which is part of regulator_init_data is not extracted
      as the regulator consumer mappings are passed through DT differently,
      implemented in subsequent patches.
      Similarly the regulator<-->parent/supply mapping is handled in
      subsequent patches.
      
      Also add documentation for regulator bindings to be used to pass
      regulator_init_data struct information from device tree.
      
      Some of the regulator properties which are linux and board specific,
      are left out since its not clear if they can
      be in someway embedded into the kernel or passed in from DT.
      They will be revisited later.
      Signed-off-by: default avatarRajendra Nayak <rnayak@ti.com>
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      8f446e6f
  2. 15 Nov, 2011 7 commits
  3. 14 Nov, 2011 7 commits
  4. 13 Nov, 2011 1 commit
  5. 12 Nov, 2011 17 commits
  6. 11 Nov, 2011 4 commits