* [PATCH 0/3] ARM: dts: at91: add more devices to sama5d2 Xplained
@ 2016-03-01 14:02 Nicolas Ferre
2016-03-01 14:02 ` [PATCH 1/3] ARM: dts: at91: sama5d2 Xplained: set pin muxing for usb gadget and usb host Nicolas Ferre
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Nicolas Ferre @ 2016-03-01 14:02 UTC (permalink / raw)
To: linux-arm-kernel
This little series is for adding more nodes to the SAMA5D2 Xplained board and
complete the USB ones.
Cyrille Pitchen (1):
ARM: dts: at91: sama5d2 Xplained: set pin muxing for usb gadget and
usb host
Ludovic Desroches (1):
ARM: dts: at91: sama5d2 Xplained: add user push button
Wenyou Yang (1):
ARM: dts: at91: sama5d2 Xplained: add leds node
arch/arm/boot/dts/at91-sama5d2_xplained.dts | 69 +++++++++++++++++++++++++++++
1 file changed, 69 insertions(+)
--
2.1.3
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/3] ARM: dts: at91: sama5d2 Xplained: set pin muxing for usb gadget and usb host
2016-03-01 14:02 [PATCH 0/3] ARM: dts: at91: add more devices to sama5d2 Xplained Nicolas Ferre
@ 2016-03-01 14:02 ` Nicolas Ferre
2016-03-01 14:02 ` [PATCH 2/3] ARM: dts: at91: sama5d2 Xplained: add user push button Nicolas Ferre
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Nicolas Ferre @ 2016-03-01 14:02 UTC (permalink / raw)
To: linux-arm-kernel
From: Cyrille Pitchen <cyrille.pitchen@atmel.com>
For USB gadget on port A (device mode):
- pin PA31 is configured as an input GPIO which triggers an interrupt when
vbus is detected on USB port A.
- pin PB9 is configured as an output GPIO and set to low level so the
board doesn't supply vbus to USB port A.
For USB host:
- pin PB10 is configured as an output GPIO and is active at high level.
The ohci driver will activate this pin so the board supplies vbus to USB
port B.
- pin PB9 should be configured as an output GPIO and active at high level
to use to USB port A in host mode (conflicts with USB gadget).
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
---
arch/arm/boot/dts/at91-sama5d2_xplained.dts | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/arm/boot/dts/at91-sama5d2_xplained.dts
index 75341eec2dfd..382ccfb4a2b6 100644
--- a/arch/arm/boot/dts/at91-sama5d2_xplained.dts
+++ b/arch/arm/boot/dts/at91-sama5d2_xplained.dts
@@ -46,6 +46,7 @@
#include "sama5d2.dtsi"
#include "sama5d2-pinfunc.h"
#include <dt-bindings/mfd/atmel-flexcom.h>
+#include <dt-bindings/gpio/gpio.h>
/ {
model = "Atmel SAMA5D2 Xplained";
@@ -71,11 +72,20 @@
ahb {
usb0: gadget at 00300000 {
+ atmel,vbus-gpio = <&pioA 31 GPIO_ACTIVE_HIGH>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_usba_vbus>;
status = "okay";
};
usb1: ohci at 00400000 {
num-ports = <3>;
+ atmel,vbus-gpio = <0 /* &pioA 41 GPIO_ACTIVE_HIGH */
+ &pioA 42 GPIO_ACTIVE_HIGH
+ 0
+ >;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_usb_default>;
status = "okay";
};
@@ -376,6 +386,17 @@
<PIN_PB12__UTXD3>;
bias-disable;
};
+
+ pinctrl_usb_default: usb_default {
+ pinmux = <PIN_PB10__GPIO>;
+ bias-disable;
+ };
+
+ pinctrl_usba_vbus: usba_vbus {
+ pinmux = <PIN_PA31__GPIO>;
+ bias-disable;
+ };
+
};
};
};
--
2.1.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/3] ARM: dts: at91: sama5d2 Xplained: add user push button
2016-03-01 14:02 [PATCH 0/3] ARM: dts: at91: add more devices to sama5d2 Xplained Nicolas Ferre
2016-03-01 14:02 ` [PATCH 1/3] ARM: dts: at91: sama5d2 Xplained: set pin muxing for usb gadget and usb host Nicolas Ferre
@ 2016-03-01 14:02 ` Nicolas Ferre
2016-03-01 14:02 ` [PATCH 3/3] ARM: dts: at91: sama5d2 Xplained: add leds node Nicolas Ferre
2016-03-02 14:28 ` [PATCH 0/3] ARM: dts: at91: add more devices to sama5d2 Xplained Alexandre Belloni
3 siblings, 0 replies; 5+ messages in thread
From: Nicolas Ferre @ 2016-03-01 14:02 UTC (permalink / raw)
To: linux-arm-kernel
From: Ludovic Desroches <ludovic.desroches@atmel.com>
Add the push button named "PB USER" with code 0x104. Associated pinctrl node is
also added.
Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
---
arch/arm/boot/dts/at91-sama5d2_xplained.dts | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/arm/boot/dts/at91-sama5d2_xplained.dts
index 382ccfb4a2b6..d20d4033d64c 100644
--- a/arch/arm/boot/dts/at91-sama5d2_xplained.dts
+++ b/arch/arm/boot/dts/at91-sama5d2_xplained.dts
@@ -302,6 +302,11 @@
bias-disable;
};
+ pinctrl_key_gpio_default: key_gpio_default {
+ pinmux = <PIN_PB9__GPIO>;
+ bias-pull-up;
+ };
+
pinctrl_macb0_default: macb0_default {
pinmux = <PIN_PB14__GTXCK>,
<PIN_PB15__GTXEN>,
@@ -400,4 +405,17 @@
};
};
};
+
+ gpio_keys {
+ compatible = "gpio-keys";
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_key_gpio_default>;
+
+ bp1 {
+ label = "PB_USER";
+ gpios = <&pioA 41 GPIO_ACTIVE_LOW>;
+ linux,code = <0x104>;
+ };
+ };
};
--
2.1.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/3] ARM: dts: at91: sama5d2 Xplained: add leds node
2016-03-01 14:02 [PATCH 0/3] ARM: dts: at91: add more devices to sama5d2 Xplained Nicolas Ferre
2016-03-01 14:02 ` [PATCH 1/3] ARM: dts: at91: sama5d2 Xplained: set pin muxing for usb gadget and usb host Nicolas Ferre
2016-03-01 14:02 ` [PATCH 2/3] ARM: dts: at91: sama5d2 Xplained: add user push button Nicolas Ferre
@ 2016-03-01 14:02 ` Nicolas Ferre
2016-03-02 14:28 ` [PATCH 0/3] ARM: dts: at91: add more devices to sama5d2 Xplained Alexandre Belloni
3 siblings, 0 replies; 5+ messages in thread
From: Nicolas Ferre @ 2016-03-01 14:02 UTC (permalink / raw)
To: linux-arm-kernel
From: Wenyou Yang <wenyou.yang@atmel.com>
Add the three leds on the sama5d2 Xplained board with their pinctrl node.
The blue led is positioned with the "heartbeat" trigger.
Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
[nicolas.ferre at atmel.com: add commit message and adapt to newer kernel]
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
---
arch/arm/boot/dts/at91-sama5d2_xplained.dts | 30 +++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/arm/boot/dts/at91-sama5d2_xplained.dts
index d20d4033d64c..2636b9e2d124 100644
--- a/arch/arm/boot/dts/at91-sama5d2_xplained.dts
+++ b/arch/arm/boot/dts/at91-sama5d2_xplained.dts
@@ -307,6 +307,13 @@
bias-pull-up;
};
+ pinctrl_led_gpio_default: led_gpio_default {
+ pinmux = <PIN_PB0__GPIO>,
+ <PIN_PB5__GPIO>,
+ <PIN_PB6__GPIO>;
+ bias-pull-up;
+ };
+
pinctrl_macb0_default: macb0_default {
pinmux = <PIN_PB14__GTXCK>,
<PIN_PB15__GTXEN>,
@@ -418,4 +425,27 @@
linux,code = <0x104>;
};
};
+
+ leds {
+ compatible = "gpio-leds";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_led_gpio_default>;
+ status = "okay";
+
+ red {
+ label = "red";
+ gpios = <&pioA 38 GPIO_ACTIVE_LOW>;
+ };
+
+ green {
+ label = "green";
+ gpios = <&pioA 37 GPIO_ACTIVE_LOW>;
+ };
+
+ blue {
+ label = "blue";
+ gpios = <&pioA 32 GPIO_ACTIVE_LOW>;
+ linux,default-trigger = "heartbeat";
+ };
+ };
};
--
2.1.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 0/3] ARM: dts: at91: add more devices to sama5d2 Xplained
2016-03-01 14:02 [PATCH 0/3] ARM: dts: at91: add more devices to sama5d2 Xplained Nicolas Ferre
` (2 preceding siblings ...)
2016-03-01 14:02 ` [PATCH 3/3] ARM: dts: at91: sama5d2 Xplained: add leds node Nicolas Ferre
@ 2016-03-02 14:28 ` Alexandre Belloni
3 siblings, 0 replies; 5+ messages in thread
From: Alexandre Belloni @ 2016-03-02 14:28 UTC (permalink / raw)
To: linux-arm-kernel
On 01/03/2016 at 15:02:34 +0100, Nicolas Ferre wrote :
> This little series is for adding more nodes to the SAMA5D2 Xplained board and
> complete the USB ones.
>
> Cyrille Pitchen (1):
> ARM: dts: at91: sama5d2 Xplained: set pin muxing for usb gadget and
> usb host
>
> Ludovic Desroches (1):
> ARM: dts: at91: sama5d2 Xplained: add user push button
>
> Wenyou Yang (1):
> ARM: dts: at91: sama5d2 Xplained: add leds node
>
> arch/arm/boot/dts/at91-sama5d2_xplained.dts | 69 +++++++++++++++++++++++++++++
> 1 file changed, 69 insertions(+)
>
To the whole series:
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
> --
> 2.1.3
>
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-03-02 14:28 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-01 14:02 [PATCH 0/3] ARM: dts: at91: add more devices to sama5d2 Xplained Nicolas Ferre
2016-03-01 14:02 ` [PATCH 1/3] ARM: dts: at91: sama5d2 Xplained: set pin muxing for usb gadget and usb host Nicolas Ferre
2016-03-01 14:02 ` [PATCH 2/3] ARM: dts: at91: sama5d2 Xplained: add user push button Nicolas Ferre
2016-03-01 14:02 ` [PATCH 3/3] ARM: dts: at91: sama5d2 Xplained: add leds node Nicolas Ferre
2016-03-02 14:28 ` [PATCH 0/3] ARM: dts: at91: add more devices to sama5d2 Xplained Alexandre Belloni
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).