Jump to content

morsucci

Members
  • Posts

    25
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

morsucci's Achievements

  1. @gautam I did find a device-tree fragment that someone else wrote for it this chip on BeagleBone Black.. There will obviously be some differences between that and Zynq, but it should be close enough to follow. The project im referencing can be found here https://github.com/bwilcutt/encx24j600 spi1: spi@481a0000 { compatible = "ti,omap4-mcspi"; #address-cells = <1>; #size-cells = <0>; reg = <0x481a0000 0x400>; ti,spi-num-cs = <2>; ti,hwmods = "spi1"; dmas = <&edma 42 &edma 43 &edma 44 &edma 45>; dma-names = "tx0", "rx0", "tx1", "rx1"; status = "okay"; interrupts = <125>; spi@1 { compatible = "microchip,encx24j600"; status = "okay"; spi-max-frequency = <1000000>; /* 1MHz */ reg = <0x0>; /* Mapping encx24j600 to IRQ is done in-code. */ }; }; Additionally, there is another overlay on that repo that handles the pin-control encx24j600_pins: encx24j600_pins { pinctrl-single,pins = < 0x190 0x33 /* spi.clk output */ 0x194 0x33 /* spi.d0 input */ 0x198 0x33 /* spi.d1 output */ 0x19c 0x33 /* spi.cs */ /* Pin must be in GPIO mux_mode7 to be an interrupt */ 0x07c (PIN_INPUT_PULLDOWN | MUX_MODE7) /* Interrupt from ENC chip, gpio1[29], P8_26 */ >; }; Unfortunately, this will be all that I will be able to help you with, but definitely look at that project as it should be a good starting point
  2. @gautam you'll need to add some spi slave node inside of the Zynq Spi controller. Microchip sells another similar adapter and the documentation for it shows a slave node like this: enc28j60: ethernet@0 { compatible = "microchip,enc28j60"; pinctrl-names = "default"; pinctrl-0 = <&enc28j60_pins>; reg = <0>; interrupt-parent = <&gpio3>; interrupts = <3 IRQ_TYPE_EDGE_FALLING>; spi-max-frequency = <12000000>; }; I've looked at the driver for the encx24j600 and it does not look like the driver responds to anything in the compatible string of the spi slave node.
×
×
  • Create New...