Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp37690iob; Tue, 17 May 2022 18:00:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVwFlG0wINb/6qNxI2iuUFhlu6MZ7iJL/YsQVaQHT2tZk4t8NAk78v04AWVg4fw2QU1Cyr X-Received: by 2002:a17:907:16a8:b0:6f3:e9fc:29e7 with SMTP id hc40-20020a17090716a800b006f3e9fc29e7mr22095327ejc.428.1652835643966; Tue, 17 May 2022 18:00:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652835643; cv=none; d=google.com; s=arc-20160816; b=E/ubRvOYBMMEPxr5bz1sJti3UZ3GG9nzTLIJYRZZLdFQcv1Zp+Gy+r97ZonEvSdxcw j2//ttQ6fnemS8/XE/ZZNNKjgCzMFoDsbQF3hUb8ZzhF6MfL8vkDGFzNS/XlwPvGmZMk d36owrPTCGKIZRgztJhtMpz7iylJzjw1DOIjNEcK3jytvv5SRJHXJV+SyNZyh//iBwRf ll1lglujeEY9E4woqvWKT4iurtNed1LY6ma3ALQ5g82X1vZTPa/aLwDnDldJbh5jPbTv knD3d3645CyL5fj/5R8JSeFRo6iDoXhod8CpE06+T64F3lYIKwbYeNi9HEFusiShxLAX AooA== 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=tZGvMDBcdHaD3+CUFUsr7qpx+eCmfDKiAET2KKIYXeU=; b=rSmlH9etSdPVv+Lk7ucI/BaRU5GEplPNNAB/nnXWCD8bYhfaywlBKfBr4i3eEPllgx zUJiK1wtf95xFUQbxpv3zaG3+ftnESXr7TAQor+b9w4XHABRxKAV91OgYbEsOIBoZvzl wC02fyQVRRhb5fa1XOyJDRWBAR1kKSBKcNaOUQGz8EWPgG5uO77I5oc28jcZeCM50CqL vIC3x9M9Ey2YTwNRhbkAjWD9UrZ8DXijqmxNKSqXXI/RgHqBd/iKxJVSHQci0fpfD1uW jN4n8rCvKnb9PMwQktz3Xhms0ckg4CBYCuY4Y2A6S4QuFja1Kb+hwcuxPDvwCBh9wf6Q QpXQ== 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 g13-20020a170906868d00b006f385307f95si631291ejx.649.2022.05.17.18.00.17; Tue, 17 May 2022 18:00:43 -0700 (PDT) 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 S238702AbiEQLPw (ORCPT + 99 others); Tue, 17 May 2022 07:15:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344121AbiEQLPW (ORCPT ); Tue, 17 May 2022 07:15:22 -0400 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 2810E2BB39 for ; Tue, 17 May 2022 04:15:21 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nqvAT-0004KC-0O; Tue, 17 May 2022 13:15:09 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1nqvAR-002rTe-Qf; Tue, 17 May 2022 13:15:06 +0200 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1nqvAP-003tsb-Lw; Tue, 17 May 2022 13:15:05 +0200 From: Oleksij Rempel To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski Cc: Oleksij Rempel , Rob Herring , kernel@pengutronix.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v6 1/3] dt-bindings: net: add schema for ASIX USB Ethernet controllers Date: Tue, 17 May 2022 13:15:03 +0200 Message-Id: <20220517111505.929722-2-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220517111505.929722-1-o.rempel@pengutronix.de> References: <20220517111505.929722-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 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 schema for ASIX USB Ethernet controllers and import some of currently supported USB IDs form drivers/net/usb/asix_devices.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 Reviewed-by: Rob Herring --- .../devicetree/bindings/net/asix,ax88178.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/asix,ax88178.yaml diff --git a/Documentation/devicetree/bindings/net/asix,ax88178.yaml b/Documentation/devicetree/bindings/net/asix,ax88178.yaml new file mode 100644 index 000000000000..1af52358de4c --- /dev/null +++ b/Documentation/devicetree/bindings/net/asix,ax88178.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/asix,ax88178.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 USB Ethernet devices. + +allOf: + - $ref: ethernet-controller.yaml# + +properties: + compatible: + items: + - enum: + - usbb95,1720 # ASIX AX88172 + - usbb95,172a # ASIX AX88172A + - usbb95,1780 # ASIX AX88178 + - usbb95,7720 # ASIX AX88772 + - usbb95,772a # ASIX AX88772A + - usbb95,772b # ASIX AX88772B + - usbb95,7e2b # ASIX AX88772B + + 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 = "usbb95,7e2b"; + reg = <1>; + local-mac-address = [00 00 00 00 00 00]; + }; + }; + - | + usb { + #address-cells = <1>; + #size-cells = <0>; + + usb1@1 { + compatible = "usb1234,5678"; + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + + ethernet@1 { + compatible = "usbb95,772b"; + reg = <1>; + }; + }; + }; -- 2.30.2