2015-02-10 01:55:52

by Bo Shen

[permalink] [raw]
Subject: [PATCH v2 0/2] ARM: at91: dt: at91sam9n12ek: enable udp device

This patch series enable usb device support on at91sam9n12ek board.

Changes in v2:
- Base on next-20150209 (so, remove the modification of udc driver).
- Add pinctrl for usb1 vbus sense.

Bo Shen (2):
ARM: at91: dt: at91sam9n12: add udp device node
ARM: at91: dt: at91sam9n12ek: enable udp

arch/arm/boot/dts/at91sam9n12.dtsi | 9 +++++++++
arch/arm/boot/dts/at91sam9n12ek.dts | 14 ++++++++++++++
2 files changed, 23 insertions(+)

--
2.3.0.rc0


2015-02-10 01:55:55

by Bo Shen

[permalink] [raw]
Subject: [PATCH v2 1/2] ARM: at91: dt: at91sam9n12: add udp device node

Add usb device node for at91sam9n12.

Signed-off-by: Bo Shen <[email protected]>
---

Changes in v2: None

arch/arm/boot/dts/at91sam9n12.dtsi | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/arch/arm/boot/dts/at91sam9n12.dtsi b/arch/arm/boot/dts/at91sam9n12.dtsi
index c2666a7..e1b6f0b 100644
--- a/arch/arm/boot/dts/at91sam9n12.dtsi
+++ b/arch/arm/boot/dts/at91sam9n12.dtsi
@@ -913,6 +913,15 @@
clocks = <&pwm_clk>;
status = "disabled";
};
+
+ usb1: gadget@f803c000 {
+ compatible = "atmel,at91sam9260-udc";
+ reg = <0xf803c000 0x4000>;
+ interrupts = <23 IRQ_TYPE_LEVEL_HIGH 2>;
+ clocks = <&udphs_clk>, <&udpck>;
+ clock-names = "pclk", "hclk";
+ status = "disabled";
+ };
};

nand0: nand@40000000 {
--
2.3.0.rc0

2015-02-10 01:56:14

by Bo Shen

[permalink] [raw]
Subject: [PATCH v2 2/2] ARM: at91: dt: at91sam9n12ek: enable udp

Enable usb device port on at91sam9n12ek board.

Signed-off-by: Bo Shen <[email protected]>
---

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