06 Jun, 2020

1 commit


30 May, 2020

1 commit


18 Dec, 2019

1 commit


18 Mar, 2019

3 commits


05 Mar, 2019

1 commit


30 Jan, 2019

1 commit

  • The RV1805 uses smaller package than the AB1805, discern those two
    chips based on the compatible value and configure reserved bits in
    the RV1805 to prevent current leakage and accidental test mode entry.

    Signed-off-by: Marek Vasut
    Cc: Alexandre Belloni
    To: linux-rtc@vger.kernel.org
    Signed-off-by: Alexandre Belloni

    Marek Vasut
     

19 Dec, 2018

1 commit


12 Sep, 2018

2 commits


02 Mar, 2018

1 commit


13 Oct, 2017

2 commits


19 Jul, 2016

1 commit

  • If devm_add_action() fails we are explicitly calling the cleanup to free
    the resources allocated. Lets use the helper devm_add_action_or_reset()
    and return directly in case of error, as we know that the cleanup function
    has been already called by the helper if there was any error.

    Signed-off-by: Sudip Mukherjee
    Signed-off-by: Alexandre Belloni

    Sudip Mukherjee
     

25 Mar, 2016

2 commits

  • Handle the Oscillator Failure ('OF') bit from Oscillator Status register
    (0x1D). This bit is cleared on set_time function and is read each time the
    date/time is read, but only in case of XT Oscillator selection.
    In RC mode, this bit is always set.

    Signed-off-by: Mylène Josserand
    Signed-off-by: Alexandre Belloni

    Mylène Josserand
     
  • The autocalibration is separated in two bits to set in Oscillator
    Control register (0x1c) :
    - OSEL bit to select the oscillator type (XT or RC).
    - ACAL bit to select the autocalibration type.

    These functionnalities are exported in sysfs entries : "oscillator"
    and "autocalibration". Respectively, the values are "xtal" for XT
    oscillator and "rc" for RC oscillator and 0 to disable the
    autocalibration cycle, 512 for a 512 seconds autocalibration cycle
    and 1024 for a cycle of 1024 seconds.

    Examples :
    Set to XT Oscillator
    echo xtal > /sys/class/rtc/rtc0/device/oscillator
    Activate an autocalibration every 512 seconds
    echo 512 > /sys/class/rtc/rtc0/device/autocalibration

    Signed-off-by: Mylène Josserand
    Signed-off-by: Alexandre Belloni

    Mylène Josserand
     

12 Jan, 2016

2 commits


06 Sep, 2015

1 commit


06 May, 2015

1 commit

  • This is a basic driver for the ultra-low-power Abracon AB x80x series of RTC
    chips. It supports in particular, the supersets AB0805 and AB1805.
    It allows reading and writing the time, and enables the supercapacitor/
    battery charger.

    [arnd@arndb.de: abx805 depends on i2c]
    [alexandre.belloni@free-electrons.com: renam buffer from date to buf in abx80x_rtc_read_time()]
    Signed-off-by: Philippe De Muyter
    Cc: Alessandro Zummo
    Signed-off-by: Alexandre Belloni
    Signed-off-by: Arnd Bergmann
    Cc: Paul Bolle
    Cc: Arnd Bergmann
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Philippe De Muyter