Stephen Warren | 1ba43f3 | 2016-07-27 15:24:50 -0600 | [diff] [blame] | 1 | NVIDIA Tegra Boot and Power Management Processor (BPMP) |
| 2 | |
| 3 | The BPMP is a specific processor in Tegra chip, which is designed for |
| 4 | booting process handling and offloading the power management, clock |
| 5 | management, and reset control tasks from the CPU. The binding document |
| 6 | defines the resources that would be used by the BPMP firmware driver, |
| 7 | which can create the interprocessor communication (IPC) between the CPU |
| 8 | and BPMP. |
| 9 | |
| 10 | Required properties: |
| 11 | - name : Should be bpmp |
| 12 | - compatible |
| 13 | Array of strings |
| 14 | One of: |
| 15 | - "nvidia,tegra186-bpmp" |
| 16 | - mboxes : The phandle of mailbox controller and the mailbox specifier. |
| 17 | - shmem : List of the phandle of the TX and RX shared memory area that |
| 18 | the IPC between CPU and BPMP is based on. |
| 19 | - #clock-cells : Should be 1. |
| 20 | - #power-domain-cells : Should be 1. |
| 21 | - #reset-cells : Should be 1. |
| 22 | |
| 23 | This node is a mailbox consumer. See the following files for details of |
| 24 | the mailbox subsystem, and the specifiers implemented by the relevant |
| 25 | provider(s): |
| 26 | |
| 27 | - .../mailbox/mailbox.txt |
| 28 | - .../mailbox/nvidia,tegra186-hsp.txt |
| 29 | |
| 30 | This node is a clock, power domain, and reset provider. See the following |
| 31 | files for general documentation of those features, and the specifiers |
| 32 | implemented by this node: |
| 33 | |
| 34 | - .../clock/clock-bindings.txt |
| 35 | - <dt-bindings/clock/tegra186-clock.h> |
| 36 | - ../power/power_domain.txt |
| 37 | - <dt-bindings/power/tegra186-powergate.h> |
| 38 | - .../reset/reset.txt |
| 39 | - <dt-bindings/reset/tegra186-reset.h> |
| 40 | |
Stephen Warren | 011ff0a | 2016-07-29 13:15:00 -0600 | [diff] [blame] | 41 | The BPMP implements some services which must be represented by separate nodes. |
| 42 | For example, it can provide access to certain I2C controllers, and the I2C |
| 43 | bindings represent each I2C controller as a device tree node. Such nodes should |
| 44 | be nested directly inside the main BPMP node. |
| 45 | |
| 46 | Software can determine whether a child node of the BPMP node represents a device |
| 47 | by checking for a compatible property. Any node with a compatible property |
| 48 | represents a device that can be instantiated. Nodes without a compatible |
| 49 | property may be used to provide configuration information regarding the BPMP |
| 50 | itself, although no such configuration nodes are currently defined by this |
| 51 | binding. |
| 52 | |
| 53 | The BPMP firmware defines no single global name-/numbering-space for such |
| 54 | services. Put another way, the numbering scheme for I2C buses is distinct from |
| 55 | the numbering scheme for any other service the BPMP may provide (e.g. a future |
| 56 | hypothetical SPI bus service). As such, child device nodes will have no reg |
| 57 | property, and the BPMP node will have no #address-cells or #size-cells property. |
| 58 | |
Stephen Warren | 1ba43f3 | 2016-07-27 15:24:50 -0600 | [diff] [blame] | 59 | The shared memory bindings for BPMP |
| 60 | ----------------------------------- |
| 61 | |
| 62 | The shared memory area for the IPC TX and RX between CPU and BPMP are |
| 63 | predefined and work on top of sysram, which is an SRAM inside the chip. |
| 64 | |
| 65 | See ".../sram/sram.txt" for the bindings. |
| 66 | |
| 67 | Example: |
| 68 | |
| 69 | hsp_top0: hsp@03c00000 { |
| 70 | ... |
| 71 | #mbox-cells = <2>; |
| 72 | }; |
| 73 | |
| 74 | sysram@30000000 { |
| 75 | compatible = "nvidia,tegra186-sysram", "mmio-sram"; |
| 76 | reg = <0x0 0x30000000 0x0 0x50000>; |
| 77 | #address-cells = <2>; |
| 78 | #size-cells = <2>; |
| 79 | ranges = <0 0x0 0x0 0x30000000 0x0 0x50000>; |
| 80 | |
| 81 | cpu_bpmp_tx: bpmp_shmem@4e000 { |
| 82 | compatible = "nvidia,tegra186-bpmp-shmem"; |
| 83 | reg = <0x0 0x4e000 0x0 0x1000>; |
| 84 | }; |
| 85 | |
| 86 | cpu_bpmp_rx: bpmp_shmem@4f000 { |
| 87 | compatible = "nvidia,tegra186-bpmp-shmem"; |
| 88 | reg = <0x0 0x4f000 0x0 0x1000>; |
| 89 | }; |
| 90 | }; |
| 91 | |
| 92 | bpmp { |
| 93 | compatible = "nvidia,tegra186-bpmp"; |
| 94 | mboxes = <&hsp_top0 HSP_MBOX_TYPE_DB HSP_DB_MASTER_BPMP>; |
| 95 | shmem = <&cpu_bpmp_tx &cpu_bpmp_rx>; |
| 96 | #clock-cells = <1>; |
| 97 | #power-domain-cells = <1>; |
| 98 | #reset-cells = <1>; |
Stephen Warren | 011ff0a | 2016-07-29 13:15:00 -0600 | [diff] [blame] | 99 | |
| 100 | i2c { |
| 101 | compatible = "..."; |
| 102 | ... |
| 103 | }; |
Stephen Warren | 1ba43f3 | 2016-07-27 15:24:50 -0600 | [diff] [blame] | 104 | }; |