Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * lan966x_pcb8291.dts - Device Tree file for PCB8291
0004  */
0005 /dts-v1/;
0006 #include "lan966x.dtsi"
0007 #include "dt-bindings/phy/phy-lan966x-serdes.h"
0008 
0009 / {
0010         model = "Microchip EVB - LAN9662";
0011         compatible = "microchip,lan9662-pcb8291", "microchip,lan9662", "microchip,lan966";
0012 
0013         chosen {
0014                 stdout-path = "serial0:115200n8";
0015         };
0016 
0017         aliases {
0018                 serial0 = &usart3;
0019         };
0020 
0021         gpio-restart {
0022                 compatible = "gpio-restart";
0023                 gpios = <&gpio 56 GPIO_ACTIVE_LOW>;
0024                 priority = <200>;
0025         };
0026 };
0027 
0028 &gpio {
0029         fc3_b_pins: fc3-b-pins {
0030                 /* RX, TX */
0031                 pins = "GPIO_52", "GPIO_53";
0032                 function = "fc3_b";
0033         };
0034 
0035         can0_b_pins:  can0-b-pins {
0036                 /* RX, TX */
0037                 pins = "GPIO_35", "GPIO_36";
0038                 function = "can0_b";
0039         };
0040 };
0041 
0042 &can0 {
0043         pinctrl-0 = <&can0_b_pins>;
0044         pinctrl-names = "default";
0045         status = "disabled"; /* Conflict with switch */
0046 };
0047 
0048 &flx3 {
0049         atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
0050         status = "okay";
0051 
0052         usart3: serial@200 {
0053                 pinctrl-0 = <&fc3_b_pins>;
0054                 pinctrl-names = "default";
0055                 status = "okay";
0056         };
0057 };
0058 
0059 &mdio1 {
0060         status = "okay";
0061 };
0062 
0063 &phy0 {
0064         status = "okay";
0065 };
0066 
0067 &phy1 {
0068         status = "okay";
0069 };
0070 
0071 &port0 {
0072         phy-handle = <&phy0>;
0073         phy-mode = "gmii";
0074         phys = <&serdes 0 CU(0)>;
0075         status = "okay";
0076 };
0077 
0078 &port1 {
0079         phy-handle = <&phy1>;
0080         phy-mode = "gmii";
0081         phys = <&serdes 1 CU(1)>;
0082         status = "okay";
0083 };
0084 
0085 &serdes {
0086         status = "okay";
0087 };
0088 
0089 &switch {
0090         status = "okay";
0091 };
0092 
0093 &watchdog {
0094         status = "okay";
0095 };