diff mbox series

[v5,2/3] dt-bindings: remoteproc: Add AVM WASP

Message ID 20220804210806.4053-3-kestrelseventyfour@gmail.com (mailing list archive)
State New, archived
Headers show
Series Add support for WASP SoC on AVM router boards | expand

Commit Message

Daniel Kestrel Aug. 4, 2022, 9:08 p.m. UTC
AVM Fritzbox router boards may contain an additional ATH79
based SoC that has the wifi cards connected.
This patch adds bindings for this remote processor.

Signed-off-by: Daniel Kestrel <kestrelseventyfour@gmail.com>
---
 .../bindings/remoteproc/avm,wasp-rproc.yaml   | 61 +++++++++++++++++++
 1 file changed, 61 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/remoteproc/avm,wasp-rproc.yaml

Comments

Rob Herring Aug. 9, 2022, 7:33 p.m. UTC | #1
On Thu, 04 Aug 2022 23:08:05 +0200, Daniel Kestrel wrote:
> AVM Fritzbox router boards may contain an additional ATH79
> based SoC that has the wifi cards connected.
> This patch adds bindings for this remote processor.
> 
> Signed-off-by: Daniel Kestrel <kestrelseventyfour@gmail.com>
> ---
>  .../bindings/remoteproc/avm,wasp-rproc.yaml   | 61 +++++++++++++++++++
>  1 file changed, 61 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/remoteproc/avm,wasp-rproc.yaml
> 

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

Patch

diff --git a/Documentation/devicetree/bindings/remoteproc/avm,wasp-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/avm,wasp-rproc.yaml
new file mode 100644
index 000000000000..2fd4ffb53945
--- /dev/null
+++ b/Documentation/devicetree/bindings/remoteproc/avm,wasp-rproc.yaml
@@ -0,0 +1,61 @@ 
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/remoteproc/avm,wasp-rproc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: AVM WASP processor controller bindings
+
+maintainers:
+  - Daniel Kestrel <kestrelseventyfour@gmail.com>
+
+description: |
+  This document defines the bindings for the remoteproc component that loads and
+  boots firmwares on the AVM Wireless Assistant Support Processor (WASP) SoC
+  that is attached to some AVM Fritzbox devices (3390, 3490, 5490, 5491, 7490).
+
+properties:
+  compatible:
+    enum:
+      - avm,fritzbox3390-wasp
+      - avm,fritzbox3490-wasp
+      - avm,fritzbox5490-wasp
+      - avm,fritzbox5491-wasp
+      - avm,fritzbox7490-wasp
+
+  mdio-device:
+    $ref: /schemas/types.yaml#/definitions/phandle
+    description: Lantiq GSWIP switch mdio.
+
+  link-interface:
+    $ref: /schemas/types.yaml#/definitions/phandle
+    description: Network interface, where the WASP SoC is connected to.
+
+  reset-gpios:
+    description: Gpio to reset the WASP SoC to initial state.
+    maxItems: 1
+
+  power-gpios:
+    description: Gpio to power the WASP SoC on and off.
+    maxItems: 1
+
+required:
+  - compatible
+  - mdio-device
+  - link-interface
+  - reset-gpios
+  - power-gpios
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    remoteproc {
+        compatible = "avm,fritzbox7490-wasp";
+        mdio-device = <&gswip_mdio>;
+        link-interface = <&port5>;
+        reset-gpios = <&gpio 34 GPIO_ACTIVE_HIGH>;
+        power-gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
+    };