Skip to content
Permalink
Browse files

dts: Add information about system bus frequency to the dts

This commit adds a fixed clock node (representing clock driving
system bus). The added node is then referenced by peripherals requiring
information about driving clock frequency.

Signed-off-by: Piotr Zięcik <piotr.ziecik@nordicsemi.no>
  • Loading branch information...
pizi-nordic authored and carlescufi committed Jun 21, 2019
1 parent 7d56fc3 commit e4bd11b3f36e97c401bb7d6a54da6c2c893aaa2f
@@ -38,6 +38,12 @@
reg = <0 0x400000>;
};

sysclk: system-clock {
compatible = "fixed-clock";
clock-frequency = <25000000>;
#clock-cells = <0>;
};

soc {
timer0: timer@40000000 {
compatible = "arm,cmsdk-timer";
@@ -65,6 +71,7 @@
reg = <0x40004000 0x1000>;
interrupts = <1 3 0 3>;
interrupt-names = "tx", "rx";
clocks = <&sysclk>;
current-speed = <115200>;
label = "UART_0";
};
@@ -74,6 +81,7 @@
reg = <0x40005000 0x1000>;
interrupts = <3 3 2 3>;
interrupt-names = "tx", "rx";
clocks = <&sysclk>;
current-speed = <115200>;
label = "UART_1";
};
@@ -83,6 +91,7 @@
reg = <0x40006000 0x1000>;
interrupts = <5 3 4 3>;
interrupt-names = "tx", "rx";
clocks = <&sysclk>;
current-speed = <115200>;
label = "UART_2";
};
@@ -92,12 +101,14 @@
reg = <0x40007000 0x1000>;
interrupts = <19 3 18 3>;
interrupt-names = "tx", "rx";
clocks = <&sysclk>;
current-speed = <115200>;
label = "UART_3";
};

wdog0: wdog@40008000 {
compatible = "arm,cmsdk-watchdog";
clocks = <&sysclk>;
reg = <0x40008000 0x1000>;
};

@@ -106,6 +117,7 @@
reg = <0x40009000 0x1000>;
interrupts = <21 3 20 3>;
interrupt-names = "tx", "rx";
clocks = <&sysclk>;
current-speed = <115200>;
label = "UART_4";
};
@@ -4,6 +4,12 @@
* SPDX-License-Identifier: Apache-2.0
*/

sysclk: system-clock {
compatible = "fixed-clock";
clock-frequency = <25000000>;
#clock-cells = <0>;
};

