23 May, 2018

1 commit


24 Jan, 2018

1 commit


29 Dec, 2017

1 commit


13 Dec, 2017

2 commits

  • Texas Instrument's TPS65910 PMIC contains 3 buck DC-DC converts, one
    boost DC-DC converter and 8 LDOs. This patch implements driver model
    support for the TPS65910 PMIC and its regulators making the get/set
    API for regulator value/enable available.
    This patch depends on the patch "am33xx: Add a function to query MPU
    voltage in uV" to build correctly. For boards relying on the DT
    include file tps65910.dtsi the v3 patch "power: extend prefix match
    to regulator-name property" and an appropriate regulator naming is
    also required.

    Signed-off-by: Felix Brack
    Reviewed-by: Simon Glass

    Felix Brack
     
  • This patch extends pmic_bind_children prefix matching. In addition to
    the node name the property regulator-name is used while trying to match
    prefixes. This allows assigning different drivers to regulator nodes
    named regulator@1 and regulator@10 for example.
    I have discarded the idea of using other properties then regulator-name
    as I do not see any benefit in using property compatible or even
    regulator-compatible. Of course I am open to change this if there are
    good reasons to do so.

    Signed-off-by: Felix Brack
    Reviewed-by: Simon Glass

    Felix Brack
     

01 Aug, 2017

1 commit


29 Jul, 2017

3 commits

  • Convert this PMIC driver to driver model and fix up other users. The
    regulator and GPIO functions are now handled by separate drivers.

    Update nyan-big to work correct. Three boards will need to be updated by
    the maintainers: apalis-tk1, cei-tk1-som. Also the TODO in the code re
    as3722_sd_set_voltage() needs to be completed.

    Signed-off-by: Simon Glass
    Reviewed-by: Lukasz Majewski
    Tested-by: Marcel Ziswiler
    Tested-on: Jetson-TK1
    Tested-by: Stephen Warren

    Simon Glass
     
  • This pmic includes GPIOs which should have their own driver. Add
    a driver to support these.

    Signed-off-by: Simon Glass
    Reviewed-by: Lukasz Majewski
    Tested-by: Marcel Ziswiler
    Tested-on: Beaver, Jetson-TK1
    Tested-by: Stephen Warren

    Simon Glass
     
  • This pmic includes regulators which should have their own driver. Add
    a driver to support these.

    Signed-off-by: Simon Glass
    Reviewed-by: Lukasz Majewski
    Tested-by: Marcel Ziswiler
    Tested-on: Beaver, Jetson-TK1
    Tested-by: Stephen Warren

    Simon Glass
     

19 Jul, 2017

1 commit


11 Jul, 2017

1 commit


09 Jun, 2017

3 commits


01 Jun, 2017

1 commit


29 May, 2017

1 commit

  • Currently while setting the vsel value for dcdc1 and dcdc2
    the driver is wrongly masking the entire 8 bits in the process
    clearing PFM (bit7) field as well. Hence describe an appropriate
    mask for vsel field and modify only those bits in the vsel
    mask.

    Source: http://www.ti.com/lit/ds/symlink/tps65218.pdf

    Signed-off-by: Keerthy
    Fixes: 86db550b38 ("power: Add support for the TPS65218 PMIC")
    Reviewed-by: Jaehoon Chung

    Keerthy
     

12 May, 2017

1 commit

  • Update MPU frequencies and voltages as per the latest
    DM[1] dated: OCT 2011 Revised APRIL 2016, Section 5.4.
    Below is the consolidated data:

    MPU values for PG 2.0 and later(Package ZCZ and ZCE):

    -------------------------------------------------------
    | | ZCZ | ZCE |
    |-------------------------------------------------------|
    | | VDD[V] | ARM [MHz] | VDD[V] | ARM [MHz] |
    |-------|----------|------------|----------|------------|
    | NITRO | 1.325 | 1000 | NA | NA |
    |-------|----------|------------|----------|------------|
    | TURBO | 1.26 | 800 | NA | NA |
    |-------|----------|------------|----------|------------|
    |OPP120 | 1.20 | 720 | NA | NA |
    |-------|----------|------------|----------|------------|
    |OPP100 | 1.10 | 600 | 1.10 | 600 |
    |-------|----------|------------|----------|------------|
    | OPP50 | 0.95 | 300 | 0.95 | 300 |
    -------------------------------------------------------

    There is no eFuse blown on PG1.0 Silicons due to which there is
    no way to detect the maximum frequencies supported. So default
    to OPP100 for which both frequency and voltages are common on both
    the packages.

    [1] http://www.ti.com/lit/ds/symlink/am3356.pdf

    Signed-off-by: Lokesh Vutla
    Reviewed-by: Tom Rini

    Lokesh Vutla
     

