18c2ecf20Sopenharmony_ciCommand DB
28c2ecf20Sopenharmony_ci---------
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ciCommand DB is a database that provides a mapping between resource key and the
58c2ecf20Sopenharmony_ciresource address for a system resource managed by a remote processor. The data
68c2ecf20Sopenharmony_ciis stored in a shared memory region and is loaded by the remote processor.
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ciSome of the Qualcomm Technologies Inc SoC's have hardware accelerators for
98c2ecf20Sopenharmony_cicontrolling shared resources. Depending on the board configuration the shared
108c2ecf20Sopenharmony_ciresource properties may change. These properties are dynamically probed by the
118c2ecf20Sopenharmony_ciremote processor and made available in the shared memory.
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciThe bindings for Command DB is specified in the reserved-memory section in
148c2ecf20Sopenharmony_cidevicetree. The devicetree representation of the command DB driver should be:
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ciProperties:
178c2ecf20Sopenharmony_ci- compatible:
188c2ecf20Sopenharmony_ci	Usage: required
198c2ecf20Sopenharmony_ci	Value type: <string>
208c2ecf20Sopenharmony_ci	Definition: Should be "qcom,cmd-db"
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci- reg:
238c2ecf20Sopenharmony_ci	Usage: required
248c2ecf20Sopenharmony_ci	Value type: <prop encoded array>
258c2ecf20Sopenharmony_ci	Definition: The register address that points to the actual location of
268c2ecf20Sopenharmony_ci		    the Command DB in memory.
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ciExample:
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci	reserved-memory {
318c2ecf20Sopenharmony_ci		[...]
328c2ecf20Sopenharmony_ci		reserved-memory@85fe0000 {
338c2ecf20Sopenharmony_ci			reg = <0x0 0x85fe0000 0x0 0x20000>;
348c2ecf20Sopenharmony_ci			compatible = "qcom,cmd-db";
358c2ecf20Sopenharmony_ci			no-map;
368c2ecf20Sopenharmony_ci		};
378c2ecf20Sopenharmony_ci	};
38