1f126890aSEmmanuel Vadot/* 2f126890aSEmmanuel Vadot * Copyright 2017 - Vikas MANOCHA <vikas.manocha@st.com> 3f126890aSEmmanuel Vadot * 4f126890aSEmmanuel Vadot * This file is dual-licensed: you can use it either under the terms 5f126890aSEmmanuel Vadot * of the GPL or the X11 license, at your option. Note that this dual 6f126890aSEmmanuel Vadot * licensing only applies to this file, and not this project as a 7f126890aSEmmanuel Vadot * whole. 8f126890aSEmmanuel Vadot * 9f126890aSEmmanuel Vadot * a) This file is free software; you can redistribute it and/or 10f126890aSEmmanuel Vadot * modify it under the terms of the GNU General Public License as 11f126890aSEmmanuel Vadot * published by the Free Software Foundation; either version 2 of the 12f126890aSEmmanuel Vadot * License, or (at your option) any later version. 13f126890aSEmmanuel Vadot * 14f126890aSEmmanuel Vadot * This file is distributed in the hope that it will be useful, 15f126890aSEmmanuel Vadot * but WITHOUT ANY WARRANTY; without even the implied warranty of 16f126890aSEmmanuel Vadot * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17f126890aSEmmanuel Vadot * GNU General Public License for more details. 18f126890aSEmmanuel Vadot * 19f126890aSEmmanuel Vadot * Or, alternatively, 20f126890aSEmmanuel Vadot * 21f126890aSEmmanuel Vadot * b) Permission is hereby granted, free of charge, to any person 22f126890aSEmmanuel Vadot * obtaining a copy of this software and associated documentation 23f126890aSEmmanuel Vadot * files (the "Software"), to deal in the Software without 24f126890aSEmmanuel Vadot * restriction, including without limitation the rights to use, 25f126890aSEmmanuel Vadot * copy, modify, merge, publish, distribute, sublicense, and/or 26f126890aSEmmanuel Vadot * sell copies of the Software, and to permit persons to whom the 27f126890aSEmmanuel Vadot * Software is furnished to do so, subject to the following 28f126890aSEmmanuel Vadot * conditions: 29f126890aSEmmanuel Vadot * 30f126890aSEmmanuel Vadot * The above copyright notice and this permission notice shall be 31f126890aSEmmanuel Vadot * included in all copies or substantial portions of the Software. 32f126890aSEmmanuel Vadot * 33f126890aSEmmanuel Vadot * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 34f126890aSEmmanuel Vadot * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 35f126890aSEmmanuel Vadot * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 36f126890aSEmmanuel Vadot * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 37f126890aSEmmanuel Vadot * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 38f126890aSEmmanuel Vadot * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 39f126890aSEmmanuel Vadot * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 40f126890aSEmmanuel Vadot * OTHER DEALINGS IN THE SOFTWARE. 41f126890aSEmmanuel Vadot */ 42f126890aSEmmanuel Vadot 43f126890aSEmmanuel Vadot/dts-v1/; 44*01950c46SEmmanuel Vadot#include "stm32f769.dtsi" 45f126890aSEmmanuel Vadot#include "stm32f769-pinctrl.dtsi" 46f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h> 47f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 48f126890aSEmmanuel Vadot 49f126890aSEmmanuel Vadot/ { 50f126890aSEmmanuel Vadot model = "STMicroelectronics STM32F769-DISCO board"; 51f126890aSEmmanuel Vadot compatible = "st,stm32f769-disco", "st,stm32f769"; 52f126890aSEmmanuel Vadot 53f126890aSEmmanuel Vadot chosen { 54f126890aSEmmanuel Vadot bootargs = "root=/dev/ram"; 55f126890aSEmmanuel Vadot stdout-path = "serial0:115200n8"; 56f126890aSEmmanuel Vadot }; 57f126890aSEmmanuel Vadot 58f126890aSEmmanuel Vadot memory@c0000000 { 59f126890aSEmmanuel Vadot device_type = "memory"; 60f126890aSEmmanuel Vadot reg = <0xC0000000 0x1000000>; 61f126890aSEmmanuel Vadot }; 62f126890aSEmmanuel Vadot 63*01950c46SEmmanuel Vadot reserved-memory { 64*01950c46SEmmanuel Vadot #address-cells = <1>; 65*01950c46SEmmanuel Vadot #size-cells = <1>; 66*01950c46SEmmanuel Vadot ranges; 67*01950c46SEmmanuel Vadot 68*01950c46SEmmanuel Vadot linux,dma { 69*01950c46SEmmanuel Vadot compatible = "shared-dma-pool"; 70*01950c46SEmmanuel Vadot linux,dma-default; 71*01950c46SEmmanuel Vadot no-map; 72*01950c46SEmmanuel Vadot size = <0x100000>; 73*01950c46SEmmanuel Vadot }; 74*01950c46SEmmanuel Vadot }; 75*01950c46SEmmanuel Vadot 76f126890aSEmmanuel Vadot aliases { 77f126890aSEmmanuel Vadot serial0 = &usart1; 78f126890aSEmmanuel Vadot }; 79f126890aSEmmanuel Vadot 80f126890aSEmmanuel Vadot leds { 81f126890aSEmmanuel Vadot compatible = "gpio-leds"; 82f126890aSEmmanuel Vadot led-green { 83f126890aSEmmanuel Vadot gpios = <&gpioj 5 GPIO_ACTIVE_HIGH>; 84f126890aSEmmanuel Vadot linux,default-trigger = "heartbeat"; 85f126890aSEmmanuel Vadot }; 86f126890aSEmmanuel Vadot led-red { 87f126890aSEmmanuel Vadot gpios = <&gpioj 13 GPIO_ACTIVE_HIGH>; 88f126890aSEmmanuel Vadot }; 89f126890aSEmmanuel Vadot }; 90f126890aSEmmanuel Vadot 91f126890aSEmmanuel Vadot gpio-keys { 92f126890aSEmmanuel Vadot compatible = "gpio-keys"; 93f126890aSEmmanuel Vadot autorepeat; 94f126890aSEmmanuel Vadot button-0 { 95f126890aSEmmanuel Vadot label = "User"; 96f126890aSEmmanuel Vadot linux,code = <KEY_HOME>; 97f126890aSEmmanuel Vadot gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>; 98f126890aSEmmanuel Vadot }; 99f126890aSEmmanuel Vadot }; 100f126890aSEmmanuel Vadot 101f126890aSEmmanuel Vadot usbotg_hs_phy: usb-phy { 102f126890aSEmmanuel Vadot #phy-cells = <0>; 103f126890aSEmmanuel Vadot compatible = "usb-nop-xceiv"; 104f126890aSEmmanuel Vadot clocks = <&rcc 0 STM32F7_AHB1_CLOCK(OTGHSULPI)>; 105f126890aSEmmanuel Vadot clock-names = "main_clk"; 106f126890aSEmmanuel Vadot }; 107f126890aSEmmanuel Vadot 108*01950c46SEmmanuel Vadot vcc_3v3: vcc-3v3 { 109f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 110*01950c46SEmmanuel Vadot regulator-name = "vcc_3v3"; 111f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 112f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 113f126890aSEmmanuel Vadot }; 114f126890aSEmmanuel Vadot}; 115f126890aSEmmanuel Vadot 116f126890aSEmmanuel Vadot&rcc { 117f126890aSEmmanuel Vadot compatible = "st,stm32f769-rcc", "st,stm32f746-rcc", "st,stm32-rcc"; 118f126890aSEmmanuel Vadot}; 119f126890aSEmmanuel Vadot 120f126890aSEmmanuel Vadot&cec { 121f126890aSEmmanuel Vadot pinctrl-0 = <&cec_pins_a>; 122f126890aSEmmanuel Vadot pinctrl-names = "default"; 123f126890aSEmmanuel Vadot status = "okay"; 124f126890aSEmmanuel Vadot}; 125f126890aSEmmanuel Vadot 126f126890aSEmmanuel Vadot&clk_hse { 127f126890aSEmmanuel Vadot clock-frequency = <25000000>; 128f126890aSEmmanuel Vadot}; 129f126890aSEmmanuel Vadot 130*01950c46SEmmanuel Vadot&dsi { 131*01950c46SEmmanuel Vadot #address-cells = <1>; 132*01950c46SEmmanuel Vadot #size-cells = <0>; 133*01950c46SEmmanuel Vadot status = "okay"; 134*01950c46SEmmanuel Vadot 135*01950c46SEmmanuel Vadot ports { 136*01950c46SEmmanuel Vadot #address-cells = <1>; 137*01950c46SEmmanuel Vadot #size-cells = <0>; 138*01950c46SEmmanuel Vadot 139*01950c46SEmmanuel Vadot port@0 { 140*01950c46SEmmanuel Vadot reg = <0>; 141*01950c46SEmmanuel Vadot dsi_in: endpoint { 142*01950c46SEmmanuel Vadot remote-endpoint = <<dc_out_dsi>; 143*01950c46SEmmanuel Vadot }; 144*01950c46SEmmanuel Vadot }; 145*01950c46SEmmanuel Vadot 146*01950c46SEmmanuel Vadot port@1 { 147*01950c46SEmmanuel Vadot reg = <1>; 148*01950c46SEmmanuel Vadot dsi_out: endpoint { 149*01950c46SEmmanuel Vadot remote-endpoint = <&dsi_panel_in>; 150*01950c46SEmmanuel Vadot }; 151*01950c46SEmmanuel Vadot }; 152*01950c46SEmmanuel Vadot }; 153*01950c46SEmmanuel Vadot 154*01950c46SEmmanuel Vadot panel0: panel@0 { 155*01950c46SEmmanuel Vadot compatible = "orisetech,otm8009a"; 156*01950c46SEmmanuel Vadot reg = <0>; /* dsi virtual channel (0..3) */ 157*01950c46SEmmanuel Vadot reset-gpios = <&gpioj 15 GPIO_ACTIVE_LOW>; 158*01950c46SEmmanuel Vadot power-supply = <&vcc_3v3>; 159*01950c46SEmmanuel Vadot status = "okay"; 160*01950c46SEmmanuel Vadot 161*01950c46SEmmanuel Vadot port { 162*01950c46SEmmanuel Vadot dsi_panel_in: endpoint { 163*01950c46SEmmanuel Vadot remote-endpoint = <&dsi_out>; 164*01950c46SEmmanuel Vadot }; 165*01950c46SEmmanuel Vadot }; 166*01950c46SEmmanuel Vadot }; 167*01950c46SEmmanuel Vadot}; 168*01950c46SEmmanuel Vadot 169f126890aSEmmanuel Vadot&i2c1 { 170f126890aSEmmanuel Vadot pinctrl-0 = <&i2c1_pins_b>; 171f126890aSEmmanuel Vadot pinctrl-names = "default"; 172f126890aSEmmanuel Vadot i2c-scl-rising-time-ns = <185>; 173f126890aSEmmanuel Vadot i2c-scl-falling-time-ns = <20>; 174f126890aSEmmanuel Vadot status = "okay"; 175f126890aSEmmanuel Vadot}; 176f126890aSEmmanuel Vadot 177*01950c46SEmmanuel Vadot<dc { 178*01950c46SEmmanuel Vadot status = "okay"; 179*01950c46SEmmanuel Vadot 180*01950c46SEmmanuel Vadot port { 181*01950c46SEmmanuel Vadot ltdc_out_dsi: endpoint { 182*01950c46SEmmanuel Vadot remote-endpoint = <&dsi_in>; 183*01950c46SEmmanuel Vadot }; 184*01950c46SEmmanuel Vadot }; 185*01950c46SEmmanuel Vadot}; 186*01950c46SEmmanuel Vadot 187f126890aSEmmanuel Vadot&rtc { 188f126890aSEmmanuel Vadot status = "okay"; 189f126890aSEmmanuel Vadot}; 190f126890aSEmmanuel Vadot 191f126890aSEmmanuel Vadot&sdio2 { 192f126890aSEmmanuel Vadot status = "okay"; 193*01950c46SEmmanuel Vadot vmmc-supply = <&vcc_3v3>; 194f126890aSEmmanuel Vadot cd-gpios = <&gpioi 15 GPIO_ACTIVE_LOW>; 195f126890aSEmmanuel Vadot broken-cd; 19684943d6fSEmmanuel Vadot pinctrl-names = "default", "opendrain", "sleep"; 197f126890aSEmmanuel Vadot pinctrl-0 = <&sdio_pins_b>; 198f126890aSEmmanuel Vadot pinctrl-1 = <&sdio_pins_od_b>; 19984943d6fSEmmanuel Vadot pinctrl-2 = <&sdio_pins_sleep_b>; 200f126890aSEmmanuel Vadot bus-width = <4>; 201f126890aSEmmanuel Vadot}; 202f126890aSEmmanuel Vadot 203f126890aSEmmanuel Vadot&timers5 { 204f126890aSEmmanuel Vadot /* Override timer5 to act as clockevent */ 205f126890aSEmmanuel Vadot compatible = "st,stm32-timer"; 206f126890aSEmmanuel Vadot interrupts = <50>; 207f126890aSEmmanuel Vadot status = "okay"; 208f126890aSEmmanuel Vadot /delete-property/#address-cells; 209f126890aSEmmanuel Vadot /delete-property/#size-cells; 210f126890aSEmmanuel Vadot /delete-property/clock-names; 211f126890aSEmmanuel Vadot /delete-node/pwm; 212f126890aSEmmanuel Vadot /delete-node/timer@4; 213f126890aSEmmanuel Vadot}; 214f126890aSEmmanuel Vadot 215f126890aSEmmanuel Vadot&usart1 { 216f126890aSEmmanuel Vadot pinctrl-0 = <&usart1_pins_a>; 217f126890aSEmmanuel Vadot pinctrl-names = "default"; 218f126890aSEmmanuel Vadot status = "okay"; 219f126890aSEmmanuel Vadot}; 220f126890aSEmmanuel Vadot 221f126890aSEmmanuel Vadot&usbotg_hs { 222f126890aSEmmanuel Vadot dr_mode = "otg"; 223f126890aSEmmanuel Vadot phys = <&usbotg_hs_phy>; 224f126890aSEmmanuel Vadot phy-names = "usb2-phy"; 225f126890aSEmmanuel Vadot pinctrl-0 = <&usbotg_hs_pins_a>; 226f126890aSEmmanuel Vadot pinctrl-names = "default"; 227f126890aSEmmanuel Vadot status = "okay"; 228f126890aSEmmanuel Vadot}; 229