1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * Copyright (C) 2020 Marcin Sloniewski <marcin.sloniewski@gmail.com>.
8 #include "stm32mp157.dtsi"
9 #include "stm32mp15xc.dtsi"
10 #include "stm32mp15-pinctrl.dtsi"
11 #include "stm32mp15xxac-pinctrl.dtsi"
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/leds/common.h>
14 #include <dt-bindings/mfd/st,stpmic1.h>
17 model = "Seeed Studio Odyssey-STM32MP157C SOM";
18 compatible = "seeed,stm32mp157c-odyssey-som", "st,stm32mp157";
21 device_type = "memory";
22 reg = <0xc0000000 0x20000000>;
30 mcuram2: mcuram2@10000000 {
31 compatible = "shared-dma-pool";
32 reg = <0x10000000 0x40000>;
36 vdev0vring0: vdev0vring0@10040000 {
37 compatible = "shared-dma-pool";
38 reg = <0x10040000 0x1000>;
42 vdev0vring1: vdev0vring1@10041000 {
43 compatible = "shared-dma-pool";
44 reg = <0x10041000 0x1000>;
48 vdev0buffer: vdev0buffer@10042000 {
49 compatible = "shared-dma-pool";
50 reg = <0x10042000 0x4000>;
54 mcuram: mcuram@30000000 {
55 compatible = "shared-dma-pool";
56 reg = <0x30000000 0x40000>;
60 retram: retram@38000000 {
61 compatible = "shared-dma-pool";
62 reg = <0x38000000 0x10000>;
66 gpu_reserved: gpu@d4000000 {
67 reg = <0xd4000000 0x4000000>;
73 compatible = "gpio-leds";
75 color = <LED_COLOR_ID_BLUE>;
76 function = LED_FUNCTION_HEARTBEAT;
77 gpios = <&gpiog 3 GPIO_ACTIVE_HIGH>;
78 linux,default-trigger = "heartbeat";
84 contiguous-area = <&gpu_reserved>;
89 pinctrl-names = "default";
90 pinctrl-0 = <&i2c2_pins_a>;
91 i2c-scl-rising-time-ns = <185>;
92 i2c-scl-falling-time-ns = <20>;
94 /* spare dmas for other usage */
95 /delete-property/dmas;
96 /delete-property/dma-names;
99 compatible = "st,stpmic1";
101 interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
102 interrupt-controller;
103 #interrupt-cells = <2>;
106 compatible = "st,stpmic1-regulators";
107 ldo1-supply = <&v3v3>;
108 ldo3-supply = <&vdd_ddr>;
109 ldo6-supply = <&v3v3>;
110 pwr_sw1-supply = <&bst_out>;
111 pwr_sw2-supply = <&bst_out>;
114 regulator-name = "vddcore";
115 regulator-min-microvolt = <800000>;
116 regulator-max-microvolt = <1350000>;
118 regulator-initial-mode = <0>;
119 regulator-over-current-protection;
123 regulator-name = "vdd_ddr";
124 regulator-min-microvolt = <1350000>;
125 regulator-max-microvolt = <1350000>;
127 regulator-initial-mode = <0>;
128 regulator-over-current-protection;
132 regulator-name = "vdd";
133 regulator-min-microvolt = <3300000>;
134 regulator-max-microvolt = <3300000>;
137 regulator-initial-mode = <0>;
138 regulator-over-current-protection;
142 regulator-name = "v3v3";
143 regulator-min-microvolt = <3300000>;
144 regulator-max-microvolt = <3300000>;
146 regulator-over-current-protection;
147 regulator-initial-mode = <0>;
151 regulator-name = "v1v8_audio";
152 regulator-min-microvolt = <1800000>;
153 regulator-max-microvolt = <1800000>;
155 interrupts = <IT_CURLIM_LDO1 0>;
159 regulator-name = "v3v3_hdmi";
160 regulator-min-microvolt = <3300000>;
161 regulator-max-microvolt = <3300000>;
163 interrupts = <IT_CURLIM_LDO2 0>;
167 regulator-name = "vtt_ddr";
168 regulator-min-microvolt = <500000>;
169 regulator-max-microvolt = <750000>;
171 regulator-over-current-protection;
175 regulator-name = "vdd_usb";
176 regulator-min-microvolt = <3300000>;
177 regulator-max-microvolt = <3300000>;
178 interrupts = <IT_CURLIM_LDO4 0>;
182 regulator-name = "vdda";
183 regulator-min-microvolt = <2900000>;
184 regulator-max-microvolt = <2900000>;
185 interrupts = <IT_CURLIM_LDO5 0>;
190 regulator-name = "v1v2_hdmi";
191 regulator-min-microvolt = <1200000>;
192 regulator-max-microvolt = <1200000>;
194 interrupts = <IT_CURLIM_LDO6 0>;
198 regulator-name = "vref_ddr";
200 regulator-over-current-protection;
204 regulator-name = "bst_out";
205 interrupts = <IT_OCP_BOOST 0>;
209 regulator-name = "vbus_otg";
210 interrupts = <IT_OCP_OTG 0>;
214 regulator-name = "vbus_sw";
215 interrupts = <IT_OCP_SWOUT 0>;
216 regulator-active-discharge;
221 compatible = "st,stpmic1-onkey";
222 interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 0>;
223 interrupt-names = "onkey-falling", "onkey-rising";
224 power-off-time-sec = <10>;
228 compatible = "st,stpmic1-wdt";
244 memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
245 <&vdev0vring1>, <&vdev0buffer>;
246 mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
247 mbox-names = "vq0", "vq1", "shutdown";
248 interrupt-parent = <&exti>;
262 pinctrl-names = "default", "opendrain", "sleep";
263 pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_d>;
264 pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_d>;
265 pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_d>;
271 vmmc-supply = <&v3v3>;
272 vqmmc-supply = <&v3v3>;