enc28j60 device tree for beaglebone black using MikroBus Cape

152 views
Skip to first unread message

Chia-Hsing Wu

unread,
Jan 12, 2017, 11:07:22 AM1/12/17
to BeagleBoard
I am using following device tree try to add on enc28j60 ETH click. However, it seems doesn't work.

DTS:

/dts-v1/;

/plugin/;

 

/ {

           compatible = "ti,beaglebone", "ti,beaglebone-black", "ti,beaglebone-green";

 

           /* identification */

           part-number = "BB-MIKROBUS-01";

           version = "00A3";

 

           /* state the resources this cape uses */

           exclusive-use =

                     /* the pin header uses */

                     "P9.31",       /* spi1_sclk */

                     "P9.30",       /* spi1_d1 */

                     "P9.29",       /* spi1_d0 */

                     "P9.28",       /* spi1_cs0 */

                      "P9.15",       /* gpio1_16 */

 

                     /* the hardware ip uses */

                     "gpio1_16",

                     "spi1";

 

           fragment@0 {

                     target = <&am33xx_pinmux>;

                     __overlay__ {

 

                                /* avoid stupid warning */

                   #address-cells = <1>;

                           #size-cells = <1>;

 

                                bb_spi1_pins: pinmux_bb_spi1_pins {

                                           pinctrl-single,pins = <

                                                     0x190 0x33           /* mcasp0_aclkx.spi1_sclk, INPUT_PULLUP | MODE3 */

                                                     0x198 0x13           /* mcasp0_axr0.spi1_d1, OUTPUT_PULLUP | MODE3 */

                                                     0x194 0x33           /* mcasp0_fsx.spi1_d0, INPUT_PULLUP | MODE3 */

                                                     0x19c 0x13           /* mcasp0_ahclkr.spi1_cs0, OUTPUT_PULLUP | MODE3 */

                                           >;

                                };

                                bb_gpio_pins: pinmux_bb_gpio_pins {

                                           pinctrl-single,pins = <

                                                     0x040 0x17           /* gpmc_a0.gpio1_16, OUTPUT_PULLUP | MODE7 */

                                           >;

                                };

                     };

           };

 

           fragment@1 {

                     target = <&spi1>; /* spi1 is numbered correctly */

                     __overlay__ {

                                #address-cells = <1>;

                                #size-cells = <0>;

 

                                pinctrl-names = "default";

                                pinctrl-0 = <&bb_spi1_pins>;

                                status = "okay";

                                ti,pio-mode; /* disable dma when used as an overlay, dma gets stuck at 160 bits... */

 

                                /* shut up DTC warnings */

 

                                /* add any spi devices connected here */

                                /* note that you can do direct SPI via spidev now */

            spi1_0 {

                #address-cells = <1>;

                #size-cells = <0>;

                compatible = "microchip,enc28j60";

                reg = <0>;

                spi-max-frequency = <12000000>;

                interrupts=<125>;

                spi-cpol;

                spi-cpha;         

            };

                     };

           };

};


licha...@gmail.com

unread,
Jul 13, 2019, 5:41:01 PM7/13/19
to BeagleBoard
have you succeed to enble the enc28j60 ? my kernel is 3.8.13

在 2017年1月13日星期五 UTC+8上午12:07:22,Chia-Hsing Wu写道:
Reply all
Reply to author
Forward
0 new messages