27 Sep, 2016

1 commit

  • Added one additional parameter to thermal_zone_device_update() to provide
    caller with an optional capability to specify reason.
    Currently this event is used by user space governor to trigger different
    processing based on event code. Also it saves an additional call to read
    temperature when the event is received.
    The following events are cuurently defined:
    - Unspecified event
    - New temperature sample
    - Trip point violated
    - Trip point changed
    - thermal device up and down
    - thermal device power capability changed

    Signed-off-by: Srinivas Pandruvada
    Signed-off-by: Zhang Rui

    Srinivas Pandruvada
     

31 May, 2016

1 commit

  • Current code can set ramp delay to a wrong setting that the return value
    from .set_voltage_time_sel is not enough for proper delay.
    Fix the logic in .set_ramp_delay and also remove unused ret_val variable.

    Signed-off-by: Axel Lin
    Signed-off-by: Mark Brown

    Axel Lin
     

14 Apr, 2016

1 commit

  • The driver MAX8973 supports the driver for Maxim PMIC MAX77621.
    MAX77621 supports the junction temp warning at 120 degC and
    140 degC which is configurable. It generates alert signal when
    junction temperature crosses these threshold.

    MAX77621 does not support the continuous temp monitoring of
    junction temperature. It just report whether junction temperature
    crossed the threshold or not.

    Add support to
    - Configure junction temp warning threshold via DT property
    to generate alert when it crosses the threshold.
    - Add support to interrupt the host from this device when alert
    occurred.
    - read the junction temp via thermal framework.

    Signed-off-by: Laxman Dewangan
    Signed-off-by: Mark Brown

    Laxman Dewangan
     

30 Aug, 2015

1 commit


29 Jul, 2015

1 commit

  • Use regmap helpers for get_voltage_sel and set_voltage_sel ops
    if the DVS GPIO is not set.

    The DVS GPIO allows on the fly selection of the VSEL register
    from two choices. However, if it is not set, the VSEL register
    will stay fixed and we can use the regmap ops. This allows use
    of the *hardware_vsel* regulator APIs.

    Signed-off-by: Mikko Perttunen
    Signed-off-by: Mark Brown

    Mikko Perttunen
     

15 Jul, 2015

1 commit


07 Jul, 2015

3 commits

  • Add support to configure Enhanced Transient Response Enable (ETR)
    and Sensitivity Selection based on maximum current i.e. expected
    load on that rail.

    Maxim recommended as:
    - Enable ETR with high sensitivity (75mV/us) for 0 to 9A expected loads,
    - Enable ETR with low sensitivity (150mV/us) for 9A to 12A expected loads.
    - Disable ETR for expected load > 12A.

    These recommendation will be configured for MAX77621 when maximum load
    is provided through regulator constraint for maximum current from platform.

    Signed-off-by: Laxman Dewangan
    Signed-off-by: Mark Brown

    Laxman Dewangan
     
  • The MAX8973/MAX77621 feature an Enhanced Transient Response(ETR)
    circuit that is enabled through software. The enhanced transient
    response reduces the voltage droop during large load steps by
    temporarily allowing all three phases to fire in unison, slewing
    total inductor current faster than would normally be possible if
    all three phases continued to operate 120deg out of phase. The
    enhanced transient response detector features two selectable
    sensitivity settings, which select the output voltage slew rate
    during load transients that triggers the ETR circuit. The sensitivity
    of the ETR detector is set by the CKADV[1:0] bits in the CONTROL2
    register.

    Add support to configure the ETR through platform data from DT.
    Update the DT binding document accordingly.

    Signed-off-by: Laxman Dewangan
    Signed-off-by: Mark Brown

    Laxman Dewangan
     
  • The control flag for the bias control is MAX8973_CONTROL_BIAS_ENABLE
    rather than MAX8973_BIAS_ENABLE which is macro for the bits in
    register.

    Fix this typo.

    Signed-off-by: Laxman Dewangan
    Signed-off-by: Mark Brown

    Laxman Dewangan
     

11 Jun, 2015

