blob: 1dc85bb7ef24bb8b8508e3b458710bdb38ef5ed4 [file] [log] [blame]
Chris Packham67b7d502022-11-05 17:24:00 +13001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Device Tree For RD-AC5X.
4 *
5 * Copyright (C) 2021 Marvell
6 * Copyright (C) 2022 Allied Telesis Labs
7 */
8/*
9 * Device Tree file for Marvell Alleycat 5X development board
10 * This board file supports the B configuration of the board
11 */
12
13/dts-v1/;
14
15#include "ac5-98dx35xx.dtsi"
16
17/ {
18 model = "Marvell RD-AC5X Board";
19 compatible = "marvell,rd-ac5x", "marvell,ac5x", "marvell,ac5";
20
21 aliases {
22 serial0 = &uart0;
23 spiflash0 = &spiflash0;
24 gpio0 = &gpio0;
25 gpio1 = &gpio1;
26 ethernet0 = &eth0;
27 ethernet1 = &eth1;
28 spi0 = &spi0;
29 i2c0 = &i2c0;
30 i2c1 = &i2c1;
31 usb0 = &usb0;
32 usb1 = &usb1;
33 pinctrl0 = &pinctrl0;
Chris Packham67b7d502022-11-05 17:24:00 +130034 };
35
36 usb1phy: usb-phy {
37 compatible = "usb-nop-xceiv";
38 #phy-cells = <0>;
39 };
40
41 chosen {
42 stdout-path = "serial0:115200n8";
43 };
44};
45
46&uart0 {
47 status = "okay";
48};
49
50&mdio {
51 phy0: ethernet-phy@0 {
52 reg = <0>;
53 };
54};
55
56&i2c0 {
57 status = "okay";
58};
59
60&i2c1 {
61 status = "okay";
62};
63
64&eth0 {
65 status = "okay";
66 phy-handle = <&phy0>;
67};
68
69/* USB0 is a host USB */
70&usb0 {
71 status = "okay";
72};
73
74/* USB1 is a peripheral USB */
75&usb1 {
76 status = "okay";
77 phys = <&usb1phy>;
78 phy-names = "usb-phy";
79 dr_mode = "peripheral";
80};
81
82&spi0 {
83 status = "okay";
84
85 spiflash0: flash@0 {
86 compatible = "jedec,spi-nor";
87 spi-max-frequency = <50000000>;
88 spi-tx-bus-width = <1>; /* 1-single, 2-dual, 4-quad */
89 spi-rx-bus-width = <1>; /* 1-single, 2-dual, 4-quad */
90 reg = <0>;
91
92 #address-cells = <1>;
93 #size-cells = <1>;
94 };
95};
96
97&pinctrl0 {
98 /*
99 * MPP Bus: MPP# mode#
100 * eMMC [0-11] 0x1
101 * SPI[0] [12-17] 0x1
102 * TSEN_INT [18] 0x1
103 * DEV_INIT [19] 0x1
104 * SPI[1] [20-23] 0x3
105 * UART[1] [24-25] 0x3
106 * I2C[0] [26-27] 0x1
107 * XSMI[0] [28-29] 0x1 // SCH use SMI[0], reversed due to CPSS problem
108 * SMI[1] [30-31] 0x2 // SCH use XSMI[1], reversed due to CPSS problem
109 * UART[0] [32-33] 0x1
110 * OOB_SMI [34-35] 0x1
111 * PTP_CLK0_OUT [36] 0x1
112 * PTP_PULSE_OUT [37] 0x1
113 * RCVR_CLK_OUT [38] 0x1
114 * GPIO(in/out) [39] 0x0
115 * GPIO(in/out) [40] 0x0
116 * PTP_REF_CLK [41] 0x1
117 * PTP_CLK0 [42] 0x1
118 * LED0_CLK [43] 0x1
119 * LED0_STB [44] 0x1
120 * LED0_DATA [45] 0x1
121 */
122 /* 0 1 2 3 4 5 6 7 8 9 */
123 pin-func = < 1 1 1 1 1 1 1 1 1 1
124 1 1 1 1 1 1 1 1 1 1
125 3 3 3 3 3 3 1 1 1 1
126 2 2 1 1 1 1 1 1 1 0
127 0 1 1 1 1 1 >;
128};