xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/firmware/nvidia,tegra186-bpmp.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunNVIDIA Tegra Boot and Power Management Processor (BPMP)
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThe BPMP is a specific processor in Tegra chip, which is designed for
4*4882a593Smuzhiyunbooting process handling and offloading the power management, clock
5*4882a593Smuzhiyunmanagement, and reset control tasks from the CPU. The binding document
6*4882a593Smuzhiyundefines the resources that would be used by the BPMP firmware driver,
7*4882a593Smuzhiyunwhich can create the interprocessor communication (IPC) between the CPU
8*4882a593Smuzhiyunand BPMP.
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunRequired properties:
11*4882a593Smuzhiyun- compatible
12*4882a593Smuzhiyun    Array of strings
13*4882a593Smuzhiyun    One of:
14*4882a593Smuzhiyun    - "nvidia,tegra186-bpmp"
15*4882a593Smuzhiyun- mboxes : The phandle of mailbox controller and the mailbox specifier.
16*4882a593Smuzhiyun- shmem : List of the phandle of the TX and RX shared memory area that
17*4882a593Smuzhiyun	  the IPC between CPU and BPMP is based on.
18*4882a593Smuzhiyun- #clock-cells : Should be 1.
19*4882a593Smuzhiyun- #power-domain-cells : Should be 1.
20*4882a593Smuzhiyun- #reset-cells : Should be 1.
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunThis node is a mailbox consumer. See the following files for details of
23*4882a593Smuzhiyunthe mailbox subsystem, and the specifiers implemented by the relevant
24*4882a593Smuzhiyunprovider(s):
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun- .../mailbox/mailbox.txt
27*4882a593Smuzhiyun- .../mailbox/nvidia,tegra186-hsp.txt
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunThis node is a clock, power domain, and reset provider. See the following
30*4882a593Smuzhiyunfiles for general documentation of those features, and the specifiers
31*4882a593Smuzhiyunimplemented by this node:
32*4882a593Smuzhiyun
33*4882a593Smuzhiyun- .../clock/clock-bindings.txt
34*4882a593Smuzhiyun- <dt-bindings/clock/tegra186-clock.h>
35*4882a593Smuzhiyun- ../power/power-domain.yaml
36*4882a593Smuzhiyun- <dt-bindings/power/tegra186-powergate.h>
37*4882a593Smuzhiyun- .../reset/reset.txt
38*4882a593Smuzhiyun- <dt-bindings/reset/tegra186-reset.h>
39*4882a593Smuzhiyun
40*4882a593SmuzhiyunThe BPMP implements some services which must be represented by separate nodes.
41*4882a593SmuzhiyunFor example, it can provide access to certain I2C controllers, and the I2C
42*4882a593Smuzhiyunbindings represent each I2C controller as a device tree node. Such nodes should
43*4882a593Smuzhiyunbe nested directly inside the main BPMP node.
44*4882a593Smuzhiyun
45*4882a593SmuzhiyunSoftware can determine whether a child node of the BPMP node represents a device
46*4882a593Smuzhiyunby checking for a compatible property. Any node with a compatible property
47*4882a593Smuzhiyunrepresents a device that can be instantiated. Nodes without a compatible
48*4882a593Smuzhiyunproperty may be used to provide configuration information regarding the BPMP
49*4882a593Smuzhiyunitself, although no such configuration nodes are currently defined by this
50*4882a593Smuzhiyunbinding.
51*4882a593Smuzhiyun
52*4882a593SmuzhiyunThe BPMP firmware defines no single global name-/numbering-space for such
53*4882a593Smuzhiyunservices. Put another way, the numbering scheme for I2C buses is distinct from
54*4882a593Smuzhiyunthe numbering scheme for any other service the BPMP may provide (e.g. a future
55*4882a593Smuzhiyunhypothetical SPI bus service). As such, child device nodes will have no reg
56*4882a593Smuzhiyunproperty, and the BPMP node will have no #address-cells or #size-cells property.
57*4882a593Smuzhiyun
58*4882a593SmuzhiyunThe shared memory bindings for BPMP
59*4882a593Smuzhiyun-----------------------------------
60*4882a593Smuzhiyun
61*4882a593SmuzhiyunThe shared memory area for the IPC TX and RX between CPU and BPMP are
62*4882a593Smuzhiyunpredefined and work on top of sysram, which is an SRAM inside the chip.
63*4882a593Smuzhiyun
64*4882a593SmuzhiyunSee ".../sram/sram.txt" for the bindings.
65*4882a593Smuzhiyun
66*4882a593SmuzhiyunExample:
67*4882a593Smuzhiyun
68*4882a593Smuzhiyunhsp_top0: hsp@3c00000 {
69*4882a593Smuzhiyun	...
70*4882a593Smuzhiyun	#mbox-cells = <2>;
71*4882a593Smuzhiyun};
72*4882a593Smuzhiyun
73*4882a593Smuzhiyunsysram@30000000 {
74*4882a593Smuzhiyun	compatible = "nvidia,tegra186-sysram", "mmio-sram";
75*4882a593Smuzhiyun	reg = <0x0 0x30000000 0x0 0x50000>;
76*4882a593Smuzhiyun	#address-cells = <2>;
77*4882a593Smuzhiyun	#size-cells = <2>;
78*4882a593Smuzhiyun	ranges = <0 0x0 0x0 0x30000000 0x0 0x50000>;
79*4882a593Smuzhiyun
80*4882a593Smuzhiyun	cpu_bpmp_tx: shmem@4e000 {
81*4882a593Smuzhiyun		compatible = "nvidia,tegra186-bpmp-shmem";
82*4882a593Smuzhiyun		reg = <0x0 0x4e000 0x0 0x1000>;
83*4882a593Smuzhiyun		label = "cpu-bpmp-tx";
84*4882a593Smuzhiyun		pool;
85*4882a593Smuzhiyun	};
86*4882a593Smuzhiyun
87*4882a593Smuzhiyun	cpu_bpmp_rx: shmem@4f000 {
88*4882a593Smuzhiyun		compatible = "nvidia,tegra186-bpmp-shmem";
89*4882a593Smuzhiyun		reg = <0x0 0x4f000 0x0 0x1000>;
90*4882a593Smuzhiyun		label = "cpu-bpmp-rx";
91*4882a593Smuzhiyun		pool;
92*4882a593Smuzhiyun	};
93*4882a593Smuzhiyun};
94*4882a593Smuzhiyun
95*4882a593Smuzhiyunbpmp {
96*4882a593Smuzhiyun	compatible = "nvidia,tegra186-bpmp";
97*4882a593Smuzhiyun	mboxes = <&hsp_top0 TEGRA_HSP_MBOX_TYPE_DB TEGRA_HSP_DB_MASTER_BPMP>;
98*4882a593Smuzhiyun	shmem = <&cpu_bpmp_tx &cpu_bpmp_rx>;
99*4882a593Smuzhiyun	#clock-cells = <1>;
100*4882a593Smuzhiyun	#power-domain-cells = <1>;
101*4882a593Smuzhiyun	#reset-cells = <1>;
102*4882a593Smuzhiyun
103*4882a593Smuzhiyun	i2c {
104*4882a593Smuzhiyun		compatible = "...";
105*4882a593Smuzhiyun		...
106*4882a593Smuzhiyun	};
107*4882a593Smuzhiyun};
108