ARM: dts: at91: sama7g5ek: enable sdmmc0 with pinctrl
authorEugen Hristev <eugen.hristev@microchip.com>
Thu, 30 Jul 2020 12:52:51 +0000 (15:52 +0300)
committerEugen Hristev <eugen.hristev@microchip.com>
Thu, 7 Jan 2021 07:44:16 +0000 (09:44 +0200)
Enable sdmmc0 on this board. A non-removable eMMC is connected on this
block.
Configure pincontrol accordingly.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
arch/arm/dts/sama7g5ek.dts

index 3eac94896d875c771d9ba4a2580ff947024cf317..452bf425df16876677cf96376dc52fa889a47969 100644 (file)
        ahb {
 
                apb {
+                       sdmmc0: sdio-host@e1204000 {
+                               bus-width = <8>;
+                               non-removable;
+                               pinctrl-names = "default";
+                               pinctrl-0 = <&pinctrl_sdmmc0_cmd_data_default
+                                            &pinctrl_sdmmc0_ck_rstn_ds_cd_default>;
+                               status = "okay";
+                       };
+
                        sdmmc1: sdio-host@e1208000 {
                                bus-width = <4>;
                                pinctrl-names = "default";
                bias-disable;
        };
 
+       pinctrl_sdmmc0_cmd_data_default: sdmmc0_cmd_data_default {
+               pinmux = <PIN_PA1__SDMMC0_CMD>,
+                        <PIN_PA3__SDMMC0_DAT0>,
+                        <PIN_PA4__SDMMC0_DAT1>,
+                        <PIN_PA5__SDMMC0_DAT2>,
+                        <PIN_PA6__SDMMC0_DAT3>,
+                        <PIN_PA7__SDMMC0_DAT4>,
+                        <PIN_PA8__SDMMC0_DAT5>,
+                        <PIN_PA9__SDMMC0_DAT6>,
+                        <PIN_PA10__SDMMC0_DAT7>;
+               bias-pull-up;
+       };
+
+       pinctrl_sdmmc0_ck_rstn_ds_cd_default: sdmmc0_ck_rstn_ds_cd_default {
+               pinmux = <PIN_PA0__SDMMC0_CK>,
+                        <PIN_PA2__SDMMC0_RSTN>,
+                        <PIN_PA11__SDMMC0_DS>,
+                        <PIN_PA14__SDMMC0_CD>;
+               bias-pull-up;
+       };
+
        pinctrl_sdmmc1_cmd_data_default: sdmmc1_cmd_data_default {
                pinmux = <PIN_PB29__SDMMC1_CMD>,
                         <PIN_PB31__SDMMC1_DAT0>,