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