1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
3 * Copyright (C) Linaro Ltd 2019 - All Rights Reserved
4 * Author: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
9 #include "stm32mp157.dtsi"
10 #include "stm32mp15-pinctrl.dtsi"
11 #include "stm32mp15xxac-pinctrl.dtsi"
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/mfd/st,stpmic1.h>
16 model = "Arrow Electronics STM32MP157A Avenger96 board";
17 compatible = "arrow,stm32mp157a-avenger96", "st,stm32mp157";
20 ethernet0 = ðernet0;
27 stdout-path = "serial0:115200n8";
31 device_type = "memory";
32 reg = <0xc0000000 0x40000000>;
36 compatible = "gpio-leds";
38 label = "green:user1";
39 gpios = <&gpioz 7 GPIO_ACTIVE_HIGH>;
40 linux,default-trigger = "heartbeat";
41 default-state = "off";
45 label = "green:user2";
46 gpios = <&gpiof 3 GPIO_ACTIVE_HIGH>;
47 linux,default-trigger = "mmc0";
48 default-state = "off";
52 label = "green:user3";
53 gpios = <&gpiog 0 GPIO_ACTIVE_HIGH>;
54 linux,default-trigger = "mmc1";
55 default-state = "off";
59 label = "green:user3";
60 gpios = <&gpiog 1 GPIO_ACTIVE_HIGH>;
61 linux,default-trigger = "none";
62 default-state = "off";
67 label = "yellow:wifi";
68 gpios = <&gpioz 3 GPIO_ACTIVE_HIGH>;
69 linux,default-trigger = "phy0tx";
70 default-state = "off";
75 gpios = <&gpioz 6 GPIO_ACTIVE_HIGH>;
76 linux,default-trigger = "bluetooth-power";
77 default-state = "off";
84 pinctrl-0 = <ðernet0_rgmii_pins_a>;
85 pinctrl-1 = <ðernet0_rgmii_pins_sleep_a>;
86 pinctrl-names = "default", "sleep";
94 compatible = "snps,dwmac-mdio";
95 phy0: ethernet-phy@7 {
102 pinctrl-names = "default";
103 pinctrl-0 = <&i2c1_pins_b>;
104 i2c-scl-rising-time-ns = <185>;
105 i2c-scl-falling-time-ns = <20>;
107 /delete-property/dmas;
108 /delete-property/dma-names;
112 pinctrl-names = "default";
113 pinctrl-0 = <&i2c2_pins_b1 &i2c2_pins_b2>;
114 i2c-scl-rising-time-ns = <185>;
115 i2c-scl-falling-time-ns = <20>;
117 /delete-property/dmas;
118 /delete-property/dma-names;
122 pinctrl-names = "default";
123 pinctrl-0 = <&i2c4_pins_a>;
124 i2c-scl-rising-time-ns = <185>;
125 i2c-scl-falling-time-ns = <20>;
127 /delete-property/dmas;
128 /delete-property/dma-names;
131 compatible = "st,stpmic1";
133 interrupts-extended = <&exti 55 IRQ_TYPE_EDGE_FALLING>;
134 interrupt-controller;
135 #interrupt-cells = <2>;
138 st,main-control-register = <0x04>;
139 st,vin-control-register = <0xc0>;
140 st,usb-control-register = <0x30>;
143 compatible = "st,stpmic1-regulators";
145 ldo1-supply = <&v3v3>;
146 ldo2-supply = <&v3v3>;
147 ldo3-supply = <&vdd_ddr>;
148 ldo5-supply = <&v3v3>;
149 ldo6-supply = <&v3v3>;
150 pwr_sw1-supply = <&bst_out>;
151 pwr_sw2-supply = <&bst_out>;
154 regulator-name = "vddcore";
155 regulator-min-microvolt = <1200000>;
156 regulator-max-microvolt = <1350000>;
158 regulator-initial-mode = <0>;
159 regulator-over-current-protection;
163 regulator-name = "vdd_ddr";
164 regulator-min-microvolt = <1350000>;
165 regulator-max-microvolt = <1350000>;
167 regulator-initial-mode = <0>;
168 regulator-over-current-protection;
172 regulator-name = "vdd";
173 regulator-min-microvolt = <3300000>;
174 regulator-max-microvolt = <3300000>;
177 regulator-initial-mode = <0>;
178 regulator-over-current-protection;
182 regulator-name = "v3v3";
183 regulator-min-microvolt = <3300000>;
184 regulator-max-microvolt = <3300000>;
186 regulator-over-current-protection;
187 regulator-initial-mode = <0>;
191 regulator-name = "vdda";
192 regulator-min-microvolt = <2900000>;
193 regulator-max-microvolt = <2900000>;
194 interrupts = <IT_CURLIM_LDO1 0>;
195 interrupt-parent = <&pmic>;
199 regulator-name = "v2v8";
200 regulator-min-microvolt = <2800000>;
201 regulator-max-microvolt = <2800000>;
202 interrupts = <IT_CURLIM_LDO2 0>;
203 interrupt-parent = <&pmic>;
207 regulator-name = "vtt_ddr";
208 regulator-min-microvolt = <500000>;
209 regulator-max-microvolt = <750000>;
211 regulator-over-current-protection;
215 regulator-name = "vdd_usb";
216 regulator-min-microvolt = <3300000>;
217 regulator-max-microvolt = <3300000>;
218 interrupts = <IT_CURLIM_LDO4 0>;
219 interrupt-parent = <&pmic>;
223 regulator-name = "vdd_sd";
224 regulator-min-microvolt = <2900000>;
225 regulator-max-microvolt = <2900000>;
226 interrupts = <IT_CURLIM_LDO5 0>;
227 interrupt-parent = <&pmic>;
232 regulator-name = "v1v8";
233 regulator-min-microvolt = <1800000>;
234 regulator-max-microvolt = <1800000>;
235 interrupts = <IT_CURLIM_LDO6 0>;
236 interrupt-parent = <&pmic>;
237 regulator-enable-ramp-delay = <300000>;
241 regulator-name = "vref_ddr";
243 regulator-over-current-protection;
247 regulator-name = "bst_out";
248 interrupts = <IT_OCP_BOOST 0>;
249 interrupt-parent = <&pmic>;
253 regulator-name = "vbus_otg";
254 interrupts = <IT_OCP_OTG 0>;
255 interrupt-parent = <&pmic>;
259 regulator-name = "vbus_sw";
260 interrupts = <IT_OCP_SWOUT 0>;
261 interrupt-parent = <&pmic>;
262 regulator-active-discharge = <1>;
267 compatible = "st,stpmic1-onkey";
268 interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 1>;
269 interrupt-names = "onkey-falling", "onkey-rising";
274 compatible = "st,stpmic1-wdt";
287 vdd_3v3_usbfs-supply = <&vdd_usb>;
299 pinctrl-names = "default", "opendrain", "sleep";
300 pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
301 pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
302 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
308 vmmc-supply = <&vdd_sd>;
313 /* On Low speed expansion header */
315 pinctrl-names = "default";
316 pinctrl-0 = <&uart4_pins_b>;
321 /* On Low speed expansion header */
323 pinctrl-names = "default";
324 pinctrl-0 = <&uart7_pins_a>;