Skip to content

Instantly share code, notes, and snippets.

@renakim
Last active April 22, 2024 11:18
Show Gist options
  • Save renakim/60c4a86ac76520b694ccd377ce3ad007 to your computer and use it in GitHub Desktop.
Save renakim/60c4a86ac76520b694ccd377ce3ad007 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