ARM: dts: stm32: Add DAC support to stm32mp157c
authorFabrice Gasnier <fabrice.gasnier@st.com>
Wed, 18 Apr 2018 15:46:00 +0000 (17:46 +0200)
committerAlexandre Torgue <alexandre.torgue@st.com>
Wed, 2 May 2018 15:18:59 +0000 (17:18 +0200)
Add support for DAC (Digital to Analog Converter) to STM32MP157C.
STM32MP157C DAC has two output channels.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
arch/arm/boot/dts/stm32mp157c.dtsi

index ee3e440..9c1a6c4 100644 (file)
                        status = "disabled";
                };
 
+               dac: dac@40017000 {
+                       compatible = "st,stm32h7-dac-core";
+                       reg = <0x40017000 0x400>;
+                       clocks = <&rcc DAC12>;
+                       clock-names = "pclk";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "disabled";
+
+                       dac1: dac@1 {
+                               compatible = "st,stm32-dac";
+                               #io-channels-cells = <1>;
+                               reg = <1>;
+                               status = "disabled";
+                       };
+
+                       dac2: dac@2 {
+                               compatible = "st,stm32-dac";
+                               #io-channels-cells = <1>;
+                               reg = <2>;
+                               status = "disabled";
+                       };
+               };
+
                uart7: serial@40018000 {
                        compatible = "st,stm32h7-uart";
                        reg = <0x40018000 0x400>;