Patrick Delaunay | c5c9069 | 2019-11-06 16:16:32 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR X11 |
Vikas Manocha | d3cc5cf | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 2 | /* |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 3 | * Copyright 2017 - Vikas MANOCHA <vikas.manocha@st.com> |
Vikas Manocha | d3cc5cf | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 4 | * |
Vikas Manocha | d3cc5cf | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | /dts-v1/; |
| 8 | #include "stm32f746.dtsi" |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 9 | #include "stm32f769-pinctrl.dtsi" |
| 10 | #include <dt-bindings/input/input.h> |
Patrice Chotard | 5d8af92 | 2018-08-06 09:38:17 +0200 | [diff] [blame] | 11 | #include <dt-bindings/gpio/gpio.h> |
Vikas Manocha | d3cc5cf | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 12 | |
| 13 | / { |
| 14 | model = "STMicroelectronics STM32F769-DISCO board"; |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 15 | compatible = "st,stm32f769-disco", "st,stm32f769"; |
Vikas Manocha | d3cc5cf | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 16 | |
| 17 | chosen { |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 18 | bootargs = "root=/dev/ram"; |
Vikas Manocha | d3cc5cf | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 19 | stdout-path = "serial0:115200n8"; |
| 20 | }; |
| 21 | |
Patrice Chotard | 62f5616 | 2020-11-06 08:11:58 +0100 | [diff] [blame] | 22 | memory@c0000000 { |
Patrick Delaunay | c5c9069 | 2019-11-06 16:16:32 +0100 | [diff] [blame] | 23 | device_type = "memory"; |
Vikas Manocha | d3cc5cf | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 24 | reg = <0xC0000000 0x1000000>; |
| 25 | }; |
| 26 | |
| 27 | aliases { |
| 28 | serial0 = &usart1; |
Vikas Manocha | d3cc5cf | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 29 | }; |
Vikas Manocha | d3cc5cf | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 30 | |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 31 | leds { |
| 32 | compatible = "gpio-leds"; |
Patrice Chotard | 62f5616 | 2020-11-06 08:11:58 +0100 | [diff] [blame] | 33 | led-green { |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 34 | gpios = <&gpioj 5 GPIO_ACTIVE_HIGH>; |
| 35 | linux,default-trigger = "heartbeat"; |
Vikas Manocha | d3cc5cf | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 36 | }; |
Patrice Chotard | 62f5616 | 2020-11-06 08:11:58 +0100 | [diff] [blame] | 37 | led-red { |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 38 | gpios = <&gpioj 13 GPIO_ACTIVE_HIGH>; |
Vikas Manocha | d3cc5cf | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 39 | }; |
| 40 | }; |
| 41 | |
Patrice Chotard | 8397532 | 2022-09-23 13:20:33 +0200 | [diff] [blame] | 42 | gpio-keys { |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 43 | compatible = "gpio-keys"; |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 44 | autorepeat; |
Patrice Chotard | 8397532 | 2022-09-23 13:20:33 +0200 | [diff] [blame] | 45 | button-0 { |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 46 | 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 | }; |
Vikas Manocha | d3cc5cf | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 65 | }; |
| 66 | |
Patrick Delaunay | c5c9069 | 2019-11-06 16:16:32 +0100 | [diff] [blame] | 67 | &rcc { |
| 68 | compatible = "st,stm32f769-rcc", "st,stm32f746-rcc", "st,stm32-rcc"; |
| 69 | }; |
| 70 | |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 71 | &cec { |
| 72 | pinctrl-0 = <&cec_pins_a>; |
| 73 | pinctrl-names = "default"; |
| 74 | status = "okay"; |
| 75 | }; |
| 76 | |
| 77 | &clk_hse { |
| 78 | clock-frequency = <25000000>; |
| 79 | }; |
| 80 | |
| 81 | &i2c1 { |
| 82 | pinctrl-0 = <&i2c1_pins_b>; |
Vikas Manocha | d3cc5cf | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 83 | pinctrl-names = "default"; |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 84 | i2c-scl-rising-time-ns = <185>; |
| 85 | i2c-scl-falling-time-ns = <20>; |
Vikas Manocha | d3cc5cf | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 86 | status = "okay"; |
Vikas Manocha | d3cc5cf | 2017-04-10 15:03:06 -0700 | [diff] [blame] | 87 | }; |
Patrice Chotard | 0d24b0d | 2017-12-12 10:14:59 +0100 | [diff] [blame] | 88 | |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 89 | &rtc { |
| 90 | status = "okay"; |
| 91 | }; |
| 92 | |
Patrice Chotard | 0d24b0d | 2017-12-12 10:14:59 +0100 | [diff] [blame] | 93 | &sdio2 { |
| 94 | status = "okay"; |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 95 | vmmc-supply = <&mmc_vcard>; |
Patrice Chotard | 5d8af92 | 2018-08-06 09:38:17 +0200 | [diff] [blame] | 96 | cd-gpios = <&gpioi 15 GPIO_ACTIVE_LOW>; |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 97 | broken-cd; |
Patrice Chotard | 0d24b0d | 2017-12-12 10:14:59 +0100 | [diff] [blame] | 98 | pinctrl-names = "default", "opendrain"; |
| 99 | pinctrl-0 = <&sdio_pins_b>; |
| 100 | pinctrl-1 = <&sdio_pins_od_b>; |
| 101 | bus-width = <4>; |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 102 | }; |
| 103 | |
Patrice Chotard | 8397532 | 2022-09-23 13:20:33 +0200 | [diff] [blame] | 104 | &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 | |
Patrice Chotard | 24dffa5 | 2019-02-19 16:49:05 +0100 | [diff] [blame] | 116 | &usart1 { |
| 117 | pinctrl-0 = <&usart1_pins_a>; |
| 118 | pinctrl-names = "default"; |
| 119 | status = "okay"; |
| 120 | }; |
| 121 | |
| 122 | &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"; |
| 128 | status = "okay"; |
Patrice Chotard | 0d24b0d | 2017-12-12 10:14:59 +0100 | [diff] [blame] | 129 | }; |