Skip to content

Commit a8e30c9

Browse files
HoratiuVulturclaudiubeznea
authored andcommitted
ARM: dts: Add support for pcb8385
Add basic support for pcb8385 [1]. It is a modular board which allows to add different daughter cards on which there are different PHYs. This adds support for UART, LEDs and I2C. [1] https://www.microchip.com/en-us/development-tool/ev83e85a Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Link: https://lore.kernel.org/r/20251208083545.3642168-3-horatiu.vultur@microchip.com Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
1 parent d9802af commit a8e30c9

2 files changed

Lines changed: 133 additions & 1 deletion

File tree

arch/arm/boot/dts/microchip/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,5 @@ dtb-$(CONFIG_SOC_LAN966) += \
102102
lan966x-kontron-kswitch-d10-mmt-8g.dtb \
103103
lan966x-pcb8290.dtb \
104104
lan966x-pcb8291.dtb \
105-
lan966x-pcb8309.dtb
105+
lan966x-pcb8309.dtb \
106+
lan966x-pcb8385.dtb
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
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+
};

0 commit comments

Comments
 (0)