Skip to contentSkip to conversation

IIO: hx710b: driver structure (separate vs extend hx711)

RFC Piyush Patle 1 participant 1 message Apr 7 IIO

lore
Share & tools
lore
#0 lore raw

Hi,

I am working on adding support for the AVIA HX710B ADC.

The HX710B is closely related to the existing HX711 driver. It uses the same two-wire bit-banged interface (PD_SCK + DOUT), but differs in how conversion modes and sampling rates are selected. In particular, the number of trailing PD_SCK pulses selects between differential input (10 Hz / 40 Hz) and an auxiliary channel (temperature / supply).

I currently have a working implementation as a separate driver (hx710b.c), along with device tree bindings and basic runtime testing.

Before preparing a formal patch series, I wanted to ask for guidance on the preferred structure:

1. Keep HX710B as a separate driver (hx710b.c)
2. Extend the existing hx711 driver
3. Refactor into a shared hx71x core with common logic

Please let me know which approach you would prefer me to proceed with.

Thanks,
Piyush Patle