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