ARM: dts: vf610-twr: Add ADC support
Subsystems (2)
PATCH v6 1/1 ARM: dts: vf610-twr: Add ADC support
vf610 has two ADC controllers, and vf610-twr board ADC0_SE5 pin connect to sliding rheostat for ADC test, other ADC pins connect to connectors for future use.
Add support for ADC0_SE5.
CC Shawn Guo <[email protected]>
CC Jonathan Cameron <[email protected]>
CC Mark Rutland <[email protected]>
CC Otavio Salvador <[email protected]>
CC Peter Meerwald <[email protected]>
CC Lars-Peter Clausen <[email protected]>
Signed-off-by Fugang Duan <[email protected]>
--- arch/arm/boot/dts/vf610-twr.dts | 26 ++++++++++++++++++++++++++ arch/arm/boot/dts/vf610.dtsi | 18 ++++++++++++++++++ 2 files changed, 44 insertions(+), 0 deletions(-)
arch/arm/boot/dts/vf610-twr.dts +26 -0
@@ -34,6 +34,26 @@ }; }; + regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + + reg_vcc_3v3_mcu: regulator@0 { + compatible = "regulator-fixed"; + reg = <0>; + regulator-name = "vcc_3v3_mcu"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + }; +}; + +&adc0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_adc0_ad5>; + vref-supply = <®_vcc_3v3_mcu>; + status = "okay"; }; &dspi0 {
@@ -76,6 +96,12 @@ &iomuxc { vf610-twr { + pinctrl_adc0_ad5: adc0_ad5 { + fsl,pins = < + VF610_PAD_PTC30__ADC0_SE5 0xa1 + >; + }; + pinctrl_dspi0: dspi0grp { fsl,pins = < VF610_PAD_PTB19__DSPI0_CS0 0x1182
arch/arm/boot/dts/vf610.dtsi +18 -0
@@ -180,6 +180,15 @@ clock-names = "pit"; }; + adc0: adc@4003b000 { + compatible = "fsl,vf610-adc"; + reg = <0x4003b000 0x1000>; + interrupts = <0 53 0x04>; + clocks = <&clks VF610_CLK_ADC0>; + clock-names = "adc"; + status = "disabled"; + }; + wdog@4003e000 { compatible = "fsl,vf610-wdt", "fsl,imx21-wdt"; reg = <0x4003e000 0x1000>;
@@ -323,6 +332,15 @@ status = "disabled"; }; + adc1: adc@400bb000 { + compatible = "fsl,vf610-adc"; + reg = <0x400bb000 0x1000>; + interrupts = <0 54 0x04>; + clocks = <&clks VF610_CLK_ADC1>; + clock-names = "adc"; + status = "disabled"; + }; + fec0: ethernet@400d0000 { compatible = "fsl,mvf600-fec"; reg = <0x400d0000 0x1000>;
Signature · 1 line
1.7.2.rc3
Shawn Guo
AppliedQuoted 6 lines · Fugang Duan
vf610 has two ADC controllers, and vf610-twr board
ADC0_SE5pin connect to sliding rheostat for ADC test, other ADC pins connect to connectors for future use.Add support for
ADC0_SE5.
Quoted 7 lines
CC Shawn Guo <[email protected]>CC Jonathan Cameron <[email protected]>CC Mark Rutland <[email protected]>CC Otavio Salvador <[email protected]>CC Peter Meerwald <[email protected]>CC Lars-Peter Clausen <[email protected]>Signed-off-by Fugang Duan <[email protected]>
Applied, thanks.