blob: 7c0d1bab11acd4a90ae0f10b449e94556e54f2cc [file] [log] [blame]
Patrick Delaunayddba40a2022-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 Chotardb270def2024-04-09 17:02:12 +02006#include <dt-bindings/input/linux-event-codes.h>
Patrick Delaunayddba40a2022-07-05 16:55:57 +02007#include "stm32mp15-scmi-u-boot.dtsi"
Patrick Delaunayddba40a2022-07-05 16:55:57 +02008
9/ {
10 aliases {
11 i2c3 = &i2c4;
12 };
13
14 config {
Patrice Chotard25cdf9c2024-04-09 17:02:15 +020015 u-boot,boot-led = "led-blue";
Patrice Chotard788d5302024-04-09 17:02:14 +020016 u-boot,error-led = "led-red";
Patrick Delaunayddba40a2022-07-05 16:55:57 +020017 u-boot,mmc-env-partition = "u-boot-env";
Patrice Chotardb270def2024-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 Delaunayddba40a2022-07-05 16:55:57 +020034 };
35
36 led {
Patrice Chotard788d5302024-04-09 17:02:14 +020037 compatible = "gpio-leds";
38
Patrice Chotard25cdf9c2024-04-09 17:02:15 +020039 led-blue {
40 gpios = <&gpiod 9 GPIO_ACTIVE_HIGH>;
41 };
42
Patrice Chotard788d5302024-04-09 17:02:14 +020043 led-red {
Patrick Delaunayddba40a2022-07-05 16:55:57 +020044 gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;
Patrick Delaunayddba40a2022-07-05 16:55:57 +020045 };
46 };
47};
48
49&uart4 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070050 bootph-all;
Patrick Delaunayddba40a2022-07-05 16:55:57 +020051};
52
53&uart4_pins_a {
Simon Glassd3a98cb2023-02-13 08:56:33 -070054 bootph-all;
Patrick Delaunayddba40a2022-07-05 16:55:57 +020055 pins1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070056 bootph-all;
Patrick Delaunayddba40a2022-07-05 16:55:57 +020057 };
58 pins2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070059 bootph-all;
Patrick Delaunayddba40a2022-07-05 16:55:57 +020060 /* pull-up on rx to avoid floating level */
61 bias-pull-up;
62 };
63};