[PATCH v2 1/2] dt-bindings: net: wireless: Add Realtek RTL8188ETV USB WiFi

From: J. Neuschäfer via B4 Relay
Date: Tue Apr 08 2025 - 15:18:20 EST


From: "J. Neuschäfer" <j.ne@xxxxxxxxxx>

This is an on-board USB device that requires a 3.3V supply.

Signed-off-by: J. Neuschäfer <j.ne@xxxxxxxxxx>
---

V2:
- Use my current email address
- Remove TODO comment
- Rename schema file to realtek,rtl8188e.yaml. This is the same
granularity at which the rtl8xxxu driver is split into files, making
it unnecessary to rename the schema file if another similar chip is added
in the future.
- Change license identifier from (GPL-2.0 OR BSD-2-Clause) to (GPL-2.0-only
OR BSD-2-Clause) because GPL-2.0 is ambiguous
---
.../bindings/net/wireless/realtek,rtl8188e.yaml | 50 ++++++++++++++++++++++
1 file changed, 50 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/wireless/realtek,rtl8188e.yaml b/Documentation/devicetree/bindings/net/wireless/realtek,rtl8188e.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2769731e07083b14e2f7388858dcded92c442018
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/wireless/realtek,rtl8188e.yaml
@@ -0,0 +1,50 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/wireless/realtek,rtl8188e.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Realtek RTL8188E USB WiFi
+
+maintainers:
+ - J. Neuschäfer <j.ne@xxxxxxxxxx>
+
+description:
+ Realtek RTL8188E is a family of USB-connected 2.4 GHz WiFi modules.
+
+allOf:
+ - $ref: /schemas/usb/usb-device.yaml#
+
+properties:
+ compatible:
+ const: usbbda,179 # RTL8188ETV
+
+ reg: true
+
+ vdd-supply:
+ description:
+ Regulator for the 3V3 supply.
+
+required:
+ - compatible
+ - reg
+ - vdd-supply
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ usb {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ wifi: wifi@1 {
+ compatible = "usbbda,179";
+ reg = <1>;
+ vdd-supply = <&vcc3v3>;
+ };
+ };
+
+...

--
2.48.0.rc1.219.gb6b6757d772