blob: 44ecc4708587191d41149d5e7dbd6d2b94e0e4e9 [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 */
Marek Vasut526c9512020-03-31 19:51:36 +02007
Marek Vasut526c9512020-03-31 19:51:36 +02008#include "stm32mp15-pinctrl.dtsi"
9#include "stm32mp15xxac-pinctrl.dtsi"
10#include <dt-bindings/gpio/gpio.h>
11#include <dt-bindings/mfd/st,stpmic1.h>
12
13/ {
14 aliases {
15 spi0 = &qspi;
16 };
17
18 memory@c0000000 {
19 device_type = "memory";
20 reg = <0xc0000000 0x40000000>;
21 };
Marek Vasut526c9512020-03-31 19:51:36 +020022};
23
Marek Vasut8b08dfb2021-12-30 23:46:46 +010024&crc1 {
25 status = "okay";
26};
27
28&dts {
29 status = "okay";
30};
31
Marek Vasut526c9512020-03-31 19:51:36 +020032&i2c4 {
33 pinctrl-names = "default";
34 pinctrl-0 = <&i2c4_pins_a>;
35 i2c-scl-rising-time-ns = <185>;
36 i2c-scl-falling-time-ns = <20>;
37 status = "okay";
38 /delete-property/dmas;
39 /delete-property/dma-names;
40
41 pmic: stpmic@33 {
42 compatible = "st,stpmic1";
43 reg = <0x33>;
Marek Vasut8b08dfb2021-12-30 23:46:46 +010044 interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
Marek Vasut526c9512020-03-31 19:51:36 +020045 interrupt-controller;
46 #interrupt-cells = <2>;
47 status = "okay";
48
Marek Vasut526c9512020-03-31 19:51:36 +020049 regulators {
50 compatible = "st,stpmic1-regulators";
51
52 ldo1-supply = <&v3v3>;
53 ldo2-supply = <&v3v3>;
54 ldo3-supply = <&vdd_ddr>;
55 ldo5-supply = <&v3v3>;
56 ldo6-supply = <&v3v3>;
57 pwr_sw1-supply = <&bst_out>;
58 pwr_sw2-supply = <&bst_out>;
59
60 vddcore: buck1 {
61 regulator-name = "vddcore";
Marek Vasut8b08dfb2021-12-30 23:46:46 +010062 regulator-min-microvolt = <1200000>;
Marek Vasut526c9512020-03-31 19:51:36 +020063 regulator-max-microvolt = <1350000>;
64 regulator-always-on;
65 regulator-initial-mode = <0>;
66 regulator-over-current-protection;
67 };
68
69 vdd_ddr: buck2 {
70 regulator-name = "vdd_ddr";
71 regulator-min-microvolt = <1350000>;
72 regulator-max-microvolt = <1350000>;
73 regulator-always-on;
74 regulator-initial-mode = <0>;
75 regulator-over-current-protection;
76 };
77
78 vdd: buck3 {
79 regulator-name = "vdd";
80 regulator-min-microvolt = <2900000>;
81 regulator-max-microvolt = <2900000>;
82 regulator-always-on;
Marek Vasut526c9512020-03-31 19:51:36 +020083 regulator-initial-mode = <0>;
84 regulator-over-current-protection;
85 };
86
87 v3v3: buck4 {
88 regulator-name = "v3v3";
89 regulator-min-microvolt = <3300000>;
90 regulator-max-microvolt = <3300000>;
91 regulator-always-on;
92 regulator-over-current-protection;
93 regulator-initial-mode = <0>;
94 };
95
96 vdda: ldo1 {
97 regulator-name = "vdda";
98 regulator-min-microvolt = <2900000>;
99 regulator-max-microvolt = <2900000>;
100 interrupts = <IT_CURLIM_LDO1 0>;
Marek Vasut526c9512020-03-31 19:51:36 +0200101 };
102
103 v2v8: ldo2 {
104 regulator-name = "v2v8";
105 regulator-min-microvolt = <2800000>;
106 regulator-max-microvolt = <2800000>;
107 interrupts = <IT_CURLIM_LDO2 0>;
Marek Vasut526c9512020-03-31 19:51:36 +0200108 };
109
110 vtt_ddr: ldo3 {
111 regulator-name = "vtt_ddr";
112 regulator-min-microvolt = <500000>;
113 regulator-max-microvolt = <750000>;
114 regulator-always-on;
115 regulator-over-current-protection;
116 };
117
118 vdd_usb: ldo4 {
119 regulator-name = "vdd_usb";
Marek Vasut526c9512020-03-31 19:51:36 +0200120 interrupts = <IT_CURLIM_LDO4 0>;
Marek Vasut526c9512020-03-31 19:51:36 +0200121 };
122
123 vdd_sd: ldo5 {
124 regulator-name = "vdd_sd";
125 regulator-min-microvolt = <2900000>;
126 regulator-max-microvolt = <2900000>;
127 interrupts = <IT_CURLIM_LDO5 0>;
Marek Vasut526c9512020-03-31 19:51:36 +0200128 regulator-boot-on;
129 };
130
131 v1v8: ldo6 {
132 regulator-name = "v1v8";
133 regulator-min-microvolt = <1800000>;
134 regulator-max-microvolt = <1800000>;
135 interrupts = <IT_CURLIM_LDO6 0>;
Marek Vasut526c9512020-03-31 19:51:36 +0200136 regulator-enable-ramp-delay = <300000>;
137 };
138
139 vref_ddr: vref_ddr {
140 regulator-name = "vref_ddr";
141 regulator-always-on;
Marek Vasut526c9512020-03-31 19:51:36 +0200142 };
143
144 bst_out: boost {
145 regulator-name = "bst_out";
146 interrupts = <IT_OCP_BOOST 0>;
Marek Vasut526c9512020-03-31 19:51:36 +0200147 };
148
149 vbus_otg: pwr_sw1 {
150 regulator-name = "vbus_otg";
151 interrupts = <IT_OCP_OTG 0>;
Marek Vasut526c9512020-03-31 19:51:36 +0200152 regulator-active-discharge = <1>;
153 };
154
155 vbus_sw: pwr_sw2 {
156 regulator-name = "vbus_sw";
157 interrupts = <IT_OCP_SWOUT 0>;
Marek Vasut526c9512020-03-31 19:51:36 +0200158 regulator-active-discharge = <1>;
159 };
160 };
161
162 onkey {
163 compatible = "st,stpmic1-onkey";
164 interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 1>;
165 interrupt-names = "onkey-falling", "onkey-rising";
166 status = "okay";
167 };
168
169 watchdog {
170 compatible = "st,stpmic1-wdt";
171 status = "disabled";
172 };
173 };
Marek Vasut8b08dfb2021-12-30 23:46:46 +0100174
175 eeprom@53 {
176 compatible = "atmel,24c02";
177 reg = <0x53>;
178 pagesize = <16>;
179 };
Marek Vasut526c9512020-03-31 19:51:36 +0200180};
181
182&iwdg2 {
183 timeout-sec = <32>;
184 status = "okay";
185};
186
187&pwr_regulators {
Marek Vasut954d1ea2020-04-27 13:16:02 +0200188 vdd-supply = <&vdd>;
Marek Vasut526c9512020-03-31 19:51:36 +0200189 vdd_3v3_usbfs-supply = <&vdd_usb>;
190};
191
192&qspi {
193 pinctrl-names = "default", "sleep";
194 pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a>;
195 pinctrl-1 = <&qspi_clk_sleep_pins_a &qspi_bk1_sleep_pins_a>;
196 reg = <0x58003000 0x1000>, <0x70000000 0x200000>;
197 #address-cells = <1>;
198 #size-cells = <0>;
199 status = "okay";
200
Marek Vasut8b08dfb2021-12-30 23:46:46 +0100201 flash0: flash@0 {
Marek Vasut526c9512020-03-31 19:51:36 +0200202 compatible = "jedec,spi-nor";
203 reg = <0>;
204 spi-rx-bus-width = <4>;
Marek Vasut4f35b502021-08-09 14:06:04 +0200205 spi-max-frequency = <50000000>;
Marek Vasut526c9512020-03-31 19:51:36 +0200206 #address-cells = <1>;
207 #size-cells = <1>;
208 };
209};
210
211&rng1 {
212 status = "okay";
213};
214
215&rtc {
216 status = "okay";
217};