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;
};
};
};
};
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/e76043fb-1467-45e1-9138-2f87d1f55448%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.