Skip to content

Instantly share code, notes, and snippets.

@simryang
Forked from renakim/w5500-overlay.dts
Created April 22, 2024 11:18
Show Gist options
  • Save simryang/942b07a9acb68f5ce5f7de4d2f3c2f11 to your computer and use it in GitHub Desktop.
Save simryang/942b07a9acb68f5ce5f7de4d2f3c2f11 to your computer and use it in GitHub Desktop.
WIZnet W5500 device tree overlay example for Raspberry Pi kernel
/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