Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
0002 /*
0003  * Copyright (C) STMicroelectronics 2021 - All Rights Reserved
0004  * Author: Alexandre Torgue <alexandre.torgue@foss.st.com> for STMicroelectronics.
0005  */
0006 
0007 /dts-v1/;
0008 
0009 #include <dt-bindings/gpio/gpio.h>
0010 #include <dt-bindings/input/input.h>
0011 #include <dt-bindings/leds/common.h>
0012 #include "stm32mp135.dtsi"
0013 #include "stm32mp13xf.dtsi"
0014 #include "stm32mp13-pinctrl.dtsi"
0015 
0016 / {
0017         model = "STMicroelectronics STM32MP135F-DK Discovery Board";
0018         compatible = "st,stm32mp135f-dk", "st,stm32mp135";
0019 
0020         aliases {
0021                 serial0 = &uart4;
0022         };
0023 
0024         memory@c0000000 {
0025                 device_type = "memory";
0026                 reg = <0xc0000000 0x20000000>;
0027         };
0028 
0029         reserved-memory {
0030                 #address-cells = <1>;
0031                 #size-cells = <1>;
0032                 ranges;
0033 
0034                 optee@dd000000 {
0035                         reg = <0xdd000000 0x3000000>;
0036                         no-map;
0037                 };
0038         };
0039 
0040         gpio-keys {
0041                 compatible = "gpio-keys";
0042 
0043                 user-pa13 {
0044                         label = "User-PA13";
0045                         linux,code = <BTN_1>;
0046                         gpios = <&gpioa 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
0047                 };
0048         };
0049 
0050         leds {
0051                 compatible = "gpio-leds";
0052 
0053                 led-blue {
0054                         function = LED_FUNCTION_HEARTBEAT;
0055                         color = <LED_COLOR_ID_BLUE>;
0056                         gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
0057                         linux,default-trigger = "heartbeat";
0058                         default-state = "off";
0059                 };
0060         };
0061 
0062         vdd_sd: vdd-sd {
0063                 compatible = "regulator-fixed";
0064                 regulator-name = "vdd_sd";
0065                 regulator-min-microvolt = <2900000>;
0066                 regulator-max-microvolt = <2900000>;
0067                 regulator-always-on;
0068         };
0069 };
0070 
0071 &iwdg2 {
0072         timeout-sec = <32>;
0073         status = "okay";
0074 };
0075 
0076 &rtc {
0077         status = "okay";
0078 };
0079 
0080 &sdmmc1 {
0081         pinctrl-names = "default", "opendrain", "sleep";
0082         pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_clk_pins_a>;
0083         pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_clk_pins_a>;
0084         pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
0085         broken-cd;
0086         disable-wp;
0087         st,neg-edge;
0088         bus-width = <4>;
0089         vmmc-supply = <&vdd_sd>;
0090         status = "okay";
0091 };
0092 
0093 &uart4 {
0094         pinctrl-names = "default";
0095         pinctrl-0 = <&uart4_pins_a>;
0096         status = "okay";
0097 };