blob: e6b8ffd332c7e2dba8fb53e98bac1994cc61e896 [file] [log] [blame]
Patrick Delaunaya82abb12022-05-20 18:24:39 +02001// 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
Patrick Delaunay12d5a062022-06-30 10:20:17 +02009#include <dt-bindings/gpio/gpio.h>
10#include <dt-bindings/input/input.h>
11#include <dt-bindings/leds/common.h>
Patrick Delaunaya82abb12022-05-20 18:24:39 +020012#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
Patrick Delaunay0b69ce62022-07-06 18:20:24 +020029 reserved-memory {
30 #address-cells = <1>;
31 #size-cells = <1>;
32 ranges;
33
Patrick Delaunay152498d2022-09-07 13:42:23 +020034 optee@dd000000 {
35 reg = <0xdd000000 0x3000000>;
Patrick Delaunay0b69ce62022-07-06 18:20:24 +020036 no-map;
37 };
38 };
39
Patrick Delaunay12d5a062022-06-30 10:20:17 +020040 gpio-keys {
41 compatible = "gpio-keys";
42
43 user-pa13 {
44 label = "User-PA13";
45 linux,code = <BTN_1>;
46 gpios = <&gpioa 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
47 };
48 };
49
50 leds {
51 compatible = "gpio-leds";
52
53 led-blue {
54 function = LED_FUNCTION_HEARTBEAT;
55 color = <LED_COLOR_ID_BLUE>;
56 gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
57 linux,default-trigger = "heartbeat";
58 default-state = "off";
59 };
60 };
61
Patrick Delaunaya82abb12022-05-20 18:24:39 +020062 vdd_sd: vdd-sd {
63 compatible = "regulator-fixed";
64 regulator-name = "vdd_sd";
65 regulator-min-microvolt = <2900000>;
66 regulator-max-microvolt = <2900000>;
67 regulator-always-on;
68 };
69};
70
71&iwdg2 {
72 timeout-sec = <32>;
73 status = "okay";
74};
75
Patrick Delaunay12d5a062022-06-30 10:20:17 +020076&rtc {
77 status = "okay";
78};
79
Patrick Delaunaya82abb12022-05-20 18:24:39 +020080&sdmmc1 {
81 pinctrl-names = "default", "opendrain", "sleep";
82 pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_clk_pins_a>;
83 pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_clk_pins_a>;
84 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
85 broken-cd;
86 disable-wp;
87 st,neg-edge;
88 bus-width = <4>;
89 vmmc-supply = <&vdd_sd>;
90 status = "okay";
91};
92
93&uart4 {
94 pinctrl-names = "default";
95 pinctrl-0 = <&uart4_pins_a>;
96 status = "okay";
97};