devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Claudiu Beznea <claudiu.beznea@microchip.com>
To: nicolas.ferre@microchip.com,
	alexandre.belloni@free-electrons.com, robh+dt@kernel.org,
	mark.rutland@arm.com, linux@armlinux.org.uk
Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Claudiu Beznea <claudiu.beznea@microchip.com>
Subject: [PATCH v2 10/14] ARM: dts: at91: sama5d2_xplained: add pinmuxing for pwm0
Date: Tue, 10 Oct 2017 13:09:45 +0300	[thread overview]
Message-ID: <1507630189-15504-11-git-send-email-claudiu.beznea@microchip.com> (raw)
In-Reply-To: <1507630189-15504-1-git-send-email-claudiu.beznea@microchip.com>

Add pin muxing for pwm0 and set it as disabled since it is in conflict
with pins for leds.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/boot/dts/at91-sama5d2_xplained.dts | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/arm/boot/dts/at91-sama5d2_xplained.dts
index 0b78476cec4a..851a095fd51d 100644
--- a/arch/arm/boot/dts/at91-sama5d2_xplained.dts
+++ b/arch/arm/boot/dts/at91-sama5d2_xplained.dts
@@ -224,7 +224,9 @@
 			};
 
 			pwm0: pwm@f802c000 {
-				status = "okay";
+				pinctrl-names = "default";
+				pinctrl-0 = <&pinctrl_pwm0_pwm2_default>;
+				status = "disabled"; /* conflict with leds */
 			};
 
 			flx0: flexcom@f8034000 {
@@ -494,6 +496,11 @@
 					bias-disable;
 				};
 
+				pinctrl_pwm0_pwm2_default: pwm0_pwm2_default {
+					pinmux = <PIN_PB5__PWMH2>,
+						 <PIN_PB6__PWML2>;
+					bias-pull-up;
+				};
 			};
 
 			classd: classd@fc048000 {
@@ -530,7 +537,7 @@
 		compatible = "gpio-leds";
 		pinctrl-names = "default";
 		pinctrl-0 = <&pinctrl_led_gpio_default>;
-		status = "okay";
+		status = "okay"; /* conflict with pwm0 */
 
 		red {
 			label = "red";
-- 
2.7.4

  parent reply	other threads:[~2017-10-10 10:09 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-10 10:09 [PATCH v2 00/14] at91 fixes and enhancements Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 01/14] ARM: dts: at91: sama5d27_som1_ek: add disabled status Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 02/14] ARM: dts: at91: sama5d27_som1_ek: enable i2c2 Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 03/14] ARM: dts: at91: sama5d27_som1_ek: update serial aliases Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 04/14] ARM: dts: at91: sama5d27_som1_ek: set USER button as a wakeup source Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 05/14] ARM: dts: at91: sama5d27_som1_ek: add aliases for i2c Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 06/14] ARM: dts: at91: sama5d27_som1_ek: add pinmuxing for pwm0 Claudiu Beznea
     [not found] ` <1507630189-15504-1-git-send-email-claudiu.beznea-UWL1GkI3JZL3oGB3hsPCZA@public.gmane.org>
2017-10-10 10:09   ` [PATCH v2 07/14] ARM: dts: at91: sama5d27_som1_ek: remove not connected CAN0 Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 08/14] ARM: dts: at91: sama5d27_som1_ek: remove pull-up on SD/MMC lines Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 09/14] ARM: dts: at91: sama5d2_xplained: set PB_USER as wakeup source Claudiu Beznea
2017-10-10 10:09 ` Claudiu Beznea [this message]
2017-10-10 10:09 ` [PATCH v2 11/14] ARM: dts: at91: sama5d2_xplained: remove pull-up on SD/MMC lines Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 12/14] ARM: dts: at91: at91sam9x25ek: add CAN1 interface Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 13/14] ARM: dts: at91: at91sam9x25ek: add pwm0 Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 14/14] ARM: dts: at91: at91sam9x5ek: use DMA for USART0 Claudiu Beznea
2017-10-10 13:27 ` [PATCH v2 00/14] at91 fixes and enhancements Alexandre Belloni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1507630189-15504-11-git-send-email-claudiu.beznea@microchip.com \
    --to=claudiu.beznea@microchip.com \
    --cc=alexandre.belloni@free-electrons.com \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=mark.rutland@arm.com \
    --cc=nicolas.ferre@microchip.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).