Lines Matching +full:pm +full:- +full:api

1 .. SPDX-License-Identifier: GPL-2.0
8 This document covers the in-kernel APIs only. For the best practices on
9 userspace API implementation in camera sensor drivers, please see
12 CSI-2, parallel and BT.656 buses
13 --------------------------------
15 Please see :ref:`transmitter-receiver`.
18 ---------------
29 elsewhere. Therefore only the pre-determined frequencies are configurable by the
35 Read the ``clock-frequency`` _DSD property to denote the frequency. The driver
41 The preferred way to achieve this is using ``assigned-clocks``,
42 ``assigned-clock-parents`` and ``assigned-clock-rates`` properties. See the
44 <https://github.com/devicetree-org/dt-schema/blob/main/dtschema/schemas/clock/clock.yaml>`_
50 the board's clock tree to begin with. Changes to the Common Clock Framework API
54 ----------------
61 device they otherwise control as well. They shall use runtime PM to manage
62 power states. Runtime PM shall be enabled at probe time and disabled at remove
63 time. Drivers should enable runtime PM autosuspend. Also see
64 :ref:`async sub-device registration <media-registering-async-subdevs>`.
66 The runtime PM handlers shall handle clocks, regulators, GPIOs, and other
69 only), the runtime PM handlers may be left unimplemented.
85 therefore **not** keep track of the streaming state to stop streaming in the PM
87 not implement the system PM handlers.
92 PM instead. If you feel you need to begin calling ``.s_power()`` from an ISP or
93 a bridge driver, instead add runtime PM support to the sensor driver you are
96 Please also see :ref:`examples <media-camera-sensor-examples>`.
102 PM ``runtime_resume`` callback, as it has no way to figure out the power state
109 The function returns a non-zero value if it succeeded getting the power count or
110 runtime PM was disabled, in either of which cases the driver may proceed to
114 ----------------------------------
120 .. _media-camera-sensor-examples:
123 ---------------
129 .. flat-table:: Example sensor drivers
130 :header-rows: 0
133 * - Driver name
134 - File(s)
135 - Driver type
136 - Example topic
137 * - CCS
138 - ``drivers/media/i2c/ccs/``
139 - Freely configurable
140 - Power management (ACPI and DT), UAPI
141 * - imx219
142 - ``drivers/media/i2c/imx219.c``
143 - Register list based
144 - Power management (DT), UAPI, mode selection
145 * - imx319
146 - ``drivers/media/i2c/imx319.c``
147 - Register list based
148 - Power management (ACPI and DT)