0001 /*
0002 * Copyright 2017 - Vikas MANOCHA <vikas.manocha@st.com>
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 * Or, alternatively,
0020 *
0021 * b) Permission is hereby granted, free of charge, to any person
0022 * obtaining a copy of this software and associated documentation
0023 * files (the "Software"), to deal in the Software without
0024 * restriction, including without limitation the rights to use,
0025 * copy, modify, merge, publish, distribute, sublicense, and/or
0026 * sell copies of the Software, and to permit persons to whom the
0027 * Software is furnished to do so, subject to the following
0028 * conditions:
0029 *
0030 * The above copyright notice and this permission notice shall be
0031 * included in all copies or substantial portions of the Software.
0032 *
0033 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0034 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0035 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0036 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0037 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0038 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0039 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0040 * OTHER DEALINGS IN THE SOFTWARE.
0041 */
0042
0043 /dts-v1/;
0044 #include "stm32f746.dtsi"
0045 #include "stm32f769-pinctrl.dtsi"
0046 #include <dt-bindings/input/input.h>
0047 #include <dt-bindings/gpio/gpio.h>
0048
0049 / {
0050 model = "STMicroelectronics STM32F769-DISCO board";
0051 compatible = "st,stm32f769-disco", "st,stm32f769";
0052
0053 chosen {
0054 bootargs = "root=/dev/ram";
0055 stdout-path = "serial0:115200n8";
0056 };
0057
0058 memory@c0000000 {
0059 device_type = "memory";
0060 reg = <0xC0000000 0x1000000>;
0061 };
0062
0063 aliases {
0064 serial0 = &usart1;
0065 };
0066
0067 leds {
0068 compatible = "gpio-leds";
0069 led-green {
0070 gpios = <&gpioj 5 GPIO_ACTIVE_HIGH>;
0071 linux,default-trigger = "heartbeat";
0072 };
0073 led-red {
0074 gpios = <&gpioj 13 GPIO_ACTIVE_HIGH>;
0075 };
0076 };
0077
0078 gpio-keys {
0079 compatible = "gpio-keys";
0080 autorepeat;
0081 button-0 {
0082 label = "User";
0083 linux,code = <KEY_HOME>;
0084 gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>;
0085 };
0086 };
0087
0088 usbotg_hs_phy: usb-phy {
0089 #phy-cells = <0>;
0090 compatible = "usb-nop-xceiv";
0091 clocks = <&rcc 0 STM32F7_AHB1_CLOCK(OTGHSULPI)>;
0092 clock-names = "main_clk";
0093 };
0094
0095 mmc_vcard: mmc_vcard {
0096 compatible = "regulator-fixed";
0097 regulator-name = "mmc_vcard";
0098 regulator-min-microvolt = <3300000>;
0099 regulator-max-microvolt = <3300000>;
0100 };
0101 };
0102
0103 &rcc {
0104 compatible = "st,stm32f769-rcc", "st,stm32f746-rcc", "st,stm32-rcc";
0105 };
0106
0107 &cec {
0108 pinctrl-0 = <&cec_pins_a>;
0109 pinctrl-names = "default";
0110 status = "okay";
0111 };
0112
0113 &clk_hse {
0114 clock-frequency = <25000000>;
0115 };
0116
0117 &i2c1 {
0118 pinctrl-0 = <&i2c1_pins_b>;
0119 pinctrl-names = "default";
0120 i2c-scl-rising-time-ns = <185>;
0121 i2c-scl-falling-time-ns = <20>;
0122 status = "okay";
0123 };
0124
0125 &rtc {
0126 status = "okay";
0127 };
0128
0129 &sdio2 {
0130 status = "okay";
0131 vmmc-supply = <&mmc_vcard>;
0132 cd-gpios = <&gpioi 15 GPIO_ACTIVE_LOW>;
0133 broken-cd;
0134 pinctrl-names = "default", "opendrain";
0135 pinctrl-0 = <&sdio_pins_b>;
0136 pinctrl-1 = <&sdio_pins_od_b>;
0137 bus-width = <4>;
0138 };
0139
0140 &timers5 {
0141 /* Override timer5 to act as clockevent */
0142 compatible = "st,stm32-timer";
0143 interrupts = <50>;
0144 status = "okay";
0145 /delete-property/#address-cells;
0146 /delete-property/#size-cells;
0147 /delete-property/clock-names;
0148 /delete-node/pwm;
0149 /delete-node/timer@4;
0150 };
0151
0152 &usart1 {
0153 pinctrl-0 = <&usart1_pins_a>;
0154 pinctrl-names = "default";
0155 status = "okay";
0156 };
0157
0158 &usbotg_hs {
0159 dr_mode = "otg";
0160 phys = <&usbotg_hs_phy>;
0161 phy-names = "usb2-phy";
0162 pinctrl-0 = <&usbotg_hs_pins_a>;
0163 pinctrl-names = "default";
0164 status = "okay";
0165 };