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 "stm32mp157c.dtsi"
10 #include "stm32mp157xac-pinctrl.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/mfd/st,stpmic1.h>
15 model = "Arrow Electronics STM32MP157A Avenger96 board";
16 compatible = "arrow,stm32mp157a-avenger96", "st,stm32mp157";
19 ethernet0 = ðernet0;
26 stdout-path = "serial0:115200n8";
30 device_type = "memory";
31 reg = <0xc0000000 0x40000000>;
35 compatible = "gpio-leds";
37 label = "green:user1";
38 gpios = <&gpioz 7 GPIO_ACTIVE_HIGH>;
39 linux,default-trigger = "heartbeat";
40 default-state = "off";
44 label = "green:user2";
45 gpios = <&gpiof 3 GPIO_ACTIVE_HIGH>;
46 linux,default-trigger = "mmc0";
47 default-state = "off";
51 label = "green:user3";
52 gpios = <&gpiog 0 GPIO_ACTIVE_HIGH>;
53 linux,default-trigger = "mmc1";
54 default-state = "off";
58 label = "green:user3";
59 gpios = <&gpiog 1 GPIO_ACTIVE_HIGH>;
60 linux,default-trigger = "none";
61 default-state = "off";
66 label = "yellow:wifi";
67 gpios = <&gpioz 3 GPIO_ACTIVE_HIGH>;
68 linux,default-trigger = "phy0tx";
69 default-state = "off";
74 gpios = <&gpioz 6 GPIO_ACTIVE_HIGH>;
75 linux,default-trigger = "bluetooth-power";
76 default-state = "off";
83 pinctrl-0 = <ðernet0_rgmii_pins_a>;
84 pinctrl-1 = <ðernet0_rgmii_pins_sleep_a>;
85 pinctrl-names = "default", "sleep";
93 compatible = "snps,dwmac-mdio";
94 phy0: ethernet-phy@7 {
101 pinctrl-names = "default";
102 pinctrl-0 = <&i2c1_pins_b>;
103 i2c-scl-rising-time-ns = <185>;
104 i2c-scl-falling-time-ns = <20>;
106 /delete-property/dmas;
107 /delete-property/dma-names;
111 pinctrl-names = "default";
112 pinctrl-0 = <&i2c2_pins_b1 &i2c2_pins_b2>;
113 i2c-scl-rising-time-ns = <185>;
114 i2c-scl-falling-time-ns = <20>;
116 /delete-property/dmas;
117 /delete-property/dma-names;
121 pinctrl-names = "default";
122 pinctrl-0 = <&i2c4_pins_a>;
123 i2c-scl-rising-time-ns = <185>;
124 i2c-scl-falling-time-ns = <20>;
126 /delete-property/dmas;
127 /delete-property/dma-names;
130 compatible = "st,stpmic1";
132 interrupts-extended = <&exti 55 IRQ_TYPE_EDGE_FALLING>;
133 interrupt-controller;
134 #interrupt-cells = <2>;
137 st,main-control-register = <0x04>;
138 st,vin-control-register = <0xc0>;
139 st,usb-control-register = <0x30>;
142 compatible = "st,stpmic1-regulators";
144 ldo1-supply = <&v3v3>;
145 ldo2-supply = <&v3v3>;
146 ldo3-supply = <&vdd_ddr>;
147 ldo5-supply = <&v3v3>;
148 ldo6-supply = <&v3v3>;
149 pwr_sw1-supply = <&bst_out>;
150 pwr_sw2-supply = <&bst_out>;
153 regulator-name = "vddcore";
154 regulator-min-microvolt = <1200000>;
155 regulator-max-microvolt = <1350000>;
157 regulator-initial-mode = <0>;
158 regulator-over-current-protection;
162 regulator-name = "vdd_ddr";
163 regulator-min-microvolt = <1350000>;
164 regulator-max-microvolt = <1350000>;
166 regulator-initial-mode = <0>;
167 regulator-over-current-protection;
171 regulator-name = "vdd";
172 regulator-min-microvolt = <3300000>;
173 regulator-max-microvolt = <3300000>;
176 regulator-initial-mode = <0>;
177 regulator-over-current-protection;
181 regulator-name = "v3v3";
182 regulator-min-microvolt = <3300000>;
183 regulator-max-microvolt = <3300000>;
185 regulator-over-current-protection;
186 regulator-initial-mode = <0>;
190 regulator-name = "vdda";
191 regulator-min-microvolt = <2900000>;
192 regulator-max-microvolt = <2900000>;
193 interrupts = <IT_CURLIM_LDO1 0>;
194 interrupt-parent = <&pmic>;
198 regulator-name = "v2v8";
199 regulator-min-microvolt = <2800000>;
200 regulator-max-microvolt = <2800000>;
201 interrupts = <IT_CURLIM_LDO2 0>;
202 interrupt-parent = <&pmic>;
206 regulator-name = "vtt_ddr";
207 regulator-min-microvolt = <500000>;
208 regulator-max-microvolt = <750000>;
210 regulator-over-current-protection;
214 regulator-name = "vdd_usb";
215 regulator-min-microvolt = <3300000>;
216 regulator-max-microvolt = <3300000>;
217 interrupts = <IT_CURLIM_LDO4 0>;
218 interrupt-parent = <&pmic>;
222 regulator-name = "vdd_sd";
223 regulator-min-microvolt = <2900000>;
224 regulator-max-microvolt = <2900000>;
225 interrupts = <IT_CURLIM_LDO5 0>;
226 interrupt-parent = <&pmic>;
231 regulator-name = "v1v8";
232 regulator-min-microvolt = <1800000>;
233 regulator-max-microvolt = <1800000>;
234 interrupts = <IT_CURLIM_LDO6 0>;
235 interrupt-parent = <&pmic>;
236 regulator-enable-ramp-delay = <300000>;
240 regulator-name = "vref_ddr";
242 regulator-over-current-protection;
246 regulator-name = "bst_out";
247 interrupts = <IT_OCP_BOOST 0>;
248 interrupt-parent = <&pmic>;
252 regulator-name = "vbus_otg";
253 interrupts = <IT_OCP_OTG 0>;
254 interrupt-parent = <&pmic>;
255 regulator-active-discharge;
259 regulator-name = "vbus_sw";
260 interrupts = <IT_OCP_SWOUT 0>;
261 interrupt-parent = <&pmic>;
262 regulator-active-discharge;
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";
294 pinctrl-names = "default", "opendrain", "sleep";
295 pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
296 pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
297 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
303 vmmc-supply = <&vdd_sd>;
308 /* On Low speed expansion header */
310 pinctrl-names = "default";
311 pinctrl-0 = <&uart4_pins_b>;
316 /* On Low speed expansion header */
318 pinctrl-names = "default";
319 pinctrl-0 = <&uart7_pins_a>;