€•š.Œ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-lp3944”Œ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-lp3944”Œ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-lp3944”Œ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-lp3944”Œ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-lp3944”Œ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-lp3944”Œ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-lp3944”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒKernel driver lp3944”h]”hŒKernel driver lp3944”…””}”(hh¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhh·h²hh³Œ>/var/lib/git/docbuild/linux/Documentation/leds/leds-lp3944.rst”h´KubhŒ block_quote”“”)”}”(hŒú* National Semiconductor LP3944 Fun-light Chip Prefix: 'lp3944' Addresses scanned: None (see the Notes section below) Datasheet: Publicly available at the National Semiconductor website http://www.national.com/pf/LP/LP3944.html ”h]”hŒ bullet_list”“”)”}”(hhh]”hŒ list_item”“”)”}”(hŒîNational Semiconductor LP3944 Fun-light Chip Prefix: 'lp3944' Addresses scanned: None (see the Notes section below) Datasheet: Publicly available at the National Semiconductor website http://www.national.com/pf/LP/LP3944.html ”h]”(hŒ paragraph”“”)”}”(hŒ,National Semiconductor LP3944 Fun-light Chip”h]”hŒ,National Semiconductor LP3944 Fun-light Chip”…””}”(hhÞh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´KhhØubhÝ)”}”(hŒPrefix: 'lp3944'”h]”hŒPrefix: ‘lp3944’”…””}”(hhìh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´KhhØubhÝ)”}”(hŒ5Addresses scanned: None (see the Notes section below)”h]”hŒ5Addresses scanned: None (see the Notes section below)”…””}”(hhúh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´K hhØubhÝ)”}”(hŒ Datasheet:”h]”hŒ Datasheet:”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´K hhØubhÌ)”}”(hŒcPublicly available at the National Semiconductor website http://www.national.com/pf/LP/LP3944.html ”h]”hÝ)”}”(hŒbPublicly available at the National Semiconductor website http://www.national.com/pf/LP/LP3944.html”h]”(hŒ9Publicly available at the National Semiconductor website ”…””}”(hjh²hh³Nh´NubhŒ reference”“”)”}”(hŒ)http://www.national.com/pf/LP/LP3944.html”h]”hŒ)http://www.national.com/pf/LP/LP3944.html”…””}”(hj$h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j&uh1j"hjubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´K hjubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K hhØubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÖhhÓubah}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ*”uh1hÑh³hÊh´KhhÍubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhŒdefinition_list”“”)”}”(hhh]”hŒdefinition_list_item”“”)”}”(hŒ4Authors: Antonio Ospite ”h]”(hŒterm”“”)”}”(hŒAuthors:”h]”hŒAuthors:”…””}”(hj`h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j^h³hÊh´KhjZubhŒ definition”“”)”}”(hhh]”hÝ)”}”(hŒ)Antonio Ospite ”h]”(hŒAntonio Ospite <”…””}”(hjsh²hh³Nh´Nubj#)”}”(hŒospite@studenti.unina.it”h]”hŒospite@studenti.unina.it”…””}”(hj{h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œmailto:ospite@studenti.unina.it”uh1j"hjsubhŒ>”…””}”(hjsh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´Khjpubah}”(h]”h ]”h"]”h$]”h&]”uh1jnhjZubeh}”(h]”h ]”h"]”h$]”h&]”uh1jXh³hÊh´KhjUubah}”(h]”h ]”h"]”h$]”h&]”uh1jShh·h²hh³hÊh´Nubh¶)”}”(hhh]”(h»)”}”(hŒ Description”h]”hŒ Description”…””}”(hjªh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj§h²hh³hÊh´KubhÝ)”}”(hŒºThe LP3944 is a helper chip that can drive up to 8 leds, with two programmable DIM modes; it could even be used as a gpio expander but this driver assumes it is used as a led controller.”h]”hŒºThe LP3944 is a helper chip that can drive up to 8 leds, with two programmable DIM modes; it could even be used as a gpio expander but this driver assumes it is used as a led controller.”…””}”(hj¸h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´Khj§h²hubhÝ)”}”(hŒkThe DIM modes are used to set _blink_ patterns for leds, the pattern is specified supplying two parameters:”h]”hŒkThe DIM modes are used to set _blink_ patterns for leds, the pattern is specified supplying two parameters:”…””}”(hjÆh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´Khj§h²hubhÌ)”}”(hŒj- period: from 0s to 1.6s - duty cycle: percentage of the period the led is on, from 0 to 100 ”h]”hÒ)”}”(hhh]”(h×)”}”(hŒperiod: from 0s to 1.6s”h]”jT)”}”(hhh]”jY)”}”(hŒperiod: from 0s to 1.6s”h]”(j_)”}”(hŒperiod:”h]”hŒperiod:”…””}”(hjæh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j^h³hÊh´Khjâubjo)”}”(hhh]”hÝ)”}”(hŒfrom 0s to 1.6s”h]”hŒfrom 0s to 1.6s”…””}”(hj÷h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´Khjôubah}”(h]”h ]”h"]”h$]”h&]”uh1jnhjâubeh}”(h]”h ]”h"]”h$]”h&]”uh1jXh³hÊh´Khjßubah}”(h]”h ]”h"]”h$]”h&]”uh1jShjÛubah}”(h]”h ]”h"]”h$]”h&]”uh1hÖhjØubh×)”}”(hŒFduty cycle: percentage of the period the led is on, from 0 to 100 ”h]”jT)”}”(hhh]”jY)”}”(hŒBduty cycle: percentage of the period the led is on, from 0 to 100 ”h]”(j_)”}”(hŒ duty cycle:”h]”hŒ duty cycle:”…””}”(hj(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j^h³hÊh´K hj$ubjo)”}”(hhh]”hÝ)”}”(hŒ5percentage of the period the led is on, from 0 to 100”h]”hŒ5percentage of the period the led is on, from 0 to 100”…””}”(hj9h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´K hj6ubah}”(h]”h ]”h"]”h$]”h&]”uh1jnhj$ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jXh³hÊh´K hj!ubah}”(h]”h ]”h"]”h$]”h&]”uh1jShjubah}”(h]”h ]”h"]”h$]”h&]”uh1hÖhjØubeh}”(h]”h ]”h"]”h$]”h&]”jKŒ-”uh1hÑh³hÊh´KhjÔubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khj§h²hubhÝ)”}”(hŒjSetting a led in DIM0 or DIM1 mode makes it blink according to the pattern. See the datasheet for details.”h]”hŒjSetting a led in DIM0 or DIM1 mode makes it blink according to the pattern. See the datasheet for details.”…””}”(hjlh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´K"hj§h²hubhÝ)”}”(hŒyLP3944 can be found on Motorola A910 smartphone, where it drives the rgb leds, the camera flash light and the lcds power.”h]”hŒyLP3944 can be found on Motorola A910 smartphone, where it drives the rgb leds, the camera flash light and the lcds power.”…””}”(hjzh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´K%hj§h²hubeh}”(h]”Œ description”ah ]”h"]”Œ description”ah$]”h&]”uh1hµhh·h²hh³hÊh´Kubh¶)”}”(hhh]”(h»)”}”(hŒNotes”h]”hŒNotes”…””}”(hj“h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjh²hh³hÊh´K*ubhÝ)”}”(hŒyThe chip is used mainly in embedded contexts, so this driver expects it is registered using the i2c_board_info mechanism.”h]”hŒyThe chip is used mainly in embedded contexts, so this driver expects it is registered using the i2c_board_info mechanism.”…””}”(hj¡h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´K+hjh²hubhÝ)”}”(hŒ‹To register the chip at address 0x60 on adapter 0, set the platform data according to include/linux/leds-lp3944.h, set the i2c board info::”h]”hŒŠTo register the chip at address 0x60 on adapter 0, set the platform data according to include/linux/leds-lp3944.h, set the i2c board info:”…””}”(hj¯h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´K.hjh²hubhŒ literal_block”“”)”}”(hŒ½static struct i2c_board_info a910_i2c_board_info[] __initdata = { { I2C_BOARD_INFO("lp3944", 0x60), .platform_data = &a910_lp3944_leds, }, };”h]”hŒ½static struct i2c_board_info a910_i2c_board_info[] __initdata = { { I2C_BOARD_INFO("lp3944", 0x60), .platform_data = &a910_lp3944_leds, }, };”…””}”hj¿sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1j½h³hÊh´K1hjh²hubhÝ)”}”(hŒ/and register it in the platform init function::”h]”hŒ.and register it in the platform init function:”…””}”(hjÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÜh³hÊh´K8hjh²hubj¾)”}”(hŒai2c_register_board_info(0, a910_i2c_board_info, ARRAY_SIZE(a910_i2c_board_info));”h]”hŒai2c_register_board_info(0, a910_i2c_board_info, ARRAY_SIZE(a910_i2c_board_info));”…””}”hjÝsbah}”(h]”h ]”h"]”h$]”h&]”jÍjÎuh1j½h³hÊh´K:hjh²hubeh}”(h]”Œnotes”ah ]”h"]”Œnotes”ah$]”h&]”uh1hµhh·h²hh³hÊh´K*ubeh}”(h]”Œkernel-driver-lp3944”ah ]”h"]”Œkernel driver lp3944”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õjjŠjðjíuŒ nametypes”}”(jø‰j‰jð‰uh}”(jõh·jŠj§jíjuŒ 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.