| 1 |
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) |
| 2 |
/* |
| 3 |
* Copyright (C) STMicroelectronics 2025 - All Rights Reserved |
| 4 |
* Author: Alexandre Torgue <[email protected]> for STMicroelectronics. |
| 5 |
*/ |
| 6 |
|
| 7 |
/dts-v1/; |
| 8 |
|
| 9 |
#include <dt-bindings/gpio/gpio.h> |
| 10 |
#include <dt-bindings/input/input.h> |
| 11 |
#include <dt-bindings/leds/common.h> |
| 12 |
#include "stm32mp257.dtsi" |
| 13 |
#include "stm32mp25xf.dtsi" |
| 14 |
#include "stm32mp25-pinctrl.dtsi" |
| 15 |
#include "stm32mp25xxak-pinctrl.dtsi" |
| 16 |
|
| 17 |
/ { |
| 18 |
model = "STMicroelectronics STM32MP257F-DK Discovery Board"; |
| 19 |
compatible = "st,stm32mp257f-dk", "st,stm32mp257"; |
| 20 |
|
| 21 |
aliases { |
| 22 |
ethernet0 = ðernet1; |
| 23 |
serial0 = &usart2; |
| 24 |
}; |
| 25 |
|
| 26 |
chosen { |
| 27 |
stdout-path = "serial0:115200n8"; |
| 28 |
}; |
| 29 |
|
| 30 |
gpio-keys { |
| 31 |
compatible = "gpio-keys"; |
| 32 |
|
| 33 |
button-user-1 { |
| 34 |
label = "User-1"; |
| 35 |
linux,code = <BTN_1>; |
| 36 |
gpios = <&gpioc 5 GPIO_ACTIVE_HIGH>; |
| 37 |
}; |
| 38 |
|
| 39 |
button-user-2 { |
| 40 |
label = "User-2"; |
| 41 |
linux,code = <BTN_2>; |
| 42 |
gpios = <&gpioc 11 GPIO_ACTIVE_HIGH>; |
| 43 |
}; |
| 44 |
}; |
| 45 |
|
| 46 |
gpio-leds { |
| 47 |
compatible = "gpio-leds"; |
| 48 |
|
| 49 |
led_blue: led-blue { |
| 50 |
function = LED_FUNCTION_HEARTBEAT; |
| 51 |
color = <LED_COLOR_ID_BLUE>; |
| 52 |
gpios = <&gpioh 7 GPIO_ACTIVE_HIGH>; |
| 53 |
linux,default-trigger = "heartbeat"; |
| 54 |
default-state = "off"; |
| 55 |
}; |
| 56 |
|
| 57 |
led-green { |
| 58 |
color = <LED_COLOR_ID_GREEN>; |
| 59 |
gpios = <&gpioh 5 GPIO_ACTIVE_HIGH>; |
| 60 |
}; |
| 61 |
|
| 62 |
led-orange { |
| 63 |
color = <LED_COLOR_ID_ORANGE>; |
| 64 |
gpios = <&gpioh 6 GPIO_ACTIVE_HIGH>; |
| 65 |
}; |
| 66 |
}; |
| 67 |
|
| 68 |
lpddr_channel: sdram-channel-0 { |
| 69 |
#address-cells = <1>; |
| 70 |
#size-cells = <0>; |
| 71 |
compatible = "jedec,lpddr4-channel"; |
| 72 |
io-width = <32>; |
| 73 |
}; |
| 74 |
|
| 75 |
memory@80000000 { |
| 76 |
device_type = "memory"; |
| 77 |
reg = <0x0 0x80000000 0x1 0x0>; |
| 78 |
}; |
| 79 |
|
| 80 |
options { |
| 81 |
u-boot { |
| 82 |
compatible = "u-boot,config"; |
| 83 |
boot-led = <&led_blue>; |
| 84 |
}; |
| 85 |
}; |
| 86 |
|
| 87 |
reserved-memory { |
| 88 |
#address-cells = <2>; |
| 89 |
#size-cells = <2>; |
| 90 |
ranges; |
| 91 |
|
| 92 |
fw@80000000 { |
| 93 |
compatible = "shared-dma-pool"; |
| 94 |
reg = <0x0 0x80000000 0x0 0x4000000>; |
| 95 |
no-map; |
| 96 |
}; |
| 97 |
}; |
| 98 |
}; |
| 99 |
|
| 100 |
&arm_wdt { |
| 101 |
timeout-sec = <32>; |
| 102 |
status = "okay"; |
| 103 |
}; |
| 104 |
|
| 105 |
ðernet1 { |
| 106 |
pinctrl-0 = <ð1_rgmii_pins_b>; |
| 107 |
pinctrl-1 = <ð1_rgmii_sleep_pins_b>; |
| 108 |
pinctrl-names = "default", "sleep"; |
| 109 |
phy-handle = <&phy1_eth1>; |
| 110 |
phy-mode = "rgmii-id"; |
| 111 |
status = "okay"; |
| 112 |
|
| 113 |
mdio { |
| 114 |
#address-cells = <1>; |
| 115 |
#size-cells = <0>; |
| 116 |
compatible = "snps,dwmac-mdio"; |
| 117 |
phy1_eth1: ethernet-phy@1 { |
| 118 |
compatible = "ethernet-phy-id001c.c916"; |
| 119 |
reg = <1>; |
| 120 |
reset-gpios = <&gpioa 2 GPIO_ACTIVE_LOW>; |
| 121 |
reset-assert-us = <10000>; |
| 122 |
reset-deassert-us = <80000>; |
| 123 |
}; |
| 124 |
}; |
| 125 |
}; |
| 126 |
|
| 127 |
&scmi_regu { |
| 128 |
scmi_vddio1: regulator@0 { |
| 129 |
regulator-min-microvolt = <1800000>; |
| 130 |
regulator-max-microvolt = <3300000>; |
| 131 |
}; |
| 132 |
scmi_vdd_sdcard: regulator@23 { |
| 133 |
reg = <VOLTD_SCMI_STPMIC2_LDO7>; |
| 134 |
regulator-name = "vdd_sdcard"; |
| 135 |
}; |
| 136 |
}; |
| 137 |
|
| 138 |
&sdmmc1 { |
| 139 |
pinctrl-names = "default", "opendrain", "sleep"; |
| 140 |
pinctrl-0 = <&sdmmc1_b4_pins_a>; |
| 141 |
pinctrl-1 = <&sdmmc1_b4_od_pins_a>; |
| 142 |
pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>; |
| 143 |
cd-gpios = <&gpiod 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; |
| 144 |
disable-wp; |
| 145 |
st,neg-edge; |
| 146 |
bus-width = <4>; |
| 147 |
vmmc-supply = <&scmi_vdd_sdcard>; |
| 148 |
vqmmc-supply = <&scmi_vddio1>; |
| 149 |
status = "okay"; |
| 150 |
}; |
| 151 |
|
| 152 |
&usart2 { |
| 153 |
pinctrl-names = "default", "idle", "sleep"; |
| 154 |
pinctrl-0 = <&usart2_pins_a>; |
| 155 |
pinctrl-1 = <&usart2_idle_pins_a>; |
| 156 |
pinctrl-2 = <&usart2_sleep_pins_a>; |
| 157 |
/delete-property/dmas; |
| 158 |
/delete-property/dma-names; |
| 159 |
status = "okay"; |
| 160 |
}; |