19 Jun, 2019

1 commit

  • Based on 2 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation #

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 4122 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Enrico Weigelt
    Reviewed-by: Kate Stewart
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

23 Jan, 2019

1 commit

  • Add support for specifying the xtal load capacitance in the DT node.
    The pcf8523 supports xtal load capacitance of 7pF or 12.5pF.
    If the rtc has the wrong configuration the time will
    drift several hours/week.

    The driver use the default value 12.5pF.

    The DT may specify either 7000fF or 12500fF.
    (The DT uses femto Farad to avoid decimal numbers).
    Other values are warned and the driver uses the default value.

    Signed-off-by: Sam Ravnborg
    Cc: Alessandro Zummo
    Cc: Alexandre Belloni
    Signed-off-by: Alexandre Belloni

    Sam Ravnborg
     

11 Jan, 2019

1 commit


11 Dec, 2018

1 commit


02 Mar, 2018

1 commit


26 Oct, 2017

1 commit

  • Add support for reading and writing the RTC offset register, converting
    it to the corresponding parts-per-billion value.

    When setting the drift, the PCF8523 has two modes: one applies the
    adjustment every two hours, the other applies the adjustment every
    minute. We select between these two modes according to which ever
    gives the closest PPB value to the one requested.

    Signed-off-by: Russell King
    Signed-off-by: Alexandre Belloni

    Russell King
     

15 Mar, 2016

1 commit

  • The time and date register of the pcf8223 are undefined after a power
    reset. Properly handle the OS bit and return -EINVAL when that bit is set.

    It is properly removed when setting the time.

    This solves an issue where the time and date may be valid for
    rtc_valid_tm() but is not the current time.

    Signed-off-by: Alexandre Belloni

    Alexandre Belloni
     

12 Jan, 2016

1 commit

  • When the chip increments the YEAR register and it already holds
    bin2bcd(99) it reads as 0 afterwards. With this behaviour the last valid
    day (without trickery) that has a representation is 2099-12-31 23:59:59.
    So refuse to write later dates.

    Signed-off-by: Uwe Kleine-König
    Signed-off-by: Alexandre Belloni

    Uwe Kleine-König
     

05 Sep, 2015

1 commit


07 May, 2014

1 commit


04 Jul, 2013

1 commit


30 Apr, 2013

1 commit


22 Feb, 2013

1 commit

  • Implement reading of the battery voltage low signal for rtc-pcf8523.

    The bit is read-only and cannot be cleared by software, so no
    clear function is implemented.

    [akpm@linux-foundation.org: omit pcf8563_rtc_ioctl() if CONFIG_RTC_INTF_DEV=n]
    Signed-off-by: Jesper Nilsson
    Reviewed-by: Thierry Reding
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jesper Nilsson
     

18 Dec, 2012

1 commit

  • Add an RTC driver for PCF8523 chips by NXP Semiconductors. No support is
    currently provided for the alarm and interrupt functions. Only the time
    and date functionality is implemented.

    Signed-off-by: Thierry Reding
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thierry Reding