timer0: timer@0 {
compatible = "arm,cmsdk-timer";
reg = <0x0 0x1000>;
@@ -63,13 +69,15 @@ gpio3: gpio@103000 {
wdog0: wdog@81000 {
compatible = "arm,cmsdk-watchdog";
reg = <0x81000 0x1000>;
clocks = <&sysclk>;
};

uart0: uart@200000 {
compatible = "arm,cmsdk-uart";
reg = <0x200000 0x1000>;
interrupts = <33 3 32 3>;
interrupt-names = "tx", "rx";
clocks = <&sysclk>;
current-speed = <115200>;
label = "UART_0";
};
@@ -79,6 +87,7 @@ uart1: uart@201000 {
reg = <0x201000 0x1000>;
interrupts = <35 3 34 3>;
interrupt-names = "tx", "rx";
clocks = <&sysclk>;
current-speed = <115200>;
label = "UART_1";
};
@@ -88,6 +97,7 @@ uart2: uart@202000 {
reg = <0x202000 0x1000>;
interrupts = <37 3 36 3>;
interrupt-names = "tx", "rx";
clocks = <&sysclk>;
current-speed = <115200>;
label = "UART_2";
};
@@ -97,6 +107,7 @@ uart3: uart@203000 {
reg = <0x203000 0x1000>;
interrupts = <39 3 38 3>;
interrupt-names = "tx", "rx";
clocks = <&sysclk>;
current-speed = <115200>;
label = "UART_3";
};
@@ -106,6 +117,7 @@ uart4: uart@204000 {
reg = <0x204000 0x1000>;
interrupts = <41 3 40 3>;
interrupt-names = "tx", "rx";
clocks = <&sysclk>;
current-speed = <115200>;
label = "UART_4";
};
@@ -37,6 +37,12 @@
reg = <0 0x40000>;
};

sysclk: system-clock {
compatible = "fixed-clock";
clock-frequency = <24000000>;
#clock-cells = <0>;
};

soc {
timer0: timer@40000000 {
compatible = "arm,cmsdk-timer";
@@ -63,6 +69,7 @@
compatible = "arm,cmsdk-uart";
reg = <0x40004000 0x1000>;
interrupts = <0 3>;
clocks = <&sysclk>;
current-speed = <115200>;
label = "UART_0";
};
@@ -71,12 +78,14 @@
compatible = "arm,cmsdk-uart";
reg = <0x40005000 0x1000>;
interrupts = <2 3>;
clocks = <&sysclk>;
current-speed = <115200>;
label = "UART_1";
};

wdog0: wdog@40008000 {
compatible = "arm,cmsdk-watchdog";
clocks = <&sysclk>;
reg = <0x40008000 0x1000>;
};

@@ -41,6 +41,7 @@ mhu1: mhu@4000 {

wdog0: wdog@81000 {
compatible = "arm,cmsdk-watchdog";
clocks = <&sysclk>;
reg = <0x81000 0x1000>;
};

@@ -49,6 +50,7 @@ uart0: uart@101000 {
reg = <0x101000 0x1000>;
interrupts = <39 3 40 3 41 3 43 3>;
interrupt-names = "rx", "tx", "rxtim", "err";
clocks = <&sysclk>;
current-speed = <115200>;
label = "UART_0";
};
@@ -58,6 +60,7 @@ uart1: uart@102000 {
reg = <0x102000 0x1000>;
interrupts = <45 3 46 3 47 3 49 3>;
interrupt-names = "rx", "tx", "rxtim", "err";
clocks = <&sysclk>;
current-speed = <115200>;
label = "UART_1";
};
@@ -49,6 +49,12 @@
reg = <0x30000000 0x20000>;
};

sysclk: system-clock {
compatible = "fixed-clock";
clock-frequency = <50000000>;
#clock-cells = <0>;
};

soc {
peripheral@50000000 {
#address-cells = <1>;
@@ -49,6 +49,12 @@
reg = <0x20010000 0x10000>;
};

sysclk: system-clock {
compatible = "fixed-clock";
clock-frequency = <50000000>;
#clock-cells = <0>;
};

soc {
peripheral@40000000 {
#address-cells = <1>;
@@ -29,6 +29,7 @@ uart0: uart@105000 {
reg = <0x105000 0x1000>;
interrupts = <39 3 40 3 41 3 43 3>;
interrupt-names = "rx", "tx", "rxtim", "err";
clocks = <&sysclk>;
current-speed = <115200>;
label = "UART_0";
};
@@ -38,6 +39,7 @@ uart1: uart@106000 {
reg = <0x106000 0x1000>;
interrupts = <45 3 46 3 47 3 49 3>;
interrupt-names = "rx", "tx", "rxtim", "err";
clocks = <&sysclk>;
current-speed = <115200>;
label = "UART_1";
};
@@ -49,6 +49,11 @@
reg = <0x30000000 0x80000>;
};

sysclk: system-clock {
compatible = "fixed-clock";
clock-frequency = <40000000>;
#clock-cells = <0>;
};

scc@5010b000 {
compatible = "arm,scc";
@@ -49,6 +49,12 @@
reg = <0x20070000 0x10000>;
};

sysclk: system-clock {
compatible = "fixed-clock";
clock-frequency = <40000000>;
#clock-cells = <0>;
};

soc {
peripheral@40000000 {
#address-cells = <1>;
@@ -51,6 +51,12 @@
reg = <0x0 0x40000>;
};

sysclk: system-clock {
compatible = "fixed-clock";
clock-frequency = <144000000>;
#clock-cells = <0>;
};

soc {
#address-cells = <1>;
#size-cells = <1>;
@@ -223,6 +229,7 @@
#address-cells = <1>;
#size-cells = <0>;
reg = <0x80010000 0x100>;
clocks = <&sysclk>;
interrupts = <70 2>, <71 2>, <72 2>;
interrupt-names = "err-int", "rx-avail", "tx-req";
interrupt-parent = <&intc>;
@@ -235,6 +242,7 @@
#address-cells = <1>;
#size-cells = <0>;
reg = <0x80010100 0x100>;
clocks = <&sysclk>;
interrupts = <74 2>, <75 2>, <76 2>;
interrupt-names = "err-int", "rx-avail", "tx-req";
interrupt-parent = <&intc>;
@@ -247,6 +255,7 @@
#address-cells = <1>;
#size-cells = <0>;
reg = <0x80010200 0x100>;
clocks = <&sysclk>;
interrupts = <78 2>, <79 2>, <80 2>;
interrupt-names = "err-int", "rx-avail", "tx-req";
interrupt-parent = <&intc>;
@@ -38,6 +38,12 @@
compatible = "arc,dccm";
};

sysclk: system-clock {
compatible = "fixed-clock";
clock-frequency = <DT_APB_CLK_HZ>;
#clock-cells = <0>;
};

soc {
#address-cells = <1>;
#size-cells = <1>;
@@ -147,6 +153,7 @@
compatible = "snps,designware-spi";
reg = <0xf0006000 0x1000>;
label = "SPI_0";
clocks = <&sysclk>;
interrupt-parent = <&intc>;

#address-cells = <1>;
@@ -158,6 +165,7 @@
compatible = "snps,designware-spi";
reg = <0xf0007000 0x1000>;
label = "SPI_1";
clocks = <&sysclk>;
interrupt-parent = <&intc>;

#address-cells = <1>;
@@ -44,6 +44,12 @@
reg = <0x80000000 DT_DCCM_SIZE>;
};

sysclk: system-clock {
compatible = "fixed-clock";
clock-frequency = <32000000>;
#clock-cells = <0>;
};

soc {
#address-cells = <1>;
#size-cells = <1>;
@@ -64,6 +70,7 @@
reg = <0xb0002000 0x400>;
interrupts = <41 0>;
interrupt-parent = <&core_intc>;
clocks = <&sysclk>;
label = "UART_0";

status = "disabled";
@@ -74,6 +81,7 @@
reg = <0xb0002400 0x400>;
interrupts = <42 0>;
interrupt-parent = <&core_intc>;
clocks = <&sysclk>;
label = "UART_1";

status = "disabled";
@@ -182,6 +190,7 @@
#address-cells = <1>;
#size-cells = <0>;
reg = <0x80010000 0x400>;
clocks = <&sysclk>;
interrupts = <30 2>, <31 2>, <32 2>;
interrupt-names = "err-int", "rx-avail", "tx-req";
interrupt-parent = <&core_intc>;
@@ -194,6 +203,7 @@
#address-cells = <1>;
#size-cells = <0>;
reg = <0x80010100 0x400>;
clocks = <&sysclk>;
interrupts = <33 2>, <34 2>, <35 2>;
interrupt-names = "err-int", "rx-avail", "tx-req";
interrupt-parent = <&core_intc>;
@@ -29,6 +29,12 @@
};
};

sysclk: system-clock {
compatible = "fixed-clock";
clock-frequency = <600000000>;
#clock-cells = <0>;
};

soc {
flexram0: flexram@400b0000 {
compatible = "nxp,imx-flexram";
@@ -354,6 +360,7 @@
reg = <0x402E0000 0x200>;
interrupts = <113 1>;
interrupt-names = "usb_otg";
clocks = <&sysclk>;
num-bidir-endpoints = <8>;
maximum-speed = "full-speed";
status = "disabled";
@@ -6,6 +6,10 @@

#include <nxp/nxp_rt.dtsi>

&sysclk {
clock-frequency = <500000000>;
};

/* i.MX rt1015 default FlexRAM partition:
* ITCM: 32KB
* DTCM: 32KB

0 comments on commit e4bd11b

Please sign in to comment.
You can’t perform that action at this time.