dts: nordic nrf-timer: Expose max frequency as DT property
The counter driver needs to know what is the maximum counting frequency of each timer peripheral. Let's add it to its DT. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
5468569dab
commit
0ecfac663d
3 changed files with 18 additions and 1 deletions
|
@ -24,10 +24,20 @@ properties:
|
|||
interrupts:
|
||||
required: true
|
||||
|
||||
max-frequency:
|
||||
type: int
|
||||
default: 16000000
|
||||
description: |
|
||||
Maximum timer frequency in Hz.
|
||||
|
||||
The default value is 16MHz which was the maximum frequency for all nRF TIMER peripherals
|
||||
up to the nRF54 series, and still remains the most typical maximum frequency for nRF54
|
||||
TIMERs.
|
||||
|
||||
prescaler:
|
||||
type: int
|
||||
required: true
|
||||
description: Prescaler value determines frequency (base_frequency/2^prescaler)
|
||||
description: Prescaler value determines frequency (max-frequency/2^prescaler)
|
||||
|
||||
zli:
|
||||
type: boolean
|
||||
|
|
|
@ -217,6 +217,7 @@
|
|||
cc-num = <8>;
|
||||
interrupts = <40 NRF_DEFAULT_IRQ_PRIORITY>;
|
||||
max-bit-width = <32>;
|
||||
max-frequency = <DT_FREQ_M(32)>;
|
||||
prescaler = <0>;
|
||||
};
|
||||
|
||||
|
@ -227,6 +228,7 @@
|
|||
cc-num = <8>;
|
||||
interrupts = <41 NRF_DEFAULT_IRQ_PRIORITY>;
|
||||
max-bit-width = <32>;
|
||||
max-frequency = <DT_FREQ_M(32)>;
|
||||
prescaler = <0>;
|
||||
};
|
||||
|
||||
|
@ -237,6 +239,7 @@
|
|||
cc-num = <8>;
|
||||
interrupts = <42 NRF_DEFAULT_IRQ_PRIORITY>;
|
||||
max-bit-width = <32>;
|
||||
max-frequency = <DT_FREQ_M(32)>;
|
||||
prescaler = <0>;
|
||||
};
|
||||
|
||||
|
@ -369,6 +372,7 @@
|
|||
cc-num = <6>;
|
||||
interrupts = <226 NRF_DEFAULT_IRQ_PRIORITY>;
|
||||
max-bit-width = <32>;
|
||||
max-frequency = <DT_FREQ_M(320)>;
|
||||
prescaler = <0>;
|
||||
};
|
||||
|
||||
|
@ -379,6 +383,7 @@
|
|||
cc-num = <6>;
|
||||
interrupts = <227 NRF_DEFAULT_IRQ_PRIORITY>;
|
||||
max-bit-width = <32>;
|
||||
max-frequency = <DT_FREQ_M(320)>;
|
||||
prescaler = <0>;
|
||||
};
|
||||
|
||||
|
|
|
@ -212,6 +212,7 @@
|
|||
cc-num = <6>;
|
||||
max-bit-width = <32>;
|
||||
interrupts = <85 NRF_DEFAULT_IRQ_PRIORITY>;
|
||||
max-frequency = <DT_FREQ_M(128)>;
|
||||
prescaler = <0>;
|
||||
};
|
||||
|
||||
|
@ -228,6 +229,7 @@
|
|||
cc-num = <8>;
|
||||
max-bit-width = <32>;
|
||||
interrupts = <133 NRF_DEFAULT_IRQ_PRIORITY>;
|
||||
max-frequency = <DT_FREQ_M(32)>;
|
||||
prescaler = <0>;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue