0001 /*
0002 * Copyright 2021 - Dillon Min <dillon.minfei@gmail.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 * For art-pi board resources, you can refer to link:
0043 * https://art-pi.gitee.io/website/
0044 */
0045
0046 /dts-v1/;
0047 #include "stm32h750.dtsi"
0048 #include "stm32h7-pinctrl.dtsi"
0049 #include <dt-bindings/interrupt-controller/irq.h>
0050 #include <dt-bindings/gpio/gpio.h>
0051
0052 / {
0053 model = "RT-Thread STM32H750i-ART-PI board";
0054 compatible = "st,stm32h750i-art-pi", "st,stm32h750";
0055
0056 chosen {
0057 bootargs = "root=/dev/ram";
0058 stdout-path = "serial0:2000000n8";
0059 };
0060
0061 memory@c0000000 {
0062 device_type = "memory";
0063 reg = <0xc0000000 0x2000000>;
0064 };
0065
0066 reserved-memory {
0067 #address-cells = <1>;
0068 #size-cells = <1>;
0069 ranges;
0070
0071 linux,cma {
0072 compatible = "shared-dma-pool";
0073 no-map;
0074 size = <0x100000>;
0075 linux,dma-default;
0076 };
0077 };
0078
0079 aliases {
0080 serial0 = &uart4;
0081 serial1 = &usart3;
0082 };
0083
0084 leds {
0085 compatible = "gpio-leds";
0086 led-red {
0087 gpios = <&gpioi 8 0>;
0088 };
0089 led-green {
0090 gpios = <&gpioc 15 0>;
0091 linux,default-trigger = "heartbeat";
0092 };
0093 };
0094
0095 v3v3: regulator-v3v3 {
0096 compatible = "regulator-fixed";
0097 regulator-name = "v3v3";
0098 regulator-min-microvolt = <3300000>;
0099 regulator-max-microvolt = <3300000>;
0100 regulator-always-on;
0101 };
0102
0103 wlan_pwr: regulator-wlan {
0104 compatible = "regulator-fixed";
0105
0106 regulator-name = "wl-reg";
0107 regulator-min-microvolt = <3300000>;
0108 regulator-max-microvolt = <3300000>;
0109
0110 gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
0111 enable-active-high;
0112 };
0113 };
0114
0115 &clk_hse {
0116 clock-frequency = <25000000>;
0117 };
0118
0119 &dma1 {
0120 status = "okay";
0121 };
0122
0123 &dma2 {
0124 status = "okay";
0125 };
0126
0127 &mac {
0128 status = "disabled";
0129 pinctrl-0 = <ðernet_rmii>;
0130 pinctrl-names = "default";
0131 phy-mode = "rmii";
0132 phy-handle = <&phy0>;
0133
0134 mdio0 {
0135 #address-cells = <1>;
0136 #size-cells = <0>;
0137 compatible = "snps,dwmac-mdio";
0138 phy0: ethernet-phy@0 {
0139 reg = <0>;
0140 };
0141 };
0142 };
0143
0144 &sdmmc1 {
0145 pinctrl-names = "default", "opendrain", "sleep";
0146 pinctrl-0 = <&sdmmc1_b4_pins_a>;
0147 pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
0148 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
0149 broken-cd;
0150 st,neg-edge;
0151 bus-width = <4>;
0152 vmmc-supply = <&v3v3>;
0153 status = "okay";
0154 };
0155
0156 &sdmmc2 {
0157 pinctrl-names = "default", "opendrain", "sleep";
0158 pinctrl-0 = <&sdmmc2_b4_pins_a>;
0159 pinctrl-1 = <&sdmmc2_b4_od_pins_a>;
0160 pinctrl-2 = <&sdmmc2_b4_sleep_pins_a>;
0161 broken-cd;
0162 non-removable;
0163 st,neg-edge;
0164 bus-width = <4>;
0165 vmmc-supply = <&wlan_pwr>;
0166 status = "okay";
0167
0168 #address-cells = <1>;
0169 #size-cells = <0>;
0170 brcmf: bcrmf@1 {
0171 reg = <1>;
0172 compatible = "brcm,bcm4329-fmac";
0173 };
0174 };
0175
0176 &spi1 {
0177 status = "okay";
0178 pinctrl-0 = <&spi1_pins>;
0179 pinctrl-names = "default";
0180 cs-gpios = <&gpioa 4 GPIO_ACTIVE_LOW>;
0181 dmas = <&dmamux1 37 0x400 0x05>,
0182 <&dmamux1 38 0x400 0x05>;
0183 dma-names = "rx", "tx";
0184
0185 flash@0 {
0186 #address-cells = <1>;
0187 #size-cells = <1>;
0188 compatible = "winbond,w25q128", "jedec,spi-nor";
0189 reg = <0>;
0190 spi-max-frequency = <80000000>;
0191
0192 partition@0 {
0193 label = "root filesystem";
0194 reg = <0 0x1000000>;
0195 };
0196 };
0197 };
0198
0199 &usart2 {
0200 pinctrl-0 = <&usart2_pins>;
0201 pinctrl-names = "default";
0202 status = "disabled";
0203 };
0204
0205 &usart3 {
0206 pinctrl-names = "default";
0207 pinctrl-0 = <&usart3_pins>;
0208 dmas = <&dmamux1 45 0x400 0x05>,
0209 <&dmamux1 46 0x400 0x05>;
0210 dma-names = "rx", "tx";
0211 st,hw-flow-ctrl;
0212 status = "okay";
0213
0214 bluetooth {
0215 compatible = "brcm,bcm43438-bt";
0216 host-wakeup-gpios = <&gpioc 0 GPIO_ACTIVE_HIGH>;
0217 device-wakeup-gpios = <&gpioi 10 GPIO_ACTIVE_HIGH>;
0218 shutdown-gpios = <&gpioi 11 GPIO_ACTIVE_HIGH>;
0219 max-speed = <115200>;
0220 };
0221 };
0222
0223 &uart4 {
0224 pinctrl-0 = <&uart4_pins>;
0225 pinctrl-names = "default";
0226 status = "okay";
0227 };
0228
0229