| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | Command DB |
| 2 | --------- |
| 3 | |
| 4 | Command DB is a database that provides a mapping between resource key and the |
| 5 | resource address for a system resource managed by a remote processor. The data |
| 6 | is stored in a shared memory region and is loaded by the remote processor. |
| 7 | |
| 8 | Some of the Qualcomm Technologies Inc SoC's have hardware accelerators for |
| 9 | controlling shared resources. Depending on the board configuration the shared |
| 10 | resource properties may change. These properties are dynamically probed by the |
| 11 | remote processor and made available in the shared memory. |
| 12 | |
| 13 | The bindings for Command DB is specified in the reserved-memory section in |
| 14 | devicetree. The devicetree representation of the command DB driver should be: |
| 15 | |
| 16 | Properties: |
| 17 | - compatible: |
| 18 | Usage: required |
| 19 | Value type: <string> |
| 20 | Definition: Should be "qcom,cmd-db" |
| 21 | |
| 22 | - reg: |
| 23 | Usage: required |
| 24 | Value type: <prop encoded array> |
| 25 | Definition: The register address that points to the actual location of |
| 26 | the Command DB in memory. |
| 27 | |
| 28 | Example: |
| 29 | |
| 30 | reserved-memory { |
| 31 | [...] |
| 32 | reserved-memory@85fe0000 { |
| 33 | reg = <0x0 0x85fe0000 0x0 0x20000>; |
| 34 | compatible = "qcom,cmd-db"; |
| 35 | no-map; |
| 36 | }; |
| 37 | }; |