Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp625963pxb; Wed, 16 Feb 2022 00:13:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJzAjeBT9igMgjZb3RxkBSA7Gr8BRG89ciPEeZsKodmg4XMoAFKT+b5jOueY8Rdu0Lf3f4xU X-Received: by 2002:a17:902:e80a:b0:14c:def1:ef60 with SMTP id u10-20020a170902e80a00b0014cdef1ef60mr1315936plg.144.1644999183993; Wed, 16 Feb 2022 00:13:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644999183; cv=none; d=google.com; s=arc-20160816; b=iuRmRE7jmN3DO991PMCfXrJikxNRuEr/hXJXjcem3LR3PoBwM7WANG6NDhO1Hd2usJ VxMV5SC8v3Vfe+nETOwjLItiOG1j4jcvCOIya+HbFrRLU1mRt/ZRxOjW5jnBQ2V7z7He mfkrZwgz+Gkaj145J7Eo+XVD9L20by9mZiAPqurukw9s4bpFUyiXz6+3iBvQ2VqXHkV8 a2UCIhDeNpYK+mPyxt9u/KK189UnxqxKD8c4aTR8mUtqfIWaBXunwew+EhnF7GMVoOAt mKQmW/mFMeam2ppUto9Wk35RUI362LKujWoy1dJ1DfptK8odcANCA5pmzDJ/PBz7VGPM G+Aw== 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=caBOrfUM6urnXxvPDC7jT4+RDkps9n8KNIaPpm09PCg=; b=IOHCm1DK7/fqvotyUdxlH93ij/+zfpkxrEuGez64zkeZcUFlPZWYh3LdyVYkNV5U8O halXTphohfXNCu74rvFRIxdz77PUep4dKucPY4XU+ryI8BRF9Z9rMgJn/8qSvfH1NI5x RSZpMyTLhkA49rjwHwD+UC9i8dhPASPzy6qObj26bIcxVzEM1LcL/+pFXTOULkc9JAHK 0/+Eig5tgakqsL9C/wIlKhdi+0ZxDNUiOABkWnbrcP4xWa6wtSR+n7DWqAE2XNgwiCwn ack2Qr3tf73ZqDmcKWQSCSkA5pZ/7SRF5Pr7wTOKAfisxcwHoLaYHZnQNH+gtWQ8S5B9 +MNA== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s19si9293542pfk.137.2022.02.16.00.13.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 00:13:03 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 38B3ABB55F; Tue, 15 Feb 2022 23:51:14 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231226AbiBPHua (ORCPT + 99 others); Wed, 16 Feb 2022 02:50:30 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:40918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231153AbiBPHuN (ORCPT ); Wed, 16 Feb 2022 02:50:13 -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 C064EB6D04 for ; Tue, 15 Feb 2022 23:49:57 -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 1nKF46-00035y-Uc; Wed, 16 Feb 2022 08:49:30 +0100 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1nKF45-00FBb9-2s; Wed, 16 Feb 2022 08:49:29 +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 v5 2/9] dt-bindings: net: add schema for Microchip/SMSC LAN95xx USB Ethernet controllers Date: Wed, 16 Feb 2022 08:49:20 +0100 Message-Id: <20220216074927.3619425-3-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220216074927.3619425-1-o.rempel@pengutronix.de> References: <20220216074927.3619425-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=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 These 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