xref: /openbmc/u-boot/arch/arm/dts/stm32h743.dtsi (revision 75d5853f)
1d983a0f0SPatrice Chotard/*
2d983a0f0SPatrice Chotard * Copyright 2017 - Alexandre Torgue <alexandre.torgue@st.com>
3d983a0f0SPatrice Chotard *
4d983a0f0SPatrice Chotard * This file is dual-licensed: you can use it either under the terms
5d983a0f0SPatrice Chotard * of the GPL or the X11 license, at your option. Note that this dual
6d983a0f0SPatrice Chotard * licensing only applies to this file, and not this project as a
7d983a0f0SPatrice Chotard * whole.
8d983a0f0SPatrice Chotard *
9d983a0f0SPatrice Chotard *  a) This file is free software; you can redistribute it and/or
10d983a0f0SPatrice Chotard *     modify it under the terms of the GNU General Public License as
11d983a0f0SPatrice Chotard *     published by the Free Software Foundation; either version 2 of the
12d983a0f0SPatrice Chotard *     License, or (at your option) any later version.
13d983a0f0SPatrice Chotard *
14d983a0f0SPatrice Chotard *     This file is distributed in the hope that it will be useful,
15d983a0f0SPatrice Chotard *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16d983a0f0SPatrice Chotard *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17d983a0f0SPatrice Chotard *     GNU General Public License for more details.
18d983a0f0SPatrice Chotard *
19d983a0f0SPatrice Chotard * Or, alternatively,
20d983a0f0SPatrice Chotard *
21d983a0f0SPatrice Chotard *  b) Permission is hereby granted, free of charge, to any person
22d983a0f0SPatrice Chotard *     obtaining a copy of this software and associated documentation
23d983a0f0SPatrice Chotard *     files (the "Software"), to deal in the Software without
24d983a0f0SPatrice Chotard *     restriction, including without limitation the rights to use,
25d983a0f0SPatrice Chotard *     copy, modify, merge, publish, distribute, sublicense, and/or
26d983a0f0SPatrice Chotard *     sell copies of the Software, and to permit persons to whom the
27d983a0f0SPatrice Chotard *     Software is furnished to do so, subject to the following
28d983a0f0SPatrice Chotard *     conditions:
29d983a0f0SPatrice Chotard *
30d983a0f0SPatrice Chotard *     The above copyright notice and this permission notice shall be
31d983a0f0SPatrice Chotard *     included in all copies or substantial portions of the Software.
32d983a0f0SPatrice Chotard *
33d983a0f0SPatrice Chotard *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34d983a0f0SPatrice Chotard *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35d983a0f0SPatrice Chotard *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36d983a0f0SPatrice Chotard *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37d983a0f0SPatrice Chotard *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38d983a0f0SPatrice Chotard *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39d983a0f0SPatrice Chotard *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40d983a0f0SPatrice Chotard *     OTHER DEALINGS IN THE SOFTWARE.
41d983a0f0SPatrice Chotard */
42d983a0f0SPatrice Chotard
43d983a0f0SPatrice Chotard#include "skeleton.dtsi"
44d983a0f0SPatrice Chotard#include "armv7-m.dtsi"
45a1e384b4SPatrice Chotard#include <dt-bindings/clock/stm32h7-clks.h>
46d983a0f0SPatrice Chotard
47d983a0f0SPatrice Chotard/ {
48d983a0f0SPatrice Chotard	clocks {
49d983a0f0SPatrice Chotard		clk_hse: clk-hse {
50d983a0f0SPatrice Chotard			#clock-cells = <0>;
51d983a0f0SPatrice Chotard			compatible = "fixed-clock";
52a1e384b4SPatrice Chotard			clock-frequency = <25000000>;
53d983a0f0SPatrice Chotard		};
54d983a0f0SPatrice Chotard
55a1e384b4SPatrice Chotard		clk_lse: clk-lse {
56d983a0f0SPatrice Chotard			#clock-cells = <0>;
57d983a0f0SPatrice Chotard			compatible = "fixed-clock";
58a1e384b4SPatrice Chotard			clock-frequency = <32768>;
59a1e384b4SPatrice Chotard		};
60a1e384b4SPatrice Chotard
61a1e384b4SPatrice Chotard		clk_i2s: i2s_ckin {
62a1e384b4SPatrice Chotard			#clock-cells = <0>;
63a1e384b4SPatrice Chotard			compatible = "fixed-clock";
64a1e384b4SPatrice Chotard			clock-frequency = <0>;
65d983a0f0SPatrice Chotard		};
66d983a0f0SPatrice Chotard	};
67d983a0f0SPatrice Chotard
68d983a0f0SPatrice Chotard	soc {
69a1e384b4SPatrice Chotard		rcc: rcc@58024400 {
70a1e384b4SPatrice Chotard			#clock-cells = <1>;
71a1e384b4SPatrice Chotard			#reset-cells = <1>;
72a1e384b4SPatrice Chotard			compatible = "st,stm32h743-rcc", "st,stm32-rcc";
73a1e384b4SPatrice Chotard			reg = <0x58024400 0x400>;
74a1e384b4SPatrice Chotard			clocks = <&clk_hse>, <&clk_lse>, <&clk_i2s>, <&clk_hsi>, <&clk_csi>;
75a1e384b4SPatrice Chotard			st,syscfg = <&pwrcfg>;
76a1e384b4SPatrice Chotard		};
77a1e384b4SPatrice Chotard
78d983a0f0SPatrice Chotard		usart1: serial@40011000 {
79*75d5853fSPatrice Chotard			compatible = "st,stm32h7-uart";
80d983a0f0SPatrice Chotard			reg = <0x40011000 0x400>;
81d983a0f0SPatrice Chotard			interrupts = <37>;
82d983a0f0SPatrice Chotard			status = "disabled";
83a1e384b4SPatrice Chotard			clocks = <&rcc USART1_CK>;
84d983a0f0SPatrice Chotard		};
85d983a0f0SPatrice Chotard
86d983a0f0SPatrice Chotard		usart2: serial@40004400 {
87*75d5853fSPatrice Chotard			compatible = "st,stm32h7-uart";
88d983a0f0SPatrice Chotard			reg = <0x40004400 0x400>;
89d983a0f0SPatrice Chotard			interrupts = <38>;
90d983a0f0SPatrice Chotard			status = "disabled";
91a1e384b4SPatrice Chotard			clocks = <&rcc USART2_CK>;
92d983a0f0SPatrice Chotard		};
93d983a0f0SPatrice Chotard
94d983a0f0SPatrice Chotard		timer5: timer@40000c00 {
95d983a0f0SPatrice Chotard			compatible = "st,stm32-timer";
96d983a0f0SPatrice Chotard			reg = <0x40000c00 0x400>;
97d983a0f0SPatrice Chotard			interrupts = <50>;
98a1e384b4SPatrice Chotard			clocks = <&rcc TIM5_CK>;
99a1e384b4SPatrice Chotard		};
100a1e384b4SPatrice Chotard
101a1e384b4SPatrice Chotard		pwrcfg: power-config@58024800 {
102a1e384b4SPatrice Chotard			compatible = "syscon";
103a1e384b4SPatrice Chotard			reg = <0x58024800 0x400>;
104a1e384b4SPatrice Chotard		};
105a1e384b4SPatrice Chotard
106a1e384b4SPatrice Chotard		fmc: fmc@52004000 {
107a1e384b4SPatrice Chotard			compatible = "st,stm32h7-fmc";
108a1e384b4SPatrice Chotard			reg = <0x52004000 0x1000>;
109a1e384b4SPatrice Chotard			clocks = <&rcc FMC_CK>;
110a1e384b4SPatrice Chotard		};
111a1e384b4SPatrice Chotard
112a1e384b4SPatrice Chotard		clk_hsi: clk-hsi {
113a1e384b4SPatrice Chotard			#clock-cells = <0>;
114a1e384b4SPatrice Chotard			compatible = "fixed-clock";
115a1e384b4SPatrice Chotard			clock-frequency = <64000000>;
116a1e384b4SPatrice Chotard		};
117a1e384b4SPatrice Chotard
118a1e384b4SPatrice Chotard		clk_csi: clk-csi {
119a1e384b4SPatrice Chotard			#clock-cells = <0>;
120a1e384b4SPatrice Chotard			compatible = "fixed-clock";
121a1e384b4SPatrice Chotard			clock-frequency = <4000000>;
122d983a0f0SPatrice Chotard		};
123d983a0f0SPatrice Chotard	};
124d983a0f0SPatrice Chotard};
125d983a0f0SPatrice Chotard
126d983a0f0SPatrice Chotard&systick {
127d983a0f0SPatrice Chotard	clock-frequency = <250000000>;
128d983a0f0SPatrice Chotard	status = "okay";
129d983a0f0SPatrice Chotard};
130