drivers: counter_nrfx_rtc: Port driver to DTS
This commit updates the counter_nrfx_rtc driver in order to use device tree infrastructure. Signed-off-by: Piotr Zięcik <piotr.ziecik@nordicsemi.no>
This commit is contained in:
parent
0d1665e93a
commit
298b841873
8 changed files with 98 additions and 35 deletions
|
@ -45,6 +45,8 @@
|
|||
wdt-0 = &wdt;
|
||||
pwm-0 = &pwm0;
|
||||
qdec-0 = &qdec;
|
||||
rtc-0 = &rtc0;
|
||||
rtc-1 = &rtc1;
|
||||
};
|
||||
|
||||
soc {
|
||||
|
@ -128,6 +130,22 @@
|
|||
label = "SPI_0";
|
||||
};
|
||||
|
||||
rtc0: rtc@4000b000 {
|
||||
compatible = "nordic,nrf-rtc";
|
||||
reg = <0x4000b000 0x1000>;
|
||||
interrupts = <11 1>;
|
||||
status = "ok";
|
||||
label = "RTC_0";
|
||||
};
|
||||
|
||||
rtc1: rtc@40011000 {
|
||||
compatible = "nordic,nrf-rtc";
|
||||
reg = <0x40011000 0x1000>;
|
||||
interrupts = <17 1>;
|
||||
status = "ok";
|
||||
label = "RTC_1";
|
||||
};
|
||||
|
||||
wdt: watchdog@40010000 {
|
||||
compatible = "nordic,nrf-watchdog";
|
||||
reg = <0x40010000 0x1000>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue