Skip to contentSkip to conversation

Device tree fixes for Armada family

PATCH Superseded [email protected] 5 participants 27 messages Feb 3, 2021 – Feb 5, 2021

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Device tree fixes for Armada family

From: Konstantin Porotchkin <[email protected]>

This set of patches include various device tree additions and fixes for Marvell Armada SoC families A3700/A7K/A8K.
These changes are ported from Marvell SDK release files.

Ben Peled (2):
dts: marvell: add 2 eeprom properties to A8K DB device tree
dts: marvell: add 2 eeprom properties to A7K DB device tree

Grzegorz Jaszczyk (3):
arm64: dts: marvell: armada-3720-db: add comphy references
arm64: dts: marvell: armada-3270-espressobin: add comphy references
arm64: dts: marvell: armada-3720-db: add eeprom description

Konstantin Porotchkin (5):
fix: arm64: dts: replace wrong regulator on ap emmc
dts: mvebu: Update A8K AP806 SDHCI settings
dts: mvebu: Add pin control definitions for SDIO interafce
fix: dts: a8k: Add CP eMMC regulator and update device parameters
fix: ARM64: dts: cp110: Switch to 8-bit ECC NAND setting

Stefan Chulski (1):
dts: a3700: enable dma coherence for PCIE interface

 .../arm64/boot/dts/marvell/armada-3720-db.dts | 13 ++++++
 .../dts/marvell/armada-3720-espressobin.dtsi  |  5 +++
 arch/arm64/boot/dts/marvell/armada-37xx.dtsi  |  1 +
 .../arm64/boot/dts/marvell/armada-7040-db.dts | 33 +++++++++++++-
 arch/arm64/boot/dts/marvell/armada-70x0.dtsi  |  6 +++
 .../arm64/boot/dts/marvell/armada-8040-db.dts | 44 +++++++++++++++++--
 .../boot/dts/marvell/armada-8040-mcbin.dtsi   |  7 +--
 arch/arm64/boot/dts/marvell/armada-80x0.dtsi  |  6 +++
 arch/arm64/boot/dts/marvell/armada-ap80x.dtsi |  1 -
 9 files changed, 104 insertions(+), 12 deletions(-)
Signature · 7 lines
2.17.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw

PATCH 1/11 fix: arm64: dts: replace wrong regulator on ap emmc

From: Konstantin Porotchkin <[email protected]>

Replace wrong regulator in AP0 eMMC definition on MacchiatoBIN board with 3.3V regulator.
The MacchiatoBIN board has no 1.8V regulator connected to AP0 eMMC (ap0_sdhci0) interface.

---
 arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi +1 -1
index cbcb210cb6d8..73733b4126e2 100644
@@ -119,7 +119,7 @@
 	no-sdio;
 	non-removable;
 	status = "okay";
