blob: 4cc5e076838bf92a80c77a54147c5fc74930ad75 [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 Shind47efe82024-04-28 23:24:06 +090078 phy-reset-gpios = <&gpiog 0 GPIO_ACTIVE_LOW>;
Heesub Shinae1879a2024-04-28 23:24:03 +090079 st,ext-phyclk;
Marcin Sloniewski83e7c202020-07-08 19:56:22 +020080
81 mdio0 {
82 #address-cells = <1>;
83 #size-cells = <0>;
84 compatible = "snps,dwmac-mdio";
Heesub Shin8e705772024-04-28 23:24:04 +090085 phy0: ethernet-phy@7 {
86 reg = <7>;
Marcin Sloniewski83e7c202020-07-08 19:56:22 +020087 };
88 };
89};
90
91&gpu {
92 contiguous-area = <&gpu_reserved>;
93 status = "okay";
94};
95
96&i2c1 {
97 pinctrl-names = "default", "sleep";
98 pinctrl-0 = <&i2c1_pins_a>;
99 pinctrl-1 = <&i2c1_sleep_pins_a>;
100 i2c-scl-rising-time-ns = <100>;
101 i2c-scl-falling-time-ns = <7>;
102 status = "okay";
103 /delete-property/dmas;
104 /delete-property/dma-names;
105};
106
107&i2s2 {
108 clocks = <&rcc SPI2>, <&rcc SPI2_K>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
109 clock-names = "pclk", "i2sclk", "x8k", "x11k";
110 pinctrl-names = "default", "sleep";
111 pinctrl-0 = <&i2s2_pins_a>;
112 pinctrl-1 = <&i2s2_sleep_pins_a>;
113 status = "okay";
114};
115
116&pwr_regulators {
117 vdd-supply = <&vdd>;
118 vdd_3v3_usbfs-supply = <&vdd_usb>;
119};
120
121&sdmmc1 {
122 pinctrl-names = "default", "opendrain", "sleep";
123 pinctrl-0 = <&sdmmc1_b4_pins_a>;
124 pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
125 pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
126 broken-cd;
127 disable-wp;
128 st,neg-edge;
129 bus-width = <4>;
130 vmmc-supply = <&v3v3>;
131 status = "okay";
132};
133
134&uart4 {
135 pinctrl-names = "default";
136 pinctrl-0 = <&uart4_pins_a>;
Patrick Delaunay6f182192022-04-26 15:38:05 +0200137 /delete-property/dmas;
138 /delete-property/dma-names;
Marcin Sloniewski83e7c202020-07-08 19:56:22 +0200139 status = "okay";
140};
141
142&usbh_ehci {
143 phys = <&usbphyc_port0>;
144 status = "okay";
145};
146
147&usbotg_hs {
148 dr_mode = "peripheral";
149 phys = <&usbphyc_port1 0>;
150 phy-names = "usb2-phy";
151 status = "okay";
152};
153
154&usbphyc {
155 status = "okay";
156};
157
158&usbphyc_port0 {
159 phy-supply = <&vdd_usb>;
160};
161
162&usbphyc_port1 {
163 phy-supply = <&vdd_usb>;
164};
165