ite: drivers/adc: create pinmux phandle to the ADC driver node

Create the pinmux phandle to the ADC driver node in the
devicetree. When the pinmux_pin_set function in
adc_it8xxx2_channel_setup can refer to the setting of
this phandle. It is more flexible to use.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
This commit is contained in:
Tim Lin 2021-05-20 11:09:39 +08:00 committed by Carles Cufí
commit 8ea58d4389
11 changed files with 131 additions and 13 deletions

View file

@ -8,4 +8,11 @@
#define NO_FUNC 0
/* PINMUX config */
#define IT8XXX2_PINMUX_FUNC_1 0
#define IT8XXX2_PINMUX_FUNC_2 1
#define IT8XXX2_PINMUX_FUNC_3 2
#define IT8XXX2_PINMUX_FUNC_4 3
#define IT8XXX2_PINMUX_PINS 8
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_IT8XXX2_PINCTRL_H_ */