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

dt-bindings: mailbox : arm,mhu: Use examples with matching schema

Currently the example provided in arm,mhu schema complains as below:

Documentation/devicetree/bindings/mailbox/arm,mhu.example.dt.yaml :0:0:
/example-0/soc/scb@2e000000: failed to match any schema with compatible:
['fujitsu,mb86s70-scb-1.0']

Fix the same using examples based on Juno platform. The old SCPI firmware
used MHU with standard 32-bit data transfer protocol while the new SCMI
firmware uses MHU and expects to be used in doorbell mode. Update example
with SCPI and SCMI firmware nodes to demonstrate both 32-bit data transfer
and doorbell mode of MHU operations

Cc: Rob Herring <robh+dt@kernel.org>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Link: https://lore.kernel.org/r/20210604205710.1944363-6-sudeep.holla@arm.com
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Sudeep Holla and committed by
Rob Herring
3a32f22c 61b8ac9b

+38 -10
+38 -10
Documentation/devicetree/bindings/mailbox/arm,mhu.yaml
··· 101 101 clocks = <&clock 0 2 1>; 102 102 clock-names = "apb_pclk"; 103 103 }; 104 + }; 104 105 105 - mhu_client_scb: scb@2e000000 { 106 - compatible = "fujitsu,mb86s70-scb-1.0"; 107 - reg = <0 0x2e000000 0 0x4000>; 106 + firmware { 107 + scpi { 108 + compatible = "arm,scpi"; 108 109 mboxes = <&mhuA 1>; /* HP-NonSecure */ 110 + shmem = <&cpu_scp_hpri>; /* HP-NonSecure */ 111 + 112 + scpi_devpd: power-controller { 113 + compatible = "arm,scpi-power-domains"; 114 + num-domains = <2>; 115 + #power-domain-cells = <1>; 116 + }; 109 117 }; 110 118 }; 111 119 ··· 133 125 clocks = <&clock 0 2 1>; 134 126 clock-names = "apb_pclk"; 135 127 }; 128 + }; 136 129 137 - scpi { 138 - compatible = "arm,scpi"; 139 - mboxes = <&mhuB 1 4>; /* HP-NonSecure, 5th doorbell */ 140 - shmem = <&cpu_scp_hpri>; /* HP-NonSecure */ 130 + firmware { 131 + scmi { 132 + compatible = "arm,scmi"; 133 + mboxes = <&mhuB 0 0>, /* LP-NonSecure, 1st doorbell */ 134 + <&mhuB 0 1>; /* LP-NonSecure, 2nd doorbell */ 135 + mbox-names = "tx", "rx"; 136 + shmem = <&cpu_scp_lpri0>, 137 + <&cpu_scp_lpri1>; 141 138 142 - scpi_devpd: power-controller { 143 - compatible = "arm,scpi-power-domains"; 144 - num-domains = <2>; 139 + #address-cells = <1>; 140 + #size-cells = <0>; 141 + 142 + scmi_devpd: protocol@11 { 143 + reg = <0x11>; 145 144 #power-domain-cells = <1>; 145 + }; 146 + 147 + scmi_dvfs: protocol@13 { 148 + reg = <0x13>; 149 + #clock-cells = <1>; 150 + 151 + mboxes = <&mhuB 1 2>, /* HP-NonSecure, 3rd doorbell */ 152 + <&mhuB 1 3>; /* HP-NonSecure, 4th doorbell */ 153 + mbox-names = "tx", "rx"; 154 + shmem = <&cpu_scp_hpri0>, 155 + <&cpu_scp_hpri1>; 146 156 }; 147 157 }; 148 158 }; 159 + 160 + ...