18cc087a1SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 28cc087a1SEmmanuel Vadot%YAML 1.2 38cc087a1SEmmanuel Vadot--- 48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/net/asix,ax88796c.yaml# 58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68cc087a1SEmmanuel Vadot 78cc087a1SEmmanuel Vadottitle: ASIX AX88796C SPI Ethernet Adapter 88cc087a1SEmmanuel Vadot 98cc087a1SEmmanuel Vadotmaintainers: 108cc087a1SEmmanuel Vadot - Łukasz Stelmach <l.stelmach@samsung.com> 118cc087a1SEmmanuel Vadot 128cc087a1SEmmanuel Vadotdescription: | 138cc087a1SEmmanuel Vadot ASIX AX88796C is an Ethernet controller with a built in PHY. This 148cc087a1SEmmanuel Vadot describes SPI mode of the chip. 158cc087a1SEmmanuel Vadot 168cc087a1SEmmanuel Vadot The node for this driver must be a child node of an SPI controller, 178cc087a1SEmmanuel Vadot hence all mandatory properties described in 188cc087a1SEmmanuel Vadot ../spi/spi-controller.yaml must be specified. 198cc087a1SEmmanuel Vadot 208cc087a1SEmmanuel VadotallOf: 218cc087a1SEmmanuel Vadot - $ref: ethernet-controller.yaml# 22cb7aa33aSEmmanuel Vadot - $ref: /schemas/spi/spi-peripheral-props.yaml 238cc087a1SEmmanuel Vadot 248cc087a1SEmmanuel Vadotproperties: 258cc087a1SEmmanuel Vadot compatible: 268cc087a1SEmmanuel Vadot const: asix,ax88796c 278cc087a1SEmmanuel Vadot 288cc087a1SEmmanuel Vadot reg: 298cc087a1SEmmanuel Vadot maxItems: 1 308cc087a1SEmmanuel Vadot 318cc087a1SEmmanuel Vadot spi-max-frequency: 328cc087a1SEmmanuel Vadot maximum: 40000000 338cc087a1SEmmanuel Vadot 348cc087a1SEmmanuel Vadot interrupts: 358cc087a1SEmmanuel Vadot maxItems: 1 368cc087a1SEmmanuel Vadot 378cc087a1SEmmanuel Vadot reset-gpios: 388cc087a1SEmmanuel Vadot description: 398cc087a1SEmmanuel Vadot A GPIO line handling reset of the chip. As the line is active low, 408cc087a1SEmmanuel Vadot it should be marked GPIO_ACTIVE_LOW. 418cc087a1SEmmanuel Vadot maxItems: 1 428cc087a1SEmmanuel Vadot 43cb7aa33aSEmmanuel Vadot controller-data: true 448cc087a1SEmmanuel Vadot local-mac-address: true 458cc087a1SEmmanuel Vadot mac-address: true 468cc087a1SEmmanuel Vadot 478cc087a1SEmmanuel Vadotrequired: 488cc087a1SEmmanuel Vadot - compatible 498cc087a1SEmmanuel Vadot - reg 508cc087a1SEmmanuel Vadot - spi-max-frequency 518cc087a1SEmmanuel Vadot - interrupts 528cc087a1SEmmanuel Vadot - reset-gpios 538cc087a1SEmmanuel Vadot 548cc087a1SEmmanuel VadotadditionalProperties: false 558cc087a1SEmmanuel Vadot 568cc087a1SEmmanuel Vadotexamples: 578cc087a1SEmmanuel Vadot # Artik5 eval board 588cc087a1SEmmanuel Vadot - | 598cc087a1SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 608cc087a1SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 61*fac71e4eSEmmanuel Vadot spi { 628cc087a1SEmmanuel Vadot #address-cells = <1>; 638cc087a1SEmmanuel Vadot #size-cells = <0>; 648cc087a1SEmmanuel Vadot 658cc087a1SEmmanuel Vadot ethernet@0 { 668cc087a1SEmmanuel Vadot compatible = "asix,ax88796c"; 678cc087a1SEmmanuel Vadot reg = <0x0>; 688cc087a1SEmmanuel Vadot local-mac-address = [00 00 00 00 00 00]; /* Filled in by a bootloader */ 698cc087a1SEmmanuel Vadot interrupt-parent = <&gpx2>; 708cc087a1SEmmanuel Vadot interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 718cc087a1SEmmanuel Vadot spi-max-frequency = <40000000>; 728cc087a1SEmmanuel Vadot reset-gpios = <&gpe0 2 GPIO_ACTIVE_LOW>; 738cc087a1SEmmanuel Vadot }; 748cc087a1SEmmanuel Vadot }; 75