blob: 8aa5fb17d642f74119c554106a4c41a412d3c48e [file] [log] [blame]
Padmarao Begarib56e2fd2021-11-17 18:21:17 +05301// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
Padmarao Begaric66a3b22022-10-27 11:31:59 +05303 * Copyright (C) 2021-2022 Microchip Technology Inc.
Padmarao Begarib56e2fd2021-11-17 18:21:17 +05304 * Padmarao Begari <padmarao.begari@microchip.com>
5 */
Padmarao Begari5854c3d2021-01-15 08:20:39 +05306
7/dts-v1/;
Padmarao Begarib56e2fd2021-11-17 18:21:17 +05308
Conor Dooley75809d92023-06-15 11:12:42 +01009#include "mpfs.dtsi"
Conor Dooley39785992023-06-15 11:12:43 +010010#include "mpfs-icicle-kit-fabric.dtsi"
11#include <dt-bindings/gpio/gpio.h>
12#include <dt-bindings/leds/common.h>
Padmarao Begari5854c3d2021-01-15 08:20:39 +053013
14/* Clock frequency (in Hz) of the rtcclk */
15#define RTCCLK_FREQ 1000000
16
17/ {
Padmarao Begarib56e2fd2021-11-17 18:21:17 +053018 model = "Microchip PolarFire-SoC Icicle Kit";
Conor Dooley39785992023-06-15 11:12:43 +010019 compatible = "microchip,mpfs-icicle-reference-rtlv2210", "microchip,mpfs-icicle-kit",
20 "microchip,mpfs";
Padmarao Begari5854c3d2021-01-15 08:20:39 +053021
22 aliases {
Padmarao Begarib56e2fd2021-11-17 18:21:17 +053023 ethernet0 = &mac1;
Conor Dooley39785992023-06-15 11:12:43 +010024 serial0 = &mmuart0;
25 serial1 = &mmuart1;
26 serial2 = &mmuart2;
27 serial3 = &mmuart3;
28 serial4 = &mmuart4;
Padmarao Begari5854c3d2021-01-15 08:20:39 +053029 };
30
31 chosen {
Conor Dooley39785992023-06-15 11:12:43 +010032 stdout-path = "serial1:115200n8";
Padmarao Begari5854c3d2021-01-15 08:20:39 +053033 };
34
Padmarao Begarib56e2fd2021-11-17 18:21:17 +053035 cpus {
Padmarao Begari5854c3d2021-01-15 08:20:39 +053036 timebase-frequency = <RTCCLK_FREQ>;
Padmarao Begarib56e2fd2021-11-17 18:21:17 +053037 };
38
Conor Dooley39785992023-06-15 11:12:43 +010039 leds {
40 compatible = "gpio-leds";
41
42 led-1 {
43 gpios = <&gpio2 16 GPIO_ACTIVE_HIGH>;
44 color = <LED_COLOR_ID_RED>;
45 label = "led1";
46 };
47
48 led-2 {
49 gpios = <&gpio2 17 GPIO_ACTIVE_HIGH>;
50 color = <LED_COLOR_ID_RED>;
51 label = "led2";
52 };
53
54 led-3 {
55 gpios = <&gpio2 18 GPIO_ACTIVE_HIGH>;
56 color = <LED_COLOR_ID_AMBER>;
57 label = "led3";
58 };
59
60 led-4 {
61 gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
62 color = <LED_COLOR_ID_AMBER>;
63 label = "led4";
64 };
65 };
66
Padmarao Begarib56e2fd2021-11-17 18:21:17 +053067 ddrc_cache_lo: memory@80000000 {
Padmarao Begari5854c3d2021-01-15 08:20:39 +053068 device_type = "memory";
Padmarao Begaric66a3b22022-10-27 11:31:59 +053069 reg = <0x0 0x80000000 0x0 0x40000000>;
Padmarao Begarib56e2fd2021-11-17 18:21:17 +053070 status = "okay";
Padmarao Begari5854c3d2021-01-15 08:20:39 +053071 };
Padmarao Begarib56e2fd2021-11-17 18:21:17 +053072
Padmarao Begaric66a3b22022-10-27 11:31:59 +053073 ddrc_cache_hi: memory@1040000000 {
Padmarao Begarib56e2fd2021-11-17 18:21:17 +053074 device_type = "memory";
Padmarao Begaric66a3b22022-10-27 11:31:59 +053075 reg = <0x10 0x40000000 0x0 0x40000000>;
Padmarao Begarib56e2fd2021-11-17 18:21:17 +053076 status = "okay";
77 };
Padmarao Begaric66a3b22022-10-27 11:31:59 +053078
79 reserved-memory {
80 #address-cells = <2>;
81 #size-cells = <2>;
82 ranges;
83
84 hss_payload: region@BFC00000 {
85 reg = <0x0 0xBFC00000 0x0 0x400000>;
86 no-map;
87 };
88 };
Padmarao Begarib56e2fd2021-11-17 18:21:17 +053089};
90
Conor Dooley39785992023-06-15 11:12:43 +010091&core_pwm0 {
92 status = "okay";
Conor Dooleye828edd2022-10-25 08:58:49 +010093};
94
Conor Dooley39785992023-06-15 11:12:43 +010095&gpio2 {
96 interrupts = <53>, <53>, <53>, <53>,
97 <53>, <53>, <53>, <53>,
98 <53>, <53>, <53>, <53>,
99 <53>, <53>, <53>, <53>,
100 <53>, <53>, <53>, <53>,
101 <53>, <53>, <53>, <53>,
102 <53>, <53>, <53>, <53>,
103 <53>, <53>, <53>, <53>;
Padmarao Begarib56e2fd2021-11-17 18:21:17 +0530104 status = "okay";
105};
106
Conor Dooley39785992023-06-15 11:12:43 +0100107&i2c0 {
Padmarao Begarib56e2fd2021-11-17 18:21:17 +0530108 status = "okay";
Conor Dooley39785992023-06-15 11:12:43 +0100109};
110
111&i2c1 {
112 status = "okay";
113};
114
115&i2c2 {
116 status = "okay";
117};
Padmarao Begarib56e2fd2021-11-17 18:21:17 +0530118
Conor Dooley39785992023-06-15 11:12:43 +0100119&mac0 {
120 phy-mode = "sgmii";
121 phy-handle = <&phy0>;
122 status = "enabled";
123};
124
125&mac1 {
126 phy-mode = "sgmii";
127 phy-handle = <&phy1>;
128 status = "okay";
129
130 phy1: ethernet-phy@9 {
131 reg = <9>;
132 };
133
134 phy0: ethernet-phy@8 {
135 reg = <8>;
136 };
137};
138
139&mbox {
140 status = "okay";
141};
142
143&mmc {
Padmarao Begarib56e2fd2021-11-17 18:21:17 +0530144 bus-width = <4>;
145 disable-wp;
Padmarao Begarib56e2fd2021-11-17 18:21:17 +0530146 cap-sd-highspeed;
Conor Dooley39785992023-06-15 11:12:43 +0100147 cap-mmc-highspeed;
Padmarao Begarib56e2fd2021-11-17 18:21:17 +0530148 mmc-ddr-1_8v;
149 mmc-hs200-1_8v;
150 sd-uhs-sdr12;
151 sd-uhs-sdr25;
152 sd-uhs-sdr50;
153 sd-uhs-sdr104;
Conor Dooley39785992023-06-15 11:12:43 +0100154 status = "okay";
Padmarao Begarib56e2fd2021-11-17 18:21:17 +0530155};
156
Conor Dooley39785992023-06-15 11:12:43 +0100157&mmuart1 {
Padmarao Begarib56e2fd2021-11-17 18:21:17 +0530158 status = "okay";
Conor Dooley39785992023-06-15 11:12:43 +0100159};
Padmarao Begarib56e2fd2021-11-17 18:21:17 +0530160
Conor Dooley39785992023-06-15 11:12:43 +0100161&mmuart2 {
162 status = "okay";
Padmarao Begarib56e2fd2021-11-17 18:21:17 +0530163};
Padmarao Begari5854c3d2021-01-15 08:20:39 +0530164
Conor Dooley39785992023-06-15 11:12:43 +0100165&mmuart3 {
Padmarao Begarib56e2fd2021-11-17 18:21:17 +0530166 status = "okay";
Conor Dooley39785992023-06-15 11:12:43 +0100167};
168
169&mmuart4 {
170 status = "okay";
171};
172
173&pcie {
174 status = "okay";
Padmarao Begari5854c3d2021-01-15 08:20:39 +0530175};
Padmarao Begarida2a6d02022-10-27 11:32:00 +0530176
177&qspi {
178 status = "okay";
Conor Dooley39785992023-06-15 11:12:43 +0100179};
Padmarao Begarida2a6d02022-10-27 11:32:00 +0530180
Conor Dooley39785992023-06-15 11:12:43 +0100181&refclk {
182 clock-frequency = <125000000>;
183};
184
185&refclk_ccc {
186 clock-frequency = <50000000>;
187};
188
189&rtc {
190 status = "okay";
191};
192
193&spi0 {
194 status = "okay";
195};
196
197&spi1 {
198 status = "okay";
199};
200
201&syscontroller {
202 status = "okay";
203};
204
205&usb {
206 status = "okay";
207 dr_mode = "host";
Padmarao Begarida2a6d02022-10-27 11:32:00 +0530208};