@sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget /translations/zh_CN/hwmon/da9052modnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget /translations/zh_TW/hwmon/da9052modnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget /translations/it_IT/hwmon/da9052modnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget /translations/ja_JP/hwmon/da9052modnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget /translations/ko_KR/hwmon/da9052modnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget /translations/sp_SP/hwmon/da9052modnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(hKernel driver da9052h]hKernel driver da9052}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhh:/var/lib/git/docbuild/linux/Documentation/hwmon/da9052.rsthKubh paragraph)}(hSupported chips:h]hSupported chips:}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh block_quote)}(h* Dialog Semiconductors DA9052-BC and DA9053-AA/Bx PMICs Prefix: 'da9052' Datasheet: Datasheet is not publicly available. h]h bullet_list)}(hhh]h list_item)}(hzDialog Semiconductors DA9052-BC and DA9053-AA/Bx PMICs Prefix: 'da9052' Datasheet: Datasheet is not publicly available. h](h)}(h6Dialog Semiconductors DA9052-BC and DA9053-AA/Bx PMICsh]h6Dialog Semiconductors DA9052-BC and DA9053-AA/Bx PMICs}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhubh)}(hPrefix: 'da9052'h]hPrefix: ‘da9052’}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhubh)}(h/Datasheet: Datasheet is not publicly available.h]h/Datasheet: Datasheet is not publicly available.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhubeh}(h]h ]h"]h$]h&]uh1hhhubah}(h]h ]h"]h$]h&]bullet*uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(h-Authors: David Dajun Chen h](hAuthors: David Dajun Chen <}(hjhhhNhNubh reference)}(hdchen@diasemi.comh]hdchen@diasemi.com}(hj hhhNhNubah}(h]h ]h"]h$]h&]refurimailto:dchen@diasemi.comuh1jhjubh>}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh)}(hhh](h)}(h Descriptionh]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hhhhhKubh)}(hXZThe DA9052/53 provides an Analogue to Digital Converter (ADC) with 10 bits resolution and track and hold circuitry combined with an analogue input multiplexer. The analogue input multiplexer will allow conversion of up to 10 different inputs. The track and hold circuit ensures stable input voltages at the input of the ADC during the conversion.h]hXZThe DA9052/53 provides an Analogue to Digital Converter (ADC) with 10 bits resolution and track and hold circuitry combined with an analogue input multiplexer. The analogue input multiplexer will allow conversion of up to 10 different inputs. The track and hold circuit ensures stable input voltages at the input of the ADC during the conversion.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj:hhubh)}(h0The ADC is used to measure the following inputs:h]h0The ADC is used to measure the following inputs:}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj:hhubhtable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1jqhjnubjr)}(hhh]h}(h]h ]h"]h$]h&]colwidthKCuh1jqhjnubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(h Channel 0h]h Channel 0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h*VDDOUT - measurement of the system voltageh]h*VDDOUT - measurement of the system voltage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h Channel 1h]h Channel 1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h2ICH - internal battery charger current measurementh]h2ICH - internal battery charger current measurement}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h Channel 2h]h Channel 2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h"TBAT - output from the battery NTCh]h"TBAT - output from the battery NTC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h Channel 3h]h Channel 3}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj8ubah}(h]h ]h"]h$]h&]uh1jhj5ubj)}(hhh]h)}(h)VBAT - measurement of the battery voltageh]h)VBAT - measurement of the battery voltage}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjOubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h Channel 4h]h Channel 4}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjoubah}(h]h ]h"]h$]h&]uh1jhjlubj)}(hhh]h)}(h)ADC_IN4 - high impedance input (0 - 2.5V)h]h)ADC_IN4 - high impedance input (0 - 2.5V)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h Channel 5h]h Channel 5}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h)ADC_IN5 - high impedance input (0 - 2.5V)h]h)ADC_IN5 - high impedance input (0 - 2.5V)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h Channel 6h]h Channel 6}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h)ADC_IN6 - high impedance input (0 - 2.5V)h]h)ADC_IN6 - high impedance input (0 - 2.5V)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h Channel 7h]h Channel 7}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK!hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h^XY - TSI interface to measure the X and Y voltage of the touch screen resistive potentiometersh]h^XY - TSI interface to measure the X and Y voltage of the touch screen resistive potentiometers}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK!hj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h Channel 8h]h Channel 8}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK#hjKubah}(h]h ]h"]h$]h&]uh1jhjHubj)}(hhh]h)}(h/Internal Tjunc. - sense (internal temp. sensor)h]h/Internal Tjunc. - sense (internal temp. sensor)}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK#hjbubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h Channel 9h]h Channel 9}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK$hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h1VBBAT - measurement of the backup battery voltageh]h1VBBAT - measurement of the backup battery voltage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK$hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]colsKuh1jlhjiubah}(h]h ]h"]h$]h&]uh1jghj:hhhhhNubh)}(hBy using sysfs attributes we can measure the system voltage VDDOUT, the battery charging current ICH, battery temperature TBAT, battery junction temperature TJUNC, battery voltage VBAT and the back up battery voltage VBBAT.h]hBy using sysfs attributes we can measure the system voltage VDDOUT, the battery charging current ICH, battery temperature TBAT, battery junction temperature TJUNC, battery voltage VBAT and the back up battery voltage VBBAT.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK'hj:hhubeh}(h] descriptionah ]h"] descriptionah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hVoltage Monitoringh]hVoltage Monitoring}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK,ubh)}(h%Voltages are sampled by a 10 bit ADC.h]h%Voltages are sampled by a 10 bit ADC.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK.hjhhubh)}(h%The battery voltage is calculated as:h]h%The battery voltage is calculated as:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK0hjhhubh)}(h/Milli volt = ((ADC value * 1000) / 512) + 2500 h]h)}(h.Milli volt = ((ADC value * 1000) / 512) + 2500h]h.Milli volt = ((ADC value * 1000) / 512) + 2500}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK2hj ubah}(h]h ]h"]h$]h&]uh1hhhhK2hjhhubh)}(h,The backup battery voltage is calculated as:h]h,The backup battery voltage is calculated as:}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK4hjhhubh)}(h'Milli volt = (ADC value * 2500) / 512; h]h)}(h&Milli volt = (ADC value * 2500) / 512;h]h&Milli volt = (ADC value * 2500) / 512;}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK6hj2ubah}(h]h ]h"]h$]h&]uh1hhhhK6hjhhubh)}(h:The voltages on ADC channels 4, 5 and 6 are calculated as:h]h:The voltages on ADC channels 4, 5 and 6 are calculated as:}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK8hjhhubh)}(h'Milli volt = (ADC value * 2500) / 1023 h]h)}(h&Milli volt = (ADC value * 2500) / 1023h]h&Milli volt = (ADC value * 2500) / 1023}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK:hjXubah}(h]h ]h"]h$]h&]uh1hhhhK:hjhhubeh}(h]voltage-monitoringah ]h"]voltage monitoringah$]h&]uh1hhhhhhhhK,ubh)}(hhh](h)}(hTemperature Monitoringh]hTemperature Monitoring}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhhhhhK=ubh)}(hoTemperatures are sampled by a 10 bit ADC. Junction and battery temperatures are monitored by the ADC channels.h]hoTemperatures are sampled by a 10 bit ADC. Junction and battery temperatures are monitored by the ADC channels.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK?hjxhhubh)}(h'The junction temperature is calculated:h]h'The junction temperature is calculated:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKBhjxhhubh)}(h9Degrees celsius = 1.708 * (TJUNC_RES - T_OFFSET) - 108.8 h]h)}(h8Degrees celsius = 1.708 * (TJUNC_RES - T_OFFSET) - 108.8h]h8Degrees celsius = 1.708 * (TJUNC_RES - T_OFFSET) - 108.8}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKDhjubah}(h]h ]h"]h$]h&]uh1hhhhKDhjxhhubh)}(h>The junction temperature attribute is supported by the driver.h]h>The junction temperature attribute is supported by the driver.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKFhjxhhubh)}(h&The battery temperature is calculated:h]h&The battery temperature is calculated:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKHhjxhhubh)}(h(Degree Celsius = 1 / (t1 + 1/298) - 273 h]h)}(h'Degree Celsius = 1 / (t1 + 1/298) - 273h]h'Degree Celsius = 1 / (t1 + 1/298) - 273}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKJhjubah}(h]h ]h"]h$]h&]uh1hhhhKJhjxhhubh)}(h5where t1 = (1/B)* ln(( ADCval * 2.5)/(R25*ITBAT*255))h]h5where t1 = (1/B)* ln(( ADCval * 2.5)/(R25*ITBAT*255))}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKLhjxhhubh)}(hFDefault values of R25, B, ITBAT are 10e3, 3380 and 50e-6 respectively.h]hFDefault values of R25, B, ITBAT are 10e3, 3380 and 50e-6 respectively.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKNhjxhhubeh}(h]temperature-monitoringah ]h"]temperature monitoringah$]h&]uh1hhhhhhhhK=ubeh}(h]kernel-driver-da9052ah ]h"]kernel driver da9052ah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksjfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerj?error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(jjjjjujrjju nametypes}(jjjujuh}(jhjj:jrjjjxu footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log] decorationNhhub.