1 // SPDX-License-Identifier: GPL-2.0+ OR X11
3 * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com>
8 #include "stm32f746.dtsi"
9 #include "stm32f746-pinctrl.dtsi"
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/interrupt-controller/irq.h>
14 model = "STMicroelectronics STM32746g-EVAL board";
15 compatible = "st,stm32746g-eval", "st,stm32f746";
18 bootargs = "root=/dev/ram";
19 stdout-path = "serial0:115200n8";
23 device_type = "memory";
24 reg = <0xc0000000 0x2000000>;
32 compatible = "gpio-leds";
34 gpios = <&gpiof 10 1>;
35 linux,default-trigger = "heartbeat";
38 gpios = <&stmfx_pinctrl 17 1>;
44 gpios = <&stmfx_pinctrl 19 1>;
49 compatible = "gpio-keys";
55 linux,code = <KEY_WAKEUP>;
56 gpios = <&gpioc 13 0>;
61 compatible = "gpio-keys";
63 pinctrl-0 = <&joystick_pins>;
64 pinctrl-names = "default";
67 linux,code = <KEY_ENTER>;
68 interrupt-parent = <&stmfx_pinctrl>;
69 interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
73 linux,code = <KEY_DOWN>;
74 interrupt-parent = <&stmfx_pinctrl>;
75 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
79 linux,code = <KEY_LEFT>;
80 interrupt-parent = <&stmfx_pinctrl>;
81 interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
85 linux,code = <KEY_RIGHT>;
86 interrupt-parent = <&stmfx_pinctrl>;
87 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
91 linux,code = <KEY_UP>;
92 interrupt-parent = <&stmfx_pinctrl>;
93 interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
97 usbotg_hs_phy: usb-phy {
99 compatible = "usb-nop-xceiv";
100 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(OTGHSULPI)>;
101 clock-names = "main_clk";
104 mmc_vcard: mmc_vcard {
105 compatible = "regulator-fixed";
106 regulator-name = "mmc_vcard";
107 regulator-min-microvolt = <3300000>;
108 regulator-max-microvolt = <3300000>;
113 clock-frequency = <25000000>;
121 pinctrl-0 = <&i2c1_pins_b>;
122 pinctrl-names = "default";
123 i2c-scl-rising-time-ns = <185>;
124 i2c-scl-falling-time-ns = <20>;
128 compatible = "st,stmfx-0300";
130 interrupts = <8 IRQ_TYPE_EDGE_RISING>;
131 interrupt-parent = <&gpioi>;
133 stmfx_pinctrl: stmfx-pin-controller {
134 compatible = "st,stmfx-0300-pinctrl";
137 interrupt-controller;
138 #interrupt-cells = <2>;
139 gpio-ranges = <&stmfx_pinctrl 0 0 24>;
141 joystick_pins: joystick {
142 pins = "gpio0", "gpio1", "gpio2", "gpio3", "gpio4";
156 vmmc-supply = <&mmc_vcard>;
158 pinctrl-names = "default", "opendrain";
159 pinctrl-0 = <&sdio_pins_a>;
160 pinctrl-1 = <&sdio_pins_od_a>;
165 pinctrl-0 = <&usart1_pins_a>;
166 pinctrl-names = "default";
172 phys = <&usbotg_hs_phy>;
173 phy-names = "usb2-phy";
174 pinctrl-0 = <&usbotg_hs_pins_a>;
175 pinctrl-names = "default";