2 * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com>
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public
20 * License along with this file; if not, write to the Free
21 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
26 * b) Permission is hereby granted, free of charge, to any person
27 * obtaining a copy of this software and associated documentation
28 * files (the "Software"), to deal in the Software without
29 * restriction, including without limitation the rights to use,
30 * copy, modify, merge, publish, distribute, sublicense, and/or
31 * sell copies of the Software, and to permit persons to whom the
32 * Software is furnished to do so, subject to the following
35 * The above copyright notice and this permission notice shall be
36 * included in all copies or substantial portions of the Software.
38 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
39 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
40 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
41 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
42 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
43 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
44 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
45 * OTHER DEALINGS IN THE SOFTWARE.
48 #include "armv7-m.dtsi"
52 clk_sysclk: clk-sysclk {
54 compatible = "fixed-clock";
55 clock-frequency = <180000000>;
60 compatible = "fixed-clock";
61 clock-frequency = <180000000>;
64 clk_pclk1: clk-pclk1 {
66 compatible = "fixed-clock";
67 clock-frequency = <45000000>;
70 clk_pclk2: clk-pclk2 {
72 compatible = "fixed-clock";
73 clock-frequency = <90000000>;
76 clk_pmtr1: clk-pmtr1 {
78 compatible = "fixed-clock";
79 clock-frequency = <90000000>;
82 clk_pmtr2: clk-pmtr2 {
84 compatible = "fixed-clock";
85 clock-frequency = <180000000>;
88 clk_systick: clk-systick {
89 compatible = "fixed-factor-clock";
98 timer2: timer@40000000 {
99 compatible = "st,stm32-timer";
100 reg = <0x40000000 0x400>;
102 clocks = <&clk_pmtr1>;
106 timer3: timer@40000400 {
107 compatible = "st,stm32-timer";
108 reg = <0x40000400 0x400>;
110 clocks = <&clk_pmtr1>;
114 timer4: timer@40000800 {
115 compatible = "st,stm32-timer";
116 reg = <0x40000800 0x400>;
118 clocks = <&clk_pmtr1>;
122 timer5: timer@40000c00 {
123 compatible = "st,stm32-timer";
124 reg = <0x40000c00 0x400>;
126 clocks = <&clk_pmtr1>;
129 timer6: timer@40001000 {
130 compatible = "st,stm32-timer";
131 reg = <0x40001000 0x400>;
133 clocks = <&clk_pmtr1>;
137 timer7: timer@40001400 {
138 compatible = "st,stm32-timer";
139 reg = <0x40001400 0x400>;
141 clocks = <&clk_pmtr1>;
145 usart2: serial@40004400 {
146 compatible = "st,stm32-usart", "st,stm32-uart";
147 reg = <0x40004400 0x400>;
149 clocks = <&clk_pclk1>;
153 usart3: serial@40004800 {
154 compatible = "st,stm32-usart", "st,stm32-uart";
155 reg = <0x40004800 0x400>;
157 clocks = <&clk_pclk1>;
161 usart4: serial@40004c00 {
162 compatible = "st,stm32-uart";
163 reg = <0x40004c00 0x400>;
165 clocks = <&clk_pclk1>;
169 usart5: serial@40005000 {
170 compatible = "st,stm32-uart";
171 reg = <0x40005000 0x400>;
173 clocks = <&clk_pclk1>;
177 usart7: serial@40007800 {
178 compatible = "st,stm32-usart", "st,stm32-uart";
179 reg = <0x40007800 0x400>;
181 clocks = <&clk_pclk1>;
185 usart8: serial@40007c00 {
186 compatible = "st,stm32-usart", "st,stm32-uart";
187 reg = <0x40007c00 0x400>;
189 clocks = <&clk_pclk1>;
193 usart1: serial@40011000 {
194 compatible = "st,stm32-usart", "st,stm32-uart";
195 reg = <0x40011000 0x400>;
197 clocks = <&clk_pclk2>;
201 usart6: serial@40011400 {
202 compatible = "st,stm32-usart", "st,stm32-uart";
203 reg = <0x40011400 0x400>;
205 clocks = <&clk_pclk2>;
212 clocks = <&clk_systick>;