1 commit


10 Jun, 2015

2 commits

  • Maxim MAX77621 device is high-efficiency, three-phase,
    DC-DC step-down switching regulator delivers peak
    output currents up to 16A. This device is extension of
    MAX8973 and compatible with the register definition.

    The MAX77621 has the SHUTDOWN pin which is EN pin on the
    MAX8973. On MAX77621, the SHUTDOWN pin (active low) reset
    device register to its POR/OTP value. The voltage output
    is enabled when SHUTDONW pin is HIGH and EN bit on VOUT
    register is HIGH.

    For MAX8973, VOUT is enabled when EN bit or EN pin is high.

    Add support of the MAX77621 device on max8973 regulator driver
    with following changes:
    - Make sure SHUTDOWN pin is set HIGH through GPIO calls if
    GPIO from AP connected to SHUTDOWN pin provided.
    - Enable/disable the rail through register access only.

    Signed-off-by: Laxman Dewangan
    Signed-off-by: Mark Brown

    Laxman Dewangan
     
  • Regulator core framework support the configuration of ramp
    delay reading from platform specific regulator data via the
    regulator callback ops.

    Instead of reading regulator init data on driver and setting
    ramp delay, use the callback to achieve this.

    Signed-off-by: Laxman Dewangan
    Signed-off-by: Mark Brown

    Laxman Dewangan
     

22 May, 2015

4 commits


28 Apr, 2015

1 commit


27 Nov, 2014

1 commit

  • The of_get_regulator_init_data() function is used to extract the regulator
    init_data but information on how to extract certain data is defined in the
    static regulator descriptor (e.g: how to map the hardware operating modes).

    Add a const struct regulator_desc * parameter to the function signature so
    the parsing logic could use the information in the struct regulator_desc.

    of_get_regulator_init_data() relies on of_get_regulation_constraints() to
    actually extract the init_data so it has to pass the struct regulator_desc
    but that is modified on a later patch.

    Signed-off-by: Javier Martinez Canillas
    Signed-off-by: Mark Brown

    Javier Martinez Canillas
     

10 Mar, 2014

1 commit


19 Feb, 2014

1 commit


17 Sep, 2013

1 commit


30 Jul, 2013

1 commit


24 Jun, 2013

1 commit

  • This patch adds primitive DT support to the max8973 regulator driver. None
    of the configuration parameters, supported in the platform data are yet
    available in DT, therefore no configuration is performed if booting with
    no platform data. This means, that DT instantiation can only be used on
    boards, where no run-time configuration of the chip is required. In such
    cases the driver can be used to scale its output voltage. In the future
    support for configuration parameters should be added.

    Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Mark Brown

    Guennadi Liakhovetski
     

21 Jun, 2013

1 commit

  • Currently the max8973 regulator driver uses a single static struct of
    regulator operations for all chip instances, but can overwrite some of its
    members depending on configuration. This will affect all other MAX8973
    instances on the system. This patch fixes this bug by allocating a separate
    copy of the struct for each chip instance.

    Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Mark Brown

    Guennadi Liakhovetski
     

24 Apr, 2013

1 commit


04 Jan, 2013

1 commit

  • CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
    markings need to be removed.

    This change removes the use of __devinit, __devexit_p, __devinitdata,
    __devinitconst, and __devexit from these drivers.

    Based on patches originally written by Bill Pemberton, but redone by me
    in order to handle some of the coding style issues better, by hand.

    Cc: Bill Pemberton
    Cc: Liam Girdwood
    Cc: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

23 Nov, 2012

1 commit


22 Nov, 2012

1 commit


19 Nov, 2012

1 commit

  • The MAXIM MAX8973 high-efficiency, three phase, DC-DC step-down
    switching regulator delievers up to 9A of output current. Each
    phase operates at a 2MHz fixed frequency with a 120 deg shift
    from the adjacent phase, allowing the use of small magnetic
    component.

    Add regulator driver for this device.

    Signed-off-by: Laxman Dewangan
    Signed-off-by: Mark Brown

    Laxman Dewangan