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 | 9b68daa | 2024-04-09 17:02:00 +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 | usb0 = &usbotg_hs; |
| 13 | }; |
| 14 | |
| 15 | config { |
Patrice Chotard | c26c6bb | 2024-04-09 17:02:03 +0200 | [diff] [blame] | 16 | u-boot,boot-led = "led-blue"; |
Patrice Chotard | d1dba6a | 2024-04-09 17:02:02 +0200 | [diff] [blame] | 17 | u-boot,error-led = "led-red"; |
Patrick Delaunay | ddba40a | 2022-07-05 16:55:57 +0200 | [diff] [blame] | 18 | u-boot,mmc-env-partition = "u-boot-env"; |
| 19 | st,adc_usb_pd = <&adc1 18>, <&adc1 19>; |
Patrice Chotard | 9b68daa | 2024-04-09 17:02:00 +0200 | [diff] [blame] | 20 | }; |
| 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 Delaunay | ddba40a | 2022-07-05 16:55:57 +0200 | [diff] [blame] | 36 | }; |
| 37 | |
| 38 | led { |
Patrice Chotard | c26c6bb | 2024-04-09 17:02:03 +0200 | [diff] [blame] | 39 | led-blue { |
| 40 | /delete-property/label; |
| 41 | }; |
| 42 | |
Patrice Chotard | d1dba6a | 2024-04-09 17:02:02 +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 | &adc { |
| 50 | status = "okay"; |
| 51 | }; |
| 52 | |
| 53 | &uart4 { |
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 | }; |
| 56 | |
| 57 | &uart4_pins_a { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 58 | bootph-all; |
Patrick Delaunay | ddba40a | 2022-07-05 16:55:57 +0200 | [diff] [blame] | 59 | pins1 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 60 | bootph-all; |
Patrick Delaunay | ddba40a | 2022-07-05 16:55:57 +0200 | [diff] [blame] | 61 | }; |
| 62 | pins2 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 63 | bootph-all; |
Patrick Delaunay | ddba40a | 2022-07-05 16:55:57 +0200 | [diff] [blame] | 64 | /* 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 | }; |