All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 1/8] dt-bindings: net: add schema for ASIX USB Ethernet controllers
@ 2022-02-15  8:09 ` Oleksij Rempel
  0 siblings, 0 replies; 30+ messages in thread
From: Oleksij Rempel @ 2022-02-15  8:09 UTC (permalink / raw)
  To: Benoît Cousson, 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, bcm-kernel-feedback-list, netdev,
	devicetree, linux-kernel, linux-usb, linux-rpi-kernel,
	linux-arm-kernel, linux-samsung-soc, linux-omap, linux-tegra

Create schema for ASIX USB Ethernet controllers and import some of
currently supported USB IDs form drivers/net/usb/asix_devices.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 <o.rempel@pengutronix.de>
---
 .../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 <o.rempel@pengutronix.de>
+
+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


^ permalink raw reply related	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2022-02-16  7:18 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-15  8:09 [PATCH v3 1/8] dt-bindings: net: add schema for ASIX USB Ethernet controllers Oleksij Rempel
2022-02-15  8:09 ` Oleksij Rempel
2022-02-15  8:09 ` [PATCH v3 2/8] dt-bindings: net: add schema for Microchip/SMSC LAN95xx " Oleksij Rempel
2022-02-15  8:09   ` Oleksij Rempel
2022-02-15  8:09 ` [PATCH v3 3/8] dt-bindings: usb: ci-hdrc-usb2: fix node node for ethernet controller Oleksij Rempel
2022-02-15  8:09   ` Oleksij Rempel
2022-02-15  8:09 ` [PATCH v3 4/8] ARM: dts: bcm283x: fix ethernet node name Oleksij Rempel
2022-02-15  8:09   ` Oleksij Rempel
2022-02-15 21:01   ` Florian Fainelli
2022-02-15 21:01     ` Florian Fainelli
2022-02-16  7:16     ` Oleksij Rempel
2022-02-16  7:16       ` Oleksij Rempel
2022-02-15  8:09 ` [PATCH v3 5/8] ARM: dts: exynos: fix ethernet node name for different odroid boards Oleksij Rempel
2022-02-15  8:09   ` Oleksij Rempel
2022-02-15  8:12   ` Marc Kleine-Budde
2022-02-15  8:12     ` Marc Kleine-Budde
2022-02-15  8:16     ` Oleksij Rempel
2022-02-15  8:16       ` Oleksij Rempel
2022-02-15 20:56       ` Andrew Lunn
2022-02-15 20:56         ` Andrew Lunn
2022-02-16  6:15         ` Oleksij Rempel
2022-02-16  6:15           ` Oleksij Rempel
2022-02-15  8:28   ` Krzysztof Kozlowski
2022-02-15  8:28     ` Krzysztof Kozlowski
2022-02-15  8:09 ` [PATCH v3 6/8] ARM: dts: omap3/4/5: fix ethernet node name for different OMAP boards Oleksij Rempel
2022-02-15  8:09   ` Oleksij Rempel
2022-02-15  8:09 ` [PATCH v3 7/8] ARM: dts: tegra20/30: fix ethernet node name for different tegra boards Oleksij Rempel
2022-02-15  8:09   ` Oleksij Rempel
2022-02-15  8:09 ` [PATCH v3 8/8] arm64: dts: imx8mm-kontron: fix ethernet node name Oleksij Rempel
2022-02-15  8:09   ` Oleksij Rempel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.