1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 2/* 3 * Copyright (C) STMicroelectronics 2025 - All Rights Reserved 4 * Author: Amelie Delaunay <amelie.delaunay@foss.st.com> 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 "stm32mp235.dtsi" 13#include "stm32mp23xf.dtsi" 14#include "stm32mp25-pinctrl.dtsi" 15#include "stm32mp25xxak-pinctrl.dtsi" 16 17/ { 18 model = "STMicroelectronics STM32MP235F-DK Discovery Board"; 19 compatible = "st,stm32mp235f-dk", "st,stm32mp235"; 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 { 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 58 memory@80000000 { 59 device_type = "memory"; 60 reg = <0x0 0x80000000 0x0 0x80000000>; 61 }; 62 63 reserved-memory { 64 #address-cells = <2>; 65 #size-cells = <2>; 66 ranges; 67 68 fw@80000000 { 69 compatible = "shared-dma-pool"; 70 reg = <0x0 0x80000000 0x0 0x4000000>; 71 no-map; 72 }; 73 }; 74}; 75 76&arm_wdt { 77 timeout-sec = <32>; 78 status = "okay"; 79}; 80 81ðernet1 { 82 pinctrl-0 = <ð1_rgmii_pins_b>; 83 pinctrl-1 = <ð1_rgmii_sleep_pins_b>; 84 pinctrl-names = "default", "sleep"; 85 phy-handle = <&phy1_eth1>; 86 phy-mode = "rgmii-id"; 87 status = "okay"; 88 89 mdio { 90 #address-cells = <1>; 91 #size-cells = <0>; 92 compatible = "snps,dwmac-mdio"; 93 phy1_eth1: ethernet-phy@1 { 94 compatible = "ethernet-phy-id001c.c916"; 95 reg = <1>; 96 reset-gpios = <&gpioa 2 GPIO_ACTIVE_LOW>; 97 reset-assert-us = <10000>; 98 reset-deassert-us = <80000>; 99 }; 100 }; 101}; 102 103&scmi_regu { 104 scmi_vddio1: regulator@0 { 105 regulator-min-microvolt = <1800000>; 106 regulator-max-microvolt = <3300000>; 107 }; 108 scmi_vdd_sdcard: regulator@23 { 109 reg = <VOLTD_SCMI_STPMIC2_LDO7>; 110 regulator-name = "vdd_sdcard"; 111 }; 112}; 113 114&sdmmc1 { 115 pinctrl-names = "default", "opendrain", "sleep"; 116 pinctrl-0 = <&sdmmc1_b4_pins_a>; 117 pinctrl-1 = <&sdmmc1_b4_od_pins_a>; 118 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>; 119 cd-gpios = <&gpiod 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; 120 disable-wp; 121 st,neg-edge; 122 bus-width = <4>; 123 vmmc-supply = <&scmi_vdd_sdcard>; 124 vqmmc-supply = <&scmi_vddio1>; 125 status = "okay"; 126}; 127 128&usart2 { 129 pinctrl-names = "default", "idle", "sleep"; 130 pinctrl-0 = <&usart2_pins_a>; 131 pinctrl-1 = <&usart2_idle_pins_a>; 132 pinctrl-2 = <&usart2_sleep_pins_a>; 133 /delete-property/dmas; 134 /delete-property/dma-names; 135 status = "okay"; 136}; 137