1# Copyright (c) 2023 Antmicro <www.antmicro.com> 2# SPDX-License-Identifier: Apache-2.0 3 4description: Ambiq STIMER 5 6compatible: "ambiq,stimer" 7 8include: base.yaml 9 10properties: 11 reg: 12 required: true 13 14 interrupts: 15 required: true 16 17 clk-source: 18 type: int 19 required: true 20 description: | 21 clk-source specifies the clock source that used by the system timer. 22 For Apollo3: 23 0 - NOCLK : No clock enabled. 24 1 - HFRC_DIV16 : 3MHz from the HFRC clock divider. 25 2 - HFRC_DIV256 : 187.5KHz from the HFRC clock divider. 26 3 - XTAL_DIV1 : 32768Hz from the crystal oscillator. 27 4 - XTAL_DIV2 : 16384Hz from the crystal oscillator. 28 5 - XTAL_DIV32 : 1024Hz from the crystal oscillator. 29 6 - LFRC_DIV1 : Approximately 1KHz from the LFRC oscillator (uncalibrated). 30 7 - CTIMER0A : Use CTIMER 0 section A as a prescaler. 31 8 - CTIMER0B : Use CTIMER 0 section B (or A and B linked together) as a prescaler. 32 For Apollo4: 33 0 - NOCLK : No clock enabled. 34 1 - HFRC_6MHZ : 6MHz from the HFRC clock divider. 35 2 - HFRC_375KHZ : 375KHz from the HFRC clock divider. 36 3 - XTAL_32KHZ : 32768Hz from the crystal oscillator. 37 4 - XTAL_16KHZ : 16384Hz from the crystal oscillator. 38 5 - XTAL_1KHZ : 1024Hz from the crystal oscillator. 39 6 - LFRC_1KHZ : Approximately 1KHz from the LFRC oscillator (uncalibrated). 40 7 - CTIMER0 : Use CTIMER 0 for the clock source (allows prescaling from other system clocks). 41 8 - CTIMER1 : Use CTIMER 1 for the clock source (allows prescaling from other system clocks). 42