1f126890aSEmmanuel Vadot/* 2f126890aSEmmanuel Vadot * Copyright 2016 - Lee Jones <lee.jones@linaro.org> 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 * You should have received a copy of the GNU General Public 20f126890aSEmmanuel Vadot * License along with this file; if not, write to the Free 21f126890aSEmmanuel Vadot * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, 22f126890aSEmmanuel Vadot * MA 02110-1301 USA 23f126890aSEmmanuel Vadot * 24f126890aSEmmanuel Vadot * Or, alternatively, 25f126890aSEmmanuel Vadot * 26f126890aSEmmanuel Vadot * b) Permission is hereby granted, free of charge, to any person 27f126890aSEmmanuel Vadot * obtaining a copy of this software and associated documentation 28f126890aSEmmanuel Vadot * files (the "Software"), to deal in the Software without 29f126890aSEmmanuel Vadot * restriction, including without limitation the rights to use, 30f126890aSEmmanuel Vadot * copy, modify, merge, publish, distribute, sublicense, and/or 31f126890aSEmmanuel Vadot * sell copies of the Software, and to permit persons to whom the 32f126890aSEmmanuel Vadot * Software is furnished to do so, subject to the following 33f126890aSEmmanuel Vadot * conditions: 34f126890aSEmmanuel Vadot * 35f126890aSEmmanuel Vadot * The above copyright notice and this permission notice shall be 36f126890aSEmmanuel Vadot * included in all copies or substantial portions of the Software. 37f126890aSEmmanuel Vadot * 38f126890aSEmmanuel Vadot * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 39f126890aSEmmanuel Vadot * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 40f126890aSEmmanuel Vadot * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 41f126890aSEmmanuel Vadot * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 42f126890aSEmmanuel Vadot * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 43f126890aSEmmanuel Vadot * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 44f126890aSEmmanuel Vadot * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 45f126890aSEmmanuel Vadot * OTHER DEALINGS IN THE SOFTWARE. 46f126890aSEmmanuel Vadot */ 47f126890aSEmmanuel Vadot 48f126890aSEmmanuel Vadot/dts-v1/; 49f126890aSEmmanuel Vadot#include "stm32f469.dtsi" 50f126890aSEmmanuel Vadot#include "stm32f469-pinctrl.dtsi" 51f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 52f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h> 53f126890aSEmmanuel Vadot 54f126890aSEmmanuel Vadot/ { 55f126890aSEmmanuel Vadot model = "STMicroelectronics STM32F469i-DISCO board"; 56f126890aSEmmanuel Vadot compatible = "st,stm32f469i-disco", "st,stm32f469"; 57f126890aSEmmanuel Vadot 58f126890aSEmmanuel Vadot chosen { 59f126890aSEmmanuel Vadot bootargs = "root=/dev/ram"; 60f126890aSEmmanuel Vadot stdout-path = "serial0:115200n8"; 61f126890aSEmmanuel Vadot }; 62f126890aSEmmanuel Vadot 63f126890aSEmmanuel Vadot memory@0 { 64f126890aSEmmanuel Vadot device_type = "memory"; 65f126890aSEmmanuel Vadot reg = <0x00000000 0x1000000>; 66f126890aSEmmanuel Vadot }; 67f126890aSEmmanuel Vadot 68f126890aSEmmanuel Vadot aliases { 69f126890aSEmmanuel Vadot serial0 = &usart3; 70f126890aSEmmanuel Vadot }; 71f126890aSEmmanuel Vadot 72*8d13bc63SEmmanuel Vadot vcc_3v3: vcc-3v3 { 73f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 74*8d13bc63SEmmanuel Vadot regulator-name = "vcc_3v3"; 75f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 76f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 77f126890aSEmmanuel Vadot }; 78f126890aSEmmanuel Vadot 79f126890aSEmmanuel Vadot soc { 80f126890aSEmmanuel Vadot dma-ranges = <0xc0000000 0x0 0x10000000>; 81f126890aSEmmanuel Vadot }; 82f126890aSEmmanuel Vadot 83f126890aSEmmanuel Vadot leds { 84f126890aSEmmanuel Vadot compatible = "gpio-leds"; 85f126890aSEmmanuel Vadot led-green { 86f126890aSEmmanuel Vadot gpios = <&gpiog 6 GPIO_ACTIVE_LOW>; 87f126890aSEmmanuel Vadot linux,default-trigger = "heartbeat"; 88f126890aSEmmanuel Vadot }; 89f126890aSEmmanuel Vadot led-orange { 90f126890aSEmmanuel Vadot gpios = <&gpiod 4 GPIO_ACTIVE_LOW>; 91f126890aSEmmanuel Vadot }; 92f126890aSEmmanuel Vadot led-red { 93f126890aSEmmanuel Vadot gpios = <&gpiod 5 GPIO_ACTIVE_LOW>; 94f126890aSEmmanuel Vadot }; 95f126890aSEmmanuel Vadot led-blue { 96f126890aSEmmanuel Vadot gpios = <&gpiok 3 GPIO_ACTIVE_LOW>; 97f126890aSEmmanuel Vadot }; 98f126890aSEmmanuel Vadot }; 99f126890aSEmmanuel Vadot 100f126890aSEmmanuel Vadot gpio-keys { 101f126890aSEmmanuel Vadot compatible = "gpio-keys"; 102f126890aSEmmanuel Vadot autorepeat; 103f126890aSEmmanuel Vadot button-0 { 104f126890aSEmmanuel Vadot label = "User"; 105f126890aSEmmanuel Vadot linux,code = <KEY_WAKEUP>; 106f126890aSEmmanuel Vadot gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>; 107f126890aSEmmanuel Vadot }; 108f126890aSEmmanuel Vadot }; 109f126890aSEmmanuel Vadot 110f126890aSEmmanuel Vadot /* This turns on vbus for otg for host mode (dwc2) */ 111f126890aSEmmanuel Vadot vcc5v_otg: vcc5v-otg-regulator { 112f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 113f126890aSEmmanuel Vadot enable-active-high; 114f126890aSEmmanuel Vadot gpio = <&gpiob 2 GPIO_ACTIVE_HIGH>; 115f126890aSEmmanuel Vadot regulator-name = "vcc5_host1"; 116f126890aSEmmanuel Vadot regulator-always-on; 117f126890aSEmmanuel Vadot }; 118f126890aSEmmanuel Vadot}; 119f126890aSEmmanuel Vadot 120f126890aSEmmanuel Vadot&rcc { 121f126890aSEmmanuel Vadot compatible = "st,stm32f469-rcc", "st,stm32f42xx-rcc", "st,stm32-rcc"; 122f126890aSEmmanuel Vadot}; 123f126890aSEmmanuel Vadot 124f126890aSEmmanuel Vadot&clk_hse { 125f126890aSEmmanuel Vadot clock-frequency = <8000000>; 126f126890aSEmmanuel Vadot}; 127f126890aSEmmanuel Vadot 128f126890aSEmmanuel Vadot&dma2d { 129f126890aSEmmanuel Vadot status = "okay"; 130f126890aSEmmanuel Vadot}; 131f126890aSEmmanuel Vadot 132f126890aSEmmanuel Vadot&dsi { 133f126890aSEmmanuel Vadot #address-cells = <1>; 134f126890aSEmmanuel Vadot #size-cells = <0>; 135f126890aSEmmanuel Vadot status = "okay"; 136f126890aSEmmanuel Vadot 137f126890aSEmmanuel Vadot ports { 138f126890aSEmmanuel Vadot #address-cells = <1>; 139f126890aSEmmanuel Vadot #size-cells = <0>; 140f126890aSEmmanuel Vadot 141f126890aSEmmanuel Vadot port@0 { 142f126890aSEmmanuel Vadot reg = <0>; 143f126890aSEmmanuel Vadot dsi_in: endpoint { 144f126890aSEmmanuel Vadot remote-endpoint = <<dc_out_dsi>; 145f126890aSEmmanuel Vadot }; 146f126890aSEmmanuel Vadot }; 147f126890aSEmmanuel Vadot 148f126890aSEmmanuel Vadot port@1 { 149f126890aSEmmanuel Vadot reg = <1>; 150f126890aSEmmanuel Vadot dsi_out: endpoint { 151f126890aSEmmanuel Vadot remote-endpoint = <&dsi_panel_in>; 152f126890aSEmmanuel Vadot }; 153f126890aSEmmanuel Vadot }; 154f126890aSEmmanuel Vadot }; 155f126890aSEmmanuel Vadot 156f126890aSEmmanuel Vadot panel@0 { 157f126890aSEmmanuel Vadot compatible = "orisetech,otm8009a"; 158f126890aSEmmanuel Vadot reg = <0>; /* dsi virtual channel (0..3) */ 159f126890aSEmmanuel Vadot reset-gpios = <&gpioh 7 GPIO_ACTIVE_LOW>; 160*8d13bc63SEmmanuel Vadot power-supply = <&vcc_3v3>; 161f126890aSEmmanuel Vadot status = "okay"; 162f126890aSEmmanuel Vadot 163f126890aSEmmanuel Vadot port { 164f126890aSEmmanuel Vadot dsi_panel_in: endpoint { 165f126890aSEmmanuel Vadot remote-endpoint = <&dsi_out>; 166f126890aSEmmanuel Vadot }; 167f126890aSEmmanuel Vadot }; 168f126890aSEmmanuel Vadot }; 169f126890aSEmmanuel Vadot}; 170f126890aSEmmanuel Vadot 171f126890aSEmmanuel Vadot<dc { 172f126890aSEmmanuel Vadot status = "okay"; 173f126890aSEmmanuel Vadot 174f126890aSEmmanuel Vadot port { 175f126890aSEmmanuel Vadot ltdc_out_dsi: endpoint { 176f126890aSEmmanuel Vadot remote-endpoint = <&dsi_in>; 177f126890aSEmmanuel Vadot }; 178f126890aSEmmanuel Vadot }; 179f126890aSEmmanuel Vadot}; 180f126890aSEmmanuel Vadot 181f126890aSEmmanuel Vadot&rtc { 182f126890aSEmmanuel Vadot status = "okay"; 183f126890aSEmmanuel Vadot}; 184f126890aSEmmanuel Vadot 185f126890aSEmmanuel Vadot&timers1 { 186f126890aSEmmanuel Vadot status = "okay"; 187f126890aSEmmanuel Vadot 188f126890aSEmmanuel Vadot pwm { 189f126890aSEmmanuel Vadot pinctrl-0 = <&pwm1_pins>; 190f126890aSEmmanuel Vadot pinctrl-names = "default"; 191f126890aSEmmanuel Vadot status = "okay"; 192f126890aSEmmanuel Vadot }; 193f126890aSEmmanuel Vadot 194f126890aSEmmanuel Vadot timer@0 { 195f126890aSEmmanuel Vadot status = "okay"; 196f126890aSEmmanuel Vadot }; 197f126890aSEmmanuel Vadot}; 198f126890aSEmmanuel Vadot 199f126890aSEmmanuel Vadot&timers3 { 200f126890aSEmmanuel Vadot status = "okay"; 201f126890aSEmmanuel Vadot 202f126890aSEmmanuel Vadot pwm { 203f126890aSEmmanuel Vadot pinctrl-0 = <&pwm3_pins>; 204f126890aSEmmanuel Vadot pinctrl-names = "default"; 205f126890aSEmmanuel Vadot status = "okay"; 206f126890aSEmmanuel Vadot }; 207f126890aSEmmanuel Vadot 208f126890aSEmmanuel Vadot timer@2 { 209f126890aSEmmanuel Vadot status = "okay"; 210f126890aSEmmanuel Vadot }; 211f126890aSEmmanuel Vadot}; 212f126890aSEmmanuel Vadot 213f126890aSEmmanuel Vadot&sdio { 214f126890aSEmmanuel Vadot status = "okay"; 215*8d13bc63SEmmanuel Vadot vmmc-supply = <&vcc_3v3>; 216f126890aSEmmanuel Vadot cd-gpios = <&gpiog 2 GPIO_ACTIVE_LOW>; 217f126890aSEmmanuel Vadot broken-cd; 218f126890aSEmmanuel Vadot pinctrl-names = "default", "opendrain"; 219f126890aSEmmanuel Vadot pinctrl-0 = <&sdio_pins>; 220f126890aSEmmanuel Vadot pinctrl-1 = <&sdio_pins_od>; 221f126890aSEmmanuel Vadot bus-width = <4>; 222f126890aSEmmanuel Vadot}; 223f126890aSEmmanuel Vadot 224f126890aSEmmanuel Vadot&timers5 { 225f126890aSEmmanuel Vadot /* Override timer5 to act as clockevent */ 226f126890aSEmmanuel Vadot compatible = "st,stm32-timer"; 227f126890aSEmmanuel Vadot interrupts = <50>; 228f126890aSEmmanuel Vadot status = "okay"; 229f126890aSEmmanuel Vadot /delete-property/#address-cells; 230f126890aSEmmanuel Vadot /delete-property/#size-cells; 231f126890aSEmmanuel Vadot /delete-property/clock-names; 232f126890aSEmmanuel Vadot /delete-node/pwm; 233f126890aSEmmanuel Vadot /delete-node/timer@4; 234f126890aSEmmanuel Vadot}; 235f126890aSEmmanuel Vadot 236f126890aSEmmanuel Vadot&usart3 { 237f126890aSEmmanuel Vadot pinctrl-0 = <&usart3_pins_a>; 238f126890aSEmmanuel Vadot pinctrl-names = "default"; 239f126890aSEmmanuel Vadot status = "okay"; 240f126890aSEmmanuel Vadot}; 241f126890aSEmmanuel Vadot 242f126890aSEmmanuel Vadot&usbotg_fs { 243f126890aSEmmanuel Vadot dr_mode = "host"; 244f126890aSEmmanuel Vadot pinctrl-0 = <&usbotg_fs_pins_a>; 245f126890aSEmmanuel Vadot pinctrl-names = "default"; 246f126890aSEmmanuel Vadot status = "okay"; 247f126890aSEmmanuel Vadot}; 248