Last active
April 22, 2024 11:18
-
-
Save renakim/60c4a86ac76520b694ccd377ce3ad007 to your computer and use it in GitHub Desktop.
WIZnet W5500 device tree overlay example for Raspberry Pi kernel
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
/dts-v1/; | |
/plugin/; | |
/ { | |
compatible = "brcm,bcm2835"; | |
fragment@0 { | |
target = <&spi0>; | |
__overlay__ { | |
#address-cells = <1>; | |
#size-cells = <0>; | |
status = "okay"; | |
spidev@0 { | |
status = "disabled"; | |
}; | |
spidev@1 { | |
status = "disabled"; | |
}; | |
}; | |
}; | |
fragment@1 { | |
target = <&spi0>; | |
__overlay__ { | |
#address-cells = <1>; | |
#size-cells = <0>; | |
status = "okay"; | |
w5500@1 { | |
compatible = "wiznet,w5500"; | |
reg = <0>; | |
spi-max-frequency = <10000000>; | |
mac-address = [00 08 DC 01 02 03]; | |
interrupts = <22 0x8>; | |
interrupt-parent = <&gpio>; | |
status = "okay"; | |
}; | |
}; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment