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