diff options
author | Haibo Chen <haibo.chen@nxp.com> | 2018-06-14 16:00:26 +0800 |
---|---|---|
committer | Leonard Crestez <leonard.crestez@nxp.com> | 2018-08-24 12:41:33 +0300 |
commit | d617e77e9a3c3c4e901085a88bc62aab4bb4c7ce (patch) | |
tree | 97631a302d9233be5d64a7e8a218b4edfba581c1 /arch/arm64 | |
parent | ffe9a96a708de049b94c23a27e0dc836e50d15e5 (diff) |
MLK-18612-2 ARM64: dts: fsl-imx8x-arm2: add ADC support
Add ADC support for imx8qxp b0 validation board, just enable ADC_IN0
and ADC_IN1, to support these two adc external analog input, need do
the following hardware rework: change register R335 and R338 from A
side to B side.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/boot/dts/freescale/fsl-imx8x-arm2.dtsi | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/freescale/fsl-imx8x-arm2.dtsi b/arch/arm64/boot/dts/freescale/fsl-imx8x-arm2.dtsi index 3ba0fb625133..56c735de9a06 100644 --- a/arch/arm64/boot/dts/freescale/fsl-imx8x-arm2.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-imx8x-arm2.dtsi @@ -81,6 +81,13 @@ gpio = <&max7322 0 GPIO_ACTIVE_HIGH>; enable-active-high; }; + + reg_adc_vref_1v8: adc_vref_1v8 { + compatible = "regulator-fixed"; + regulator-name = "vref_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; }; sound-cs42888 { @@ -105,6 +112,13 @@ status = "okay"; }; +&adc0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_adc0>; + vref-supply = <®_adc_vref_1v8>; + status = "okay"; +}; + &amix { status = "okay"; }; @@ -170,6 +184,13 @@ >; }; + pinctrl_adc0: adc0grp { + fsl,pins = < + SC_P_ADC_IN0_ADMA_ADC_IN0 0x60 + SC_P_ADC_IN1_ADMA_ADC_IN1 0x60 + >; + }; + pinctrl_csi0_lpi2c0: csi0lpi2c0grp { fsl,pins = < SC_P_MIPI_CSI0_I2C0_SCL_MIPI_CSI0_I2C0_SCL 0xc2000020 |