Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b59b94f7 authored by Matthias Kaehlcke's avatar Matthias Kaehlcke Committed by Andy Gross
Browse files

dt-bindings: iio: vadc: Add unit address to ADC channel node in example



The node has a reg property, therefore its name should include a unit
address. Also change the name from 'usb_id_nopull' to 'adc-chan', which
is the preferred name for ADC channel nodes.

Include headers for constants used in the example.

Signed-off-by: default avatarMatthias Kaehlcke <mka@chromium.org>
Reviewed-by: default avatarDouglas Anderson <dianders@chromium.org>
Signed-off-by: default avatarAndy Gross <andy.gross@linaro.org>
parent 4884788b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -140,6 +140,10 @@ VADC_GND_REF and VADC_VDD_VADC.

Example:

#include <dt-bindings/iio/qcom,spmi-vadc.h>
#include <linux/irq.h>
/* ... */

	/* VADC node */
	pmic_vadc: vadc@3100 {
		compatible = "qcom,spmi-vadc";
@@ -151,7 +155,7 @@ Example:
		io-channel-ranges;

		/* Channel node */
		usb_id_nopull {
		adc-chan@VADC_LR_MUX10_USB_ID {
			reg = <VADC_LR_MUX10_USB_ID>;
			qcom,decimation = <512>;
			qcom,ratiometric;