Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Octo flow sensor #95

Merged
merged 9 commits into from
Mar 29, 2024
Merged

Conversation

dflemstr
Copy link
Contributor

@dflemstr dflemstr commented Mar 29, 2024

Adds support for the Octo flow sensor. I have tested with a real Octo device that's installed on my system, and compared the reported value to what the official Aquasuite app reports (which is easy to do by launching Aquasuite in a VM and re-directing the USB device to/from the VM quickly)

I'm not sure how the pulses ctrl register is supposed to work and how to test it reliably, so I copied over the behavior from Quadro for now. Any advice appreciated on how to test this interaction using my hardware!

I'll update docs and such once I have a better understanding of the ctrl register situation!

Fixes #6.

Checklist:

  • My code follows Linux code style guidelines
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have tested my changes on the affected device(s) - note on which
  • All exposed values are being read from the device

Signed-off-by: David Flemström <david.flemstrom@gmail.com>
aquacomputer_d5next.c Outdated Show resolved Hide resolved
Signed-off-by: David Flemström <david.flemstrom@gmail.com>
Copy link
Owner

@aleksamagicka aleksamagicka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Some comments enclosed, and docs should also be updated.

aquacomputer_d5next.c Outdated Show resolved Hide resolved
aquacomputer_d5next.c Outdated Show resolved Hide resolved
aquacomputer_d5next.c Outdated Show resolved Hide resolved
aquacomputer_d5next.c Show resolved Hide resolved
Signed-off-by: David Flemström <david.flemstrom@gmail.com>
Signed-off-by: David Flemström <david.flemstrom@gmail.com>
Signed-off-by: David Flemström <david.flemstrom@gmail.com>
Signed-off-by: David Flemström <david.flemstrom@gmail.com>
re-docs/PROTOCOLS.md Outdated Show resolved Hide resolved
Signed-off-by: David Flemström <david.flemstrom@gmail.com>
Signed-off-by: David Flemström <david.flemstrom@gmail.com>
Signed-off-by: David Flemström <david.flemstrom@gmail.com>
@aleksamagicka aleksamagicka merged commit 60a2270 into aleksamagicka:main Mar 29, 2024
3 checks passed
@aleksamagicka
Copy link
Owner

LGTM, thanks! It's late here, so I'll whip up a patch for the kernel tomorrow and ping you.

@dflemstr
Copy link
Contributor Author

Thanks, and no rush with getting this upstreamed, I am happy to run my dev version in the meantime!

@aleksamagicka
Copy link
Owner

Yeah, the earliest it can get in is for 6.10, which is not near.

aleksamagicka added a commit to aleksamagicka/linux that referenced this pull request Mar 31, 2024
Add support for reading the flow sensor value on
the Aquacomputer Octo. Implemented by David Flemstrom [1].

[1] aleksamagicka/aquacomputer_d5next-hwmon#95

Originally-by: David Flemstrom <david.flemstrom@gmail.com>
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>
aleksamagicka added a commit to aleksamagicka/linux that referenced this pull request Mar 31, 2024
Add support for reading and writing the flow sensor pulses on
the Aquacomputer Octo. Implemented by David Flemstrom [1].

[1] aleksamagicka/aquacomputer_d5next-hwmon#95

Originally-by: David Flemstrom <david.flemstrom@gmail.com>
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>
aleksamagicka added a commit to aleksamagicka/linux that referenced this pull request Mar 31, 2024
Add support for reading the flow sensor value on
the Aquacomputer Octo. Implemented by David Flemstrom [1].

[1] aleksamagicka/aquacomputer_d5next-hwmon#95

Originally-from: David Flemstrom <david.flemstrom@gmail.com>
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>
aleksamagicka added a commit to aleksamagicka/linux that referenced this pull request Mar 31, 2024
Add support for reading and writing the flow sensor pulses on
the Aquacomputer Octo. Implemented by David Flemstrom [1].

[1] aleksamagicka/aquacomputer_d5next-hwmon#95

Originally-from: David Flemstrom <david.flemstrom@gmail.com>
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>
aleksamagicka added a commit that referenced this pull request Mar 31, 2024
Add support for reading the flow sensor value on
the Aquacomputer Octo. Implemented by David Flemstrom [1].

[1] #95

Originally-from: David Flemstrom <david.flemstrom@gmail.com>
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>
aleksamagicka added a commit that referenced this pull request Mar 31, 2024
Add support for reading and writing the flow sensor pulses on
the Aquacomputer Octo. Implemented by David Flemstrom [1].

[1] #95

Originally-from: David Flemstrom <david.flemstrom@gmail.com>
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>
aleksamagicka added a commit to aleksamagicka/linux that referenced this pull request Mar 31, 2024
Add support for reading and writing the flow sensor pulses on
the Aquacomputer Octo. Implemented by David Flemstrom [1].

