From b0287b59fd16cd9d53be92a242537676216f147d Mon Sep 17 00:00:00 2001 From: Koushik Immadisetty Date: Wed, 29 May 2024 15:06:22 +0530 Subject: [PATCH] dt-bindings: Add device-tree bindings for aon spi & interface drivers Add snapshot of device-tree bindings for AON spi, interface and it's corresponding rpmsg drivers from msm-5.15.c2 in YAML format. Snapshot is taken from msm-5.15.c2 kernel commit 95ffcf910eee ("ARM: dts: msm: add aon-rma glink node"). Change-Id: I5c66e660b674fee78f541b267027a34f92717e0c Signed-off-by: Koushik Immadisetty --- .../soc/qcom/qcom,slatecom_interface.yaml | 38 +++++++++++++++ bindings/soc/qcom/qcom,slatecom_rpmsg.yaml | 46 +++++++++++++++++++ bindings/soc/qcom/qcom,slatecom_spi.yaml | 37 +++++++++++++++ 3 files changed, 121 insertions(+) create mode 100644 bindings/soc/qcom/qcom,slatecom_interface.yaml create mode 100644 bindings/soc/qcom/qcom,slatecom_rpmsg.yaml create mode 100644 bindings/soc/qcom/qcom,slatecom_spi.yaml diff --git a/bindings/soc/qcom/qcom,slatecom_interface.yaml b/bindings/soc/qcom/qcom,slatecom_interface.yaml new file mode 100644 index 00000000..518b700e --- /dev/null +++ b/bindings/soc/qcom/qcom,slatecom_interface.yaml @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/qcom/qcom,slatecom_interface.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Slatecom Interface Driver + +maintainers: + - Praveen koya + +description: | + slatecom_interface driver creates a slate_com_dev device + node for user space communication. Single user space + client can open device node for communication from hardware. + Hardware will provide access to read/write registers or AHB + memory in the device. + +properties: + compatible: + const: qcom,slate-daemon + + qcom,platform-reset-gpio: + description: This gpio state used to make boot decision for slate subsystem. + +required: + - compatible + - qcom,platform-reset-gpio + +additionalProperties: false + +examples: + - | + qcom,slate-daemon { + compatible = "qcom,slate-daemon"; + qcom,platform-reset-gpio = <&pm5100_gpios 15 0>; + }; + diff --git a/bindings/soc/qcom/qcom,slatecom_rpmsg.yaml b/bindings/soc/qcom/qcom,slatecom_rpmsg.yaml new file mode 100644 index 00000000..2e46ad0c --- /dev/null +++ b/bindings/soc/qcom/qcom,slatecom_rpmsg.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/qcom/qcom,slatecom_rpmsg.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Slatecom RPMSG Driver + +maintainers: + - Praveen koya + +description: | + slatecom_rpmsg driver provides functionality + to send and receive data over Glink from slate co processor. + +properties: + compatible: + const: qcom,slatecom-rpmsg + + qcom,glink-channels: + $ref: '/schemas/types.yaml#/definitions/string' + description: specifies the glink channel name + + qcom,glinkpkt-edge: + $ref: '/schemas/types.yaml#/definitions/string' + description: specifies the glink edge to match + + intents: + description: specifies the size and count of intents to glink + +required: + - compatible + - qcom,glink-channels + - qcom,glinkpkt-edge + +additionalProperties: false + +examples: + - | + qcom,slatecom-rpmsg { + compatible = "qcom,slatecom-rpmsg"; + qcom,glink-channels = "slate_ctrl"; + qcom,glinkpkt-edge = "slate"; + intents = <0x200 1>; + }; + diff --git a/bindings/soc/qcom/qcom,slatecom_spi.yaml b/bindings/soc/qcom/qcom,slatecom_spi.yaml new file mode 100644 index 00000000..d8414156 --- /dev/null +++ b/bindings/soc/qcom/qcom,slatecom_spi.yaml @@ -0,0 +1,37 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/qcom/qcom,slatecom_spi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Slate Coprocessor Communication Driver + +maintainers: + - Praveen koya + +description: | + slatecom_spi driver provides a set of apis to perform + register, fifo, ahb read and write operations with slate + over spi interface. It also reads slate status and + sends events to the registered clients. + +properties: + compatible: + const: qcom,slate-spi + + qcom,irq-gpio: + description: IRQ used by the slate to inturrupt MSM. + +required: + - compatible + +additionalProperties: false + +examples: + - | + qcom,slate-spi { + compatible = "qcom,slate-spi"; + interrupt-parent = <&tlmm>; + /* IRQ from slate */ + qcom,irq-gpio = <&tlmm 104 1>; + };