Enable usb device port on at91sam9n12ek board.

Signed-off-by: Bo Shen <voice.s...@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

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to