Skip to content

Commit

Permalink
Merge tag 'at91-dt-5.20-3' of git://git.kernel.org/pub/scm/linux/kern…
Browse files Browse the repository at this point in the history
…el/git/at91/linux into arm/dt

AT91 DT for v5.20 #3

It contains updates for LAN966X devices as follows:
- clock gating support
- gpio restart and network switch for lan966x-pcb8291 board

* tag 'at91-dt-5.20-3' of git://git.kernel.org/pub/scm/linux/kernel/git/at91/linux:
  ARM: dts: lan966x: Enable network driver on pcb8291
  ARM: dts: lan966x: Disable can0 on pcb8291
  ARM: dts: lan966x: Add gpio-restart
  ARM: dts: lan966x: add clock gating register

Link: https://lore.kernel.org/r/20220722152041.1752962-1-claudiu.beznea@microchip.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
arndb committed Jul 25, 2022
2 parents 2c947cd + d3e71a2 commit 10c4c52
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
43 changes: 42 additions & 1 deletion arch/arm/boot/dts/lan966x-pcb8291.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/
/dts-v1/;
#include "lan966x.dtsi"
#include "dt-bindings/phy/phy-lan966x-serdes.h"

/ {
model = "Microchip EVB - LAN9662";
Expand All @@ -16,6 +17,12 @@
aliases {
serial0 = &usart3;
};

gpio-restart {
compatible = "gpio-restart";
gpios = <&gpio 56 GPIO_ACTIVE_LOW>;
priority = <200>;
};
};

&gpio {
Expand All @@ -35,7 +42,7 @@
&can0 {
pinctrl-0 = <&can0_b_pins>;
pinctrl-names = "default";
status = "okay";
status = "disabled"; /* Conflict with switch */
};

&flx3 {
Expand All @@ -49,6 +56,40 @@
};
};

&mdio1 {
status = "okay";
};

&phy0 {
status = "okay";
};

&phy1 {
status = "okay";
};

&port0 {
phy-handle = <&phy0>;
phy-mode = "gmii";
phys = <&serdes 0 CU(0)>;
status = "okay";
};

&port1 {
phy-handle = <&phy1>;
phy-mode = "gmii";
phys = <&serdes 1 CU(1)>;
status = "okay";
};

&serdes {
status = "okay";
};

&switch {
status = "okay";
};

&watchdog {
status = "okay";
};
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/lan966x.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
#clock-cells = <1>;
clocks = <&cpu_clk>, <&ddr_clk>, <&sys_clk>;
clock-names = "cpu", "ddr", "sys";
reg = <0xe00c00a8 0x38>;
reg = <0xe00c00a8 0x38>, <0xe00c02cc 0x4>;
};

timer {
Expand Down

0 comments on commit 10c4c52

Please sign in to comment.