xref: /linux/arch/riscv/boot/dts/microchip/mpfs-tysom-m.dts (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Original all-in-one devicetree:
4 * Copyright (C) 2020-2022 - Aldec
5 * Rewritten to use includes:
6 * Copyright (C) 2022 - Conor Dooley <conor.dooley@microchip.com>
7 */
8
9/dts-v1/;
10
11#include "mpfs.dtsi"
12#include "mpfs-tysom-m-fabric.dtsi"
13
14/ {
15	model = "Aldec TySOM-M-MPFS250T-REV2";
16	compatible = "aldec,tysom-m-mpfs250t-rev2", "microchip,mpfs";
17
18	aliases {
19		ethernet0 = &mac0;
20		ethernet1 = &mac1;
21		serial0 = &mmuart0;
22		serial1 = &mmuart1;
23		serial2 = &mmuart2;
24		serial3 = &mmuart3;
25		serial4 = &mmuart4;
26		gpio0 = &gpio0;
27		gpio1 = &gpio2;
28	};
29
30	chosen {
31		stdout-path = "serial1:115200n8";
32	};
33
34	ddrc_cache_lo: memory@80000000 {
35		device_type = "memory";
36		reg = <0x0 0x80000000 0x0 0x30000000>;
37		status = "okay";
38	};
39
40	ddrc_cache_hi: memory@1000000000 {
41		device_type = "memory";
42		reg = <0x10 0x00000000 0x0 0x40000000>;
43		status = "okay";
44	};
45
46	leds {
47		compatible = "gpio-leds";
48		status = "okay";
49
50		led0 {
51			gpios = <&gpio1 23 1>;
52			default-state = "on";
53			linux,default-trigger = "heartbeat";
54		};
55	};
56};
57
58&i2c0 {
59	status = "okay";
60};
61
62&i2c1 {
63	status = "okay";
64	hwmon: hwmon@45 {
65		status = "okay";
66		compatible = "ti,ina219";
67		reg = <0x45>;
68		shunt-resistor = <2000>;
69	};
70};
71
72&gpio1 {
73	interrupts = <27>, <28>, <29>, <30>,
74		     <31>, <32>, <33>, <47>,
75		     <35>, <36>, <37>, <38>,
76		     <39>, <40>, <41>, <42>,
77		     <43>, <44>, <45>, <46>,
78		     <47>, <48>, <49>, <50>;
79	status = "okay";
80};
81
82&mac0 {
83	status = "okay";
84	phy-mode = "gmii";
85	phy-handle = <&phy0>;
86
87};
88
89&mac1 {
90	status = "okay";
91	phy-mode = "gmii";
92	phy-handle = <&phy1>;
93	phy1: ethernet-phy@1 {
94		reg = <1>;
95	};
96	phy0: ethernet-phy@0 {
97		reg = <0>;
98	};
99};
100
101&mbox {
102	status = "okay";
103};
104
105&mmc {
106	max-frequency = <200000000>;
107	cap-mmc-highspeed;
108	cap-sd-highspeed;
109	no-1-8-v;
110	disable-wp;
111	status = "okay";
112};
113
114&mmuart1 {
115	status = "okay";
116};
117
118&mmuart2 {
119	status = "okay";
120};
121
122&mmuart3 {
123	status = "okay";
124};
125
126&mmuart4 {
127	status = "okay";
128};
129
130&refclk {
131	clock-frequency = <125000000>;
132};
133
134&rtc {
135	status = "okay";
136};
137
138&spi0 {
139	status = "okay";
140};
141
142&spi1 {
143	status = "okay";
144	flash@0 {
145		compatible = "micron,n25q128a11", "jedec,spi-nor";
146		reg = <0x0>;
147		spi-max-frequency = <10000000>;
148	};
149};
150
151&syscontroller {
152	status = "okay";
153};
154
155&usb {
156	status = "okay";
157	dr_mode = "host";
158};
159