€•/Œ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Œ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.”…””}”(hjhž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.”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h KhjhžhubhÛ)”}”(hŒPattern diagram::”h]”hŒPattern diagram:”…””}”(hj-hž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>”…””}”hj=sbah}”(h]”h ]”h"]”h$]”h&]”h±h²uh1j;hŸh³h K"hjhžhubhÛ)”}”(hŒTiming description:”h]”hŒTiming description:”…””}”(hjKhž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Û)”}”(hjhh]”hŒ,Tr1: First rising time for 0% - 30% load.”…””}”(hjjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h K2hjfubah}”(h]”h ]”h"]”h$]”h&]”uh1jdhjaubje)”}”(hŒ/Tr2: Second rising time for 31% - 100% load.”h]”hÛ)”}”(hjh]”hŒ/Tr2: Second rising time for 31% - 100% load.”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h K3hj}ubah}”(h]”h ]”h"]”h$]”h&]”uh1jdhjaubje)”}”(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&]”uh1jdhjaubje)”}”(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&]”uh1jdhjaubje)”}”(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&]”uh1jdhjaubje)”}”(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&]”uh1jdhjaubje)”}”(hŒ5Tr1/Tr2/Tf1/Tf2/Ton: 125ms to 3125ms, 200ms per step.”h]”hÛ)”}”(hjóh]”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 K9hjñubah}”(h]”h ]”h"]”h$]”h&]”uh1jdhjaubje)”}”(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&]”uh1jdhjaubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ*”uh1j_hŸh³h K2hj[ubah}”(h]”h ]”h"]”h$]”h&]”uh1jYhŸh³h K2hjhžhubhÛ)”}”(hŒPattern example::”h]”hŒPattern example:”…””}”(hj.hž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.”…””}”(hjJhž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”}”(jejbhýhúj]jZuŒ nametypes”}”(je‰hý‰j]‰uh}”(jbh¶húhÉjZjuŒ 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.