diff mbox series

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

Message ID 20250408-rtl-onboard-v2-1-0b6730b90e31@posteo.net (mailing list archive)
State New
Delegated to: Ping-Ke Shih
Headers show
Series Onboard USB device support for RTL8188ETV 2.4GHz USB WiFi module | expand

Checks

Context Check Description
wifibot/tree_selection success Not a local patch

Commit Message

J. Neuschäfer April 8, 2025, 7:13 p.m. UTC
From: "J. Neuschäfer" <j.ne@posteo.net>

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

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

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(+)

Comments

Rob Herring (Arm) April 11, 2025, 3:24 p.m. UTC | #1
On Tue, 08 Apr 2025 21:13:12 +0200, J. Neuschäfer wrote:
> This is an on-board USB device that requires a 3.3V supply.
> 
> Signed-off-by: J. Neuschäfer <j.ne@posteo.net>
> ---
> 
> 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(+)
> 

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
diff mbox series

Patch

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@posteo.net>
+
+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>;
+        };
+    };
+
+...