dts: nxp: kw41z: Fixup NXP Kinetis RTCs on KW41Z
This patch adds some DTS information to flesh out the NXP Kinetis based RTC blocks. DTS fixups were added as well to match up the driver usage to the DTS output. Signed-off-by: Andy Gross <agross@kernel.org>
This commit is contained in:
parent
d75291ef93
commit
1fe586f678
3 changed files with 12 additions and 2 deletions
|
@ -25,6 +25,12 @@
|
|||
#define CONFIG_SIM_BASE_ADDRESS NXP_KINETIS_SIM_40047000_BASE_ADDRESS
|
||||
#define CONFIG_SIM_NAME NXP_KINETIS_SIM_40047000_LABEL
|
||||
|
||||
#define CONFIG_RTC_MCUX_0_BASE_ADDRESS NXP_KINETIS_RTC_4003D000_BASE_ADDRESS_0
|
||||
#define CONFIG_RTC_MCUX_0_IRQ_PRI NXP_KINETIS_RTC_4003D000_IRQ_0_PRIORITY
|
||||
#define CONFIG_RTC_MCUX_0_IRQ NXP_KINETIS_RTC_4003D000_IRQ_0
|
||||
#define CONFIG_RTC_MCUX_0_NAME NXP_KINETIS_RTC_4003D000_LABEL
|
||||
#define CONFIG_RTC_PRESCALER NXP_KINETIS_RTC_4003D000_PRESCALER
|
||||
|
||||
#if defined(CONFIG_SOC_MKW22D5) || defined(CONFIG_SOC_MKW24D5)
|
||||
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
led2 = &red_led;
|
||||
sw0 = &user_button_3;
|
||||
sw1 = &user_button_4;
|
||||
rtc-0 = &rtc0;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
|
|
@ -35,10 +35,13 @@
|
|||
enable-external-reference;
|
||||
};
|
||||
|
||||
rtc@4003d000 {
|
||||
compatible = "nxp,kw41z-rtc";
|
||||
rtc0: rtc@4003d000 {
|
||||
compatible = "nxp,kinetis-rtc";
|
||||
reg = <0x4003d000 0x20>;
|
||||
interrupts = <20 0>;
|
||||
clock-frequency = <32768>;
|
||||
label = "RTC_0";
|
||||
prescaler = <32768>;
|
||||
};
|
||||
|
||||
sim: sim@40047000 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue