Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: net: smsc,lan91c111 convert to schema

Convert the smsc lan91c9x and lan91c1xx controller device tree
bindings documentation to json-schema.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220331154536.1544220-2-rui.silva@linaro.org

authored by

Rui Miguel Silva and committed by
Rob Herring
3225de1b a1a2b712

+61 -17
+61
Documentation/devicetree/bindings/net/smsc,lan91c111.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/net/smsc,lan91c111.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Smart Mixed-Signal Connectivity (SMSC) LAN91C9x/91C1xx Controller 8 + 9 + maintainers: 10 + - Nicolas Pitre <nico@fluxnic.net> 11 + 12 + allOf: 13 + - $ref: ethernet-controller.yaml# 14 + 15 + properties: 16 + compatible: 17 + const: smsc,lan91c111 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + interrupts: 23 + maxItems: 1 24 + 25 + reg-shift: true 26 + 27 + reg-io-width: 28 + enum: [ 1, 2, 4 ] 29 + default: 4 30 + 31 + reset-gpios: 32 + description: GPIO connected to control RESET pin 33 + maxItems: 1 34 + 35 + power-gpios: 36 + description: GPIO connect to control PWRDWN pin 37 + maxItems: 1 38 + 39 + pxa-u16-align4: 40 + description: put in place the workaround the force all u16 writes to be 41 + 32 bits aligned 42 + type: boolean 43 + 44 + required: 45 + - compatible 46 + - reg 47 + - interrupts 48 + 49 + unevaluatedProperties: false 50 + 51 + examples: 52 + - | 53 + #include <dt-bindings/interrupt-controller/arm-gic.h> 54 + 55 + ethernet@4010000 { 56 + compatible = "smsc,lan91c111"; 57 + reg = <0x40100000 0x10000>; 58 + phy-mode = "mii"; 59 + interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>; 60 + reg-io-width = <2>; 61 + };
-17
Documentation/devicetree/bindings/net/smsc-lan91c111.txt
··· 1 - SMSC LAN91c111 Ethernet mac 2 - 3 - Required properties: 4 - - compatible = "smsc,lan91c111"; 5 - - reg : physical address and size of registers 6 - - interrupts : interrupt connection 7 - 8 - Optional properties: 9 - - phy-device : see ethernet.txt file in the same directory 10 - - reg-io-width : Mask of sizes (in bytes) of the IO accesses that 11 - are supported on the device. Valid value for SMSC LAN91c111 are 12 - 1, 2 or 4. If it's omitted or invalid, the size would be 2 meaning 13 - 16-bit access only. 14 - - power-gpios: GPIO to control the PWRDWN pin 15 - - reset-gpios: GPIO to control the RESET pin 16 - - pxa-u16-align4 : Boolean, put in place the workaround the force all 17 - u16 writes to be 32 bits aligned