I think I have got it:
I think you mean G762 instead of G782.
You are right, it is a typing error.
Find the description of the G762 driver here:
https://github.com/MISL-EBU-System-SW/mainline-public/blob/master/Documentation/hwmon/g762I think the driver G762 is present.
This is the difference between kernel 3.14.2 and 4.3.3:
There must be als a file with name "name"
The path to the files is different:
- Code: Select all
3.14.2 /sys/bus/i2c/devices/0-003e
4.3.3 /sys/bus/i2c/devices/0-003e/hwmon/hwmon0
There must be als a file with name "name", what is the content
g762More interesting is the content of the file
pwm1 (fan speed [0 .. 255]):
- Code: Select all
with kernel 3.14.2 it is 0
with kernel 4.3.3 it is 18
That means the fan runs with a speed of 18 out of 255, which is
not full speed as I supposed. This is better than 0 as in 3.14.2 kernels.
All other files contain the same values. Since the fan is a 2-wire fan the G762 controller works in open-loop mode
(pwm1_enable=1; pwm1_mode=1)
also there must a symlink "driver" in this folder to which file is that pointing to ?
- Code: Select all
root@2big2:/sys/bus/i2c/devices/0-003e # ls -l
total 0
lrwxrwxrwx 1 root root 0 2016-01-04 22:36 driver -> ../../../../../bus/i2c/drivers/g762
drwxr-xr-x 3 root root 0 2016-01-04 22:34 hwmon
-r--r--r-- 1 root root 4096 2016-01-04 22:36 modalias
-r--r--r-- 1 root root 4096 2016-01-04 22:36 name
drwxr-xr-x 2 root root 0 2016-01-04 22:36 power
lrwxrwxrwx 1 root root 0 2016-01-04 22:36 subsystem -> ../../../../../bus/i2c
-rw-r--r-- 1 root root 4096 2016-01-04 22:34 uevent
root@2big2:/sys/bus/i2c/devices/0-003e #
can you post the content of the cd /sys/bus/i2c/devices/0-003e/hwmon/hwmon0 folder ? (ls -al)
- Code: Select all
root@2big2:/sys/bus/i2c/devices/0-003e/hwmon # cd hwmon0
root@2big2:/sys/bus/i2c/devices/0-003e/hwmon/hwmon0 # ls -l
total 0
lrwxrwxrwx 1 root root 0 2016-01-04 22:36 device -> ../../../0-003e
-r--r--r-- 1 root root 4096 2016-01-04 22:36 fan1_alarm
-rw-r--r-- 1 root root 4096 2016-01-04 22:36 fan1_div
-r--r--r-- 1 root root 4096 2016-01-04 22:36 fan1_fault
-r--r--r-- 1 root root 4096 2016-01-04 22:36 fan1_input
-rw-r--r-- 1 root root 4096 2016-01-04 22:36 fan1_pulses
-rw-r--r-- 1 root root 4096 2016-01-04 22:36 fan1_target
-r--r--r-- 1 root root 4096 2016-01-04 22:36 name
drwxr-xr-x 2 root root 0 2016-01-04 22:36 power
-rw-r--r-- 1 root root 4096 2016-01-04 22:36 pwm1
-rw-r--r-- 1 root root 4096 2016-01-04 22:36 pwm1_enable
-rw-r--r-- 1 root root 4096 2016-01-04 22:36 pwm1_mode
lrwxrwxrwx 1 root root 0 2016-01-04 22:36 subsystem -> ../../../../../../../class/hwmon
-rw-r--r-- 1 root root 4096 2016-01-04 22:34 uevent
root@2big2:/sys/bus/i2c/devices/0-003e/hwmon/hwmon0 #
Whats about a temperature sensor and a control loop to set the fan speed?