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

dt-binding: gce: add binding for gce client reg property

cmdq driver provide a function that get the relationship
of sub system number from device node for client.
add specification for #subsys-cells, mediatek,gce-client-reg.

Signed-off-by: Bibby Hsieh <bibby.hsieh@mediatek.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>

authored by

Bibby Hsieh and committed by
Jassi Brar
2d645217 8fedf805

+12 -4
+12 -4
Documentation/devicetree/bindings/mailbox/mtk-gce.txt
··· 25 25 Required properties for a client device: 26 26 - mboxes: Client use mailbox to communicate with GCE, it should have this 27 27 property and list of phandle, mailbox specifiers. 28 - - mediatek,gce-subsys: u32, specify the sub-system id which is corresponding 29 - to the register address. 28 + Optional properties for a client device: 29 + - mediatek,gce-client-reg: Specify the sub-system id which is corresponding 30 + to the register address, it should have this property and list of phandle, 31 + sub-system specifiers. 32 + <&phandle subsys_number start_offset size> 33 + phandle: Label name of a gce node. 34 + subsys_number: specify the sub-system id which is corresponding 35 + to the register address. 36 + start_offset: the start offset of register address that GCE can access. 37 + size: the total size of register address that GCE can access. 30 38 31 39 Some vaules of properties are defined in 'dt-bindings/gce/mt8173-gce.h' 32 40 or 'dt-binding/gce/mt8183-gce.h'. Such as sub-system ids, thread priority, event ids. ··· 56 48 compatible = "mediatek,mt8173-mmsys"; 57 49 mboxes = <&gce 0 CMDQ_THR_PRIO_LOWEST 1>, 58 50 <&gce 1 CMDQ_THR_PRIO_LOWEST 1>; 59 - mediatek,gce-subsys = <SUBSYS_1400XXXX>; 60 51 mutex-event-eof = <CMDQ_EVENT_MUTEX0_STREAM_EOF 61 52 CMDQ_EVENT_MUTEX1_STREAM_EOF>; 62 - 53 + mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0x3000 0x1000>, 54 + <&gce SUBSYS_1401XXXX 0x2000 0x100>; 63 55 ... 64 56 };