Debian Codegraph @

arch/arm/boot/dts/microchip/lan966x-pcb8385.dts

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3 * lan966x-pcb8385.dts - Device Tree file for PCB8385
4 */
5 /dts-v1/;
6
7 #include "lan966x.dtsi"
8 #include "dt-bindings/phy/phy-lan966x-serdes.h"
9
10 / {
11 model = "Microchip EVB - LAN9668";
12 compatible = "microchip,lan9668-pcb8385", "microchip,lan9668", "microchip,lan966";
13
14 aliases {
15 serial0 = &usart3;
16 };
17
18 chosen {
19 stdout-path = "serial0:115200n8";
20 };
21
22 gpio-restart {
23 compatible = "gpio-restart";
24 gpios = <&gpio 59 GPIO_ACTIVE_LOW>;
25 open-source;
26 priority = <200>;
27 };
28
29 leds {
30 compatible = "gpio-leds";
31
32 led-p1-green {
33 label = "cu0:green";
34 gpios = <&sgpio_out 2 0 GPIO_ACTIVE_LOW>;
35 default-state = "off";
36 };
37
38 led-p1-yellow {
39 label = "cu0:yellow";
40 gpios = <&sgpio_out 2 1 GPIO_ACTIVE_LOW>;
41 default-state = "off";
42 };
43
44 led-p2-green {
45 label = "cu1:green";
46 gpios = <&sgpio_out 3 0 GPIO_ACTIVE_LOW>;
47 default-state = "off";
48 };
49
50 led-p2-yellow {
51 label = "cu1:yellow";
52 gpios = <&sgpio_out 3 1 GPIO_ACTIVE_LOW>;
53 default-state = "off";
54 };
55 };
56 };
57
58 &aes {
59 status = "reserved"; /* Reserved by secure OS */
60 };
61
62 &flx0 {
63 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
64 status = "okay";
65 };
66
67 &flx3 {
68 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
69 status = "okay";
70 };
71
72 &gpio {
73 fc0_b_pins: fc0-b-pins {
74 /* SCL, SDA */
75 pins = "GPIO_25", "GPIO_26";
76 function = "fc0_b";
77 };
78
79 fc3_b_pins: fc3-b-pins {
80 /* RX, TX */
81 pins = "GPIO_52", "GPIO_53";
82 function = "fc3_b";
83 };
84
85 sgpio_a_pins: sgpio-a-pins {
86 /* SCK, D0, D1, LD */
87 pins = "GPIO_32", "GPIO_33", "GPIO_34", "GPIO_35";
88 function = "sgpio_a";
89 };
90 };
91
92 &i2c0 {
93 pinctrl-0 = <&fc0_b_pins>;
94 pinctrl-names = "default";
95 dmas = <0>, <0>;
96 i2c-analog-filter;
97 i2c-digital-filter;
98 i2c-digital-filter-width-ns = <35>;
99 i2c-sda-hold-time-ns = <1500>;
100 status = "okay";
101
102 eeprom@54 {
103 compatible = "atmel,24c01";
104 reg = <0x54>;
105 };
106
107 eeprom@55 {
108 compatible = "atmel,24c01";
109 reg = <0x55>;
110 };
111 };
112
113 &sgpio {
114 pinctrl-0 = <&sgpio_a_pins>;
115 pinctrl-names = "default";
116 microchip,sgpio-port-ranges = <0 3>;
117 status = "okay";
118
119 gpio@0 {
120 ngpios = <64>;
121 };
122 gpio@1 {
123 ngpios = <64>;
124 };
125 };
126
127 &usart3 {
128 pinctrl-0 = <&fc3_b_pins>;
129 pinctrl-names = "default";
130 status = "okay";
131 };