blob: 6f93fc7bcfcd415f6a648eae2ee3050d02ccfffc [file] [log] [blame]
Patrick Delaunaye07a86b2019-11-06 16:16:32 +01001// SPDX-License-Identifier: GPL-2.0+ OR X11
Vikas Manocha97c20932017-04-10 15:03:06 -07002/*
Patrice Chotardfe63d3c2019-02-19 16:49:05 +01003 * Copyright 2017 - Vikas MANOCHA <vikas.manocha@st.com>
Vikas Manocha97c20932017-04-10 15:03:06 -07004 *
Vikas Manocha97c20932017-04-10 15:03:06 -07005 */
6
7/dts-v1/;
8#include "stm32f746.dtsi"
Patrice Chotardfe63d3c2019-02-19 16:49:05 +01009#include "stm32f769-pinctrl.dtsi"
10#include <dt-bindings/input/input.h>
Patrice Chotard4c55c832018-08-06 09:38:17 +020011#include <dt-bindings/gpio/gpio.h>
Vikas Manocha97c20932017-04-10 15:03:06 -070012
13/ {
14 model = "STMicroelectronics STM32F769-DISCO board";
Patrice Chotardfe63d3c2019-02-19 16:49:05 +010015 compatible = "st,stm32f769-disco", "st,stm32f769";
Vikas Manocha97c20932017-04-10 15:03:06 -070016
17 chosen {
Patrice Chotardfe63d3c2019-02-19 16:49:05 +010018 bootargs = "root=/dev/ram";
Vikas Manocha97c20932017-04-10 15:03:06 -070019 stdout-path = "serial0:115200n8";
20 };
21
Patrice Chotard61c88ac2020-11-06 08:11:58 +010022 memory@c0000000 {
Patrick Delaunaye07a86b2019-11-06 16:16:32 +010023 device_type = "memory";
Vikas Manocha97c20932017-04-10 15:03:06 -070024 reg = <0xC0000000 0x1000000>;
25 };
26
27 aliases {
28 serial0 = &usart1;
Vikas Manocha97c20932017-04-10 15:03:06 -070029 };
Patrice Chotardfe63d3c2019-02-19 16:49:05 +010030
31 leds {
32 compatible = "gpio-leds";
Patrice Chotard61c88ac2020-11-06 08:11:58 +010033 led-green {
Patrice Chotardfe63d3c2019-02-19 16:49:05 +010034 gpios = <&gpioj 5 GPIO_ACTIVE_HIGH>;
35 linux,default-trigger = "heartbeat";
36 };
Patrice Chotard61c88ac2020-11-06 08:11:58 +010037 led-red {
Patrice Chotardfe63d3c2019-02-19 16:49:05 +010038 gpios = <&gpioj 13 GPIO_ACTIVE_HIGH>;
39 };
40 };
41
Patrice Chotard9f603e22022-09-23 13:20:33 +020042 gpio-keys {
Patrice Chotardfe63d3c2019-02-19 16:49:05 +010043 compatible = "gpio-keys";
Patrice Chotardfe63d3c2019-02-19 16:49:05 +010044 autorepeat;
Patrice Chotard9f603e22022-09-23 13:20:33 +020045 button-0 {
Patrice Chotardfe63d3c2019-02-19 16:49:05 +010046 label = "User";
47 linux,code = <KEY_HOME>;
48 gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>;
49 };
50 };
51
52 usbotg_hs_phy: usb-phy {
53 #phy-cells = <0>;
54 compatible = "usb-nop-xceiv";
55 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(OTGHSULPI)>;
56 clock-names = "main_clk";
57 };
58
59 mmc_vcard: mmc_vcard {
60 compatible = "regulator-fixed";
61 regulator-name = "mmc_vcard";
62 regulator-min-microvolt = <3300000>;
63 regulator-max-microvolt = <3300000>;
64 };
65};
66
Patrick Delaunaye07a86b2019-11-06 16:16:32 +010067&rcc {
68 compatible = "st,stm32f769-rcc", "st,stm32f746-rcc", "st,stm32-rcc";
69};
70
Patrice Chotardfe63d3c2019-02-19 16:49:05 +010071&cec {
72 pinctrl-0 = <&cec_pins_a>;
73 pinctrl-names = "default";
74 status = "okay";
Vikas Manocha97c20932017-04-10 15:03:06 -070075};
76
77&clk_hse {
78 clock-frequency = <25000000>;
79};
80
Patrice Chotardfe63d3c2019-02-19 16:49:05 +010081&i2c1 {
82 pinctrl-0 = <&i2c1_pins_b>;
83 pinctrl-names = "default";
84 i2c-scl-rising-time-ns = <185>;
85 i2c-scl-falling-time-ns = <20>;
86 status = "okay";
87};
Vikas Manocha97c20932017-04-10 15:03:06 -070088
Patrice Chotardfe63d3c2019-02-19 16:49:05 +010089&rtc {
90 status = "okay";
91};
92
93&sdio2 {
94 status = "okay";
95 vmmc-supply = <&mmc_vcard>;
96 cd-gpios = <&gpioi 15 GPIO_ACTIVE_LOW>;
97 broken-cd;
98 pinctrl-names = "default", "opendrain";
99 pinctrl-0 = <&sdio_pins_b>;
100 pinctrl-1 = <&sdio_pins_od_b>;
101 bus-width = <4>;
Vikas Manocha97c20932017-04-10 15:03:06 -0700102};
103
Patrice Chotard9f603e22022-09-23 13:20:33 +0200104&timers5 {
105 /* Override timer5 to act as clockevent */
106 compatible = "st,stm32-timer";
107 interrupts = <50>;
108 status = "okay";
109 /delete-property/#address-cells;
110 /delete-property/#size-cells;
111 /delete-property/clock-names;
112 /delete-node/pwm;
113 /delete-node/timer@4;
114};
115
Vikas Manocha97c20932017-04-10 15:03:06 -0700116&usart1 {
117 pinctrl-0 = <&usart1_pins_a>;
118 pinctrl-names = "default";
119 status = "okay";
120};
121
Patrice Chotardfe63d3c2019-02-19 16:49:05 +0100122&usbotg_hs {
123 dr_mode = "otg";
124 phys = <&usbotg_hs_phy>;
125 phy-names = "usb2-phy";
126 pinctrl-0 = <&usbotg_hs_pins_a>;
127 pinctrl-names = "default";
Patrice Chotard77729bd2017-12-12 10:14:59 +0100128 status = "okay";
Patrice Chotard77729bd2017-12-12 10:14:59 +0100129};