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

clock_control: stm32: Configure MCO through devicetree instead of Kconfig #76556

Merged
merged 14 commits into from
Sep 16, 2024

Commits on Sep 15, 2024

  1. drivers: clock_control: Expose enabled_clock for clock driver library

    Expose the helper function enabled_clock so that it can be used in
    other clock library sources.
    
    Signed-off-by: Joakim Andersson <joerchan@gmail.com>
    joerchan committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    9219d26 View commit details
    Browse the repository at this point in the history
  2. drivers: clock_control: Add clock sources to common enabled_clock check

    Add clock sources PLL2CLK, PLL3CLK and EXT_HSE.
    Needed to check that these clocks are enabled in MCO code.
    
    Signed-off-by: Joakim Andersson <joerchan@gmail.com>
    joerchan committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    3a1311d View commit details
    Browse the repository at this point in the history
  3. dt-bindings: clock: Add clock sources for stm32f1x/10x for MCO

    Add clock sources that can be output by the MCO on the stm32f1x and
    stm32f10 connectivity line devices.
    
    Signed-off-by: Joakim Andersson <joerchan@gmail.com>
    joerchan committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    2fb01f1 View commit details
    Browse the repository at this point in the history
  4. include: dt-bindings: Add MCO select and prescaler macros for CFGR reg

    Add MCO select and prescaler macros to set bits in the RCC CFGRx
    register.
    The set of supported boards are chosen to replace what is currently
    supported in Kconfig.
    
    Signed-off-by: Joakim Andersson <joerchan@gmail.com>
    joerchan committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    563c362 View commit details
    Browse the repository at this point in the history
  5. dts: bindings: Add stm32 microcontroller clock output binding

    Add stm32 microcontroller clock output binding.
    
    Signed-off-by: Joakim Andersson <joerchan@gmail.com>
    joerchan committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    b1aa6f9 View commit details
    Browse the repository at this point in the history
  6. include: Add STM32_MCO_CFGR bit encoding and decoding

    Add macro for encoding MCO bit values into the CFGR register
    of RCC. Add macros for decoding and extracting the different fields.
    
    Signed-off-by: Joakim Andersson <joerchan@gmail.com>
    joerchan committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    0d01f41 View commit details
    Browse the repository at this point in the history
  7. drivers: Add driver for STM32 MCO peripheral

    Add device driver for STM32 MCO peripheral which takes configures
    the MCO clock source and prescaler, and outputs it on one of the GPIO
    pins.
    
    Signed-off-by: Joakim Andersson <joerchan@gmail.com>
    joerchan committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    745992d View commit details
    Browse the repository at this point in the history
  8. dts: st: Add MCO node to STM32 boards

    Add MCO device nodes to the STM32 boards.
    The set of supported boards are chosen to replace what is currently
    supported in Kconfig.
    
    Signed-off-by: Joakim Andersson <joerchan@gmail.com>
    joerchan committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    422100b View commit details
    Browse the repository at this point in the history
  9. include: dt-bindings: clock: fix stm32f7 missing HSE and PLLI2S_R source

    Fix stm32f7 missing the definition for HSE and PLLI2S_R clock source.
    
    Signed-off-by: Joakim Andersson <joerchan@gmail.com>
    joerchan committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    107867a View commit details
    Browse the repository at this point in the history
  10. boards: Add MCO support for the stm32c0xx family

    Add MCO support for the stm32c0xx family.
    
    Signed-off-by: Joakim Andersson <joerchan@gmail.com>
    joerchan committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    5b1f03c View commit details
    Browse the repository at this point in the history
  11. samples: stm32: mco: Update sample to use dts instead of Kconfig

    Update MCO board sample to use devicetree information instead of Kconfig
    configurations.
    
    Signed-off-by: Joakim Andersson <joerchan@gmail.com>
    joerchan committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    5bc24a5 View commit details
    Browse the repository at this point in the history
  12. samples: stm32: mco: Add disco board which has 2 MCO instances

    Add stm32f746g_disco board to MCO sample.
    This board has 2 MCO instances so useful to show multiple instances
    as well as checking the implementation.
    
    Signed-off-by: Joakim Andersson <joerchan@gmail.com>
    joerchan committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    79f7aa9 View commit details
    Browse the repository at this point in the history
  13. drivers: clock_control: Deprecate Kconfig for MCO configuration

    Deprecate support for configuring the MCO source and prescaler from
    Kconfig configurations.
    This is now done by devicetree and an MCO driver instead, which also
    configures the pin to be used by the MCO peripheral.
    
    Signed-off-by: Joakim Andersson <joerchan@gmail.com>
    joerchan committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    3b9e9ef View commit details
    Browse the repository at this point in the history
  14. doc: Document deprecated stm32 MCO kconfig options for MCO

    Document deprecated stm32 MCO Kconfig options in favour of
    setting MCO through devicetree.
    
    Signed-off-by: Joakim Andersson <joerchan@gmail.com>
    joerchan committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    bddd41d View commit details
    Browse the repository at this point in the history