~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/net/microchip,enc28j60.txt

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 * Microchip ENC28J60
  2 
  3 This is a standalone 10 MBit ethernet controller with SPI interface.
  4 
  5 For each device connected to a SPI bus, define a child node within
  6 the SPI master node.
  7 
  8 Required properties:
  9 - compatible: Should be "microchip,enc28j60"
 10 - reg: Specify the SPI chip select the ENC28J60 is wired to
 11 - interrupts: Specify the interrupt index within the interrupt controller (referred
 12               to above in interrupt-parent) and interrupt type. The ENC28J60 natively
 13               generates falling edge interrupts, however, additional board logic
 14               might invert the signal.
 15 - pinctrl-names: List of assigned state names, see pinctrl binding documentation.
 16 - pinctrl-0: List of phandles to configure the GPIO pin used as interrupt line,
 17              see also generic and your platform specific pinctrl binding
 18              documentation.
 19 
 20 Optional properties:
 21 - spi-max-frequency: Maximum frequency of the SPI bus when accessing the ENC28J60.
 22   According to the ENC28J80 datasheet, the chip allows a maximum of 20 MHz, however,
 23   board designs may need to limit this value.
 24 
 25 The MAC address will be determined using the optional properties
 26 defined in ethernet.txt.
 27 
 28 Example (for NXP i.MX28 with pin control stuff for GPIO irq):
 29 
 30         ssp2: ssp@80014000 {
 31                 compatible = "fsl,imx28-spi";
 32                 pinctrl-names = "default";
 33                 pinctrl-0 = <&spi2_pins_b &spi2_sck_cfg>;
 34 
 35                 enc28j60: ethernet@0 {
 36                         compatible = "microchip,enc28j60";
 37                         pinctrl-names = "default";
 38                         pinctrl-0 = <&enc28j60_pins>;
 39                         reg = <0>;
 40                         interrupt-parent = <&gpio3>;
 41                         interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
 42                         spi-max-frequency = <12000000>;
 43                 };
 44         };
 45 
 46         pinctrl@80018000 {
 47                 enc28j60_pins: enc28j60_pins@0 {
 48                         reg = <0>;
 49                         fsl,pinmux-ids = <
 50                                 MX28_PAD_AUART0_RTS__GPIO_3_3    /* Interrupt */
 51                         >;
 52                         fsl,drive-strength = <MXS_DRIVE_4mA>;
 53                         fsl,voltage = <MXS_VOLTAGE_HIGH>;
 54                         fsl,pull-up = <MXS_PULL_DISABLE>;
 55                 };
 56         };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php