Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: arm: Add virtio transport for SCMI

Document the properties for arm,scmi-virtio compatible nodes.
The backing virtio SCMI device is described in patch [1].

While doing that, make shmem property required only for pre-existing
mailbox and smc transports, since virtio-scmi does not need it.

[1] https://lists.oasis-open.org/archives/virtio-comment/202102/msg00018.html

Link: https://lore.kernel.org/r/20210803131024.40280-14-cristian.marussi@arm.com
Co-developed-by: Peter Hilber <peter.hilber@opensynergy.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Igor Skalkin <igor.skalkin@opensynergy.com>
[ Peter: Adapted patch for submission to upstream. ]
Signed-off-by: Peter Hilber <peter.hilber@opensynergy.com>
[ Cristian: converted to yaml format, moved shmen required property. ]
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>

authored by

Igor Skalkin and committed by
Sudeep Holla
60625667 78852812

+7 -1
+7 -1
Documentation/devicetree/bindings/firmware/arm,scmi.yaml
··· 34 34 - description: SCMI compliant firmware with ARM SMC/HVC transport 35 35 items: 36 36 - const: arm,scmi-smc 37 + - description: SCMI compliant firmware with SCMI Virtio transport. 38 + The virtio transport only supports a single device. 39 + items: 40 + - const: arm,scmi-virtio 37 41 38 42 interrupts: 39 43 description: ··· 176 172 Each sub-node represents a protocol supported. If the platform 177 173 supports a dedicated communication channel for a particular protocol, 178 174 then the corresponding transport properties must be present. 175 + The virtio transport does not support a dedicated communication channel. 179 176 180 177 properties: 181 178 reg: ··· 200 195 201 196 required: 202 197 - compatible 203 - - shmem 204 198 205 199 if: 206 200 properties: ··· 213 209 214 210 required: 215 211 - mboxes 212 + - shmem 216 213 217 214 else: 218 215 if: ··· 224 219 then: 225 220 required: 226 221 - arm,smc-id 222 + - shmem 227 223 228 224 examples: 229 225 - |