Debian Codegraph @

arch/arm/boot/dts/st/stm32h747i-disco.dts

raw
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Copyright (C) 2025 Amarula Solutions, Dario Binacchi <[email protected]>
4 */
5
6 /dts-v1/;
7 #include "stm32h743.dtsi"
8 #include "stm32h7-pinctrl.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
12
13 / {
14 model = "STMicroelectronics STM32H747i-Discovery board";
15 compatible = "st,stm32h747i-disco", "st,stm32h747";
16
17 chosen {
18 bootargs = "root=/dev/ram";
19 stdout-path = "serial0:115200n8";
20 };
21
22 memory@d0000000 {
23 device_type = "memory";
24 reg = <0xd0000000 0x2000000>;
25 };
26
27 aliases {
28 serial0 = &usart1;
29 serial1 = &uart8;
30 };
31
32 v3v3: regulator-v3v3 {
33 compatible = "regulator-fixed";
34 regulator-name = "v3v3";
35 regulator-min-microvolt = <3300000>;
36 regulator-max-microvolt = <3300000>;
37 regulator-always-on;
38 };
39
40 leds {
41 compatible = "gpio-leds";
42 led_green: led-green {
43 function = LED_FUNCTION_HEARTBEAT;
44 color = <LED_COLOR_ID_GREEN>;
45 gpios = <&gpioi 12 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "heartbeat";
47 };
48 led-orange {
49 color = <LED_COLOR_ID_ORANGE>;
50 gpios = <&gpioi 13 GPIO_ACTIVE_LOW>;
51 };
52 led-red {
53 color = <LED_COLOR_ID_RED>;
54 gpios = <&gpioi 14 GPIO_ACTIVE_LOW>;
55 };
56 led-blue {
57 color = <LED_COLOR_ID_BLUE>;
58 gpios = <&gpioi 15 GPIO_ACTIVE_LOW>;
59 };
60 };
61
62 gpio-keys {
63 compatible = "gpio-keys";
64 autorepeat;
65 button-0 {
66 label = "User";
67 linux,code = <KEY_WAKEUP>;
68 gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
69 };
70 button-1 {
71 label = "JoySel";
72 linux,code = <KEY_ENTER>;
73 gpios = <&gpiok 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
74 };
75 button-2 {
76 label = "JoyDown";
77 linux,code = <KEY_DOWN>;
78 gpios = <&gpiok 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
79 };
80 button-3 {
81 label = "JoyUp";
82 linux,code = <KEY_UP>;
83 gpios = <&gpiok 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
84 };
85 button-4 {
86 label = "JoyLeft";
87 linux,code = <KEY_LEFT>;
88 gpios = <&gpiok 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
89 };
90 button-5 {
91 label = "JoyRight";
92 linux,code = <KEY_RIGHT>;
93 gpios = <&gpiok 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
94 };
95 };
96
97 options {
98 u-boot {
99 compatible = "u-boot,config";
100 boot-led = <&led_green>;
101 };
102 };
103 };
104
105 &clk_hse {
106 clock-frequency = <25000000>;
107 };
108
109 &mac {
110 status = "disabled";
111 pinctrl-0 = <&ethernet_rmii>;
112 pinctrl-names = "default";
113 phy-mode = "rmii";
114 phy-handle = <&phy0>;
115
116 mdio0 {
117 #address-cells = <1>;
118 #size-cells = <0>;
119 compatible = "snps,dwmac-mdio";
120 phy0: ethernet-phy@0 {
121 reg = <0>;
122 };
123 };
124 };
125
126 &sdmmc1 {
127 pinctrl-names = "default", "opendrain", "sleep";
128 pinctrl-0 = <&sdmmc1_b4_pins_a>;
129 pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
130 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
131 cd-gpios = <&gpioi 8 GPIO_ACTIVE_LOW>;
132 broken-cd;
133 st,neg-edge;
134 bus-width = <4>;
135 vmmc-supply = <&v3v3>;
136 status = "okay";
137 };
138
139 &usart1 {
140 pinctrl-0 = <&usart1_pins_b>;
141 pinctrl-names = "default";
142 status = "okay";
143 };
144
145 &uart8 {
146 pinctrl-0 = <&uart8_pins_a>;
147 pinctrl-names = "default";
148 status = "okay";
149 };