Msphinx.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/sg2042-mcumodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget$/translations/zh_TW/hwmon/sg2042-mcumodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget$/translations/it_IT/hwmon/sg2042-mcumodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget$/translations/ja_JP/hwmon/sg2042-mcumodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget$/translations/ko_KR/hwmon/sg2042-mcumodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget$/translations/sp_SP/hwmon/sg2042-mcumodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhh>/var/lib/git/docbuild/linux/Documentation/hwmon/sg2042-mcu.rsthKubhsection)}(hhh](htitle)}(hKernel driver sg2042-mcuh]hKernel driver sg2042-mcu}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh paragraph)}(hSupported chips:h]hSupported chips:}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh block_quote)}(hI* Onboard MCU for sg2042 Addresses scanned: - Prefix: 'sg2042-mcu' h]h bullet_list)}(hhh]h list_item)}(hCOnboard MCU for sg2042 Addresses scanned: - Prefix: 'sg2042-mcu' h](h)}(hOnboard MCU for sg2042h]hOnboard MCU for sg2042}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhubh)}(hAddresses scanned: -h]hAddresses scanned: -}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhubh)}(hPrefix: 'sg2042-mcu'h]hPrefix: ‘sg2042-mcu’}(hjhhhNhNubah}(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)}(hAuthors:h]hAuthors:}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(h(- Inochi Amaoto h]h)}(hhh]h)}(h&Inochi Amaoto h]h)}(h%Inochi Amaoto h](hInochi Amaoto <}(hjAhhhNhNubh reference)}(hinochiama@outlook.comh]hinochiama@outlook.com}(hjKhhhNhNubah}(h]h ]h"]h$]h&]refurimailto:inochiama@outlook.comuh1jIhjAubh>}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj=ubah}(h]h ]h"]h$]h&]uh1hhj:ubah}(h]h ]h"]h$]h&]j -uh1hhhhKhj6ubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(h Descriptionh]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhhhhhKubh)}(hKThis driver supprts hardware monitoring for onboard MCU with i2c interface.h]hKThis driver supprts hardware monitoring for onboard MCU with i2c interface.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjxhhubeh}(h] descriptionah ]h"] descriptionah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Usage Notesh]h Usage Notes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hThis driver does not auto-detect devices. You will have to instantiate the devices explicitly. Please see Documentation/i2c/instantiating-devices.rst for details.h]hThis driver does not auto-detect devices. You will have to instantiate the devices explicitly. Please see Documentation/i2c/instantiating-devices.rst for details.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h] usage-notesah ]h"] usage notesah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hSysfs Attributesh]hSysfs Attributes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK ubh)}(hEThe following table shows the standard entries support by the driver:h]hEThe following table shows the standard entries support by the driver:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK"hjhhubhtable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK5uh1jhjubhthead)}(hhh]hrow)}(hhh](hentry)}(hhh]h)}(hNameh]hName}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK%hjubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h Descriptionh]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK%hj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhjubhtbody)}(hhh](j )}(hhh](j)}(hhh]h)}(h temp1_inputh]h temp1_input}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK'hjSubah}(h]h ]h"]h$]h&]uh1jhjPubj)}(hhh]h)}(hMeasured temperature of SoCh]hMeasured temperature of SoC}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK'hjjubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1j hjMubj )}(hhh](j)}(hhh]h)}(h temp1_crith]h temp1_crit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK(hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hCritical high temperatureh]hCritical high temperature}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK(hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjMubj )}(hhh](j)}(hhh]h)}(htemp1_crit_hysth]htemp1_crit_hyst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK)hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h,hysteresis temperature restore from Criticalh]h,hysteresis temperature restore from Critical}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK)hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjMubj )}(hhh](j)}(hhh]h)}(h temp2_inputh]h temp2_input}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK*hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h&Measured temperature of the base boardh]h&Measured temperature of the base board}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK*hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjMubeh}(h]h ]h"]h$]h&]uh1jKhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubh)}(hgThe following table shows the extra entries support by the driver (the MCU device is in i2c subsystem):h]hgThe following table shows the extra entries support by the driver (the MCU device is in i2c subsystem):}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK-hjhhubj)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjPubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjPubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK-uh1jhjPubj)}(hhh]j )}(hhh](j)}(hhh]h)}(hNameh]hName}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK1hjwubah}(h]h ]h"]h$]h&]uh1jhjtubj)}(hhh]h)}(hPermh]hPerm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK1hjubah}(h]h ]h"]h$]h&]uh1jhjtubj)}(hhh]h)}(h Descriptionh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK1hjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1j hjqubah}(h]h ]h"]h$]h&]uh1jhjPubjL)}(hhh](j )}(hhh](j)}(hhh]h)}(h reset_counth]h reset_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK3hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hROh]hRO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK3hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hReset count of the SoCh]hReset count of the SoC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK3hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j)}(hhh]h)}(huptimeh]huptime}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK4hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hROh]hRO}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK4hj3ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h Seconds after the MCU is poweredh]h Seconds after the MCU is powered}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK4hjJubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j)}(hhh]h)}(h reset_reasonh]h reset_reason}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK5hjjubah}(h]h ]h"]h$]h&]uh1jhjgubj)}(hhh]h)}(hROh]hRO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK5hjubah}(h]h ]h"]h$]h&]uh1jhjgubj)}(hhh]h)}(hReset reason for the last reseth]hReset reason for the last reset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK5hjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j)}(hhh]h)}(hrepower_policyh]hrepower_policy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK6hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hRWh]hRW}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK6hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h(Execution policy when triggering repowerh]h(Execution policy when triggering repower}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jKhjPubeh}(h]h ]h"]h$]h&]colsKuh1jhjMubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubhdefinition_list)}(hhh]hdefinition_list_item)}(hXP``repower_policy`` The repower is triggered when the temperature of the SoC falls below the hysteresis temperature after triggering a shutdown due to reaching the critical temperature. The valid values for this entry are "repower" and "keep". "keep" will leave the SoC down when the triggering repower, and "repower" will boot the SoC. h](hterm)}(h``repower_policy``h]hliteral)}(hj%h]hrepower_policy}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j'hj#ubah}(h]h ]h"]h$]h&]uh1j!hhhK?hjubh definition)}(hhh]h)}(hX<The repower is triggered when the temperature of the SoC falls below the hysteresis temperature after triggering a shutdown due to reaching the critical temperature. The valid values for this entry are "repower" and "keep". "keep" will leave the SoC down when the triggering repower, and "repower" will boot the SoC.h]hXLThe repower is triggered when the temperature of the SoC falls below the hysteresis temperature after triggering a shutdown due to reaching the critical temperature. The valid values for this entry are “repower” and “keep”. “keep” will leave the SoC down when the triggering repower, and “repower” will boot the SoC.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK:hj>ubah}(h]h ]h"]h$]h&]uh1j<hjubeh}(h]h ]h"]h$]h&]uh1jhhhK?hjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h]sysfs-attributesah ]h"]sysfs attributesah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(hDebugfs Interfacesh]hDebugfs Interfaces}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihhhhhKBubh)}(hpIf debugfs is available, this driver exposes some hardware specific data in ``/sys/kernel/debug/sg2042-mcu/*/``.h](hLIf debugfs is available, this driver exposes some hardware specific data in }(hjzhhhNhNubj()}(h#``/sys/kernel/debug/sg2042-mcu/*/``h]h/sys/kernel/debug/sg2042-mcu/*/}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j'hjzubh.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKDhjihhubj)}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK-uh1jhjubj)}(hhh]j )}(hhh](j)}(hhh]h)}(hNameh]hName}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKHhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hFormath]hFormat}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKHhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h Descriptionh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhjubjL)}(hhh](j )}(hhh](j)}(hhh]h)}(hfirmware_versionh]hfirmware_version}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKJhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h0x%02xh]h0x%02x}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKJhj2ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hfirmware version of the MCUh]hfirmware version of the MCU}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKJhjIubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j)}(hhh]h)}(h pcb_versionh]h pcb_version}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKKhjiubah}(h]h ]h"]h$]h&]uh1jhjfubj)}(hhh]h)}(h0x%02xh]h0x%02x}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKKhjubah}(h]h ]h"]h$]h&]uh1jhjfubj)}(hhh]h)}(h version number of the base boardh]h version number of the base board}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKKhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j)}(hhh]h)}(h board_typeh]h board_type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKLhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h0x%02xh]h0x%02x}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKLhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hidentifiers for the base boardh]hidentifiers for the base board}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKLhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j)}(hhh]h)}(hmcu_typeh]hmcu_type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h%dh]h%d}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h&type of the MCU: 0 is STM32, 1 is GD32h]h&type of the MCU: 0 is STM32, 1 is GD32}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKMhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jKhjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1jhjihhhhhNubeh}(h]debugfs-interfacesah ]h"]debugfs interfacesah$]h&]uh1hhhhhhhhKBubeh}(h]kernel-driver-sg2042-mcuah ]h"]kernel driver sg2042-mcuah$]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_handlerjerror_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}(jpjmjjjjjfjcjhjeu nametypes}(jpjjjfjhuh}(jmhjjxjjjcjjejiu 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.