Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: imx6qdl-apalis: Pass 'io-channel-cells' to the ADC

The STMPE811 ADC on the Apalis SoM board can be used as a provider
of ADC capabilities to other devices, for example, when a custom
baseboard has an SN74LV4051 analog mux.

Pass the 'io-channel-cells' parameter to indicate such possibility.

While at it, also pass a label for the adc device, so that it can
be referenced in the custom baseboard.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Fabio Estevam and committed by
Shawn Guo
cdbaba8d 56086b5e

+2 -1
+2 -1
arch/arm/boot/dts/imx6qdl-apalis.dtsi
··· 330 330 st,touch-det-delay = <5>; 331 331 }; 332 332 333 - stmpe-adc { 333 + stmpe_adc: stmpe-adc { 334 334 compatible = "st,stmpe-adc"; 335 335 /* forbid to use ADC channels 3-0 (touch) */ 336 336 st,norequest-mask = <0x0F>; 337 + #io-channel-cells = <1>; 337 338 }; 338 339 }; 339 340 };