blob: b38e816f888290a036a906e3d398a6803aee59b1 [file] [log] [blame]
Patrick Delaunay6cccc8d2022-07-05 16:55:57 +02001// SPDX-License-Identifier: GPL-2.0-or-later OR BSD-3-Clause
2/*
3 * Copyright : STMicroelectronics 2022
4 */
5
Patrice Chotard3dfb4ed2024-04-09 17:02:12 +02006#include <dt-bindings/input/linux-event-codes.h>
Patrick Delaunay6cccc8d2022-07-05 16:55:57 +02007#include "stm32mp15-scmi-u-boot.dtsi"
Patrick Delaunay6cccc8d2022-07-05 16:55:57 +02008
9/ {
10 aliases {
11 i2c3 = &i2c4;
12 };
13
14 config {
15 u-boot,boot-led = "heartbeat";
Patrice Chotardaaa486c2024-04-09 17:02:14 +020016 u-boot,error-led = "led-red";
Patrick Delaunay6cccc8d2022-07-05 16:55:57 +020017 u-boot,mmc-env-partition = "u-boot-env";
Patrice Chotard3dfb4ed2024-04-09 17:02:12 +020018 };
19
20 gpio-keys {
21 compatible = "gpio-keys";
22
23 button-user-1 {
24 label = "User-1";
25 linux,code = <BTN_1>;
26 gpios = <&gpioa 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
27 };
28
29 button-user-2 {
30 label = "User-2";
31 linux,code = <BTN_2>;
32 gpios = <&gpioa 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
33 };
Patrick Delaunay6cccc8d2022-07-05 16:55:57 +020034 };
35
36 led {
Patrice Chotardaaa486c2024-04-09 17:02:14 +020037 compatible = "gpio-leds";
38
39 led-red {
Patrick Delaunay6cccc8d2022-07-05 16:55:57 +020040 gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;
Patrick Delaunay6cccc8d2022-07-05 16:55:57 +020041 };
42 };
43};
44
45&uart4 {
Simon Glass8c103c32023-02-13 08:56:33 -070046 bootph-all;
Patrick Delaunay6cccc8d2022-07-05 16:55:57 +020047};
48
49&uart4_pins_a {
Simon Glass8c103c32023-02-13 08:56:33 -070050 bootph-all;
Patrick Delaunay6cccc8d2022-07-05 16:55:57 +020051 pins1 {
Simon Glass8c103c32023-02-13 08:56:33 -070052 bootph-all;
Patrick Delaunay6cccc8d2022-07-05 16:55:57 +020053 };
54 pins2 {
Simon Glass8c103c32023-02-13 08:56:33 -070055 bootph-all;
Patrick Delaunay6cccc8d2022-07-05 16:55:57 +020056 /* pull-up on rx to avoid floating level */
57 bias-pull-up;
58 };
59};