Skip to contentSkip to conversation

Minor fixes for Marvell Armada 38x SoC.

PATCH Superseded Marcin Wojtas 2 participants 8 messages Nov 14, 2014 – Nov 22, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v3 cover Minor fixes for Marvell Armada 38x SoC.

Hello,

It seems that my server at work is not properly configured to be accepted by LAKML. Now everything should be ok.

Changes from v2:
* Add 'Acked-by: Andrew Lunn <[email protected]>' information to the commit logs

Changes from v1:
* Improve commit log with better justification for changing ethernet aliases format in Armada 38x Device Tree

This patchset adds minor fixes for Armada 38x SoC around SDHCI interface. It also enables usage of I2C char-device and adjusts ethernet aliases for bootloader's needs. Any feedback is welcome.

Marcin Wojtas (5):
ARM: mvebu: re-enable SDHCI driver for Armada 38x SoC in v7 defconfig
ARM: mvebu: enable no-1-8-v flag for Armada 385 DB SDHCI interface
ARM: mvebu: remove clock-frequency from Armada 38x SDHCI Device Tree
node
ARM: mvebu: adjust ethernet aliases according to U-Boot requirements
for A38x
ARM: mvebu: enable i2c device in mvebu_v7_defconfig

 arch/arm/boot/dts/armada-385-db.dts | 2 +-
 arch/arm/boot/dts/armada-38x.dtsi   | 6 +++---
 arch/arm/configs/mvebu_v7_defconfig | 2 ++
 3 files changed, 6 insertions(+), 4 deletions(-)
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH v3 1/5 ARM: mvebu: re-enable SDHCI driver for Armada 38x SoC in v7 defconfig

In the recent update of mvebu_v7_defconfig a config that enables sdhci-pxav3 driver, that supports SDHCI interface of Armada 38x SoC, disappeared.

This commit enables CONFIG_MMC_SDHCI_PXAV3 back.

Fixes fc9fa8714a75 ("ARM: mvebu: update v7 defconfig with useful options")

---
 arch/arm/configs/mvebu_v7_defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/mvebu_v7_defconfig +1 -0
index ed0a0d1..9d55170 100644
@@ -96,6 +96,7 @@ CONFIG_MMC=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_PLTFM=y
 CONFIG_MMC_SDHCI_DOVE=y
+CONFIG_MMC_SDHCI_PXAV3=y
 CONFIG_MMC_MVSDIO=y
 CONFIG_LEDS_GPIO=y
 CONFIG_LEDS_CLASS=y
Signature · 1 line
1.8.3.1
#2 lore raw

PATCH v3 2/5 ARM: mvebu: enable no-1-8-v flag for Armada 385 DB SDHCI interface

In reply to Marcin Wojtas

The Marvell Armada 38x SoC's SDHCI interface is capable of using 1.8v voltage, needed for driving "UHS-I" SD cards at their full speed. It is not, however, possible on the DB board. Due to physical connectivity connector supply is tied to 3v and any attempt of changing voltage in order to operate in the fastest UHS modes fails.

This patch enables equivalent SDHCI quirk in order to adjust controller operation to system capabilities.

---
 arch/arm/boot/dts/armada-385-db.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/armada-385-db.dts +1 -0
index 1af886f..b125712 100644
@@ -121,6 +121,7 @@
 				wp-inverted;
 				bus-width = <8>;
 				status = "okay";
