Padmarao Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | /* |
Padmarao Begari | c66a3b2 | 2022-10-27 11:31:59 +0530 | [diff] [blame] | 3 | * Copyright (C) 2021-2022 Microchip Technology Inc. |
Padmarao Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 4 | * Padmarao Begari <padmarao.begari@microchip.com> |
| 5 | */ |
Padmarao Begari | 5854c3d | 2021-01-15 08:20:39 +0530 | [diff] [blame] | 6 | |
| 7 | /dts-v1/; |
Padmarao Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 8 | |
Conor Dooley | 75809d9 | 2023-06-15 11:12:42 +0100 | [diff] [blame] | 9 | #include "mpfs.dtsi" |
Conor Dooley | 3978599 | 2023-06-15 11:12:43 +0100 | [diff] [blame] | 10 | #include "mpfs-icicle-kit-fabric.dtsi" |
| 11 | #include <dt-bindings/gpio/gpio.h> |
| 12 | #include <dt-bindings/leds/common.h> |
Padmarao Begari | 5854c3d | 2021-01-15 08:20:39 +0530 | [diff] [blame] | 13 | |
| 14 | /* Clock frequency (in Hz) of the rtcclk */ |
| 15 | #define RTCCLK_FREQ 1000000 |
| 16 | |
| 17 | / { |
Padmarao Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 18 | model = "Microchip PolarFire-SoC Icicle Kit"; |
Conor Dooley | 3978599 | 2023-06-15 11:12:43 +0100 | [diff] [blame] | 19 | compatible = "microchip,mpfs-icicle-reference-rtlv2210", "microchip,mpfs-icicle-kit", |
| 20 | "microchip,mpfs"; |
Padmarao Begari | 5854c3d | 2021-01-15 08:20:39 +0530 | [diff] [blame] | 21 | |
| 22 | aliases { |
Padmarao Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 23 | ethernet0 = &mac1; |
Conor Dooley | 3978599 | 2023-06-15 11:12:43 +0100 | [diff] [blame] | 24 | serial0 = &mmuart0; |
| 25 | serial1 = &mmuart1; |
| 26 | serial2 = &mmuart2; |
| 27 | serial3 = &mmuart3; |
| 28 | serial4 = &mmuart4; |
Padmarao Begari | 5854c3d | 2021-01-15 08:20:39 +0530 | [diff] [blame] | 29 | }; |
| 30 | |
| 31 | chosen { |
Conor Dooley | 3978599 | 2023-06-15 11:12:43 +0100 | [diff] [blame] | 32 | stdout-path = "serial1:115200n8"; |
Padmarao Begari | 5854c3d | 2021-01-15 08:20:39 +0530 | [diff] [blame] | 33 | }; |
| 34 | |
Padmarao Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 35 | cpus { |
Padmarao Begari | 5854c3d | 2021-01-15 08:20:39 +0530 | [diff] [blame] | 36 | timebase-frequency = <RTCCLK_FREQ>; |
Padmarao Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 37 | }; |
| 38 | |
Conor Dooley | 3978599 | 2023-06-15 11:12:43 +0100 | [diff] [blame] | 39 | 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 Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 67 | ddrc_cache_lo: memory@80000000 { |
Padmarao Begari | 5854c3d | 2021-01-15 08:20:39 +0530 | [diff] [blame] | 68 | device_type = "memory"; |
Padmarao Begari | c66a3b2 | 2022-10-27 11:31:59 +0530 | [diff] [blame] | 69 | reg = <0x0 0x80000000 0x0 0x40000000>; |
Padmarao Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 70 | status = "okay"; |
Padmarao Begari | 5854c3d | 2021-01-15 08:20:39 +0530 | [diff] [blame] | 71 | }; |
Padmarao Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 72 | |
Padmarao Begari | c66a3b2 | 2022-10-27 11:31:59 +0530 | [diff] [blame] | 73 | ddrc_cache_hi: memory@1040000000 { |
Padmarao Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 74 | device_type = "memory"; |
Padmarao Begari | c66a3b2 | 2022-10-27 11:31:59 +0530 | [diff] [blame] | 75 | reg = <0x10 0x40000000 0x0 0x40000000>; |
Padmarao Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 76 | status = "okay"; |
| 77 | }; |
Padmarao Begari | c66a3b2 | 2022-10-27 11:31:59 +0530 | [diff] [blame] | 78 | |
| 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 Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 89 | }; |
| 90 | |
Conor Dooley | 3978599 | 2023-06-15 11:12:43 +0100 | [diff] [blame] | 91 | &core_pwm0 { |
| 92 | status = "okay"; |
Conor Dooley | e828edd | 2022-10-25 08:58:49 +0100 | [diff] [blame] | 93 | }; |
| 94 | |
Conor Dooley | 3978599 | 2023-06-15 11:12:43 +0100 | [diff] [blame] | 95 | &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 Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 104 | status = "okay"; |
| 105 | }; |
| 106 | |
Conor Dooley | 3978599 | 2023-06-15 11:12:43 +0100 | [diff] [blame] | 107 | &i2c0 { |
Padmarao Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 108 | status = "okay"; |
Conor Dooley | 3978599 | 2023-06-15 11:12:43 +0100 | [diff] [blame] | 109 | }; |
| 110 | |
| 111 | &i2c1 { |
| 112 | status = "okay"; |
| 113 | }; |
| 114 | |
| 115 | &i2c2 { |
| 116 | status = "okay"; |
| 117 | }; |
Padmarao Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 118 | |
Conor Dooley | 3978599 | 2023-06-15 11:12:43 +0100 | [diff] [blame] | 119 | &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 Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 144 | bus-width = <4>; |
| 145 | disable-wp; |
Padmarao Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 146 | cap-sd-highspeed; |
Conor Dooley | 3978599 | 2023-06-15 11:12:43 +0100 | [diff] [blame] | 147 | cap-mmc-highspeed; |
Padmarao Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 148 | 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 Dooley | 3978599 | 2023-06-15 11:12:43 +0100 | [diff] [blame] | 154 | status = "okay"; |
Padmarao Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 155 | }; |
| 156 | |
Conor Dooley | 3978599 | 2023-06-15 11:12:43 +0100 | [diff] [blame] | 157 | &mmuart1 { |
Padmarao Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 158 | status = "okay"; |
Conor Dooley | 3978599 | 2023-06-15 11:12:43 +0100 | [diff] [blame] | 159 | }; |
Padmarao Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 160 | |
Conor Dooley | 3978599 | 2023-06-15 11:12:43 +0100 | [diff] [blame] | 161 | &mmuart2 { |
| 162 | status = "okay"; |
Padmarao Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 163 | }; |
Padmarao Begari | 5854c3d | 2021-01-15 08:20:39 +0530 | [diff] [blame] | 164 | |
Conor Dooley | 3978599 | 2023-06-15 11:12:43 +0100 | [diff] [blame] | 165 | &mmuart3 { |
Padmarao Begari | b56e2fd | 2021-11-17 18:21:17 +0530 | [diff] [blame] | 166 | status = "okay"; |
Conor Dooley | 3978599 | 2023-06-15 11:12:43 +0100 | [diff] [blame] | 167 | }; |
| 168 | |
| 169 | &mmuart4 { |
| 170 | status = "okay"; |
| 171 | }; |
| 172 | |
| 173 | &pcie { |
| 174 | status = "okay"; |
Padmarao Begari | 5854c3d | 2021-01-15 08:20:39 +0530 | [diff] [blame] | 175 | }; |
Padmarao Begari | da2a6d0 | 2022-10-27 11:32:00 +0530 | [diff] [blame] | 176 | |
| 177 | &qspi { |
| 178 | status = "okay"; |
Conor Dooley | 3978599 | 2023-06-15 11:12:43 +0100 | [diff] [blame] | 179 | }; |
Padmarao Begari | da2a6d0 | 2022-10-27 11:32:00 +0530 | [diff] [blame] | 180 | |
Conor Dooley | 3978599 | 2023-06-15 11:12:43 +0100 | [diff] [blame] | 181 | &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 Begari | da2a6d0 | 2022-10-27 11:32:00 +0530 | [diff] [blame] | 208 | }; |