Alexandre Torgue | 00510af | 2021-11-18 12:26:49 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-3-Clause) |
| 2 | /* |
Yann Gautier | 4abeb0e | 2024-01-04 18:53:09 +0100 | [diff] [blame] | 3 | * Copyright (C) 2023-2024, STMicroelectronics - All Rights Reserved |
Alexandre Torgue | 00510af | 2021-11-18 12:26:49 +0100 | [diff] [blame] | 4 | * Author: Alexandre Torgue <alexandre.torgue@foss.st.com> for STMicroelectronics. |
| 5 | */ |
| 6 | |
| 7 | /dts-v1/; |
| 8 | |
Yann Gautier | 0ff7a17 | 2022-11-03 17:25:40 +0100 | [diff] [blame] | 9 | #include <dt-bindings/clock/stm32mp25-clksrc.h> |
Alexandre Torgue | 00510af | 2021-11-18 12:26:49 +0100 | [diff] [blame] | 10 | #include "stm32mp257.dtsi" |
| 11 | #include "stm32mp25xf.dtsi" |
Yann Gautier | 0ff7a17 | 2022-11-03 17:25:40 +0100 | [diff] [blame] | 12 | #include "stm32mp257f-ev1-ca35tdcid-rcc.dtsi" |
Alexandre Torgue | 00510af | 2021-11-18 12:26:49 +0100 | [diff] [blame] | 13 | #include "stm32mp25-pinctrl.dtsi" |
| 14 | #include "stm32mp25xxai-pinctrl.dtsi" |
| 15 | |
| 16 | / { |
| 17 | model = "STMicroelectronics STM32MP257F-EV1 Evaluation Board"; |
| 18 | compatible = "st,stm32mp257f-ev1", "st,stm32mp257"; |
| 19 | |
| 20 | aliases { |
| 21 | serial0 = &usart2; |
| 22 | }; |
| 23 | |
| 24 | chosen { |
| 25 | stdout-path = "serial0:115200n8"; |
| 26 | }; |
| 27 | |
| 28 | memory@80000000 { |
| 29 | device_type = "memory"; |
Yann Gautier | c55e2ee | 2023-10-18 14:17:04 +0200 | [diff] [blame] | 30 | reg = <0x0 0x80000000 0x1 0x0>; |
Alexandre Torgue | 00510af | 2021-11-18 12:26:49 +0100 | [diff] [blame] | 31 | }; |
| 32 | }; |
| 33 | |
Yann Gautier | 4abeb0e | 2024-01-04 18:53:09 +0100 | [diff] [blame] | 34 | &bsec { |
| 35 | board_id: board-id@3d8 { |
| 36 | reg = <0x3d8 0x4>; |
| 37 | }; |
| 38 | }; |
| 39 | |
Pascal Paillet | 1ad775f | 2022-12-15 17:45:35 +0100 | [diff] [blame] | 40 | &i2c7 { |
| 41 | pinctrl-names = "default"; |
| 42 | pinctrl-0 = <&i2c7_pins_a>; |
| 43 | i2c-scl-rising-time-ns = <185>; |
| 44 | i2c-scl-falling-time-ns = <20>; |
| 45 | clock-frequency = <400000>; |
| 46 | status = "okay"; |
| 47 | #address-cells = <1>; |
| 48 | #size-cells = <0>; |
| 49 | |
| 50 | pmic2: stpmic@33 { |
| 51 | compatible = "st,stpmic2"; |
| 52 | reg = <0x33>; |
| 53 | status = "okay"; |
| 54 | |
| 55 | regulators { |
| 56 | compatible = "st,stpmic2-regulators"; |
| 57 | |
| 58 | vddcpu: buck1 { |
| 59 | regulator-name = "vddcpu"; |
| 60 | regulator-min-microvolt = <800000>; |
| 61 | regulator-max-microvolt = <910000>; |
| 62 | regulator-always-on; |
| 63 | }; |
| 64 | vddcore: buck2 { |
| 65 | regulator-name = "vddcore"; |
| 66 | regulator-min-microvolt = <820000>; |
| 67 | regulator-max-microvolt = <820000>; |
| 68 | regulator-always-on; |
| 69 | }; |
| 70 | vddgpu: buck3 { |
| 71 | regulator-name = "vddgpu"; |
| 72 | regulator-min-microvolt = <800000>; |
| 73 | regulator-max-microvolt = <900000>; |
| 74 | regulator-always-on; |
| 75 | }; |
| 76 | vddio_pmic: buck4 { |
| 77 | regulator-name = "vddio_pmic"; |
| 78 | regulator-min-microvolt = <3300000>; |
| 79 | regulator-max-microvolt = <3300000>; |
| 80 | regulator-always-on; |
| 81 | }; |
| 82 | v1v8: buck5 { |
| 83 | regulator-name = "v1v8"; |
| 84 | regulator-min-microvolt = <1800000>; |
| 85 | regulator-max-microvolt = <1800000>; |
| 86 | regulator-always-on; |
| 87 | }; |
| 88 | vdd_ddr: buck6 { |
| 89 | regulator-name = "vdd_ddr"; |
| 90 | regulator-min-microvolt = <1200000>; |
| 91 | regulator-max-microvolt = <1200000>; |
| 92 | }; |
| 93 | v3v3: buck7 { |
| 94 | regulator-name = "v3v3"; |
| 95 | regulator-min-microvolt = <3300000>; |
| 96 | regulator-max-microvolt = <3300000>; |
| 97 | regulator-always-on; |
| 98 | }; |
| 99 | vdda1v8_aon: ldo1 { |
| 100 | regulator-name = "vdda1v8_aon"; |
| 101 | regulator-min-microvolt = <1800000>; |
| 102 | regulator-max-microvolt = <1800000>; |
| 103 | regulator-always-on; |
| 104 | }; |
| 105 | vdd_emmc: ldo2 { |
| 106 | regulator-name = "vdd_emmc"; |
| 107 | regulator-min-microvolt = <3300000>; |
| 108 | regulator-max-microvolt = <3300000>; |
| 109 | regulator-always-on; |
| 110 | }; |
| 111 | vtt_ddr: ldo3 { |
| 112 | regulator-name = "vtt_ddr"; |
| 113 | st,regulator-sink-source; |
| 114 | }; |
| 115 | vdd3v3_usb: ldo4 { |
| 116 | regulator-name = "vdd3v3_usb"; |
| 117 | regulator-min-microvolt = <3300000>; |
| 118 | regulator-max-microvolt = <3300000>; |
| 119 | regulator-always-on; |
| 120 | }; |
| 121 | vpp_ddr: ldo5 { |
| 122 | regulator-name = "vpp_ddr"; |
| 123 | regulator-min-microvolt = <2500000>; |
| 124 | regulator-max-microvolt = <2500000>; |
| 125 | regulator-enable-ramp-delay = <1000>; |
| 126 | }; |
| 127 | vdd_sdcard: ldo7 { |
| 128 | regulator-name = "vdd_sdcard"; |
| 129 | regulator-min-microvolt = <3300000>; |
| 130 | regulator-max-microvolt = <3300000>; |
| 131 | regulator-always-on; |
| 132 | }; |
| 133 | vddio_sdcard: ldo8 { |
| 134 | regulator-name = "vddio_sdcard"; |
| 135 | st,regulator-bypass-microvolt = <3300000>; |
| 136 | regulator-min-microvolt = <1800000>; |
| 137 | regulator-max-microvolt = <3300000>; |
| 138 | regulator-always-on; |
| 139 | }; |
| 140 | vref_ddr: refddr { |
| 141 | regulator-name = "vref_ddr"; |
| 142 | }; |
| 143 | }; |
| 144 | }; |
| 145 | }; |
| 146 | |
| 147 | &pwr { |
| 148 | vddio1: vddio1 { |
| 149 | vddio1-supply = <&vddio_sdcard>; |
| 150 | }; |
| 151 | vddio2: vddio2 { |
| 152 | vddio2-supply = <&v1v8>; |
| 153 | }; |
| 154 | vddio3: vddio3 { |
| 155 | vddio3-supply = <&vddio_pmic>; |
| 156 | }; |
| 157 | vddio4: vddio4 { |
| 158 | vddio4-supply = <&vddio_pmic>; |
| 159 | }; |
| 160 | vddio: vddio { |
| 161 | vdd-supply = <&vddio_pmic>; |
| 162 | }; |
| 163 | }; |
| 164 | |
Yann Gautier | b4397d0 | 2024-05-21 11:18:52 +0200 | [diff] [blame] | 165 | &sdmmc1 { |
| 166 | pinctrl-names = "default"; |
| 167 | pinctrl-0 = <&sdmmc1_b4_pins_a>; |
| 168 | st,neg-edge; |
| 169 | bus-width = <4>; |
| 170 | status = "okay"; |
| 171 | }; |
| 172 | |
| 173 | &sdmmc2 { |
| 174 | pinctrl-names = "default"; |
| 175 | pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a>; |
| 176 | non-removable; |
| 177 | no-sd; |
| 178 | no-sdio; |
| 179 | st,neg-edge; |
| 180 | bus-width = <8>; |
| 181 | status = "okay"; |
| 182 | }; |
| 183 | |
Alexandre Torgue | 00510af | 2021-11-18 12:26:49 +0100 | [diff] [blame] | 184 | &usart2 { |
| 185 | pinctrl-names = "default"; |
| 186 | pinctrl-0 = <&usart2_pins_a>; |
| 187 | status = "okay"; |
| 188 | }; |