blob: b6210cf8b2ab1c312e5aeba0788a794f3781f98e [file] [log] [blame]
Marcin Sloniewski83e7c202020-07-08 19:56:22 +02001// 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
12 model = "Seeed Studio Odyssey-STM32MP157C Board";
13 compatible = "seeed,odyssey-stm32mp157c", "st,stm32mp157";
14
15 aliases {
16 ethernet0 = &ethernet0;
17 serial0 = &uart4;
18 };
19
20 chosen {
21 stdout-path = "serial0:115200n8";
22 };
23
24 led {
25 compatible = "gpio-leds";
26 blue {
27 label = "heartbeat";
28 gpios = <&gpiog 3 GPIO_ACTIVE_HIGH>;
29 linux,default-trigger = "heartbeat";
30 default-state = "off";
31 };
32 };
33
34};
35
36&adc {
37 pinctrl-names = "default";
38 pinctrl-0 = <&adc12_ain_pins_a>, <&adc12_usb_cc_pins_a>;
39 vdd-supply = <&vdd>;
40 vdda-supply = <&vdd>;
41 vref-supply = <&vrefbuf>;
42 status = "disabled";
43 adc1: adc@0 {
44 /*
45 * Type-C USB_PWR_CC1 & USB_PWR_CC2 on in18 & in19.
46 * Use at least 5 * RC time, e.g. 5 * (Rp + Rd) * C:
47 * 5 * (56 + 47kOhms) * 5pF => 2.5us.
48 * Use arbitrary margin here (e.g. 5us).
49 */
50 st,min-sample-time-nsecs = <5000>;
51 /* AIN connector, USB Type-C CC1 & CC2 */
52 st,adc-channels = <0 1 6 13 18 19>;
53 status = "okay";
54 };
55 adc2: adc@100 {
56 /* AIN connector, USB Type-C CC1 & CC2 */
57 st,adc-channels = <0 1 2 6 18 19>;
58 st,min-sample-time-nsecs = <5000>;
59 status = "okay";
60 };
61};
62
63&cec {
64 pinctrl-names = "default", "sleep";
65 pinctrl-0 = <&cec_pins_b>;
66 pinctrl-1 = <&cec_sleep_pins_b>;
67 status = "okay";
68};
69
70&ethernet0 {
71 status = "okay";
72 pinctrl-0 = <&ethernet0_rgmii_pins_a>;
73 pinctrl-1 = <&ethernet0_rgmii_sleep_pins_a>;
74 pinctrl-names = "default", "sleep";
75 phy-mode = "rgmii-id";
76 max-speed = <1000>;
77 phy-handle = <&phy0>;
Heesub Shinae1879a2024-04-28 23:24:03 +090078 st,ext-phyclk;
Marcin Sloniewski83e7c202020-07-08 19:56:22 +020079
80 mdio0 {
81 #address-cells = <1>;
82 #size-cells = <0>;
83 compatible = "snps,dwmac-mdio";
Heesub Shin8e705772024-04-28 23:24:04 +090084 phy0: ethernet-phy@7 {
85 reg = <7>;
Marcin Sloniewski83e7c202020-07-08 19:56:22 +020086 };
87 };
88};
89
90&gpu {
91 contiguous-area = <&gpu_reserved>;
92 status = "okay";
93};
94
95&i2c1 {
96 pinctrl-names = "default", "sleep";
97 pinctrl-0 = <&i2c1_pins_a>;
98 pinctrl-1 = <&i2c1_sleep_pins_a>;
99 i2c-scl-rising-time-ns = <100>;
100 i2c-scl-falling-time-ns = <7>;
101 status = "okay";
102 /delete-property/dmas;
103 /delete-property/dma-names;
104};
105
106&i2s2 {
107 clocks = <&rcc SPI2>, <&rcc SPI2_K>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
108 clock-names = "pclk", "i2sclk", "x8k", "x11k";
109 pinctrl-names = "default", "sleep";
110 pinctrl-0 = <&i2s2_pins_a>;
111 pinctrl-1 = <&i2s2_sleep_pins_a>;
112 status = "okay";
113};
114
115&pwr_regulators {
116 vdd-supply = <&vdd>;
117 vdd_3v3_usbfs-supply = <&vdd_usb>;
118};
119
120&sdmmc1 {
121 pinctrl-names = "default", "opendrain", "sleep";
122 pinctrl-0 = <&sdmmc1_b4_pins_a>;
123 pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
124 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
125 broken-cd;
126 disable-wp;
127 st,neg-edge;
128 bus-width = <4>;
129 vmmc-supply = <&v3v3>;
130 status = "okay";
131};
132
133&uart4 {
134 pinctrl-names = "default";
135 pinctrl-0 = <&uart4_pins_a>;
Patrick Delaunay6f182192022-04-26 15:38:05 +0200136 /delete-property/dmas;
137 /delete-property/dma-names;
Marcin Sloniewski83e7c202020-07-08 19:56:22 +0200138 status = "okay";
139};
140
141&usbh_ehci {
142 phys = <&usbphyc_port0>;
143 status = "okay";
144};
145
146&usbotg_hs {
147 dr_mode = "peripheral";
148 phys = <&usbphyc_port1 0>;
149 phy-names = "usb2-phy";
150 status = "okay";
151};
152
153&usbphyc {
154 status = "okay";
155};
156
157&usbphyc_port0 {
158 phy-supply = <&vdd_usb>;
159};
160
161&usbphyc_port1 {
162 phy-supply = <&vdd_usb>;
163};
164