]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: stm32: Add DAC support to stm32mp157c-ed1
authorFabrice Gasnier <fabrice.gasnier@st.com>
Wed, 9 Oct 2019 14:12:52 +0000 (16:12 +0200)
committerAlexandre Torgue <alexandre.torgue@st.com>
Fri, 25 Oct 2019 12:28:42 +0000 (14:28 +0200)
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>
arch/arm/boot/dts/stm32mp157c-ed1.dts

index 329853d9b1de308b0702e892e54c17e1d720588b..3d29b0c553e51cce0a175dbc0589962d7120e68f 100644 (file)
@@ -105,6 +105,19 @@ sd_switch: regulator-sd_switch {
        };
 };
 
+&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";
 };