Debian Codegraph @

scripts/dtc/include-prefixes/arm64/st/stm32mp235f-dk.dts

raw
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 <[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 "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 = &ethernet1;
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 memory@80000000 {
69 device_type = "memory";
70 reg = <0x0 0x80000000 0x0 0x80000000>;
71 };
72
73 options {
74 u-boot {
75 compatible = "u-boot,config";
76 boot-led = <&led_blue>;
77 };
78 };
79
80 reserved-memory {
81 #address-cells = <2>;
82 #size-cells = <2>;
83 ranges;
84
85 fw@80000000 {
86 compatible = "shared-dma-pool";
87 reg = <0x0 0x80000000 0x0 0x4000000>;
88 no-map;
89 };
90 };
91 };
92
93 &arm_wdt {
94 timeout-sec = <32>;
95 status = "okay";
96 };
97
98 &ethernet1 {
99 pinctrl-0 = <&eth1_rgmii_pins_b>;
100 pinctrl-1 = <&eth1_rgmii_sleep_pins_b>;
101 pinctrl-names = "default", "sleep";
102 phy-handle = <&phy1_eth1>;
103 phy-mode = "rgmii-id";
104 status = "okay";
105
106 mdio {
107 #address-cells = <1>;
108 #size-cells = <0>;
109 compatible = "snps,dwmac-mdio";
110 phy1_eth1: ethernet-phy@1 {
111 compatible = "ethernet-phy-id001c.c916";
112 reg = <1>;
113 reset-gpios = <&gpioa 2 GPIO_ACTIVE_LOW>;
114 reset-assert-us = <10000>;
115 reset-deassert-us = <80000>;
116 };
117 };
118 };
119
120 &scmi_regu {
121 scmi_vddio1: regulator@0 {
122 regulator-min-microvolt = <1800000>;
123 regulator-max-microvolt = <3300000>;
124 };
125 scmi_vdd_sdcard: regulator@23 {
126 reg = <VOLTD_SCMI_STPMIC2_LDO7>;
127 regulator-name = "vdd_sdcard";
128 };
129 };
130
131 &sdmmc1 {
132 pinctrl-names = "default", "opendrain", "sleep";
133 pinctrl-0 = <&sdmmc1_b4_pins_a>;
134 pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
135 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
136 cd-gpios = <&gpiod 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
137 disable-wp;
138 st,neg-edge;
139 bus-width = <4>;
140 vmmc-supply = <&scmi_vdd_sdcard>;
141 vqmmc-supply = <&scmi_vddio1>;
142 status = "okay";
143 };
144
145 &usart2 {
146 pinctrl-names = "default", "idle", "sleep";
147 pinctrl-0 = <&usart2_pins_a>;
148 pinctrl-1 = <&usart2_idle_pins_a>;
149 pinctrl-2 = <&usart2_sleep_pins_a>;
150 /delete-property/dmas;
151 /delete-property/dma-names;
152 status = "okay";
153 };