1*8480a727SMarek Vasut# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*8480a727SMarek Vasut%YAML 1.2 3*8480a727SMarek Vasut--- 4*8480a727SMarek Vasut$id: http://devicetree.org/schemas/net/micrel,ks8851.yaml# 5*8480a727SMarek Vasut$schema: http://devicetree.org/meta-schemas/core.yaml# 6*8480a727SMarek Vasut 7*8480a727SMarek Vasuttitle: Micrel KS8851 Ethernet MAC (SPI and Parallel bus options) 8*8480a727SMarek Vasut 9*8480a727SMarek Vasutmaintainers: 10*8480a727SMarek Vasut - Marek Vasut <marex@denx.de> 11*8480a727SMarek Vasut 12*8480a727SMarek Vasutproperties: 13*8480a727SMarek Vasut compatible: 14*8480a727SMarek Vasut enum: 15*8480a727SMarek Vasut - micrel,ks8851 # SPI bus option 16*8480a727SMarek Vasut - micrel,ks8851-mll # Parallel bus option 17*8480a727SMarek Vasut 18*8480a727SMarek Vasut interrupts: 19*8480a727SMarek Vasut maxItems: 1 20*8480a727SMarek Vasut 21*8480a727SMarek Vasut reg: 22*8480a727SMarek Vasut minItems: 1 23*8480a727SMarek Vasut items: 24*8480a727SMarek Vasut - description: SPI or Parallel bus hardware address 25*8480a727SMarek Vasut - description: Parallel bus command mode address 26*8480a727SMarek Vasut 27*8480a727SMarek Vasut reset-gpios: 28*8480a727SMarek Vasut maxItems: 1 29*8480a727SMarek Vasut description: 30*8480a727SMarek Vasut The reset_n input pin 31*8480a727SMarek Vasut 32*8480a727SMarek Vasut vdd-supply: 33*8480a727SMarek Vasut description: | 34*8480a727SMarek Vasut Analog 3.3V supply for Ethernet MAC 35*8480a727SMarek Vasut 36*8480a727SMarek Vasut vdd-io-supply: 37*8480a727SMarek Vasut description: | 38*8480a727SMarek Vasut Digital 1.8V IO supply for Ethernet MAC 39*8480a727SMarek Vasut 40*8480a727SMarek Vasutrequired: 41*8480a727SMarek Vasut - compatible 42*8480a727SMarek Vasut - reg 43*8480a727SMarek Vasut - interrupts 44*8480a727SMarek Vasut 45*8480a727SMarek VasutallOf: 46*8480a727SMarek Vasut - $ref: ethernet-controller.yaml# 47*8480a727SMarek Vasut - if: 48*8480a727SMarek Vasut properties: 49*8480a727SMarek Vasut compatible: 50*8480a727SMarek Vasut contains: 51*8480a727SMarek Vasut const: micrel,ks8851 52*8480a727SMarek Vasut then: 53*8480a727SMarek Vasut properties: 54*8480a727SMarek Vasut reg: 55*8480a727SMarek Vasut maxItems: 1 56*8480a727SMarek Vasut - if: 57*8480a727SMarek Vasut properties: 58*8480a727SMarek Vasut compatible: 59*8480a727SMarek Vasut contains: 60*8480a727SMarek Vasut const: micrel,ks8851-mll 61*8480a727SMarek Vasut then: 62*8480a727SMarek Vasut properties: 63*8480a727SMarek Vasut reg: 64*8480a727SMarek Vasut minItems: 2 65*8480a727SMarek Vasut 66*8480a727SMarek VasutunevaluatedProperties: false 67*8480a727SMarek Vasut 68*8480a727SMarek Vasutexamples: 69*8480a727SMarek Vasut - | 70*8480a727SMarek Vasut /* SPI bus option */ 71*8480a727SMarek Vasut spi { 72*8480a727SMarek Vasut #address-cells = <1>; 73*8480a727SMarek Vasut #size-cells = <0>; 74*8480a727SMarek Vasut ethernet@0 { 75*8480a727SMarek Vasut compatible = "micrel,ks8851"; 76*8480a727SMarek Vasut reg = <0>; 77*8480a727SMarek Vasut interrupt-parent = <&msmgpio>; 78*8480a727SMarek Vasut interrupts = <90 8>; 79*8480a727SMarek Vasut vdd-supply = <&ext_l2>; 80*8480a727SMarek Vasut vdd-io-supply = <&pm8921_lvs6>; 81*8480a727SMarek Vasut reset-gpios = <&msmgpio 89 0>; 82*8480a727SMarek Vasut }; 83*8480a727SMarek Vasut }; 84*8480a727SMarek Vasut - | 85*8480a727SMarek Vasut #include <dt-bindings/interrupt-controller/irq.h> 86*8480a727SMarek Vasut /* Parallel bus option */ 87*8480a727SMarek Vasut memory-controller { 88*8480a727SMarek Vasut #address-cells = <2>; 89*8480a727SMarek Vasut #size-cells = <1>; 90*8480a727SMarek Vasut ethernet@1,0 { 91*8480a727SMarek Vasut compatible = "micrel,ks8851-mll"; 92*8480a727SMarek Vasut reg = <1 0x0 0x2>, <1 0x2 0x20000>; 93*8480a727SMarek Vasut interrupt-parent = <&gpioc>; 94*8480a727SMarek Vasut interrupts = <3 IRQ_TYPE_LEVEL_LOW>; 95*8480a727SMarek Vasut }; 96*8480a727SMarek Vasut }; 97