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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: soc: qcom,smsm: Allow specifying mboxes instead of qcom,ipc

The qcom,ipc-N properties are essentially providing a reference to a
mailbox, so allow using the mboxes property to do the same in a more
structured way.

Since multiple SMSM hosts are supported, we need to be able to provide
the correct mailbox for each host. The old qcom,ipc-N properties map to
the mboxes property by index, starting at 0 since that's a valid SMSM
host also.

Mark the older qcom,ipc-N as deprecated and update the example with
mboxes.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240606-smsm-mbox-v2-1-8abe6b5f01da@z3ntu.xyz
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Luca Weiss and committed by
Bjorn Andersson
5e66abcf 1b503fa2

+21 -9
+21 -9
Documentation/devicetree/bindings/soc/qcom/qcom,smsm.yaml
··· 33 33 specifier of the column in the subscription matrix representing the local 34 34 processor. 35 35 36 + mboxes: 37 + minItems: 1 38 + maxItems: 5 39 + description: 40 + Reference to the mailbox representing the outgoing doorbell in APCS for 41 + this client. Each entry represents the N:th remote processor by index 42 + (0-indexed). 43 + 36 44 '#size-cells': 37 45 const: 0 38 46 ··· 55 47 description: 56 48 Three entries specifying the outgoing ipc bit used for signaling the N:th 57 49 remote processor. 50 + deprecated: true 58 51 59 52 "@[0-9a-f]$": 60 53 type: object ··· 107 98 - '#address-cells' 108 99 - '#size-cells' 109 100 110 - anyOf: 101 + oneOf: 111 102 - required: 112 - - qcom,ipc-1 113 - - required: 114 - - qcom,ipc-2 115 - - required: 116 - - qcom,ipc-3 117 - - required: 118 - - qcom,ipc-4 103 + - mboxes 104 + - anyOf: 105 + - required: 106 + - qcom,ipc-1 107 + - required: 108 + - qcom,ipc-2 109 + - required: 110 + - qcom,ipc-3 111 + - required: 112 + - qcom,ipc-4 119 113 120 114 additionalProperties: false 121 115 ··· 134 122 compatible = "qcom,smsm"; 135 123 #address-cells = <1>; 136 124 #size-cells = <0>; 137 - qcom,ipc-3 = <&apcs 8 19>; 125 + mboxes = <0>, <0>, <0>, <&apcs 19>; 138 126 139 127 apps_smsm: apps@0 { 140 128 reg = <0>;