Create schema for LAN75XX compatible USB Ethernet controllers. The smsc75xx driver only supports LAN7500 and LAN7505 devices. Signed-off-by: Thomas Richard --- .../devicetree/bindings/net/microchip,lan75xx.yaml | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/Documentation/devicetree/bindings/net/microchip,lan75xx.yaml b/Documentation/devicetree/bindings/net/microchip,lan75xx.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b84022976044ffec2024cff9fc0aa5016723abed --- /dev/null +++ b/Documentation/devicetree/bindings/net/microchip,lan75xx.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/microchip,lan75xx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip LAN7500/LAN7505 USB Ethernet Controllers + +maintainers: + - Thomas Richard + +description: + Device tree properties for LAN75XX compatible USB Ethernet controller. + +allOf: + - $ref: ethernet-controller.yaml# + +properties: + compatible: + items: + - enum: + - usb424,7500 + - usb424,7505 + + reg: + maxItems: 1 + + local-mac-address: true + mac-address: true + nvmem-cells: true + nvmem-cell-names: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + + usb { + #address-cells = <1>; + #size-cells = <0>; + + ethernet@1 { + compatible = "usb424,7500"; + reg = <1>; + local-mac-address = [00 00 00 00 00 00]; + }; + }; -- 2.53.0 Add USB tree description, including the Gigabit Ethernet controller (LAN7500). Adding the LAN7500 node will allow the bootloader to patch the devicetree and set the MAC address. Signed-off-by: Thomas Richard --- arch/arm/boot/dts/ti/omap/omap4-var-som-om44.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/ti/omap/omap4-var-som-om44.dtsi b/arch/arm/boot/dts/ti/omap/omap4-var-som-om44.dtsi index 37d56b3010cff0f6ea6208289da0aba7328067d5..9e04aa70f98227ac0054fea6cd4521ed1323ecbd 100644 --- a/arch/arm/boot/dts/ti/omap/omap4-var-som-om44.dtsi +++ b/arch/arm/boot/dts/ti/omap/omap4-var-som-om44.dtsi @@ -322,4 +322,18 @@ &usbhshost { &usbhsehci { phys = <&hsusb1_phy>; + #address-cells = <1>; + #size-cells = <0>; + + usbhub: hub@1 { + compatible = "usb424,2514"; + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + + ethernet: ethernet@3 { + compatible = "usb424,7500"; + reg = <3>; + }; + }; }; -- 2.53.0