blob: 1b0579c8abddb4ce6b727d9f1c7a5d62b2b8a3e2 [file] [log] [blame]
Marek Vasut526c9512020-03-31 19:51:36 +02001// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
2/*
3 * Copyright (C) Linaro Ltd 2019 - All Rights Reserved
4 * Author: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
5 * Copyright (C) 2020 Marek Vasut <marex@denx.de>
6 */
7
8/dts-v1/;
9
Marek Vasut954d1ea2020-04-27 13:16:02 +020010#include "stm32mp15xx-dhcor-io1v8.dtsi"
Marek Vasut526c9512020-03-31 19:51:36 +020011#include "stm32mp15xx-dhcor-avenger96-u-boot.dtsi"
12
13/ {
14 model = "Arrow Electronics STM32MP15xx Avenger96 board";
15 compatible = "arrow,stm32mp15xx-avenger96", "st,stm32mp15x";
16
17 aliases {
18 eeprom0 = &eeprom0;
19 ethernet0 = &ethernet0;
20 mmc0 = &sdmmc1;
21 serial0 = &uart4;
22 serial1 = &uart7;
23 };
24
25 chosen {
26 stdout-path = "serial0:115200n8";
27 };
28
29 led {
30 compatible = "gpio-leds";
31 led1 {
32 label = "green:user0";
33 gpios = <&gpioz 7 GPIO_ACTIVE_HIGH>;
34 linux,default-trigger = "heartbeat";
35 default-state = "off";
36 };
37
38 led2 {
39 label = "green:user1";
40 gpios = <&gpiof 3 GPIO_ACTIVE_HIGH>;
41 linux,default-trigger = "mmc0";
42 default-state = "off";
43 };
44
45 led3 {
46 label = "green:user2";
47 gpios = <&gpiog 0 GPIO_ACTIVE_HIGH>;
48 linux,default-trigger = "mmc1";
49 default-state = "off";
50 };
51
52 led4 {
53 label = "green:user3";
54 gpios = <&gpiog 1 GPIO_ACTIVE_HIGH>;
55 linux,default-trigger = "none";
56 default-state = "off";
57 panic-indicator;
58 };
59
60 led5 {
61 label = "yellow:wifi";
62 gpios = <&gpioz 3 GPIO_ACTIVE_HIGH>;
63 linux,default-trigger = "phy0tx";
64 default-state = "off";
65 };
66
67 led6 {
68 label = "blue:bt";
69 gpios = <&gpioz 6 GPIO_ACTIVE_HIGH>;
70 linux,default-trigger = "bluetooth-power";
71 default-state = "off";
72 };
73 };
74
75 sd_switch: regulator-sd_switch {
76 compatible = "regulator-gpio";
77 regulator-name = "sd_switch";
78 regulator-min-microvolt = <1800000>;
79 regulator-max-microvolt = <2900000>;
80 regulator-type = "voltage";
81 regulator-always-on;
82
83 gpios = <&gpioi 5 GPIO_ACTIVE_HIGH>;
84 gpios-states = <0>;
85 states = <1800000 0x1>,
86 <2900000 0x0>;
87 };
88};
89
90&ethernet0 {
91 status = "okay";
92 pinctrl-0 = <&ethernet0_rgmii_pins_b>;
93 pinctrl-1 = <&ethernet0_rgmii_pins_sleep_b>;
94 pinctrl-names = "default", "sleep";
95 phy-mode = "rgmii";
96 max-speed = <1000>;
97 phy-handle = <&phy0>;
98 phy-reset-gpios = <&gpioz 2 GPIO_ACTIVE_LOW>;
99
100 mdio0 {
101 #address-cells = <1>;
102 #size-cells = <0>;
103 compatible = "snps,dwmac-mdio";
104 phy0: ethernet-phy@7 {
105 reg = <7>;
106 };
107 };
108};
109
110&i2c1 {
111 pinctrl-names = "default";
112 pinctrl-0 = <&i2c1_pins_b>;
113 i2c-scl-rising-time-ns = <185>;
114 i2c-scl-falling-time-ns = <20>;
115 status = "okay";
116 /delete-property/dmas;
117 /delete-property/dma-names;
118};
119
120&i2c2 {
121 pinctrl-names = "default";
122 pinctrl-0 = <&i2c2_pins_b1 &i2c2_pins_b2>;
123 i2c-scl-rising-time-ns = <185>;
124 i2c-scl-falling-time-ns = <20>;
125 status = "okay";
126 /delete-property/dmas;
127 /delete-property/dma-names;
128};
129
130&i2c4 {
131 eeprom0: eeprom@53 {
132 compatible = "atmel,24c02";
133 reg = <0x53>;
134 pagesize = <16>;
135 };
136};
137
138&sdmmc1 {
139 pinctrl-names = "default", "opendrain", "sleep";
140 pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_b>;
141 pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_b>;
142 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_b>;
143 disable-wp;
144 st,sig-dir;
145 st,neg-edge;
146 st,use-ckin;
147 sd-uhs-sdr104;
148 bus-width = <4>;
149 vmmc-supply = <&vdd_sd>;
150 vqmmc-supply = <&sd_switch>;
151 status = "okay";
152};
153
154&sdmmc2 {
155 pinctrl-names = "default";
156 pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_b>;
157 non-removable;
158 no-sd;
159 no-sdio;
160 st,neg-edge;
161 bus-width = <8>;
162 vmmc-supply = <&v3v3>;
163 mmc-ddr-3_3v;
164 status = "okay";
165};
166
167&spi2 {
168 pinctrl-names = "default";
169 pinctrl-0 = <&spi2_pins_a>;
170 status = "okay";
171};
172
173&uart4 {
174 /* On Low speed expansion header */
175 label = "LS-UART1";
176 pinctrl-names = "default";
177 pinctrl-0 = <&uart4_pins_b>;
178 status = "okay";
179};
180
181&uart7 {
182 /* On Low speed expansion header */
183 label = "LS-UART0";
184 pinctrl-names = "default";
185 pinctrl-0 = <&uart7_pins_a>;
186 status = "okay";
187};
188
189&usbh_ehci {
190 phys = <&usbphyc_port0>;
191 phy-names = "usb";
192 status = "okay";
193};
194
195&usbotg_hs {
196 dr_mode = "peripheral";
197 phys = <&usbphyc_port1 0>;
198 phy-names = "usb2-phy";
199 status = "okay";
200};
201
202&usbphyc {
203 status = "okay";
204};
205
206&usbphyc_port0 {
207 phy-supply = <&vdd_usb>;
208};
209
210&usbphyc_port1 {
211 phy-supply = <&vdd_usb>;
212};