* [PATCH v8 2/2] Serial: silabs si4455 serial driver
@ 2021-01-12 10:19 Jozsef Horvath
2021-01-12 10:27 ` 'Greg Kroah-Hartman'
0 siblings, 1 reply; 2+ messages in thread
From: Jozsef Horvath @ 2021-01-12 10:19 UTC (permalink / raw)
To: 'Greg Kroah-Hartman', 'Rob Herring',
'Jiri Slaby', 'József Horváth',
linux-serial, devicetree, linux-kernel
This is a device tree schema for serial port driver for
Silicon Labs Si4455 Sub-GHz transciver.
Datasheet: https://www.silabs.com/documents/public/data-sheets/Si4455.pdf
Guide: Documentation/driver-api/serial/si4455.rst
Signed-off-by: Jozsef Horvath <info@ministro.hu>
---
changes v1:
- fixed: dt: bindings: rename sdn-gpios to shutdown-gpios
changes v3:
- fixed: dt: bindings: silabs,si4455: more detailed description
- added: dt: bindings: silabs,si4455: properties silabs,package-size,
silabs,tx-channel, silabs,rx-channel, silabs,ez-config
changes v4:
- fixed: dt: bindings: silabs,si4455: $id
from http://devicetree.org/schemas/serial/silabs,si4455.yaml
to http://devicetree.org/schemas/staging/serial/silabs,si4455.yaml
changes v5:
- fixed: dt: bindings: silabs,si4455: $id
from http://devicetree.org/schemas/staging/serial/silabs,si4455.yaml
to http://devicetree.org/schemas/serial/silabs,si4455.yaml
- fixed: dt: bindings: silabs,si4455: serial.yaml reference added
changes v7:
- added: dt: bindings: silabs,si4455: silabs,tx-timeout property definition
changes v8:
- fixed: dt: bindings: silabs,si4455: silabs,tx-timeout property name changed
to silabs,tx-timeout-ms
---
.../bindings/serial/silabs,si4455.yaml | 104 ++++++++++++++++++
1 file changed, 104 insertions(+)
create mode 100644 Documentation/devicetree/bindings/serial/silabs,si4455.yaml
diff --git a/Documentation/devicetree/bindings/serial/silabs,si4455.yaml b/Documentation/devicetree/bindings/serial/silabs,si4455.yaml
new file mode 100644
index 000000000000..6e6b020e3cb9
--- /dev/null
+++ b/Documentation/devicetree/bindings/serial/silabs,si4455.yaml
@@ -0,0 +1,104 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: "http://devicetree.org/schemas/serial/silabs,si4455.yaml#"
+$schema: "http://devicetree.org/meta-schemas/core.yaml#"
+
+title: Silicon Labs Si4455 device tree bindings
+
+maintainers:
+ - József Horváth <info@ministro.hu>
+
+description:
+ This document is for describing the required device tree parameters for si4455 serial driver.
+ The si4455 driver tries to represent the Silicon Labs Si4455 sub-GHz transceiver device
+ like a serial port. The required parameters for proper operation are described below.
+ https://www.silabs.com/documents/public/data-sheets/Si4455.pdf
+
+allOf:
+ - $ref: "serial.yaml#"
+
+properties:
+ compatible:
+ const: silabs,si4455
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ spi-max-frequency:
+ description: maximum clock frequency on SPI port
+ maximum: 500000
+
+ shutdown-gpios:
+ description: gpio pin for SDN
+ maxItems: 1
+
+ silabs,package-size:
+ description:
+ Radio payload length, variable packet length is not supported by driver.
+ This value should equal with EZConfig payload length.
+ $ref: /schemas/types.yaml#/definitions/uint32
+ maximum: 64
+ minimum: 1
+
+ silabs,tx-channel:
+ description:
+ Radio transmit channel selection.
+ $ref: /schemas/types.yaml#/definitions/uint32
+ maximum: 255
+ minimum: 0
+
+ silabs,rx-channel:
+ description:
+ Radio receive channel selection.
+ $ref: /schemas/types.yaml#/definitions/uint32
+ maximum: 255
+ minimum: 0
+
+ silabs,tx-timeout-ms:
+ description:
+ Radio transmit timeout(ms)
+ maximum: 1000
+ minimum: 1
+
+ firmware-name:
+ description:
+ Radio configuration data file name.
+ $ref: /schemas/types.yaml#/definitions/string
+ items:
+ pattern: ^[0-9a-z\._\-]{1,255}$
+
+required:
+ - reg
+ - interrupts
+ - spi-max-frequency
+ - shutdown-gpios
+ - silabs,package-size
+ - silabs,tx-channel
+ - silabs,rx-channel
+ - firmware-name
+
+additionalProperties: false
+
+examples:
+ - |
+ spi {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ si4455_0: serial@0 {
+ compatible = "silabs,si4455";
+ reg = <0>;
+ interrupt-parent = <&gpio>;
+ interrupts = <7 2>;
+ shutdown-gpios = <&gpio 26 1>;
+ spi-max-frequency = <300000>;
+ silabs,package-size = <30>;
+ silabs,tx-channel = <1>;
+ silabs,rx-channel = <2>;
+ firmware-name = "si4455_spi0_0.ez.bin";
+ };
+ };
+...
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v8 2/2] Serial: silabs si4455 serial driver
2021-01-12 10:19 [PATCH v8 2/2] Serial: silabs si4455 serial driver Jozsef Horvath
@ 2021-01-12 10:27 ` 'Greg Kroah-Hartman'
0 siblings, 0 replies; 2+ messages in thread
From: 'Greg Kroah-Hartman' @ 2021-01-12 10:27 UTC (permalink / raw)
To: Jozsef Horvath
Cc: 'Rob Herring', 'Jiri Slaby', linux-serial,
devicetree, linux-kernel
On Tue, Jan 12, 2021 at 10:19:00AM +0000, Jozsef Horvath wrote:
> This is a device tree schema for serial port driver for
> Silicon Labs Si4455 Sub-GHz transciver.
>
> Datasheet: https://www.silabs.com/documents/public/data-sheets/Si4455.pdf
>
> Guide: Documentation/driver-api/serial/si4455.rst
>
> Signed-off-by: Jozsef Horvath <info@ministro.hu>
You sent 2 different patches, that do different things, with the exact
same subject line. Please make your commit messages unique, we can't
take this as-is.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-12 10:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-12 10:19 [PATCH v8 2/2] Serial: silabs si4455 serial driver Jozsef Horvath
2021-01-12 10:27 ` 'Greg Kroah-Hartman'
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox