Changes between Version 43 and Version 44 of gsc


Ignore:
Timestamp:
01/28/2020 11:29:59 PM (3 years ago)
Author:
Ryan Erbstoesser
Comment:

update gsc v3 hwmon example

Legend:

Unmodified
Added
Removed
Modified
  • gsc

    v43 v44  
    137137 2. Consult individual board hardware manual or the Linux device-tree for a description of what voltage rail this is and what voltage divider is applied in order to scale it. The Newport Linux kernel and BDK use information from the Linux Device-tree to scale and name these ADC's. Note also that Vin (Board Input voltage) is evaluated at the board's primary power supply input and offset by an estimated diode drop and thus may differ from your actual power supply within a volt or so.
    138138
    139 A Linux 'Hardware Monitor' ({{{hwmon}}}) driver is available  which provides simple standard access to the above temperature/voltage registers via sysfs. The arguments have been given labels which define the source. The user can “cat” the label to determine the source.
     139A Linux 'Hardware Monitor' ({{{hwmon}}}) driver is available  which provides simple standard access to the above temperature/voltage registers via sysfs. The arguments have been given labels which define the source. The user can “cat” the label to determine the source. The hwmon will be found in /sys/class/hwmon/hwmonx where x is a number. Check all hwmonx directories, starting with x=0 and then x=1 until identifying the correct hwmon where the values are contained.
     140
     141Example ran on a GW62xx using Ubuntu Bionic:
     142{{{
     143cd /sys/class/hwmon/hwmon1
     144for F in *;do echo -n $F: ;cat $F;done
     145in0_input:2762
     146in0_label:vdd_bat
     147in10_input:1483
     148in10_label:vdd_1p5
     149in11_input:4998
     150in11_label:vdd_an1
     151in12_input:3258
     152in12_label:vdd_gsc
     153in1_input:491
     154in1_label:fan_tach
     155in2_input:15468
     156in2_label:vdd_vin
     157in3_input:4943
     158in3_label:vdd_5p0
     159in4_input:3398
     160in4_label:vdd_3p3
     161in5_input:2456
     162in5_label:vdd_2p5
     163in6_input:867
     164in6_label:vdd_core
     165in7_input:907
     166in7_label:vdd_0p9
     167in8_input:979
     168in8_label:vdd_1p0
     169in9_input:1189
     170in9_label:vdd_1p2
     171name:gsc_hwmon
     172pwm1_auto_point1_pwm:127
     173pwm1_auto_point1_temp:30000
     174pwm1_auto_point2_pwm:153
     175pwm1_auto_point2_temp:33000
     176pwm1_auto_point3_pwm:178
     177pwm1_auto_point3_temp:36000
     178pwm1_auto_point4_pwm:204
     179pwm1_auto_point4_temp:39000
     180pwm1_auto_point5_pwm:229
     181pwm1_auto_point5_temp:42000
     182pwm1_auto_point6_pwm:255
     183pwm1_auto_point6_temp:45000
     184temp1_input:46000
     185temp1_label:temp
     186}}}
    140187
    141188Note that the standard sysfs entries for hwmon drivers are such that temperatures are in millidegrees celcius and voltages are in millivolts.