€•‘-Œsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ&/translations/zh_CN/leds/leds-qcom-lpg”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/zh_TW/leds/leds-qcom-lpg”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/it_IT/leds/leds-qcom-lpg”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/ja_JP/leds/leds-qcom-lpg”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/ko_KR/leds/leds-qcom-lpg”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒPortuguese (Brazilian)”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/pt_BR/leds/leds-qcom-lpg”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ&/translations/sp_SP/leds/leds-qcom-lpg”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)”}”(hŒ SPDX-License-Identifier: GPL-2.0”h]”hŒ SPDX-License-Identifier: GPL-2.0”…””}”hh·sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1hµhhh²hh³Œ@/var/lib/git/docbuild/linux/Documentation/leds/leds-qcom-lpg.rst”h´KubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒKernel driver for Qualcomm LPG”h]”hŒKernel driver for Qualcomm LPG”…””}”(hhÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÊh²hh³hÇh´KubhÉ)”}”(hhh]”(hÎ)”}”(hŒ Description”h]”hŒ Description”…””}”(hhàh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÝh²hh³hÇh´KubhŒ paragraph”“”)”}”(hŒ¦The Qualcomm LPG can be found in a variety of Qualcomm PMICs and consists of a number of PWM channels, a programmable pattern lookup table and a RGB LED current sink.”h]”hŒ¦The Qualcomm LPG can be found in a variety of Qualcomm PMICs and consists of a number of PWM channels, a programmable pattern lookup table and a RGB LED current sink.”…””}”(hhðh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K hhÝh²hubhï)”}”(hXTo facilitate the various use cases, the LPG channels can be exposed as individual LEDs, grouped together as RGB LEDs or otherwise be accessed as PWM channels. The output of each PWM channel is routed to other hardware blocks, such as the RGB current sink, GPIO pins etc.”h]”hXTo facilitate the various use cases, the LPG channels can be exposed as individual LEDs, grouped together as RGB LEDs or otherwise be accessed as PWM channels. The output of each PWM channel is routed to other hardware blocks, such as the RGB current sink, GPIO pins etc.”…””}”(hhþh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KhhÝh²hubhï)”}”(hŒyThe each PWM channel can operate with a period between 27us and 384 seconds and has a 9 bit resolution of the duty cycle.”h]”hŒyThe each PWM channel can operate with a period between 27us and 384 seconds and has a 9 bit resolution of the duty cycle.”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KhhÝh²hubhï)”}”(hX2In order to provide support for status notifications with the CPU subsystem in deeper idle states the LPG provides pattern support. This consists of a shared lookup table of brightness values and per channel properties to select the range within the table to use, the rate and if the pattern should repeat.”h]”hX2In order to provide support for status notifications with the CPU subsystem in deeper idle states the LPG provides pattern support. This consists of a shared lookup table of brightness values and per channel properties to select the range within the table to use, the rate and if the pattern should repeat.”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KhhÝh²hubhï)”}”(hŒhThe pattern for a channel can be programmed using the "pattern" trigger, using the hw_pattern attribute.”h]”hŒlThe pattern for a channel can be programmed using the “pattern†trigger, using the hw_pattern attribute.”…””}”(hj(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KhhÝh²hubeh}”(h]”Œ description”ah ]”h"]”Œ description”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KubhÉ)”}”(hhh]”(hÎ)”}”(hŒ /sys/class/leds//hw_pattern”h]”hŒ /sys/class/leds//hw_pattern”…””}”(hjAh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj>h²hh³hÇh´Kubhï)”}”(hŒ2Specify a hardware pattern for a Qualcomm LPG LED.”h]”hŒ2Specify a hardware pattern for a Qualcomm LPG LED.”…””}”(hjOh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K!hj>h²hubhï)”}”(hXÂThe pattern is a series of brightness and hold-time pairs, with the hold-time expressed in milliseconds. The hold time is a property of the pattern and must therefore be identical for each element in the pattern (except for the pauses described below). As the LPG hardware is not able to perform the linear transitions expected by the leds-trigger-pattern format, each entry in the pattern must be followed a zero-length entry of the same brightness.”h]”hXÂThe pattern is a series of brightness and hold-time pairs, with the hold-time expressed in milliseconds. The hold time is a property of the pattern and must therefore be identical for each element in the pattern (except for the pauses described below). As the LPG hardware is not able to perform the linear transitions expected by the leds-trigger-pattern format, each entry in the pattern must be followed a zero-length entry of the same brightness.”…””}”(hj]h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K#hj>h²hubhï)”}”(hŒSimple pattern::”h]”hŒSimple pattern:”…””}”(hjkh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K*hj>h²hubhŒ literal_block”“”)”}”(hŒµ"255 500 255 0 0 500 0 0" ^ | 255 +----+ +----+ | | | | ... 0 | +----+ +---- +----------------------> 0 5 10 15 time (100ms)”h]”hŒµ"255 500 255 0 0 500 0 0" ^ | 255 +----+ +----+ | | | | ... 0 | +----+ +---- +----------------------> 0 5 10 15 time (100ms)”…””}”hj{sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jyh³hÇh´K,hj>h²hubhï)”}”(hŒ‰The LPG supports specifying a longer hold-time for the first and last element in the pattern, the so called "low pause" and "high pause".”h]”hŒ‘The LPG supports specifying a longer hold-time for the first and last element in the pattern, the so called “low pause†and “high pauseâ€.”…””}”(hj‰h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K6hj>h²hubhï)”}”(hŒLow-pause pattern::”h]”hŒLow-pause pattern:”…””}”(hj—h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K9hj>h²hubjz)”}”(hX0"255 1000 255 0 0 500 0 0 255 500 255 0 0 500 0 0" ^ | 255 +--------+ +----+ +----+ +--------+ | | | | | | | | ... 0 | +----+ +----+ +----+ +---- +-----------------------------> 0 5 10 15 20 25 time (100ms)”h]”hX0"255 1000 255 0 0 500 0 0 255 500 255 0 0 500 0 0" ^ | 255 +--------+ +----+ +----+ +--------+ | | | | | | | | ... 0 | +----+ +----+ +----+ +---- +-----------------------------> 0 5 10 15 20 25 time (100ms)”…””}”hj¥sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jyh³hÇh´K;hj>h²hubhï)”}”(hŒYSimilarly, the last entry can be stretched by using a higher hold-time on the last entry.”h]”hŒYSimilarly, the last entry can be stretched by using a higher hold-time on the last entry.”…””}”(hj³h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KEhj>h²hubhï)”}”(hXáIn order to save space in the shared lookup table the LPG supports "ping-pong" mode, in which case each run through the pattern is performed by first running the pattern forward, then backwards. This mode is automatically used by the driver when the given pattern is a palindrome. In this case the "high pause" denotes the wait time before the pattern is run in reverse and as such the specified hold-time of the middle item in the pattern is allowed to have a different hold-time.”h]”hXéIn order to save space in the shared lookup table the LPG supports “ping-pong†mode, in which case each run through the pattern is performed by first running the pattern forward, then backwards. This mode is automatically used by the driver when the given pattern is a palindrome. In this case the “high pause†denotes the wait time before the pattern is run in reverse and as such the specified hold-time of the middle item in the pattern is allowed to have a different hold-time.”…””}”(hjÁh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KHhj>h²hubeh}”(h]”Œsys-class-leds-led-hw-pattern”ah ]”h"]”Œ /sys/class/leds//hw_pattern”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´Kubeh}”(h]”Œkernel-driver-for-qualcomm-lpg”ah ]”h"]”Œkernel driver for qualcomm lpg”ah$]”h&]”uh1hÈhhh²hh³hÇh´Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÇuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(hÍNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”jŒerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÇŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(jÜjÙj;j8jÔjÑuŒ nametypes”}”(j܉j;‰jÔ‰uh}”(jÙhÊj8hÝjÑj>uŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nh²hub.