18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Copyright 2017 - Alexandre Torgue <alexandre.torgue@st.com> 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * This file is dual-licensed: you can use it either under the terms 58c2ecf20Sopenharmony_ci * of the GPL or the X11 license, at your option. Note that this dual 68c2ecf20Sopenharmony_ci * licensing only applies to this file, and not this project as a 78c2ecf20Sopenharmony_ci * whole. 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci * a) This file is free software; you can redistribute it and/or 108c2ecf20Sopenharmony_ci * modify it under the terms of the GNU General Public License as 118c2ecf20Sopenharmony_ci * published by the Free Software Foundation; either version 2 of the 128c2ecf20Sopenharmony_ci * License, or (at your option) any later version. 138c2ecf20Sopenharmony_ci * 148c2ecf20Sopenharmony_ci * This file is distributed in the hope that it will be useful, 158c2ecf20Sopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of 168c2ecf20Sopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 178c2ecf20Sopenharmony_ci * GNU General Public License for more details. 188c2ecf20Sopenharmony_ci * 198c2ecf20Sopenharmony_ci * Or, alternatively, 208c2ecf20Sopenharmony_ci * 218c2ecf20Sopenharmony_ci * b) Permission is hereby granted, free of charge, to any person 228c2ecf20Sopenharmony_ci * obtaining a copy of this software and associated documentation 238c2ecf20Sopenharmony_ci * files (the "Software"), to deal in the Software without 248c2ecf20Sopenharmony_ci * restriction, including without limitation the rights to use, 258c2ecf20Sopenharmony_ci * copy, modify, merge, publish, distribute, sublicense, and/or 268c2ecf20Sopenharmony_ci * sell copies of the Software, and to permit persons to whom the 278c2ecf20Sopenharmony_ci * Software is furnished to do so, subject to the following 288c2ecf20Sopenharmony_ci * conditions: 298c2ecf20Sopenharmony_ci * 308c2ecf20Sopenharmony_ci * The above copyright notice and this permission notice shall be 318c2ecf20Sopenharmony_ci * included in all copies or substantial portions of the Software. 328c2ecf20Sopenharmony_ci * 338c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 348c2ecf20Sopenharmony_ci * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 358c2ecf20Sopenharmony_ci * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 368c2ecf20Sopenharmony_ci * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 378c2ecf20Sopenharmony_ci * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 388c2ecf20Sopenharmony_ci * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 398c2ecf20Sopenharmony_ci * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 408c2ecf20Sopenharmony_ci * OTHER DEALINGS IN THE SOFTWARE. 418c2ecf20Sopenharmony_ci */ 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci/dts-v1/; 448c2ecf20Sopenharmony_ci#include "stm32h743.dtsi" 458c2ecf20Sopenharmony_ci#include "stm32h743-pinctrl.dtsi" 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ci/ { 488c2ecf20Sopenharmony_ci model = "STMicroelectronics STM32H743i-EVAL board"; 498c2ecf20Sopenharmony_ci compatible = "st,stm32h743i-eval", "st,stm32h743"; 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ci chosen { 528c2ecf20Sopenharmony_ci bootargs = "root=/dev/ram"; 538c2ecf20Sopenharmony_ci stdout-path = "serial0:115200n8"; 548c2ecf20Sopenharmony_ci }; 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci memory@d0000000 { 578c2ecf20Sopenharmony_ci device_type = "memory"; 588c2ecf20Sopenharmony_ci reg = <0xd0000000 0x2000000>; 598c2ecf20Sopenharmony_ci }; 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_ci aliases { 628c2ecf20Sopenharmony_ci serial0 = &usart1; 638c2ecf20Sopenharmony_ci }; 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_ci vdda: regulator-vdda { 668c2ecf20Sopenharmony_ci compatible = "regulator-fixed"; 678c2ecf20Sopenharmony_ci regulator-name = "vdda"; 688c2ecf20Sopenharmony_ci regulator-min-microvolt = <3300000>; 698c2ecf20Sopenharmony_ci regulator-max-microvolt = <3300000>; 708c2ecf20Sopenharmony_ci regulator-always-on; 718c2ecf20Sopenharmony_ci }; 728c2ecf20Sopenharmony_ci 738c2ecf20Sopenharmony_ci v2v9_sd: regulator-v2v9_sd { 748c2ecf20Sopenharmony_ci compatible = "regulator-fixed"; 758c2ecf20Sopenharmony_ci regulator-name = "v2v9_sd"; 768c2ecf20Sopenharmony_ci regulator-min-microvolt = <2900000>; 778c2ecf20Sopenharmony_ci regulator-max-microvolt = <2900000>; 788c2ecf20Sopenharmony_ci regulator-always-on; 798c2ecf20Sopenharmony_ci }; 808c2ecf20Sopenharmony_ci 818c2ecf20Sopenharmony_ci usbotg_hs_phy: usb-phy { 828c2ecf20Sopenharmony_ci #phy-cells = <0>; 838c2ecf20Sopenharmony_ci compatible = "usb-nop-xceiv"; 848c2ecf20Sopenharmony_ci clocks = <&rcc USB1ULPI_CK>; 858c2ecf20Sopenharmony_ci clock-names = "main_clk"; 868c2ecf20Sopenharmony_ci }; 878c2ecf20Sopenharmony_ci}; 888c2ecf20Sopenharmony_ci 898c2ecf20Sopenharmony_ci&adc_12 { 908c2ecf20Sopenharmony_ci vdda-supply = <&vdda>; 918c2ecf20Sopenharmony_ci vref-supply = <&vdda>; 928c2ecf20Sopenharmony_ci status = "okay"; 938c2ecf20Sopenharmony_ci adc1: adc@0 { 948c2ecf20Sopenharmony_ci /* potentiometer */ 958c2ecf20Sopenharmony_ci st,adc-channels = <0>; 968c2ecf20Sopenharmony_ci status = "okay"; 978c2ecf20Sopenharmony_ci }; 988c2ecf20Sopenharmony_ci}; 998c2ecf20Sopenharmony_ci 1008c2ecf20Sopenharmony_ci&clk_hse { 1018c2ecf20Sopenharmony_ci clock-frequency = <25000000>; 1028c2ecf20Sopenharmony_ci}; 1038c2ecf20Sopenharmony_ci 1048c2ecf20Sopenharmony_ci&i2c1 { 1058c2ecf20Sopenharmony_ci pinctrl-0 = <&i2c1_pins_a>; 1068c2ecf20Sopenharmony_ci pinctrl-names = "default"; 1078c2ecf20Sopenharmony_ci i2c-scl-rising-time-ns = <185>; 1088c2ecf20Sopenharmony_ci i2c-scl-falling-time-ns = <20>; 1098c2ecf20Sopenharmony_ci status = "okay"; 1108c2ecf20Sopenharmony_ci}; 1118c2ecf20Sopenharmony_ci 1128c2ecf20Sopenharmony_ci&rtc { 1138c2ecf20Sopenharmony_ci status = "okay"; 1148c2ecf20Sopenharmony_ci}; 1158c2ecf20Sopenharmony_ci 1168c2ecf20Sopenharmony_ci&mac { 1178c2ecf20Sopenharmony_ci status = "disabled"; 1188c2ecf20Sopenharmony_ci pinctrl-0 = <ðernet_rmii>; 1198c2ecf20Sopenharmony_ci pinctrl-names = "default"; 1208c2ecf20Sopenharmony_ci phy-mode = "rmii"; 1218c2ecf20Sopenharmony_ci phy-handle = <&phy0>; 1228c2ecf20Sopenharmony_ci 1238c2ecf20Sopenharmony_ci mdio0 { 1248c2ecf20Sopenharmony_ci #address-cells = <1>; 1258c2ecf20Sopenharmony_ci #size-cells = <0>; 1268c2ecf20Sopenharmony_ci compatible = "snps,dwmac-mdio"; 1278c2ecf20Sopenharmony_ci phy0: ethernet-phy@0 { 1288c2ecf20Sopenharmony_ci reg = <0>; 1298c2ecf20Sopenharmony_ci }; 1308c2ecf20Sopenharmony_ci }; 1318c2ecf20Sopenharmony_ci}; 1328c2ecf20Sopenharmony_ci 1338c2ecf20Sopenharmony_ci&sdmmc1 { 1348c2ecf20Sopenharmony_ci pinctrl-names = "default", "opendrain", "sleep"; 1358c2ecf20Sopenharmony_ci pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>; 1368c2ecf20Sopenharmony_ci pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_a>; 1378c2ecf20Sopenharmony_ci pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_a>; 1388c2ecf20Sopenharmony_ci broken-cd; 1398c2ecf20Sopenharmony_ci st,sig-dir; 1408c2ecf20Sopenharmony_ci st,neg-edge; 1418c2ecf20Sopenharmony_ci st,use-ckin; 1428c2ecf20Sopenharmony_ci bus-width = <4>; 1438c2ecf20Sopenharmony_ci vmmc-supply = <&v2v9_sd>; 1448c2ecf20Sopenharmony_ci status = "okay"; 1458c2ecf20Sopenharmony_ci}; 1468c2ecf20Sopenharmony_ci 1478c2ecf20Sopenharmony_ci&usart1 { 1488c2ecf20Sopenharmony_ci pinctrl-0 = <&usart1_pins>; 1498c2ecf20Sopenharmony_ci pinctrl-names = "default"; 1508c2ecf20Sopenharmony_ci status = "okay"; 1518c2ecf20Sopenharmony_ci}; 1528c2ecf20Sopenharmony_ci 1538c2ecf20Sopenharmony_ci&usbotg_hs { 1548c2ecf20Sopenharmony_ci pinctrl-0 = <&usbotg_hs_pins_a>; 1558c2ecf20Sopenharmony_ci pinctrl-names = "default"; 1568c2ecf20Sopenharmony_ci phys = <&usbotg_hs_phy>; 1578c2ecf20Sopenharmony_ci phy-names = "usb2-phy"; 1588c2ecf20Sopenharmony_ci dr_mode = "otg"; 1598c2ecf20Sopenharmony_ci status = "okay"; 1608c2ecf20Sopenharmony_ci}; 161