+				no-1-8-v;
 			};
 
 			usb3 at f0000 {
Signature · 1 line
1.8.3.1
#3 lore raw

PATCH v3 3/5 ARM: mvebu: remove clock-frequency from Armada 38x SDHCI Device Tree node

In reply to Marcin Wojtas

For proper operation of Armada 38x SDHCI controller proper 'clocks' property is sufficient. Therefore it is not useful to keep an additional 'clock-frequency' property in SDHCI controller node of board-level Device Tree file for Armada 385 DB.

This commit gets rid of useless 'clock-frequency' property.

---
 arch/arm/boot/dts/armada-385-db.dts | 1 -
 1 file changed, 1 deletion(-)
arch/arm/boot/dts/armada-385-db.dts +0 -1
index b125712..2aaa9d2 100644
@@ -116,7 +116,6 @@
 			};
 
 			sdhci at d8000 {
-				clock-frequency = <200000000>;
 				broken-cd;
 				wp-inverted;
 				bus-width = <8>;
Signature · 1 line
1.8.3.1
#4 lore raw

PATCH v3 4/5 ARM: mvebu: adjust ethernet aliases according to U-Boot requirements for A38x

In reply to Marcin Wojtas

In order to update MAC address entries in the ethernet nodes in Device Tree both mainline U-Boot and Barebox bootloaders accept the same format of aliases, which is 'ethernetX', where X stands for an interface number. Other platforms in the mainline Linux, that comprise ethernet references in '/aliases' node (like various flavours of imx or sunXi), follow the naming scheme described above.

This commit ajusts ethernet aliases of Marvell Armada 38x SoC to be properly recognized by bootloaders' MAC address fixup routines.

---
 arch/arm/boot/dts/armada-38x.dtsi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/boot/dts/armada-38x.dtsi +3 -3
index 242d0ec..74391da 100644
@@ -25,9 +25,9 @@
 	aliases {
 		gpio0 = &gpio0;
 		gpio1 = &gpio1;
-		eth0 = &eth0;
-		eth1 = &eth1;
-		eth2 = &eth2;
+		ethernet0 = &eth0;
+		ethernet1 = &eth1;
+		ethernet2 = &eth2;
 	};
 
 	soc {
Signature · 1 line
1.8.3.1
#5 lore raw

PATCH v3 5/5 ARM: mvebu: enable i2c device in mvebu_v7_defconfig

In reply to Marcin Wojtas

This commit enables user-space access to I2C bus using char device.

---
 arch/arm/configs/mvebu_v7_defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/mvebu_v7_defconfig +1 -0
index 9d55170..23cad48 100644
@@ -72,6 +72,7 @@ CONFIG_SERIAL_8250_CONSOLE=y
 CONFIG_SERIAL_8250_DW=y
 CONFIG_SERIAL_OF_PLATFORM=y
 CONFIG_I2C=y
+CONFIG_I2C_CHARDEV=y
 CONFIG_I2C_MV64XXX=y
 CONFIG_SPI=y
 CONFIG_SPI_ORION=y
Signature · 1 line
1.8.3.1
#6 lore raw

v3 cover Minor fixes for Marvell Armada 38x SoC.

In reply to Marcin Wojtas
Quoted 26 lines · Marcin Wojtas

Hello,

It seems that my server at work is not properly configured to be accepted by LAKML. Now everything should be ok.

Changes from v2:
* Add 'Acked-by: Andrew Lunn <[email protected]>' information to the commit logs

Changes from v1:
* Improve commit log with better justification for changing ethernet aliases format in Armada 38x Device Tree

This patchset adds minor fixes for Armada 38x SoC around SDHCI interface. It also enables usage of I2C char-device and adjusts ethernet aliases for bootloader's needs. Any feedback is welcome.

Marcin Wojtas (5):
ARM: mvebu: re-enable SDHCI driver for Armada 38x SoC in v7 defconfig
ARM: mvebu: enable no-1-8-v flag for Armada 385 DB SDHCI interface
ARM: mvebu: remove clock-frequency from Armada 38x SDHCI Device Tree
node
ARM: mvebu: adjust ethernet aliases according to U-Boot requirements
for A38x
ARM: mvebu: enable i2c device in mvebu_v7_defconfig

Quoted 4 lines
 arch/arm/boot/dts/armada-385-db.dts | 2 +-
 arch/arm/boot/dts/armada-38x.dtsi   | 6 +++---
 arch/arm/configs/mvebu_v7_defconfig | 2 ++
 3 files changed, 6 insertions(+), 4 deletions(-)

Patches 1 and 5 applied to mvebu/defconfig, 2-4 applied to mvebu/dt.

thx,

Jason.

#7 lore raw

v3 cover Minor fixes for Marvell Armada 38x SoC.

Thanks!

Marcin

2014-11-22 3:51 GMT+01:00 Jason Cooper <[email protected]>:

Quoted 37 lines · Marcin Wojtas
Quoted 26 lines

Hello,

It seems that my server at work is not properly configured to be accepted by LAKML. Now everything should be ok.

Changes from v2:
* Add 'Acked-by: Andrew Lunn <[email protected]>' information to the commit logs

Changes from v1:
* Improve commit log with better justification for changing ethernet aliases format in Armada 38x Device Tree

This patchset adds minor fixes for Armada 38x SoC around SDHCI interface. It also enables usage of I2C char-device and adjusts ethernet aliases for bootloader's needs. Any feedback is welcome.

Marcin Wojtas (5):
ARM: mvebu: re-enable SDHCI driver for Armada 38x SoC in v7 defconfig
ARM: mvebu: enable no-1-8-v flag for Armada 385 DB SDHCI interface
ARM: mvebu: remove clock-frequency from Armada 38x SDHCI Device Tree
node
ARM: mvebu: adjust ethernet aliases according to U-Boot requirements
for A38x
ARM: mvebu: enable i2c device in mvebu_v7_defconfig

Quoted 4 lines
 arch/arm/boot/dts/armada-385-db.dts | 2 +-
 arch/arm/boot/dts/armada-38x.dtsi   | 6 +++---
 arch/arm/configs/mvebu_v7_defconfig | 2 ++
 3 files changed, 6 insertions(+), 4 deletions(-)

Patches 1 and 5 applied to mvebu/defconfig, 2-4 applied to mvebu/dt.

thx,

Jason.