Skip to content

Commit 2af1017

Browse files
committed
Merge tag 'at91-dt-6.20' of https://git.kernel.org/pub/scm/linux/kernel/git/at91/linux into soc/dt
Microchip AT91 device tree updates for v6.20 This update includes: - update the SAMA7D65 flexcom nodes to add the missing i2c, spi, and usart child nodes; the flexcom child nodes were also updated with DMA properties - add basic support for the PCB8385 board, based on LAN966X SoC - drop usb_a9g20-dab-mmx.dtsi as it is not used anywhere in the tree * tag 'at91-dt-6.20' of https://git.kernel.org/pub/scm/linux/kernel/git/at91/linux: ARM: dts: microchip: Drop usb_a9g20-dab-mmx.dtsi ARM: dts: Add support for pcb8385 dt-bindings: arm: at91: add lan966 pcb8385 board ARM: dts: microchip: sama7d65: add missing flexcom nodes ARM: dts: microchip: sama7d65: add fifo-size to usart ARM: dts: microchip: sama7d65: add dma properties to usart6 Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 52c1a89 + e9ed88a commit 2af1017

5 files changed

Lines changed: 416 additions & 96 deletions

File tree

Documentation/devicetree/bindings/arm/atmel-at91.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,11 @@ properties:
235235
- const: microchip,lan9662
236236
- const: microchip,lan966
237237

238-
- description: Microchip LAN9668 PCB8290 Evaluation Board.
238+
- description: Microchip LAN9668 Evaluation Board.
239239
items:
240-
- const: microchip,lan9668-pcb8290
240+
- enum:
241+
- microchip,lan9668-pcb8290
242+
- microchip,lan9668-pcb8385
241243
- const: microchip,lan9668
242244
- const: microchip,lan966
243245

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)