Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: rtc: sam0: Add RTC calendar driver and clock fixes #81819

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Commits on Nov 26, 2024

  1. devicetree: Introduce assigned-clock property

    Some platforms require special clock selection options. This could be
    made using the already defined assigned-clocks. This introduces the
    assigned-clocks and assigned-clock-names properties to generalize those
    conditions.
    
    Signed-off-by: Gerson Fernando Budke <[email protected]>
    nandojve committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    e01c0e2 View commit details
    Browse the repository at this point in the history
  2. dts: rtc: sam0: Add clock properties

    Add properties to differentiate the timer counter operating modes. This
    properties are necessary to spetialize the driver to be used as a normal
    16/32-bit counter or to provide the clock/calendar functions.
    
    Signed-off-by: Gerson Fernando Budke <[email protected]>
    nandojve committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    0b2f327 View commit details
    Browse the repository at this point in the history
  3. clocks: atmel: sam0: Fix gclk and mclk clock bindings

    The Atmel SAM0 SoC enable peripherals clocks in distinct places: PM and
    MCLK. The old devices had defined the peripheral clock enable bit at PM.
    On the newer devices this was extracted on a dedicated memory section
    called Master Clock (MCLK). This change excludes the dedicated bindings
    in favor of a generic approach that cover all cases.
    
    Now the clocks properties is complemented by the assigned-clocks
    property. It gives the liberty to user to customize the clock source
    from a generic clock or configure the direct connections.
    
    All peripherals drivers were reworked with the newer solution.
    
    Signed-off-by: Gerson Fernando Budke <[email protected]>
    nandojve committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    6c48d1b View commit details
    Browse the repository at this point in the history
  4. soc: atmel: sam0: Configure GCLK[4] to RTC

    Configure the Generic Clock Generator to be used as source to RTC.
    The index 4 is now reserved to RTC.
    
    Signed-off-by: Gerson Fernando Budke <[email protected]>
    nandojve committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    8af71d4 View commit details
    Browse the repository at this point in the history
  5. drivers: rtc: sam0: Add realtime clock driver

    Add Atmel sam0 rtc calendar driver.
    
    Signed-off-by: Gerson Fernando Budke <[email protected]>
    nandojve committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    c4951b1 View commit details
    Browse the repository at this point in the history
  6. boards: atmel: sam0: Add rtc configs

    Add configurations to allow use of RTC driver and tests.
    
    Signed-off-by: Gerson Fernando Budke <[email protected]>
    nandojve committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    8ce6005 View commit details
    Browse the repository at this point in the history