* [PATCH v2 01/14] ARM: dts: at91: sama5d27_som1_ek: add disabled status
2017-10-10 10:09 [PATCH v2 00/14] at91 fixes and enhancements Claudiu Beznea
@ 2017-10-10 10:09 ` Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 02/14] ARM: dts: at91: sama5d27_som1_ek: enable i2c2 Claudiu Beznea
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Claudiu Beznea @ 2017-10-10 10:09 UTC (permalink / raw)
To: nicolas.ferre, alexandre.belloni, robh+dt, mark.rutland, linux
Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea
Add disabled statuses for all devices and for those those which pins
are in conflict with other devices add a comment in the DT file to specify
this.
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
index 60cb084a8d92..43bca17b9e4e 100644
--- a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
+++ b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
@@ -168,6 +168,7 @@
can0: can@f8054000 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_can0_default>;
+ status = "disabled"; /* Conflict with isc. */
};
uart3: serial@fc008000 {
@@ -175,7 +176,7 @@
atmel,use-dma-tx;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart3_default>;
- status = "disabled";
+ status = "disabled"; /* Conflict with isc. */
};
uart4: serial@fc00c000 {
@@ -199,7 +200,7 @@
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_flx3_default>;
atmel,fifo-size = <32>;
- status = "disabled";
+ status = "disabled"; /* Conflict with isc. */
};
spi2: spi@400 {
@@ -211,7 +212,7 @@
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_flx3_default>;
atmel,fifo-size = <16>;
- status = "disabled";
+ status = "disabled"; /* Conflict with isc. */
};
};
@@ -228,7 +229,7 @@
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_flx4_default>;
atmel,fifo-size = <32>;
- status = "disabled";
+ status = "disabled"; /* Conflict with spi3 and i2c3. */
};
spi3: spi@400 {
@@ -240,7 +241,7 @@
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_mikrobus_spi &pinctrl_mikrobus1_spi_cs &pinctrl_mikrobus2_spi_cs>;
atmel,fifo-size = <16>;
- status = "okay";
+ status = "okay"; /* Conflict with uart6 and i2c3. */
};
i2c3: i2c@600 {
@@ -255,7 +256,7 @@
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_flx4_default>;
atmel,fifo-size = <16>;
- status = "disabled";
+ status = "disabled"; /* Conflict with uart6 and spi3. */
};
};
--
2.7.4
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH v2 02/14] ARM: dts: at91: sama5d27_som1_ek: enable i2c2
2017-10-10 10:09 [PATCH v2 00/14] at91 fixes and enhancements Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 01/14] ARM: dts: at91: sama5d27_som1_ek: add disabled status Claudiu Beznea
@ 2017-10-10 10:09 ` Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 03/14] ARM: dts: at91: sama5d27_som1_ek: update serial aliases Claudiu Beznea
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Claudiu Beznea @ 2017-10-10 10:09 UTC (permalink / raw)
To: nicolas.ferre, alexandre.belloni, robh+dt, mark.rutland, linux
Cc: devicetree, linux-kernel, linux-arm-kernel, Claudiu Beznea
Enable i2c.
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
index 43bca17b9e4e..03a4c77fd6ab 100644
--- a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
+++ b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
@@ -133,7 +133,7 @@
flx1: flexcom@f8038000 {
atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
- status = "disabled";
+ status = "okay";
i2c2: i2c@600 {
compatible = "atmel,sama5d2-i2c";
@@ -147,7 +147,7 @@
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_mikrobus_i2c>;
atmel,fifo-size = <16>;
- status = "disabled";
+ status = "okay";
};
};
--
2.7.4
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH v2 03/14] ARM: dts: at91: sama5d27_som1_ek: update serial aliases
2017-10-10 10:09 [PATCH v2 00/14] at91 fixes and enhancements Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 01/14] ARM: dts: at91: sama5d27_som1_ek: add disabled status Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 02/14] ARM: dts: at91: sama5d27_som1_ek: enable i2c2 Claudiu Beznea
@ 2017-10-10 10:09 ` Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 04/14] ARM: dts: at91: sama5d27_som1_ek: set USER button as a wakeup source Claudiu Beznea
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Claudiu Beznea @ 2017-10-10 10:09 UTC (permalink / raw)
To: nicolas.ferre, alexandre.belloni, robh+dt, mark.rutland, linux
Cc: linux-arm-kernel, devicetree, linux-kernel, Ludovic Desroches,
Claudiu Beznea
From: Ludovic Desroches <ludovic.desroches@microchip.com>
Overwrite sama5d2.dtsi aliases node to match the at91-sama5d27_som1_ek
board configuration. ttyS0 stands for DBGU, ttyS1 for the mikro BUS 1
serial lines and ttyS2 for the mikro BUS 2 serial lines.
Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>
[claudiu.beznea@microchip.com: change subject to match the desired prefix]
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
index 03a4c77fd6ab..b31778121c41 100644
--- a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
+++ b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
@@ -53,6 +53,12 @@
model = "Atmel SAMA5D27 SOM1 EK";
compatible = "atmel,sama5d27-som1-ek", "atmel,sama5d27-som1", "atmel,sama5d27", "atmel,sama5d2", "atmel,sama5";
+ aliases {
+ serial0 = &uart1; /* DBGU */
+ serial1 = &uart4; /* mikro BUS 1 */
+ serial2 = &uart2; /* mikro BUS 2 */
+ };
+
chosen {
stdout-path = "serial0:115200n8";
};
--
2.7.4
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH v2 04/14] ARM: dts: at91: sama5d27_som1_ek: set USER button as a wakeup source
2017-10-10 10:09 [PATCH v2 00/14] at91 fixes and enhancements Claudiu Beznea
` (2 preceding siblings ...)
2017-10-10 10:09 ` [PATCH v2 03/14] ARM: dts: at91: sama5d27_som1_ek: update serial aliases Claudiu Beznea
@ 2017-10-10 10:09 ` Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 05/14] ARM: dts: at91: sama5d27_som1_ek: add aliases for i2c Claudiu Beznea
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Claudiu Beznea @ 2017-10-10 10:09 UTC (permalink / raw)
To: nicolas.ferre, alexandre.belloni, robh+dt, mark.rutland, linux
Cc: devicetree, Ludovic Desroches, linux-kernel, linux-arm-kernel,
Claudiu Beznea
From: Ludovic Desroches <ludovic.desroches@microchip.com>
Set the USER button as a wakeup source to allow wakeup from ULP0.
Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>
[claudiu.beznea@microchip.com: change subject to match the desired prefix]
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
index b31778121c41..ac79730213f1 100644
--- a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
+++ b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
@@ -519,6 +519,7 @@
label = "USER";
gpios = <&pioA PIN_PA29 GPIO_ACTIVE_LOW>;
linux,code = <0x104>;
+ wakeup-source;
};
};
--
2.7.4
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH v2 05/14] ARM: dts: at91: sama5d27_som1_ek: add aliases for i2c
2017-10-10 10:09 [PATCH v2 00/14] at91 fixes and enhancements Claudiu Beznea
` (3 preceding siblings ...)
2017-10-10 10:09 ` [PATCH v2 04/14] ARM: dts: at91: sama5d27_som1_ek: set USER button as a wakeup source Claudiu Beznea
@ 2017-10-10 10:09 ` Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 06/14] ARM: dts: at91: sama5d27_som1_ek: add pinmuxing for pwm0 Claudiu Beznea
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Claudiu Beznea @ 2017-10-10 10:09 UTC (permalink / raw)
To: nicolas.ferre, alexandre.belloni, robh+dt, mark.rutland, linux
Cc: linux-arm-kernel, devicetree, linux-kernel, Ludovic Desroches,
Claudiu Beznea
From: Ludovic Desroches <ludovic.desroches@microchip.com>
Add aliases for i2c devices to not rely on probe order for i2c device
numbering.
Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>
[claudiu.beznea@microchip.com: remove i2c0, change subject]
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
index ac79730213f1..6c4c976a99d1 100644
--- a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
+++ b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
@@ -57,6 +57,8 @@
serial0 = &uart1; /* DBGU */
serial1 = &uart4; /* mikro BUS 1 */
serial2 = &uart2; /* mikro BUS 2 */
+ i2c1 = &i2c1;
+ i2c2 = &i2c2;
};
chosen {
--
2.7.4
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH v2 06/14] ARM: dts: at91: sama5d27_som1_ek: add pinmuxing for pwm0
2017-10-10 10:09 [PATCH v2 00/14] at91 fixes and enhancements Claudiu Beznea
` (4 preceding siblings ...)
2017-10-10 10:09 ` [PATCH v2 05/14] ARM: dts: at91: sama5d27_som1_ek: add aliases for i2c Claudiu Beznea
@ 2017-10-10 10:09 ` Claudiu Beznea
[not found] ` <1507630189-15504-1-git-send-email-claudiu.beznea-UWL1GkI3JZL3oGB3hsPCZA@public.gmane.org>
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Claudiu Beznea @ 2017-10-10 10:09 UTC (permalink / raw)
To: nicolas.ferre, alexandre.belloni, robh+dt, mark.rutland, linux
Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea
Add pin muxing for pwm0 and set it as disabled since it is in conflict
with the pins for leds.
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
index 6c4c976a99d1..339f4e71cf40 100644
--- a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
+++ b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
@@ -136,7 +136,9 @@
};
pwm0: pwm@f802c000 {
- status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_mikrobus1_pwm &pinctrl_mikrobus2_pwm>;
+ status = "disabled"; /* Conflict with leds. */
};
flx1: flexcom@f8038000 {
@@ -529,7 +531,7 @@
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_led_gpio_default>;
- status = "okay";
+ status = "okay"; /* Conflict with pwm0. */
red {
label = "red";
--
2.7.4
^ permalink raw reply related [flat|nested] 16+ messages in thread[parent not found: <1507630189-15504-1-git-send-email-claudiu.beznea-UWL1GkI3JZL3oGB3hsPCZA@public.gmane.org>]
* [PATCH v2 07/14] ARM: dts: at91: sama5d27_som1_ek: remove not connected CAN0
[not found] ` <1507630189-15504-1-git-send-email-claudiu.beznea-UWL1GkI3JZL3oGB3hsPCZA@public.gmane.org>
@ 2017-10-10 10:09 ` Claudiu Beznea
0 siblings, 0 replies; 16+ messages in thread
From: Claudiu Beznea @ 2017-10-10 10:09 UTC (permalink / raw)
To: nicolas.ferre-UWL1GkI3JZL3oGB3hsPCZA,
alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8,
linux-I+IVW8TIWO2tmTQ+vhA3Yw
Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Claudiu Beznea
From: Nicolas Ferre <nicolas.ferre-UWL1GkI3JZL3oGB3hsPCZA@public.gmane.org>
CAN0 is not connected on the sama5d27_som1_ek board, so remove
it from DT.
Signed-off-by: Nicolas Ferre <nicolas.ferre-UWL1GkI3JZL3oGB3hsPCZA@public.gmane.org>
[claudiu.beznea-UWL1GkI3JZL3oGB3hsPCZA@public.gmane.org: change subject to match the desired prefix]
Signed-off-by: Claudiu Beznea <claudiu.beznea-UWL1GkI3JZL3oGB3hsPCZA@public.gmane.org>
---
arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
index 339f4e71cf40..651ed5d4defc 100644
--- a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
+++ b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
@@ -175,12 +175,6 @@
status = "okay";
};
- can0: can@f8054000 {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_can0_default>;
- status = "disabled"; /* Conflict with isc. */
- };
-
uart3: serial@fc008000 {
atmel,use-dma-rx;
atmel,use-dma-tx;
@@ -279,12 +273,6 @@
pinctrl@fc038000 {
- pinctrl_can0_default: can0_default {
- pinmux = <PIN_PC10__CANTX0>,
- <PIN_PC11__CANRX0>;
- bias-disable;
- };
-
pinctrl_can1_default: can1_default {
pinmux = <PIN_PC26__CANTX1>,
<PIN_PC27__CANRX1>;
--
2.7.4
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [PATCH v2 08/14] ARM: dts: at91: sama5d27_som1_ek: remove pull-up on SD/MMC lines
2017-10-10 10:09 [PATCH v2 00/14] at91 fixes and enhancements Claudiu Beznea
` (6 preceding siblings ...)
[not found] ` <1507630189-15504-1-git-send-email-claudiu.beznea-UWL1GkI3JZL3oGB3hsPCZA@public.gmane.org>
@ 2017-10-10 10:09 ` Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 09/14] ARM: dts: at91: sama5d2_xplained: set PB_USER as wakeup source Claudiu Beznea
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Claudiu Beznea @ 2017-10-10 10:09 UTC (permalink / raw)
To: nicolas.ferre, alexandre.belloni, robh+dt, mark.rutland, linux
Cc: devicetree, linux-kernel, linux-arm-kernel, Claudiu Beznea
From: Nicolas Ferre <nicolas.ferre@microchip.com>
As the board have the proper pull-ups soldered on the data
and CMD lines we don't need them specified in the PADs. So remove
the "bias-pull-up" property and set "bias-disable".
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
[claudiu.beznea@microchip.com: change subject to match the desired prefix]
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
index 651ed5d4defc..e72036fa8ddb 100644
--- a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
+++ b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
@@ -349,7 +349,7 @@
<PIN_PA7__SDMMC0_DAT5>,
<PIN_PA8__SDMMC0_DAT6>,
<PIN_PA9__SDMMC0_DAT7>;
- bias-pull-up;
+ bias-disable;
};
ck_cd_vddsel {
@@ -367,7 +367,7 @@
<PIN_PA19__SDMMC1_DAT1>,
<PIN_PA20__SDMMC1_DAT2>,
<PIN_PA21__SDMMC1_DAT3>;
- bias-pull-up;
+ bias-disable;
};
conf-ck_cd {
--
2.7.4
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH v2 09/14] ARM: dts: at91: sama5d2_xplained: set PB_USER as wakeup source
2017-10-10 10:09 [PATCH v2 00/14] at91 fixes and enhancements Claudiu Beznea
` (7 preceding siblings ...)
2017-10-10 10:09 ` [PATCH v2 08/14] ARM: dts: at91: sama5d27_som1_ek: remove pull-up on SD/MMC lines Claudiu Beznea
@ 2017-10-10 10:09 ` Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 10/14] ARM: dts: at91: sama5d2_xplained: add pinmuxing for pwm0 Claudiu Beznea
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Claudiu Beznea @ 2017-10-10 10:09 UTC (permalink / raw)
To: nicolas.ferre, alexandre.belloni, robh+dt, mark.rutland, linux
Cc: linux-arm-kernel, devicetree, linux-kernel, Ludovic Desroches,
Claudiu Beznea
From: Ludovic Desroches <ludovic.desroches@microchip.com>
Set the PB_USER button as a wakeup source to resume from ulp0 mode.
Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>
[claudiu.beznea@microchip.com: change subject to match the desired prefix]
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
arch/arm/boot/dts/at91-sama5d2_xplained.dts | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/arm/boot/dts/at91-sama5d2_xplained.dts
index c7e9ccf2bc87..0b78476cec4a 100644
--- a/arch/arm/boot/dts/at91-sama5d2_xplained.dts
+++ b/arch/arm/boot/dts/at91-sama5d2_xplained.dts
@@ -522,6 +522,7 @@
label = "PB_USER";
gpios = <&pioA PIN_PB9 GPIO_ACTIVE_LOW>;
linux,code = <0x104>;
+ wakeup-source;
};
};
--
2.7.4
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH v2 10/14] ARM: dts: at91: sama5d2_xplained: add pinmuxing for pwm0
2017-10-10 10:09 [PATCH v2 00/14] at91 fixes and enhancements Claudiu Beznea
` (8 preceding siblings ...)
2017-10-10 10:09 ` [PATCH v2 09/14] ARM: dts: at91: sama5d2_xplained: set PB_USER as wakeup source Claudiu Beznea
@ 2017-10-10 10:09 ` Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 11/14] ARM: dts: at91: sama5d2_xplained: remove pull-up on SD/MMC lines Claudiu Beznea
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Claudiu Beznea @ 2017-10-10 10:09 UTC (permalink / raw)
To: nicolas.ferre, alexandre.belloni, robh+dt, mark.rutland, linux
Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea
Add pin muxing for pwm0 and set it as disabled since it is in conflict
with pins for leds.
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
arch/arm/boot/dts/at91-sama5d2_xplained.dts | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/arm/boot/dts/at91-sama5d2_xplained.dts
index 0b78476cec4a..851a095fd51d 100644
--- a/arch/arm/boot/dts/at91-sama5d2_xplained.dts
+++ b/arch/arm/boot/dts/at91-sama5d2_xplained.dts
@@ -224,7 +224,9 @@
};
pwm0: pwm@f802c000 {
- status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_pwm0_pwm2_default>;
+ status = "disabled"; /* conflict with leds */
};
flx0: flexcom@f8034000 {
@@ -494,6 +496,11 @@
bias-disable;
};
+ pinctrl_pwm0_pwm2_default: pwm0_pwm2_default {
+ pinmux = <PIN_PB5__PWMH2>,
+ <PIN_PB6__PWML2>;
+ bias-pull-up;
+ };
};
classd: classd@fc048000 {
@@ -530,7 +537,7 @@
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_led_gpio_default>;
- status = "okay";
+ status = "okay"; /* conflict with pwm0 */
red {
label = "red";
--
2.7.4
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH v2 11/14] ARM: dts: at91: sama5d2_xplained: remove pull-up on SD/MMC lines
2017-10-10 10:09 [PATCH v2 00/14] at91 fixes and enhancements Claudiu Beznea
` (9 preceding siblings ...)
2017-10-10 10:09 ` [PATCH v2 10/14] ARM: dts: at91: sama5d2_xplained: add pinmuxing for pwm0 Claudiu Beznea
@ 2017-10-10 10:09 ` Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 12/14] ARM: dts: at91: at91sam9x25ek: add CAN1 interface Claudiu Beznea
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Claudiu Beznea @ 2017-10-10 10:09 UTC (permalink / raw)
To: nicolas.ferre, alexandre.belloni, robh+dt, mark.rutland, linux
Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea
From: Nicolas Ferre <nicolas.ferre@microchip.com>
As the board have the proper pull-ups soldered on the data and CMD
lines we don't need them specified in the PADs. So remove the
"bias-pull-up" property and set "bias-disable".
This will also save some power.
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
[claudiu.beznea@microchip.com: change subject to match the desired prefix]
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
arch/arm/boot/dts/at91-sama5d2_xplained.dts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/arm/boot/dts/at91-sama5d2_xplained.dts
index 851a095fd51d..62328310ef42 100644
--- a/arch/arm/boot/dts/at91-sama5d2_xplained.dts
+++ b/arch/arm/boot/dts/at91-sama5d2_xplained.dts
@@ -437,7 +437,7 @@
<PIN_PA7__SDMMC0_DAT5>,
<PIN_PA8__SDMMC0_DAT6>,
<PIN_PA9__SDMMC0_DAT7>;
- bias-pull-up;
+ bias-disable;
};
ck_cd_rstn_vddsel {
@@ -456,7 +456,7 @@
<PIN_PA19__SDMMC1_DAT1>,
<PIN_PA20__SDMMC1_DAT2>,
<PIN_PA21__SDMMC1_DAT3>;
- bias-pull-up;
+ bias-disable;
};
conf-ck_cd {
--
2.7.4
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH v2 12/14] ARM: dts: at91: at91sam9x25ek: add CAN1 interface
2017-10-10 10:09 [PATCH v2 00/14] at91 fixes and enhancements Claudiu Beznea
` (10 preceding siblings ...)
2017-10-10 10:09 ` [PATCH v2 11/14] ARM: dts: at91: sama5d2_xplained: remove pull-up on SD/MMC lines Claudiu Beznea
@ 2017-10-10 10:09 ` Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 13/14] ARM: dts: at91: at91sam9x25ek: add pwm0 Claudiu Beznea
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: Claudiu Beznea @ 2017-10-10 10:09 UTC (permalink / raw)
To: nicolas.ferre, alexandre.belloni, robh+dt, mark.rutland, linux
Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea
From: Nicolas Ferre <nicolas.ferre@microchip.com>
As the CAN1 interface is not multiplexed with other peripherals on this
board, enable it so that it can be tested more easily.
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
arch/arm/boot/dts/at91sam9x25ek.dts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/at91sam9x25ek.dts b/arch/arm/boot/dts/at91sam9x25ek.dts
index 494864836e83..f8360fb23107 100644
--- a/arch/arm/boot/dts/at91sam9x25ek.dts
+++ b/arch/arm/boot/dts/at91sam9x25ek.dts
@@ -16,6 +16,10 @@
ahb {
apb {
+ can1: can@f8004000 {
+ status = "okay";
+ };
+
macb0: ethernet@f802c000 {
phy-mode = "rmii";
status = "okay";
--
2.7.4
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH v2 13/14] ARM: dts: at91: at91sam9x25ek: add pwm0
2017-10-10 10:09 [PATCH v2 00/14] at91 fixes and enhancements Claudiu Beznea
` (11 preceding siblings ...)
2017-10-10 10:09 ` [PATCH v2 12/14] ARM: dts: at91: at91sam9x25ek: add CAN1 interface Claudiu Beznea
@ 2017-10-10 10:09 ` Claudiu Beznea
2017-10-10 10:09 ` [PATCH v2 14/14] ARM: dts: at91: at91sam9x5ek: use DMA for USART0 Claudiu Beznea
2017-10-10 13:27 ` [PATCH v2 00/14] at91 fixes and enhancements Alexandre Belloni
14 siblings, 0 replies; 16+ messages in thread
From: Claudiu Beznea @ 2017-10-10 10:09 UTC (permalink / raw)
To: nicolas.ferre, alexandre.belloni, robh+dt, mark.rutland, linux
Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea
From: Nicolas Ferre <nicolas.ferre@microchip.com>
Add the PWM0 interface and one output of channel 0 (on PC10) on this headless
board. The output conflicts with LCD and ISI, so only enable it for this
particular board of the series (ISI is enabled on at91sam9g25ek, as an example
but we can do the other way around).
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
arch/arm/boot/dts/at91sam9x25ek.dts | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/at91sam9x25ek.dts b/arch/arm/boot/dts/at91sam9x25ek.dts
index f8360fb23107..f705a3165656 100644
--- a/arch/arm/boot/dts/at91sam9x25ek.dts
+++ b/arch/arm/boot/dts/at91sam9x25ek.dts
@@ -29,6 +29,12 @@
phy-mode = "rmii";
status = "okay";
};
+
+ pwm0: pwm@f8034000 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_pwm0_pwm0_1>;
+ status = "okay";
+ };
};
};
};
--
2.7.4
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH v2 14/14] ARM: dts: at91: at91sam9x5ek: use DMA for USART0
2017-10-10 10:09 [PATCH v2 00/14] at91 fixes and enhancements Claudiu Beznea
` (12 preceding siblings ...)
2017-10-10 10:09 ` [PATCH v2 13/14] ARM: dts: at91: at91sam9x25ek: add pwm0 Claudiu Beznea
@ 2017-10-10 10:09 ` Claudiu Beznea
2017-10-10 13:27 ` [PATCH v2 00/14] at91 fixes and enhancements Alexandre Belloni
14 siblings, 0 replies; 16+ messages in thread
From: Claudiu Beznea @ 2017-10-10 10:09 UTC (permalink / raw)
To: nicolas.ferre, alexandre.belloni, robh+dt, mark.rutland, linux
Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea
From: Nicolas Ferre <nicolas.ferre@microchip.com>
Use DMA for USART0 (which is used as ttyS1) as we have enough channels and to
show how to specify DMA use with serial nodes.
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
arch/arm/boot/dts/at91sam9x5ek.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/boot/dts/at91sam9x5ek.dtsi b/arch/arm/boot/dts/at91sam9x5ek.dtsi
index 9d2bbc41a7b0..a85eb51e6aa8 100644
--- a/arch/arm/boot/dts/at91sam9x5ek.dtsi
+++ b/arch/arm/boot/dts/at91sam9x5ek.dtsi
@@ -50,6 +50,8 @@
};
usart0: serial@f801c000 {
+ atmel,use-dma-rx;
+ atmel,use-dma-tx;
status = "okay";
};
--
2.7.4
^ permalink raw reply related [flat|nested] 16+ messages in thread* Re: [PATCH v2 00/14] at91 fixes and enhancements
2017-10-10 10:09 [PATCH v2 00/14] at91 fixes and enhancements Claudiu Beznea
` (13 preceding siblings ...)
2017-10-10 10:09 ` [PATCH v2 14/14] ARM: dts: at91: at91sam9x5ek: use DMA for USART0 Claudiu Beznea
@ 2017-10-10 13:27 ` Alexandre Belloni
14 siblings, 0 replies; 16+ messages in thread
From: Alexandre Belloni @ 2017-10-10 13:27 UTC (permalink / raw)
To: Claudiu Beznea
Cc: nicolas.ferre, robh+dt, mark.rutland, linux, linux-arm-kernel,
devicetree, linux-kernel
On 10/10/2017 at 13:09:35 +0300, Claudiu Beznea wrote:
> Hi,
>
> This series contains fixes and enhancements for Atmel/Microchip boards,
> mainly for SoM1-EK board, SAMA5D2 Xplained board and SAM9x5 boards.
> Please accept them for 4.15.
>
> Thank you,
> Claudiu Beznea
>
> Changes since v1:
> - correct author for some patches; these were developed first on internal
> branch and then were manualy ported by me to Linux public tree (since the device
> tree files are different) but then I forgot to keep the real author
> - removed patch "ARM: dts: at91: sama5d2_xplained: Add charger node of pmic."
> from this series since it was already applied on at91-dt branch (see [1])
>
> [1] https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git/commit/?h=at91-dt&id=4b6ad41f267b8ddabf5dd1b02a318bc74f0b95e9
>
> Claudiu Beznea (14):
> ARM: dts: at91: sama5d27_som1_ek: add disabled/okay status
> ARM: dts: at91: sama5d27_som1_ek: update serial aliases
> ARM: dts: at91: sama5d27_som1_ek: set USER button as a wakeup source
> ARM: dts: at91: sama5d27_som1_ek: add aliases for i2c
> ARM: dts: at91: sama5d27_som1_ek: add pinmuxing for pwm0
> ARM: dts: at91: sama5d27_som1_ek: remove not connected CAN0
> ARM: dts: at91: sama5d27_som1_ek: remove pull-up on SD/MMC lines
> ARM: dts: at91: sama5d2_xplained: Add charger node of pmic.
> ARM: dts: at91: sama5d2_xplained: set PB_USER as wakeup source
> ARM: dts: at91: sama5d2_xplained: add pinmuxing for pwm0
> ARM: dts: at91: sama5d2_xplained: remove pull-up on SD/MMC lines
> ARM: dts: at91: at91sam9x25ek: add CAN1 interface
> ARM: dts: at91: at91sam9x25ek: add pwm0
> ARM: dts: at91: at91sam9x5ek: use DMA for USART0
>
> arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 46 ++++++++++++++---------------
> arch/arm/boot/dts/at91-sama5d2_xplained.dts | 39 ++++++++++++++++--------
> arch/arm/boot/dts/at91sam9x25ek.dts | 10 +++++++
> arch/arm/boot/dts/at91sam9x5ek.dtsi | 2 ++
> 4 files changed, 62 insertions(+), 35 deletions(-)
>
All applied
> --
> 2.7.4
>
--
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 16+ messages in thread