11 May, 2017

3 commits


19 Jan, 2017

2 commits


16 Dec, 2016

1 commit


26 Nov, 2016

1 commit


12 Oct, 2016

4 commits


07 Oct, 2016

1 commit


28 Jul, 2016

1 commit


10 Jun, 2016

1 commit


25 Feb, 2016

1 commit

  • Add the following functions:
    tps65218_reg_read() for accessing redisters
    tps65218_toggle_fseal() for toggling the fseal bit
    tps65218_lock_fsea() for locking the fseal bit to 1

    Add the following defines:
    All status register bits

    Cc: Tom Rini
    Cc: Albert Aribaud
    Cc: Igor Grinberg
    Signed-off-by: Nikita Kiryanov
    Reviewed-by: Tom Rini

    Nikita Kiryanov
     

22 Jan, 2016

1 commit


13 Jan, 2016

1 commit

  • include/power/pmic.h never used any generic spi code
    from include/spi.h, but this has been added in below commit.
    "dm: pmic: add implementation of driver model pmic uclass"
    (sha1: 4d9057e82be11a862db411c4867e859fe0d4ca2a)

    Adding functionalities in include/spi.h will trigger a build
    issue as this been added used in include/power/pmic.h

    Build issue on trats2 with adding BIT macro on spi.h:
    ----------------------------------------------------
    CC lib/asm-offsets.s
    In file included from include/power/pmic.h:15:0,
    from include/power/max77686_pmic.h:11,
    from include/configs/trats2.h:212,
    from include/config.h:5,
    from include/common.h:18,
    from lib/asm-offsets.c:15:
    include/spi.h: In function 'spi_w8r8':
    include/spi.h:327:2: warning: implicit declaration of function 'BIT' [-Wimplicit-function-declaration]

    Cc: Simon Glass
    Cc: Przemyslaw Marczak
    Reported-by: Tom Rini
    Signed-off-by: Jagan Teki
    Reviewed-by: Tom Rini
    Acked-by: Simon Glass

    Jagan Teki
     

02 Nov, 2015

3 commits

  • This commit adds unit tests for ADC uclass's methods using sandbox ADC.

    Testing proper ADC binding:
    - dm_test_adc_bind() - device binding
    - dm_test_adc_wrong_channel_selection() - checking wrong channel selection

    Testing ADC supply operations:
    - dm_test_adc_supply():
    - Vdd/Vss values validating
    - Vdd regulator updated value validating
    - Vdd regulator's auto enable state validating

    Testing ADC operations results:
    - dm_test_adc_single_channel_conversion() - single channel start/data
    - dm_test_adc_single_channel_shot() - single channel shot
    - dm_test_adc_multi_channel_conversion() - multi channel start/data
    - dm_test_adc_multi_channel_shot() - multi channel single shot

    Signed-off-by: Przemyslaw Marczak
    Cc: Simon Glass
    Signed-off-by: Minkyu Kang

    Przemyslaw Marczak
     
  • Some devices are supplied by configurable regulator's output.
    But there was no function for getting it. This commit adds
    function, that allows for getting the supply device by it's phandle.

    The returned regulator device can be used with regulator uclass's API.

    Signed-off-by: Przemyslaw Marczak
    Cc: Simon Glass
    Signed-off-by: Minkyu Kang

    Przemyslaw Marczak
     
  • This driver allows I/O operations on the Samsung S2MPS11 PMIC,
    which provides lots of LDO/BUCK outputs.

    To enable it, update defconfig with:
    - CONFIG_PMIC_S2MPS11
    and additional, if were not defined:
    - CONFIG_CMD_PMIC
    - CONFIG_ERRNO_STR

    The binding info: doc/device-tree-bindings/pmic/s2mps11.txt

    Signed-off-by: Przemyslaw Marczak
    Reviewed-by: Simon Glass
    Tested-by: Anand Moon
    Signed-off-by: Minkyu Kang

    Przemyslaw Marczak
     

04 Sep, 2015

1 commit


03 Sep, 2015

1 commit


02 Sep, 2015

1 commit