From: Bo Shen <voice.shen@atmel.com>
To: <balbi@ti.com>, <nicolas.ferre@atmel.com>
Cc: <alexandre.belloni@free-electrons.com>,
<sylvain.rochet@finsecur.com>, <linux-usb@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>,
Bo Shen <voice.shen@atmel.com>
Subject: [PATCH v2 2/2] ARM: at91: dt: at91sam9n12ek: enable udp
Date: Tue, 10 Feb 2015 09:55:35 +0800 [thread overview]
Message-ID: <1423533335-25135-3-git-send-email-voice.shen@atmel.com> (raw)
In-Reply-To: <1423533335-25135-1-git-send-email-voice.shen@atmel.com>
Enable usb device port on at91sam9n12ek board.
Signed-off-by: Bo Shen <voice.shen@atmel.com>
---
Changes in v2:
- Add pinctrl for usb1 vbus sense.
arch/arm/boot/dts/at91sam9n12ek.dts | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm/boot/dts/at91sam9n12ek.dts b/arch/arm/boot/dts/at91sam9n12ek.dts
index 9575c0d..6123109 100644
--- a/arch/arm/boot/dts/at91sam9n12ek.dts
+++ b/arch/arm/boot/dts/at91sam9n12ek.dts
@@ -108,6 +108,13 @@
<AT91_PIOB 10 AT91_PERIPH_B AT91_PINCTRL_NONE>;
};
};
+
+ usb1 {
+ pinctrl_usb1_vbus_sense: usb1_vbus_sense {
+ atmel,pins =
+ <AT91_PIOB 16 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PB16 gpio usb vbus sense, no pull up and deglitch */
+ };
+ };
};
spi0: spi@f0000000 {
@@ -120,6 +127,13 @@
};
};
+ usb1: gadget@f803c000 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_usb1_vbus_sense>;
+ atmel,vbus-gpio = <&pioB 16 GPIO_ACTIVE_HIGH>;
+ status = "okay";
+ };
+
watchdog@fffffe40 {
status = "okay";
};
--
2.3.0.rc0
next prev parent reply other threads:[~2015-02-10 1:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-10 1:55 [PATCH v2 0/2] ARM: at91: dt: at91sam9n12ek: enable udp device Bo Shen
2015-02-10 1:55 ` [PATCH v2 1/2] ARM: at91: dt: at91sam9n12: add udp device node Bo Shen
2015-02-10 1:55 ` Bo Shen [this message]
2015-03-02 9:32 ` [PATCH v2 0/2] ARM: at91: dt: at91sam9n12ek: enable udp device Bo Shen
2015-03-04 13:07 ` Nicolas Ferre
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=1423533335-25135-3-git-send-email-voice.shen@atmel.com \
--to=voice.shen@atmel.com \
--cc=alexandre.belloni@free-electrons.com \
--cc=balbi@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=nicolas.ferre@atmel.com \
--cc=sylvain.rochet@finsecur.com \
/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
all inboxes | Powered by JetHome®