dts: Add Kinetis SIM clock bindings
Adds device tree bindings for the Kinetis System Integration Module (SIM), and defines peripheral source clocks (e.g., system clock or bus clock) and clock gates for all Kinetis SoCs. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
parent
213df22c99
commit
3291735d11
14 changed files with 187 additions and 60 deletions
|
@ -1,4 +1,5 @@
|
|||
#include "armv6-m.dtsi"
|
||||
#include <dt-bindings/clock/kinetis_sim.h>
|
||||
#include <dt-bindings/i2c/i2c.h>
|
||||
|
||||
/ {
|
||||
|
@ -31,6 +32,7 @@
|
|||
#size-cells = <0>;
|
||||
reg = <0x40066000 0x1000>;
|
||||
interrupts = <8 0>;
|
||||
clocks = <&sim KINETIS_SIM_BUS_CLK 0x1034 6>;
|
||||
label = "I2C_0";
|
||||
status = "disabled";
|
||||
};
|
||||
|
@ -42,14 +44,30 @@
|
|||
#size-cells = <0>;
|
||||
reg = <0x40067000 0x1000>;
|
||||
interrupts = <9 0>;
|
||||
clocks = <&sim KINETIS_SIM_BUS_CLK 0x1034 7>;
|
||||
label = "I2C_1";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
sim: sim@40047000 {
|
||||
compatible = "nxp,kinetis-sim";
|
||||
reg = <0x40047000 0x1060>;
|
||||
label = "SIM";
|
||||
|
||||
clk-divider-core = <1>;
|
||||
clk-divider-bus = <2>;
|
||||
clk-divider-flexbus = <3>;
|
||||
clk-divider-flash = <5>;
|
||||
|
||||
clock-controller;
|
||||
#clocks-cells = <3>;
|
||||
};
|
||||
|
||||
uart0: uart@4006A000 {
|
||||
compatible = "nxp,kinetis-lpsci";
|
||||
reg = <0x4006A000 0xc>;
|
||||
interrupts = <12 0>;
|
||||
clocks = <&sim KINETIS_SIM_CORESYS_CLK 0x1034 10>;
|
||||
label = "UART_0";
|
||||
|
||||
status = "disabled";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue