Path: blob/master/Documentation/devicetree/bindings/firmware/nvidia,tegra186-bpmp.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/firmware/nvidia,tegra186-bpmp.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: NVIDIA Tegra Boot and Power Management Processor (BPMP)78maintainers:9- Thierry Reding <thierry.reding@gmail.com>10- Jon Hunter <jonathanh@nvidia.com>1112description: |13The BPMP is a specific processor in Tegra chip, which is designed for14booting process handling and offloading the power management, clock15management, and reset control tasks from the CPU. The binding document16defines the resources that would be used by the BPMP firmware driver,17which can create the interprocessor communication (IPC) between the18CPU and BPMP.1920This node is a mailbox consumer. See the following files for details21of the mailbox subsystem, and the specifiers implemented by the22relevant provider(s):2324- .../mailbox/mailbox.txt25- .../mailbox/nvidia,tegra186-hsp.yaml2627This node is a clock, power domain, and reset provider. See the28following files for general documentation of those features, and the29specifiers implemented by this node:3031- .../clock/clock-bindings.txt32- <dt-bindings/clock/tegra186-clock.h>33- ../power/power-domain.yaml34- <dt-bindings/power/tegra186-powergate.h>35- .../reset/reset.txt36- <dt-bindings/reset/tegra186-reset.h>3738The BPMP implements some services which must be represented by39separate nodes. For example, it can provide access to certain I2C40controllers, and the I2C bindings represent each I2C controller as a41device tree node. Such nodes should be nested directly inside the main42BPMP node.4344Software can determine whether a child node of the BPMP node45represents a device by checking for a compatible property. Any node46with a compatible property represents a device that can be47instantiated. Nodes without a compatible property may be used to48provide configuration information regarding the BPMP itself, although49no such configuration nodes are currently defined by this binding.5051The BPMP firmware defines no single global name-/numbering-space for52such services. Put another way, the numbering scheme for I2C buses is53distinct from the numbering scheme for any other service the BPMP may54provide (e.g. a future hypothetical SPI bus service). As such, child55device nodes will have no reg property, and the BPMP node will have no56"#address-cells" or "#size-cells" property.5758The shared memory area for the IPC TX and RX between CPU and BPMP are59predefined and work on top of either sysram, which is an SRAM inside the60chip, or in normal SDRAM.61See ".../sram/sram.yaml" for the bindings for the SRAM case.62See "../reserved-memory/nvidia,tegra264-bpmp-shmem.yaml" for bindings for63the SDRAM case.6465properties:66compatible:67oneOf:68- items:69- enum:70- nvidia,tegra194-bpmp71- nvidia,tegra234-bpmp72- nvidia,tegra264-bpmp73- const: nvidia,tegra186-bpmp74- const: nvidia,tegra186-bpmp7576mboxes:77description: A phandle and channel specifier for the mailbox used to78communicate with the BPMP.79maxItems: 18081shmem:82description: List of the phandle to the TX and RX shared memory area83that the IPC between CPU and BPMP is based on.84minItems: 285maxItems: 28687memory-region:88description: phandle to reserved memory region used for IPC between89CPU-NS and BPMP.90maxItems: 19192"#clock-cells":93const: 19495"#power-domain-cells":96const: 19798"#reset-cells":99const: 1100101interconnects:102items:103- description: memory read client104- description: memory write client105- description: DMA read client106- description: DMA write client107108interconnect-names:109items:110- const: read111- const: write112- const: dma-mem # dma-read113- const: dma-write114115iommus:116maxItems: 1117118i2c:119type: object120121thermal:122type: object123124additionalProperties: false125126oneOf:127- required:128- memory-region129- required:130- shmem131132required:133- compatible134- mboxes135- "#clock-cells"136- "#power-domain-cells"137- "#reset-cells"138139examples:140- |141#include <dt-bindings/interrupt-controller/arm-gic.h>142#include <dt-bindings/mailbox/tegra186-hsp.h>143#include <dt-bindings/memory/tegra186-mc.h>144145hsp_top0: hsp@3c00000 {146compatible = "nvidia,tegra186-hsp";147reg = <0x03c00000 0xa0000>;148interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;149interrupt-names = "doorbell";150#mbox-cells = <2>;151};152153sram@30000000 {154compatible = "nvidia,tegra186-sysram", "mmio-sram";155reg = <0x30000000 0x50000>;156#address-cells = <1>;157#size-cells = <1>;158ranges = <0x0 0x30000000 0x50000>;159160cpu_bpmp_tx: sram@4e000 {161reg = <0x4e000 0x1000>;162label = "cpu-bpmp-tx";163pool;164};165166cpu_bpmp_rx: sram@4f000 {167reg = <0x4f000 0x1000>;168label = "cpu-bpmp-rx";169pool;170};171};172173bpmp {174compatible = "nvidia,tegra186-bpmp";175interconnects = <&mc TEGRA186_MEMORY_CLIENT_BPMPR &emc>,176<&mc TEGRA186_MEMORY_CLIENT_BPMPW &emc>,177<&mc TEGRA186_MEMORY_CLIENT_BPMPDMAR &emc>,178<&mc TEGRA186_MEMORY_CLIENT_BPMPDMAW &emc>;179interconnect-names = "read", "write", "dma-mem", "dma-write";180iommus = <&smmu TEGRA186_SID_BPMP>;181mboxes = <&hsp_top0 TEGRA_HSP_MBOX_TYPE_DB TEGRA_HSP_DB_MASTER_BPMP>;182shmem = <&cpu_bpmp_tx>, <&cpu_bpmp_rx>;183#clock-cells = <1>;184#power-domain-cells = <1>;185#reset-cells = <1>;186187i2c {188compatible = "nvidia,tegra186-bpmp-i2c";189nvidia,bpmp-bus-id = <5>;190#address-cells = <1>;191#size-cells = <0>;192};193194thermal {195compatible = "nvidia,tegra186-bpmp-thermal";196#thermal-sensor-cells = <1>;197};198};199200- |201#include <dt-bindings/mailbox/tegra186-hsp.h>202203bpmp {204compatible = "nvidia,tegra186-bpmp";205interconnects = <&mc TEGRA186_MEMORY_CLIENT_BPMPR &emc>,206<&mc TEGRA186_MEMORY_CLIENT_BPMPW &emc>,207<&mc TEGRA186_MEMORY_CLIENT_BPMPDMAR &emc>,208<&mc TEGRA186_MEMORY_CLIENT_BPMPDMAW &emc>;209interconnect-names = "read", "write", "dma-mem", "dma-write";210mboxes = <&hsp_top1 TEGRA_HSP_MBOX_TYPE_DB TEGRA_HSP_DB_MASTER_BPMP>;211memory-region = <&dram_cpu_bpmp_mail>;212#clock-cells = <1>;213#power-domain-cells = <1>;214#reset-cells = <1>;215};216217218