€•j'Œ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/w1/masters/omap-hdq”Œ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/w1/masters/omap-hdq”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ'/translations/it_IT/w1/masters/omap-hdq”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ'/translations/ja_JP/w1/masters/omap-hdq”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ'/translations/ko_KR/w1/masters/omap-hdq”Œ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/w1/masters/omap-hdq”Œ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 for omap HDQ/1-wire module”h]”hŒ(Kernel driver for omap HDQ/1-wire module”…””}”(hh¨hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hh£hžhhŸŒA/var/lib/git/docbuild/linux/Documentation/w1/masters/omap-hdq.rst”h Kubh¢)”}”(hhh]”(h§)”}”(hŒSupported chips:”h]”hŒSupported chips:”…””}”(hhºhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hh·hžhhŸh¶h KubhŒ paragraph”“”)”}”(hŒ9HDQ/1-wire controller on the TI OMAP 2430/3430 platforms.”h]”hŒ9HDQ/1-wire controller on the TI OMAP 2430/3430 platforms.”…””}”(hhÊhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÈhŸh¶h Khh·hžhubeh}”(h]”Œsupported-chips”ah ]”h"]”Œsupported chips:”ah$]”h&]”uh1h¡hh£hžhhŸh¶h Kubh¢)”}”(hhh]”(h§)”}”(hŒA useful link about HDQ basics:”h]”hŒA useful link about HDQ basics:”…””}”(hhãhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hhàhžhhŸh¶h K ubhÉ)”}”(hŒ0http://focus.ti.com/lit/an/slua408a/slua408a.pdf”h]”hŒ reference”“”)”}”(hhóh]”hŒ0http://focus.ti.com/lit/an/slua408a/slua408a.pdf”…””}”(hh÷hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”hóuh1hõhhñubah}”(h]”h ]”h"]”h$]”h&]”uh1hÈhŸh¶h K hhàhžhubeh}”(h]”Œa-useful-link-about-hdq-basics”ah ]”h"]”Œa useful link about hdq basics:”ah$]”h&]”uh1h¡hh£hžhhŸh¶h K ubh¢)”}”(hhh]”(h§)”}”(hŒ Description:”h]”hŒ Description:”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hjhžhhŸh¶h KubhÉ)”}”(hXDThe HDQ/1-Wire module of TI OMAP2430/3430 platforms implement the hardware protocol of the master functions of the Benchmark HDQ and the Dallas Semiconductor 1-Wire protocols. These protocols use a single wire for communication between the master (HDQ/1-Wire controller) and the slave (HDQ/1-Wire external compliant device).”h]”hXDThe HDQ/1-Wire module of TI OMAP2430/3430 platforms implement the hardware protocol of the master functions of the Benchmark HDQ and the Dallas Semiconductor 1-Wire protocols. These protocols use a single wire for communication between the master (HDQ/1-Wire controller) and the slave (HDQ/1-Wire external compliant device).”…””}”(hj$hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÈhŸh¶h KhjhžhubhÉ)”}”(hŒyA typical application of the HDQ/1-Wire module is the communication with battery monitor (gas gauge) integrated circuits.”h]”hŒyA typical application of the HDQ/1-Wire module is the communication with battery monitor (gas gauge) integrated circuits.”…””}”(hj2hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÈhŸh¶h KhjhžhubhÉ)”}”(hXÌThe controller supports operation in both HDQ and 1-wire mode. The essential difference between the HDQ and 1-wire mode is how the slave device responds to initialization pulse.In HDQ mode, the firmware does not require the host to create an initialization pulse to the slave.However, the slave can be reset by using an initialization pulse (also referred to as a break pulse).The slave does not respond with a presence pulse as it does in the 1-Wire protocol.”h]”hXÌThe controller supports operation in both HDQ and 1-wire mode. The essential difference between the HDQ and 1-wire mode is how the slave device responds to initialization pulse.In HDQ mode, the firmware does not require the host to create an initialization pulse to the slave.However, the slave can be reset by using an initialization pulse (also referred to as a break pulse).The slave does not respond with a presence pulse as it does in the 1-Wire protocol.”…””}”(hj@hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÈhŸh¶h Khjhžhubeh}”(h]”Œ description”ah ]”h"]”Œ description:”ah$]”h&]”uh1h¡hh£hžhhŸh¶h Kubh¢)”}”(hhh]”(h§)”}”(hŒRemarks:”h]”hŒRemarks:”…””}”(hjYhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hjVhžhhŸh¶h K ubhÉ)”}”(hX0The driver (drivers/w1/masters/omap_hdq.c) supports the HDQ mode of the controller. In this mode, as we can not read the ID which obeys the W1 spec(family:id:crc), a module parameter can be passed to the driver which will be used to calculate the CRC and pass back an appropriate slave ID to the W1 core.”h]”hX0The driver (drivers/w1/masters/omap_hdq.c) supports the HDQ mode of the controller. In this mode, as we can not read the ID which obeys the W1 spec(family:id:crc), a module parameter can be passed to the driver which will be used to calculate the CRC and pass back an appropriate slave ID to the W1 core.”…””}”(hjghžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÈhŸh¶h K!hjVhžhubhÉ)”}”(hXBy default the master driver and the BQ slave i/f driver(drivers/w1/slaves/w1_bq27000.c) sets the ID to 1. Please note to load both the modules with a different ID if required, but note that the ID used should be same for both master and slave driver loading.”h]”hXBy default the master driver and the BQ slave i/f driver(drivers/w1/slaves/w1_bq27000.c) sets the ID to 1. Please note to load both the modules with a different ID if required, but note that the ID used should be same for both master and slave driver loading.”…””}”(hjuhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÈhŸh¶h K'hjVhžhubhÉ)”}”(hŒe.g::”h]”hŒe.g:”…””}”(hjƒhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÈhŸh¶h K,hjVhžhubhŒ literal_block”“”)”}”(hŒ6insmod omap_hdq.ko W1_ID=2 insmod w1_bq27000.ko F_ID=2”h]”hŒ6insmod omap_hdq.ko W1_ID=2 insmod w1_bq27000.ko F_ID=2”…””}”hj“sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1j‘hŸh¶h K.hjVhžhubhÉ)”}”(hXkThe driver also supports 1-wire mode. In this mode, there is no need to pass slave ID as parameter. The driver will auto-detect slaves connected to the bus using SEARCH_ROM procedure. 1-wire mode can be selected by setting "ti,mode" property to "1w" in DT (see Documentation/devicetree/bindings/w1/omap-hdq.txt for more details). By default driver is in HDQ mode.”h]”hXsThe driver also supports 1-wire mode. In this mode, there is no need to pass slave ID as parameter. The driver will auto-detect slaves connected to the bus using SEARCH_ROM procedure. 1-wire mode can be selected by setting “ti,mode†property to “1w†in DT (see Documentation/devicetree/bindings/w1/omap-hdq.txt for more details). By default driver is in HDQ mode.”…””}”(hj£hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÈhŸh¶h K1hjVhžhubeh}”(h]”Œremarks”ah ]”h"]”Œremarks:”ah$]”h&]”uh1h¡hh£hžhhŸh¶h K ubeh}”(h]”Œ(kernel-driver-for-omap-hdq-1-wire-module”ah ]”h"]”Œ(kernel driver for omap hdq/1-wire module”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»hÝhÚjj jSjPj¶j³uŒ nametypes”}”(j¾‰h݉j‰jS‰j¶‰uh}”(j»h£hÚh·j hàjPjj³jVuŒ 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.