Debian Codegraph @

arch/arm/boot/dts/st/stm32f469-disco.dts

raw
1 /*
2 * Copyright 2016 - Lee Jones <[email protected]>
3 *
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
7 * whole.
8 *
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.
13 *
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.
18 *
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,
22 * MA 02110-1301 USA
23 *
24 * Or, alternatively,
25 *
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
33 * conditions:
34 *
35 * The above copyright notice and this permission notice shall be
36 * included in all copies or substantial portions of the Software.
37 *
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.
46 */
47
48 /dts-v1/;
49 #include "stm32f469.dtsi"
50 #include "stm32f469-pinctrl.dtsi"
51 #include <dt-bindings/gpio/gpio.h>
52 #include <dt-bindings/input/input.h>
53 #include <dt-bindings/leds/common.h>
54
55 / {
56 model = "STMicroelectronics STM32F469i-DISCO board";
57 compatible = "st,stm32f469i-disco", "st,stm32f469";
58
59 chosen {
60 bootargs = "root=/dev/ram";
61 stdout-path = "serial0:115200n8";
62 };
63
64 memory@0 {
65 device_type = "memory";
66 reg = <0x00000000 0x1000000>;
67 };
68
69 aliases {
70 serial0 = &usart3;
71 };
72
73 vcc_3v3: vcc-3v3 {
74 compatible = "regulator-fixed";
75 regulator-name = "vcc_3v3";
76 regulator-min-microvolt = <3300000>;
77 regulator-max-microvolt = <3300000>;
78 };
79
80 soc {
81 dma-ranges = <0xc0000000 0x0 0x10000000>;
82 };
83
84 leds {
85 compatible = "gpio-leds";
86 led_green: led-green {
87 function = LED_FUNCTION_HEARTBEAT;
88 color = <LED_COLOR_ID_GREEN>;
89 gpios = <&gpiog 6 GPIO_ACTIVE_LOW>;
90 linux,default-trigger = "heartbeat";
91 };
92 led-orange {
93 color = <LED_COLOR_ID_ORANGE>;
94 gpios = <&gpiod 4 GPIO_ACTIVE_LOW>;
95 };
96 led-red {
97 color = <LED_COLOR_ID_RED>;
98 gpios = <&gpiod 5 GPIO_ACTIVE_LOW>;
99 };
100 led-blue {
101 color = <LED_COLOR_ID_BLUE>;
102 gpios = <&gpiok 3 GPIO_ACTIVE_LOW>;
103 };
104 };
105
106 gpio-keys {
107 compatible = "gpio-keys";
108 autorepeat;
109 button-0 {
110 label = "User";
111 linux,code = <KEY_WAKEUP>;
112 gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>;
113 };
114 };
115
116 options {
117 u-boot {
118 compatible = "u-boot,config";
119 boot-led = <&led_green>;
120 };
121 };
122
123 /* This turns on vbus for otg for host mode (dwc2) */
124 vcc5v_otg: vcc5v-otg-regulator {
125 compatible = "regulator-fixed";
126 enable-active-high;
127 gpio = <&gpiob 2 GPIO_ACTIVE_HIGH>;
128 regulator-name = "vcc5_host1";
129 regulator-always-on;
130 };
131 };
132
133 &rcc {
134 compatible = "st,stm32f469-rcc", "st,stm32f42xx-rcc", "st,stm32-rcc";
135 };
136
137 &clk_hse {
138 clock-frequency = <8000000>;
139 };
140
141 &dma2d {
142 status = "okay";
143 };
144
145 &dsi {
146 #address-cells = <1>;
147 #size-cells = <0>;
148 status = "okay";
149
150 ports {
151 #address-cells = <1>;
152 #size-cells = <0>;
153
154 port@0 {
155 reg = <0>;
156 dsi_in: endpoint {
157 remote-endpoint = <&ltdc_out_dsi>;
158 };
159 };
160
161 port@1 {
162 reg = <1>;
163 dsi_out: endpoint {
164 remote-endpoint = <&dsi_panel_in>;
165 };
166 };
167 };
168
169 panel@0 {
170 compatible = "orisetech,otm8009a";
171 reg = <0>; /* dsi virtual channel (0..3) */
172 reset-gpios = <&gpioh 7 GPIO_ACTIVE_LOW>;
173 power-supply = <&vcc_3v3>;
174 status = "okay";
175
176 port {
177 dsi_panel_in: endpoint {
178 remote-endpoint = <&dsi_out>;
179 };
180 };
181 };
182 };
183
184 &ltdc {
185 status = "okay";
186
187 port {
188 ltdc_out_dsi: endpoint {
189 remote-endpoint = <&dsi_in>;
190 };
191 };
192 };
193
194 &rtc {
195 status = "okay";
196 };
197
198 &timers1 {
199 status = "okay";
200
201 pwm {
202 pinctrl-0 = <&pwm1_pins>;
203 pinctrl-names = "default";
204 status = "okay";
205 };
206
207 timer@0 {
208 status = "okay";
209 };
210 };
211
212 &timers3 {
213 status = "okay";
214
215 pwm {
216 pinctrl-0 = <&pwm3_pins>;
217 pinctrl-names = "default";
218 status = "okay";
219 };
220
221 timer@2 {
222 status = "okay";
223 };
224 };
225
226 &sdio {
227 status = "okay";
228 vmmc-supply = <&vcc_3v3>;
229 cd-gpios = <&gpiog 2 GPIO_ACTIVE_LOW>;
230 broken-cd;
231 pinctrl-names = "default", "opendrain";
232 pinctrl-0 = <&sdio_pins>;
233 pinctrl-1 = <&sdio_pins_od>;
234 bus-width = <4>;
235 };
236
237 &timers5 {
238 /* Override timer5 to act as clockevent */
239 compatible = "st,stm32-timer";
240 interrupts = <50>;
241 status = "okay";
242 /delete-property/#address-cells;
243 /delete-property/#size-cells;
244 /delete-property/clock-names;
245 /delete-node/pwm;
246 /delete-node/timer@4;
247 };
248
249 &usart3 {
250 pinctrl-0 = <&usart3_pins_a>;
251 pinctrl-names = "default";
252 status = "okay";
253 };
254
255 &usbotg_fs {
256 dr_mode = "host";
257 pinctrl-0 = <&usbotg_fs_pins_a>;
258 pinctrl-names = "default";
259 status = "okay";
260 };