ARM: DT: stm32f7: add usart1 & clock device tree nodes

Also created alias for usart1 and specified oscillator clock for stm32f7
discovery board.

Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
This commit is contained in:
Vikas Manocha 2017-02-12 10:25:47 -08:00 committed by Tom Rini
parent fd03b83a99
commit 84bfdc17b5
2 changed files with 32 additions and 0 deletions

View File

@ -61,10 +61,15 @@
};
aliases {
serial0 = &usart1;
spi0 = &qspi;
};
};
&clk_hse {
clock-frequency = <25000000>;
};
&mac {
status = "okay";
phy-mode = "rmii";

View File

@ -48,7 +48,16 @@
#include <dt-bindings/pinctrl/stm32f746-pinfunc.h>
/ {
clocks {
clk_hse: clk-hse {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <0>;
};
};
soc {
u-boot,dm-pre-reloc;
mac: ethernet@40028000 {
compatible = "st,stm32-dwmac";
reg = <0x40028000 0x8000>;
@ -71,6 +80,24 @@
spi-max-frequency = <108000000>;
status = "disabled";
};
usart1: serial@40011000 {
compatible = "st,stm32-usart", "st,stm32-uart";
reg = <0x40011000 0x400>;
interrupts = <37>;
clocks = <&rcc 0 164>;
status = "disabled";
u-boot,dm-pre-reloc;
};
rcc: rcc@40023810 {
#reset-cells = <1>;
#clock-cells = <2>;
compatible = "st,stm32f42xx-rcc", "st,stm32-rcc";
reg = <0x40023800 0x400>;
clocks = <&clk_hse>;
u-boot,dm-pre-reloc;
};
};
};