Skip to content

Commit

Permalink
dt-bindings: iio: vadc: Add unit address to ADC channel node in example
Browse files Browse the repository at this point in the history
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: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
  • Loading branch information
Matthias Kaehlcke authored and Andy Gross committed Nov 14, 2018
1 parent 4884788 commit b59b94f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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;
Expand Down

0 comments on commit b59b94f

Please sign in to comment.