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	reserved-memory {
30		#address-cells = <1>;
31		#size-cells = <1>;
32		ranges;
33
34		optee@dd000000 {
35			reg = <0xdd000000 0x3000000>;
36			no-map;
37		};
38	};
39
40	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
62	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&i2c1 {
72	pinctrl-names = "default", "sleep";
73	pinctrl-0 = <&i2c1_pins_a>;
74	pinctrl-1 = <&i2c1_sleep_pins_a>;
75	i2c-scl-rising-time-ns = <96>;
76	i2c-scl-falling-time-ns = <3>;
77	clock-frequency = <1000000>;
78	status = "okay";
79	/* spare dmas for other usage */
80	/delete-property/dmas;
81	/delete-property/dma-names;
82};
83
84&i2c5 {
85	pinctrl-names = "default", "sleep";
86	pinctrl-0 = <&i2c5_pins_a>;
87	pinctrl-1 = <&i2c5_sleep_pins_a>;
88	i2c-scl-rising-time-ns = <170>;
89	i2c-scl-falling-time-ns = <5>;
90	clock-frequency = <400000>;
91	status = "okay";
92	/* spare dmas for other usage */
93	/delete-property/dmas;
94	/delete-property/dma-names;
95};
96
97&iwdg2 {
98	timeout-sec = <32>;
99	status = "okay";
100};
101
102&rtc {
103	status = "okay";
104};
105
106&sdmmc1 {
107	pinctrl-names = "default", "opendrain", "sleep";
108	pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_clk_pins_a>;
109	pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_clk_pins_a>;
110	pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
111	broken-cd;
112	disable-wp;
113	st,neg-edge;
114	bus-width = <4>;
115	vmmc-supply = <&vdd_sd>;
116	status = "okay";
117};
118
119&spi5 {
120	pinctrl-names = "default", "sleep";
121	pinctrl-0 = <&spi5_pins_a>;
122	pinctrl-1 = <&spi5_sleep_pins_a>;
123	status = "disabled";
124};
125
126&uart4 {
127	pinctrl-names = "default";
128	pinctrl-0 = <&uart4_pins_a>;
129	status = "okay";
130};
131