1sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget2/translations/zh_CN/driver-api/media/camera-sensormodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget2/translations/zh_TW/driver-api/media/camera-sensormodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget2/translations/it_IT/driver-api/media/camera-sensormodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget2/translations/ja_JP/driver-api/media/camera-sensormodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget2/translations/ko_KR/driver-api/media/camera-sensormodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget2/translations/sp_SP/driver-api/media/camera-sensormodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhhL/var/lib/git/docbuild/linux/Documentation/driver-api/media/camera-sensor.rsthKubhtarget)}(h(.. _media_writing_camera_sensor_drivers:h]h}(h]h ]h"]h$]h&]refid#media-writing-camera-sensor-driversuh1hhKhhhhhhubhsection)}(hhh](htitle)}(hWriting camera sensor driversh]hWriting camera sensor drivers}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh paragraph)}(hThis document covers the in-kernel APIs only. For the best practices on userspace API implementation in camera sensor drivers, please see :ref:`media_using_camera_sensor_drivers`.h](hThis document covers the in-kernel APIs only. For the best practices on userspace API implementation in camera sensor drivers, please see }(hhhhhNhNubh)}(h(:ref:`media_using_camera_sensor_drivers`h]hinline)}(hhh]h!media_using_camera_sensor_drivers}(hhhhhNhNubah}(h]h ](xrefstdstd-refeh"]h$]h&]uh1hhhubah}(h]h ]h"]h$]h&]refdocdriver-api/media/camera-sensor refdomainhreftyperef refexplicitrefwarn reftarget!media_using_camera_sensor_driversuh1hhhhKhhubh.}(hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(h CSI-2, parallel and BT.656 busesh]h CSI-2, parallel and BT.656 buses}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK ubh)}(h'Please see :ref:`transmitter-receiver`.h](h Please see }(hj!hhhNhNubh)}(h:ref:`transmitter-receiver`h]h)}(hj+h]htransmitter-receiver}(hj-hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1hhj)ubah}(h]h ]h"]h$]h&]refdoch refdomainj7reftyperef refexplicitrefwarnjtransmitter-receiveruh1hhhhKhj!ubh.}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]csi-2-parallel-and-bt-656-busesah ]h"] csi-2, parallel and bt.656 busesah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(hHandling clocksh]hHandling clocks}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hhhhhKubh)}(hXCamera sensors have an internal clock tree including a PLL and a number of divisors. The clock tree is generally configured by the driver based on a few input parameters that are specific to the hardware: the external clock frequency and the link frequency. The two parameters generally are obtained from system firmware. **No other frequencies should be used in any circumstances.**h](hXBCamera sensors have an internal clock tree including a PLL and a number of divisors. The clock tree is generally configured by the driver based on a few input parameters that are specific to the hardware: the external clock frequency and the link frequency. The two parameters generally are obtained from system firmware. }(hjlhhhNhNubhstrong)}(h=**No other frequencies should be used in any circumstances.**h]h9No other frequencies should be used in any circumstances.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjlubeh}(h]h ]h"]h$]h&]uh1hhhhKhj[hhubh)}(hX:The reason why the clock frequencies are so important is that the clock signals come out of the SoC, and in many cases a specific frequency is designed to be used in the system. Using another frequency may cause harmful effects elsewhere. Therefore only the pre-determined frequencies are configurable by the user.h]hX:The reason why the clock frequencies are so important is that the clock signals come out of the SoC, and in many cases a specific frequency is designed to be used in the system. Using another frequency may cause harmful effects elsewhere. Therefore only the pre-determined frequencies are configurable by the user.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj[hhubh)}(hXNThe external clock frequency shall be retrieved by obtaining the external clock using the ``devm_v4l2_sensor_clk_get()`` helper function, and then getting its frequency with ``clk_get_rate()``. Usage of the helper function guarantees correct behaviour regardless of whether the sensor is integrated in a DT-based or ACPI-based system.h](hZThe external clock frequency shall be retrieved by obtaining the external clock using the }(hjhhhNhNubhliteral)}(h``devm_v4l2_sensor_clk_get()``h]hdevm_v4l2_sensor_clk_get()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh6 helper function, and then getting its frequency with }(hjhhhNhNubj)}(h``clk_get_rate()``h]hclk_get_rate()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. Usage of the helper function guarantees correct behaviour regardless of whether the sensor is integrated in a DT-based or ACPI-based system.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK hj[hhubh)}(hhh](h)}(hACPIh]hACPI}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK'ubh)}(hXACPI-based systems typically don't register the sensor external clock with the kernel, but specify the external clock frequency in the ``clock-frequency`` _DSD property. The ``devm_v4l2_sensor_clk_get()`` helper creates and returns a fixed clock set at that rate.h](hACPI-based systems typically don’t register the sensor external clock with the kernel, but specify the external clock frequency in the }(hjhhhNhNubj)}(h``clock-frequency``h]hclock-frequency}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh _DSD property. The }(hjhhhNhNubj)}(h``devm_v4l2_sensor_clk_get()``h]hdevm_v4l2_sensor_clk_get()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh; helper creates and returns a fixed clock set at that rate.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK)hjhhubeh}(h]acpiah ]h"]acpiah$]h&]uh1hhj[hhhhhK'ubh)}(hhh](h)}(h Devicetreeh]h Devicetree}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK/ubh)}(hXDevicetree-based systems declare the sensor external clock in the device tree and reference it from the sensor node. The preferred way to select the external clock frequency is to use the ``assigned-clocks``, ``assigned-clock-parents`` and ``assigned-clock-rates`` properties in the sensor node to set the clock rate. See the `clock device tree bindings `_ for more information. The ``devm_v4l2_sensor_clk_get()`` helper retrieves and returns that clock.h](hDevicetree-based systems declare the sensor external clock in the device tree and reference it from the sensor node. The preferred way to select the external clock frequency is to use the }(hj(hhhNhNubj)}(h``assigned-clocks``h]hassigned-clocks}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubh, }(hj(hhhNhNubj)}(h``assigned-clock-parents``h]hassigned-clock-parents}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubh and }(hj(hhhNhNubj)}(h``assigned-clock-rates``h]hassigned-clock-rates}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubh> properties in the sensor node to set the clock rate. See the }(hj(hhhNhNubh reference)}(hw`clock device tree bindings `_h]hclock device tree bindings}(hjhhhhNhNubah}(h]h ]h"]h$]h&]nameclock device tree bindingsrefuriWhttps://github.com/devicetree-org/dt-schema/blob/main/dtschema/schemas/clock/clock.yamluh1jfhj(ubh)}(hZ h]h}(h]clock-device-tree-bindingsah ]h"]clock device tree bindingsah$]h&]refurijyuh1h referencedKhj(ubh for more information. The }(hj(hhhNhNubj)}(h``devm_v4l2_sensor_clk_get()``h]hdevm_v4l2_sensor_clk_get()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubh) helper retrieves and returns that clock.}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK1hjhhubh)}(hXThis approach has the drawback that there's no guarantee that the frequency hasn't been modified directly or indirectly by another driver, or supported by the board's clock tree to begin with. Changes to the Common Clock Framework API are required to ensure reliability.h]hXThis approach has the drawback that there’s no guarantee that the frequency hasn’t been modified directly or indirectly by another driver, or supported by the board’s clock tree to begin with. Changes to the Common Clock Framework API are required to ensure reliability.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK:hjhhubeh}(h] devicetreeah ]h"] devicetreeah$]h&]uh1hhj[hhhhhK/ubeh}(h]handling-clocksah ]h"]handling clocksah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hPower managementh]hPower management}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK@ubh)}(hCamera sensors are used in conjunction with other devices to form a camera pipeline. They must obey the rules listed herein to ensure coherent power management over the pipeline.h]hCamera sensors are used in conjunction with other devices to form a camera pipeline. They must obey the rules listed herein to ensure coherent power management over the pipeline.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKBhjhhubh)}(hXkCamera sensor drivers are responsible for controlling the power state of the device they otherwise control as well. They shall use runtime PM to manage power states. Runtime PM shall be enabled at probe time and disabled at remove time. Drivers should enable runtime PM autosuspend. Also see :ref:`async sub-device registration `.h](hX$Camera sensor drivers are responsible for controlling the power state of the device they otherwise control as well. They shall use runtime PM to manage power states. Runtime PM shall be enabled at probe time and disabled at remove time. Drivers should enable runtime PM autosuspend. Also see }(hjhhhNhNubh)}(hF:ref:`async sub-device registration `h]h)}(hjh]hasync sub-device registration}(hjhhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainjreftyperef refexplicitrefwarnjmedia-registering-async-subdevsuh1hhhhKFhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKFhjhhubh)}(hXThe runtime PM handlers shall handle clocks, regulators, GPIOs, and other system resources required to power the sensor up and down. For drivers that don't use any of those resources (such as drivers that support ACPI systems only), the runtime PM handlers may be left unimplemented.h]hXThe runtime PM handlers shall handle clocks, regulators, GPIOs, and other system resources required to power the sensor up and down. For drivers that don’t use any of those resources (such as drivers that support ACPI systems only), the runtime PM handlers may be left unimplemented.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKLhjhhubh)}(hXIn general, the device shall be powered on at least when its registers are being accessed and when it is streaming. Drivers should use ``pm_runtime_resume_and_get()`` when starting streaming and ``pm_runtime_put()`` or ``pm_runtime_put_autosuspend()`` when stopping streaming. They may power the device up at probe time (for example to read identification registers), but should not keep it powered unconditionally after probe.h](hIn general, the device shall be powered on at least when its registers are being accessed and when it is streaming. Drivers should use }(hj!hhhNhNubj)}(h``pm_runtime_resume_and_get()``h]hpm_runtime_resume_and_get()}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh when starting streaming and }(hj!hhhNhNubj)}(h``pm_runtime_put()``h]hpm_runtime_put()}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh or }(hj!hhhNhNubj)}(h ``pm_runtime_put_autosuspend()``h]hpm_runtime_put_autosuspend()}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh when stopping streaming. They may power the device up at probe time (for example to read identification registers), but should not keep it powered unconditionally after probe.}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKQhjhhubh)}(hXzAt system suspend time, the whole camera pipeline must stop streaming, and restart when the system is resumed. This requires coordination between the camera sensor and the rest of the camera pipeline. Bridge drivers are responsible for this coordination, and instruct camera sensors to stop and restart streaming by calling the appropriate subdev operations (``.enable_streams()`` or ``.disable_streams()``). Camera sensor drivers shall therefore **not** keep track of the streaming state to stop streaming in the PM suspend handler and restart it in the resume handler. Drivers should in general not implement the system PM handlers.h](hXgAt system suspend time, the whole camera pipeline must stop streaming, and restart when the system is resumed. This requires coordination between the camera sensor and the rest of the camera pipeline. Bridge drivers are responsible for this coordination, and instruct camera sensors to stop and restart streaming by calling the appropriate subdev operations (}(hjehhhNhNubj)}(h``.enable_streams()``h]h.enable_streams()}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh or }(hjehhhNhNubj)}(h``.disable_streams()``h]h.disable_streams()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh)). Camera sensor drivers shall therefore }(hjehhhNhNubju)}(h**not**h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjeubh keep track of the streaming state to stop streaming in the PM suspend handler and restart it in the resume handler. Drivers should in general not implement the system PM handlers.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKYhjhhubh)}(hXCamera sensor drivers shall **not** implement the subdev ``.s_power()`` operation, as it is deprecated. While this operation is implemented in some existing drivers as they predate the deprecation, new drivers shall use runtime PM instead. If you feel you need to begin calling ``.s_power()`` from an ISP or a bridge driver, instead add runtime PM support to the sensor driver you are using and drop its ``.s_power()`` handler.h](hCamera sensor drivers shall }(hjhhhNhNubju)}(h**not**h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jthjubh implement the subdev }(hjhhhNhNubj)}(h``.s_power()``h]h .s_power()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh operation, as it is deprecated. While this operation is implemented in some existing drivers as they predate the deprecation, new drivers shall use runtime PM instead. If you feel you need to begin calling }(hjhhhNhNubj)}(h``.s_power()``h]h .s_power()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhp from an ISP or a bridge driver, instead add runtime PM support to the sensor driver you are using and drop its }(hjhhhNhNubj)}(h``.s_power()``h]h .s_power()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh handler.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKchjhhubh)}(h?Please also see :ref:`examples `.h](hPlease also see }(hjhhhNhNubh)}(h.:ref:`examples `h]h)}(hj h]hexamples}(hj hhhNhNubah}(h]h ](hstdstd-refeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdoch refdomainjreftyperef refexplicitrefwarnjmedia-camera-sensor-examplesuh1hhhhKjhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKjhjhhubh)}(hhh](h)}(hControl frameworkh]hControl framework}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hhhhhKmubh)}(hX``v4l2_ctrl_handler_setup()`` function may not be used in the device's runtime PM ``runtime_resume`` callback, as it has no way to figure out the power state of the device. This is because the power state of the device is only changed after the power state transition has taken place. The ``s_ctrl`` callback can be used to obtain device's power state after the power state transition:h](j)}(h``v4l2_ctrl_handler_setup()``h]hv4l2_ctrl_handler_setup()}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh7 function may not be used in the device’s runtime PM }(hjBhhhNhNubj)}(h``runtime_resume``h]hruntime_resume}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh callback, as it has no way to figure out the power state of the device. This is because the power state of the device is only changed after the power state transition has taken place. The }(hjBhhhNhNubj)}(h ``s_ctrl``h]hs_ctrl}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubhX callback can be used to obtain device’s power state after the power state transition:}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKohj1hhubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](single%pm_runtime_get_if_in_use (C function)c.pm_runtime_get_if_in_usehNtauh1jhj1hhhNhNubhdesc)}(hhh](hdesc_signature)}(h1int pm_runtime_get_if_in_use(struct device *dev);h]hdesc_signature_line)}(h1int pm_runtime_get_if_in_use(struct device *dev);h](hdesc_sig_keyword_type)}(hinth]hint}(hjhhhNhNubah}(h]h ]ktah"]h$]h&]uh1jhjhhhhhKuubhdesc_sig_space)}(h h]h }(hjhhhNhNubah}(h]h ]wah"]h$]h&]uh1jhjhhhhhKuubh desc_name)}(hpm_runtime_get_if_in_useh]h desc_sig_name)}(hpm_runtime_get_if_in_useh]hpm_runtime_get_if_in_use}(hjhhhNhNubah}(h]h ]nah"]h$]h&]uh1jhjubah}(h]h ](sig-namedescnameeh"]h$]h&]hhuh1jhjhhhhhKuubhdesc_parameterlist)}(h(struct device *dev)h]hdesc_parameter)}(hstruct device *devh](hdesc_sig_keyword)}(hstructh]hstruct}(hjhhhNhNubah}(h]h ]kah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomaincreftype identifier reftargetjmodnameN classnameN c:parent_keysphinx.domains.c LookupKey)}data]j/ ASTIdentifier)}j*jsbc.pm_runtime_get_if_in_useasbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubhdesc_sig_punctuation)}(h*h]h*}(hjLhhhNhNubah}(h]h ]pah"]h$]h&]uh1jJhjubj)}(hdevh]hdev}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjhhhhhKuubjK)}(h;h]h;}(hjvhhhNhNubah}(h]h ]jWah"]h$]h&]uh1jJhjhhhhhKuubeh}(h]h ]h"]h$]h&]hh add_permalinkuh1jsphinx_line_type declaratorhjhhhhhKuubah}(h]jah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1jhhhKuhjhhubh desc_content)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhhhKuubeh}(h]h ](j(functioneh"]h$]h&]domainj(objtypejdesctypejnoindex noindexentrynocontentsentryuh1jhhhj1hNhNubh)}(hThe function returns a non-zero value if it succeeded getting the power count or runtime PM was disabled, in either of which cases the driver may proceed to access the device.h]hThe function returns a non-zero value if it succeeded getting the power count or runtime PM was disabled, in either of which cases the driver may proceed to access the device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKwhj1hhubeh}(h]control-frameworkah ]h"]control frameworkah$]h&]uh1hhjhhhhhKmubeh}(h]power-managementah ]h"]power managementah$]h&]uh1hhhhhhhhK@ubh)}(hhh](h)}(h"Rotation, orientation and flippingh]h"Rotation, orientation and flipping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK|ubh)}(hUse ``v4l2_fwnode_device_parse()`` to obtain rotation and orientation information from system firmware and ``v4l2_ctrl_new_fwnode_properties()`` to register the appropriate controls.h](hUse }(hjhhhNhNubj)}(h``v4l2_fwnode_device_parse()``h]hv4l2_fwnode_device_parse()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhI to obtain rotation and orientation information from system firmware and }(hjhhhNhNubj)}(h%``v4l2_ctrl_new_fwnode_properties()``h]h!v4l2_ctrl_new_fwnode_properties()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh& to register the appropriate controls.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK~hjhhubh)}(h!.. _media-camera-sensor-examples:h]h}(h]h ]h"]h$]h&]hmedia-camera-sensor-examplesuh1hhKhjhhhhubeh}(h]!rotation-orientation-and-flippingah ]h"]"rotation, orientation and flippingah$]h&]uh1hhhhhhhhK|ubh)}(hhh](h)}(hExample driversh]hExample drivers}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hhhhhKubh)}(hFeatures implemented by sensor drivers vary, and depending on the set of supported features and other qualities, particular sensor drivers better serve the purpose of an example. The following drivers are known to be good examples:h]hFeatures implemented by sensor drivers vary, and depending on the set of supported features and other qualities, particular sensor drivers better serve the purpose of an example. The following drivers are known to be good examples:}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj$hhubhtable)}(hhh](h)}(hExample sensor driversh]hExample sensor drivers}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjEubhtgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j[hjXubj\)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j[hjXubj\)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j[hjXubj\)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j[hjXubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(h Driver nameh]h Driver name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hFile(s)h]hFile(s)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h Driver typeh]h Driver type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h Example topich]h Example topic}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hCCSh]hCCS}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h``drivers/media/i2c/ccs/``h]j)}(hjh]hdrivers/media/i2c/ccs/}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hFreely configurableh]hFreely configurable}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj-ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h$Power management (ACPI and DT), UAPIh]h$Power management (ACPI and DT), UAPI}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjDubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(himx219h]himx219}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjdubah}(h]h ]h"]h$]h&]uh1jhjaubj)}(hhh]h)}(h``drivers/media/i2c/imx219.c``h]j)}(hjh]hdrivers/media/i2c/imx219.c}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhhhKhj{ubah}(h]h ]h"]h$]h&]uh1jhjaubj)}(hhh]h)}(hRegister list basedh]hRegister list based}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjaubj)}(hhh]h)}(h+Power management (DT), UAPI, mode selectionh]h+Power management (DT), UAPI, mode selection}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(himx319h]himx319}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h``drivers/media/i2c/imx319.c``h]j)}(hjh]hdrivers/media/i2c/imx319.c}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hRegister list basedh]hRegister list based}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hPower management (ACPI and DT)h]hPower management (ACPI and DT)}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]colsKuh1jVhjEubeh}(h]id1ah ]h"]h$]h&]uh1jChj$hhhNhNubeh}(h](example-driversjeh ]h"](example driversmedia-camera-sensor-exampleseh$]h&]uh1hhhhhhhhKexpect_referenced_by_name}jWjsexpect_referenced_by_id}jjsubeh}(h](writing-camera-sensor-driversheh ]h"](writing camera sensor drivers#media_writing_camera_sensor_driverseh$]h&]uh1hhhhhhhhKjZ}jdhsj\}hhsubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksjfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}(h]haj]jaunameids}(jdhjcj`jXjUjjjjjjjjjjjjj!jjWjjVjSu nametypes}(jdjcjXjjjjjjj!jWjVuh}(hhj`hjUjjj[jjjjjjzjjjj1jjjjjj$jSj$jLjEu footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}jKsRparse_messages]transform_messages](hsystem_message)}(hhh]h)}(hhh]hIHyperlink target "media-writing-camera-sensor-drivers" is not referenced.}hjsbah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypeINFOsourcehlineKuh1jubj)}(hhh]h)}(hhh]hBHyperlink target "media-camera-sensor-examples" is not referenced.}hj sbah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]levelKtypej sourcehlineKuh1jube transformerN include_log] decorationNhhub.