brintos

brintos / linux-shallow public Read only

0
0
Text · 1.3 KiB · 52e852f Raw
63 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/net/davicom,dm9051.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Davicom DM9051 SPI Ethernet Controller8 9maintainers:10  - Joseph CHANG <josright123@gmail.com>11 12description: |13  The DM9051 is a fully integrated and cost-effective low pin count single14  chip Fast Ethernet controller with a Serial Peripheral Interface (SPI).15 16allOf:17  - $ref: ethernet-controller.yaml#18 19properties:20  compatible:21    const: davicom,dm905122 23  reg:24    maxItems: 125 26  spi-max-frequency:27    maximum: 4500000028 29  interrupts:30    maxItems: 131 32  local-mac-address: true33 34  mac-address: true35 36required:37  - compatible38  - reg39  - spi-max-frequency40  - interrupts41 42additionalProperties: false43 44examples:45  # Raspberry Pi platform46  - |47    /* for Raspberry Pi with pin control stuff for GPIO irq */48    #include <dt-bindings/interrupt-controller/irq.h>49    #include <dt-bindings/gpio/gpio.h>50    spi {51        #address-cells = <1>;52        #size-cells = <0>;53 54        ethernet@0 {55            compatible = "davicom,dm9051";56            reg = <0>; /* spi chip select */57            local-mac-address = [00 00 00 00 00 00];58            interrupt-parent = <&gpio>;59            interrupts = <26 IRQ_TYPE_LEVEL_LOW>;60            spi-max-frequency = <31200000>;61        };62    };63