The following are dts patches to add MMC/SD Support on TI's J721e base
board.
Patches depend on Lokesh's gpio patches[1] and device exclusivity patches[2].
[1] https://patchwork.kernel.org/cover/11085643/
[2] https://patchwork.kernel.org/cover/11051559/
Faiz Abbas (2):
arm64: dts: ti: j721e-main: Add SDHCI nodes
arm64: dts: ti: j721e-common-proc-board: Add Support for eMMC and SD
card
.../dts/ti/k3-j721e-common-proc-board.dts | 34 +++++++++++++
arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 50 +++++++++++++++++++
2 files changed, 84 insertions(+)
--
2.19.2
sdhci0 is connected to an eMMC and sdhci1 is connected to an SD card
slot. Add support for these nodes.
Signed-off-by: Faiz Abbas <[email protected]>
---
.../dts/ti/k3-j721e-common-proc-board.dts | 34 +++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts
index d2894d55fbbe..3cfaa2c83ba6 100644
--- a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts
+++ b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts
@@ -41,6 +41,20 @@
J721E_IOPAD(0x0, PIN_INPUT, 7) /* (AC18) EXTINTn.GPIO0_0 */
>;
};
+
+ main_mmc1_pins_default: main_mmc1_pins_default {
+ pinctrl-single,pins = <
+ J721E_IOPAD(0x254, PIN_INPUT, 0) /* (R29) MMC1_CMD */
+ J721E_IOPAD(0x250, PIN_INPUT, 0) /* (P25) MMC1_CLK */
+ J721E_IOPAD(0x2ac, PIN_INPUT, 0) /* (P25) MMC1_CLKLB */
+ J721E_IOPAD(0x24c, PIN_INPUT, 0) /* (R24) MMC1_DAT0 */
+ J721E_IOPAD(0x248, PIN_INPUT, 0) /* (P24) MMC1_DAT1 */
+ J721E_IOPAD(0x244, PIN_INPUT, 0) /* (R25) MMC1_DAT2 */
+ J721E_IOPAD(0x240, PIN_INPUT, 0) /* (R26) MMC1_DAT3 */
+ J721E_IOPAD(0x258, PIN_INPUT, 0) /* (P23) MMC1_SDCD */
+ J721E_IOPAD(0x25c, PIN_INPUT, 0) /* (R28) MMC1_SDWP */
+ >;
+ };
};
&wkup_pmx0 {
@@ -117,3 +131,23 @@
&wkup_gpio1 {
status = "disabled";
};
+
+&main_sdhci0 {
+ /* eMMC */
+ non-removable;
+ ti,driver-strength-ohm = <50>;
+ disable-wp;
+};
+
+&main_sdhci1 {
+ /* SD/MMC */
+ pinctrl-names = "default";
+ pinctrl-0 = <&main_mmc1_pins_default>;
+ ti,driver-strength-ohm = <50>;
+ disable-wp;
+};
+
+&main_sdhci2 {
+ /* Unused */
+ status = "disabled";
+};
--
2.19.2
Hi,
On 19/09/19 9:02 PM, Faiz Abbas wrote:
> The following are dts patches to add MMC/SD Support on TI's J721e base
> board.
>
> Patches depend on Lokesh's gpio patches[1] and device exclusivity patches[2].
>
> [1] https://patchwork.kernel.org/cover/11085643/
> [2] https://patchwork.kernel.org/cover/11051559/
>
> Faiz Abbas (2):
> arm64: dts: ti: j721e-main: Add SDHCI nodes
> arm64: dts: ti: j721e-common-proc-board: Add Support for eMMC and SD
> card
>
> .../dts/ti/k3-j721e-common-proc-board.dts | 34 +++++++++++++
> arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 50 +++++++++++++++++++
> 2 files changed, 84 insertions(+)
>
Gentle ping.
Thanks,
Faiz
On 09/10/2019 12:57, Faiz Abbas wrote:
> Hi,
>
> On 19/09/19 9:02 PM, Faiz Abbas wrote:
>> The following are dts patches to add MMC/SD Support on TI's J721e base
>> board.
>>
>> Patches depend on Lokesh's gpio patches[1] and device exclusivity patches[2].
>>
>> [1] https://patchwork.kernel.org/cover/11085643/
>> [2] https://patchwork.kernel.org/cover/11051559/
>>
>> Faiz Abbas (2):
>> arm64: dts: ti: j721e-main: Add SDHCI nodes
>> arm64: dts: ti: j721e-common-proc-board: Add Support for eMMC and SD
>> card
>>
>> .../dts/ti/k3-j721e-common-proc-board.dts | 34 +++++++++++++
>> arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 50 +++++++++++++++++++
>> 2 files changed, 84 insertions(+)
>>
>
> Gentle ping.
Queuing up towards 5.5, thanks.
-Tero
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki