Debian Codegraph @

arch/arm64/boot/dts/marvell/armada-3720-uDPU.dtsi

raw
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 <[email protected]>
10 */
11
12 /dts-v1/;
13
14 #include <dt-bindings/gpio/gpio.h>
15 #include "armada-372x.dtsi"
16
17 / {
18 aliases {
19 ethernet0 = &eth0;
20 ethernet1 = &eth1;
21 };
22
23 chosen {
24 stdout-path = "serial0:115200n8";
25 };
26
27 memory@0 {
28 device_type = "memory";
29 reg = <0x00000000 0x00000000 0x00000000 0x20000000>;
30 };
31
32 leds {
33 compatible = "gpio-leds";
34 pinctrl-names = "default";
35 pinctrl-0 = <&spi_quad_pins>;
36
37 led-power1 {
38 label = "udpu:green:power";
39 gpios = <&gpionb 11 GPIO_ACTIVE_LOW>;
40 };
41
42 led-power2 {
43 label = "udpu:red:power";
44 gpios = <&gpionb 12 GPIO_ACTIVE_LOW>;
45 };
46
47 led-network1 {
48 label = "udpu:green:network";
49 gpios = <&gpionb 13 GPIO_ACTIVE_LOW>;
50 };
51
52 led-network2 {
53 label = "udpu:red:network";
54 gpios = <&gpionb 14 GPIO_ACTIVE_LOW>;
55 };
56
57 led-alarm1 {
58 label = "udpu:green:alarm";
59 gpios = <&gpionb 15 GPIO_ACTIVE_LOW>;
60 };
61
62 led-alarm2 {
63 label = "udpu:red:alarm";
64 gpios = <&gpionb 16 GPIO_ACTIVE_LOW>;
65 };
66 };
67
68 sfp_eth1: sfp-eth1 {
69 compatible = "sff,sfp";
70 i2c-bus = <&i2c1>;
71 los-gpios = <&gpiosb 7 GPIO_ACTIVE_HIGH>;
72 mod-def0-gpios = <&gpiosb 8 GPIO_ACTIVE_LOW>;
73 tx-disable-gpios = <&gpiosb 9 GPIO_ACTIVE_HIGH>;
74 tx-fault-gpios = <&gpiosb 10 GPIO_ACTIVE_HIGH>;
75 maximum-power-milliwatt = <3000>;
76 };
77 };
78
79 &sdhci0 {
80 status = "okay";
81 bus-width = <8>;
82 mmc-ddr-1_8v;
83 mmc-hs400-1_8v;
84 marvell,pad-type = "fixed-1-8v";
85 non-removable;
86 no-sd;
87 no-sdio;
88 };
89
90 &spi0 {
91 status = "okay";
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 &spi_quad_pins {
117 function = "gpio";
118 };
119
120 &pinctrl_nb {
121 i2c2_recovery_pins: i2c2-recovery-pins {
122 groups = "i2c2";
123 function = "gpio";
124 };
125 };
126
127 &i2c1 {
128 status = "okay";
129 pinctrl-names = "default", "recovery";
130 pinctrl-0 = <&i2c2_pins>;
131 pinctrl-1 = <&i2c2_recovery_pins>;
132 /delete-property/mrvl,i2c-fast-mode;
133 scl-gpios = <&gpionb 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
134 sda-gpios = <&gpionb 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
135
136 temp-sensor@48 {
137 compatible = "ti,tmp75c";
138 reg = <0x48>;
139 };
140
141 temp-sensor@49 {
142 compatible = "ti,tmp75c";
143 reg = <0x49>;
144 };
145 };
146
147 &eth0 {
148 status = "okay";
149 managed = "in-band-status";
150 phys = <&comphy1 0>;
151 };
152
153 &eth1 {
154 phy-mode = "sgmii";
155 status = "okay";
156 managed = "in-band-status";
157 phys = <&comphy0 1>;
158 sfp = <&sfp_eth1>;
159 };
160
161 &usb3 {
162 status = "okay";
163 phys = <&usb2_utmi_otg_phy>;
164 phy-names = "usb2-phy";
165 };
166
167 &uart0 {
168 status = "okay";
169 };