€•ð/Œ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-mt6370-rgb”Œ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-mt6370-rgb”Œ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-mt6370-rgb”Œ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-mt6370-rgb”Œ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-mt6370-rgb”Œ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-mt6370-rgb”Œ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-mt6370-rgb”Œ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³ŒB/var/lib/git/docbuild/linux/Documentation/leds/leds-mt6370-rgb.rst”h´KubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒ&The device for Mediatek MT6370 RGB LED”h]”hŒ&The device for Mediatek MT6370 RGB LED”…””}”(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”“”)”}”(hXThe MT6370 integrates a four-channel RGB LED driver, designed to provide a variety of lighting effect for mobile device applications. The RGB LED devices includes a smart LED string controller and it can drive 3 channels of LEDs with a sink current up to 24mA and a CHG_VIN power good indicator LED with sink current up to 6mA. It provides three operation modes for RGB LEDs: PWM Dimming mode, breath pattern mode, and constant current mode. The device can increase or decrease the brightness of the RGB LED via an I2C interface.”h]”hXThe MT6370 integrates a four-channel RGB LED driver, designed to provide a variety of lighting effect for mobile device applications. The RGB LED devices includes a smart LED string controller and it can drive 3 channels of LEDs with a sink current up to 24mA and a CHG_VIN power good indicator LED with sink current up to 6mA. It provides three operation modes for RGB LEDs: PWM Dimming mode, breath pattern mode, and constant current mode. The device can increase or decrease the brightness of the RGB LED via an I2C interface.”…””}”(hhðh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K hhÝh²hubhï)”}”(hŒoThe breath pattern for a channel can be programmed using the "pattern" trigger, using the hw_pattern attribute.”h]”hŒsThe breath pattern for a channel can be programmed using the “pattern†trigger, using the hw_pattern attribute.”…””}”(hhþ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”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjh²hh³hÇh´Kubhï)”}”(hŒ7Specify a hardware breath pattern for a MT6370 RGB LED.”h]”hŒ7Specify a hardware breath pattern for a MT6370 RGB LED.”…””}”(hj%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Khjh²hubhï)”}”(hXGThe breath pattern is a series of timing pairs, with the hold-time expressed in milliseconds. And the brightness is controlled by '/sys/class/leds//brightness'. The pattern doesn't include the brightness setting. Hardware pattern only controls the timing for each pattern stage depending on the current brightness setting.”h]”hXMThe breath pattern is a series of timing pairs, with the hold-time expressed in milliseconds. And the brightness is controlled by ‘/sys/class/leds//brightness’. The pattern doesn’t include the brightness setting. Hardware pattern only controls the timing for each pattern stage depending on the current brightness setting.”…””}”(hj3h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Khjh²hubhï)”}”(hŒPattern diagram::”h]”hŒPattern diagram:”…””}”(hjAh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K hjh²hubhŒ literal_block”“”)”}”(hX» "0 Tr1 0 Tr2 0 Tf1 0 Tf2 0 Ton 0 Toff" --> '0' for dummy brightness code ^ | ============ | / \ / Icurr | / \ / | / \ / | / \ / .....repeat | / \ / | --- --- --- |--- --- --- +----------------------------------============------------> Time < Tr1>< Ton >< Toff >< Tr1>”h]”hX» "0 Tr1 0 Tr2 0 Tf1 0 Tf2 0 Ton 0 Toff" --> '0' for dummy brightness code ^ | ============ | / \ / Icurr | / \ / | / \ / | / \ / .....repeat | / \ / | --- --- --- |--- --- --- +----------------------------------============------------> Time < Tr1>< Ton >< Toff >< Tr1>”…””}”hjQsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jOh³hÇh´K"hjh²hubhï)”}”(hŒTiming description:”h]”hŒTiming description:”…””}”(hj_h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K0hjh²hubhŒ block_quote”“”)”}”(hXh* Tr1: First rising time for 0% - 30% load. * Tr2: Second rising time for 31% - 100% load. * Ton: On time for 100% load. * Tf1: First falling time for 100% - 31% load. * Tf2: Second falling time for 30% to 0% load. * Toff: Off time for 0% load. * Tr1/Tr2/Tf1/Tf2/Ton: 125ms to 3125ms, 200ms per step. * Toff: 250ms to 6250ms, 400ms per step. ”h]”hŒ bullet_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hŒ,Tr1: First rising time for 0% - 30% load.”h]”hï)”}”(hj|h]”hŒ,Tr1: First rising time for 0% - 30% load.”…””}”(hj~h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K2hjzubah}”(h]”h ]”h"]”h$]”h&]”uh1jxhjuubjy)”}”(hŒ/Tr2: Second rising time for 31% - 100% load.”h]”hï)”}”(hj“h]”hŒ/Tr2: Second rising time for 31% - 100% load.”…””}”(hj•h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K3hj‘ubah}”(h]”h ]”h"]”h$]”h&]”uh1jxhjuubjy)”}”(hŒTon: On time for 100% load.”h]”hï)”}”(hjªh]”hŒTon: On time for 100% load.”…””}”(hj¬h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K4hj¨ubah}”(h]”h ]”h"]”h$]”h&]”uh1jxhjuubjy)”}”(hŒ/Tf1: First falling time for 100% - 31% load.”h]”hï)”}”(hjÁh]”hŒ/Tf1: First falling time for 100% - 31% load.”…””}”(hjÃh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K5hj¿ubah}”(h]”h ]”h"]”h$]”h&]”uh1jxhjuubjy)”}”(hŒ/Tf2: Second falling time for 30% to 0% load.”h]”hï)”}”(hjØh]”hŒ/Tf2: Second falling time for 30% to 0% load.”…””}”(hjÚh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K6hjÖubah}”(h]”h ]”h"]”h$]”h&]”uh1jxhjuubjy)”}”(hŒToff: Off time for 0% load. ”h]”hï)”}”(hŒToff: Off time for 0% load.”h]”hŒToff: Off time for 0% load.”…””}”(hjñh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K7hjíubah}”(h]”h ]”h"]”h$]”h&]”uh1jxhjuubjy)”}”(hŒ5Tr1/Tr2/Tf1/Tf2/Ton: 125ms to 3125ms, 200ms per step.”h]”hï)”}”(hjh]”hŒ5Tr1/Tr2/Tf1/Tf2/Ton: 125ms to 3125ms, 200ms per step.”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K9hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jxhjuubjy)”}”(hŒ'Toff: 250ms to 6250ms, 400ms per step. ”h]”hï)”}”(hŒ&Toff: 250ms to 6250ms, 400ms per step.”h]”hŒ&Toff: 250ms to 6250ms, 400ms per step.”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K:hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jxhjuubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ*”uh1jsh³hÇh´K2hjoubah}”(h]”h ]”h"]”h$]”h&]”uh1jmh³hÇh´K2hjh²hubhï)”}”(hŒPattern example::”h]”hŒPattern example:”…””}”(hjBh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Khjh²hubhï)”}”(hŒNThis Will configure Tr1/Tr2/Tf1/Tf2 to 125m, Ton to 625ms, and Toff to 1050ms.”h]”hŒNThis Will configure Tr1/Tr2/Tf1/Tf2 to 125m, Ton to 625ms, and Toff to 1050ms.”…””}”(hj^h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K@hjh²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]”Œ&the-device-for-mediatek-mt6370-rgb-led”ah ]”h"]”Œ&the device for mediatek mt6370 rgb led”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”}”(jyjvjjjqjnuŒ nametypes”}”(jy‰j‰jq‰uh}”(jvhÊjhÝjnjuŒ 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.