mvebu: 6.6: copy files, patches & configs from 6.1
[openwrt/openwrt.git] / target / linux / mvebu / files-6.6 / arch / arm64 / boot / dts / marvell / armada-3720-uDPU.dtsi
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3 * Device tree for the uDPU board.
4 * Based on Marvell Armada 3720 development board (DB-88F3720-DDR3)
5 * Copyright (C) 2016 Marvell
6 * Copyright (C) 2019 Methode Electronics
7 * Copyright (C) 2019 Telus
8 *
9 * Vladimir Vid <vladimir.vid@sartura.hr>
10 */
11
12 /dts-v1/;
13
14 #include <dt-bindings/gpio/gpio.h>
15 #include "armada-372x.dtsi"
16
17 / {
18 chosen {
19 stdout-path = "serial0:115200n8";
20 };
21
22 memory@0 {
23 device_type = "memory";
24 reg = <0x00000000 0x00000000 0x00000000 0x20000000>;
25 };
26
27 aliases {
28 ethernet0 = &eth0;
29 ethernet1 = &eth1;
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 led-power1 {
36 label = "udpu:green:power";
37 gpios = <&gpionb 11 GPIO_ACTIVE_LOW>;
38 };
39
40 led-power2 {
41 label = "udpu:red:power";
42 gpios = <&gpionb 12 GPIO_ACTIVE_LOW>;
43 };
44
45 led-network1 {
46 label = "udpu:green:network";
47 gpios = <&gpionb 13 GPIO_ACTIVE_LOW>;
48 };
49
50 led-network2 {
51 label = "udpu:red:network";
52 gpios = <&gpionb 14 GPIO_ACTIVE_LOW>;
53 };
54
55 led-alarm1 {
56 label = "udpu:green:alarm";
57 gpios = <&gpionb 15 GPIO_ACTIVE_LOW>;
58 };
59
60 led-alarm2 {
61 label = "udpu:red:alarm";
62 gpios = <&gpionb 16 GPIO_ACTIVE_LOW>;
63 };
64 };
65
66 sfp_eth1: sfp-eth1 {
67 compatible = "sff,sfp";
68 i2c-bus = <&i2c1>;
69 los-gpio = <&gpiosb 7 GPIO_ACTIVE_HIGH>;
70 mod-def0-gpio = <&gpiosb 8 GPIO_ACTIVE_LOW>;
71 tx-disable-gpio = <&gpiosb 9 GPIO_ACTIVE_HIGH>;
72 tx-fault-gpio = <&gpiosb 10 GPIO_ACTIVE_HIGH>;
73 maximum-power-milliwatt = <3000>;
74 };
75 };
76
77 &sdhci0 {
78 status = "okay";
79 bus-width = <8>;
80 mmc-ddr-1_8v;
81 mmc-hs400-1_8v;
82 marvell,pad-type = "fixed-1-8v";
83 non-removable;
84 no-sd;
85 no-sdio;
86 };
87
88 &spi0 {
89 status = "okay";
90 pinctrl-names = "default";
91 pinctrl-0 = <&spi_quad_pins>;
92
93 flash@0 {
94 compatible = "jedec,spi-nor";
95 reg = <0>;
96 spi-max-frequency = <54000000>;
97
98 partitions {
99 compatible = "fixed-partitions";
100 #address-cells = <1>;
101 #size-cells = <1>;
102
103 partition@0 {
104 label = "firmware";
105 reg = <0x0 0x180000>;
106 };
107
108 partition@180000 {
109 label = "u-boot-env";
110 reg = <0x180000 0x10000>;
111 };
112 };
113 };
114 };
115
116 &pinctrl_nb {
117 i2c2_recovery_pins: i2c2-recovery-pins {
118 groups = "i2c2";
119 function = "gpio";
120 };
121 };
122
123 &i2c1 {
124 status = "okay";
125 pinctrl-names = "default", "recovery";
126 pinctrl-0 = <&i2c2_pins>;
127 pinctrl-1 = <&i2c2_recovery_pins>;
128 /delete-property/mrvl,i2c-fast-mode;
129 scl-gpios = <&gpionb 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
130 sda-gpios = <&gpionb 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
131
132 temp-sensor@48 {
133 compatible = "ti,tmp75c";
134 reg = <0x48>;
135 };
136
137 temp-sensor@49 {
138 compatible = "ti,tmp75c";
139 reg = <0x49>;
140 };
141 };
142
143 &eth0 {
144 status = "okay";
145 managed = "in-band-status";
146 phys = <&comphy1 0>;
147 };
148
149 &eth1 {
150 phy-mode = "sgmii";
151 status = "okay";
152 managed = "in-band-status";
153 phys = <&comphy0 1>;
154 sfp = <&sfp_eth1>;
155 };
156
157 &usb3 {
158 status = "okay";
159 phys = <&usb2_utmi_otg_phy>;
160 phy-names = "usb2-utmi-otg-phy";
161 };
162
163 &uart0 {
164 status = "okay";
165 };