Patrick Delaunay | e07a86b | 2019-11-06 16:16:32 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR X11 |
Vikas Manocha | 97c2093 | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 2 | /* |
Patrice Chotard | fe63d3c | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 3 | * Copyright 2017 - Vikas MANOCHA <vikas.manocha@st.com> |
Vikas Manocha | 97c2093 | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 4 | * |
Vikas Manocha | 97c2093 | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | /dts-v1/; |
| 8 | #include "stm32f746.dtsi" |
Patrice Chotard | fe63d3c | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 9 | #include "stm32f769-pinctrl.dtsi" |
| 10 | #include <dt-bindings/input/input.h> |
Patrice Chotard | 4c55c83 | 2018-08-06 09:38:17 +0200 | [diff] [blame] | 11 | #include <dt-bindings/gpio/gpio.h> |
Vikas Manocha | 97c2093 | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 12 | |
| 13 | / { |
| 14 | model = "STMicroelectronics STM32F769-DISCO board"; |
Patrice Chotard | fe63d3c | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 15 | compatible = "st,stm32f769-disco", "st,stm32f769"; |
Vikas Manocha | 97c2093 | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 16 | |
| 17 | chosen { |
Patrice Chotard | fe63d3c | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 18 | bootargs = "root=/dev/ram"; |
Vikas Manocha | 97c2093 | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 19 | stdout-path = "serial0:115200n8"; |
| 20 | }; |
| 21 | |
Patrice Chotard | 61c88ac | 2020-11-06 08:11:58 +0100 | [diff] [blame] | 22 | memory@c0000000 { |
Patrick Delaunay | e07a86b | 2019-11-06 16:16:32 +0100 | [diff] [blame] | 23 | device_type = "memory"; |
Vikas Manocha | 97c2093 | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 24 | reg = <0xC0000000 0x1000000>; |
| 25 | }; |
| 26 | |
| 27 | aliases { |
| 28 | serial0 = &usart1; |
Vikas Manocha | 97c2093 | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 29 | }; |
Patrice Chotard | fe63d3c | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 30 | |
| 31 | leds { |
| 32 | compatible = "gpio-leds"; |
Patrice Chotard | 61c88ac | 2020-11-06 08:11:58 +0100 | [diff] [blame] | 33 | led-green { |
Patrice Chotard | fe63d3c | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 34 | gpios = <&gpioj 5 GPIO_ACTIVE_HIGH>; |
| 35 | linux,default-trigger = "heartbeat"; |
| 36 | }; |
Patrice Chotard | 61c88ac | 2020-11-06 08:11:58 +0100 | [diff] [blame] | 37 | led-red { |
Patrice Chotard | fe63d3c | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 38 | gpios = <&gpioj 13 GPIO_ACTIVE_HIGH>; |
| 39 | }; |
| 40 | }; |
| 41 | |
| 42 | gpio_keys { |
| 43 | compatible = "gpio-keys"; |
| 44 | #address-cells = <1>; |
| 45 | #size-cells = <0>; |
| 46 | autorepeat; |
| 47 | button@0 { |
| 48 | label = "User"; |
| 49 | linux,code = <KEY_HOME>; |
| 50 | gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>; |
| 51 | }; |
| 52 | }; |
| 53 | |
| 54 | usbotg_hs_phy: usb-phy { |
| 55 | #phy-cells = <0>; |
| 56 | compatible = "usb-nop-xceiv"; |
| 57 | clocks = <&rcc 0 STM32F7_AHB1_CLOCK(OTGHSULPI)>; |
| 58 | clock-names = "main_clk"; |
| 59 | }; |
| 60 | |
| 61 | mmc_vcard: mmc_vcard { |
| 62 | compatible = "regulator-fixed"; |
| 63 | regulator-name = "mmc_vcard"; |
| 64 | regulator-min-microvolt = <3300000>; |
| 65 | regulator-max-microvolt = <3300000>; |
| 66 | }; |
| 67 | }; |
| 68 | |
Patrick Delaunay | e07a86b | 2019-11-06 16:16:32 +0100 | [diff] [blame] | 69 | &rcc { |
| 70 | compatible = "st,stm32f769-rcc", "st,stm32f746-rcc", "st,stm32-rcc"; |
| 71 | }; |
| 72 | |
Patrice Chotard | fe63d3c | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 73 | &cec { |
| 74 | pinctrl-0 = <&cec_pins_a>; |
| 75 | pinctrl-names = "default"; |
| 76 | status = "okay"; |
Vikas Manocha | 97c2093 | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 77 | }; |
| 78 | |
| 79 | &clk_hse { |
| 80 | clock-frequency = <25000000>; |
| 81 | }; |
| 82 | |
Patrice Chotard | fe63d3c | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 83 | &i2c1 { |
| 84 | pinctrl-0 = <&i2c1_pins_b>; |
| 85 | pinctrl-names = "default"; |
| 86 | i2c-scl-rising-time-ns = <185>; |
| 87 | i2c-scl-falling-time-ns = <20>; |
| 88 | status = "okay"; |
| 89 | }; |
Vikas Manocha | 97c2093 | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 90 | |
Patrice Chotard | fe63d3c | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 91 | &rtc { |
| 92 | status = "okay"; |
| 93 | }; |
| 94 | |
| 95 | &sdio2 { |
| 96 | status = "okay"; |
| 97 | vmmc-supply = <&mmc_vcard>; |
| 98 | cd-gpios = <&gpioi 15 GPIO_ACTIVE_LOW>; |
| 99 | broken-cd; |
| 100 | pinctrl-names = "default", "opendrain"; |
| 101 | pinctrl-0 = <&sdio_pins_b>; |
| 102 | pinctrl-1 = <&sdio_pins_od_b>; |
| 103 | bus-width = <4>; |
Vikas Manocha | 97c2093 | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 104 | }; |
| 105 | |
| 106 | &usart1 { |
| 107 | pinctrl-0 = <&usart1_pins_a>; |
| 108 | pinctrl-names = "default"; |
| 109 | status = "okay"; |
| 110 | }; |
| 111 | |
Patrice Chotard | fe63d3c | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 112 | &usbotg_hs { |
| 113 | dr_mode = "otg"; |
| 114 | phys = <&usbotg_hs_phy>; |
| 115 | phy-names = "usb2-phy"; |
| 116 | pinctrl-0 = <&usbotg_hs_pins_a>; |
| 117 | pinctrl-names = "default"; |
Patrice Chotard | 77729bd | 2017-12-12 10:14:59 +0100 | [diff] [blame] | 118 | status = "okay"; |
Patrice Chotard | 77729bd | 2017-12-12 10:14:59 +0100 | [diff] [blame] | 119 | }; |