Patrick Delaunay | ddba40a | 2022-07-05 16:55:57 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later OR BSD-3-Clause |
| 2 | /* |
| 3 | * Copyright : STMicroelectronics 2022 |
| 4 | */ |
| 5 | |
Patrice Chotard | b270def | 2024-04-09 17:02:12 +0200 | [diff] [blame] | 6 | #include <dt-bindings/input/linux-event-codes.h> |
Patrick Delaunay | ddba40a | 2022-07-05 16:55:57 +0200 | [diff] [blame] | 7 | #include "stm32mp15-scmi-u-boot.dtsi" |
Patrick Delaunay | ddba40a | 2022-07-05 16:55:57 +0200 | [diff] [blame] | 8 | |
| 9 | / { |
| 10 | aliases { |
| 11 | i2c3 = &i2c4; |
| 12 | }; |
| 13 | |
| 14 | config { |
Patrice Chotard | 25cdf9c | 2024-04-09 17:02:15 +0200 | [diff] [blame] | 15 | u-boot,boot-led = "led-blue"; |
Patrice Chotard | 788d530 | 2024-04-09 17:02:14 +0200 | [diff] [blame] | 16 | u-boot,error-led = "led-red"; |
Patrick Delaunay | ddba40a | 2022-07-05 16:55:57 +0200 | [diff] [blame] | 17 | u-boot,mmc-env-partition = "u-boot-env"; |
Patrice Chotard | b270def | 2024-04-09 17:02:12 +0200 | [diff] [blame] | 18 | }; |
| 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 Delaunay | ddba40a | 2022-07-05 16:55:57 +0200 | [diff] [blame] | 34 | }; |
| 35 | |
| 36 | led { |
Patrice Chotard | 788d530 | 2024-04-09 17:02:14 +0200 | [diff] [blame] | 37 | compatible = "gpio-leds"; |
| 38 | |
Patrice Chotard | 25cdf9c | 2024-04-09 17:02:15 +0200 | [diff] [blame] | 39 | led-blue { |
| 40 | gpios = <&gpiod 9 GPIO_ACTIVE_HIGH>; |
| 41 | }; |
| 42 | |
Patrice Chotard | 788d530 | 2024-04-09 17:02:14 +0200 | [diff] [blame] | 43 | led-red { |
Patrick Delaunay | ddba40a | 2022-07-05 16:55:57 +0200 | [diff] [blame] | 44 | gpios = <&gpioa 13 GPIO_ACTIVE_LOW>; |
Patrick Delaunay | ddba40a | 2022-07-05 16:55:57 +0200 | [diff] [blame] | 45 | }; |
| 46 | }; |
| 47 | }; |
| 48 | |
| 49 | &uart4 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 50 | bootph-all; |
Patrick Delaunay | ddba40a | 2022-07-05 16:55:57 +0200 | [diff] [blame] | 51 | }; |
| 52 | |
| 53 | &uart4_pins_a { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 54 | bootph-all; |
Patrick Delaunay | ddba40a | 2022-07-05 16:55:57 +0200 | [diff] [blame] | 55 | pins1 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 56 | bootph-all; |
Patrick Delaunay | ddba40a | 2022-07-05 16:55:57 +0200 | [diff] [blame] | 57 | }; |
| 58 | pins2 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 59 | bootph-all; |
Patrick Delaunay | ddba40a | 2022-07-05 16:55:57 +0200 | [diff] [blame] | 60 | /* pull-up on rx to avoid floating level */ |
| 61 | bias-pull-up; |
| 62 | }; |
| 63 | }; |