GNU Linux-libre 5.19-rc6-gnu
[releases.git] / arch / arm / boot / dts / stm32mp135f-dk.dts
1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2 /*
3  * Copyright (C) STMicroelectronics 2021 - All Rights Reserved
4  * Author: Alexandre Torgue <alexandre.torgue@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 "stm32mp135.dtsi"
13 #include "stm32mp13xf.dtsi"
14 #include "stm32mp13-pinctrl.dtsi"
15
16 / {
17         model = "STMicroelectronics STM32MP135F-DK Discovery Board";
18         compatible = "st,stm32mp135f-dk", "st,stm32mp135";
19
20         aliases {
21                 serial0 = &uart4;
22         };
23
24         memory@c0000000 {
25                 device_type = "memory";
26                 reg = <0xc0000000 0x20000000>;
27         };
28
29         gpio-keys {
30                 compatible = "gpio-keys";
31
32                 user-pa13 {
33                         label = "User-PA13";
34                         linux,code = <BTN_1>;
35                         gpios = <&gpioa 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
36                 };
37         };
38
39         leds {
40                 compatible = "gpio-leds";
41
42                 led-blue {
43                         function = LED_FUNCTION_HEARTBEAT;
44                         color = <LED_COLOR_ID_BLUE>;
45                         gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
46                         linux,default-trigger = "heartbeat";
47                         default-state = "off";
48                 };
49         };
50
51         vdd_sd: vdd-sd {
52                 compatible = "regulator-fixed";
53                 regulator-name = "vdd_sd";
54                 regulator-min-microvolt = <2900000>;
55                 regulator-max-microvolt = <2900000>;
56                 regulator-always-on;
57         };
58 };
59
60 &iwdg2 {
61         timeout-sec = <32>;
62         status = "okay";
63 };
64
65 &rtc {
66         status = "okay";
67 };
68
69 &sdmmc1 {
70         pinctrl-names = "default", "opendrain", "sleep";
71         pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_clk_pins_a>;
72         pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_clk_pins_a>;
73         pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
74         broken-cd;
75         disable-wp;
76         st,neg-edge;
77         bus-width = <4>;
78         vmmc-supply = <&vdd_sd>;
79         status = "okay";
80 };
81
82 &uart4 {
83         pinctrl-names = "default";
84         pinctrl-0 = <&uart4_pins_a>;
85         status = "okay";
86 };