Add power-supply properties for sdmmc nodes on Microchip boards
Subsystems (2)
v3 cover Add power-supply properties for sdmmc nodes on Microchip boards
This patch series adds power-supply properties for sdmmc nodes on Microchip boards.
Changes in v3:
--------------
* Update the commit description for each board in order to wrap the line at max 75 columns.
Changes in v2:
--------------
* Update the commit description for each board.
* The goal is to keep the vqmmc at 3V3 in order to use the sd high-speed mode.
Mihai Sain (8):
ARM: dts: microchip: sam9x60_curiosity: Add power-supply properties for sdmmc nodes
ARM: dts: microchip: sam9x60ek: Add power-supply properties for sdmmc nodes
ARM: dts: microchip: sama5d27_som1_ek: Add power-supply properties for sdmmc nodes
ARM: dts: microchip: sama5d27_wlsom1: Add power-supply property for sdmmc1 node
ARM: dts: microchip: sama5d27_wlsom1_ek: Add power-supply property for sdmmc0 node
ARM: dts: microchip: sama5d29_curiosity: Add power-supply properties for sdmmc nodes
ARM: dts: microchip: sama5d2_icp: Add power-supply property for sdmmc0 node
ARM: dts: microchip: sama5d2_xplained: Add power-supply property for sdmmc0 node
Signature · 1 line
2.43.0
PATCH v3 1/8 ARM: dts: microchip: sam9x60_curiosity: Add power-supply properties for sdmmc nodes
The sdmmc0 and sdmmc1 controllers are powered from 3.3V regulator. Add vmmc-supply and vqmmc-supply properties to sdmmc nodes. The sdmmc controller from SAM9X60 MPU doesn't support the IO voltage signaling/switching required by the UHS sd-card. In order to use the sd high-speed mode, keep vqmmc at 3V3.
--- arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts +4 -0
@@ -452,6 +452,8 @@ &sdmmc0 { pinctrl-0 = <&pinctrl_sdmmc0_default &pinctrl_sdmmc0_cd>; cd-gpios = <&pioA 25 GPIO_ACTIVE_LOW>; disable-wp; + vmmc-supply = <&vdd1_3v3>; + vqmmc-supply = <&vdd1_3v3>; status = "okay"; };
@@ -460,6 +462,8 @@ &sdmmc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sdmmc1_default>; disable-wp; + vmmc-supply = <&vdd1_3v3>; + vqmmc-supply = <&vdd1_3v3>; status = "okay"; };
Signature · 1 line
2.43.0
PATCH v3 2/8 ARM: dts: microchip: sam9x60ek: Add power-supply properties for sdmmc nodes
In reply to Mihai SainThe sdmmc0 and sdmmc1 controllers are powered from 3.3V regulator. Add vmmc-supply and vqmmc-supply properties to sdmmc nodes. The sdmmc controller from SAM9X60 MPU doesn't support the IO voltage signaling/switching required by the UHS sd-card. In order to use the sd high-speed mode, keep vqmmc at 3V3.
--- arch/arm/boot/dts/microchip/at91-sam9x60ek.dts | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/boot/dts/microchip/at91-sam9x60ek.dts +4 -0
@@ -560,6 +560,8 @@ &sdmmc0 { status = "okay"; cd-gpios = <&pioA 23 GPIO_ACTIVE_LOW>; disable-wp; + vmmc-supply = <&vdd1_3v3>; + vqmmc-supply = <&vdd1_3v3>; }; &sdmmc1 {
@@ -568,6 +570,8 @@ &sdmmc1 { pinctrl-0 = <&pinctrl_sdmmc1_default>; no-1-8-v; non-removable; + vmmc-supply = <&vdd1_3v3>; + vqmmc-supply = <&vdd1_3v3>; status = "disabled"; /* Conflict with flx4. */ };
Signature · 1 line
2.43.0
PATCH v3 3/8 ARM: dts: microchip: sama5d27_som1_ek: Add power-supply properties for sdmmc nodes
In reply to Mihai SainThe sdmmc0 and sdmmc1 controllers are powered from 3.3V regulator. Add vmmc-supply and vqmmc-supply properties to sdmmc nodes. The sdmmc controller from SAMA5D2 MPU has support for
IO voltage signaling/switching required by the UHS sd-card. In order to avoid the issues from the tuning procedure required by the UHS cards, keep the vqmmc at 3V3 to use the sd high-speed mode.
--- arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts +4 -0
@@ -56,6 +56,8 @@ sdmmc0: sdio-host@a0000000 { bus-width = <8>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sdmmc0_default>; + vmmc-supply = <&vddin_3v3>; + vqmmc-supply = <&vddin_3v3>; status = "okay"; };
@@ -63,6 +65,8 @@ sdmmc1: sdio-host@b0000000 { bus-width = <4>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sdmmc1_default>; + vmmc-supply = <&vddin_3v3>; + vqmmc-supply = <&vddin_3v3>; status = "okay"; };
Signature · 1 line
2.43.0
claudiu beznea
maintainerRe: [PATCH v3 3/8] ARM: dts: microchip: sama5d27_som1_ek: Add power-supply properties for sdmmc nodes
Hi, Mihai,
I'm replying to this series as the description is still better to me than the one from v4, but, few notes:
Quoted 1 line · Mihai Sain
The sdmmc0 and sdmmc1 controllers are powered from 3.3V regulator.
In schematic at [1] (for SDMMC0 at least) I see VDDSDHC could be either 1v8 or 3v3 and is selected by SDMMC_VDDSEL signal. Maybe update the description to reflect the this.
Quoted 3 lines
Add vmmc-supply and vqmmc-supply properties to sdmmc nodes. The sdmmc controller from SAMA5D2 MPU has support for IO voltage signaling/switching required by the UHS sd-card.
Ok, it has support as you mentioned in one of the replies to v1.
Quoted 2 lines
In order to avoid the issues from the tuning procedure required by the UHS cards, keep the vqmmc at 3V3 to use the sd high-speed mode.
But it is still not clear enough for me why you want to keep it at 3v3. Maybe it would have been clearer if you kept the statement from your reply to v1:
"On the SAMA5 MPUs there is support for IO voltage switching but since we have issues with the tuning procedure required but the UHS cards, we want to keep vqmmc at 3V3 in order to use high-speed mode"
Thank you,
Claudiu Beznea
Quoted 28 lines
Signed-off-by Mihai Sain <[email protected]>--- arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts | 4 ++++ 1 file changed, 4 insertions(+)arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts +4
-0@@ -56,6 +56,8 @@ sdmmc0: sdio-host@a0000000 { bus-width = <8>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sdmmc0_default>; + vmmc-supply = <&vddin_3v3>; + vqmmc-supply = <&vddin_3v3>; status = "okay"; };@@ -63,6 +65,8 @@ sdmmc1: sdio-host@b0000000 { bus-width = <4>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sdmmc1_default>; + vmmc-supply = <&vddin_3v3>; + vqmmc-supply = <&vddin_3v3>; status = "okay"; };
PATCH v3 4/8 ARM: dts: microchip: sama5d27_wlsom1: Add power-supply property for sdmmc1 node
In reply to Mihai SainThe sdmmc1 controller is powered from 3.3V regulator. Add vmmc-supply and vqmmc-supply properties to sdmmc nodes. The sdmmc controller from SAMA5D2 MPU has support for
IO voltage signaling/switching required by the UHS sd-card. In order to avoid the issues from the tuning procedure required by the UHS cards, keep the vqmmc at 3V3 to use the sd high-speed mode.
--- arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1.dtsi +2 -0
@@ -368,6 +368,8 @@ &sdmmc1 { no-1-8-v; non-removable; bus-width = <4>; + vmmc-supply = <&vdd_3v3>; + vqmmc-supply = <&vdd_3v3>; status = "okay"; wilc: wifi@0 {
Signature · 1 line
2.43.0
PATCH v3 5/8 ARM: dts: microchip: sama5d27_wlsom1_ek: Add power-supply property for sdmmc0 node
In reply to Mihai SainThe sdmmc0 controller is powered from 3.3V regulator. Add vmmc-supply and vqmmc-supply properties to sdmmc0 node. The sdmmc controller from SAMA5D2 MPU has support for
IO voltage signaling/switching required by the UHS sd-card. In order to avoid the issues from the tuning procedure required by the UHS cards, keep the vqmmc at 3V3 to use the sd high-speed mode.
--- arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1_ek.dts | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1_ek.dts +2 -0
@@ -199,6 +199,8 @@ &sdmmc0 { bus-width = <4>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sdmmc0_default>; + vmmc-supply = <&vdd_3v3>; + vqmmc-supply = <&vdd_3v3>; status = "okay"; };
Signature · 1 line
2.43.0
claudiu beznea
maintainerRe: [PATCH v3 5/8] ARM: dts: microchip: sama5d27_wlsom1_ek: Add power-supply property for sdmmc0 node
Quoted 1 line · Mihai Sain
The sdmmc0 controller is powered from 3.3V regulator.
Same here. SDMMC0 data lines are powered by VDDSDHC which could be 1v8/3v3.
Quoted 24 lines
Add vmmc-supply and vqmmc-supply properties to sdmmc0 node. The sdmmc controller from SAMA5D2 MPU has support for
IO voltage signaling/switching required by the UHS sd-card. In order to avoid the issues from the tuning procedure required by the UHS cards, keep the vqmmc at 3V3 to use the sd high-speed mode.Signed-off-by Mihai Sain <[email protected]>--- arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1_ek.dts | 2 ++ 1 file changed, 2 insertions(+)arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1_ek.dts +2
-0@@ -199,6 +199,8 @@ &sdmmc0 { bus-width = <4>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sdmmc0_default>; + vmmc-supply = <&vdd_3v3>; + vqmmc-supply = <&vdd_3v3>; status = "okay"; };
PATCH v3 6/8 ARM: dts: microchip: sama5d29_curiosity: Add power-supply properties for sdmmc nodes
In reply to Mihai SainThe sdmmc0 and sdmmc1 controllers are powered from 3.3V regulator. Add vmmc-supply and vqmmc-supply properties to sdmmc nodes. The sdmmc controller from SAMA5D2 MPU has support for
IO voltage signaling/switching required by the UHS sd-card. In order to avoid the issues from the tuning procedure required by the UHS cards, keep the vqmmc at 3V3 to use the sd high-speed mode.
--- arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts +4 -0
@@ -504,6 +504,8 @@ &sdmmc0 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sdmmc0_default>; disable-wp; + vmmc-supply = <&vdd_3v3>; + vqmmc-supply = <&vdd_3v3>; status = "okay"; };
@@ -512,6 +514,8 @@ &sdmmc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sdmmc1_default>; disable-wp; + vmmc-supply = <&vdd_3v3>; + vqmmc-supply = <&vdd_3v3>; status = "okay"; };
Signature · 1 line
2.43.0
claudiu beznea
maintainerRe: [PATCH v3 6/8] ARM: dts: microchip: sama5d29_curiosity: Add power-supply properties for sdmmc nodes
Quoted 1 line · Mihai Sain
The sdmmc0 and sdmmc1 controllers are powered from 3.3V regulator.
Same here (for SDMMC0), according to
https://ww1.microchip.com/downloads/aemDocuments/documents/MPU32/ProductDocuments/UserGuides/SAMA5D29-Curiosity-EV07R15A-Users-Guide-DS60001822.pdf
Quoted 33 lines
Add vmmc-supply and vqmmc-supply properties to sdmmc nodes. The sdmmc controller from SAMA5D2 MPU has support for
IO voltage signaling/switching required by the UHS sd-card. In order to avoid the issues from the tuning procedure required by the UHS cards, keep the vqmmc at 3V3 to use the sd high-speed mode.Signed-off-by Mihai Sain <[email protected]>--- arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts | 4 ++++ 1 file changed, 4 insertions(+)arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts +4
-0@@ -504,6 +504,8 @@ &sdmmc0 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sdmmc0_default>; disable-wp; + vmmc-supply = <&vdd_3v3>; + vqmmc-supply = <&vdd_3v3>; status = "okay"; };@@ -512,6 +514,8 @@ &sdmmc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sdmmc1_default>; disable-wp; + vmmc-supply = <&vdd_3v3>; + vqmmc-supply = <&vdd_3v3>; status = "okay"; };
PATCH v3 7/8 ARM: dts: microchip: sama5d2_icp: Add power-supply property for sdmmc0 node
In reply to Mihai SainThe sdmmc0 controller is powered from 3.3V regulator. Add vmmc-supply and vqmmc-supply properties to sdmmc0 node. The sdmmc controller from SAMA5D2 MPU has support for
IO voltage signaling/switching required by the UHS sd-card. In order to avoid the issues from the tuning procedure required by the UHS cards, keep the vqmmc at 3V3 to use the sd high-speed mode.
--- arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts +2 -0
@@ -712,6 +712,8 @@ &sdmmc0 { bus-width = <4>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sdmmc0_default>; + vmmc-supply = <&vdd_io_reg>; // 3.3V + vqmmc-supply = <&vdd_io_reg>; // 3.3V status = "okay"; };
Signature · 1 line
2.43.0
PATCH v3 8/8 ARM: dts: microchip: sama5d2_xplained: Add power-supply property for sdmmc0 node
In reply to Mihai SainThe sdmmc0 controller is powered from 3.3V regulator. Add vmmc-supply and vqmmc-supply properties to sdmmc0 node. The sdmmc controller from SAMA5D2 MPU has support for
IO voltage signaling/switching required by the UHS sd-card. In order to avoid the issues from the tuning procedure required by the UHS cards, keep the vqmmc at 3V3 to use the sd high-speed mode.
--- arch/arm/boot/dts/microchip/at91-sama5d2_xplained.dts | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/boot/dts/microchip/at91-sama5d2_xplained.dts +2 -0
@@ -67,6 +67,8 @@ sdmmc0: sdio-host@a0000000 { pinctrl-0 = <&pinctrl_sdmmc0_default>; non-removable; mmc-ddr-3_3v; + vmmc-supply = <&vdd_3v3_reg>; + vqmmc-supply = <&vdd_3v3_reg>; status = "okay"; };
Signature · 1 line
2.43.0
claudiu beznea
maintainerRe: [PATCH v3 8/8] ARM: dts: microchip: sama5d2_xplained: Add power-supply property for sdmmc0 node
Quoted 1 line · Mihai Sain
The sdmmc0 controller is powered from 3.3V regulator.
Same here according to
https://ww1.microchip.com/downloads/en/DeviceDoc/SAMA5D2C-XULT-User%27s-Guide-50002691E.pdf
Quoted 24 lines
Add vmmc-supply and vqmmc-supply properties to sdmmc0 node. The sdmmc controller from SAMA5D2 MPU has support for
IO voltage signaling/switching required by the UHS sd-card. In order to avoid the issues from the tuning procedure required by the UHS cards, keep the vqmmc at 3V3 to use the sd high-speed mode.Signed-off-by Mihai Sain <[email protected]>--- arch/arm/boot/dts/microchip/at91-sama5d2_xplained.dts | 2 ++ 1 file changed, 2 insertions(+)arch/arm/boot/dts/microchip/at91-sama5d2_xplained.dts +2
-0@@ -67,6 +67,8 @@ sdmmc0: sdio-host@a0000000 { pinctrl-0 = <&pinctrl_sdmmc0_default>; non-removable; mmc-ddr-3_3v; + vmmc-supply = <&vdd_3v3_reg>; + vqmmc-supply = <&vdd_3v3_reg>; status = "okay"; };