1/*
2 * Copyright (c) 2020 Alexander Kozhinov <ak.alexander.kozhinov@gmail.com>
3 * Copyright (c) 2024 Tomas Jurena <jurena@utb.cz>
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
8#include <st/h7/stm32h745xihx-pinctrl.dtsi>
9#include "arduino_r3_connector.dtsi"
10#include <zephyr/dt-bindings/input/input-event-codes.h>
11
12/ {
13	leds: leds {
14		compatible = "gpio-leds";
15		green_led: led_1 {
16			gpios = <&gpioj 2 GPIO_ACTIVE_HIGH>;
17			label = "User LD7";
18		};
19		red_led: led_2 {
20			gpios = <&gpioi 13 GPIO_ACTIVE_HIGH>;
21			label = "User LD6";
22		};
23		green_led_2: led_3 {
24			gpios = <&gpiod 3 GPIO_ACTIVE_HIGH>;
25			label = "User LD8";
26		};
27	};
28
29	gpio_keys {
30		compatible = "gpio-keys";
31		user_button: button_0 {
32			gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
33			label = "User SB1";
34			zephyr,code = <INPUT_KEY_0>;
35		};
36	};
37};
38
39&rcc {
40	d1cpre = <1>;
41	hpre = <2>;
42	d1ppre = <2>;
43	d2ppre1 = <2>;
44	d2ppre2 = <2>;
45	d3ppre = <2>;
46};
47
48&mailbox {
49	status = "okay";
50};
51