]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: at91: sama7g5ek: add pinctrl for sdmmc1 and flx3
authorEugen Hristev <eugen.hristev@microchip.com>
Thu, 4 Jun 2020 07:38:49 +0000 (10:38 +0300)
committerEugen Hristev <eugen.hristev@microchip.com>
Thu, 7 Jan 2021 07:44:15 +0000 (09:44 +0200)
Add pinctrl for sdmmc1 and flx3.

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

index 4af4d1bb5bcaaca414a6c43f6728a4d56df727a8..5e1a0d53a5335aa30254107bfcedf372a4e56050 100644 (file)
        };
 };
 
+&pinctrl_flx3_default {
+       u-boot,dm-pre-reloc;
+};
+
 &pit64b0 {
        u-boot,dm-pre-reloc;
 };
index 03c7aa07ea4fd0b0e4ec1decca77fdc58de06e5f..a9190bfcb33ab951e0df9b217b5a57cde6712fc4 100644 (file)
                apb {
                        sdmmc1: sdio-host@e1208000 {
                                bus-width = <4>;
+                               pinctrl-names = "default";
+                               pinctrl-0 = <&pinctrl_sdmmc1_cmd_data_default
+                                            &pinctrl_sdmmc1_ck_cd_rstn_vddsel_default>;
                                status = "okay";
                        };
 
                        uart0: serial@e1824200 {
+                               pinctrl-names = "default";
+                               pinctrl-0 = <&pinctrl_flx3_default>;
                                status = "okay";
                        };
                };
        };
 };
+
+&pinctrl {
+       pinctrl_flx3_default: flx3_default {
+               pinmux = <PIN_PD16__FLEXCOM3_IO0>,
+                        <PIN_PD17__FLEXCOM3_IO1>;
+               bias-disable;
+       };
+
+       pinctrl_sdmmc1_cmd_data_default: sdmmc1_cmd_data_default {
+               pinmux = <PIN_PB29__SDMMC1_CMD>,
+                        <PIN_PB31__SDMMC1_DAT0>,
+                        <PIN_PC0__SDMMC1_DAT1>,
+                        <PIN_PC1__SDMMC1_DAT2>,
+                        <PIN_PC2__SDMMC1_DAT3>;
+               bias-pull-up;
+       };
+
+       pinctrl_sdmmc1_ck_cd_rstn_vddsel_default: sdmmc1_ck_cd_rstn_vddsel_default {
+               pinmux = <PIN_PB30__SDMMC1_CK>,
+                        <PIN_PB28__SDMMC1_RSTN>,
+                        <PIN_PC5__SDMMC1_1V8SEL>,
+                        <PIN_PC4__SDMMC1_CD>;
+               bias-pull-up;
+       };
+};