Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
Pier8283
Published © GPL3+

ADIN1110 Linux kernel configuration for Raspberry Pi

In the following tutorial I explain the procedure to generate ADIN1110 kernel module and load it at boot.

IntermediateProtip2 hours650
ADIN1110 Linux kernel configuration for Raspberry Pi

Things used in this project

Hardware components

Raspberry Pi 4 Model B
Raspberry Pi 4 Model B
×1
Single Pair Ethernet V1.0.0 for Raspberry
×1

Software apps and online services

Raspbian
Raspberry Pi Raspbian

Story

Read more

Code

adin1110-overlay.dts

mcScript
adin1110-overlay.dts
/dts-v1/;
/plugin/;

/ {
        compatible = "brcm,bcm2708";

        fragment@0 {
                target = <&spi0>;
                __overlay__ {
                        #address-cells = <1>;
                        #size-cells = <0>;

                        status = "okay";

                        eth1: adin1110@0{
                                compatible = "adi,adin1110";
                                reg = <0>; /* CE0 */
                                pinctrl-names = "default";
                                pinctrl-0 = <&eth1_pins>;
                                interrupt-parent = <&gpio>;
                                interrupts = <22 0x2>; 
                                spi-max-frequency = <23000000>;
                        mac-address = [ CA 2F B7 10 23 63 ];

                                status = "okay";
                phy@1 {
                                compatible = "ethernet-phy-id0283.bc91";
                                reg = <0>;
                        };
                        };
                };
        };

        fragment@1 {
                target = <&spidev0>;
                __overlay__ {
                        status = "disabled";
                };
        };

        fragment@2 {
                target = <&gpio>;
                __overlay__ {
                        eth1_pins: eth1_pins {
                                brcm,pins = <22>;
                                brcm,function = <0>; /* in */
                                brcm,pull = <0>; /* none */
                        };
                };
        };
};

Credits

Pier8283
10 projects • 5 followers
Contact

Comments

Please log in or sign up to comment.