Created
August 19, 2021 20:22
-
-
Save cibomahto/797df64cb80f6dc34c19fd6c30a15183 to your computer and use it in GitHub Desktop.
DTS file attemtping to init LAN7431 with ksz9477
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Device tree file for Raspberry Router, adds support for the KSZ9897 switch | |
* using DSA | |
* | |
* Copyright (C) 2021 Blinkinlabs | |
* Author: Matt Mets <[email protected]> | |
*/ | |
/dts-v1/; | |
/plugin/; | |
/ { | |
compatible = "brcm,bcm2835"; | |
fragment@0 { | |
target = <&pcie0>; | |
__overlay__ { | |
#address-cells = <3>; | |
#size-cells = <2>; | |
ranges1; | |
host@0 { | |
reg = <0 0 0 0 0>; | |
#address-cells = <0x3>; | |
#size-cells = <0x2>; | |
eth1: ethernet@0 { | |
compatible = "microchip,lan743x"; | |
status = "okay"; | |
reg = <0 0 0 0 0>; | |
phy-connection-type = "rgmii"; | |
fixed-link { | |
speed = <1000>; | |
full-duplex; | |
}; | |
}; | |
}; | |
}; | |
}; | |
fragment@1 { | |
target = <&i2c_arm>; | |
__overlay__ { | |
#address-cells = <1>; | |
#size-cells = <0>; | |
status = "okay"; | |
ksz9897: ksz9477@5f { | |
compatible = "microchip,ksz9897"; | |
status = "okay"; | |
reg = <0x5f>; | |
microchip,synclko-125; | |
ports { | |
#address-cells = <0x1>; | |
#size-cells = <0x0>; | |
port@0 { | |
reg = <0x0>; | |
label = "lan1"; | |
}; | |
port@1 { | |
reg = <0x1>; | |
label = "lan2"; | |
}; | |
port@2 { | |
reg = <0x2>; | |
label = "lan3"; | |
}; | |
port@4 { | |
reg = <0x4>; | |
label = "lan5"; | |
}; | |
port@6 { | |
reg = <0x6>; | |
label = "cpu"; | |
ethernet = <ð1>; | |
fixed-link { | |
speed = <1000>; | |
full-duplex; | |
}; | |
}; | |
}; | |
}; | |
}; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment