Hi Hector, > Greetings, > > The mxs-lradc has some hardware specific features like the DIVIDE_BY_TWO > (an analog divide by two circuit that can be activated per channel). > This is not currently implemented in the driver and I was wondering what > would be the way to expose and control such setting. A specific sysfs > entry? Somehow through the device tree? The proper way would be to see of IIO doesn't already have some ways to control those (it likely does) and then these would automatically be accessible via sysfs. > Is there any example of how to control a hw-specific feature in other > similar iio drivers? None that I'm aware of, but I didn't look. I suspect this would be somewhere around the channel defitionion, since the /2 function of the LRADC is a per- channel feature on the LRADC. Best regards, Marek Vasut -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html