Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6391171pxb; Tue, 15 Feb 2022 01:09:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJza2AI23Ey88DRkDYi9fz+klYL8h24O4PY8UqVLFyKpVRaEO8Omhw4hhc7z5yJe+eOumh+N X-Received: by 2002:a17:906:4787:: with SMTP id cw7mr2113367ejc.9.1644916145762; Tue, 15 Feb 2022 01:09:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644916145; cv=none; d=google.com; s=arc-20160816; b=oYV6dbRWY+l5Hx/7c9bLhJcAAHA3lbQXCy6B9PBLIGzHfF4UYQ+qx5q5g+XWZ++9o5 djDhLE0sl0C8lnKXmKCNcqccKkIJN1AMxJnH1dDi7Tl9p/eEeo1S+1GUNK+KvSMd9N3X B7By7y9VEt5gdwMX0wkhR54+x+8OMU66BLuHcdJ4xc0rv8Me1Od0Q6ARqj3S6lI7uhF7 FyJRUdgAB9isJ7+oAHC4RE8A5n+jRgkJFTWginfyH5AoTvTbnTpxojaec76EezKe3dMm 25DS29KseXo9gM8BjJXu/ejnnOrBaNFkWlf6gjDLdZx2c1BtH8rpuxUCT9Oz8thCx01x 6Giw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=XLAA4n7gNThtVCbN+nYQx/EDwnOzqb+EFvRLcixOwtU=; b=en7fh4ouBXnXDgI2/kgywTWqf3qO9Y/il97W77hz5YYPHrv3iIMqwYRljCp2nP5//E BK0g0FPQhv/s/36uHXe/D63O6HlNwOIGGZbDCCnjC5nhNMAWOFioogY9VbaIpyhXGPNw DOxYLDGPXXbH2zESFGCFd5c42tTAAkRq8BRnkrBJu1/IVT7P5TcOSteeY0K9kY/bFL0S l8uooiTCSGmBvIhj5G9RDQIxOCxuHjxZeoZoOVP1EBgVgirSyLinitSe3KppVCXX/DbX m+G3RRo0DEUVXN8I/xTmAftxFgdb/pR6UVVb17XpyOxgNoQAq4BeKzDgQDFCNa83it+m Ac5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h24si2700458edq.260.2022.02.15.01.08.42; Tue, 15 Feb 2022 01:09:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235250AbiBOIKg (ORCPT + 99 others); Tue, 15 Feb 2022 03:10:36 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235218AbiBOIKb (ORCPT ); Tue, 15 Feb 2022 03:10:31 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A1462E09C for ; Tue, 15 Feb 2022 00:10:11 -0800 (PST) Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nJsu4-0002EF-5Y; Tue, 15 Feb 2022 09:09:40 +0100 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1nJsu2-009Uku-51; Tue, 15 Feb 2022 09:09:38 +0100 From: Oleksij Rempel To: =?UTF-8?q?Beno=C3=AEt=20Cousson?= , "David S. Miller" , Florian Fainelli , Jakub Kicinski , Krzysztof Kozlowski , Nicolas Saenz Julienne , Ray Jui , Rob Herring , Sascha Hauer , Scott Branden , Shawn Guo , Tony Lindgren Cc: Oleksij Rempel , kernel@pengutronix.de, bcm-kernel-feedback-list@broadcom.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v3 2/8] dt-bindings: net: add schema for Microchip/SMSC LAN95xx USB Ethernet controllers Date: Tue, 15 Feb 2022 09:09:31 +0100 Message-Id: <20220215080937.2263111-2-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220215080937.2263111-1-o.rempel@pengutronix.de> References: <20220215080937.2263111-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Create initial schema for Microchip/SMSC LAN95xx USB Ethernet controllers and import some of currently supported USB IDs form drivers/net/usb/smsc95xx.c This devices are already used in some of DTs. So, this schema makes it official. NOTE: there was no previously documented txt based DT binding for this controllers. Signed-off-by: Oleksij Rempel --- .../bindings/net/microchip,lan95xx.yaml | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/microchip,lan95xx.yaml diff --git a/Documentation/devicetree/bindings/net/microchip,lan95xx.yaml b/Documentation/devicetree/bindings/net/microchip,lan95xx.yaml new file mode 100644 index 000000000000..8521c65366b4 --- /dev/null +++ b/Documentation/devicetree/bindings/net/microchip,lan95xx.yaml @@ -0,0 +1,80 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/microchip,lan95xx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: The device tree bindings for the USB Ethernet controllers + +maintainers: + - Oleksij Rempel + +description: | + Device tree properties for hard wired SMSC95xx compatible USB Ethernet + controller. + +allOf: + - $ref: ethernet-controller.yaml# + +properties: + compatible: + items: + - enum: + - usb424,9500 # SMSC9500 USB Ethernet Device + - usb424,9505 # SMSC9505 USB Ethernet Device + - usb424,9530 # SMSC LAN9530 USB Ethernet Device + - usb424,9730 # SMSC LAN9730 USB Ethernet Device + - usb424,9900 # SMSC9500 USB Ethernet Device (SAL10) + - usb424,9901 # SMSC9505 USB Ethernet Device (SAL10) + - usb424,9902 # SMSC9500A USB Ethernet Device (SAL10) + - usb424,9903 # SMSC9505A USB Ethernet Device (SAL10) + - usb424,9904 # SMSC9512/9514 USB Hub & Ethernet Device (SAL10) + - usb424,9905 # SMSC9500A USB Ethernet Device (HAL) + - usb424,9906 # SMSC9505A USB Ethernet Device (HAL) + - usb424,9907 # SMSC9500 USB Ethernet Device (Alternate ID) + - usb424,9908 # SMSC9500A USB Ethernet Device (Alternate ID) + - usb424,9909 # SMSC9512/9514 USB Hub & Ethernet Devic. ID) + - usb424,9e00 # SMSC9500A USB Ethernet Device + - usb424,9e01 # SMSC9505A USB Ethernet Device + - usb424,9e08 # SMSC LAN89530 USB Ethernet Device + - usb424,ec00 # SMSC9512/9514 USB Hub & Ethernet Device + + reg: true + local-mac-address: true + mac-address: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + usb { + #address-cells = <1>; + #size-cells = <0>; + + ethernet@1 { + compatible = "usb424,ec00"; + reg = <1>; + local-mac-address = [00 00 00 00 00 00]; + }; + }; + - | + usb { + #address-cells = <1>; + #size-cells = <0>; + + usb1@1 { + compatible = "usb424,9514"; + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + + ethernet@1 { + compatible = "usb424,ec00"; + reg = <1>; + }; + }; + }; -- 2.30.2