2022-05-20 16:24:39 +00:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
|
|
|
|
/*
|
|
|
|
* Copyright (C) STMicroelectronics 2021 - All Rights Reserved
|
|
|
|
* Author: Alexandre Torgue <alexandre.torgue@foss.st.com> for STMicroelectronics.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
2022-06-30 08:20:17 +00:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
#include <dt-bindings/leds/common.h>
|
2022-05-20 16:24:39 +00:00
|
|
|
#include "stm32mp135.dtsi"
|
|
|
|
#include "stm32mp13xf.dtsi"
|
|
|
|
#include "stm32mp13-pinctrl.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "STMicroelectronics STM32MP135F-DK Discovery Board";
|
|
|
|
compatible = "st,stm32mp135f-dk", "st,stm32mp135";
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
serial0 = &uart4;
|
|
|
|
};
|
|
|
|
|
|
|
|
memory@c0000000 {
|
|
|
|
device_type = "memory";
|
|
|
|
reg = <0xc0000000 0x20000000>;
|
|
|
|
};
|
|
|
|
|
2022-07-06 16:20:24 +00:00
|
|
|
reserved-memory {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
ranges;
|
|
|
|
|
2022-09-07 11:42:23 +00:00
|
|
|
optee@dd000000 {
|
|
|
|
reg = <0xdd000000 0x3000000>;
|
2022-07-06 16:20:24 +00:00
|
|
|
no-map;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-06-30 08:20:17 +00:00
|
|
|
gpio-keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
|
|
|
user-pa13 {
|
|
|
|
label = "User-PA13";
|
|
|
|
linux,code = <BTN_1>;
|
|
|
|
gpios = <&gpioa 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
led-blue {
|
|
|
|
function = LED_FUNCTION_HEARTBEAT;
|
|
|
|
color = <LED_COLOR_ID_BLUE>;
|
|
|
|
gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,default-trigger = "heartbeat";
|
|
|
|
default-state = "off";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-05-20 16:24:39 +00:00
|
|
|
vdd_sd: vdd-sd {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "vdd_sd";
|
|
|
|
regulator-min-microvolt = <2900000>;
|
|
|
|
regulator-max-microvolt = <2900000>;
|
|
|
|
regulator-always-on;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&iwdg2 {
|
|
|
|
timeout-sec = <32>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2022-06-30 08:20:17 +00:00
|
|
|
&rtc {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2022-05-20 16:24:39 +00:00
|
|
|
&sdmmc1 {
|
|
|
|
pinctrl-names = "default", "opendrain", "sleep";
|
|
|
|
pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_clk_pins_a>;
|
|
|
|
pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_clk_pins_a>;
|
|
|
|
pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
|
2022-11-02 13:53:48 +00:00
|
|
|
cd-gpios = <&gpioh 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
|
2022-05-20 16:24:39 +00:00
|
|
|
disable-wp;
|
|
|
|
st,neg-edge;
|
|
|
|
bus-width = <4>;
|
|
|
|
vmmc-supply = <&vdd_sd>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart4 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart4_pins_a>;
|
|
|
|
status = "okay";
|
|
|
|
};
|