xref: /freebsd-src/sys/contrib/device-tree/src/riscv/microchip/mpfs-polarberry.dts (revision d5b0e70f7e04d971691517ce1304d86a1e367e2e)
1*d5b0e70fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2*d5b0e70fSEmmanuel Vadot/* Copyright (c) 2020-2022 Microchip Technology Inc */
3*d5b0e70fSEmmanuel Vadot
4*d5b0e70fSEmmanuel Vadot/dts-v1/;
5*d5b0e70fSEmmanuel Vadot
6*d5b0e70fSEmmanuel Vadot#include "mpfs.dtsi"
7*d5b0e70fSEmmanuel Vadot#include "mpfs-polarberry-fabric.dtsi"
8*d5b0e70fSEmmanuel Vadot
9*d5b0e70fSEmmanuel Vadot/* Clock frequency (in Hz) of the rtcclk */
10*d5b0e70fSEmmanuel Vadot#define MTIMER_FREQ	1000000
11*d5b0e70fSEmmanuel Vadot
12*d5b0e70fSEmmanuel Vadot/ {
13*d5b0e70fSEmmanuel Vadot	model = "Sundance PolarBerry";
14*d5b0e70fSEmmanuel Vadot	compatible = "sundance,polarberry", "microchip,mpfs";
15*d5b0e70fSEmmanuel Vadot
16*d5b0e70fSEmmanuel Vadot	aliases {
17*d5b0e70fSEmmanuel Vadot		ethernet0 = &mac1;
18*d5b0e70fSEmmanuel Vadot		serial0 = &mmuart0;
19*d5b0e70fSEmmanuel Vadot	};
20*d5b0e70fSEmmanuel Vadot
21*d5b0e70fSEmmanuel Vadot	chosen {
22*d5b0e70fSEmmanuel Vadot		stdout-path = "serial0:115200n8";
23*d5b0e70fSEmmanuel Vadot	};
24*d5b0e70fSEmmanuel Vadot
25*d5b0e70fSEmmanuel Vadot	cpus {
26*d5b0e70fSEmmanuel Vadot		timebase-frequency = <MTIMER_FREQ>;
27*d5b0e70fSEmmanuel Vadot	};
28*d5b0e70fSEmmanuel Vadot
29*d5b0e70fSEmmanuel Vadot	ddrc_cache_lo: memory@80000000 {
30*d5b0e70fSEmmanuel Vadot		device_type = "memory";
31*d5b0e70fSEmmanuel Vadot		reg = <0x0 0x80000000 0x0 0x2e000000>;
32*d5b0e70fSEmmanuel Vadot	};
33*d5b0e70fSEmmanuel Vadot
34*d5b0e70fSEmmanuel Vadot	ddrc_cache_hi: memory@1000000000 {
35*d5b0e70fSEmmanuel Vadot		device_type = "memory";
36*d5b0e70fSEmmanuel Vadot		reg = <0x10 0x00000000 0x0 0xC0000000>;
37*d5b0e70fSEmmanuel Vadot	};
38*d5b0e70fSEmmanuel Vadot};
39*d5b0e70fSEmmanuel Vadot
40*d5b0e70fSEmmanuel Vadot/*
41*d5b0e70fSEmmanuel Vadot * phy0 is connected to mac0, but the port itself is on the (optional) carrier
42*d5b0e70fSEmmanuel Vadot * board.
43*d5b0e70fSEmmanuel Vadot */
44*d5b0e70fSEmmanuel Vadot&mac0 {
45*d5b0e70fSEmmanuel Vadot	phy-mode = "sgmii";
46*d5b0e70fSEmmanuel Vadot	phy-handle = <&phy0>;
47*d5b0e70fSEmmanuel Vadot	status = "disabled";
48*d5b0e70fSEmmanuel Vadot};
49*d5b0e70fSEmmanuel Vadot
50*d5b0e70fSEmmanuel Vadot&mac1 {
51*d5b0e70fSEmmanuel Vadot	phy-mode = "sgmii";
52*d5b0e70fSEmmanuel Vadot	phy-handle = <&phy1>;
53*d5b0e70fSEmmanuel Vadot	status = "okay";
54*d5b0e70fSEmmanuel Vadot
55*d5b0e70fSEmmanuel Vadot	phy1: ethernet-phy@5 {
56*d5b0e70fSEmmanuel Vadot		reg = <5>;
57*d5b0e70fSEmmanuel Vadot		ti,fifo-depth = <0x01>;
58*d5b0e70fSEmmanuel Vadot	};
59*d5b0e70fSEmmanuel Vadot
60*d5b0e70fSEmmanuel Vadot	phy0: ethernet-phy@4 {
61*d5b0e70fSEmmanuel Vadot		reg = <4>;
62*d5b0e70fSEmmanuel Vadot		ti,fifo-depth = <0x01>;
63*d5b0e70fSEmmanuel Vadot	};
64*d5b0e70fSEmmanuel Vadot};
65*d5b0e70fSEmmanuel Vadot
66*d5b0e70fSEmmanuel Vadot&mbox {
67*d5b0e70fSEmmanuel Vadot	status = "okay";
68*d5b0e70fSEmmanuel Vadot};
69*d5b0e70fSEmmanuel Vadot
70*d5b0e70fSEmmanuel Vadot&mmc {
71*d5b0e70fSEmmanuel Vadot	bus-width = <4>;
72*d5b0e70fSEmmanuel Vadot	disable-wp;
73*d5b0e70fSEmmanuel Vadot	cap-sd-highspeed;
74*d5b0e70fSEmmanuel Vadot	cap-mmc-highspeed;
75*d5b0e70fSEmmanuel Vadot	card-detect-delay = <200>;
76*d5b0e70fSEmmanuel Vadot	mmc-ddr-1_8v;
77*d5b0e70fSEmmanuel Vadot	mmc-hs200-1_8v;
78*d5b0e70fSEmmanuel Vadot	sd-uhs-sdr12;
79*d5b0e70fSEmmanuel Vadot	sd-uhs-sdr25;
80*d5b0e70fSEmmanuel Vadot	sd-uhs-sdr50;
81*d5b0e70fSEmmanuel Vadot	sd-uhs-sdr104;
82*d5b0e70fSEmmanuel Vadot	status = "okay";
83*d5b0e70fSEmmanuel Vadot};
84*d5b0e70fSEmmanuel Vadot
85*d5b0e70fSEmmanuel Vadot&mmuart0 {
86*d5b0e70fSEmmanuel Vadot	status = "okay";
87*d5b0e70fSEmmanuel Vadot};
88*d5b0e70fSEmmanuel Vadot
89*d5b0e70fSEmmanuel Vadot&refclk {
90*d5b0e70fSEmmanuel Vadot	clock-frequency = <125000000>;
91*d5b0e70fSEmmanuel Vadot};
92*d5b0e70fSEmmanuel Vadot
93*d5b0e70fSEmmanuel Vadot&rtc {
94*d5b0e70fSEmmanuel Vadot	status = "okay";
95*d5b0e70fSEmmanuel Vadot};
96*d5b0e70fSEmmanuel Vadot
97*d5b0e70fSEmmanuel Vadot&syscontroller {
98*d5b0e70fSEmmanuel Vadot	status = "okay";
99*d5b0e70fSEmmanuel Vadot};
100