€•Ç-Œ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Œ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:”…””}”(hhôhž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”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”juh1jhjubeh}”(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:”…””}”(hjLhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhŸh¶h KhjFubhŒ definition”“”)”}”(hhh]”hÉ)”}”(hŒ)Antonio Ospite ”h]”(hŒAntonio Ospite <”…””}”(hj_hžhhŸNh Nubj)”}”(hŒospite@studenti.unina.it”h]”hŒospite@studenti.unina.it”…””}”(hjghžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œmailto:ospite@studenti.unina.it”uh1jhj_ubhŒ>”…””}”(hj_hžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÈhŸh¶h Khj\ubah}”(h]”h ]”h"]”h$]”h&]”uh1jZhjFubeh}”(h]”h ]”h"]”h$]”h&]”uh1jDhŸh¶h KhjAubah}”(h]”h ]”h"]”h$]”h&]”uh1j?hh£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]”j@)”}”(hhh]”jE)”}”(hŒperiod: from 0s to 1.6s”h]”(jK)”}”(hŒperiod:”h]”hŒperiod:”…””}”(hjÒhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhŸh¶h KhjÎubj[)”}”(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&]”uh1jZhjÎubeh}”(h]”h ]”h"]”h$]”h&]”uh1jDhŸh¶h KhjËubah}”(h]”h ]”h"]”h$]”h&]”uh1j?hjÇ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]”j@)”}”(hhh]”jE)”}”(hŒBduty cycle: percentage of the period the led is on, from 0 to 100 ”h]”(jK)”}”(hŒ duty cycle:”h]”hŒ duty cycle:”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jJhŸh¶h K hjubj[)”}”(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”…””}”(hj%hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÈhŸh¶h K hj"ubah}”(h]”h ]”h"]”h$]”h&]”uh1jZhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jDhŸh¶h K hj ubah}”(h]”h ]”h"]”h$]”h&]”uh1j?hj ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÂhjÄubeh}”(h]”h ]”h"]”h$]”h&]”j7Œ-”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.”…””}”(hjXhž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.”…””}”(hjfhž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”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hj|hž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.”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÈhŸh¶h K+hj|hž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.hj|hž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 K1hj|hž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 K8hj|hž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:hj|hž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ájyjvjÜjÙuŒ nametypes”}”(jä‰jy‰j܉uh}”(jáh£jvj“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.