Patrick Delaunay | 44abcf6 | 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 | 6d64767 | 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 | 44abcf6 | 2022-05-20 18:24:52 +0200 | [diff] [blame] | 16 | u-boot,mmc-env-partition = "u-boot-env"; |
| 17 | }; |
Patrick Delaunay | 6d64767 | 2022-06-30 10:20:18 +0200 | [diff] [blame] | 18 | |
Patrice Chotard | 485798d | 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 | 6d64767 | 2022-06-30 10:20:18 +0200 | [diff] [blame] | 32 | leds { |
Patrice Chotard | 1e26c20 | 2024-04-09 17:01:58 +0200 | [diff] [blame^] | 33 | led-blue { |
| 34 | /delete-property/default-state; |
| 35 | }; |
| 36 | |
Patrick Delaunay | 6d64767 | 2022-06-30 10:20:18 +0200 | [diff] [blame] | 37 | led-red { |
| 38 | color = <LED_COLOR_ID_RED>; |
| 39 | gpios = <&gpioa 13 GPIO_ACTIVE_LOW>; |
Patrick Delaunay | 6d64767 | 2022-06-30 10:20:18 +0200 | [diff] [blame] | 40 | }; |
| 41 | }; |
Patrick Delaunay | 44abcf6 | 2022-05-20 18:24:52 +0200 | [diff] [blame] | 42 | }; |
| 43 | |
| 44 | &uart4 { |
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 45 | bootph-all; |
Patrick Delaunay | 44abcf6 | 2022-05-20 18:24:52 +0200 | [diff] [blame] | 46 | }; |
| 47 | |
| 48 | &uart4_pins_a { |
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 49 | bootph-all; |
Patrick Delaunay | 44abcf6 | 2022-05-20 18:24:52 +0200 | [diff] [blame] | 50 | pins1 { |
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 51 | bootph-all; |
Patrick Delaunay | 44abcf6 | 2022-05-20 18:24:52 +0200 | [diff] [blame] | 52 | }; |
| 53 | pins2 { |
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 54 | bootph-all; |
Patrick Delaunay | 44abcf6 | 2022-05-20 18:24:52 +0200 | [diff] [blame] | 55 | }; |
| 56 | }; |
Fabrice Gasnier | 46b4d6f | 2023-09-26 17:09:19 +0200 | [diff] [blame] | 57 | |
| 58 | &usbotg_hs { |
| 59 | u-boot,force-b-session-valid; |
| 60 | }; |