dts: nxp: ke1xf: Introduce nxp,kinetis-ke1xf-sim

The KE1xF SoC family SIM unit differs from the other Kinetis family
SoCs.  Add a unique compatiable and binding for it.

Fixes #18160

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2019-08-09 11:45:23 -05:00 committed by Kumar Gala
commit 57b10d0922
3 changed files with 36 additions and 8 deletions

View file

@ -58,7 +58,7 @@
};
sim: sim@40048000 {
compatible = "nxp,kinetis-sim";
compatible = "nxp,kinetis-ke1xf-sim";
reg = <0x40048000 0x1000>;
label = "SIM";
};

View file

@ -0,0 +1,28 @@
# Copyright (c) 2017, NXP
# SPDX-License-Identifier: Apache-2.0
title: Kinetis KE1xF System Integration Module (SIM)
description: >
This is a representation of the Kinetis SIM IP node
compatible: "nxp,kinetis-ke1xf-sim"
include: base.yaml
properties:
reg:
required: true
label:
required: true
clkout-source:
type: int
required: true
description: clkout clock source
clkout-divider:
type: int
required: true
description: clkout divider

View file

@ -7,13 +7,13 @@
/* SoC level DTS fixup file */
#define DT_NUM_IRQ_PRIO_BITS DT_ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
#define DT_SIM_NAME DT_NXP_KINETIS_SIM_40048000_LABEL
#ifdef DT_NXP_KINETIS_SIM_40048000_CLKOUT_DIVIDER
#define DT_SIM_CLKOUT_DIVIDER DT_NXP_KINETIS_SIM_40048000_CLKOUT_DIVIDER
#endif /* DT_NXP_KINETIS_SIM_40048000_CLKOUT_DIVIDER */
#ifdef DT_NXP_KINETIS_SIM_40048000_CLKOUT_SOURCE
#define DT_SIM_CLKOUT_SOURCE DT_NXP_KINETIS_SIM_40048000_CLKOUT_SOURCE
#endif /* DT_NXP_KINETIS_SIM_40048000_CLKOUT_SOURCE */
#define DT_SIM_NAME DT_NXP_KINETIS_KE1XF_SIM_40048000_LABEL
#ifdef DT_NXP_KINETIS_KE1XF_SIM_40048000_CLKOUT_DIVIDER
#define DT_SIM_CLKOUT_DIVIDER DT_NXP_KINETIS_KE1XF_SIM_40048000_CLKOUT_DIVIDER
#endif /* DT_NXP_KINETIS_KE1XF_SIM_40048000_CLKOUT_DIVIDER */
#ifdef DT_NXP_KINETIS_KE1XF_SIM_40048000_CLKOUT_SOURCE
#define DT_SIM_CLKOUT_SOURCE DT_NXP_KINETIS_KE1XF_SIM_40048000_CLKOUT_SOURCE
#endif /* DT_NXP_KINETIS_KE1XF_SIM_40048000_CLKOUT_SOURCE */
#define DT_MCUX_PCC_0_NAME DT_NXP_KINETIS_PCC_40065000_LABEL
#define DT_MCUX_PCC_0_BASE_ADDRESS DT_NXP_KINETIS_PCC_40065000_BASE_ADDRESS