14 May, 2019

2 commits


04 Jul, 2018

6 commits

  • Add support for DA9063L, which is a reduced variant of the DA9063
    with less regulators and without RTC.

    Signed-off-by: Marek Vasut
    Acked-by: Mark Brown
    Reviewed-by: Geert Uytterhoeven
    Acked-by: Steve Twiss
    Signed-off-by: Lee Jones

    Marek Vasut
     
  • The DA9063L does not have an RTC. Add custom regmap for DA9063L to
    prevent access into that register block.

    Signed-off-by: Marek Vasut
    Signed-off-by: Lee Jones

    Marek Vasut
     
  • The model number stored in the struct da9063 is the same for all
    variants of the da9063 since it is the chip ID, which is always
    the same. Replace that with a separate identifier instead, which
    allows us to discern the DA9063 variants by setting the type
    based on either DT match or otherwise.

    Signed-off-by: Marek Vasut
    Acked-by: Mark Brown
    Reviewed-by: Geert Uytterhoeven
    Signed-off-by: Lee Jones

    Marek Vasut
     
  • The PMIC_DA9063 is a complete misnomer, it denotes the value of the
    DA9063 chip ID register, so rename it as such. It is also the value
    of chip ID register of DA9063L though, so drop the enum as all the
    DA9063 "models" share the same chip ID and thus the distinction will
    have to be made using DT or otherwise.

    Signed-off-by: Marek Vasut
    Acked-by: Mark Brown
    Reviewed-by: Geert Uytterhoeven
    Acked-by: Steve Twiss
    Signed-off-by: Lee Jones

    Marek Vasut
     
  • Convert the regmap_range tables to use regmap_reg_range() macro.

    Signed-off-by: Marek Vasut
    Reviewed-by: Geert Uytterhoeven
    Signed-off-by: Lee Jones

    Marek Vasut
     
  • Use devm_mfd_add_devices() instead of plain mfd_add_devices(), which
    removes the need for da9063_device_exit() altogether and also for the
    .remove callback in da9063-i2c.c .

    Signed-off-by: Marek Vasut
    Signed-off-by: Lee Jones

    Marek Vasut
     

04 Oct, 2016

1 commit


16 Mar, 2016

1 commit

  • Add an updated set of registers listed in the core regmap_range volatile
    ranges defined for the DA9063.

    These new registers contain bits that cannot be considered under the full
    control of software. Under various conditions the hardware will set and/or
    automatically clear bit(s) contained in these registers.

    When using a cached version of regmap, the volatility of these registers must
    be identified otherwise the regmap operations may not ensure the registers
    are explicitly altered.

    As well as updating the list of volatile registers, this change will fix a
    corner case discovered in the DA9063 ONKEY which is used by the DA9063 core.

    In the ONKEY case, the CONTROL_B register is now listed as volatile in the
    regmap_range because it contains the bit field NONKEY_LOCK. This bit can be
    altered by hardware, in which case regmap must be notified of its ability
    to be manpiulated outside of software control.

    Signed-off-by: Steve Twiss
    Signed-off-by: Lee Jones

    Steve Twiss
     

11 Aug, 2015

1 commit


23 Jan, 2015

1 commit


28 Jul, 2014

1 commit

  • Add register definitions for DA9063 AD (0x3) silicon variant ID
    the ability to choose the silicon variant at run-time using regmap
    configuration. This patch also adds RTC support for the AD silicon
    changes.

    It adds both BB and AD support as regmap ranges and then makes the
    distinction between the two tables at run-time. This allows both AD
    and BB silicon variants to be supported at the same time.

    Suggested-by: Philipp Zabel
    Signed-off-by: Opensource [Steve Twiss]
    Signed-off-by: Lee Jones

    Opensource [Steve Twiss]
     

20 Aug, 2013

1 commit

  • This is MFD module providing access to registers and interrupts of DA906x
    series PMIC. It is used by other functional modules, registered as MFD cells.
    Driver uses regmap with paging to access extended register list. Register map
    is divided into two pages, where the second page is used during initialisation.

    This module provides support to following functional cells:
    - Regulators
    - RTC
    - HWMON
    - OnKey (power key misc input device)
    - Vibration (force-feedback input device)
    - Watchdog
    - LEDs

    Signed-off-by: Krystian Garbaciak
    Signed-off-by: Philipp Zabel
    Reviewed-by: Mark Brown
    Signed-off-by: Samuel Ortiz

    Krystian Garbaciak