diff options
author | Vikas Manocha <vikas.manocha@st.com> | 2017-02-12 10:25:47 -0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-03-17 14:15:13 -0400 |
commit | 84bfdc17b54198a869ad91341c26eec5f9c96169 (patch) | |
tree | 4888cd50b6cadaa41606adcd2d1a82a48b98fd79 | |
parent | fd03b83a9912f265d9ca08a0dd542af3f9b52216 (diff) |
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>
-rw-r--r-- | arch/arm/dts/stm32f746-disco.dts | 5 | ||||
-rw-r--r-- | arch/arm/dts/stm32f746.dtsi | 27 |
2 files changed, 32 insertions, 0 deletions
diff --git a/arch/arm/dts/stm32f746-disco.dts b/arch/arm/dts/stm32f746-disco.dts index bad0698193..454b515db3 100644 --- a/arch/arm/dts/stm32f746-disco.dts +++ b/arch/arm/dts/stm32f746-disco.dts @@ -61,10 +61,15 @@ }; aliases { + serial0 = &usart1; spi0 = &qspi; }; }; +&clk_hse { + clock-frequency = <25000000>; +}; + &mac { status = "okay"; phy-mode = "rmii"; diff --git a/arch/arm/dts/stm32f746.dtsi b/arch/arm/dts/stm32f746.dtsi index 3902e7625f..afcd3277c5 100644 --- a/arch/arm/dts/stm32f746.dtsi +++ b/arch/arm/dts/stm32f746.dtsi @@ -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; + }; + + }; }; |