Fix MMC pin pull configurations
Subsystems (2)
cover Fix MMC pin pull configurations
This series corrects MMC pin pull-up/pull-down configurations across TI AM62L EVM, AM62P SK, & AM62 LP SK boards to properly match their hardware design.
Most boards have external pull-ups on MMC pins, but DT configuration was also enabling internal pulls. Having both internal and external pulls active causes several issues:
- Unnecessary power consumption due to reduced total resistance
- Potential timing issues with higher speed modes due to mismatched rise/fall times across data lines
One board (AM62 LP SK) lacks external pulls on eMMC data pins and requires internal pulls to be explicitly enabled to prevent floating lines.
All changes are based on the respective board schematics referenced in each patch.
Judith Mendez (4):
arm64: dts: ti: k3-am62p5-sk: Disable MMC1 internal pulls on data
lines
arm64: dts: ti: k3-am62l-evm: Disable MMC0 internal pulls
arm64: dts: ti: k3-am62l-evm: Disable MMC1 internal pulls on data pins
arm64: dts: ti: k3-am62-lp-sk: Enable internal pulls for MMC0 data
pins
arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts | 14 +++++++------- arch/arm64/boot/dts/ti/k3-am62l3-evm.dts | 10 +++++----- arch/arm64/boot/dts/ti/k3-am62p5-sk.dts | 6 +++--- 3 files changed, 15 insertions(+), 15 deletions(-)
Signature · 1 line
2.52.0
PATCH 1/4 arm64: dts: ti: k3-am62p5-sk: Disable MMC1 internal pulls on data lines
AM62p SK has external pullups on DATA 1-3 pins [0]. Remove internal pullups considering:
- having both internal and external pullups reduces the total pull-up resistance < 10K resulting in unnecessary power consumption
- mismatched pullup resistace between D0 and D1-D3 may cause potential issues for modes with tighter timing requirements. The different pull-up values cause different rise/fall times on each data line.
[0] https://www.ti.com/lit/zip/SPRR487
--- arch/arm64/boot/dts/ti/k3-am62p5-sk.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/ti/k3-am62p5-sk.dts +3 -3
@@ -271,9 +271,9 @@ main_mmc1_pins_default: main-mmc1-default-pins { AM62PX_IOPAD(0x023c, PIN_INPUT, 0) /* (H20) MMC1_CMD */ AM62PX_IOPAD(0x0234, PIN_OUTPUT, 0) /* (J24) MMC1_CLK */ AM62PX_IOPAD(0x0230, PIN_INPUT, 0) /* (H21) MMC1_DAT0 */ - AM62PX_IOPAD(0x022c, PIN_INPUT_PULLUP, 0) /* (H23) MMC1_DAT1 */ - AM62PX_IOPAD(0x0228, PIN_INPUT_PULLUP, 0) /* (H22) MMC1_DAT2 */ - AM62PX_IOPAD(0x0224, PIN_INPUT_PULLUP, 0) /* (H25) MMC1_DAT3 */ + AM62PX_IOPAD(0x022c, PIN_INPUT, 0) /* (H23) MMC1_DAT1 */ + AM62PX_IOPAD(0x0228, PIN_INPUT, 0) /* (H22) MMC1_DAT2 */ + AM62PX_IOPAD(0x0224, PIN_INPUT, 0) /* (H25) MMC1_DAT3 */ AM62PX_IOPAD(0x0240, PIN_INPUT, 0) /* (D23) MMC1_SDCD */ >; bootph-all;
Signature · 1 line
2.52.0
PATCH 2/4 arm64: dts: ti: k3-am62l-evm: Disable MMC0 internal pulls
In reply to Judith MendezAM62L EVM has external pullups on MMC0 CMD and D0 pins [0]. Remove internal pullups considering:
- having both internal and external pullups reduces the total pull-up resistance < 47K resulting in a value below the spec recommended 50K ohms
- having both pullups results in unnecessary power consumption
[0] https://www.ti.com/lit/zip/SPRCAL6
--- arch/arm64/boot/dts/ti/k3-am62l3-evm.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/ti/k3-am62l3-evm.dts +2 -2
@@ -253,9 +253,9 @@ AM62LX_IOPAD(0x01e0, PIN_INPUT_PULLUP, 0) /* (D8) I2C2_SDA */ mmc0_pins_default: mmc0-default-pins { pinctrl-single,pins = < - AM62LX_IOPAD(0x0214, PIN_INPUT_PULLUP, 0) /* (D2) MMC0_CMD */ + AM62LX_IOPAD(0x0214, PIN_INPUT, 0) /* (D2) MMC0_CMD */ AM62LX_IOPAD(0x020c, PIN_OUTPUT, 0) /* (B2) MMC0_CLK */ - AM62LX_IOPAD(0x0208, PIN_INPUT_PULLUP, 0) /* (D3) MMC0_DAT0 */ + AM62LX_IOPAD(0x0208, PIN_INPUT, 0) /* (D3) MMC0_DAT0 */ AM62LX_IOPAD(0x0204, PIN_INPUT_PULLUP, 0) /* (D4) MMC0_DAT1 */ AM62LX_IOPAD(0x0200, PIN_INPUT_PULLUP, 0) /* (C1) MMC0_DAT2 */ AM62LX_IOPAD(0x01fc, PIN_INPUT_PULLUP, 0) /* (C2) MMC0_DAT3 */
Signature · 1 line
2.52.0
Re: [PATCH 2/4] arm64: dts: ti: k3-am62l-evm: Disable MMC0 internal pulls
Hey Judith,
Quoted 19 lines · Judith Mendez
AM62L EVM has external pullups on MMC0 CMD and D0 pins [0]. Remove internal pullups considering:
- having both internal and external pullups reduces the total pull-up resistance < 47K resulting in a value below the spec recommended 50K ohms
- having both pullups results in unnecessary power consumptionFixes 00fb4c73b67d ("arm64: dts: ti: k3-am62l: add initial reference board file")[0] https://www.ti.com/lit/zip/SPRCAL6
Signed-off-by Judith Mendez <[email protected]>--- arch/arm64/boot/dts/ti/k3-am62l3-evm.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm64/boot/dts/ti/k3-am62l3-evm.dts +0
-0@@ -253,9 +253,9 @@ AM62LX_IOPAD(0x01e0, PIN_INPUT_PULLUP, 0) /* (D8) I2C2_SDA */
arch/arm64/boot/dts/ti/k3-am62l3-evm.dts AM62LX_IOPAD(0x01e0, PIN_INPUT_PULLUP, 0) /* (D8) I2C2_SDA */ · line 261
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-am62l3-evm.dts +2
-2mmc0_pins_default: mmc0-default-pins { pinctrl-single,pins = < - AM62LX_IOPAD(0x0214, PIN_INPUT_PULLUP, 0) /* (D2) MMC0_CMD */ + AM62LX_IOPAD(0x0214, PIN_INPUT, 0) /* (D2) MMC0_CMD */ AM62LX_IOPAD(0x020c, PIN_OUTPUT, 0) /* (B2) MMC0_CLK */ - AM62LX_IOPAD(0x0208, PIN_INPUT_PULLUP, 0) /* (D3) MMC0_DAT0 */ + AM62LX_IOPAD(0x0208, PIN_INPUT, 0) /* (D3) MMC0_DAT0 */ AM62LX_IOPAD(0x0204, PIN_INPUT_PULLUP, 0) /* (D4) MMC0_DAT1 */ AM62LX_IOPAD(0x0200, PIN_INPUT_PULLUP, 0) /* (C1) MMC0_DAT2 */ AM62LX_IOPAD(0x01fc, PIN_INPUT_PULLUP, 0) /* (C2) MMC0_DAT3 */
Wont the change result in mismatched pullup resistance and will the mismatch between D0 and D1-D3 won't cause potential timing issues for modes with tighter timing requirements?
Regards,
Moteen
Re: [PATCH 2/4] arm64: dts: ti: k3-am62l-evm: Disable MMC0 internal pulls
Hello Moteen,
Quoted 29 lines · Moteen Shah
Hey Judith,
Quoted 26 lines · Judith Mendez
AM62L EVM has external pullups on MMC0 CMD and D0 pins [0]. Remove internal pullups considering:
- having both internal and external pullups reduces the total pull-up resistance < 47K resulting in a value below the spec recommended 50K ohms
- having both pullups results in unnecessary power consumptionFixes 00fb4c73b67d ("arm64: dts: ti: k3-am62l: add initial reference board file")[0] https://www.ti.com/lit/zip/SPRCAL6
Signed-off-by Judith Mendez <[email protected]>---
arch/arm64/boot/dts/ti/k3-am62l3-evm.dts| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)arch/arm64/boot/dts/ti/k3-am62l3-evm.dts +0
-0@@ -253,9 +253,9 @@ AM62LX_IOPAD(0x01e0, PIN_INPUT_PULLUP, 0) /* (D8)
I2C2_SDA*/
mmc0_pins_default: mmc0-default-pins { pinctrl-single,pins = <
-AM62LX_IOPAD(0x0214, PIN_INPUT_PULLUP, 0)/* (D2)MMC0_CMD*/
+AM62LX_IOPAD(0x0214, PIN_INPUT, 0)/* (D2)MMC0_CMD*/AM62LX_IOPAD(0x020c, PIN_OUTPUT, 0)/* (B2)MMC0_CLK*/ -AM62LX_IOPAD(0x0208, PIN_INPUT_PULLUP, 0)/* (D3)
Quoted 8 lines
Quoted 5 lines
MMC0_DAT0*/
+AM62LX_IOPAD(0x0208, PIN_INPUT, 0)/* (D3)MMC0_DAT0*/AM62LX_IOPAD(0x0204, PIN_INPUT_PULLUP, 0)/* (D4)MMC0_DAT1*/AM62LX_IOPAD(0x0200, PIN_INPUT_PULLUP, 0)/* (C1)MMC0_DAT2*/AM62LX_IOPAD(0x01fc, PIN_INPUT_PULLUP, 0)/* (C2)MMC0_DAT3*/Wont the change result in mismatched pullup resistance and will the mismatch between D0 and D1-D3 won't cause potential timing issues for modes with tighter timing requirements?
If you leave the internal pullup on MMC0_DAT0, then you will have a greater mismatch actually. But I noticed a wrong detail on the commit description after reviewing the patches again. So will respin the series, thanks for reviewing Moteen.
~ Judith
PATCH 3/4 arm64: dts: ti: k3-am62l-evm: Disable MMC1 internal pulls on data pins
In reply to Judith MendezAM62L EVM has external pullups on MMC1 D1-D3 pins [0]. Remove internal pullups considering:
- having both internal and external pullups reduces the total pull-up resistance < 47K resulting in unnecessary power consumption
- mismatched pullup resistace between D0 and D1-D3 may cause potential issues for modes with tighter timing requirements. The different pull-up values cause different rise/fall times on each data line.
[0] https://www.ti.com/lit/zip/SPRCAL6
--- arch/arm64/boot/dts/ti/k3-am62l3-evm.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/ti/k3-am62l3-evm.dts +3 -3
@@ -272,9 +272,9 @@ mmc1_pins_default: mmc1-default-pins { AM62LX_IOPAD(0x0230, PIN_INPUT, 0) /* (Y3) MMC1_CMD */ AM62LX_IOPAD(0x0228, PIN_OUTPUT, 0) /* (Y2) MMC1_CLK */ AM62LX_IOPAD(0x0224, PIN_INPUT, 0) /* (AA1) MMC1_DAT0 */ - AM62LX_IOPAD(0x0220, PIN_INPUT_PULLUP, 0) /* (Y4) MMC1_DAT1 */ - AM62LX_IOPAD(0x021c, PIN_INPUT_PULLUP, 0) /* (AA2) MMC1_DAT2 */ - AM62LX_IOPAD(0x0218, PIN_INPUT_PULLUP, 0) /* (AB2) MMC1_DAT3 */ + AM62LX_IOPAD(0x0220, PIN_INPUT, 0) /* (Y4) MMC1_DAT1 */ + AM62LX_IOPAD(0x021c, PIN_INPUT, 0) /* (AA2) MMC1_DAT2 */ + AM62LX_IOPAD(0x0218, PIN_INPUT, 0) /* (AB2) MMC1_DAT3 */ AM62LX_IOPAD(0x0234, PIN_INPUT, 0) /* (B6) MMC1_SDCD */ >; bootph-all;
Signature · 1 line
2.52.0
PATCH 4/4 arm64: dts: ti: k3-am62-lp-sk: Enable internal pulls for MMC0 data pins
In reply to Judith MendezAM62 LP SK board does not have external pullups on MMC0 D1-D7 pins [0], enable internal pullups considering:
- floating lines violate JDEC spec recommendations
- mismatched pullup resistace between D0 and D1-D7 may cause potential issues for modes with tighter timing requirements. The different pull-up values cause different rise/fall times on each data line.
[0] https://www.ti.com/lit/zip/SPRR471
--- arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts +7 -7
@@ -88,13 +88,13 @@ main_mmc0_pins_default: main-mmc0-default-pins { AM62X_IOPAD(0x220, PIN_INPUT, 0) /* (V3) MMC0_CMD */ AM62X_IOPAD(0x218, PIN_INPUT, 0) /* (Y1) MMC0_CLK */ AM62X_IOPAD(0x214, PIN_INPUT, 0) /* (V2) MMC0_DAT0 */ - AM62X_IOPAD(0x210, PIN_INPUT, 0) /* (V1) MMC0_DAT1 */ - AM62X_IOPAD(0x20c, PIN_INPUT, 0) /* (W2) MMC0_DAT2 */ - AM62X_IOPAD(0x208, PIN_INPUT, 0) /* (W1) MMC0_DAT3 */ - AM62X_IOPAD(0x204, PIN_INPUT, 0) /* (Y2) MMC0_DAT4 */ - AM62X_IOPAD(0x200, PIN_INPUT, 0) /* (W3) MMC0_DAT5 */ - AM62X_IOPAD(0x1fc, PIN_INPUT, 0) /* (W4) MMC0_DAT6 */ - AM62X_IOPAD(0x1f8, PIN_INPUT, 0) /* (V4) MMC0_DAT7 */ + AM62X_IOPAD(0x210, PIN_INPUT_PULLUP, 0) /* (V1) MMC0_DAT1 */ + AM62X_IOPAD(0x20c, PIN_INPUT_PULLUP, 0) /* (W2) MMC0_DAT2 */ + AM62X_IOPAD(0x208, PIN_INPUT_PULLUP, 0) /* (W1) MMC0_DAT3 */ + AM62X_IOPAD(0x204, PIN_INPUT_PULLUP, 0) /* (Y2) MMC0_DAT4 */ + AM62X_IOPAD(0x200, PIN_INPUT_PULLUP, 0) /* (W3) MMC0_DAT5 */ + AM62X_IOPAD(0x1fc, PIN_INPUT_PULLUP, 0) /* (W4) MMC0_DAT6 */ + AM62X_IOPAD(0x1f8, PIN_INPUT_PULLUP, 0) /* (V4) MMC0_DAT7 */ >; };
Signature · 1 line
2.52.0
Re: [PATCH 4/4] arm64: dts: ti: k3-am62-lp-sk: Enable internal pulls for MMC0 data pins
Quoted 29 lines · Judith Mendez
AM62 LP SK board does not have external pullups on MMC0 D1-D7 pins [0], enable internal pullups considering:
- floating lines violate JDEC spec recommendations
- mismatched pullup resistace between D0 and D1-D7 may cause potential issues for modes with tighter timing requirements. The different pull-up values cause different rise/fall times on each data line.Fixes a0b8da04153e ("arm64: dts: ti: k3-am62*: Move eMMC pinmux to top level board file")[0] https://www.ti.com/lit/zip/SPRR471
Signed-off-by Judith Mendez <[email protected]>--- arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts +0
-7@@ -88,13 +88,13 @@ main_mmc0_pins_default: main-mmc0-default-pins { AM62X_IOPAD(0x220, PIN_INPUT, 0) /* (V3) MMC0_CMD */ AM62X_IOPAD(0x218, PIN_INPUT, 0) /* (Y1) MMC0_CLK */ AM62X_IOPAD(0x214, PIN_INPUT, 0) /* (V2) MMC0_DAT0 */ - AM62X_IOPAD(0x210, PIN_INPUT, 0) /* (V1) MMC0_DAT1 */ - AM62X_IOPAD(0x20c, PIN_INPUT, 0) /* (W2) MMC0_DAT2 */ - AM62X_IOPAD(0x208, PIN_INPUT, 0) /* (W1) MMC0_DAT3 */ - AM62X_IOPAD(0x204, PIN_INPUT, 0) /* (Y2) MMC0_DAT4 */ - AM62X_IOPAD(0x200, PIN_INPUT, 0) /* (W3) MMC0_DAT5 */ - AM62X_IOPAD(0x1fc, PIN_INPUT, 0) /* (W4) MMC0_DAT6 */ - AM62X_IOPAD(0x1f8, PIN_INPUT, 0) /* (V4) MMC0_DAT7 */
arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts main_mmc0_pins_default: main-mmc0-default-pins { · line 100
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts +7
-0+ AM62X_IOPAD(0x210, PIN_INPUT_PULLUP, 0) /* (V1) MMC0_DAT1 */ + AM62X_IOPAD(0x20c, PIN_INPUT_PULLUP, 0) /* (W2) MMC0_DAT2 */ + AM62X_IOPAD(0x208, PIN_INPUT_PULLUP, 0) /* (W1) MMC0_DAT3 */ + AM62X_IOPAD(0x204, PIN_INPUT_PULLUP, 0) /* (Y2) MMC0_DAT4 */ + AM62X_IOPAD(0x200, PIN_INPUT_PULLUP, 0) /* (W3) MMC0_DAT5 */ + AM62X_IOPAD(0x1fc, PIN_INPUT_PULLUP, 0) /* (W4) MMC0_DAT6 */ + AM62X_IOPAD(0x1f8, PIN_INPUT_PULLUP, 0) /* (V4) MMC0_DAT7 */ >; };
Same question as of the other patch, won't the mismatch in resistance between D0 and other data lines will cause an issue here.
Regards,
Moteen
Quoted 11 lines · Judith Mendez
This series corrects MMC pin pull-up/pull-down configurations across TI AM62L EVM, AM62P SK, & AM62 LP SK boards to properly match their hardware design.
Most boards have external pull-ups on MMC pins, but DT configuration was also enabling internal pulls. Having both internal and external pulls active causes several issues:
- Unnecessary power consumption due to reduced total resistance
- Potential timing issues with higher speed modes due to mismatched rise/fall times across data lines
Quoted 6 lines
One board (AM62 LP SK) lacks external pulls on eMMC data pins and requires internal pulls to be explicitly enabled to prevent floating lines.
All changes are based on the respective board schematics referenced in each patch.
For the series
Regards,
Moteen
Quoted 13 lines
Judith Mendez (4):
arm64: dts: ti: k3-am62p5-sk: Disable MMC1 internal pulls on data
lines
arm64: dts: ti: k3-am62l-evm: Disable MMC0 internal pulls
arm64: dts: ti: k3-am62l-evm: Disable MMC1 internal pulls on data pins
arm64: dts: ti: k3-am62-lp-sk: Enable internal pulls for MMC0 data
pinsarch/arm64/boot/dts/ti/k3-am62-lp-sk.dts | 14 +++++++------- arch/arm64/boot/dts/ti/k3-am62l3-evm.dts | 10 +++++----- arch/arm64/boot/dts/ti/k3-am62p5-sk.dts | 6 +++--- 3 files changed, 15 insertions(+), 15 deletions(-)