Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright 2016 - Lee Jones <lee.jones@linaro.org>
0003  *
0004  * This file is dual-licensed: you can use it either under the terms
0005  * of the GPL or the X11 license, at your option. Note that this dual
0006  * licensing only applies to this file, and not this project as a
0007  * whole.
0008  *
0009  *  a) This file is free software; you can redistribute it and/or
0010  *     modify it under the terms of the GNU General Public License as
0011  *     published by the Free Software Foundation; either version 2 of the
0012  *     License, or (at your option) any later version.
0013  *
0014  *     This file is distributed in the hope that it will be useful,
0015  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
0016  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0017  *     GNU General Public License for more details.
0018  *
0019  *     You should have received a copy of the GNU General Public
0020  *     License along with this file; if not, write to the Free
0021  *     Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
0022  *     MA 02110-1301 USA
0023  *
0024  * Or, alternatively,
0025  *
0026  *  b) Permission is hereby granted, free of charge, to any person
0027  *     obtaining a copy of this software and associated documentation
0028  *     files (the "Software"), to deal in the Software without
0029  *     restriction, including without limitation the rights to use,
0030  *     copy, modify, merge, publish, distribute, sublicense, and/or
0031  *     sell copies of the Software, and to permit persons to whom the
0032  *     Software is furnished to do so, subject to the following
0033  *     conditions:
0034  *
0035  *     The above copyright notice and this permission notice shall be
0036  *     included in all copies or substantial portions of the Software.
0037  *
0038  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0039  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0040  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0041  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0042  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0043  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0044  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0045  *     OTHER DEALINGS IN THE SOFTWARE.
0046  */
0047 
0048 /dts-v1/;
0049 #include "stm32f469.dtsi"
0050 #include "stm32f469-pinctrl.dtsi"
0051 #include <dt-bindings/gpio/gpio.h>
0052 #include <dt-bindings/input/input.h>
0053 
0054 / {
0055         model = "STMicroelectronics STM32F469i-DISCO board";
0056         compatible = "st,stm32f469i-disco", "st,stm32f469";
0057 
0058         chosen {
0059                 bootargs = "root=/dev/ram";
0060                 stdout-path = "serial0:115200n8";
0061         };
0062 
0063         memory@0 {
0064                 device_type = "memory";
0065                 reg = <0x00000000 0x1000000>;
0066         };
0067 
0068         aliases {
0069                 serial0 = &usart3;
0070         };
0071 
0072         mmc_vcard: mmc_vcard {
0073                 compatible = "regulator-fixed";
0074                 regulator-name = "mmc_vcard";
0075                 regulator-min-microvolt = <3300000>;
0076                 regulator-max-microvolt = <3300000>;
0077         };
0078 
0079         vdd_dsi: vdd-dsi {
0080                 compatible = "regulator-fixed";
0081                 regulator-name = "vdd_dsi";
0082                 regulator-min-microvolt = <3300000>;
0083                 regulator-max-microvolt = <3300000>;
0084         };
0085 
0086         soc {
0087                 dma-ranges = <0xc0000000 0x0 0x10000000>;
0088         };
0089 
0090         leds {
0091                 compatible = "gpio-leds";
0092                 led-green {
0093                         gpios = <&gpiog 6 GPIO_ACTIVE_LOW>;
0094                         linux,default-trigger = "heartbeat";
0095                 };
0096                 led-orange {
0097                         gpios = <&gpiod 4 GPIO_ACTIVE_LOW>;
0098                 };
0099                 led-red {
0100                         gpios = <&gpiod 5 GPIO_ACTIVE_LOW>;
0101                 };
0102                 led-blue {
0103                         gpios = <&gpiok 3 GPIO_ACTIVE_LOW>;
0104                 };
0105         };
0106 
0107         gpio-keys {
0108                 compatible = "gpio-keys";
0109                 autorepeat;
0110                 button-0 {
0111                         label = "User";
0112                         linux,code = <KEY_WAKEUP>;
0113                         gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>;
0114                 };
0115         };
0116 
0117         /* This turns on vbus for otg for host mode (dwc2) */
0118         vcc5v_otg: vcc5v-otg-regulator {
0119                 compatible = "regulator-fixed";
0120                 enable-active-high;
0121                 gpio = <&gpiob 2 GPIO_ACTIVE_HIGH>;
0122                 regulator-name = "vcc5_host1";
0123                 regulator-always-on;
0124         };
0125 };
0126 
0127 &rcc {
0128         compatible = "st,stm32f469-rcc", "st,stm32f42xx-rcc", "st,stm32-rcc";
0129 };
0130 
0131 &clk_hse {
0132         clock-frequency = <8000000>;
0133 };
0134 
0135 &dma2d {
0136         status = "okay";
0137 };
0138 
0139 &dsi {
0140         #address-cells = <1>;
0141         #size-cells = <0>;
0142         status = "okay";
0143 
0144         ports {
0145                 #address-cells = <1>;
0146                 #size-cells = <0>;
0147 
0148                 port@0 {
0149                         reg = <0>;
0150                         dsi_in: endpoint {
0151                                 remote-endpoint = <&ltdc_out_dsi>;
0152                         };
0153                 };
0154 
0155                 port@1 {
0156                         reg = <1>;
0157                         dsi_out: endpoint {
0158                                 remote-endpoint = <&dsi_panel_in>;
0159                         };
0160                 };
0161         };
0162 
0163         panel-dsi@0 {
0164                 compatible = "orisetech,otm8009a";
0165                 reg = <0>; /* dsi virtual channel (0..3) */
0166                 reset-gpios = <&gpioh 7 GPIO_ACTIVE_LOW>;
0167                 power-supply = <&vdd_dsi>;
0168                 status = "okay";
0169 
0170                 port {
0171                         dsi_panel_in: endpoint {
0172                                 remote-endpoint = <&dsi_out>;
0173                         };
0174                 };
0175         };
0176 };
0177 
0178 &ltdc {
0179         status = "okay";
0180 
0181         port {
0182                 ltdc_out_dsi: endpoint@0 {
0183                         remote-endpoint = <&dsi_in>;
0184                 };
0185         };
0186 };
0187 
0188 &rtc {
0189         status = "okay";
0190 };
0191 
0192 &timers1 {
0193         status = "okay";
0194 
0195         pwm {
0196                 pinctrl-0 = <&pwm1_pins>;
0197                 pinctrl-names = "default";
0198                 status = "okay";
0199         };
0200 
0201         timer@0 {
0202                 status = "okay";
0203         };
0204 };
0205 
0206 &timers3 {
0207         status = "okay";
0208 
0209         pwm {
0210                 pinctrl-0 = <&pwm3_pins>;
0211                 pinctrl-names = "default";
0212                 status = "okay";
0213         };
0214 
0215         timer@2 {
0216                 status = "okay";
0217         };
0218 };
0219 
0220 &sdio {
0221         status = "okay";
0222         vmmc-supply = <&mmc_vcard>;
0223         cd-gpios = <&gpiog 2 GPIO_ACTIVE_LOW>;
0224         broken-cd;
0225         pinctrl-names = "default", "opendrain";
0226         pinctrl-0 = <&sdio_pins>;
0227         pinctrl-1 = <&sdio_pins_od>;
0228         bus-width = <4>;
0229 };
0230 
0231 &timers5 {
0232         /* Override timer5 to act as clockevent */
0233         compatible = "st,stm32-timer";
0234         interrupts = <50>;
0235         status = "okay";
0236         /delete-property/#address-cells;
0237         /delete-property/#size-cells;
0238         /delete-property/clock-names;
0239         /delete-node/pwm;
0240         /delete-node/timer@4;
0241 };
0242 
0243 &usart3 {
0244         pinctrl-0 = <&usart3_pins_a>;
0245         pinctrl-names = "default";
0246         status = "okay";
0247 };
0248 
0249 &usbotg_fs {
0250         dr_mode = "host";
0251         pinctrl-0 = <&usbotg_fs_pins_a>;
0252         pinctrl-names = "default";
0253         status = "okay";
0254 };