1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Copyright (C) 2020 Marcin Sloniewski <marcin.sloniewski@gmail.com>. 4*f126890aSEmmanuel Vadot */ 5*f126890aSEmmanuel Vadot 6*f126890aSEmmanuel Vadot/dts-v1/; 7*f126890aSEmmanuel Vadot 8*f126890aSEmmanuel Vadot#include "stm32mp157c-odyssey-som.dtsi" 9*f126890aSEmmanuel Vadot 10*f126890aSEmmanuel Vadot/ { 11*f126890aSEmmanuel Vadot model = "Seeed Studio Odyssey-STM32MP157C Board"; 12*f126890aSEmmanuel Vadot compatible = "seeed,stm32mp157c-odyssey", 13*f126890aSEmmanuel Vadot "seeed,stm32mp157c-odyssey-som", "st,stm32mp157"; 14*f126890aSEmmanuel Vadot 15*f126890aSEmmanuel Vadot aliases { 16*f126890aSEmmanuel Vadot ethernet0 = ðernet0; 17*f126890aSEmmanuel Vadot serial0 = &uart4; 18*f126890aSEmmanuel Vadot }; 19*f126890aSEmmanuel Vadot 20*f126890aSEmmanuel Vadot chosen { 21*f126890aSEmmanuel Vadot stdout-path = "serial0:115200n8"; 22*f126890aSEmmanuel Vadot }; 23*f126890aSEmmanuel Vadot}; 24*f126890aSEmmanuel Vadot 25*f126890aSEmmanuel Vadot&dcmi { 26*f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 27*f126890aSEmmanuel Vadot pinctrl-0 = <&dcmi_pins_b>; 28*f126890aSEmmanuel Vadot pinctrl-1 = <&dcmi_sleep_pins_b>; 29*f126890aSEmmanuel Vadot}; 30*f126890aSEmmanuel Vadot 31*f126890aSEmmanuel Vadotðernet0 { 32*f126890aSEmmanuel Vadot status = "okay"; 33*f126890aSEmmanuel Vadot pinctrl-0 = <ðernet0_rgmii_pins_a>; 34*f126890aSEmmanuel Vadot pinctrl-1 = <ðernet0_rgmii_sleep_pins_a>; 35*f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 36*f126890aSEmmanuel Vadot phy-mode = "rgmii-id"; 37*f126890aSEmmanuel Vadot max-speed = <1000>; 38*f126890aSEmmanuel Vadot phy-handle = <&phy0>; 39*f126890aSEmmanuel Vadot assigned-clocks = <&rcc ETHCK_K>, <&rcc PLL4_P>; 40*f126890aSEmmanuel Vadot assigned-clock-parents = <&rcc PLL4_P>; 41*f126890aSEmmanuel Vadot assigned-clock-rates = <125000000>; /* Clock PLL4 to 750Mhz in ATF/U-Boot */ 42*f126890aSEmmanuel Vadot st,eth-clk-sel; 43*f126890aSEmmanuel Vadot 44*f126890aSEmmanuel Vadot mdio { 45*f126890aSEmmanuel Vadot #address-cells = <1>; 46*f126890aSEmmanuel Vadot #size-cells = <0>; 47*f126890aSEmmanuel Vadot compatible = "snps,dwmac-mdio"; 48*f126890aSEmmanuel Vadot phy0: ethernet-phy@7 { /* KSZ9031RN */ 49*f126890aSEmmanuel Vadot reg = <7>; 50*f126890aSEmmanuel Vadot reset-gpios = <&gpiog 0 GPIO_ACTIVE_LOW>; /* ETH_RST# */ 51*f126890aSEmmanuel Vadot reset-assert-us = <10000>; 52*f126890aSEmmanuel Vadot reset-deassert-us = <300>; 53*f126890aSEmmanuel Vadot }; 54*f126890aSEmmanuel Vadot }; 55*f126890aSEmmanuel Vadot}; 56*f126890aSEmmanuel Vadot 57*f126890aSEmmanuel Vadot&i2c1 { 58*f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 59*f126890aSEmmanuel Vadot pinctrl-0 = <&i2c1_pins_a>; 60*f126890aSEmmanuel Vadot pinctrl-1 = <&i2c1_sleep_pins_a>; 61*f126890aSEmmanuel Vadot i2c-scl-rising-time-ns = <100>; 62*f126890aSEmmanuel Vadot i2c-scl-falling-time-ns = <7>; 63*f126890aSEmmanuel Vadot status = "okay"; 64*f126890aSEmmanuel Vadot /delete-property/dmas; 65*f126890aSEmmanuel Vadot /delete-property/dma-names; 66*f126890aSEmmanuel Vadot}; 67*f126890aSEmmanuel Vadot 68*f126890aSEmmanuel Vadot&sdmmc1 { 69*f126890aSEmmanuel Vadot pinctrl-names = "default", "opendrain", "sleep"; 70*f126890aSEmmanuel Vadot pinctrl-0 = <&sdmmc1_b4_pins_a>; 71*f126890aSEmmanuel Vadot pinctrl-1 = <&sdmmc1_b4_od_pins_a>; 72*f126890aSEmmanuel Vadot pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>; 73*f126890aSEmmanuel Vadot cd-gpios = <&gpioi 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; 74*f126890aSEmmanuel Vadot disable-wp; 75*f126890aSEmmanuel Vadot st,neg-edge; 76*f126890aSEmmanuel Vadot bus-width = <4>; 77*f126890aSEmmanuel Vadot vmmc-supply = <&v3v3>; 78*f126890aSEmmanuel Vadot status = "okay"; 79*f126890aSEmmanuel Vadot}; 80*f126890aSEmmanuel Vadot 81*f126890aSEmmanuel Vadot&uart4 { 82*f126890aSEmmanuel Vadot pinctrl-names = "default"; 83*f126890aSEmmanuel Vadot pinctrl-0 = <&uart4_pins_a>; 84*f126890aSEmmanuel Vadot /delete-property/dmas; 85*f126890aSEmmanuel Vadot /delete-property/dma-names; 86*f126890aSEmmanuel Vadot status = "okay"; 87*f126890aSEmmanuel Vadot}; 88*f126890aSEmmanuel Vadot 89