1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
3 * Copyright (C) 2019 Marvell International Ltd.
5 * Device tree for the CN9131-DB board.
9 #include "puzzle-thermal.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/input/input.h>
15 model = "iEi Puzzle-M901";
16 compatible = "iei,puzzle-m901",
17 "marvell,armada-ap807-quad", "marvell,armada-ap807";
20 stdout-path = "serial0:115200n8";
26 ethernet0 = &cp0_eth0;
27 ethernet1 = &cp0_eth1;
28 ethernet2 = &cp0_eth2;
29 ethernet3 = &cp1_eth0;
30 ethernet4 = &cp1_eth1;
31 ethernet5 = &cp1_eth2;
36 led-boot = &led_power;
37 led-failsafe = &led_info;
38 led-running = &led_power;
39 led-upgrade = &led_info;
43 device_type = "memory";
44 reg = <0x0 0x0 0x0 0x80000000>;
48 compatible = "gpio-keys";
52 linux,code = <KEY_RESTART>;
53 gpios = <&cp0_gpio2 4 GPIO_ACTIVE_LOW>;
66 compatible = "iei,wt61p803-puzzle";
69 current-speed = <115200>;
74 compatible = "iei,wt61p803-puzzle-leds";
81 label = "white:network";
87 label = "green:cloud";
93 label = "orange:info";
99 label = "yellow:power";
101 default-state = "on";
106 compatible = "iei,wt61p803-puzzle-hwmon";
107 #address-cells = <1>;
110 chassis_fan_group0: fan-group@0 {
111 #cooling-cells = <2>;
113 cooling-levels = <80 102 170 230 255>;
120 PUZZLE_FAN_THERMAL(ic, &chassis_fan_group0);
124 PUZZLE_FAN_THERMAL(cp0, &chassis_fan_group0);
127 /* on-board eMMC - U9 */
129 pinctrl-names = "default";
142 cp0_nbaset_phy0: ethernet-phy@0 {
143 compatible = "ethernet-phy-ieee802.3-c45";
146 cp0_nbaset_phy1: ethernet-phy@1 {
147 compatible = "ethernet-phy-ieee802.3-c45";
150 cp0_nbaset_phy2: ethernet-phy@2 {
151 compatible = "ethernet-phy-ieee802.3-c45";
160 /* SLM-1521-V2, CON9 */
163 phy-mode = "2500base-x";
164 phys = <&cp0_comphy2 0>;
165 phy = <&cp0_nbaset_phy0>;
170 phy-mode = "2500base-x";
171 phys = <&cp0_comphy4 1>;
172 phy = <&cp0_nbaset_phy1>;
177 phy-mode = "2500base-x";
178 phys = <&cp0_comphy5 2>;
179 phy = <&cp0_nbaset_phy2>;
191 pinctrl-names = "default";
192 pinctrl-0 = <&cp0_i2c0_pins>;
194 clock-frequency = <100000>;
196 compatible = "epson,rx8130";
202 /* SLM-1521-V2, CON6 */
207 phys = <&cp0_comphy0 0>, <&cp0_comphy1 0>;
212 pinctrl-names = "default";
213 pinctrl-0 = <&cp0_spi0_pins>;
214 reg = <0x700680 0x50>, /* control */
215 <0x2000000 0x1000000>; /* CS0 */
218 #address-cells = <0x1>;
220 compatible = "jedec,spi-nor";
222 spi-max-frequency = <40000000>;
224 compatible = "fixed-partitions";
225 #address-cells = <1>;
229 reg = <0x0 0x1f0000>;
232 label = "U-Boot ENV Factory";
233 reg = <0x1f0000 0x10000>;
237 reg = <0x200000 0x1f0000>;
240 label = "U-Boot ENV";
241 reg = <0x3f0000 0x10000>;
248 cp0_pinctrl: pinctrl {
249 compatible = "marvell,cp115-standalone-pinctrl";
250 cp0_i2c0_pins: cp0-i2c-pins-0 {
251 marvell,pins = "mpp37", "mpp38";
252 marvell,function = "i2c0";
254 cp0_i2c1_pins: cp0-i2c-pins-1 {
255 marvell,pins = "mpp35", "mpp36";
256 marvell,function = "i2c1";
258 cp0_ge1_rgmii_pins: cp0-ge-rgmii-pins-0 {
259 marvell,pins = "mpp0", "mpp1", "mpp2",
260 "mpp3", "mpp4", "mpp5",
261 "mpp6", "mpp7", "mpp8",
262 "mpp9", "mpp10", "mpp11";
263 marvell,function = "ge0";
265 cp0_ge2_rgmii_pins: cp0-ge-rgmii-pins-1 {
266 marvell,pins = "mpp44", "mpp45", "mpp46",
267 "mpp47", "mpp48", "mpp49",
268 "mpp50", "mpp51", "mpp52",
269 "mpp53", "mpp54", "mpp55";
270 marvell,function = "ge1";
272 cp0_spi0_pins: cp0-spi-pins-0 {
273 marvell,pins = "mpp13", "mpp14", "mpp15", "mpp16";
274 marvell,function = "spi1";
280 * Instantiate the first connected CP115
283 #define CP11X_NAME cp1
284 #define CP11X_BASE f6000000
285 #define CP11X_PCIEx_MEM_BASE(iface) (0xe2000000 + (iface * 0x1000000))
286 #define CP11X_PCIEx_MEM_SIZE(iface) 0xf00000
287 #define CP11X_PCIE0_BASE f6600000
288 #define CP11X_PCIE1_BASE f6620000
289 #define CP11X_PCIE2_BASE f6640000
291 #include "armada-cp115.dtsi"
295 #undef CP11X_PCIEx_MEM_BASE
296 #undef CP11X_PCIEx_MEM_SIZE
297 #undef CP11X_PCIE0_BASE
298 #undef CP11X_PCIE1_BASE
299 #undef CP11X_PCIE2_BASE
307 cp1_nbaset_phy0: ethernet-phy@3 {
308 compatible = "ethernet-phy-ieee802.3-c45";
311 cp1_nbaset_phy1: ethernet-phy@4 {
312 compatible = "ethernet-phy-ieee802.3-c45";
315 cp1_nbaset_phy2: ethernet-phy@5 {
316 compatible = "ethernet-phy-ieee802.3-c45";
328 phy-mode = "2500base-x";
329 phys = <&cp1_comphy2 0>;
330 phy = <&cp1_nbaset_phy0>;
335 phy-mode = "2500base-x";
336 phys = <&cp1_comphy4 1>;
337 phy = <&cp1_nbaset_phy1>;
342 phy-mode = "2500base-x";
343 phys = <&cp1_comphy5 2>;
344 phy = <&cp1_nbaset_phy2>;
351 phys = <&cp1_comphy0 1>;
365 pinctrl-names = "default";
366 pinctrl-0 = <&cp1_i2c0_pins>;
367 clock-frequency = <100000>;
371 cp1_pinctrl: pinctrl {
372 compatible = "marvell,cp115-standalone-pinctrl";
373 cp1_i2c0_pins: cp1-i2c-pins-0 {
374 marvell,pins = "mpp37", "mpp38";
375 marvell,function = "i2c0";
377 cp1_spi0_pins: cp1-spi-pins-0 {
378 marvell,pins = "mpp13", "mpp14", "mpp15", "mpp16";
379 marvell,function = "spi1";
381 cp1_xhci0_vbus_pins: cp1-xhci0-vbus-pins {
382 marvell,pins = "mpp3";
383 marvell,function = "gpio";
385 cp1_sfp_pins: sfp-pins {
386 marvell,pins = "mpp8", "mpp9", "mpp10", "mpp11";
387 marvell,function = "gpio";
393 PUZZLE_FAN_THERMAL(cp1, &chassis_fan_group0);
398 phys = <&cp1_comphy3 1>;