blob: bc3eddc3eda697f66833fd52fb1eb9001bcfd8f0 [file] [log] [blame]
Ludovic Barre8471a202018-02-26 16:35:40 +01001// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2/*
3 * Copyright (C) STMicroelectronics 2017 - All Rights Reserved
4 * Author: Ludovic Barre <ludovic.barre@st.com> for STMicroelectronics.
5 */
6#include <dt-bindings/interrupt-controller/arm-gic.h>
Gabriel Fernandez3599a8a2018-03-15 08:18:00 +01007#include <dt-bindings/clock/stm32mp1-clks.h>
Ludovic Barre8471a202018-02-26 16:35:40 +01008
9/ {
10 #address-cells = <1>;
11 #size-cells = <1>;
12
13 cpus {
14 #address-cells = <1>;
15 #size-cells = <0>;
16
17 cpu0: cpu@0 {
18 compatible = "arm,cortex-a7";
19 device_type = "cpu";
20 reg = <0>;
21 };
22
23 cpu1: cpu@1 {
24 compatible = "arm,cortex-a7";
25 device_type = "cpu";
26 reg = <1>;
27 };
28 };
29
30 psci {
31 compatible = "arm,psci";
32 method = "smc";
33 cpu_off = <0x84000002>;
34 cpu_on = <0x84000003>;
35 };
36
37 aliases {
38 gpio0 = &gpioa;
39 gpio1 = &gpiob;
40 gpio2 = &gpioc;
41 gpio3 = &gpiod;
42 gpio4 = &gpioe;
43 gpio5 = &gpiof;
44 gpio6 = &gpiog;
45 gpio7 = &gpioh;
46 gpio8 = &gpioi;
47 gpio9 = &gpioj;
48 gpio10 = &gpiok;
49 };
50
51 intc: interrupt-controller@a0021000 {
52 compatible = "arm,cortex-a7-gic";
53 #interrupt-cells = <3>;
54 interrupt-controller;
55 reg = <0xa0021000 0x1000>,
56 <0xa0022000 0x2000>;
57 };
58
59 timer {
60 compatible = "arm,armv7-timer";
61 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
62 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
63 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
64 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
65 interrupt-parent = <&intc>;
66 };
67
68 clocks {
69 clk_hse: clk-hse {
70 #clock-cells = <0>;
71 compatible = "fixed-clock";
72 clock-frequency = <24000000>;
73 };
74
Ludovic Barre8471a202018-02-26 16:35:40 +010075 clk_hsi: clk-hsi {
76 #clock-cells = <0>;
77 compatible = "fixed-clock";
78 clock-frequency = <64000000>;
79 };
80
81 clk_lse: clk-lse {
82 #clock-cells = <0>;
83 compatible = "fixed-clock";
84 clock-frequency = <32768>;
85 };
86
87 clk_lsi: clk-lsi {
88 #clock-cells = <0>;
89 compatible = "fixed-clock";
90 clock-frequency = <32000>;
91 };
92
93 clk_csi: clk-csi {
94 #clock-cells = <0>;
95 compatible = "fixed-clock";
96 clock-frequency = <4000000>;
97 };
Ludovic Barre8471a202018-02-26 16:35:40 +010098 };
99
100 soc {
101 compatible = "simple-bus";
102 #address-cells = <1>;
103 #size-cells = <1>;
104 interrupt-parent = <&intc>;
105 ranges;
106
107 usart2: serial@4000e000 {
108 compatible = "st,stm32h7-uart";
109 reg = <0x4000e000 0x400>;
110 interrupts = <GIC_SPI 38 IRQ_TYPE_NONE>;
Gabriel Fernandez3599a8a2018-03-15 08:18:00 +0100111 clocks = <&rcc USART2_K>;
Ludovic Barre8471a202018-02-26 16:35:40 +0100112 status = "disabled";
113 };
114
115 usart3: serial@4000f000 {
116 compatible = "st,stm32h7-uart";
117 reg = <0x4000f000 0x400>;
118 interrupts = <GIC_SPI 39 IRQ_TYPE_NONE>;
Gabriel Fernandez3599a8a2018-03-15 08:18:00 +0100119 clocks = <&rcc USART3_K>;
Ludovic Barre8471a202018-02-26 16:35:40 +0100120 status = "disabled";
121 };
122
123 uart4: serial@40010000 {
124 compatible = "st,stm32h7-uart";
125 reg = <0x40010000 0x400>;
126 interrupts = <GIC_SPI 52 IRQ_TYPE_NONE>;
Gabriel Fernandez3599a8a2018-03-15 08:18:00 +0100127 clocks = <&rcc UART4_K>;
Ludovic Barre8471a202018-02-26 16:35:40 +0100128 status = "disabled";
129 };
130
131 uart5: serial@40011000 {
132 compatible = "st,stm32h7-uart";
133 reg = <0x40011000 0x400>;
134 interrupts = <GIC_SPI 53 IRQ_TYPE_NONE>;
Gabriel Fernandez3599a8a2018-03-15 08:18:00 +0100135 clocks = <&rcc UART5_K>;
Ludovic Barre8471a202018-02-26 16:35:40 +0100136 status = "disabled";
137 };
138
139 uart7: serial@40018000 {
140 compatible = "st,stm32h7-uart";
141 reg = <0x40018000 0x400>;
142 interrupts = <GIC_SPI 82 IRQ_TYPE_NONE>;
Gabriel Fernandez3599a8a2018-03-15 08:18:00 +0100143 clocks = <&rcc UART7_K>;
Ludovic Barre8471a202018-02-26 16:35:40 +0100144 status = "disabled";
145 };
146
147 uart8: serial@40019000 {
148 compatible = "st,stm32h7-uart";
149 reg = <0x40019000 0x400>;
150 interrupts = <GIC_SPI 83 IRQ_TYPE_NONE>;
Gabriel Fernandez3599a8a2018-03-15 08:18:00 +0100151 clocks = <&rcc UART8_K>;
Ludovic Barre8471a202018-02-26 16:35:40 +0100152 status = "disabled";
153 };
154
155 usart6: serial@44003000 {
156 compatible = "st,stm32h7-uart";
157 reg = <0x44003000 0x400>;
158 interrupts = <GIC_SPI 71 IRQ_TYPE_NONE>;
Gabriel Fernandez3599a8a2018-03-15 08:18:00 +0100159 clocks = <&rcc USART6_K>;
Ludovic Barre8471a202018-02-26 16:35:40 +0100160 status = "disabled";
161 };
162
Gabriel Fernandez3599a8a2018-03-15 08:18:00 +0100163 rcc: rcc@50000000 {
164 compatible = "st,stm32mp1-rcc", "syscon";
165 reg = <0x50000000 0x1000>;
166 #clock-cells = <1>;
167 #reset-cells = <1>;
168 };
169
Ludovic Barre8471a202018-02-26 16:35:40 +0100170 usart1: serial@5c000000 {
171 compatible = "st,stm32h7-uart";
172 reg = <0x5c000000 0x400>;
173 interrupts = <GIC_SPI 37 IRQ_TYPE_NONE>;
Gabriel Fernandez3599a8a2018-03-15 08:18:00 +0100174 clocks = <&rcc USART1_K>;
Ludovic Barre8471a202018-02-26 16:35:40 +0100175 status = "disabled";
176 };
177 };
178};