blob: a5158fec7ef855d801844ff4f3133d63fb11a654 [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 Chotard9b68daa2024-04-09 17:02:00 +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 usb0 = &usbotg_hs;
13 };
14
15 config {
Patrice Chotardc26c6bb2024-04-09 17:02:03 +020016 u-boot,boot-led = "led-blue";
Patrice Chotardd1dba6a2024-04-09 17:02:02 +020017 u-boot,error-led = "led-red";
Patrick Delaunayddba40a2022-07-05 16:55:57 +020018 u-boot,mmc-env-partition = "u-boot-env";
19 st,adc_usb_pd = <&adc1 18>, <&adc1 19>;
Patrice Chotard9b68daa2024-04-09 17:02:00 +020020 };
21
22 gpio-keys {
23 compatible = "gpio-keys";
24
25 button-user-1 {
26 label = "User-1";
27 linux,code = <BTN_1>;
28 gpios = <&gpioa 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
29 };
30
31 button-user-2 {
32 label = "User-2";
33 linux,code = <BTN_2>;
34 gpios = <&gpioa 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
35 };
Patrick Delaunayddba40a2022-07-05 16:55:57 +020036 };
37
38 led {
Patrice Chotardc26c6bb2024-04-09 17:02:03 +020039 led-blue {
40 /delete-property/label;
41 };
42
Patrice Chotardd1dba6a2024-04-09 17:02:02 +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&adc {
50 status = "okay";
51};
52
53&uart4 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070054 bootph-all;
Patrick Delaunayddba40a2022-07-05 16:55:57 +020055};
56
57&uart4_pins_a {
Simon Glassd3a98cb2023-02-13 08:56:33 -070058 bootph-all;
Patrick Delaunayddba40a2022-07-05 16:55:57 +020059 pins1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070060 bootph-all;
Patrick Delaunayddba40a2022-07-05 16:55:57 +020061 };
62 pins2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070063 bootph-all;
Patrick Delaunayddba40a2022-07-05 16:55:57 +020064 /* pull-up on rx to avoid floating level */
65 bias-pull-up;
66 };
67};
68
69&usbotg_hs {
70 u-boot,force-b-session-valid;
71};