Patrick Delaunay | e063f89 | 2022-05-20 18:24:52 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later OR BSD-3-Clause |
2 | /* | ||||
3 | * Copyright (C) 2022, STMicroelectronics - All Rights Reserved | ||||
4 | */ | ||||
5 | |||||
6 | #include "stm32mp13-u-boot.dtsi" | ||||
7 | |||||
8 | / { | ||||
9 | aliases { | ||||
10 | mmc0 = &sdmmc1; | ||||
11 | }; | ||||
12 | |||||
13 | config { | ||||
Patrick Delaunay | c7e6251 | 2022-06-30 10:20:18 +0200 | [diff] [blame] | 14 | u-boot,boot-led = "led-blue"; |
15 | u-boot,error-led = "led-red"; | ||||
Patrick Delaunay | e063f89 | 2022-05-20 18:24:52 +0200 | [diff] [blame] | 16 | u-boot,mmc-env-partition = "u-boot-env"; |
17 | }; | ||||
Patrick Delaunay | c7e6251 | 2022-06-30 10:20:18 +0200 | [diff] [blame] | 18 | |
Patrice Chotard | 52a9df3 | 2024-04-09 17:01:57 +0200 | [diff] [blame] | 19 | gpio-keys { |
20 | button-user-1 { | ||||
21 | label = "User-1"; | ||||
22 | linux,code = <BTN_2>; | ||||
23 | gpios = <&gpioa 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||||
24 | }; | ||||
25 | |||||
26 | button-user { | ||||
27 | /* update label to match the label requested in board_key_check() */ | ||||
28 | label = "User-2"; | ||||
29 | }; | ||||
30 | }; | ||||
31 | |||||
Patrick Delaunay | c7e6251 | 2022-06-30 10:20:18 +0200 | [diff] [blame] | 32 | leds { |
Patrice Chotard | 04b059c | 2024-04-09 17:01:58 +0200 | [diff] [blame] | 33 | led-blue { |
34 | /delete-property/default-state; | ||||
35 | }; | ||||
36 | |||||
Patrick Delaunay | c7e6251 | 2022-06-30 10:20:18 +0200 | [diff] [blame] | 37 | led-red { |
Patrick Delaunay | c7e6251 | 2022-06-30 10:20:18 +0200 | [diff] [blame] | 38 | gpios = <&gpioa 13 GPIO_ACTIVE_LOW>; |
Patrick Delaunay | c7e6251 | 2022-06-30 10:20:18 +0200 | [diff] [blame] | 39 | }; |
40 | }; | ||||
Patrick Delaunay | e063f89 | 2022-05-20 18:24:52 +0200 | [diff] [blame] | 41 | }; |
42 | |||||
43 | &uart4 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 44 | bootph-all; |
Patrick Delaunay | e063f89 | 2022-05-20 18:24:52 +0200 | [diff] [blame] | 45 | }; |
46 | |||||
47 | &uart4_pins_a { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 48 | bootph-all; |
Patrick Delaunay | e063f89 | 2022-05-20 18:24:52 +0200 | [diff] [blame] | 49 | pins1 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 50 | bootph-all; |
Patrick Delaunay | e063f89 | 2022-05-20 18:24:52 +0200 | [diff] [blame] | 51 | }; |
52 | pins2 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 53 | bootph-all; |
Patrick Delaunay | e063f89 | 2022-05-20 18:24:52 +0200 | [diff] [blame] | 54 | }; |
55 | }; | ||||
Fabrice Gasnier | d0e5c27 | 2023-09-26 17:09:19 +0200 | [diff] [blame] | 56 | |
57 | &usbotg_hs { | ||||
58 | u-boot,force-b-session-valid; | ||||
59 | }; |