linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add support for DAC on stm32mp157c-ed1
@ 2019-10-09 14:12 Fabrice Gasnier
  2019-10-09 14:12 ` [PATCH 1/2] ARM: dts: stm32: Add DAC pins used " Fabrice Gasnier
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Fabrice Gasnier @ 2019-10-09 14:12 UTC (permalink / raw)
  To: alexandre.torgue
  Cc: mark.rutland, devicetree, linux-kernel, robh+dt, mcoquelin.stm32,
	fabrice.gasnier, linux-stm32, linux-arm-kernel

This series adds support for digital-to-analog converter on
stm32mp157c-ed1 board:
- define pins that can be used for DAC
- configure DAC channels to use these

Fabrice Gasnier (2):
  ARM: dts: stm32: Add DAC pins used on stm32mp157c-ed1
  ARM: dts: stm32: Add DAC support to stm32mp157c-ed1

 arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 12 ++++++++++++
 arch/arm/boot/dts/stm32mp157c-ed1.dts     | 13 +++++++++++++
 2 files changed, 25 insertions(+)

-- 
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] ARM: dts: stm32: Add DAC pins used on stm32mp157c-ed1
  2019-10-09 14:12 [PATCH 0/2] Add support for DAC on stm32mp157c-ed1 Fabrice Gasnier
@ 2019-10-09 14:12 ` Fabrice Gasnier
  2019-10-09 14:12 ` [PATCH 2/2] ARM: dts: stm32: Add DAC support to stm32mp157c-ed1 Fabrice Gasnier
  2019-10-25  9:50 ` [PATCH 0/2] Add support for DAC on stm32mp157c-ed1 Alexandre Torgue
  2 siblings, 0 replies; 4+ messages in thread
From: Fabrice Gasnier @ 2019-10-09 14:12 UTC (permalink / raw)
  To: alexandre.torgue
  Cc: mark.rutland, devicetree, linux-kernel, robh+dt, mcoquelin.stm32,
	fabrice.gasnier, linux-stm32, linux-arm-kernel

Define pins that can be used by digital-to-analog converter on
stm32mp157c eval daughter board:
- PA4 and PA5 pins are available respectively on JP11 and JP10

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
---
 arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi
index eeb60d0..1e45b75 100644
--- a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi
+++ b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi
@@ -183,6 +183,18 @@
 				};
 			};
 
+			dac_ch1_pins_a: dac-ch1 {
+				pins {
+					pinmux = <STM32_PINMUX('A', 4, ANALOG)>;
+				};
+			};
+
+			dac_ch2_pins_a: dac-ch2 {
+				pins {
+					pinmux = <STM32_PINMUX('A', 5, ANALOG)>;
+				};
+			};
+
 			dcmi_pins_a: dcmi-0 {
 				pins {
 					pinmux = <STM32_PINMUX('H', 8,  AF13)>,/* DCMI_HSYNC */
-- 
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] ARM: dts: stm32: Add DAC support to stm32mp157c-ed1
  2019-10-09 14:12 [PATCH 0/2] Add support for DAC on stm32mp157c-ed1 Fabrice Gasnier
  2019-10-09 14:12 ` [PATCH 1/2] ARM: dts: stm32: Add DAC pins used " Fabrice Gasnier
@ 2019-10-09 14:12 ` Fabrice Gasnier
  2019-10-25  9:50 ` [PATCH 0/2] Add support for DAC on stm32mp157c-ed1 Alexandre Torgue
  2 siblings, 0 replies; 4+ messages in thread
From: Fabrice Gasnier @ 2019-10-09 14:12 UTC (permalink / raw)
  To: alexandre.torgue
  Cc: mark.rutland, devicetree, linux-kernel, robh+dt, mcoquelin.stm32,
	fabrice.gasnier, linux-stm32, linux-arm-kernel

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>
---
 arch/arm/boot/dts/stm32mp157c-ed1.dts | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm/boot/dts/stm32mp157c-ed1.dts b/arch/arm/boot/dts/stm32mp157c-ed1.dts
index 1d426ea..2b40ad9 100644
--- a/arch/arm/boot/dts/stm32mp157c-ed1.dts
+++ b/arch/arm/boot/dts/stm32mp157c-ed1.dts
@@ -104,6 +104,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";
 };
-- 
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] Add support for DAC on stm32mp157c-ed1
  2019-10-09 14:12 [PATCH 0/2] Add support for DAC on stm32mp157c-ed1 Fabrice Gasnier
  2019-10-09 14:12 ` [PATCH 1/2] ARM: dts: stm32: Add DAC pins used " Fabrice Gasnier
  2019-10-09 14:12 ` [PATCH 2/2] ARM: dts: stm32: Add DAC support to stm32mp157c-ed1 Fabrice Gasnier
@ 2019-10-25  9:50 ` Alexandre Torgue
  2 siblings, 0 replies; 4+ messages in thread
From: Alexandre Torgue @ 2019-10-25  9:50 UTC (permalink / raw)
  To: Fabrice Gasnier
  Cc: mark.rutland, devicetree, linux-kernel, robh+dt, mcoquelin.stm32,
	linux-stm32, linux-arm-kernel

Hi fabrice

On 10/9/19 4:12 PM, Fabrice Gasnier wrote:
> This series adds support for digital-to-analog converter on
> stm32mp157c-ed1 board:
> - define pins that can be used for DAC
> - configure DAC channels to use these
> 
> Fabrice Gasnier (2):
>    ARM: dts: stm32: Add DAC pins used on stm32mp157c-ed1
>    ARM: dts: stm32: Add DAC support to stm32mp157c-ed1
> 
>   arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 12 ++++++++++++
>   arch/arm/boot/dts/stm32mp157c-ed1.dts     | 13 +++++++++++++
>   2 files changed, 25 insertions(+)
> 

Series applied on stm32-next.

Regards
Alex

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-10-25  9:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-09 14:12 [PATCH 0/2] Add support for DAC on stm32mp157c-ed1 Fabrice Gasnier
2019-10-09 14:12 ` [PATCH 1/2] ARM: dts: stm32: Add DAC pins used " Fabrice Gasnier
2019-10-09 14:12 ` [PATCH 2/2] ARM: dts: stm32: Add DAC support to stm32mp157c-ed1 Fabrice Gasnier
2019-10-25  9:50 ` [PATCH 0/2] Add support for DAC on stm32mp157c-ed1 Alexandre Torgue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).