€•¼,Œ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Œ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.”…””}”(hhø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.”…””}”(hjhž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”…””}”(hj-hž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.”…””}”(hj;hž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.”…””}”(hjIhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h K#hj*hžhubhÛ)”}”(hŒSimple pattern::”h]”hŒSimple pattern:”…””}”(hjWhž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)”…””}”hjgsbah}”(h]”h ]”h"]”h$]”h&]”h±h²uh1jehŸ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â€.”…””}”(hjuhž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žhubjf)”}”(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²uh1jehŸ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'j$jÀj½uŒ nametypes”}”(jȉj'‰jÀ‰uh}”(jÅh¶j$hÉ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.