Patrick Delaunay | 8e34fbb | 2022-05-20 18:24:39 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) |
| 2 | /* |
| 3 | * Copyright (C) STMicroelectronics 2021 - All Rights Reserved |
| 4 | * Author: Alexandre Torgue <alexandre.torgue@foss.st.com> for STMicroelectronics. |
| 5 | */ |
| 6 | |
| 7 | /dts-v1/; |
| 8 | |
Patrick Delaunay | 53dfe69 | 2022-06-30 10:20:17 +0200 | [diff] [blame] | 9 | #include <dt-bindings/gpio/gpio.h> |
| 10 | #include <dt-bindings/input/input.h> |
| 11 | #include <dt-bindings/leds/common.h> |
Patrick Delaunay | 8e34fbb | 2022-05-20 18:24:39 +0200 | [diff] [blame] | 12 | #include "stm32mp135.dtsi" |
| 13 | #include "stm32mp13xf.dtsi" |
| 14 | #include "stm32mp13-pinctrl.dtsi" |
| 15 | |
| 16 | / { |
| 17 | model = "STMicroelectronics STM32MP135F-DK Discovery Board"; |
| 18 | compatible = "st,stm32mp135f-dk", "st,stm32mp135"; |
| 19 | |
| 20 | aliases { |
| 21 | serial0 = &uart4; |
| 22 | }; |
| 23 | |
| 24 | memory@c0000000 { |
| 25 | device_type = "memory"; |
| 26 | reg = <0xc0000000 0x20000000>; |
| 27 | }; |
| 28 | |
Patrick Delaunay | abf20ae | 2022-07-06 18:20:24 +0200 | [diff] [blame] | 29 | reserved-memory { |
| 30 | #address-cells = <1>; |
| 31 | #size-cells = <1>; |
| 32 | ranges; |
| 33 | |
| 34 | optee@de000000 { |
| 35 | reg = <0xde000000 0x2000000>; |
| 36 | no-map; |
| 37 | }; |
| 38 | }; |
| 39 | |
Patrick Delaunay | 53dfe69 | 2022-06-30 10:20:17 +0200 | [diff] [blame] | 40 | gpio-keys { |
| 41 | compatible = "gpio-keys"; |
| 42 | |
| 43 | user-pa13 { |
| 44 | label = "User-PA13"; |
| 45 | linux,code = <BTN_1>; |
| 46 | gpios = <&gpioa 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; |
| 47 | }; |
| 48 | }; |
| 49 | |
| 50 | leds { |
| 51 | compatible = "gpio-leds"; |
| 52 | |
| 53 | led-blue { |
| 54 | function = LED_FUNCTION_HEARTBEAT; |
| 55 | color = <LED_COLOR_ID_BLUE>; |
| 56 | gpios = <&gpioa 14 GPIO_ACTIVE_LOW>; |
| 57 | linux,default-trigger = "heartbeat"; |
| 58 | default-state = "off"; |
| 59 | }; |
| 60 | }; |
| 61 | |
Patrick Delaunay | 8e34fbb | 2022-05-20 18:24:39 +0200 | [diff] [blame] | 62 | vdd_sd: vdd-sd { |
| 63 | compatible = "regulator-fixed"; |
| 64 | regulator-name = "vdd_sd"; |
| 65 | regulator-min-microvolt = <2900000>; |
| 66 | regulator-max-microvolt = <2900000>; |
| 67 | regulator-always-on; |
| 68 | }; |
| 69 | }; |
| 70 | |
| 71 | &iwdg2 { |
| 72 | timeout-sec = <32>; |
| 73 | status = "okay"; |
| 74 | }; |
| 75 | |
Patrick Delaunay | 53dfe69 | 2022-06-30 10:20:17 +0200 | [diff] [blame] | 76 | &rtc { |
| 77 | status = "okay"; |
| 78 | }; |
| 79 | |
Patrick Delaunay | 8e34fbb | 2022-05-20 18:24:39 +0200 | [diff] [blame] | 80 | &sdmmc1 { |
| 81 | pinctrl-names = "default", "opendrain", "sleep"; |
| 82 | pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_clk_pins_a>; |
| 83 | pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_clk_pins_a>; |
| 84 | pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>; |
| 85 | broken-cd; |
| 86 | disable-wp; |
| 87 | st,neg-edge; |
| 88 | bus-width = <4>; |
| 89 | vmmc-supply = <&vdd_sd>; |
| 90 | status = "okay"; |
| 91 | }; |
| 92 | |
| 93 | &uart4 { |
| 94 | pinctrl-names = "default"; |
| 95 | pinctrl-0 = <&uart4_pins_a>; |
| 96 | status = "okay"; |
| 97 | }; |