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:
Andy Gross 2018-04-24 13:28:08 -05:00 committed by Kumar Gala
commit 1fe586f678
3 changed files with 12 additions and 2 deletions

View file

@ -25,6 +25,12 @@
#define CONFIG_SIM_BASE_ADDRESS NXP_KINETIS_SIM_40047000_BASE_ADDRESS #define CONFIG_SIM_BASE_ADDRESS NXP_KINETIS_SIM_40047000_BASE_ADDRESS
#define CONFIG_SIM_NAME NXP_KINETIS_SIM_40047000_LABEL #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) #if defined(CONFIG_SOC_MKW22D5) || defined(CONFIG_SOC_MKW24D5)
#define CONFIG_NUM_IRQ_PRIO_BITS ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS #define CONFIG_NUM_IRQ_PRIO_BITS ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS

View file

@ -22,6 +22,7 @@
led2 = &red_led; led2 = &red_led;
sw0 = &user_button_3; sw0 = &user_button_3;
sw1 = &user_button_4; sw1 = &user_button_4;
rtc-0 = &rtc0;
}; };
chosen { chosen {

View file

@ -35,10 +35,13 @@
enable-external-reference; enable-external-reference;
}; };
rtc@4003d000 { rtc0: rtc@4003d000 {
compatible = "nxp,kw41z-rtc"; compatible = "nxp,kinetis-rtc";
reg = <0x4003d000 0x20>; reg = <0x4003d000 0x20>;
interrupts = <20 0>;
clock-frequency = <32768>; clock-frequency = <32768>;
label = "RTC_0";
prescaler = <32768>;
}; };
sim: sim@40047000 { sim: sim@40047000 {