[1] aleksamagicka/aquacomputer_d5next-hwmon#95

Originally-from: David Flemstrom <david.flemstrom@gmail.com>
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>
aleksamagicka added a commit that referenced this pull request Mar 31, 2024
Add support for reading and writing the flow sensor pulses on
the Aquacomputer Octo. Implemented by David Flemstrom [1].

[1] #95

Originally-from: David Flemstrom <david.flemstrom@gmail.com>
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>
aleksamagicka added a commit to aleksamagicka/linux that referenced this pull request Apr 17, 2024
Add support for reading the flow sensor value on
the Aquacomputer Octo. Implemented by David Flemstrom [1].

[1] aleksamagicka/aquacomputer_d5next-hwmon#95

Originally-from: David Flemstrom <david.flemstrom@gmail.com>
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>
aleksamagicka added a commit to aleksamagicka/linux that referenced this pull request Apr 17, 2024
Add support for reading and writing the flow sensor pulses on
the Aquacomputer Octo. Implemented by David Flemstrom [1].

[1] aleksamagicka/aquacomputer_d5next-hwmon#95

Originally-from: David Flemstrom <david.flemstrom@gmail.com>
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>
intel-lab-lkp pushed a commit to intel-lab-lkp/linux that referenced this pull request Apr 17, 2024
Add support for reading the flow sensor value on
the Aquacomputer Octo. Implemented by David Flemstrom [1].

[1] aleksamagicka/aquacomputer_d5next-hwmon#95

Originally-from: David Flemstrom <david.flemstrom@gmail.com>
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>
intel-lab-lkp pushed a commit to intel-lab-lkp/linux that referenced this pull request Apr 17, 2024
Add support for reading and writing the flow sensor pulses on
the Aquacomputer Octo. Implemented by David Flemstrom [1].

[1] aleksamagicka/aquacomputer_d5next-hwmon#95

Originally-from: David Flemstrom <david.flemstrom@gmail.com>
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>
@aleksamagicka
Copy link
Owner

@dflemstr This just made it in! 🚀

aleksamagicka added a commit that referenced this pull request Apr 28, 2024
Add support for reading the flow sensor value on
the Aquacomputer Octo. Implemented by David Flemstrom [1].

[1] #95

Originally-from: David Flemstrom <david.flemstrom@gmail.com>
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>
aleksamagicka added a commit that referenced this pull request Apr 28, 2024
Add support for reading and writing the flow sensor pulses on
the Aquacomputer Octo. Implemented by David Flemstrom [1].

[1] #95

Originally-from: David Flemstrom <david.flemstrom@gmail.com>
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>
intel-lab-lkp pushed a commit to intel-lab-lkp/linux that referenced this pull request Apr 29, 2024
Add support for reading the flow sensor value on
the Aquacomputer Octo. Implemented by David Flemstrom [1].

[1] aleksamagicka/aquacomputer_d5next-hwmon#95

Originally-from: David Flemstrom <david.flemstrom@gmail.com>
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>
Link: https://lore.kernel.org/r/20240417175037.32499-2-savicaleksa83@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
intel-lab-lkp pushed a commit to intel-lab-lkp/linux that referenced this pull request Apr 29, 2024
Add support for reading and writing the flow sensor pulses on
the Aquacomputer Octo. Implemented by David Flemstrom [1].

[1] aleksamagicka/aquacomputer_d5next-hwmon#95

Originally-from: David Flemstrom <david.flemstrom@gmail.com>
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>
Link: https://lore.kernel.org/r/20240417175037.32499-3-savicaleksa83@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
intel-lab-lkp pushed a commit to intel-lab-lkp/linux that referenced this pull request Apr 30, 2024
Add support for reading the flow sensor value on
the Aquacomputer Octo. Implemented by David Flemstrom [1].

[1] aleksamagicka/aquacomputer_d5next-hwmon#95

Originally-from: David Flemstrom <david.flemstrom@gmail.com>
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>
Link: https://lore.kernel.org/r/20240417175037.32499-2-savicaleksa83@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
intel-lab-lkp pushed a commit to intel-lab-lkp/linux that referenced this pull request Apr 30, 2024
Add support for reading and writing the flow sensor pulses on
the Aquacomputer Octo. Implemented by David Flemstrom [1].

[1] aleksamagicka/aquacomputer_d5next-hwmon#95

Originally-from: David Flemstrom <david.flemstrom@gmail.com>
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>
Link: https://lore.kernel.org/r/20240417175037.32499-3-savicaleksa83@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Any plans to support a water flow sensor via the Octo?
2 participants