€•š/Œ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/hwmon/nsa320”Œ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/hwmon/nsa320”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ /translations/it_IT/hwmon/nsa320”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ /translations/ja_JP/hwmon/nsa320”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ /translations/ko_KR/hwmon/nsa320”Œ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/hwmon/nsa320”Œ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/hwmon/nsa320”Œ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 nsa320_hwmon”h]”hŒKernel driver nsa320_hwmon”…””}”(hh¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhh·h²hh³Œ:/var/lib/git/docbuild/linux/Documentation/hwmon/nsa320.rst”h´KubhŒ paragraph”“”)”}”(hŒSupported chips:”h]”hŒSupported chips:”…””}”(hhÍh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhŒ block_quote”“”)”}”(hX* Holtek HT46R065 microcontroller with onboard firmware that configures it to act as a hardware monitor. Prefix: 'nsa320' Addresses scanned: none Datasheet: Not available, driver was reverse engineered based upon the Zyxel kernel source ”h]”hŒ bullet_list”“”)”}”(hhh]”hŒ list_item”“”)”}”(hŒúHoltek HT46R065 microcontroller with onboard firmware that configures it to act as a hardware monitor. Prefix: 'nsa320' Addresses scanned: none Datasheet: Not available, driver was reverse engineered based upon the Zyxel kernel source ”h]”(hÌ)”}”(hŒEHoltek HT46R065 microcontroller with onboard firmware that configures”h]”hŒEHoltek HT46R065 microcontroller with onboard firmware that configures”…””}”(hhìh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KhhèubhÜ)”}”(hŒ!it to act as a hardware monitor. ”h]”hÌ)”}”(hŒ it to act as a hardware monitor.”h]”hŒ it to act as a hardware monitor.”…””}”(hhþh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khhúubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛh³hÊh´KhhèubhÌ)”}”(hŒPrefix: 'nsa320'”h]”hŒPrefix: ‘nsa320’”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K hhèubhÌ)”}”(hŒAddresses scanned: none”h]”hŒAddresses scanned: none”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K hhèubhÌ)”}”(hŒFDatasheet: Not available, driver was reverse engineered based upon the”h]”hŒFDatasheet: Not available, driver was reverse engineered based upon the”…””}”(hj.h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KhhèubhÜ)”}”(hŒZyxel kernel source ”h]”hÌ)”}”(hŒZyxel kernel source”h]”hŒZyxel kernel source”…””}”(hj@h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khj<ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛh³hÊh´Khhè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Ì)”}”(hŒAuthor:”h]”hŒAuthor:”…””}”(hjhh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhÜ)”}”(hŒ$Adam Baker ”h]”hÌ)”}”(hŒ#Adam Baker ”h]”(hŒ Adam Baker <”…””}”(hjzh²hh³Nh´NubhŒ reference”“”)”}”(hŒlinux@baker-net.org.uk”h]”hŒlinux@baker-net.org.uk”…””}”(hj„h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œmailto:linux@baker-net.org.uk”uh1j‚hjzubhŒ>”…””}”(hjzh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khjvubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛh³hÊh´Khh·h²hubh¶)”}”(hhh]”(h»)”}”(hŒ Description”h]”hŒ Description”…””}”(hj§h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj¤h²hh³hÊh´KubhÌ)”}”(hXThis chip is known to be used in the Zyxel NSA320 and NSA325 NAS Units and also in some variants of the NSA310 but the driver has only been tested on the NSA320. In all of these devices it is connected to the same 3 GPIO lines which are used to provide chip select, clock and data lines. The interface behaves similarly to SPI but at much lower speeds than are normally used for SPI.”h]”hXThis chip is known to be used in the Zyxel NSA320 and NSA325 NAS Units and also in some variants of the NSA310 but the driver has only been tested on the NSA320. In all of these devices it is connected to the same 3 GPIO lines which are used to provide chip select, clock and data lines. The interface behaves similarly to SPI but at much lower speeds than are normally used for SPI.”…””}”(hjµh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khj¤h²hubhÌ)”}”(hŒøFollowing each chip select pulse the chip will generate a single 32 bit word that contains 0x55 as a marker to indicate that data is being read correctly, followed by an 8 bit fan speed in 100s of RPM and a 16 bit temperature in tenths of a degree.”h]”hŒøFollowing each chip select pulse the chip will generate a single 32 bit word that contains 0x55 as a marker to indicate that data is being read correctly, followed by an 8 bit fan speed in 100s of RPM and a 16 bit temperature in tenths of a degree.”…””}”(hjÃh²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Œsysfs-Interface”h]”hŒsysfs-Interface”…””}”(hjÜh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjÙh²hh³hÊh´K)ubhŒtable”“”)”}”(hhh]”hŒtgroup”“”)”}”(hhh]”(hŒcolspec”“”)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”K uh1jôhjñubjõ)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”Kuh1jôhjñubhŒtbody”“”)”}”(hhh]”(hŒrow”“”)”}”(hhh]”(hŒentry”“”)”}”(hhh]”hÌ)”}”(hŒ temp1_input”h]”hŒ temp1_input”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K,hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjubj)”}”(hhh]”hÌ)”}”(hŒtemperature input”h]”hŒtemperature input”…””}”(hj0h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K,hj-ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhj ubj)”}”(hhh]”(j)”}”(hhh]”hÌ)”}”(hŒ fan1_input”h]”hŒ fan1_input”…””}”(hjPh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K-hjMubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjJubj)”}”(hhh]”hÌ)”}”(hŒ fan speed”h]”hŒ fan speed”…””}”(hjgh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K-hjdubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjJubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j hjñubeh}”(h]”h ]”h"]”h$]”h&]”Œcols”Kuh1jïhjìubah}”(h]”h ]”h"]”h$]”h&]”uh1jêhjÙh²hh³hÊh´Nubeh}”(h]”Œsysfs-interface”ah ]”h"]”Œsysfs-interface”ah$]”h&]”uh1hµhh·h²hh³hÊh´K)ubh¶)”}”(hhh]”(h»)”}”(hŒNotes”h]”hŒNotes”…””}”(hjŸh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjœh²hh³hÊh´K1ubhÌ)”}”(hX"The access timings used in the driver are the same as used in the Zyxel provided kernel. Testing has shown that if the delay between chip select and the first clock pulse is reduced from 100 ms to just under 10ms then the chip will not produce any output. If the duration of either phase of the clock is reduced from 100 us to less than 15 us then data pulses are likely to be read twice corrupting the output. The above analysis is based upon a sample of one unit but suggests that the Zyxel provided delay values include a reasonable tolerance.”h]”hX"The access timings used in the driver are the same as used in the Zyxel provided kernel. Testing has shown that if the delay between chip select and the first clock pulse is reduced from 100 ms to just under 10ms then the chip will not produce any output. If the duration of either phase of the clock is reduced from 100 us to less than 15 us then data pulses are likely to be read twice corrupting the output. The above analysis is based upon a sample of one unit but suggests that the Zyxel provided delay values include a reasonable tolerance.”…””}”(hj­h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K3hjœh²hubhÌ)”}”(hXzThe driver incorporates a limit that it will not check for updated values faster than once a second. This is because the hardware takes a relatively long time to read the data from the device and when it does it reads both temp and fan speed. As the most likely case for two accesses in quick succession is to read both of these values avoiding a second read delay is desirable.”h]”hXzThe driver incorporates a limit that it will not check for updated values faster than once a second. This is because the hardware takes a relatively long time to read the data from the device and when it does it reads both temp and fan speed. As the most likely case for two accesses in quick succession is to read both of these values avoiding a second read delay is desirable.”…””}”(hj»h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K