* aquacomputer_d5next: Restructure writing pwm_enable
Restructure writing pwm_enable to be able to add more devices easily.
Signed-off-by: Leonard Anderweit <leonard.anderweit@gmail.com>
* aquacomputer_d5next: Rename AQUAERO_CTRL_PRESET_ID to AQUAERO_CTRL_PRESET_ID_PWM
Rename AQUAERO_CTRL_PRESET_ID to AQUAERO_CTRL_PRESET_ID_PWM to allow
adding more preset ids.
Signed-off-by: Leonard Anderweit <leonard.anderweit@gmail.com>
* aquacomputer_d5next: aquaero: Read pwm_enable
Enable aquaero devices to read pwm_enable values. Aquaero devices
support 5 different control modes: automatic (100% fan speed), PWM, temp curve, PID, two point
Signed-off-by: Leonard Anderweit <leonard.anderweit@gmail.com>
* aquacomputer_d5next: aquaero: Add writing pwm_enable
Enable setting pwm_enable on aquaero devices.
Signed-off-by: Leonard Anderweit <leonard.anderweit@gmail.com>
* aquacomputer_d5next: aquaero: Do not change control mode when setting PWM
The control mode can be changed with pwm_enable so don't change it when
setting pwm.
Signed-off-by: Leonard Anderweit <leonard.anderweit@gmail.com>
* re-docs: aquaero: readme: Document fan control
Signed-off-by: Leonard Anderweit <leonard.anderweit@gmail.com>
---------
Signed-off-by: Leonard Anderweit <leonard.anderweit@gmail.com>
* Update Makefile
Add additional targets for building dkms module and integrating existing targets.
Signed-off-by: Daniel Clark <megadjc@gmail.com>
* Add DKMS Support
Adds DKMS support and adds two useful utilities to automate installation and removal of the dkms module.
Signed-off-by: Daniel Clark <megadjc@gmail.com>
* Add DKMS Documentation.
Adds installation instructions for the DKMS Module. All previous targets such as "make checkpath" and "make dev" are supported.
Signed-off-by: Daniel Clark <megadjc@gmail.com>
* Update Makefile
Update formatting
Signed-off-by: Daniel Clark <megadjc@gmail.com>
---------
Signed-off-by: Daniel Clark <megadjc@gmail.com>
* Makefile: refactor somewhat to enable make arg propagation
Signed-off-by: David Flemström <david.flemstrom@gmail.com>
* Add support for Octo flow sensor
Signed-off-by: David Flemström <david.flemstrom@gmail.com>
* Indent OCTO_FLOW_SENSOR_OFFSET
Signed-off-by: David Flemström <david.flemstrom@gmail.com>
* Convert if statement into switch on priv->kind
Signed-off-by: David Flemström <david.flemstrom@gmail.com>
* Remove dynamic_debug register hex dumps
Signed-off-by: David Flemström <david.flemstrom@gmail.com>
* Indicate possibility that hwmon fan channel 9 might support pulses
Signed-off-by: David Flemström <david.flemstrom@gmail.com>
* Document new flow sensor Octo registers
Signed-off-by: David Flemström <david.flemstrom@gmail.com>
* Add kernel docs entry for new fan9_pulses sysfs node
Signed-off-by: David Flemström <david.flemstrom@gmail.com>
* Mention flow sensor support for Octo in kernel docs
Signed-off-by: David Flemström <david.flemstrom@gmail.com>
---------
Signed-off-by: David Flemström <david.flemstrom@gmail.com>
* Move aquaero completion to aqc_data and initialize in probe
* Comment to explain the use of the completion
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>
Statically allocated array of pointed to hwmon_channel_info can be made
const for safety.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
(kernel commit 832dc5106e813b4dc942bce27f89819f8d21fbd7)
Signed-off-by: Leonard Anderweit <leonard.anderweit@gmail.com>
* Add a 200ms sleep after sending ctrl reports to some devices
* Add D5 Next into the mix & convert to switch case
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>
* Make device descriptions match state upstream
* Rework pwm_enable value descriptions; add curve control references
* Create a starting PROTOCOLS.MD document
* Add missing fan_min, fan_max and fan_target entries from kernel docs
* Document current and total Aquaero uptime
* Remove extra line break
* Note Aquaero temp offsets, Aquastream XT PWM functionality
* Prettify table in README
* Clean up README and add submitting changes section
* Explain usage and upstreaming differences
* Add naming convention, sensor flapping in README
* Add curve params and explanations
* Misc PROTOCOLS.MD changes before actual work
* Add descriptions to PROTOCOLS for nearly all devices
* Removed separate D5 Next readme
---------
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>
* Remix sysfs attribute template and generation code from nct6683
* Add general curve info
* Implement reading temp points on curve, format line
* Implement reading PWM points on curve
* Implement writing PWM points in curve
* Implement writing temp points on curve; small formatting fixes
* Enable fan curves for Octo and Quadro only
* Add various ctrl offsets for Quadro and Octo
* Implement reading and writing to curve parameters
Implemented curve params are:
- Hold min power
- Start boost
- Min power
- Max power
- Fallback power
* Set fan to max speed if pwmX_enable is 0
* Make pwmX_enable visible only for Quadro and Octo
D5 Next will be enabled once the offset macros are in place
* Add various ctrl offsets for D5 Next
* Make pwmX_enable and curves visible for D5 Next
* Rename curve_power_hold_start to curve_power_min_hold
* Disable start boost and min power hold for pump channel on D5 Next
* Remove superfluous comments
* Rename bit position macros
* Fix power_min_hold to power_hold_min
---------
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>