-	vqmmc-supply = <&v_vddo_h>;
+	vqmmc-supply = <&v_3_3>;
 };
 
 &cp0_i2c0 {
Signature · 7 lines
2.17.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#2 lore raw

PATCH 2/11 dts: mvebu: Update A8K AP806 SDHCI settings

In reply to [email protected]

From: Konstantin Porotchkin <[email protected]>

Update the settings for AP806 SDHCI interface according to latest Xenon drivers changes.
- no need to select the PHY slow mode anymore
- recommended to add HS400 support at 1.8V signalling on AP806-B0
- fix the bus witdth for A8040 DB from 4 to 8 bits.

---
 arch/arm64/boot/dts/marvell/armada-8040-db.dts     | 11 ++++++++++-
 arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi |  5 -----
 arch/arm64/boot/dts/marvell/armada-ap80x.dtsi      |  1 -
 3 files changed, 10 insertions(+), 7 deletions(-)
arch/arm64/boot/dts/marvell/armada-8040-db.dts +10 -1
index 09fb5256f1db..6362e654a823 100644
@@ -347,7 +347,16 @@
 
 &ap_sdhci0 {
 	status = "okay";
-	bus-width = <4>;
+	bus-width = <8>;
+	/* The below property should be added to boards with AP806-B0
+	 * for enabling HS400 speed mode. Otherwise the device highest
+	 * speed mode will be HS200.
+	 * Should not be added to boards with earlier release of AP806
+	 * since it will cause SDHCI driver to fail upon initialization.
+	 * Reference - HWE-7296210 (errata for releases A0/A1/A2)
+	 *
+	 * mmc-hs400-1_8v;
+	 */
 	non-removable;
 };
 
arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi +0 -5
index 73733b4126e2..69653de998e2 100644
@@ -109,11 +109,6 @@
 
 &ap_sdhci0 {
 	bus-width = <8>;
-	/*
-	 * Not stable in HS modes - phy needs "more calibration", so add
-	 * the "slow-mode" and disable SDR104, SDR50 and DDR50 modes.
-	 */
-	marvell,xenon-phy-slow-mode;
 	no-1-8-v;
 	no-sd;
 	no-sdio;
arch/arm64/boot/dts/marvell/armada-ap80x.dtsi +0 -1
index 12e477f1aeb9..edd6131a0587 100644
@@ -257,7 +257,6 @@
 				clock-names = "core";
 				clocks = <&ap_clk 4>;
 				dma-coherent;
-				marvell,xenon-phy-slow-mode;
 				status = "disabled";
 			};
 
Signature · 7 lines
2.17.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#11 lore raw

PATCH 3/11 dts: mvebu: Add pin control definitions for SDIO interafce

In reply to [email protected]

From: Konstantin Porotchkin <[email protected]>

Add SDIO mode pin control configration for CP0 on A8K DB.

---
 arch/arm64/boot/dts/marvell/armada-70x0.dtsi | 6 ++++++
 arch/arm64/boot/dts/marvell/armada-80x0.dtsi | 6 ++++++
 2 files changed, 12 insertions(+)
arch/arm64/boot/dts/marvell/armada-70x0.dtsi +6 -0
index 293403a1a333..179218774ba9 100644
@@ -47,6 +47,12 @@
 	cp0_pinctrl: pinctrl {
 		compatible = "marvell,armada-7k-pinctrl";
 
+		sdhci_pins: sdhi-pins {
+			marvell,pins = "mpp56", "mpp57", "mpp58",
+				       "mpp59", "mpp60", "mpp61", "mpp62";
+			marvell,function = "sdio";
+		};
+
 		nand_pins: nand-pins {
 			marvell,pins =
 			"mpp15", "mpp16", "mpp17", "mpp18",
arch/arm64/boot/dts/marvell/armada-80x0.dtsi +6 -0
index ee67c70bf02e..64100ae204da 100644
@@ -70,6 +70,12 @@
 &cp0_syscon0 {
 	cp0_pinctrl: pinctrl {
 		compatible = "marvell,armada-8k-cpm-pinctrl";
+
+		sdhci_pins: sdhi-pins {
+			marvell,pins = "mpp56", "mpp57", "mpp58",
+				       "mpp59", "mpp60", "mpp61", "mpp62";
+			marvell,function = "sdio";
+		};
 	};
 };
 
Signature · 7 lines
2.17.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#18 lore raw

PATCH 4/11 fix: dts: a8k: Add CP eMMC regulator and update device parameters

In reply to [email protected]

From: Konstantin Porotchkin <[email protected]>

Add GPIO regulator for controlling CP0 eMMC voltage (3.3V/1.8V) Update CP0 SDHCI parameters in A7K/A8K boards DTS files.

---
 arch/arm64/boot/dts/marvell/armada-7040-db.dts | 17 ++++++++++++++++-
 arch/arm64/boot/dts/marvell/armada-8040-db.dts | 18 +++++++++++++++++-
 2 files changed, 33 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/marvell/armada-7040-db.dts +16 -1
index a7eb4e7697a2..f8179cadc610 100644
@@ -28,6 +28,19 @@
 		ethernet2 = &cp0_eth2;
 	};
 
+	cp0_vccq_sd0_reg: cp0_vccq_sd0 {
+		compatible = "regulator-gpio";
+		regulator-name = "cp0-vccq-sd0";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-boot-on;
+		gpios = <&expander0 15 GPIO_ACTIVE_HIGH>;
+		gpios-states = <0>;
+		states = <1800000 0x1
+			  3300000 0x0>;
+		enable-active-high;
+	};
+
 	cp0_exp_usb3_0_current_regulator: gpio-regulator {
 		compatible = "regulator-gpio";
 		regulator-name = "cp0-usb3-0-current-regulator";
@@ -253,8 +266,10 @@
 
 &cp0_sdhci0 {
 	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&sdhci_pins>;
 	bus-width = <4>;
-	no-1-8-v;
+	vqmmc-supply = <&cp0_vccq_sd0_reg>;
 	cd-gpios = <&expander0 12 GPIO_ACTIVE_LOW>;
 };
 
arch/arm64/boot/dts/marvell/armada-8040-db.dts +17 -1
index 6362e654a823..d96aa9e9e61c 100644
@@ -31,6 +31,19 @@
 		i2c2 = &cp1_i2c0;
 	};
 
+	cp0_vccq_sd0_reg: cp0_vccq_sd0 {
+		compatible = "regulator-gpio";
+		regulator-name = "cp0-vccq-sd0";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-boot-on;
+		gpios = <&expander0 15 GPIO_ACTIVE_HIGH>;
+		gpios-states = <0>;
+		states = <1800000 0x1
+			  3300000 0x0>;
+		enable-active-high;
+	};
+
 	cp0_reg_usb3_0_vbus: cp0-usb3-0-vbus {
 		compatible = "regulator-fixed";
 		regulator-name = "cp0-usb3h0-vbus";
@@ -362,6 +375,9 @@
 
 &cp0_sdhci0 {
 	status = "okay";
-	bus-width = <8>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&sdhci_pins>;
+	bus-width = <4>;
+	vqmmc-supply = <&cp0_vccq_sd0_reg>;
 	non-removable;
 };
Signature · 7 lines
2.17.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#19 lore raw

PATCH 5/11 arm64: dts: marvell: armada-3720-db: add comphy references

In reply to [email protected]

From: Grzegorz Jaszczyk <[email protected]>

Adding phy description to pcie, sata and usb will allow appropriate drivers to configure marvell comphy-a3700 accordingly.

---
 arch/arm64/boot/dts/marvell/armada-3720-db.dts | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm64/boot/dts/marvell/armada-3720-db.dts +7 -0
index 3e5789f37206..15e923f945d4 100644
@@ -132,11 +132,15 @@
 	pinctrl-0 = <&pcie_reset_pins &pcie_clkreq_pins>;
 	reset-gpios = <&gpiosb 3 GPIO_ACTIVE_LOW>;
 	status = "okay";
+	/* Generic PHY, providing serdes lanes */
+	phys = <&comphy1 0>;
 };
 
 /* CON3 */
 &sata {
 	status = "okay";
+	/* Generic PHY, providing serdes lanes */
+	phys = <&comphy2 0>;
 };
 
 &sdhci0 {
@@ -217,4 +221,7 @@
 &usb3 {
 	status = "okay";
 	usb-phy = <&usb3_phy>;
+	/* Generic PHY, providing serdes lanes */
+	phys = <&comphy0 0>;
+	phy-names = "usb";
 };
Signature · 7 lines
2.17.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#20 lore raw

PATCH 6/11 arm64: dts: marvell: armada-3270-espressobin: add comphy references

In reply to [email protected]

From: Grzegorz Jaszczyk <[email protected]>

Add "phys" entries pointing to COMPHYs to PCIe and USB3 nodes

---
 arch/arm64/boot/dts/marvell/armada-3720-espressobin.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/marvell/armada-3720-espressobin.dtsi +5 -0
index daffe136c523..bbd955909813 100644
@@ -59,6 +59,8 @@
 /* J9 */
 &pcie0 {
 	status = "okay";
+	/* Generic PHY, providing serdes lanes */
+	phys = <&comphy1 0>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pcie_reset_pins &pcie_clkreq_pins>;
 	reset-gpios = <&gpiosb 3 GPIO_ACTIVE_LOW>;
@@ -139,6 +141,9 @@
 /* J7 */
 &usb3 {
 	status = "okay";
+	/* Generic PHY, providing serdes lanes */
+	phys = <&comphy0 0>;
+	phy-names = "usb";
 };
 
 /* J8 */
Signature · 7 lines
2.17.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#21 lore raw

PATCH 7/11 fix: ARM64: dts: cp110: Switch to 8-bit ECC NAND setting

In reply to [email protected]

From: Konstantin Porotchkin <[email protected]>

All A7K/A8K boards are using NAND chip that supports 8 bit ECC strength. Using lower ECC strength is not recommended by the flash manufacturer and may cause data corruption. This patch changes the nand-ecc-strength value from 4 to 8.

---
 arch/arm64/boot/dts/marvell/armada-7040-db.dts | 2 +-
 arch/arm64/boot/dts/marvell/armada-8040-db.dts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/marvell/armada-7040-db.dts +1 -1
index f8179cadc610..39f1d393664f 100644
@@ -169,7 +169,7 @@
 		label = "pxa3xx_nand-0";
 		nand-rb = <0>;
 		nand-on-flash-bbt;
-		nand-ecc-strength = <4>;
+		nand-ecc-strength = <8>;
 		nand-ecc-step-size = <512>;
 
 		partitions {
arch/arm64/boot/dts/marvell/armada-8040-db.dts +1 -1
index d96aa9e9e61c..04241dba189e 100644
@@ -281,7 +281,7 @@
 		reg = <0>;
 		nand-rb = <0>;
 		nand-on-flash-bbt;
-		nand-ecc-strength = <4>;
+		nand-ecc-strength = <8>;
 		nand-ecc-step-size = <512>;
 
 		partitions {
Signature · 7 lines
2.17.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#22 lore raw

PATCH 8/11 arm64: dts: marvell: armada-3720-db: add eeprom description

In reply to [email protected]

From: Grzegorz Jaszczyk <[email protected]>

On Armada 3720 board there is serial emprom M24C64 at address 0x57, reflect it in device-tree.

---
 arch/arm64/boot/dts/marvell/armada-3720-db.dts | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/marvell/armada-3720-db.dts +6 -0
index 15e923f945d4..f2435537c1d3 100644
@@ -113,6 +113,12 @@
 		compatible = "dallas,ds1337";
 		reg = <0x68>;
 	};
+
+	eeprom@57 {
+		compatible = "atmel,24c64";
+		reg = <0x57>;
+		pagesize = <32>;
+	};
 };
 
 &mdio {
Signature · 7 lines
2.17.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#23 lore raw

PATCH 9/11 dts: a3700: enable dma coherence for PCIE interface

In reply to [email protected]

From: Stefan Chulski <[email protected]>

Enavble PCIe dma coherence for A3700 platform

---
 arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/marvell/armada-37xx.dtsi +1 -0
index d5b6c0a1c54a..5c0df06bc707 100644
@@ -486,6 +486,7 @@
 			#interrupt-cells = <1>;
 			msi-parent = <&pcie0>;
 			msi-controller;
+			dma-coherent;
 			ranges = <0x82000000 0 0xe8000000   0 0xe8000000 0 0x1000000 /* Port 0 MEM */
 				  0x81000000 0 0xe9000000   0 0xe9000000 0 0x10000>; /* Port 0 IO*/
 			interrupt-map-mask = <0 0 0 7>;
Signature · 7 lines
2.17.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#25 lore raw

PATCH 10/11 dts: marvell: add 2 eeprom properties to A8K DB device tree

In reply to [email protected]

From: Ben Peled <[email protected]>

Add on-board i2c EEPROMs U41 and U51

---
 arch/arm64/boot/dts/marvell/armada-8040-db.dts | 13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/arm64/boot/dts/marvell/armada-8040-db.dts +13 -0
index 04241dba189e..13964193fb77 100644
@@ -150,6 +150,19 @@
 		reg = <0x25>;
 	};
 
+	/* U51 */
+	eeprom0: eeprom@50 {
+		compatible = "atmel,24c64";
+		reg = <0x50>;
+		pagesize = <0x20>;
+	};
+
+	/* U41 */
+	eeprom1: eeprom@57 {
+		compatible = "atmel,24c64";
+		reg = <0x57>;
+		pagesize = <0x20>;
+	};
 };
 
 /* CON4 on CP0 expansion */
Signature · 1 line
2.17.1
#26 lore raw

PATCH 11/11 dts: marvell: add 2 eeprom properties to A7K DB device tree

In reply to [email protected]

From: Ben Peled <[email protected]>

Add on-board i2c EEPROMs U37 and U38

---
 arch/arm64/boot/dts/marvell/armada-7040-db.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/marvell/armada-7040-db.dts +14 -0
index 39f1d393664f..c8258defa9e5 100644
@@ -152,6 +152,20 @@
 		 * IO0_7:		IO1_7: SDIO_Vcntrl
 		 */
 	};
+
+	/* U38 */
+	eeprom0: eeprom@50 {
+		compatible = "atmel,24c64";
+		reg = <0x50>;
+		pagesize = <0x20>;
+	};
+
+	/* U37 */
+	eeprom1: eeprom@57 {
+		compatible = "atmel,24c64";
+		reg = <0x57>;
+		pagesize = <0x20>;
+	};
 };
 
 &cp0_nand_controller {
Signature · 7 lines
2.17.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#3 lore raw

Re: [PATCH 02/11] dts: mvebu: Update A8K AP806 SDHCI settings

In reply to [email protected]

Hi Konstantin,

Quoted 5 lines · On Wed, Feb 03 2021, [email protected] wrote:

From: Konstantin Porotchkin <[email protected]>

Update the settings for AP806 SDHCI interface according to latest Xenon drivers changes.
- no need to select the PHY slow mode anymore

Why? Has anything changed since the introduction of marvell,xenon-phy-slow-mode?

baruch

Quoted 59 lines

- recommended to add HS400 support at 1.8V signalling on AP806-B0
- fix the bus witdth for A8040 DB from 4 to 8 bits.

---
 arch/arm64/boot/dts/marvell/armada-8040-db.dts     | 11 ++++++++++-
 arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi |  5 -----
 arch/arm64/boot/dts/marvell/armada-ap80x.dtsi      |  1 -
 3 files changed, 10 insertions(+), 7 deletions(-)
arch/arm64/boot/dts/marvell/armada-8040-db.dts +10 -1
index 09fb5256f1db..6362e654a823 100644
@@ -347,7 +347,16 @@
 
 &ap_sdhci0 {
 	status = "okay";
-	bus-width = <4>;
+	bus-width = <8>;
+	/* The below property should be added to boards with AP806-B0
+	 * for enabling HS400 speed mode. Otherwise the device highest
+	 * speed mode will be HS200.
+	 * Should not be added to boards with earlier release of AP806
+	 * since it will cause SDHCI driver to fail upon initialization.
+	 * Reference - HWE-7296210 (errata for releases A0/A1/A2)
+	 *
+	 * mmc-hs400-1_8v;
+	 */
 	non-removable;
 };
 
arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi +0 -5
index 73733b4126e2..69653de998e2 100644
@@ -109,11 +109,6 @@
 
 &ap_sdhci0 {
 	bus-width = <8>;
-	/*
-	 * Not stable in HS modes - phy needs "more calibration", so add
-	 * the "slow-mode" and disable SDR104, SDR50 and DDR50 modes.
-	 */
-	marvell,xenon-phy-slow-mode;
 	no-1-8-v;
 	no-sd;
 	no-sdio;
arch/arm64/boot/dts/marvell/armada-ap80x.dtsi +0 -1
index 12e477f1aeb9..edd6131a0587 100644
@@ -257,7 +257,6 @@
 				clock-names = "core";
 				clocks = <&ap_clk 4>;
 				dma-coherent;
-				marvell,xenon-phy-slow-mode;
 				status = "disabled";
 			};
Signature · 3 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - [email protected] - tel: +972.52.368.4656, http://www.tkos.co.il -
#12 lore raw

Re: [PATCH 03/11] dts: mvebu: Add pin control definitions for SDIO interafce

In reply to [email protected]

Hi Konstantin,

Quoted 3 lines · On Wed, Feb 03 2021, [email protected] wrote:

From: Konstantin Porotchkin <[email protected]>

Add SDIO mode pin control configration for CP0 on A8K DB.

This patch does not touch the A8K DB device-tree file.

baruch

Quoted 40 lines
---
 arch/arm64/boot/dts/marvell/armada-70x0.dtsi | 6 ++++++
 arch/arm64/boot/dts/marvell/armada-80x0.dtsi | 6 ++++++
 2 files changed, 12 insertions(+)
arch/arm64/boot/dts/marvell/armada-70x0.dtsi +6 -0
index 293403a1a333..179218774ba9 100644
@@ -47,6 +47,12 @@
 	cp0_pinctrl: pinctrl {
 		compatible = "marvell,armada-7k-pinctrl";
 
+		sdhci_pins: sdhi-pins {
+			marvell,pins = "mpp56", "mpp57", "mpp58",
+				       "mpp59", "mpp60", "mpp61", "mpp62";
+			marvell,function = "sdio";
+		};
+
 		nand_pins: nand-pins {
 			marvell,pins =
 			"mpp15", "mpp16", "mpp17", "mpp18",
arch/arm64/boot/dts/marvell/armada-80x0.dtsi +6 -0
index ee67c70bf02e..64100ae204da 100644
@@ -70,6 +70,12 @@
 &cp0_syscon0 {
 	cp0_pinctrl: pinctrl {
 		compatible = "marvell,armada-8k-cpm-pinctrl";
+
+		sdhci_pins: sdhi-pins {
+			marvell,pins = "mpp56", "mpp57", "mpp58",
+				       "mpp59", "mpp60", "mpp61", "mpp62";
+			marvell,function = "sdio";
+		};
 	};
 };
Signature · 8 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - [email protected] - tel: +972.52.368.4656, http://www.tkos.co.il -

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#14 lore raw

Re: [PATCH 03/11] dts: mvebu: Add pin control definitions for SDIO interafce

In reply to [email protected]
Quoted 15 lines · On Wed, Feb 03, 2021 at 03:31:30PM +0200, [email protected] wrote:

From: Konstantin Porotchkin <[email protected]>

Add SDIO mode pin control configration for CP0 on A8K DB.

---
 arch/arm64/boot/dts/marvell/armada-70x0.dtsi | 6 ++++++
 arch/arm64/boot/dts/marvell/armada-80x0.dtsi | 6 ++++++
 2 files changed, 12 insertions(+)
arch/arm64/boot/dts/marvell/armada-70x0.dtsi +0 -0
index 293403a1a333..179218774ba9 100644

arch/arm64/boot/dts/marvell/armada-70x0.dtsi line 50

Quoted 4 lines
arch/arm64/boot/dts/marvell/armada-70x0.dtsi +1 -0
@@ -47,6 +47,12 @@
 	cp0_pinctrl: pinctrl {
 		compatible = "marvell,armada-7k-pinctrl";
 
+		sdhci_pins: sdhi-pins {

sdhi-pins ?

Quoted 13 lines
arch/arm64/boot/dts/marvell/armada-70x0.dtsi +5 -0
+			marvell,pins = "mpp56", "mpp57", "mpp58",
+				       "mpp59", "mpp60", "mpp61", "mpp62";
+			marvell,function = "sdio";
+		};
+
 		nand_pins: nand-pins {
 			marvell,pins =
 			"mpp15", "mpp16", "mpp17", "mpp18",
arch/arm64/boot/dts/marvell/armada-80x0.dtsi +0 -0
index ee67c70bf02e..64100ae204da 100644

arch/arm64/boot/dts/marvell/armada-80x0.dtsi line 74

Quoted 5 lines
arch/arm64/boot/dts/marvell/armada-80x0.dtsi +2 -0
@@ -70,6 +70,12 @@
 &cp0_syscon0 {
 	cp0_pinctrl: pinctrl {
 		compatible = "marvell,armada-8k-cpm-pinctrl";
+
+		sdhci_pins: sdhi-pins {

sdhi-pins ?

Quoted 11 lines
arch/arm64/boot/dts/marvell/armada-80x0.dtsi +4 -0
+			marvell,pins = "mpp56", "mpp57", "mpp58",
+				       "mpp59", "mpp60", "mpp61", "mpp62";
+			marvell,function = "sdio";
+		};
 	};
 };
 
Signature · 1 line
2.17.1
Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!
#4 lore raw

RE: [EXT] Re: [PATCH 02/11] dts: mvebu: Update A8K AP806 SDHCI settings

In reply to Baruch Siach

Hi, Baruch,

Quoted 19 lines

-----Original Message-----
From: Baruch Siach <[email protected]>
Sent: Wednesday, February 3, 2021 15:59
To: Kostya Porotchkin <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Nadav Haklai <[email protected]>; [email protected]; Stefan Chulski <[email protected]>; [email protected]; Ben Peled <[email protected]>; [email protected]; [email protected]
Subject: [EXT] Re: [PATCH 02/11] dts: mvebu: Update A8K AP806 SDHCI settings

External Email

----------------------------------------------------------------------
Hi Konstantin,

On Wed, Feb 03 2021, [email protected] wrote:

Quoted 8 lines
Quoted 5 lines

From: Konstantin Porotchkin <[email protected]>

Update the settings for AP806 SDHCI interface according to latest Xenon drivers changes.
- no need to select the PHY slow mode anymore

Why? Has anything changed since the introduction of marvell,xenon-phy-slow- mode?

[KP] AP806 B0, AP807 and later do not need the "slow mode" set by the default. The HWE-7296210 errata is not applicable to these components and they are able to run AP SDHCI in HS400 8-bit mode.

Kosta

Quoted 25 lines

baruch

Quoted 13 lines
arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi +0 -4
-	 * Not stable in HS modes - phy needs "more calibration", so add
-	 * the "slow-mode" and disable SDR104, SDR50 and DDR50 modes.
-	 */
-	marvell,xenon-phy-slow-mode;
 	no-1-8-v;
 	no-sd;
 	no-sdio;
arch/arm64/boot/dts/marvell/armada-ap80x.dtsi +0 -0
index 12e477f1aeb9..edd6131a0587 100644

arch/arm64/boot/dts/marvell/armada-ap80x.dtsi line 261

Quoted 6 lines
arch/arm64/boot/dts/marvell/armada-ap80x.dtsi +0 -1
@@ -257,7 +257,6 @@
 				clock-names = "core";
 				clocks = <&ap_clk 4>;
 				dma-coherent;
-				marvell,xenon-phy-slow-mode;
 				status = "disabled";
 			};

--

Quoted 8 lines

~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- [email protected] - tel: +972.52.368.4656,
https://urldefense.proofpoint.com/v2/url?u=http-
3A__www.tkos.co.il&d=DwIBAg&c=nKjWec2b6R0mOyPaz7xtfQ&r=- N9sN4p5NSr0JGQoQ_2UCOgAqajG99W1EbSOww0WU8o&m=F567knLB6kbyr- BZRqLFLJgXHENu41578OHxsKQQ- sw&s=eXEBLtBC3CwWIF9XFbHrgSgASz4aMgHi5W1uuXTgdQ4&e= -

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#5 lore raw

Re: [EXT] Re: [PATCH 02/11] dts: mvebu: Update A8K AP806 SDHCI settings

Quoted 27 lines · Kostya Porotchkin

Hi, Baruch,

Quoted 25 lines

-----Original Message-----
From: Baruch Siach <[email protected]>
Sent: Wednesday, February 3, 2021 15:59
To: Kostya Porotchkin <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Nadav Haklai <[email protected]>; [email protected]; Stefan Chulski <[email protected]>; [email protected]; Ben Peled <[email protected]>; [email protected]; [email protected]
Subject: [EXT] Re: [PATCH 02/11] dts: mvebu: Update A8K AP806 SDHCI settings

External Email

----------------------------------------------------------------------
Hi Konstantin,

Quoted 5 lines · On Wed, Feb 03 2021, [email protected] wrote:

From: Konstantin Porotchkin <[email protected]>

Update the settings for AP806 SDHCI interface according to latest Xenon drivers changes.
- no need to select the PHY slow mode anymore

Quoted 5 lines
Quoted 2 lines

Why? Has anything changed since the introduction of marvell,xenon-phy-slow- mode?

[KP] AP806 B0, AP807 and later do not need the "slow mode" set by the default. The HWE-7296210 errata is not applicable to these components and they are able to run AP SDHCI in HS400 8-bit mode.

So what about all those people, such as me, who have A0 silicon on their Macchiatobin boards?

You can't just go around removing DT properties like this.

Signature · 7 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#13 lore raw

RE: [EXT] Re: [PATCH 03/11] dts: mvebu: Add pin control definitions for SDIO interafce

In reply to Baruch Siach
Quoted 20 lines

-----Original Message-----
From: Baruch Siach <[email protected]>
Sent: Wednesday, February 3, 2021 16:01
To: Kostya Porotchkin <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Nadav Haklai <[email protected]>; [email protected]; Stefan Chulski <[email protected]>; [email protected]; Ben Peled <[email protected]>; [email protected]; [email protected]
Subject: [EXT] Re: [PATCH 03/11] dts: mvebu: Add pin control definitions for SDIO interafce

External Email

----------------------------------------------------------------------
Hi Konstantin,

Quoted 7 lines
Quoted 3 lines · On Wed, Feb 03 2021, [email protected] wrote:

From: Konstantin Porotchkin <[email protected]>

Add SDIO mode pin control configration for CP0 on A8K DB.

This patch does not touch the A8K DB device-tree file.

[KP] Right, it changes the SoC DTSI. I missed it when ported the patch. Will fix in the next version

Kosta

Quoted 47 lines

baruch

Quoted 32 lines
---
 arch/arm64/boot/dts/marvell/armada-70x0.dtsi | 6 ++++++
arch/arm64/boot/dts/marvell/armada-80x0.dtsi | 6 ++++++
 2 files changed, 12 insertions(+)
arch/arm64/boot/dts/marvell/armada-70x0.dtsi +6 -0
index 293403a1a333..179218774ba9 100644
@@ -47,6 +47,12 @@
 	cp0_pinctrl: pinctrl {
 		compatible = "marvell,armada-7k-pinctrl";
 
+		sdhci_pins: sdhi-pins {
+			marvell,pins = "mpp56", "mpp57", "mpp58",
+				       "mpp59", "mpp60", "mpp61", "mpp62";
+			marvell,function = "sdio";
+		};
+
 		nand_pins: nand-pins {
 			marvell,pins =
 			"mpp15", "mpp16", "mpp17", "mpp18", diff --git

a/arch/arm64/boot/dts/marvell/armada-80x0.dtsi
b/arch/arm64/boot/dts/marvell/armada-80x0.dtsi
index ee67c70bf02e..64100ae204da 100644

arch/arm64/boot/dts/marvell/armada-80x0.dtsi +0 -0
@@ -70,6 +70,12 @@
 &cp0_syscon0 {

arch/arm64/boot/dts/marvell/armada-80x0.dtsi line 80

Quoted 10 lines
arch/arm64/boot/dts/marvell/armada-80x0.dtsi +6 -0
 	cp0_pinctrl: pinctrl {
 		compatible = "marvell,armada-8k-cpm-pinctrl";
+
+		sdhci_pins: sdhi-pins {
+			marvell,pins = "mpp56", "mpp57", "mpp58",
+				       "mpp59", "mpp60", "mpp61", "mpp62";
+			marvell,function = "sdio";
+		};
 	};
 };

--

Quoted 8 lines

~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- [email protected] - tel: +972.52.368.4656,
https://urldefense.proofpoint.com/v2/url?u=http-
3A__www.tkos.co.il&d=DwIBAg&c=nKjWec2b6R0mOyPaz7xtfQ&r=- N9sN4p5NSr0JGQoQ_2UCOgAqajG99W1EbSOww0WU8o&m=8Kz0ddezxxG41 9tiQOva_I9GUi6QZw9Pa6tRxYugqQw&s=Ky8dBlut-daLt2- 0j3BIwiBEBAVzKi8e9oJetRIzuPA&e= -

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#15 lore raw

RE: [EXT] Re: [PATCH 03/11] dts: mvebu: Add pin control definitions for SDIO interafce

In reply to Russell King - ARM Linux admin

Hu, Russel,

Quoted 36 lines

-----Original Message-----
From: Russell King - ARM Linux admin <[email protected]>
Sent: Wednesday, February 3, 2021 16:28
To: Kostya Porotchkin <[email protected]>
Cc: [email protected]; [email protected]; linux-arm- [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Nadav Haklai <[email protected]>; Stefan Chulski <[email protected]>; Ben Peled <[email protected]>
Subject: [EXT] Re: [PATCH 03/11] dts: mvebu: Add pin control definitions for SDIO interafce

External Email

----------------------------------------------------------------------

Quoted 19 lines · On Wed, Feb 03, 2021 at 03:31:30PM +0200, [email protected] wrote:

From: Konstantin Porotchkin <[email protected]>

Add SDIO mode pin control configration for CP0 on A8K DB.

---
 arch/arm64/boot/dts/marvell/armada-70x0.dtsi | 6 ++++++
arch/arm64/boot/dts/marvell/armada-80x0.dtsi | 6 ++++++
 2 files changed, 12 insertions(+)
arch/arm64/boot/dts/marvell/armada-70x0.dtsi +0 -0
index 293403a1a333..179218774ba9 100644
@@ -47,6 +47,12 @@
 	cp0_pinctrl: pinctrl {
 		compatible = "marvell,armada-7k-pinctrl";
 
Quoted 4 lines

arch/arm64/boot/dts/marvell/armada-70x0.dtsi line 50

Quoted 1 line
arch/arm64/boot/dts/marvell/armada-70x0.dtsi +1 -0
+		sdhci_pins: sdhi-pins {

sdhi-pins ?

[KP] You mean to replace the underline with dash?
Will do it in the next version, no problem.

Quoted 42 lines
Quoted 14 lines
arch/arm64/boot/dts/marvell/armada-70x0.dtsi +5 -0
+			marvell,pins = "mpp56", "mpp57", "mpp58",
+				       "mpp59", "mpp60", "mpp61", "mpp62";
+			marvell,function = "sdio";
+		};
+
 		nand_pins: nand-pins {
 			marvell,pins =
 			"mpp15", "mpp16", "mpp17", "mpp18", diff --git

a/arch/arm64/boot/dts/marvell/armada-80x0.dtsi
b/arch/arm64/boot/dts/marvell/armada-80x0.dtsi
index ee67c70bf02e..64100ae204da 100644

arch/arm64/boot/dts/marvell/armada-80x0.dtsi line 74

Quoted 5 lines
arch/arm64/boot/dts/marvell/armada-80x0.dtsi +2 -0
@@ -70,6 +70,12 @@
 &cp0_syscon0 {
 	cp0_pinctrl: pinctrl {
 		compatible = "marvell,armada-8k-cpm-pinctrl";
+
+		sdhci_pins: sdhi-pins {

sdhi-pins ?

Quoted 11 lines
arch/arm64/boot/dts/marvell/armada-80x0.dtsi +4 -1
+			marvell,pins = "mpp56", "mpp57", "mpp58",
+				       "mpp59", "mpp60", "mpp61", "mpp62";
+			marvell,function = "sdio";
+		};
 	};
 };
 
--

2.17.1

--
RMK's Patch system: https://urldefense.proofpoint.com/v2/url?u=https-
3A__www.armlinux.org.uk_developer_patches_&d=DwIBAg&c=nKjWec2b6R0 mOyPaz7xtfQ&r=- N9sN4p5NSr0JGQoQ_2UCOgAqajG99W1EbSOww0WU8o&m=wUA0mnqioCngi HLZcn2iOBuiWLQtawWb1yfozx_80C4&s=_yolpLSRiJi4CnA- iEzpbF5r77VBdLcM6pouXxTdupk&e=
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!

#6 lore raw

RE: [EXT] Re: [PATCH 02/11] dts: mvebu: Update A8K AP806 SDHCI settings

In reply to Russell King - ARM Linux admin
Quoted 48 lines

-----Original Message-----
From: Russell King - ARM Linux admin <[email protected]>
Sent: Wednesday, February 3, 2021 16:39
To: Kostya Porotchkin <[email protected]>
Cc: Baruch Siach <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Nadav Haklai <[email protected]>; [email protected]; Stefan Chulski <[email protected]>; [email protected]; Ben Peled <[email protected]>; [email protected]; [email protected]
Subject: Re: [EXT] Re: [PATCH 02/11] dts: mvebu: Update A8K AP806 SDHCI settings

Quoted 25 lines · Kostya Porotchkin

Hi, Baruch,

Quoted 23 lines

-----Original Message-----
From: Baruch Siach <[email protected]>
Sent: Wednesday, February 3, 2021 15:59
To: Kostya Porotchkin <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Nadav Haklai <[email protected]>; [email protected]; Stefan Chulski <[email protected]>; [email protected]; Ben Peled <[email protected]>; [email protected]; [email protected]
Subject: [EXT] Re: [PATCH 02/11] dts: mvebu: Update A8K AP806 SDHCI settings

External Email

--------------------------------------------------------------------
--
Hi Konstantin,

Quoted 2 lines · On Wed, Feb 03 2021, [email protected] wrote:

From: Konstantin Porotchkin <[email protected]>

Quoted 7 lines
Quoted 6 lines
Quoted 3 lines

Update the settings for AP806 SDHCI interface according to latest Xenon drivers changes.
- no need to select the PHY slow mode anymore

Why? Has anything changed since the introduction of marvell,xenon-phy-slow- mode?

[KP] AP806 B0, AP807 and later do not need the "slow mode" set by the

Quoted 9 lines

default.

Quoted 2 lines

The HWE-7296210 errata is not applicable to these components and they are able to run AP SDHCI in HS400 8-bit mode.

So what about all those people, such as me, who have A0 silicon on their Macchiatobin boards?

You can't just go around removing DT properties like this.

[KP] So for older systems this "slow mode" parameter could be set on the board level.
When it is set in ap80x,dtsi file it downgrades all systems to HS-SDR52, even if they support HS400 on AP side. MacchiatoBIN AP eMMC is connected to 3.3v regulator and has "no-1-8-v" flag set, so it should remain in low speed anyway.

Quoted 8 lines

--
RMK's Patch system: https://urldefense.proofpoint.com/v2/url?u=https-
3A__www.armlinux.org.uk_developer_patches_&d=DwIBAg&c=nKjWec2b6R0 mOyPaz7xtfQ&r=- N9sN4p5NSr0JGQoQ_2UCOgAqajG99W1EbSOww0WU8o&m=yMC9YPQXZUm QPwlD7KCTVoVTPXCTQwTXD2yVsAo6sxA&s=OuBO2QArzHvV4k_vsNZdmSoDX rL4Q_voTqxrlYU6KKE&e=
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!

#7 lore raw

RE: [EXT] Re: [PATCH 02/11] dts: mvebu: Update A8K AP806 SDHCI settings

Quoted 15 lines

-----Original Message-----
From: linux-arm-kernel <[email protected]> On Behalf Of Kostya Porotchkin
Sent: Wednesday, February 3, 2021 16:51
To: Russell King - ARM Linux admin <[email protected]>
Cc: [email protected]; Baruch Siach <[email protected]>; [email protected]; [email protected]; [email protected]; linux- [email protected]; Nadav Haklai <[email protected]>; [email protected]; Stefan Chulski <[email protected]>; [email protected]; Ben Peled <[email protected]>; linux-arm- [email protected]; [email protected]
Subject: RE: [EXT] Re: [PATCH 02/11] dts: mvebu: Update A8K AP806 SDHCI settings

[KP]

Quoted 20 lines
Quoted 20 lines
Quoted 5 lines
Quoted 5 lines

Hi Konstantin,

Quoted 2 lines · On Wed, Feb 03 2021, [email protected] wrote:

From: Konstantin Porotchkin <[email protected]>

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

Update the settings for AP806 SDHCI interface according to latest Xenon drivers changes.
- no need to select the PHY slow mode anymore

Why? Has anything changed since the introduction of marvell,xenon-phy-slow- mode?

[KP] AP806 B0, AP807 and later do not need the "slow mode" set by the

default.

Quoted 2 lines

The HWE-7296210 errata is not applicable to these components and they are able to run AP SDHCI in HS400 8-bit mode.

So what about all those people, such as me, who have A0 silicon on their Macchiatobin boards?

Quoted 8 lines
Quoted 2 lines

You can't just go around removing DT properties like this.

[KP] So for older systems this "slow mode" parameter could be set on the board level.
When it is set in ap80x,dtsi file it downgrades all systems to HS-SDR52, even if they support HS400 on AP side.
MacchiatoBIN AP eMMC is connected to 3.3v regulator and has "no-1-8-v" flag set, so it should remain in low speed anyway.

[KP] I also forgot to mention this code piece in Xenon driver:

	/* Disable HS200 on Armada AP806 */
	if (priv->hw_version == XENON_AP806)
		host->quirks2 |= SDHCI_QUIRK2_BROKEN_HS200;
Quoted 13 lines
Quoted 4 lines

--
RMK's Patch system: https://urldefense.proofpoint.com/v2/url?u=https-

3A__www.armlinux.org.uk_developer_patches_&d=DwIBAg&c=nKjWec2b6R0

Quoted 2 lines

mOyPaz7xtfQ&r=-

N9sN4p5NSr0JGQoQ_2UCOgAqajG99W1EbSOww0WU8o&m=yMC9YPQXZUm

Quoted 1 line

QPwlD7KCTVoVTPXCTQwTXD2yVsAo6sxA&s=OuBO2QArzHvV4k_vsNZdmSoDX

Quoted 2 lines

rL4Q_voTqxrlYU6KKE&e=
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!

Quoted 9 lines

_______________________________________________
linux-arm-kernel mailing list [email protected]
https://urldefense.proofpoint.com/v2/url?u=http-
3A__lists.infradead.org_mailman_listinfo_linux-2Darm- 2Dkernel&d=DwICAg&c=nKjWec2b6R0mOyPaz7xtfQ&r=- N9sN4p5NSr0JGQoQ_2UCOgAqajG99W1EbSOww0WU8o&m=8f- 1fnISJVHCS4gZTeFgRPXGPiwBevUsFbmYDBmkRWM&s=RBlEEUXG0sOmZHsQ Omurf018V8kSE_IMZR7bDLVJ0FA&e=

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

maintainer
#16 lore raw

Re: [EXT] Re: [PATCH 03/11] dts: mvebu: Add pin control definitions for SDIO interafce

In reply to Kostya Porotchkin
Quoted 5 lines
Quoted 4 lines

Review

Quoted 1 line
(quoted diff) +1 -0
+		sdhci_pins: sdhi-pins {

sdhi-pins ?

[KP] You mean to replace the underline with dash?

I think he would like a c added in the correct place.

Andrew

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#17 lore raw

RE: [EXT] Re: [PATCH 03/11] dts: mvebu: Add pin control definitions for SDIO interafce

Quoted 10 lines
Quoted 7 lines
Quoted 6 lines

Review

Quoted 3 lines
(quoted diff) +1 -0
+		sdhci_pins: sdhi-pins {

sdhi-pins ?

[KP] You mean to replace the underline with dash?

I think he would like a c added in the correct place.

[KP] Ahh, now I see it. Thank you, Andrew!
Kosta

Quoted 1 line

Andrew

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#8 lore raw

Re: [EXT] Re: [PATCH 02/11] dts: mvebu: Update A8K AP806 SDHCI settings

In reply to Kostya Porotchkin
Quoted 3 lines · Kostya Porotchkin

[KP] So for older systems this "slow mode" parameter could be set on the board level.
When it is set in ap80x,dtsi file it downgrades all systems to HS-SDR52, even if they support HS400 on AP side. MacchiatoBIN AP eMMC is connected to 3.3v regulator and has "no-1-8-v" flag set, so it should remain in low speed anyway.

Your reasoning does not make sense.

The ap80x.dtsi file does not specify "marvell,xenon-phy-slow-mode". It is not specified at this level. It is already specified at board level.

Given that Macchiatobin will still use slow mode, why remove the marvell,xenon-phy-slow-mode property from this file?

Also, if you're upgrading ap80x.dtsi to use a bus-width of 8, why keep the bus-width specifier of 8 in the board files?

This patch just doesn't make sense, and your responses to our points seem to add to the confusion.

Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!
#9 lore raw

RE: [EXT] Re: [PATCH 02/11] dts: mvebu: Update A8K AP806 SDHCI settings

Hello, Russell,
I agree that this patch needs rework.
I will definitely do it and issue a new version.

Quoted 12 lines · Kostya Porotchkin
Quoted 1 line

[KP] So for older systems this "slow mode" parameter could be set on the

board level.

Quoted 1 line

When it is set in ap80x,dtsi file it downgrades all systems to HS-SDR52, even

if they support HS400 on AP side.

Quoted 1 line

MacchiatoBIN AP eMMC is connected to 3.3v regulator and has "no-1-8-v"

flag set, so it should remain in low speed anyway.

Your reasoning does not make sense.

The ap80x.dtsi file does not specify "marvell,xenon-phy-slow-mode". It is not specified at this level. It is already specified at board level.

[KP] it does. In current armada-ap80x.dtsi File this specification is on row 260:

			ap_sdhci0: sdhci@6e0000 {
				compatible = "marvell,armada-ap806-sdhci";
				reg = <0x6e0000 0x300>;
				interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
				clock-names = "core";
				clocks = <&ap_clk 4>;
				dma-coherent;
				marvell,xenon-phy-slow-mode;
				status = "disabled";
			};

So I would like to remove this row.

Quoted 2 lines

Given that Macchiatobin will still use slow mode, why remove the marvell,xenon-phy-slow-mode property from this file?

[KP] Agree, I will keep this property in Macchiatobin DTS file.

Quoted 3 lines

Also, if you're upgrading ap80x.dtsi to use a bus-width of 8, why keep the bus- width specifier of 8 in the board files?

[KP] The bus width is updated in A8040 DB DTS. This board utilizes 8-bit interface. The armada-ap80x.dtsi file does not specifies the bus width since it is board-specific.

Quoted 3 lines

This patch just doesn't make sense, and your responses to our points seem to add to the confusion.

[KP] I am sorry about it. Hope my last response clarifies it.

Kosta

Quoted 9 lines

--
RMK's Patch system: https://urldefense.proofpoint.com/v2/url?u=https-
3A__www.armlinux.org.uk_developer_patches_&d=DwIBAg&c=nKjWec2b6R0 mOyPaz7xtfQ&r=- N9sN4p5NSr0JGQoQ_2UCOgAqajG99W1EbSOww0WU8o&m=V27OOcgNqKN2 WrlW2YFvHm_D_dXoP44wPd5zyOKvEBk&s=o3OrmStt1ZuXVNlYklTV_b1wY35 NvPPrdLqwGgtxRZU&e=
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#10 lore raw

Re: [EXT] Re: [PATCH 02/11] dts: mvebu: Update A8K AP806 SDHCI settings

Hi Kosta,

Let me chime in.

śr., 3 lut 2021 o 17:57 Kostya Porotchkin <[email protected]> napisał(a):

Quoted 28 lines

Hello, Russell,
I agree that this patch needs rework.
I will definitely do it and issue a new version.

Quoted 12 lines · Kostya Porotchkin
Quoted 1 line

[KP] So for older systems this "slow mode" parameter could be set on the

board level.

Quoted 1 line

When it is set in ap80x,dtsi file it downgrades all systems to HS-SDR52, even

if they support HS400 on AP side.

Quoted 1 line

MacchiatoBIN AP eMMC is connected to 3.3v regulator and has "no-1-8-v"

flag set, so it should remain in low speed anyway.

Your reasoning does not make sense.

The ap80x.dtsi file does not specify "marvell,xenon-phy-slow-mode". It is not specified at this level. It is already specified at board level.

[KP] it does. In current armada-ap80x.dtsi File this specification is on row 260:

                        ap_sdhci0: sdhci@6e0000 {
                                compatible = "marvell,armada-ap806-sdhci";
                                reg = <0x6e0000 0x300>;
                                interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
                                clock-names = "core";
                                clocks = <&ap_clk 4>;
                                dma-coherent;
                                marvell,xenon-phy-slow-mode;
                                status = "disabled";
                        };
Quoted 6 lines

So I would like to remove this row.

Quoted 2 lines

Given that Macchiatobin will still use slow mode, why remove the marvell,xenon-phy-slow-mode property from this file?

[KP] Agree, I will keep this property in Macchiatobin DTS file.

Please do it another way around.
1. We need to leave the device tree bindings intact as much as possible - specifically for Armada 7k8k changes in this area have been causing enough problems in the past, breaking compatibility between kernel revisions. Moving the property to board level can be good here, but forces all other board dts files to adjust. Unfortunately Linux is a source of truth for the arm64 device tree bindings, but please note other OS's use those files as well - let's minimize the impact for existing HW and drivers.

2. What I propose is to remove marvell,xenon-phy-slow-mode from armada-ap80x.dtsi and add below in armada-ap806.dtsi:

&ap_sdhci0 {
         marvell,xenon-phy-slow-mode;

};

This way AP807 becomes free from the unwanted slow mode setting. Also any user of Armada 7k8k the B0 revision can add below to the board file:

&ap_sdhci0 {
+ /delete-property/marvell,xenon-phy-slow-mode;
};

3. Contrary to the SDK version, sdhci-xenon.c is not capable of checking the SoC revision. HS200 is disabled for all versions of AP806 there - I believe this place requires revisiting, to start relying explicitly on the marvell,xenon-phy-slow-mode setting, rather than the compatible string. I can handle this one.

4. Please move armada-8040-db.dts changes to a separate patch, please.

Thanks,
Marcin

Quoted 7 lines
Quoted 3 lines

Also, if you're upgrading ap80x.dtsi to use a bus-width of 8, why keep the bus- width specifier of 8 in the board files?

[KP] The bus width is updated in A8040 DB DTS. This board utilizes 8-bit interface. The armada-ap80x.dtsi file does not specifies the bus width since it is board-specific.

Quoted 1 line
Quoted 14 lines
Quoted 2 lines

This patch just doesn't make sense, and your responses to our points seem to add to the confusion.

[KP] I am sorry about it. Hope my last response clarifies it.

Kosta

Quoted 9 lines

--
RMK's Patch system: https://urldefense.proofpoint.com/v2/url?u=https-
3A__www.armlinux.org.uk_developer_patches_&d=DwIBAg&c=nKjWec2b6R0 mOyPaz7xtfQ&r=- N9sN4p5NSr0JGQoQ_2UCOgAqajG99W1EbSOww0WU8o&m=V27OOcgNqKN2 WrlW2YFvHm_D_dXoP44wPd5zyOKvEBk&s=o3OrmStt1ZuXVNlYklTV_b1wY35 NvPPrdLqwGgtxRZU&e=
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#24 lore raw

Re: [PATCH 09/11] dts: a3700: enable dma coherence for PCIE interface

In reply to [email protected]

Hi Kosta,

śr., 3 lut 2021 o 14:32 <[email protected]> napisał(a):

Quoted 5 lines

From: Stefan Chulski <[email protected]>

Enavble PCIe dma coherence for A3700 platform

While at it, can we also add:

arch/arm64/boot/dts/marvell/armada-37xx.dtsi +1 -0
@@ -71,6 +71,7 @@ soc {
                compatible = "simple-bus";
                #address-cells = <2>;
                #size-cells = <2>;
+               dma-coherent;
                ranges;
 
                internal-regs@d0000000 {

so that to enable it for all bus-attached interfaces? This safe and will boost IO performance.

Thanks,
Marcin

Quoted 19 lines
---
 arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/marvell/armada-37xx.dtsi +1 -1
index d5b6c0a1c54a..5c0df06bc707 100644
@@ -486,6 +486,7 @@
                        #interrupt-cells = <1>;
                        msi-parent = <&pcie0>;
                        msi-controller;
+                       dma-coherent;
                        ranges = <0x82000000 0 0xe8000000   0 0xe8000000 0 0x1000000 /* Port 0 MEM */
                                  0x81000000 0 0xe9000000   0 0xe9000000 0 0x10000>; /* Port 0 IO*/
                        interrupt-map-mask = <0 0 0 7>;
--
Quoted 2 lines

2.17.1

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel