blob: 5846b0d7e74a12b0fba9a13b86073bdea6568dde [file] [log] [blame]
Michael Kurzb1a8de72017-01-22 16:04:23 +01001/*
2 * Copyright 2016 - Michael Kurz <michi.kurz@gmail.com>
Vikas Manochafd198ee2017-04-10 15:02:53 -07003 * Copyright 2016 - Vikas MANOCHA <vikas.manocha@st.com>
Michael Kurzb1a8de72017-01-22 16:04:23 +01004 *
5 * Based on:
6 * stm32f469-disco.dts from Linux
7 * Copyright 2016 - Lee Jones <lee.jones@linaro.org>
8 *
9 * This file is dual-licensed: you can use it either under the terms
10 * of the GPL or the X11 license, at your option. Note that this dual
11 * licensing only applies to this file, and not this project as a
12 * whole.
13 *
14 * a) This file is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License as
16 * published by the Free Software Foundation; either version 2 of the
17 * License, or (at your option) any later version.
18 *
19 * This file is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
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 "stm32f746.dtsi"
50
51/ {
52 model = "STMicroelectronics STM32F746-DISCO board";
53 compatible = "st,stm32f746-disco", "st,stm32f746";
54
55 chosen {
56 bootargs = "root=/dev/ram rdinit=/linuxrc";
57 stdout-path = "serial0:115200n8";
58 };
59
60 memory {
61 reg = <0xC0000000 0x800000>;
62 };
63
64 aliases {
Vikas Manocha84bfdc12017-02-12 10:25:47 -080065 serial0 = &usart1;
Michael Kurzb1a8de72017-01-22 16:04:23 +010066 spi0 = &qspi;
67 };
68};
69
Vikas Manocha84bfdc12017-02-12 10:25:47 -080070&clk_hse {
71 clock-frequency = <25000000>;
72};
73
Vikas Manochae34e19f2017-02-12 10:25:51 -080074&usart1 {
75 pinctrl-0 = <&usart1_pins_a>;
76 pinctrl-names = "default";
77 status = "okay";
78};
79
Vikas Manochafd198ee2017-04-10 15:02:53 -070080&fmc {
81 pinctrl-0 = <&fmc_pins>;
82 pinctrl-names = "default";
83 status = "okay";
84};
85
Michael Kurzb1a8de72017-01-22 16:04:23 +010086&mac {
87 status = "okay";
Vikas Manochac428a952017-02-12 10:25:52 -080088 pinctrl-0 = <&ethernet_mii>;
Michael Kurzb1a8de72017-01-22 16:04:23 +010089 phy-mode = "rmii";
90 phy-handle = <&phy0>;
91
92 mdio0 {
93 #address-cells = <1>;
94 #size-cells = <0>;
95 compatible = "snps,dwmac-mdio";
96 phy0: ethernet-phy@0 {
97 reg = <0>;
98 };
99 };
100};
101
102&qspi {
Vikas Manochae245f1a2017-02-12 10:25:53 -0800103 pinctrl-0 = <&qspi_pins>;
Michael Kurzb1a8de72017-01-22 16:04:23 +0100104 status = "okay";
105
106 qflash0: n25q128a {
107 #address-cells = <1>;
108 #size-cells = <1>;
109 compatible = "micron,n25q128a13", "spi-flash";
110 spi-max-frequency = <108000000>;
111 spi-tx-bus-width = <1>;
112 spi-rx-bus-width = <1>;
113 memory-map = <0x90000000 0x1000000>;
114 reg = <0>;
115 };
116};