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>;
139 compatible = "st,stpmic1-regulators";
141 ldo1-supply = <&v3v3>;
142 ldo2-supply = <&v3v3>;
143 ldo3-supply = <&vdd_ddr>;
144 ldo5-supply = <&v3v3>;
145 ldo6-supply = <&v3v3>;
146 pwr_sw1-supply = <&bst_out>;
147 pwr_sw2-supply = <&bst_out>;
150 regulator-name = "vddcore";
151 regulator-min-microvolt = <1200000>;
152 regulator-max-microvolt = <1350000>;
154 regulator-initial-mode = <0>;
155 regulator-over-current-protection;
159 regulator-name = "vdd_ddr";
160 regulator-min-microvolt = <1350000>;
161 regulator-max-microvolt = <1350000>;
163 regulator-initial-mode = <0>;
164 regulator-over-current-protection;
168 regulator-name = "vdd";
169 regulator-min-microvolt = <3300000>;
170 regulator-max-microvolt = <3300000>;
172 regulator-initial-mode = <0>;
173 regulator-over-current-protection;
177 regulator-name = "v3v3";
178 regulator-min-microvolt = <3300000>;
179 regulator-max-microvolt = <3300000>;
181 regulator-over-current-protection;
182 regulator-initial-mode = <0>;
186 regulator-name = "vdda";
187 regulator-min-microvolt = <2900000>;
188 regulator-max-microvolt = <2900000>;
189 interrupts = <IT_CURLIM_LDO1 0>;
190 interrupt-parent = <&pmic>;
194 regulator-name = "v2v8";
195 regulator-min-microvolt = <2800000>;
196 regulator-max-microvolt = <2800000>;
197 interrupts = <IT_CURLIM_LDO2 0>;
198 interrupt-parent = <&pmic>;
202 regulator-name = "vtt_ddr";
203 regulator-min-microvolt = <500000>;
204 regulator-max-microvolt = <750000>;
206 regulator-over-current-protection;
210 regulator-name = "vdd_usb";
211 interrupts = <IT_CURLIM_LDO4 0>;
212 interrupt-parent = <&pmic>;
216 regulator-name = "vdd_sd";
217 regulator-min-microvolt = <2900000>;
218 regulator-max-microvolt = <2900000>;
219 interrupts = <IT_CURLIM_LDO5 0>;
220 interrupt-parent = <&pmic>;
225 regulator-name = "v1v8";
226 regulator-min-microvolt = <1800000>;
227 regulator-max-microvolt = <1800000>;
228 interrupts = <IT_CURLIM_LDO6 0>;
229 interrupt-parent = <&pmic>;
230 regulator-enable-ramp-delay = <300000>;
234 regulator-name = "vref_ddr";
239 regulator-name = "bst_out";
240 interrupts = <IT_OCP_BOOST 0>;
241 interrupt-parent = <&pmic>;
245 regulator-name = "vbus_otg";
246 interrupts = <IT_OCP_OTG 0>;
247 interrupt-parent = <&pmic>;
251 regulator-name = "vbus_sw";
252 interrupts = <IT_OCP_SWOUT 0>;
253 interrupt-parent = <&pmic>;
254 regulator-active-discharge = <1>;
259 compatible = "st,stpmic1-onkey";
260 interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 1>;
261 interrupt-names = "onkey-falling", "onkey-rising";
266 compatible = "st,stpmic1-wdt";
279 vdd_3v3_usbfs-supply = <&vdd_usb>;
291 pinctrl-names = "default", "opendrain", "sleep";
292 pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
293 pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
294 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
300 vmmc-supply = <&vdd_sd>;
305 /* On Low speed expansion header */
307 pinctrl-names = "default";
308 pinctrl-0 = <&uart4_pins_b>;
313 /* On Low speed expansion header */
315 pinctrl-names = "default";
316 pinctrl-0 = <&uart7_pins_a>;