[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250422175918.585022-2-artur@conclusive.pl>
Date: Tue, 22 Apr 2025 19:59:17 +0200
From: Artur Rojek <artur@...clusive.pl>
To: Johannes Berg <johannes@...solutions.net>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>
Cc: linux-wireless@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
Jakub Klama <jakub@...clusive.pl>,
Wojciech Kloska <wojciech@...clusive.pl>,
Ulf Axelsson <ulf.axelsson@...dicsemi.no>,
Artur Rojek <artur@...clusive.pl>
Subject: [RFC PATCH v2 1/2] dt-bindings: wifi: Add support for Nordic nRF70
Add a documentation file to describe the Device Tree bindings for the
Nordic Semiconductor nRF70 series wireless companion IC.
Signed-off-by: Artur Rojek <artur@...clusive.pl>
---
v2: - rename the patch subject to comply with DT submission rules
- fix a typo in reg property name and correct its indentation
- replace all gpio based properties as follows:
- irq-gpios with interrupts/interrupt-names
- bucken-gpios/iovdd-gpios with vpwr-supply/vio-supply
- clarify usage of said properties in their descriptions
- add a reference to spi-peripheral-props.yaml#
- specify unevaluatedProperties
- drop unused voltage-ranges property
- update bindings example accordingly w/ above changes
.../bindings/net/wireless/nordic,nrf70.yaml | 71 +++++++++++++++++++
1 file changed, 71 insertions(+)
create mode 100644 Documentation/devicetree/bindings/net/wireless/nordic,nrf70.yaml
diff --git a/Documentation/devicetree/bindings/net/wireless/nordic,nrf70.yaml b/Documentation/devicetree/bindings/net/wireless/nordic,nrf70.yaml
new file mode 100644
index 000000000000..c9a41b61c624
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/wireless/nordic,nrf70.yaml
@@ -0,0 +1,71 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/wireless/nordic,nrf70.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Nordic Semiconductor nRF70 series wireless companion IC
+
+maintainers:
+ - Artur Rojek <artur@...clusive.tech>
+
+properties:
+ compatible:
+ const: nordic,nrf70
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+ description: HOST_IRQ line, used for host processor interrupt requests.
+
+ interrupt-names:
+ description: Name for the HOST_IRQ line. This must be set to "host-irq".
+ const: host-irq
+
+ vpwr-supply:
+ description: BUCKEN line, used for PWR IP state control.
+
+ vio-supply:
+ description: IOVDD line, used for I/O pins voltage control. Optional.
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - interrupt-names
+ - vpwr-supply
+
+allOf:
+ - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ reg_nrf70_buck: regulator-nrf70-buck {
+ compatible = "regulator-fixed";
+ regulator-name = "nrf70_buck";
+ gpio = <&gpio2 24 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
+
+ spi {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ nrf7002@0 {
+ compatible = "nordic,nrf70";
+ reg = <0>;
+ spi-max-frequency = <32000000>;
+ interrupt-parent = <&gpio2>;
+ interrupts = <13 GPIO_ACTIVE_HIGH>;
+ interrupt-names = "host-irq";
+ vpwr-supply = <®_nrf70_buck>;
+ spi-rx-bus-width = <4>;
+ spi-tx-bus-width = <4>;
+ };
+ };
--
2.49.0
Powered by blists - more mailing lists