* [PATCH 1/6] ARM: at91/at91-pinctrl documentation: fix typo and add some details
2013-01-22 17:50 [PATCH 0/6] at91: some fixes for 3.8-rc5 Nicolas Ferre
@ 2013-01-22 17:50 ` Nicolas Ferre
2013-01-22 17:50 ` [PATCH 2/6] ARM: at91/at91sam9x5 DTS: correct wrong PIO BANK values on u(s)arts Nicolas Ferre
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Nicolas Ferre @ 2013-01-22 17:50 UTC (permalink / raw)
To: linux-arm-kernel
From: Richard Genoud <richard.genoud@gmail.com>
The relation between PIN_BANK numbers and pio letters wasn't made very
clear.
Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
---
Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt
index 3a26812..bc50899 100644
--- a/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt
+++ b/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt
@@ -81,7 +81,8 @@ PA31 TXD4
Required properties for pin configuration node:
- atmel,pins: 4 integers array, represents a group of pins mux and config
setting. The format is atmel,pins = <PIN_BANK PIN_BANK_NUM PERIPH CONFIG>.
- The PERIPH 0 means gpio.
+ The PERIPH 0 means gpio, PERIPH 1 is periph A, PERIPH 2 is periph B...
+ PIN_BANK 0 is pioA, PIN_BANK 1 is pioB...
Bits used for CONFIG:
PULL_UP (1 << 0): indicate this pin need a pull up.
@@ -126,7 +127,7 @@ pinctrl@fffff400 {
pinctrl_dbgu: dbgu-0 {
atmel,pins =
<1 14 0x1 0x0 /* PB14 periph A */
- 1 15 0x1 0x1>; /* PB15 periph with pullup */
+ 1 15 0x1 0x1>; /* PB15 periph A with pullup */
};
};
};
--
1.8.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/6] ARM: at91/at91sam9x5 DTS: correct wrong PIO BANK values on u(s)arts
2013-01-22 17:50 [PATCH 0/6] at91: some fixes for 3.8-rc5 Nicolas Ferre
2013-01-22 17:50 ` [PATCH 1/6] ARM: at91/at91-pinctrl documentation: fix typo and add some details Nicolas Ferre
@ 2013-01-22 17:50 ` Nicolas Ferre
2013-01-22 17:50 ` [PATCH 3/6] ARM: at91/at91sam9x5 DTS: add SCK USART pins Nicolas Ferre
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Nicolas Ferre @ 2013-01-22 17:50 UTC (permalink / raw)
To: linux-arm-kernel
From: Richard Genoud <richard.genoud@gmail.com>
The PIN_BANK 3 is for PDxx pins, not PCxx pins.
And PIN_BANK 1 is for PBxx, not PIN_BANK 0.
Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
---
arch/arm/boot/dts/at91sam9x5.dtsi | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi
index 3a47cf9..e9c4290 100644
--- a/arch/arm/boot/dts/at91sam9x5.dtsi
+++ b/arch/arm/boot/dts/at91sam9x5.dtsi
@@ -154,12 +154,12 @@
pinctrl_usart1_rts: usart1_rts-0 {
atmel,pins =
- <3 27 0x3 0x0>; /* PC27 periph C */
+ <2 27 0x3 0x0>; /* PC27 periph C */
};
pinctrl_usart1_cts: usart1_cts-0 {
atmel,pins =
- <3 28 0x3 0x0>; /* PC28 periph C */
+ <2 28 0x3 0x0>; /* PC28 periph C */
};
};
@@ -172,46 +172,46 @@
pinctrl_uart2_rts: uart2_rts-0 {
atmel,pins =
- <0 0 0x2 0x0>; /* PB0 periph B */
+ <1 0 0x2 0x0>; /* PB0 periph B */
};
pinctrl_uart2_cts: uart2_cts-0 {
atmel,pins =
- <0 1 0x2 0x0>; /* PB1 periph B */
+ <1 1 0x2 0x0>; /* PB1 periph B */
};
};
usart3 {
pinctrl_uart3: usart3-0 {
atmel,pins =
- <3 23 0x2 0x1 /* PC22 periph B with pullup */
- 3 23 0x2 0x0>; /* PC23 periph B */
+ <2 23 0x2 0x1 /* PC22 periph B with pullup */
+ 2 23 0x2 0x0>; /* PC23 periph B */
};
pinctrl_usart3_rts: usart3_rts-0 {
atmel,pins =
- <3 24 0x2 0x0>; /* PC24 periph B */
+ <2 24 0x2 0x0>; /* PC24 periph B */
};
pinctrl_usart3_cts: usart3_cts-0 {
atmel,pins =
- <3 25 0x2 0x0>; /* PC25 periph B */
+ <2 25 0x2 0x0>; /* PC25 periph B */
};
};
uart0 {
pinctrl_uart0: uart0-0 {
atmel,pins =
- <3 8 0x3 0x0 /* PC8 periph C */
- 3 9 0x3 0x1>; /* PC9 periph C with pullup */
+ <2 8 0x3 0x0 /* PC8 periph C */
+ 2 9 0x3 0x1>; /* PC9 periph C with pullup */
};
};
uart1 {
pinctrl_uart1: uart1-0 {
atmel,pins =
- <3 16 0x3 0x0 /* PC16 periph C */
- 3 17 0x3 0x1>; /* PC17 periph C with pullup */
+ <2 16 0x3 0x0 /* PC16 periph C */
+ 2 17 0x3 0x1>; /* PC17 periph C with pullup */
};
};
--
1.8.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 3/6] ARM: at91/at91sam9x5 DTS: add SCK USART pins
2013-01-22 17:50 [PATCH 0/6] at91: some fixes for 3.8-rc5 Nicolas Ferre
2013-01-22 17:50 ` [PATCH 1/6] ARM: at91/at91-pinctrl documentation: fix typo and add some details Nicolas Ferre
2013-01-22 17:50 ` [PATCH 2/6] ARM: at91/at91sam9x5 DTS: correct wrong PIO BANK values on u(s)arts Nicolas Ferre
@ 2013-01-22 17:50 ` Nicolas Ferre
2013-01-22 17:50 ` [PATCH 4/6] ARM: at91: fix gpios on i2c-gpio for RM9200 DT Nicolas Ferre
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Nicolas Ferre @ 2013-01-22 17:50 UTC (permalink / raw)
To: linux-arm-kernel
From: Richard Genoud <richard.genoud@gmail.com>
The SCK pins where missing in usarts pinctrl.
Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
---
arch/arm/boot/dts/at91sam9x5.dtsi | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi
index e9c4290..cb711a5 100644
--- a/arch/arm/boot/dts/at91sam9x5.dtsi
+++ b/arch/arm/boot/dts/at91sam9x5.dtsi
@@ -143,6 +143,11 @@
atmel,pins =
<0 3 0x1 0x0>; /* PA3 periph A */
};
+
+ pinctrl_usart0_sck: usart0_sck-0 {
+ atmel,pins =
+ <0 4 0x1 0x0>; /* PA4 periph A */
+ };
};
usart1 {
@@ -161,6 +166,11 @@
atmel,pins =
<2 28 0x3 0x0>; /* PC28 periph C */
};
+
+ pinctrl_usart1_sck: usart1_sck-0 {
+ atmel,pins =
+ <2 28 0x3 0x0>; /* PC29 periph C */
+ };
};
usart2 {
@@ -179,6 +189,11 @@
atmel,pins =
<1 1 0x2 0x0>; /* PB1 periph B */
};
+
+ pinctrl_usart2_sck: usart2_sck-0 {
+ atmel,pins =
+ <1 2 0x2 0x0>; /* PB2 periph B */
+ };
};
usart3 {
@@ -197,6 +212,11 @@
atmel,pins =
<2 25 0x2 0x0>; /* PC25 periph B */
};
+
+ pinctrl_usart3_sck: usart3_sck-0 {
+ atmel,pins =
+ <2 26 0x2 0x0>; /* PC26 periph B */
+ };
};
uart0 {
--
1.8.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 4/6] ARM: at91: fix gpios on i2c-gpio for RM9200 DT
2013-01-22 17:50 [PATCH 0/6] at91: some fixes for 3.8-rc5 Nicolas Ferre
` (2 preceding siblings ...)
2013-01-22 17:50 ` [PATCH 3/6] ARM: at91/at91sam9x5 DTS: add SCK USART pins Nicolas Ferre
@ 2013-01-22 17:50 ` Nicolas Ferre
2013-01-22 17:50 ` [PATCH 5/6] ARM: at91: rm9200: remake the BGA as default version Nicolas Ferre
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Nicolas Ferre @ 2013-01-22 17:50 UTC (permalink / raw)
To: linux-arm-kernel
From: Joachim Eastwood <manabian@gmail.com>
Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
---
arch/arm/boot/dts/at91rm9200.dtsi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/at91rm9200.dtsi b/arch/arm/boot/dts/at91rm9200.dtsi
index e154f24..222047f 100644
--- a/arch/arm/boot/dts/at91rm9200.dtsi
+++ b/arch/arm/boot/dts/at91rm9200.dtsi
@@ -336,8 +336,8 @@
i2c at 0 {
compatible = "i2c-gpio";
- gpios = <&pioA 23 0 /* sda */
- &pioA 24 0 /* scl */
+ gpios = <&pioA 25 0 /* sda */
+ &pioA 26 0 /* scl */
>;
i2c-gpio,sda-open-drain;
i2c-gpio,scl-open-drain;
--
1.8.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 5/6] ARM: at91: rm9200: remake the BGA as default version
2013-01-22 17:50 [PATCH 0/6] at91: some fixes for 3.8-rc5 Nicolas Ferre
` (3 preceding siblings ...)
2013-01-22 17:50 ` [PATCH 4/6] ARM: at91: fix gpios on i2c-gpio for RM9200 DT Nicolas Ferre
@ 2013-01-22 17:50 ` Nicolas Ferre
2013-01-22 17:50 ` [PATCH 6/6] ARM: at91/dts: add macb mii pinctrl config for kizbox Nicolas Ferre
2013-01-22 22:22 ` [PATCH 0/6] at91: some fixes for 3.8-rc5 Jean-Christophe PLAGNIOL-VILLARD
6 siblings, 0 replies; 8+ messages in thread
From: Nicolas Ferre @ 2013-01-22 17:50 UTC (permalink / raw)
To: linux-arm-kernel
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Make BGA as the default version as we are supposed to just have
to specify when we use the PQFP version.
Issue was existing since commit:
3e90772 (ARM: at91: fix at91rm9200 soc subtype handling).
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: stable <stable@vger.kernel.org> [v3.3]
---
arch/arm/mach-at91/setup.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-at91/setup.c b/arch/arm/mach-at91/setup.c
index 9ee866c..4b67847 100644
--- a/arch/arm/mach-at91/setup.c
+++ b/arch/arm/mach-at91/setup.c
@@ -105,6 +105,8 @@ static void __init soc_detect(u32 dbgu_base)
switch (socid) {
case ARCH_ID_AT91RM9200:
at91_soc_initdata.type = AT91_SOC_RM9200;
+ if (at91_soc_initdata.subtype == AT91_SOC_SUBTYPE_NONE)
+ at91_soc_initdata.subtype = AT91_SOC_RM9200_BGA;
at91_boot_soc = at91rm9200_soc;
break;
--
1.8.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 6/6] ARM: at91/dts: add macb mii pinctrl config for kizbox
2013-01-22 17:50 [PATCH 0/6] at91: some fixes for 3.8-rc5 Nicolas Ferre
` (4 preceding siblings ...)
2013-01-22 17:50 ` [PATCH 5/6] ARM: at91: rm9200: remake the BGA as default version Nicolas Ferre
@ 2013-01-22 17:50 ` Nicolas Ferre
2013-01-22 22:22 ` [PATCH 0/6] at91: some fixes for 3.8-rc5 Jean-Christophe PLAGNIOL-VILLARD
6 siblings, 0 replies; 8+ messages in thread
From: Nicolas Ferre @ 2013-01-22 17:50 UTC (permalink / raw)
To: linux-arm-kernel
From: Boris BREZILLON <linux-arm@overkiz.com>
This patch overrides default macb pinctrl config defined in
at91sam9260.dtsi (pinctrl_macb_rmii) with kizbox board config
(pinctrl_macb_rmii + pinctrl_macb_rmii_mii_alt).
Signed-off-by: Boris BREZILLON <linux-arm@overkiz.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
---
arch/arm/boot/dts/kizbox.dts | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/boot/dts/kizbox.dts b/arch/arm/boot/dts/kizbox.dts
index e8814fe..b4dc3ed 100644
--- a/arch/arm/boot/dts/kizbox.dts
+++ b/arch/arm/boot/dts/kizbox.dts
@@ -48,6 +48,8 @@
macb0: ethernet at fffc4000 {
phy-mode = "mii";
+ pinctrl-0 = <&pinctrl_macb_rmii
+ &pinctrl_macb_rmii_mii_alt>;
status = "okay";
};
--
1.8.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 0/6] at91: some fixes for 3.8-rc5
2013-01-22 17:50 [PATCH 0/6] at91: some fixes for 3.8-rc5 Nicolas Ferre
` (5 preceding siblings ...)
2013-01-22 17:50 ` [PATCH 6/6] ARM: at91/dts: add macb mii pinctrl config for kizbox Nicolas Ferre
@ 2013-01-22 22:22 ` Jean-Christophe PLAGNIOL-VILLARD
6 siblings, 0 replies; 8+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-01-22 22:22 UTC (permalink / raw)
To: linux-arm-kernel
On 18:50 Tue 22 Jan , Nicolas Ferre wrote:
> Hi all,
>
> I try to collect fixes for AT91 that can be applied during this development
> cycle. Please tell me now if you have more to queue or if some of the proposed
> fixes are not targetted to v3.8-final in you opinion...
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Best Regards,
J.
^ permalink raw reply [flat|nested] 8+ messages in thread