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

dt-bindings: Add a binding for Mediatek SCP

Add a DT binding documentation of SCP for the
MT8183 SoC from Mediatek.

Signed-off-by: Erin Lo <erin.lo@mediatek.com>
Signed-off-by: Pi-Hsun Shih <pihsun@chromium.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20191112110330.179649-2-pihsun@chromium.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>

authored by

Erin Lo and committed by
Bjorn Andersson
e47e9887 6439b527

+36
+36
Documentation/devicetree/bindings/remoteproc/mtk,scp.txt
··· 1 + Mediatek SCP Bindings 2 + ---------------------------------------- 3 + 4 + This binding provides support for ARM Cortex M4 Co-processor found on some 5 + Mediatek SoCs. 6 + 7 + Required properties: 8 + - compatible Should be "mediatek,mt8183-scp" 9 + - reg Should contain the address ranges for the two memory 10 + regions, SRAM and CFG. 11 + - reg-names Contains the corresponding names for the two memory 12 + regions. These should be named "sram" & "cfg". 13 + - clocks Clock for co-processor (See: ../clock/clock-bindings.txt) 14 + - clock-names Contains the corresponding name for the clock. This 15 + should be named "main". 16 + 17 + Subnodes 18 + -------- 19 + 20 + Subnodes of the SCP represent rpmsg devices. The names of the devices are not 21 + important. The properties of these nodes are defined by the individual bindings 22 + for the rpmsg devices - but must contain the following property: 23 + 24 + - mtk,rpmsg-name Contains the name for the rpmsg device. Used to match 25 + the subnode to rpmsg device announced by SCP. 26 + 27 + Example: 28 + 29 + scp: scp@10500000 { 30 + compatible = "mediatek,mt8183-scp"; 31 + reg = <0 0x10500000 0 0x80000>, 32 + <0 0x105c0000 0 0x5000>; 33 + reg-names = "sram", "cfg"; 34 + clocks = <&infracfg CLK_INFRA_SCPSYS>; 35 + clock-names = "main"; 36 + };