diff options
author | Fabrice Gasnier <fabrice.gasnier@st.com> | 2019-10-09 17:12:52 +0300 |
---|---|---|
committer | Alexandre Torgue <alexandre.torgue@st.com> | 2019-10-25 15:28:42 +0300 |
commit | 4951d99551661eef9a74e35e39c0424e3d2494a5 (patch) | |
tree | 34076c8fc998d6acd11728a6a7ce89724d6fe9b4 /arch/arm/boot/dts/stm32mp157c-ed1.dts | |
parent | 4a27d15e861ae07716de9546a8e070c8a55a3168 (diff) | |
download | linux-4951d99551661eef9a74e35e39c0424e3d2494a5.tar.xz |
ARM: dts: stm32: Add DAC support to stm32mp157c-ed1
stm32mp157c-ed1 board has digital-to-analog converter signals routed
to JP11 and JP10 jumpers (e.g. PA4/PA5).
It's easier then to configure them both. But keep them disabled by default,
so the pins are kept in their initial state to lower power consumption.
This way they can also be used as GPIO.
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
Diffstat (limited to 'arch/arm/boot/dts/stm32mp157c-ed1.dts')
-rw-r--r-- | arch/arm/boot/dts/stm32mp157c-ed1.dts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/stm32mp157c-ed1.dts b/arch/arm/boot/dts/stm32mp157c-ed1.dts index 329853d9b1de..3d29b0c553e5 100644 --- a/arch/arm/boot/dts/stm32mp157c-ed1.dts +++ b/arch/arm/boot/dts/stm32mp157c-ed1.dts @@ -105,6 +105,19 @@ }; }; +&dac { + pinctrl-names = "default"; + pinctrl-0 = <&dac_ch1_pins_a &dac_ch2_pins_a>; + vref-supply = <&vdda>; + status = "disabled"; + dac1: dac@1 { + status = "okay"; + }; + dac2: dac@2 { + status = "okay"; + }; +}; + &dts { status = "okay"; }; |