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>
5 * Copyright (C) 2020 Marek Vasut <marex@denx.de>
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>
21 device_type = "memory";
22 reg = <0xc0000000 0x40000000>;
27 pinctrl-names = "default";
28 pinctrl-0 = <&i2c4_pins_a>;
29 i2c-scl-rising-time-ns = <185>;
30 i2c-scl-falling-time-ns = <20>;
32 /delete-property/dmas;
33 /delete-property/dma-names;
36 compatible = "st,stpmic1";
38 interrupts-extended = <&exti 55 IRQ_TYPE_EDGE_FALLING>;
40 #interrupt-cells = <2>;
43 st,main-control-register = <0x04>;
44 st,vin-control-register = <0xc0>;
45 st,usb-control-register = <0x30>;
48 compatible = "st,stpmic1-regulators";
50 ldo1-supply = <&v3v3>;
51 ldo2-supply = <&v3v3>;
52 ldo3-supply = <&vdd_ddr>;
53 ldo5-supply = <&v3v3>;
54 ldo6-supply = <&v3v3>;
55 pwr_sw1-supply = <&bst_out>;
56 pwr_sw2-supply = <&bst_out>;
59 regulator-name = "vddcore";
60 regulator-min-microvolt = <800000>;
61 regulator-max-microvolt = <1350000>;
63 regulator-initial-mode = <0>;
64 regulator-over-current-protection;
68 regulator-name = "vdd_ddr";
69 regulator-min-microvolt = <1350000>;
70 regulator-max-microvolt = <1350000>;
72 regulator-initial-mode = <0>;
73 regulator-over-current-protection;
77 regulator-name = "vdd";
78 regulator-min-microvolt = <2900000>;
79 regulator-max-microvolt = <2900000>;
82 regulator-initial-mode = <0>;
83 regulator-over-current-protection;
87 regulator-name = "v3v3";
88 regulator-min-microvolt = <3300000>;
89 regulator-max-microvolt = <3300000>;
91 regulator-over-current-protection;
92 regulator-initial-mode = <0>;
96 regulator-name = "vdda";
97 regulator-min-microvolt = <2900000>;
98 regulator-max-microvolt = <2900000>;
99 interrupts = <IT_CURLIM_LDO1 0>;
100 interrupt-parent = <&pmic>;
104 regulator-name = "v2v8";
105 regulator-min-microvolt = <2800000>;
106 regulator-max-microvolt = <2800000>;
107 interrupts = <IT_CURLIM_LDO2 0>;
108 interrupt-parent = <&pmic>;
112 regulator-name = "vtt_ddr";
113 regulator-min-microvolt = <500000>;
114 regulator-max-microvolt = <750000>;
116 regulator-over-current-protection;
120 regulator-name = "vdd_usb";
121 regulator-min-microvolt = <3300000>;
122 regulator-max-microvolt = <3300000>;
123 interrupts = <IT_CURLIM_LDO4 0>;
124 interrupt-parent = <&pmic>;
128 regulator-name = "vdd_sd";
129 regulator-min-microvolt = <2900000>;
130 regulator-max-microvolt = <2900000>;
131 interrupts = <IT_CURLIM_LDO5 0>;
132 interrupt-parent = <&pmic>;
137 regulator-name = "v1v8";
138 regulator-min-microvolt = <1800000>;
139 regulator-max-microvolt = <1800000>;
140 interrupts = <IT_CURLIM_LDO6 0>;
141 interrupt-parent = <&pmic>;
142 regulator-enable-ramp-delay = <300000>;
146 regulator-name = "vref_ddr";
148 regulator-over-current-protection;
152 regulator-name = "bst_out";
153 interrupts = <IT_OCP_BOOST 0>;
154 interrupt-parent = <&pmic>;
158 regulator-name = "vbus_otg";
159 interrupts = <IT_OCP_OTG 0>;
160 interrupt-parent = <&pmic>;
161 regulator-active-discharge = <1>;
165 regulator-name = "vbus_sw";
166 interrupts = <IT_OCP_SWOUT 0>;
167 interrupt-parent = <&pmic>;
168 regulator-active-discharge = <1>;
173 compatible = "st,stpmic1-onkey";
174 interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 1>;
175 interrupt-names = "onkey-falling", "onkey-rising";
180 compatible = "st,stpmic1-wdt";
193 vdd_3v3_usbfs-supply = <&vdd_usb>;
197 pinctrl-names = "default", "sleep";
198 pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a>;
199 pinctrl-1 = <&qspi_clk_sleep_pins_a &qspi_bk1_sleep_pins_a>;
200 reg = <0x58003000 0x1000>, <0x70000000 0x200000>;
201 #address-cells = <1>;
205 flash0: spi-flash@0 {
206 compatible = "jedec,spi-nor";
208 spi-rx-bus-width = <4>;
209 spi-max-frequency = <108000000>;
210 #address-cells = <1>;